[PATCH v2] drm/amdgpu: fix a call trace when unload amdgpu driver

2024-09-04 Thread Asher Song
device. v2: move drain_workqueue to amdgpu_ttm.c Fixes:d99fbd9aab62 ("drm/ttm: Always take the bo delayed cleanup path for imported bos") Suggested-by: Christian König Signed-off-by: Asher Song --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 + 1 file changed, 1 insertion(+) diff --g

[PATCH] drm/amdgpu: fix a call trace when unload amdgpu driver

2024-09-03 Thread Asher Song
device. Fixes:d99fbd9aab62 ("drm/ttm: Always take the bo delayed cleanup path for imported bos") Acked-by: Christian König Signed-off-by: Asher Song --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/dri

[PATCH] Revert "drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly""

2022-11-04 Thread Asher Song
This reverts commit 97370f1826eb7ee6880e09ee1eaafe28232cabc6. The origin patch "drm/amdgpu: getting fan speed pwm for vega10 properly" works fine. Test failure is caused by test case self. Signed-off-by: Asher Song --- .../amd/pm/powerplay/hwmgr/vega10_thermal.c | 25 +---

[PATCH] drm/amdgpu: Revert "drm/amdgpu: getting fan speed pwm for vega10 properly"

2022-10-13 Thread Asher Song
This reverts commit fe01cb24b81c0091d7e5668874d51ce913e44a97. Unfortunately, that commit causes fan monitors can't be read and written properly. Signed-off-by: Asher Song --- .../amd/pm/powerplay/hwmgr/vega10_thermal.c | 25 ++- 1 file changed, 13 insertions(+), 12 dele

[PATCH] drm/amdgpu: fix a compiling error in old kernels

2022-09-26 Thread Asher Song
This patch is used to fix following compiling error that occurs in some old kernels. error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < dc->res_pool->res_cap->num_dsc; i++) { Signed-off-by: Asher Song --- drivers/gpu/drm/amd/display/dc/dcn32/d

[PATCH] drm/amdgpu: fix a compiling error

2022-09-26 Thread Asher Song
The patch fix following compiling error: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < dc->res_pool->res_cap->num_dsc; i++) { Signed-off-by: Asher Song --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 4 ++-- 1 file changed,

[PATCH] drm/display: guard if clause

2022-09-01 Thread Asher Song
indentation] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3523:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (update_type != UPDATE_TYPE_FAST) ^~ Signed-off-by: Asher Song --- drivers/gpu/drm/amd/display/dc/core/d

[PATCH] drm/amd/display: remove a duplicated declaration

2022-08-30 Thread Asher Song
There are duplicated declarations of i, remove one of those. Signed-off-by: Asher Song --- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c b/drivers/gpu/drm/amd/display

[PATCH] drm/amdgpu: assign dpms for amdgpu_vkms_crtc_helper_funcs

2021-11-05 Thread Asher Song
ctions+0x38/0x60 [drm_kms_helper] amdgpu_fbdev_init+0xf6/0x100 [amdgpu] amdgpu_device_init+0x13d4/0x1f10 [amdgpu] Fixes: ba5317109d0ce ("drm/amdgpu: create amdgpu_vkms (v4)") Signed-off-by: Asher Song --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 26 1

[PATCH] drm/amdgpu: assign dpms for amdgpu_vkms_crtc_helper_funcs

2021-11-04 Thread Asher Song
To avoid NULL pointer, assign dpms for amdgpu_vkms_crtc_helper_funcs. Signed-off-by: Asher Song --- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 26 +++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm

[PATCH] drm/amdgpu: add judgement for dc support

2021-05-24 Thread Asher Song
Drop DC initialization when DCN is harvested in VBIOS. The way doesn't affect virtual display ip initialization. Signed-off-by: Likun Gao Signed-off-by: Asher Song --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver