Re: [PATCH] drm/amdgpu: fix OLAND card ip_init failed during kdump caputrue kernel boot

2024-08-30 Thread Lu Yao
On 2024/8/22 22:05, Mario Limonciello wrote: > On 7/23/2024 04:42, Lu Yao wrote: >> [Why] >> When running kdump test on a machine with R7340 card, a hang is caused due >> to the failure of 'amdgpu_device_ip_init()', error message as follows: >> >>&

[PATCH] drm/amdgpu: enable gfxoff quirk on HP 705G4

2024-08-30 Thread Lu Yao
From: Peng Liu Enabling gfxoff quirk results in perfectly usable graphical user interface on HP 705G4 DM with R5 2400G. Without the quirk, X server is completely unusable as every few seconds there is gpu reset due to ring gfx timeout. Signed-off-by: Peng Liu --- drivers/gpu/drm/amd/amdgpu/gf

[PATCH] drm/amdgpu: add raven1 gfxoff quirk

2024-08-30 Thread Lu Yao
From: Peng Liu Fix screen corruption with openkylin. Link: https://bbs.openkylin.top/t/topic/171497 Signed-off-by: Peng Liu --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9

[PATCH] drm/amdgpu: Fix assignment errors in 'si_common_early_init' functions

2024-02-28 Thread Lu Yao
uvd_ctx_rreg/uvd_ctx_wreg correct value requires function pointer. Signed-off-by: Lu Yao --- drivers/gpu/drm/amd/amdgpu/si.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index a757526153e5..455d49f7bd9c

[PATCH] drm/amdgpu: fix OLAND card ip_init failed during kdump caputrue kernel boot

2024-07-23 Thread Lu Yao
ecause the caputrue kernel does not power off when it starts, cause hardware status does not reset. [How] Add 'is_kdump_kernel()' judgment. For 'si_dpm' block, use disable and then enable. For 'uvd_v3_1' block, skip loading during the initialization phase. Signed-off

[PATCH] drm/amdgpu: add dce6 drm_panic support

2024-08-02 Thread Lu Yao
Add support for the drm_panic module, which displays a pretty user friendly message on the screen when a Linux kernel panic occurs. Signed-off-by: Lu Yao --- The patch can work properly on the TTY, but after start X, drawn image is messy, it looks like the data isn't linearly arranged. Ho

Re: [PATCH] drm/amdgpu: add dce6 drm_panic support

2024-08-08 Thread Lu Yao
On 2024/8/5 17:25, Jocelyn Falempe wrote: > > > On 02/08/2024 11:39, Christian König wrote: >> Am 02.08.24 um 09:17 schrieb Lu Yao: >>> Add support for the drm_panic module, which displays a pretty user >>> friendly message on the screen when a Linux kernel panic

[PATCH v2] drm/amdgpu: add dce6 drm_panic support

2024-08-12 Thread Lu Yao
Add support for the drm_panic module, which displays a pretty user friendly message on the screen when a Linux kernel panic occurs. Signed-off-by: Lu Yao --- Changes in v2: 1. Drop include "drm_internal.h" 2. Add disabling DC tiling ops. Per suggestion from previous thr

Re: [PATCH] drm/amdgpu: add dce6 drm_panic support

2024-08-12 Thread Lu Yao
On Thu, Aug 8, 2024 at 13:24 PM Alex Deucher wrote: > > On Thu, Aug 8, 2024 at 12:43 PM Alex Deucher wrote: > > > > On Thu, Aug 8, 2024 at 2:35 AM Lu Yao wrote: > > > > > > On 2024/8/5 17:25, Jocelyn Falempe wrote: > > > > > > > > >

[PATCH] drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer

2023-11-22 Thread Lu Yao
dgment. And other 'amdgpu_ip_block_version' that use these two definitions won't be added for 'AMDGPU_FAMILY_SI'. So, add null pointer judgment before calling. Signed-off-by: Lu Yao --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 10 ++ 1 file changed,

[PATCH v2] drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer

2023-11-23 Thread Lu Yao
dgment. And other 'amdgpu_ip_block_version' that use these two definitions won't be added for 'AMDGPU_FAMILY_SI'. So, add null pointer judgment before calling. Signed-off-by: Lu Yao --- Changes in v2: 1. Drop dev_err message. 2. Change error code from 'EPERM'

Re: [PATCH 4/4] drm/amd/display: add non-DC drm_panic support

2024-11-04 Thread Lu Yao
the non-DC code to enable > access to non-CPU accessible VRAM and adds support for > other DCE versions. > > Signed-off-by: Alex Deucher > Cc: Lu Yao > Cc: Jocelyn Falempe > --- > drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 27

[PATCH] drm/radeon/ni: Fix memory leak and missing error handling in ni_init_microcode()

2024-10-31 Thread Lu Yao
'smc_fw' is not released when its size is not as expected, causing memory leak. And when other firmware sizes do not meet expectations, 'err' is assigned but does not jump to 'out'. Signed-off-by: Lu Yao --- drivers/gpu/drm/radeon/ni.c | 9 ++--- 1 file changed

Re: [PATCH v2] drm/amdgpu: add dce6 drm_panic support

2024-09-18 Thread Lu Yao
On 2024/9/17 21:21, Alex Deucher wrote: On Mon, Aug 12, 2024 at 2:10 AM Lu Yao wrote: Add support for the drm_panic module, which displays a pretty user friendly message on the screen when a Linux kernel panic occurs. Signed-off-by: Lu Yao Patch looks good to me. Any chance you want to

[PATCH] drm/amdgpu: Add null pointer check before task_info get and put

2025-01-01 Thread Lu Yao
This patch add null pointer check for amdgpu_vm_put_task_info and amdgpu_vm_get_task_info_vm, because there is only a warning if create task_info failed in amdgpu_vm_init. Fixes: b8f67b9ddf4f ("drm/amdgpu: change vm->task_info handling") Signed-off-by: Lu Yao --- drivers/gpu/d