[PATCH] drm/hisilicon: Fix a NULL pointer access when call hibmc_unload

2024-05-09 Thread oushixiong
From: Shixiong Ou If Calling hibmc_mm_init() failed in hibmc_load(), the hibmc_unload() will access a NULL pointer, as it don't call ww_mutex_init() to initialize mode_config.connection_mutex but try to lock it when calling drm_atomic_helper_shutdown(). [ 50.939211][ 0] Unable to handle

[PATCH] drm/radeon: Delay Connector detecting when HPD singals is unstable

2024-05-09 Thread oushixiong
From: Shixiong Ou In some causes, HPD signals will jitter when plugging in or unplugging HDMI. Rescheduling the hotplug work for a second when EDID may still be readable but HDP is disconnected, and fixes this issue. Signed-off-by: Shixiong Ou --- drivers/gpu/drm/radeon/radeon_connectors.c |

回复: [PATCH] drm/atomic-helper: Call stall_checks() before allocate drm_crtc_commit

2023-11-06 Thread oushixiong
Hi, I think it will cause memory leaks if too many nonblock commit works return -EBUSY. You can try to send large number of nonblock commits by drmModeAtomicCommit(). -邮件原件- 发件人: Maxime Ripard 发送时间: 2023年11月6日 18:33 收件人: oushixiong 抄送: Maarten Lankhorst ; Thomas Zimmermann ; David

[PATCH] drm/atomic-helper: Call stall_checks() before allocate drm_crtc_commit

2023-11-05 Thread oushixiong
From: Shixiong Ou Calling stall_checks() before allocating drm_crtc_commit not after that. Signed-off-by: Shixiong Ou --- drivers/gpu/drm/drm_atomic_helper.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c

[PATCH] drm/atomic-helper: Call stall_checks() before allocate drm_crtc_commit

2023-10-25 Thread oushixiong
From: Shixiong Ou It is wrong to call stall_checks() after allocating memory for struct drm_crtc_commit as it will cause memory leaks if too many nonblock commit works return -EBUSY. So it needs to call stall_checks() before allocate drm_crtc_commit. Signed-off-by: Shixiong Ou ---

Re: [PATCH v3] drm/ast: add dmabuf/prime buffer sharing support

2022-09-07 Thread oushixiong
AST VRAM. Best regards oushixiong On 2022/9/7 下午5:40, Thomas Zimmermann wrote: Hi , Am 07.09.22 um 10:10 schrieb Christian König: Hi Thomas, I was wondering pretty much the same thing, but then thought that this might be the first step to direct scanout from DMA-bufs. If this isn't the ca

[PATCH v3] drm/ast: add dmabuf/prime buffer sharing support

2022-09-01 Thread oushixiong
buffer with the CPU. and do not to pin the buffer. Signed-off-by: oushixiong Acked-by: Christian König --- drivers/gpu/drm/ast/ast_drv.c | 27 +++ drivers/gpu/drm/ast/ast_mode.c | 125 - 2 files changed, 151 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/d

[PATCH v3] drm/ast: add dmabuf/prime buffer sharing support

2022-08-29 Thread oushixiong
buffer with the CPU. and do not to pin the buffer. Signed-off-by: oushixiong Reported-by: kernel test robot --- drivers/gpu/drm/ast/ast_drv.c | 27 +++ drivers/gpu/drm/ast/ast_mode.c | 125 - 2 files changed, 151 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/d

[PTACH v3] drm/ast: add dmabuf/prime buffer sharing support

2022-08-28 Thread oushixiong
buffer with the CPU. and do not to pin the buffer. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c | 27 +++ drivers/gpu/drm/ast/ast_mode.c | 125 - 2 files changed, 151 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drive

[PATCH] drm/ast: add dmabuf/prime buffer sharing support

2022-08-25 Thread oushixiong
vunmap(). Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c | 27 +++ drivers/gpu/drm/ast/ast_mode.c | 134 - drivers/gpu/drm/drm_gem.c | 2 + include/drm/drm_gem.h | 3 + 4 files changed, 165 insertions(+), 1 deletion(-) diff --git a/d

[PATCH v2] drm/ast: add dmabuf/prime buffer sharing support

2022-08-18 Thread oushixiong
This patch adds ast specific codes for DRM prime feature, this is to allow for offloading of rending in one direction and outputs in other. v1->v2: - Fix the comment. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c | 22 ++ drivers/gpu/drm/ast/ast_mode.c |

[PATCH] drm/ast: add dmabuf/prime buffer sharing support

2022-08-15 Thread oushixiong
This patch adds ast specific codes for DRM prime feature. Add the prime function to solve the xorg conflict problem when AST and AMD are in place at the same time, so that both can be displayed. Signed-off-by: oushixiong Reported-by: kernel test robot --- drivers/gpu/drm/ast/ast_drv.c | 22

[PATCH] drm/ast: add dmabuf/prime buffer sharing support

2022-08-11 Thread oushixiong
This patch adds ast specific codes for DRM prime feature. Add the prime function to solve the xorg conflict problem when AST and AMD are in place at the same time, so that both can be displayed. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c | 22 +++ drivers/gpu/drm/ast

[PATCH] drm/ast: radeon amdgpu for ast add prime

2022-08-11 Thread oushixiong
This patch adds ast specific codes for DRM prime feature. Add the prime function to solve the xorg conflict problem when AST and AMD are in place at the same time, so that both can be displayed. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c| 22 drivers/gpu

[PATCH] drm/ast: radeon amdgpu for ast add prime

2022-08-11 Thread oushixiong
This patch adds ast specific codes for DRM prime feature. Add the prime function to solve the xorg conflict problem when AST and AMD are in place at the same time, so that both can be displayed. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c| 22 drivers/gpu

[PATCH] drm/ast: radeon amdgpu for ast add prime

2022-08-10 Thread oushixiong
This patch adds ast specific codes for DRM prime feature. Add the prime function to solve the xorg conflict problem when AST and AMD are in place at the same time, so that both can be displayed. Signed-off-by: oushixiong --- drivers/gpu/drm/ast/ast_drv.c| 22 drivers/gpu

[PATCH] drm/ast: add dmabuf/prime buffer sharing support

2022-07-18 Thread oushixiong
This patch adds ast specific codes for DRM Prime feature. User application can get file descriptor from gem handle and also gem handle from file descriptor.this is to allow for offloading of rendering in one direction and outputs in the other. Signed-off-by: oushixiong --- drivers/gpu/drm/ast

[PATCH] drm/amd: Fix spelling typo in comment

2022-04-27 Thread oushixiong
Signed-off-by: oushixiong --- drivers/gpu/drm/amd/include/atomfirmware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h index 7bd763361d6e..b7a1e2116e7e 100644 --- a/drivers/gpu/drm/amd

[PATCH] drm/amd: Fix spelling typo in comment

2022-04-27 Thread oushixiong
Signed-off-by: oushixiong --- drivers/gpu/drm/amd/include/atomfirmware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/drm/amd/include/atomfirmware.h index 7bd763361d6e..b7a1e2116e7e 100644 --- a/drivers/gpu/drm/amd