Re: [PATCH] drm/modes: Replace deprecated simple_strtol with kstrtol

2024-02-02 Thread Cong Liu
conversion needed here. Given the issues, it is best to maintain the original implementation for now. Best Regard. liucong On 2024/2/1 18:03, Jani Nikula wrote: On Thu, 01 Feb 2024, Cong Liu wrote: This patch replaces the use of the deprecated simple_strtol [1] function in the drm_modes.c

[PATCH] drm/modes: Replace deprecated simple_strtol with kstrtol

2024-01-31 Thread Cong Liu
-strtoul-simple-strtoull Signed-off-by: Cong Liu --- drivers/gpu/drm/drm_modes.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 893f52ee4926..fce0fb1df9b2 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b

[PATCH] fbdev/core: Replace deprecated simple_strtol with kstrtol

2024-01-31 Thread Cong Liu
-strtoul-simple-strtoull Signed-off-by: Cong Liu --- drivers/video/fbdev/core/modedb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/core/modedb.c b/drivers/video/fbdev/core/modedb.c index 7196b055f2bd..eebbbc7e2aa3 100644 --- a/drivers/video/fbdev

[PATCH] fbdev/sh_mobile_lcdcfb: Replace deprecated simple_strtol with kstrtol

2024-01-31 Thread Cong Liu
-simple-strtoul-simple-strtoull Signed-off-by: Cong Liu --- drivers/video/fbdev/sh_mobile_lcdcfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/sh_mobile_lcdcfb.c b/drivers/video/fbdev/sh_mobile_lcdcfb.c index eb2297b37504..5fc7d74b273e 100644 --- a

Re: [PATCH 2/2] drm/amd/display: Fix null pointer dereference in error message

2023-09-26 Thread Cong Liu
On 2023-09-26 01:56, Cong Liu wrote: This patch fixes a null pointer dereference in the error message that is printed when the Display Core (DC) fails to initialize. The original message includes the DC version number, which is undefined if the DC is not initialized. Fixes: 9788d087caff

[PATCH 1/2] drm/amd/pm: Fix warn: missing error code in smu_v13_0_0_check_ecc_table_support()

2023-09-25 Thread Cong Liu
of ret is not explicitly set in the function. This patch fixes the warning by explicitly setting the value of ret to 0 if the device is supported Signed-off-by: Cong Liu --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) di

[PATCH 2/2] drm/amd/display: Fix null pointer dereference in error message

2023-09-25 Thread Cong Liu
inted when loading DC") Signed-off-by: Cong Liu --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 8e

[PATCH] fix a memory leak in amdgpu_ras_feature_enable

2023-09-14 Thread Cong Liu
("drm/amdgpu: Free ras cmd input buffer properly") Signed-off-by: Cong Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 8eb6f6943778..b4a8ea946410 10

[PATCH v2] drm/i915: Fix memory leaks in function live_nop_switch

2023-05-16 Thread Cong Liu
Be sure to properly free the allocated memory before exiting the live_nop_switch function. Signed-off-by: Cong Liu Suggested-by: Rodrigo Vivi --- .../gpu/drm/i915/gem/selftests/i915_gem_context.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu

[PATCH] drm/i915: Fix memory leaks in function live_nop_switch

2023-05-08 Thread Cong Liu
Be sure to properly free the allocated memory before exiting the live_nop_switch function. Signed-off-by: Cong Liu --- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/selftests

Re: [PATCH] drm/i915: Fix memory leaks in i915 selftests

2023-04-13 Thread Cong Liu
Hi Andi, thank you for your reminder, next time I will pay attention to my format, and when someone has already reviewed, add the Reviewed-by field Regards. On 2023/4/13 16:44, Andi Shyti wrote: On Thu, Apr 13, 2023 at 03:55:26PM +0800, Cong Liu wrote: This patch fixes memory leaks on

[PATCH] drm/i915: Fix memory leaks in i915 selftests

2023-04-13 Thread Cong Liu
Fixes: c3bfba9a2225 ("drm/i915: Check for integer truncation on scatterlist creation") Signed-off-by: Cong Liu --- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/d

[PATCH] drm/i915: Fix memory leaks in i915 selftests

2023-04-13 Thread Cong Liu
This patch fixes memory leaks on error escapes in function fake_get_pages Fixes: c3bfba9a2225 ("drm/i915: Check for integer truncation on scatterlist creation") Signed-off-by: Cong Liu --- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 +++- 1 file changed, 3 insertions(+),

[PATCH] drm/i915: Remove intel_gvt_init_host declaration

2022-04-14 Thread Cong Liu
this function has been deleted since commit 9bdb073464d6 ("drm/i915/gvt: Change KVMGT as self load module"), remove the deprecated function declaration. Signed-off-by: Cong Liu --- drivers/gpu/drm/i915/intel_gvt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gp

Re: [PATCH v2] drm/qxl: fix qxl can't use in arm64

2022-03-31 Thread Cong Liu
any suggestions or extra test I can do now? Regards, Cong On 2022/3/25 15:45, Christian König wrote: Am 24.03.22 um 11:49 schrieb Cong Liu: qxl use ioremap to map ram_header and rom, in the arm64 implementation, the device is mapped as DEVICE_nGnRE, it can not support unaligned access. and

[PATCH v2] drm/qxl: fix qxl can't use in arm64

2022-03-25 Thread Cong Liu
qxl use ioremap to map ram_header and rom, in the arm64 implementation, the device is mapped as DEVICE_nGnRE, it can not support unaligned access. and qxl is a virtual device, it can be treated more like RAM than actual MMIO registers. use ioremap_wc() replace it. Signed-off-by: Cong Liu

[PATCH v1 1/2] drm/qxl: replace ioremap by ioremap_cache on arm64

2022-03-23 Thread Cong Liu
] ---[ end trace 95615d89b7c87f95 ]--- Signed-off-by: Cong Liu --- drivers/gpu/drm/qxl/qxl_kms.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_kms.c b/drivers/gpu/drm/qxl/qxl_kms.c index 4dc5ad13f12c..0e61ac04d8ad 100644 --- a/drivers/gpu/drm/qxl/qxl_kms.c

[PATCH v1 2/2] drm/ttm: enable ioremap buffer according to TTM mem caching setting for arm64

2022-03-23 Thread Cong Liu
5.628811] el0t_64_sync_handler+0xb0/0xb8 [5.629206] el0t_64_sync+0x1a4/0x1a8 [5.629552] Code: a8811d07 f2400c42 b462 8b020108 (a93f1d07) [5.630152] ---[ end trace 35a380fcdcd5b8f7 ]--- Signed-off-by: Cong Liu --- drivers/gpu/drm/ttm/ttm_bo_util.c | 4 ++-- 1 file changed, 2 insert