Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: enable gpu tlb flush for gfxhub

Enable gpu tlb flush for gfxhub without check gfx.is_poweron
as gfx is power on by default for gfx v12_1 ASIC.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Likun Gao and committed by
Alex Deucher
bf2951e9 2db09364

-3
-3
drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
··· 307 307 static void gmc_v12_1_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, 308 308 uint32_t vmhub, uint32_t flush_type) 309 309 { 310 - if (AMDGPU_IS_GFXHUB(vmhub) && !adev->gfx.is_poweron) 311 - return; 312 - 313 310 /* This is necessary for SRIOV as well as for GFXOFF to function 314 311 * properly under bare metal 315 312 */