Re: [PATCH] drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9

2021-11-04 Thread Christian König
Am 04.11.21 um 08:49 schrieb Christian König: Am 04.11.21 um 03:55 schrieb YuBiao Wang: [Why] For Vega10, disabling gart of gfxhub and mmhub could mess up KIQ and PSP under sriov mode, and lead to DMAR on host side. [How] Skip writing GMC registers under sriov. Signed-off-by: YuBiao Wang --

Re: [PATCH] drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9

2021-11-04 Thread Christian König
Am 04.11.21 um 03:55 schrieb YuBiao Wang: [Why] For Vega10, disabling gart of gfxhub and mmhub could mess up KIQ and PSP under sriov mode, and lead to DMAR on host side. [How] Skip writing GMC registers under sriov. Signed-off-by: YuBiao Wang --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c |

[PATCH] drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9

2021-11-03 Thread YuBiao Wang
[Why] For Vega10, disabling gart of gfxhub and mmhub could mess up KIQ and PSP under sriov mode, and lead to DMAR on host side. [How] Skip writing GMC registers under sriov. Signed-off-by: YuBiao Wang --- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 26 +--- 1 file changed, 14

Re: [PATCH] drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9

2021-11-02 Thread Christian König
Am 02.11.21 um 11:25 schrieb YuBiao Wang: [Why] For Vega10, disabling gart of gfxhub and mmhub could mess up KIQ and PSP under sriov mode, and lead to DMAR on host side. [How] Do not call gmc_gart_disable under sriov but keep vram_unpin to avoid pin_count leak. NAK, if you want to do this you

[PATCH] drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9

2021-11-02 Thread YuBiao Wang
[Why] For Vega10, disabling gart of gfxhub and mmhub could mess up KIQ and PSP under sriov mode, and lead to DMAR on host side. [How] Do not call gmc_gart_disable under sriov but keep vram_unpin to avoid pin_count leak. Signed-off-by: YuBiao Wang --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 +