[PATCH] drm/amdgpu/gfx: disable cp_ecc_error_irq only when gfx ras is enabled in suspend

2023-05-06 Thread Guchun Chen
cp_ecc_error_irq is only enabled when gfx ras is assert. So in gfx_v9_0_hw_fini, interrupt disablement for cp_ecc_error_irq should be executed under such condition, otherwise, an amdgpu_irq_put calltrace will occur. [ 7283.170322] RIP: 0010:amdgpu_irq_put+0x45/0x70 [amdgpu] [ 7283.170964] RSP: 001

Re: Is "perfectly equal monitors" really required to reclock MCLK

2023-05-06 Thread Braiam
On Fri, Jan 13, 2023 at 11:22 AM Christian König wrote: > Totally, as far as I know VRR is currently a complete show stopper for > reclocking the MCLK. > > But on the other hand VRR could potentially be used to artificially > create some overlapping VBLANK period to do the actually reclocking. > I

[PATCH] drm/amdgpu: Remove the unused variable golden_settings_gc_9_4_3

2023-05-06 Thread Jiapeng Chong
Variable golden_settings_gc_9_4_3 is not effectively used, so delete it. drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:48:38: warning: ‘golden_settings_gc_9_4_3’ defined but not used. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4877 Signed-off-by: Jiapeng Chong ---

RE: [PATCH] drm/amdgpu: disable sdma ecc irq only when sdma RAS is enabled in suspend

2023-05-06 Thread Zhou1, Tao
[AMD Official Use Only - General] Reviewed-by: Tao Zhou > -Original Message- > From: Chen, Guchun > Sent: Saturday, May 6, 2023 5:04 PM > To: amd-gfx@lists.freedesktop.org; Deucher, Alexander > ; Zhang, Hawking ; > Lazar, Lijo ; Zhou1, Tao ; Koenig, > Christian > Cc: Chen, Guchun > Su

Re: [PATCH V2] drm/amdgpu/display: Enable DC_FP for LoongArch

2023-05-06 Thread Huacai Chen
Hi, Hamza, On Fri, May 5, 2023 at 9:37 PM Hamza Mahfooz wrote: > > > Hey Huacai, > > On 5/5/23 07:32, Huacai Chen wrote: > > Now LoongArch provides kernel_fpu_begin() and kernel_fpu_end() in commit > > 2b3bd32ea3a22ea2d ("LoongArch: Provide kernel fpu functions"), so we can > > enable DC_FP for D

[PATCH] drm/amdgpu: disable sdma ecc irq only when sdma RAS is enabled in suspend

2023-05-06 Thread Guchun Chen
sdma_v4_0_ip is shared on a few asics, but in sdma_v4_0_hw_fini, driver unconditionally disables ecc_irq which is only enabled on those asics enabling sdma ecc. This will introduce a warning in suspend cycle on those chips with sdma ip v4.0, while without sdma ecc. So this patch correct this. [ 72

[linux-next:master] BUILD REGRESSION 83e5775d7afda68f6d7576d21f7a080fbfeecc4f

2023-05-06 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 83e5775d7afda68f6d7576d21f7a080fbfeecc4f Add linux-next specific files for 20230505 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202304102354.q4voxgte-...@intel.com https://lore

[PATCH] drm/amdgpu: unmap and remove csa_va properly

2023-05-06 Thread Lang Yu
Root PD BO should be reserved before unmap and remove a bo_va from VM otherwise lockdep will complain. [14616.936827] WARNING: CPU: 6 PID: 1711 at drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1762 amdgpu_vm_bo_del+0x399/0x3f0 [amdgpu] [14616.937096] Call Trace: [14616.937097] [14616.937102] amdgpu_