[PATCH v2 3/3] drm/gem-shmem: When drm_gem_object_init failed, should release object

2022-11-18 Thread ChunyouTang
when goto err_free, the object had init, so it should be release when fail. Signed-off-by: ChunyouTang --- drivers/gpu/drm/drm_gem.c | 19 --- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 +++- include/drm/drm_gem.h | 1 + 3 files changed, 20

[PATCH v2] drm/gem-shmem: When drm_gem_object_init failed, should release object

2022-11-10 Thread ChunyouTang
when goto err_free, the object had init, so it should be release when fail. Signed-off-by: ChunyouTang --- drivers/gpu/drm/drm_gem.c | 19 --- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 +++- include/drm/drm_gem.h | 1 + 3 files changed, 20

[PATCH] drm/gem-shmem: When drm_gem_object_init failed, should release object

2022-11-07 Thread ChunyouTang
when goto err_free, the object had init, so it should be release when fail. Signed-off-by: ChunyouTang --- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm

[PATCH] drm/gem-shmem: When drm_gem_object_init failed, should release object

2022-11-07 Thread ChunyouTang
when goto err_free, the object had init, so it should be release when fail. Signed-off-by: ChunyouTang --- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm

[PATCH] drm/gem-shmem: When drm_gem_object_init failed, should release object

2022-11-07 Thread ChunyouTang
when goto err_free, the object had init, so it should be release when fail. Signed-off-by: ChunyouTang --- drivers/gpu/drm/drm_gem_shmem_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm

[PATCH v3] drm/panfrost:fix the exception name always "UNKNOWN"

2021-07-08 Thread ChunyouTang
From: ChunyouTang The exception_code in register is only 8 bits,So if fault_status in panfrost_gpu_irq_handler() don't (& 0xFF),it can't get correct exception reason. and it's better to show all of the register value to custom,so it's better fault_status don&#x

[PATCH] drm/panfrost:modify 'break' to 'continue' to traverse the circulation

2021-06-17 Thread ChunyouTang
From: ChunyouTang The 'break' can cause 'Memory manager not clean during takedown' It cannot use break to finish the circulation,it should use continue to traverse the circulation.it should put every mapping which is not NULL. Signed-off-by: ChunyouTang --- driv

[PATCH v2] drm/panfrost:report the full raw fault information instead

2021-06-16 Thread ChunyouTang
From: ChunyouTang of the low 8 bits. Signed-off-by: ChunyouTang --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 1fffb6a0b24f..d2d287bbf4e7

[PATCH 2/2] drm/panfrost:report the full raw fault information instead

2021-06-15 Thread ChunyouTang
From: tangchunyou of the low 8 bits. Signed-off-by: tangchunyou --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 1fffb6a0b24f..d2d287bbf4e7 10

[PATCH 2/2] drm/panfrost:report the full raw fault information instead

2021-06-14 Thread ChunyouTang
From: tangchunyou of the low 8 bits. Signed-off-by: tangchunyou --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 1fffb6a0b24f..d2d287bbf4e7 10

[PATCH 2/2] drm/panfrost:report the full raw fault information instead

2021-06-14 Thread ChunyouTang
From: tangchunyou of the low 8 bits. Signed-off-by: tangchunyou --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 1fffb6a0b24f..d2d287bbf4e7 10

[PATCH] modified: gpu/drm/panfrost/panfrost_gpu.c

2021-06-08 Thread ChunyouTang
From: tangchunyou The GPU exception fault status register(0x3C),the low 8 bit is the EXCEPTION_TYPE.We can see the description at P3-78 in spec. Signed-off-by: tangchunyou --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gp

[PATCH v2] drivers/video/fbdev:modify 'if (addrp == NULL)' to 'if (!addr)

2021-03-17 Thread ChunyouTang
From: tangchunyou modify 'if (addrp == NULL)' to 'if (!addr) Signed-off-by: tangchunyou --- drivers/video/fbdev/offb.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c index cd1042f..52d86e3 100644 ---

[PATCH] drivers/video/fbdev:modify 0 to NULL

2021-03-17 Thread ChunyouTang
From: tangchunyou modify 0 to NULL,info is a pointer,it should be compared with NULL,not 0 Signed-off-by: tangchunyou --- drivers/video/fbdev/offb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c index 4501e84..cd104

[PATCH] omapdrm/dss/dsi.c:modify 'u32'->'int'

2021-03-17 Thread ChunyouTang
From: tangchunyou 1.the type of mipi_dsi_create_packet id int 2.u32 can not < 0 Signed-off-by: tangchunyou --- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index 8e11

[PATCH] nouveau/nvkm/subdev/devinit/mcp89.c:Unneeded variable

2021-03-17 Thread ChunyouTang
From: tangchunyou disable,delete disable and return 0 Signed-off-by: tangchunyou --- drivers/gpu/drm/nouveau/nvkm/subdev/devinit/mcp89.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/mcp89.c b/drivers/gpu/drm/nouveau/nvkm/sub

[PATCH] the print is redundant because platform_get_irq()

2021-03-17 Thread ChunyouTang
From: tangchunyou already prints an error. Signed-off-by: tangchunyou --- drivers/gpu/drm/mediatek/mtk_cec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_cec.c b/drivers/gpu/drm/mediatek/mtk_cec.c index cb29b64..332a4df 100644 --- a/drive