Re: [PATCH 01/14] arch/powerpc: Remove legacy DRM drivers from default configs

2023-11-27 Thread Cai Huoqing
mga, i810, > savage, r128, sis, via)") Reviewed-by: Cai Huoqing > Cc: Cai Huoqing > Cc: Daniel Vetter > Cc: Dave Airlie > Cc: Thomas Zimmermann > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc: dri-devel@lists.freed

Re: [PATCH v2] accel/habanalabs: Make use of rhashtable

2023-05-07 Thread Cai Huoqing
On 08 5月 23 08:33:02, Oded Gabbay wrote: > On Mon, May 8, 2023 at 8:28 AM Cai Huoqing wrote: > > > > On 07 5月 23 16:17:55, Oded Gabbay wrote: > > > On Sat, May 6, 2023 at 12:25 PM Cai Huoqing wrote: > > > > > > > > On 04 5月 23 09:12:40, Oded Gabbay

Re: [PATCH v2] accel/habanalabs: Make use of rhashtable

2023-05-07 Thread Cai Huoqing
On 07 5月 23 16:17:55, Oded Gabbay wrote: > On Sat, May 6, 2023 at 12:25 PM Cai Huoqing wrote: > > > > On 04 5月 23 09:12:40, Oded Gabbay wrote: > > > On Thu, May 4, 2023 at 6:00 AM Cai Huoqing wrote: > > > > > > > > On 30 4月 23 09:36:29, Oded G

Re: [PATCH v2] accel/habanalabs: Make use of rhashtable

2023-05-06 Thread Cai Huoqing
On 04 5月 23 09:12:40, Oded Gabbay wrote: > On Thu, May 4, 2023 at 6:00 AM Cai Huoqing wrote: > > > > On 30 4月 23 09:36:29, Oded Gabbay wrote: > > > On Fri, Apr 28, 2023 at 5:49 PM Cai Huoqing wrote: > > > > > > > > Using rhashtable to accelerate th

Re: [PATCH v2] accel/habanalabs: Make use of rhashtable

2023-05-03 Thread Cai Huoqing
On 30 4月 23 09:36:29, Oded Gabbay wrote: > On Fri, Apr 28, 2023 at 5:49 PM Cai Huoqing wrote: > > > > Using rhashtable to accelerate the search for userptr by address, > > instead of using a list. > > > > Preferably, the lookup complexity of a hash table is O(1)

Re: [PATCH] accel/habanalabs: Make use of rhashtable

2023-04-28 Thread Cai Huoqing
On 26 4月 23 19:22:43, Cai Huoqing wrote: > On 26 4月 23 17:28:02, Cai Huoqing wrote: > > Using rhashtable to accelerate the search for userptr by address, > > instead of using a list. > > > > Preferably, the lookup complexity of a hash table is O(1). > > >

[PATCH v2] accel/habanalabs: Make use of rhashtable

2023-04-28 Thread Cai Huoqing
Using rhashtable to accelerate the search for userptr by address, instead of using a list. Preferably, the lookup complexity of a hash table is O(1). This patch will speedup the method hl_userptr_is_pinned by rhashtable_lookup_fast. Signed-off-by: Cai Huoqing --- v1->v2:

Re: [PATCH] accel/habanalabs: Make use of rhashtable

2023-04-26 Thread Cai Huoqing
On 26 4月 23 17:28:02, Cai Huoqing wrote: > Using rhashtable to accelerate the search for userptr by address, > instead of using a list. > > Preferably, the lookup complexity of a hash table is O(1). > > This patch will speedup the method > hl_userptr_is_pinned by r

[PATCH] accel/habanalabs: Make use of rhashtable

2023-04-26 Thread Cai Huoqing
Using rhashtable to accelerate the search for userptr by address, instead of using a list. Preferably, the lookup complexity of a hash table is O(1). This patch will speedup the method hl_userptr_is_pinned by rhashtable_lookup_fast. Signed-off-by: Cai Huoqing --- .../habanalabs/common

[PATCH] accel/habanalabs: Remove redundant pci_clear_master

2023-03-23 Thread Cai Huoqing
if (pci_command & PCI_COMMAND_MASTER) { pci_command &= ~PCI_COMMAND_MASTER; pci_write_config_word(dev, PCI_COMMAND, pci_command); } pcibios_disable_device(dev); }. And dev->is_busmaster is set to 0 in pci_disable_device. Signed-off-

[PATCH v2] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-03 Thread Cai Huoqing
This patch uses the already existing IDR mechanism to simplify and improve the dmabuf code. Using 'vgpu.object_idr' directly instead of 'dmabuf_obj_list_head' or 'dmabuf.list', because the dmabuf_obj can be found by 'idr_find' or 'idr_for_each_en

Re: [PATCH] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-03 Thread Cai Huoqing
On 03 3月 23 15:12:16, Zhenyu Wang wrote: > On 2023.03.02 19:53:18 +0800, Cai Huoqing wrote: > > This patch uses the already existing IDR mechanism to simplify > > and improve the dmabuf code. > > > > Using 'vgpu.object_idr' directly instead of 'dmabuf_ob

Re: [PATCH] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-02 Thread Cai Huoqing
On 02 3月 23 19:53:18, Cai Huoqing wrote: > This patch uses the already existing IDR mechanism to simplify > and improve the dmabuf code. > > Using 'vgpu.object_idr' directly instead of 'dmabuf_obj_list_head' > or 'dmabuf.list', because t

[PATCH] drm/i915/gvt: Make use of idr_find and idr_for_each_entry in dmabuf

2023-03-02 Thread Cai Huoqing
This patch uses the already existing IDR mechanism to simplify and improve the dmabuf code. Using 'vgpu.object_idr' directly instead of 'dmabuf_obj_list_head' or 'dmabuf.list', because the dmabuf_obj can be found by 'idr_find' or 'idr_for_each_entry&#x

Re: [RESEND PATCH linux-next v2 00/10] drm: Remove some obsolete drivers(tdfx, mga, i810, savage, r128, sis, via)

2022-12-08 Thread Cai Huoqing
On 03 12月 22 18:22:51, Cai Huoqing wrote: > Commit 399516ab0fee ("MAINTAINERS: Add a bunch of legacy (UMS) DRM drivers") > marked these drivers obsolete 7 years ago. > And the mesa UMD of these drm drivers already in deprecated list > in the link: https://docs.mesa3d.org/

[RESEND PATCH linux-next v2 10/10] MAINTAINERS: Remove some obsolete drivers info(tdfx, mga, i810, savage, r128, sis)

2022-12-03 Thread Cai Huoqing
iver/gpu/drm/mga Intel i810-->driver/gpu/drm/i810 S3 Savage-->drivers/gpu/drm/savage ATI Rage 128->drivers/gpu/drm/r128 Silicon Integrated Systems->drivers/gpu/drm/sis It's time to remove these drivers. Signed-off-by: Cai Huoqing --- MAINTAINERS | 29 --

[RESEND PATCH linux-next v2 09/10] drm: Remove some obsolete drm pciids(tdfx, mga, i810, savage, r128, sis, via)

2022-12-03 Thread Cai Huoqing
iver/gpu/drm/mga Intel i810-->driver/gpu/drm/i810 S3 Savage-->drivers/gpu/drm/savage ATI Rage 128->drivers/gpu/drm/r128 Silicon Integrated Systems->drivers/gpu/drm/sis VIA Unichrome->drivers/gpu/drm/via It's time to remove these drivers. Signed-off-by: Cai Huoqing

[RESEND PATCH linux-next v2 08/10] drm: Add comments to Kconfig

2022-12-03 Thread Cai Huoqing
Add comments to avoid removing DRM_LEGACY config menu, because DRM_LEGACY menu could list other legacy drivers. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index

[RESEND PATCH linux-next v2 06/10] drm: Remove the obsolete driver-tdfx

2022-12-03 Thread Cai Huoqing
remove this driver. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig | 7 --- drivers/gpu/drm/Makefile| 1 - drivers/gpu/drm/tdfx/Makefile | 8 --- drivers/gpu/drm/tdfx/tdfx_drv.c | 90 - drivers/gpu/drm/tdfx/tdfx_drv.h | 47

[RESEND PATCH linux-next v2 05/10] drm: Remove the obsolete driver-sis

2022-12-03 Thread Cai Huoqing
7;s time to remove this driver. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig | 9 - drivers/gpu/drm/Makefile | 1 - drivers/gpu/drm/sis/Makefile | 10 - drivers/gpu/drm/sis/sis_drv.c | 143 -- drivers/gpu/drm/sis/sis_drv.h | 80 drivers/gpu/drm/s

[RESEND PATCH linux-next v2 04/10] drm: Remove the obsolete driver-savage

2022-12-03 Thread Cai Huoqing
ime to remove this driver. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig |7 - drivers/gpu/drm/Makefile |1 - drivers/gpu/drm/savage/Makefile |9 - drivers/gpu/drm/savage/savage_bci.c | 1082 --- drivers/gpu/drm/savage/sav

[RESEND PATCH linux-next v2 03/10] drm: Remove the obsolete driver-r128

2022-12-03 Thread Cai Huoqing
remove this driver. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig|9 - drivers/gpu/drm/Makefile |1 - drivers/gpu/drm/r128/Makefile | 10 - drivers/gpu/drm/r128/ati_pcigart.c | 228 drivers/gpu/drm/r128/ati_pcigart.h | 31 - drivers/gpu/d

[RESEND PATCH linux-next v2 02/10] drm: Remove the obsolete driver-mga

2022-12-03 Thread Cai Huoqing
remove this driver. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig |9 - drivers/gpu/drm/Makefile|1 - drivers/gpu/drm/mga/Makefile| 11 - drivers/gpu/drm/mga/mga_dma.c | 1168 --- drivers/gpu/drm/mga/mga_drv.c | 104 --- drivers/gpu

[RESEND PATCH linux-next v2 01/10] drm: Remove the obsolete driver-i810

2022-12-03 Thread Cai Huoqing
remove this driver. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig |9 - drivers/gpu/drm/Makefile|1 - drivers/gpu/drm/i810/Makefile |8 - drivers/gpu/drm/i810/i810_dma.c | 1266 --- drivers/gpu/drm/i810/i810_drv.c | 101 --- dr

[RESEND PATCH linux-next v2 00/10] drm: Remove some obsolete drivers(tdfx, mga, i810, savage, r128, sis, via)

2022-12-03 Thread Cai Huoqing
move related drm uapi header files. 4.split to series avoid large patch email. Cai Huoqing (10): drm: Remove the obsolete driver-i810 drm: Remove the obsolete driver-mga drm: Remove the obsolete driver-r128 drm: Remove the obsolete driver-savage drm: Remove the obsolete driver-sis dr

[RESEND PATCH linux-next v2 00/10] drm: Remove some obsolete drivers(tdfx, mga, i810, savage, r128, sis, via)

2022-12-03 Thread Cai Huoqing
move related drm uapi header files. 4.split to series avoid large patch email. Cai Huoqing (10): drm: Remove the obsolete driver-i810 drm: Remove the obsolete driver-mga drm: Remove the obsolete driver-r128 drm: Remove the obsolete driver-savage drm: Remove the obsolete driver-sis dr

[PATCH linux-next v2 00/10] drm: Remove some obsolete drivers(tdfx, mga, i810, savage, r128, sis, via)

2022-12-03 Thread Cai Huoqing
move related drm uapi header files. 4.split to series avoid large patch email. Cai Huoqing (10): drm: Remove the obsolete driver-i810 drm: Remove the obsolete driver-mga drm: Remove the obsolete driver-r128 drm: Remove the obsolete driver-savage drm: Remove the obsolete driver-sis dr

[RESEND PATCH linux-next 1/2] MAINTAINERS: Remove some obsolete drm drivers(tdfx, mga, i810, savage, r128, sis)

2022-12-02 Thread Cai Huoqing
iver/gpu/drm/mga Intel i810-->driver/gpu/drm/i810 S3 Savage-->drivers/gpu/drm/savage/ ATI Rage 128->drivers/gpu/drm/r128/ Silicon Integrated Systems->drivers/gpu/drm/sis/ It's time to remove these. Signed-off-by: Cai Huoqing --- MAINTAINERS | 29 - 1 fi

Re: [PATCH] drm/omapdrm: Remove unused struct csc_coef_rgb2yuv

2022-10-12 Thread Cai Huoqing
On 27 9月 22 13:38:47, Yuan Can wrote: > After commit 64ff18911878("drm/omap: Enable COLOR_ENCODING and COLOR_RANGE Hi yuan, This is not a valid Fixes: tag. Add to your ~/.gitconfig and add: [pretty] fixes = Fixes: %h (\"%s\") You can then do git log --pretty=fixes 64ff18911878 and get

Re: [PATCH] drm: Remove the unused param "struct drm_buddy *mm"

2022-08-24 Thread Cai Huoqing
On 27 6月 22 16:54:04, Cai Huoqing wrote: > Remove the param "struct drm_buddy *mm" which is unused in > the function drm_block_alloc()/drm_block_free(). Just ping this patch > > Signed-off-by: Cai Huoqing > --- > drivers/gpu/drm/drm_buddy.c | 25 +++

[PATCH] drm: Remove the unused param "struct drm_buddy *mm"

2022-06-27 Thread Cai Huoqing
Remove the param "struct drm_buddy *mm" which is unused in the function drm_block_alloc()/drm_block_free(). Signed-off-by: Cai Huoqing --- drivers/gpu/drm/drm_buddy.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/drm

[PATCH] drm: Make drm_buddy a part of drm module

2022-06-20 Thread Cai Huoqing
The drm_buddy is just a software allocator, so don't need to create a module for this small part. If drm_buddy is included in drm module, then only need to insmod drm.ko Signed-off-by: Cai Huoqing --- drivers/gpu/drm/Kconfig | 2 +- drivers/gpu/drm/Makefile| 1 + drivers/gp

Re: [PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA

2022-05-07 Thread Cai Huoqing
On 02 5月 22 19:04:13, Thierry Reding wrote: > On Fri, Apr 29, 2022 at 11:28:10AM +0800, Cai Huoqing wrote: > > On 28 4月 22 18:56:07, Mikko Perttunen wrote: > > > On 4/28/22 17:10, Thierry Reding wrote: > > > > On Tue, Apr 26, 2022 at 02:07:57PM +0800, Cai Huoqing wr

Re: [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver

2022-04-28 Thread Cai Huoqing
On 28 4月 22 16:45:06, Thierry Reding wrote: > On Tue, Apr 26, 2022 at 04:23:41PM +0800, Cai Huoqing wrote: > > On 26 4月 22 08:31:05, Christian König wrote: > > > Am 26.04.22 um 08:08 schrieb Cai Huoqing: > > > > The NVIDIA Deep Learning Accelerator (NVDLA) is an o

Re: [PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA

2022-04-28 Thread Cai Huoqing
On 28 4月 22 17:35:56, Jon Hunter wrote: > > On 28/04/2022 16:56, Mikko Perttunen wrote: > > On 4/28/22 17:10, Thierry Reding wrote: > > > On Tue, Apr 26, 2022 at 02:07:57PM +0800, Cai Huoqing wrote: > > > > The NVIDIA Deep Learning Accelerator (NVDLA) is a

Re: [PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA

2022-04-28 Thread Cai Huoqing
On 28 4月 22 18:56:07, Mikko Perttunen wrote: > On 4/28/22 17:10, Thierry Reding wrote: > > On Tue, Apr 26, 2022 at 02:07:57PM +0800, Cai Huoqing wrote: > > > The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP > > > which is integrated into NVIDIA Jets

Re: [Linaro-mm-sig] Re: [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver

2022-04-26 Thread Cai Huoqing
On 26 4月 22 12:50:50, Arnd Bergmann wrote: > On Tue, Apr 26, 2022 at 8:31 AM Christian König > wrote: > > Am 26.04.22 um 08:08 schrieb Cai Huoqing: > > > The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP > > > which is integrated into NVIDIA Jetson AG

Re: [PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver

2022-04-26 Thread Cai Huoqing
On 26 4月 22 08:31:05, Christian König wrote: > Am 26.04.22 um 08:08 schrieb Cai Huoqing: > > The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP > > which is integrated into NVIDIA Jetson AGX Xavier, > > so add UAPI of this driver. > > > > Signed-of

[PATCH v2 4/4] drm/nvdla/uapi: Add UAPI of NVDLA driver

2022-04-25 Thread Cai Huoqing
The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP which is integrated into NVIDIA Jetson AGX Xavier, so add UAPI of this driver. Signed-off-by: Cai Huoqing --- v1->v2: *Rename nvdla_drm.[ch] to nvdla_drv.[ch] and rename nvdla_ioctl.h to nvdla_drm.h, move it to uapi. comme

[PATCH v2 1/4] MAINTAINERS: Add the driver info of the NVDLA

2022-04-25 Thread Cai Huoqing
The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP which is integrated into Jetson AGX Xavier. After adding the driver support for it, I add the driver info of the NVDLA to MAINTAINERS file. Signed-off-by: Cai Huoqing --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions

[PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA

2022-04-25 Thread Cai Huoqing
e.de/ *Fix typo and some code style *Remove unused function nvdla_get_time_us() comments link: https://lore.kernel.org/lkml/0fa9ab41-c18e-a569-e6fe-a0e9d9659...@stargateuniverse.net/ Cai Huoqing (4): MAINTAINERS: Add the driver info of the NVDLA drm/nvdla: Add driver support for NVDLA

Re: [PATCH 2/2] drm/nvdla: Add driver support for NVDLA

2022-04-25 Thread Cai Huoqing
mments start capital others not. Maybe all should start > capital. Very small nit, but makes nice touch to the code. > - Lot of oneline comments are unneccessary three line comments. > > On 19.4.2022 16.59, Cai Huoqing wrote: > > The NVIDIA Deep Learning Accelerator (NVDLA) is an o

Re: [PATCH 2/2] drm/nvdla: Add driver support for NVDLA

2022-04-19 Thread Cai Huoqing
On 19 4月 22 16:07:44, Christian König wrote: > Am 19.04.22 um 15:59 schrieb Cai Huoqing: > > The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP > > which is integrated into NVIDIA Jetson AGX Xavier, > > so add driver support for this accelerator. > > >

[PATCH 0/2] drm/nvdla: Add driver support for NVDLA

2022-04-19 Thread Cai Huoqing
The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP which is integrated into NVIDIA Jetson AGX Xavier, so add driver support for this accelerator. NVDLA introduce: http://nvdla.org/primer.html User mode driver: https://github.com/caihuoq/nvdla/tree/main/sw/umd Cai Huoqing (2

[PATCH 1/2] MAINTAINERS: Add the driver info of the NVDLA

2022-04-19 Thread Cai Huoqing
The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP which is integrated into Jetson AGX Xavier. After adding the driver support for it, I add the driver info of the NVDLA to MAINTAINERS file. Signed-off-by: Cai Huoqing --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions

Re: [PATCH] drm/mm: Fix the param description for 'size' tag

2022-03-24 Thread Cai Huoqing
On 17 3月 22 10:26:31, Cai Huoqing wrote: > Using "size of" instead of "end of" to fix the description for 'size' tag. > > Signed-off-by: Cai Huoqing > --- > drivers/gpu/drm/drm_mm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > &g

[PATCH] drm/mm: Fix the param description for 'size' tag

2022-03-16 Thread Cai Huoqing
Using "size of" instead of "end of" to fix the description for 'size' tag. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/drm_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index 825

Re: [PATCH] drm/nouveau: Remove the unused header file nvif/list.h

2022-02-22 Thread Cai Huoqing
On 09 2月 22 14:53:19, Cai Huoqing wrote: > The nouveau driver depends on include/linux/list.h instead of > nvif/list.h, so remove the obstacle-nvif/list.h. > > Signed-off-by: Cai Huoqing > --- Ping :) > drivers/gpu/drm/nouveau/include/nvif/list.h | 353

[PATCH] drm/nouveau: Remove the unused header file nvif/list.h

2022-02-08 Thread Cai Huoqing
The nouveau driver depends on include/linux/list.h instead of nvif/list.h, so remove the obstacle-nvif/list.h. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/nouveau/include/nvif/list.h | 353 1 file changed, 353 deletions(-) delete mode 100644 drivers/gpu/drm/nouveau

Re: Habanalabs, Ask for the linux firmware code which loads by coprocesseor

2021-12-10 Thread Cai Huoqing
On 09 12月 21 14:23:45, Oded Gabbay wrote: > On Tue, Dec 7, 2021 at 9:19 AM Cai Huoqing wrote: > > > > Hi Oded Gabbay and habanalabs folks. > > > > I'm insterested in this kind of AI acceralator. > > > > After scanning the driver code. > > It see

[PATCH] drm/tidss: Fix warning: unused variable 'tidss_pm_ops'

2021-11-28 Thread Cai Huoqing
Mark 'tidss_pm_ops' as __maybe_unused to avoid the warning: unused variable 'tidss_pm_ops' Fixes: 6e120594631f ("drm/tidss: Make use of the helper macro SET_RUNTIME_PM_OPS()") Signed-off-by: Cai Huoqing --- drivers/gpu/drm/tidss/tidss_drv.c | 2 +- 1 file chang

[PATCH] drm/i915: Use direction definition DMA_BIDIRECTIONAL instead of PCI_DMA_BIDIRECTIONAL

2021-09-25 Thread Cai Huoqing
Replace direction definition PCI_DMA_BIDIRECTIONAL with DMA_BIDIRECTIONAL, because it helps to enhance readability and avoid possible inconsistency. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/i915/gt/intel_region_lmem.c | 4 ++-- drivers/gpu/drm/i915/gvt/gtt.c | 17

[PATCH] drm/i2c: tda9950: Make use of the helper function devm_add_action_or_reset()

2021-09-22 Thread Cai Huoqing
. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/i2c/tda9950.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda9950.c b/drivers/gpu/drm/i2c/tda9950.c index 5b03fdd1eaa4..922e431d3eb0 100644 --- a/drivers/gpu/drm/i2c/tda9950.c +++ b/drivers/gpu

[PATCH] drm/bridge: dw-hdmi-cec: Make use of the helper function devm_add_action_or_reset()

2021-09-22 Thread Cai Huoqing
. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c index 70ab4fbdc23e..c8f44bcb298a 100644 --- a

Re: [PATCH v2] video: backlight: Make use of the helper function dev_err_probe()

2021-09-17 Thread Cai Huoqing
On 17 9月 21 14:15:29, Daniel Thompson wrote: > On Fri, Sep 17, 2021 at 08:53:23PM +0800, Cai Huoqing wrote: > > When possible use dev_err_probe help to properly deal with the > > PROBE_DEFER error, the benefit is that DEFER issue will be logged > > in the devices_deferred de

[PATCH v2] video: backlight: Make use of the helper function dev_err_probe()

2021-09-17 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- v1->v2: backli

Re: [PATCH 1/2] backlight: bd6107: Make use of the helper function dev_err_probe()

2021-09-17 Thread Cai Huoqing
Hi Thanks for your feedback. On 17 9月 21 10:17:29, Daniel Thompson wrote: > On Fri, Sep 17, 2021 at 11:13:06AM +0800, Cai Huoqing wrote: > > When possible use dev_err_probe help to properly deal with the > > PROBE_DEFER error, the benefit is that DEFER issue will be lo

[PATCH 4/4] fbdev: omapfb: panel-tpo-td043mtea1: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- .../video/fbdev

[PATCH 3/4] fbdev: omapfb: panel-sharp-ls037v7dw01: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- .../fbdev/omap2

[PATCH 1/4] fbdev: omapfb: panel-lgphilips-lb035q02: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- .../fbdev/omap2

[PATCH 2/4] fbdev: omapfb: lcd_ams_delta: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 6/6] fbdev: mmp: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 5/6] fbdev: s3c-fb: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 4/6] fbdev: ssd1307fb: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 3/6] fbdev: pxa3xx-gcu: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 2/6] fbdev: pxa168fb: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 1/6] fbdev: da8xx-fb: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video/fbdev

[PATCH 2/2] backlight: l4f00242t03: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video

[PATCH 1/2] backlight: bd6107: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. Using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/video

[PATCH v2] drm/tegra: sor: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Reported-by: kernel test robot Signed-off-by: Cai

[PATCH] drm/tegra: sor: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/tegra: dsi: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/sun4i: dw-hdmi: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/sun4i: dsi: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: y030xx067a: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: xpp055c272: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- .../gpu/drm/panel

[PATCH] drm/panel: td043mtea1: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: sofef00: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: s6e63j0x03: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- .../gpu/drm/panel

[PATCH] drm/panel: nt39016: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: ls037v7dw01: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, the error value gets printed. Signed-off-by: Cai Huoqing --- .../gpu/drm/panel

[PATCH] drm/panel: k101-im2ba02: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: ili9881c: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/panel: fy07024di26a30d: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- .../drm/panel

[PATCH] drm/panel: ej030na: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/mcde: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/bridge/tc358775: Make use of the helper function dev_err_probe()

2021-09-16 Thread Cai Huoqing
When possible use dev_err_probe help to properly deal with the PROBE_DEFER error, the benefit is that DEFER issue will be logged in the devices_deferred debugfs file. And using dev_err_probe() can reduce code size, and the error value gets printed. Signed-off-by: Cai Huoqing --- drivers/gpu/drm

[PATCH] drm/tegra: plane: Improve use of dev_err_probe()

2021-09-16 Thread Cai Huoqing
Return dev_err_probe() directly, because the return value of dev_err_probe() is the appropriate error code, and it can reduce code size, simplify the code. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/tegra/plane.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff

[PATCH] drm/stm: dsi: Improve use of dev_err_probe()

2021-09-16 Thread Cai Huoqing
Return dev_err_probe() directly, because the return value of dev_err_probe() is the appropriate error code, and it can reduce code size, simplify the code. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

[PATCH] drm: panel: nt36672a: Removed extra whitespace.

2021-09-16 Thread Cai Huoqing
Removed extra whitespace before dev_err_probe() according to coding style. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/panel/panel-novatek-nt36672a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c b/drivers/gpu/drm/panel

[PATCH] dt-bindings: panel: ilitek, ili9341: Fix the warning-wrong indentation: expected 10 but found 8 (indentation)

2021-09-07 Thread Cai Huoqing
Fix indentation for the warning- wrong indentation: expected 10 but found 8 (indentation) Signed-off-by: Cai Huoqing --- .../devicetree/bindings/display/panel/ilitek,ili9341.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display

[PATCH] drm: panel: tl070wsh30: Add a single error handling block at the end of the function.

2021-09-06 Thread Cai Huoqing
A single error handling block at the end of the function could be brought in to make code a little more concise. Signed-off-by: Cai Huoqing --- drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH] backlight: l4f00242t03: Add a single error handling block at the end of the function.

2021-09-06 Thread Cai Huoqing
A single error handling block at the end of the function could be brought in to make code a little more concise. Signed-off-by: Cai Huoqing --- drivers/video/backlight/l4f00242t03.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/video/backlight

[PATCH v2] drm/tidss: Make use of the helper macro SET_RUNTIME_PM_OPS()

2021-09-06 Thread Cai Huoqing
Use the helper macro SET_RUNTIME_PM_OPS() instead of the verbose operators ".runtime_suspend/.runtime_resume", because the SET_RUNTIME_PM_OPS() is a nice helper macro that could be brought in to make code a little more concise. Signed-off-by: Cai Huoqing --- v1->v2: *Remove &quo

[PATCH] drm/v3d: Make use of the helper function devm_platform_ioremap_resource_byname()

2021-09-01 Thread Cai Huoqing
Use the devm_platform_ioremap_resource_byname() helper instead of calling platform_get_resource_byname() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/v3d/v3d_drv.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm

[PATCH] drm/vc4: Make use of the helper function devm_platform_ioremap_resource()

2021-08-31 Thread Cai Huoqing
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/vc4/vc4_drv.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.c

[PATCH] drm/tegra: Make use of the helper function devm_platform_ioremap_resource()

2021-08-31 Thread Cai Huoqing
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/tegra/dpaux.c | 4 +--- drivers/gpu/drm/tegra/dsi.c | 4 +--- drivers/gpu/drm/tegra/hdmi.c | 4 +--- drivers/gpu

[PATCH] drm/sun4i: Make use of the helper function devm_platform_ioremap_resource()

2021-08-31 Thread Cai Huoqing
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +--- drivers/gpu/drm/sun4i/sun4i_frontend.c | 4 +--- drivers/gpu/drm/sun4i

[PATCH] drm/shmobile: Make use of the helper function devm_platform_ioremap_resource()

2021-08-31 Thread Cai Huoqing
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm

[PATCH] drm/rockchip: Make use of the helper function devm_platform_ioremap_resource()

2021-08-31 Thread Cai Huoqing
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +--- drivers/gpu/drm/rockchip/inno_hdmi.c | 4 +--- drivers/gpu/drm/rockchip

  1   2   >