[PATCH libdrm 2/2] amdgpu: change proirity value to be consistent with kernel

2024-01-08 Thread Zhenneng Li
it as invalid. If you set prority to HIGH or VERY_HIGH, please make sure the process have CAP_SYS_NICE capability or DRM_MASTER permission. Signed-off-by: Zhenneng Li --- amdgpu/amdgpu_cs.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/amdgpu/amdgpu_cs.c b/amdgpu

[PATCH libdrm 1/2] amdgpu: fix parameter of amdgpu_cs_ctx_create2

2024-01-08 Thread Zhenneng Li
In order to pass the correct priority parameter to the kernel, we must change priority type from uint32_t to int32_t. Signed-off-by: Zhenneng Li --- amdgpu/amdgpu.h| 2 +- amdgpu/amdgpu_cs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amdgpu/amdgpu.h b/amdgpu

[PATCH] drm/amdgpu: resove reboot exception for si oland

2023-03-09 Thread Zhenneng Li
During reboot test on arm64 platform, it may failure on boot. The error message are as follows: [6.996395][ 7] [ T295] [drm:amdgpu_device_ip_late_init [amdgpu]] *ERROR* late_init of IP block failed -22 [7.006919][ 7] [ T295] amdgpu :04:00.0:

[PATCH] drm/amdgpu: resove reboot exception for si oland

2023-03-09 Thread Zhenneng Li
During reboot test on arm64 platform, it may failure on boot. The error message are as follows: [6.996395][ 7] [ T295] [drm:amdgpu_device_ip_late_init [amdgpu]] *ERROR* late_init of IP block failed -22 [7.006919][ 7] [ T295] amdgpu :04:00.0:

[PATCH] drm/amdgpu: add mb for si

2022-11-17 Thread Zhenneng Li
:04:00.0: amdgpu_device_ip_late_init failed [7.014224][ 7] [ T295] amdgpu :04:00.0: Fatal error during GPU init Signed-off-by: Zhenneng Li --- drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c b

[PATCH] drm/amdgpu: use native mode for dp aux transfer

2022-08-11 Thread Zhenneng Li
* channel eq failed But if I use radeon for e8860, everything are always normal, the reason is that radeon use native mode and amdgpu use atombios mode when init dp aux, so when I use native mode for amdgpu, everything are always normal. Signed-off-by: Zhenneng Li Change-Id

[PATCH] drm/radeon: add a force flush to delay work when radeon

2022-08-11 Thread Zhenneng Li
] worker_thread+0x0/0x7c0 [] kthread+0x14c/0x210 [] ret_from_kernel_thread+0x18/0x20 [] kthread+0x0/0x210 Code: ad3e0008 43f0074a ad7e0018 ad9e0020 8c3001e8 40230101 <8821> 4821ed21 So force lockup work queue flush to fix this problem. Signed-off-by: Zhenneng Li --- d

[PATCH] drm/amdgpu: use native mode for dp aux transfer

2022-07-19 Thread Zhenneng Li
* channel eq failed But if I use radeon for e8860, everything are always normal, the reason is that radeon use native mode and amdgpu use atombios mode when init dp aux, so when I use native mode for amdgpu, everything are always normal. Signed-off-by: Zhenneng Li Change-Id

[PATCH] drm/i915: remove unnecessary spin_lock_irq

2022-04-28 Thread Zhenneng Li
This code will not be called by interrupt handler, so change it to spin_lock. Signed-off-by: Zhenneng Li --- drivers/gpu/drm/i915/i915_scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915

[PATCH] gpu/drm/radeon: Fix typo in comments

2022-04-26 Thread Zhenneng Li
Signed-off-by: Zhenneng Li --- drivers/gpu/drm/radeon/atombios.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios.h b/drivers/gpu/drm/radeon/atombios.h index bd5dc09e860f..6ccc9f31689f 100644 --- a/drivers/gpu/drm/radeon/atombios.h +++ b

[PATCH next, v2] kernel: Add 1 ms delay to init handler to fix s3 resume hang

2022-03-28 Thread Zhenneng Li
compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 / Radeon 520 OEM] [1002:6611] (rev 87) Signed-off-by: Zhenneng Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amdgpu: resolve s3 hang for r7340

2022-03-27 Thread Zhenneng Li
-by: Zhenneng Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 3987ecb24ef4..1eced991b5b2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b

[PATCH 2/2] drm/amdgpu: enable dcn support on arm64

2022-01-07 Thread Zhenneng Li
Signed-off-by: Zhenneng Li --- drivers/gpu/drm/amd/display/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index 127667e549c1..1c6c4cb1fd0a 100644 --- a/drivers/gpu/drm/amd/display/Kconfig

[PATCH 1/2] drm/amdgpu: fix compile error for dcn on arm64

2022-01-07 Thread Zhenneng Li
For adapting radeon rx6600 xt on arm64, I enabled dcn on arm64 platform, compiler report not compatible with -mgeneral-regs-only and -mhard-float when compiling some source file. Signed-off-by: Zhenneng Li --- drivers/gpu/drm/amd/display/dc/calcs/Makefile | 6 + .../gpu/drm/amd/display/dc

[PATCH 0/2]

2022-01-07 Thread Zhenneng Li
For adapting radeon rx6600 xt on arm64 platform, there report some compile errors. Zhenneng Li (2): drm/amdgpu: fix compile error for dcn on arm64 drm/amdgpu: enable dcn support on arm64 drivers/gpu/drm/amd/display/Kconfig | 2 +- drivers/gpu/drm/amd/display/dc/calcs/Makefile

[PATCH v3] drm/radeon: Update pitch for page flip

2021-08-05 Thread Zhenneng Li
.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Zhenneng Li --- drivers/gpu/drm/radeon/evergreen.c | 8 +++- drivers/gpu/drm/radeon/r100.c | 9 + drivers/gpu/drm/radeon/rs600.c | 8 +++- drivers/gpu/drm/radeon/rv770.c | 8 +++- 4 files changed, 30

[PATCH v2] drm/radeon: Update pitch for page flip

2021-08-03 Thread Zhenneng Li
ons in radeon rather than just the evergreen one. Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel Vetter Cc: amd-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Zhenneng L

[PATCH] drm/radeon: Update pitch for page flip

2021-08-02 Thread Zhenneng Li
an, Xinhui" Cc: David Airlie Cc: Daniel Vetter Cc: amd-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-ker...@vger.kernel.org Signed-off-by: Zhenneng Li --- drivers/gpu/drm/radeon/evergreen.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dr