]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Workaround LS2K/LS7A GPU DMA hang bug
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 26 Mar 2026 06:29:09 +0000 (14:29 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 26 Mar 2026 06:29:09 +0000 (14:29 +0800)
commit95db0c9f526d583634cddb2e5914718570fbac87
treeedfe90ba34a589cca631d41a13d0e29c491eb327
parent3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1
LoongArch: Workaround LS2K/LS7A GPU DMA hang bug

1. Hardware limitation: GPU, DC and VPU are typically PCI device 06.0,
06.1 and 06.2. They share some hardware resources, so when configure the
PCI 06.0 device BAR1, DMA memory access cannot be performed through this
BAR, otherwise it will cause hardware abnormalities.

2. In typical scenarios of reboot or S3/S4, DC access to memory through
BAR is not prohibited, resulting in GPU DMA hangs.

3. Workaround method: When configuring the 06.0 device BAR1, turn off
the memory access of DC, GPU and VPU (via DC's CRTC registers).

Cc: stable@vger.kernel.org
Signed-off-by: Qianhai Wu <wuqianhai@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/pci/pci.c