Re: [PATCH 1/2] drm/bridge: imx: fix mixed module-builtin object

2023-06-03 Thread Laurent Pinchart
Hi Yamada-san, Thank you for the patch. On Sun, Jun 04, 2023 at 02:07:46AM +0900, Masahiro Yamada wrote: > With CONFIG_DRM_IMX8QM_LDB=m and CONFIG_DRM_IMX8QXP_LDB=y (or vice > versa), imx-ldb-helper.o is linked to a module and also to vmlinux > even though the expected CFLAGS are different betwee

[PATCH v2 2/2] drm/msm/dpu: use PINGPONG_NONE to unbind WB from PP

2023-06-03 Thread Dmitry Baryshkov
Currently the driver passes the PINGPONG index to dpu_hw_wb_ops::bind_pingpong_blk() callback and uses separate boolean flag to tell whether WB should be bound or unbound. Simplify this by passing PINGPONG_NONE in case of unbinding and drop the flag completely. Suggested-by: Marijn Suijten Signed

[PATCH v2 1/2] drm/msm/dpu: use PINGPONG_NONE to unbind INTF from PP

2023-06-03 Thread Dmitry Baryshkov
Currently the driver passes the PINGPONG index to dpu_hw_intf_ops::bind_pingpong_blk() callback and uses separate boolean flag to tell whether INTF should be bound or unbound. Simplify this by passing PINGPONG_NONE in case of unbinding and drop the flag completely. Signed-off-by: Dmitry Baryshkov

Re: [PATCH v14 00/10] add DSC 1.2 dpu supports

2023-06-03 Thread Dmitry Baryshkov
On Thu, 25 May 2023 10:40:48 -0700, Kuogee Hsieh wrote: > This series adds the DPU side changes to support DSC 1.2 encoder. This > was validated with both DSI DSC 1.2 panel and DP DSC 1.2 monitor. > The DSI and DP parts will be pushed later on top of this change. > This seriel is rebase on [1], [

Re: [PATCH] drm/msm: Use struct fb_info.screen_buffer

2023-06-03 Thread Dmitry Baryshkov
On Mon, 22 May 2023 21:17:01 +0200, Thomas Zimmermann wrote: > The fbdev framebuffer is in system memory. Store the address in > the field 'screen_buffer'. Fixes the following sparse warning. > > ../drivers/gpu/drm/msm/msm_fbdev.c:124:26: warning: incorrect type in > assignment (different addre

Re: [PATCH] drm/msm: Remove unnecessary (void*) conversions

2023-06-03 Thread Dmitry Baryshkov
On Mon, 22 May 2023 09:32:13 +0800, Su Hui wrote: > Pointer variables of (void*) type do not require type cast. > > Applied, thanks! [1/1] drm/msm: Remove unnecessary (void*) conversions https://gitlab.freedesktop.org/lumag/msm/-/commit/eea9cf72b718 Best regards, -- Dmitry Baryshkov

Re: [PATCH v3 0/7] drm/msm/dpu: simplify DPU encoder init

2023-06-03 Thread Dmitry Baryshkov
On Thu, 01 Jun 2023 20:22:29 +0300, Dmitry Baryshkov wrote: > Rework dpu_encoder initialization code, simplifying calling sequences > and separating common init parts. > > Changes since v2: > - Rebased on top of msm-next-lumag branch > > Changes since v1: > - Withdrawn two pathes for a later co

Re: [PATCH 1/3] drm/msm/dp: Drop now unused dp_hpd module

2023-06-03 Thread Dmitry Baryshkov
On Sun, 14 May 2023 20:02:54 -0700, Bjorn Andersson wrote: > The dp_hpd module is a remnant from the downstream design and is now > completely unused. Drop it and all references to it. > > Applied, thanks! [2/3] drm/msm/dp: Clean up logs dp_power module https://gitlab.freedesktop.org/lu

Re: [PATCH v3 0/7] Display support for MSM8226

2023-06-03 Thread Dmitry Baryshkov
On Thu, 01 Jun 2023 19:00:07 +0200, Luca Weiss wrote: > This series adds the required configs for MDP5 and DSI blocks that are > needed for MDSS on MSM8226. Finally we can add the new nodes into the > dts. > > Tested on apq8026-lg-lenok and msm8926-htc-memul. > > > [...] Applied, thanks! [1/

Re: [PATCH v3 0/9] drm/msm/dpu: simplify QoS/CDP programming

2023-06-03 Thread Dmitry Baryshkov
On Fri, 19 May 2023 01:22:29 +0300, Dmitry Baryshkov wrote: > Merge SSPP and WB code programming QoS and CDP. This allows us to drop > intermediate structures and duplicate code. > > Changes since v2: > - Moved SSPP_VIG_CSC_10_OP_MODE close to other CSC10 defines (Jeykumar) > > Changes since v1

Re: [PATCH v2 0/3] arm64: dts: qcom: add DP Controller to SM8550 DTS

2023-06-03 Thread Dmitry Baryshkov
On Thu, 01 Jun 2023 12:09:46 +0200, Neil Armstrong wrote: > The DP output is shared with the USB3 SuperSpeed lanes and is > usually connected to an USB-C port which Altmode is controlled > by the PMIC Glink infrastructure. > > DT changes tying the DP controller to the USB-C port on the QRD > boa

Re: [PATCH v2] drm/msm/dp: remove most of usbpd-related remains

2023-06-03 Thread Dmitry Baryshkov
On Sat, 20 May 2023 21:20:50 +0300, Dmitry Baryshkov wrote: > Remove most of remains of downstream usbpd code. Mainline kernel uses > different approach for managing Type-C / USB-PD, so this remains unused. > > Applied, thanks! [1/1] drm/msm/dp: remove most of usbpd-related remains http

Re: [PATCH v2 1/3] drm/msm/dpu: drop dpu_encoder_phys_ops::late_register()

2023-06-03 Thread Dmitry Baryshkov
On Sun, 21 May 2023 22:22:28 +0300, Dmitry Baryshkov wrote: > This callback has been unused since the driver being added. Drop it now. > > Applied, thanks! [1/3] drm/msm/dpu: drop dpu_encoder_phys_ops::late_register() https://gitlab.freedesktop.org/lumag/msm/-/commit/95666ca7431c [2/3]

Re: [PATCH v2 1/2] drm/msm/dsi: remove extra call to dsi_get_pclk_rate()

2023-06-03 Thread Dmitry Baryshkov
On Sat, 20 May 2023 23:01:02 +0300, Dmitry Baryshkov wrote: > In dsi_calc_clk_rate_v2() there is no need to call dsi_get_pclk_rate(). > This function has just been called (from dsi_calc_pclk()) and its > result is stored at msm_host->pixel_clk_rate. Use this variable > directly. > > Applied, t

Re: [PATCH v2] drm/msm/dpu: clean up dpu_kms_get_clk_rate() returns

2023-06-03 Thread Dmitry Baryshkov
On Fri, 26 May 2023 14:51:59 +0300, Dan Carpenter wrote: > Static analysis tools complain about the -EINVAL error code being > stored in an unsigned variable. Let's change this to match > the clk_get_rate() function which is type unsigned long and returns > zero on error. > > Applied, thanks!

Re: [PATCH v3 6/7] drm/msm/dsi: Add phy configuration for MSM8226

2023-06-03 Thread Dmitry Baryshkov
On 01/06/2023 20:00, Luca Weiss wrote: MSM8226 uses a modified PLL lock sequence compared to MSM8974, which is based on the function dsi_pll_enable_seq_m in the msm-3.10 kernel. Worth noting that the msm-3.10 downstream kernel also will try other sequences in case this one doesn't work, but duri

Re: [Freedreno] [PATCH] drm/msm/dpu: re-introduce dpu core revision to the catalog

2023-06-03 Thread Dmitry Baryshkov
On 31/05/2023 21:25, Abhinav Kumar wrote: On 5/31/2023 3:07 AM, Dmitry Baryshkov wrote: On 31/05/2023 06:05, Abhinav Kumar wrote: On 5/30/2023 7:53 PM, Dmitry Baryshkov wrote: On Wed, 31 May 2023 at 03:54, Abhinav Kumar wrote: With [1] dpu core revision was dropped in favor of using the

Re: [PATCH v14 02/10] drm/msm/dpu: add DSC blocks to the catalog of MSM8998 and SC8180X

2023-06-03 Thread Dmitry Baryshkov
On 25/05/2023 20:40, Kuogee Hsieh wrote: From: Abhinav Kumar Some platforms have DSC blocks which have not been declared in the catalog. Complete DSC 1.1 support for all platforms by adding the missing blocks to MSM8998 and SC8180X. Changes in v9: -- add MSM8998 and SC8180x to commit title Ch

Re: [PATCH] drm/msm: Use struct fb_info.screen_buffer

2023-06-03 Thread Dmitry Baryshkov
On 22/05/2023 22:17, Thomas Zimmermann wrote: The fbdev framebuffer is in system memory. Store the address in the field 'screen_buffer'. Fixes the following sparse warning. ../drivers/gpu/drm/msm/msm_fbdev.c:124:26: warning: incorrect type in assignment (different address spaces) ../drivers/gpu

Re: [PATCH 3/3] drm/msm/dp: Clean up pdev/dev duplication in dp_power

2023-06-03 Thread Dmitry Baryshkov
On 21/05/2023 06:53, Bjorn Andersson wrote: On Sat, May 20, 2023 at 04:26:59AM +0300, Dmitry Baryshkov wrote: On 15/05/2023 06:02, Bjorn Andersson wrote: The dp_power module keeps track of both the DP controller's struct platform_device and struct device - with the prior pulled out of the dp_pa

Re: PROBLEM: AMD Ryzen 9 7950X iGPU - Blinking Issue

2023-06-03 Thread Felix Richter
Hi Guys, sorry for the silence from my side. I had a lot of things to take care of after returning from vacation. Also I had to wait on the zfs modules to be updated to support kernel 6.3 for further testing. The bad news is that I am still experiencing issues. I have been able to get a repr

Re: [PATCH v3 1/3] dt-bindings: phy: add PHY_TYPE_CDPHY definition

2023-06-03 Thread Krzysztof Kozlowski
On 24/05/2023 10:30, Julien Stephan wrote: > Add definition for CDPHY phy type that can be configured in either D-PHY > mode or C-PHY mode > > Signed-off-by: Julien Stephan > --- > include/dt-bindings/phy/phy.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/dt-bindings/phy/phy

WARNING: CPU: 5 PID: 1464 at drivers/gpu/drm/ttm/ttm_bo.c:326 ttm_bo_release+0x27e/0x2d0 [ttm]

2023-06-03 Thread Borislav Petkov
Hi, this below triggers with the latest Linus tree: 51f269a6ecc7 ("Merge tag 'probes-fixes-6.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace") ... [ 16.173593] [drm] radeon kernel modesetting enabled. [ 16.173743] radeon :29:00.0: vgaarb: deactivate vga console

[PATCH 2/2] drm/bridge: imx: turn imx8{qm, qxp}-ldb into single-object modules

2023-06-03 Thread Masahiro Yamada
With the previous fix, these modules are built from a single C file. Rename the source files so they match the module names. Signed-off-by: Masahiro Yamada --- drivers/gpu/drm/bridge/imx/Makefile | 4 drivers/gpu/drm/bridge/imx/{imx8qm-ldb-drv.c => imx8qm-ldb.c}

[PATCH 1/2] drm/bridge: imx: fix mixed module-builtin object

2023-06-03 Thread Masahiro Yamada
With CONFIG_DRM_IMX8QM_LDB=m and CONFIG_DRM_IMX8QXP_LDB=y (or vice versa), imx-ldb-helper.o is linked to a module and also to vmlinux even though the expected CFLAGS are different between builtins and modules. This is the same situation as fixed by commit 637a642f5ca5 ("zstd: Fixing mixed module-b

Re: [PATCH v7 0/7] drm/etnaviv: add pci device driver support

2023-06-03 Thread Sui Jingfeng
Hi, Sorry for sending duplicated patches.  Please don't get angry by me. I'm just sending a patch set, which contain 7 patch. The command is as following: git send-email V7/ --to "Lucas Stach " --to "Christian Gmeiner " --to "Daniel Vetter " --to "Bjorn Helgaas " --cc "linux-ker...@vger.

[PATCH v7 6/7] drm/etnaviv: add driver support for the PCI devices

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng This patch adds PCI driver support on top of what already have. Take the GC1000 in LS7A1000/LS2K1000 as the first instance of the PCI device driver. There is only one GPU core for the GC1000 in the LS7A1000 and LS2K1000. Therefore, component frameworks can be avoided. Signed-o

[PATCH v7 7/7] drm/etnaviv: add support for the dma coherent device

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng Loongson CPUs maintain cache coherency by hardware, which means that the data in the CPU cache is identical to the data in main system memory. As for the peripheral device, most of Loongson chips chose to define the peripherals as DMA coherent by default, device drivers do not

[PATCH v7 5/7] drm/etnaviv: allow bypass component framework

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng Adds another code path to allow bypass component frameworks, A platform with a single GPU core could probably try the non-component code path. This patch is for code sharing, no functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 47 +++

[PATCH v7 4/7] drm/etnaviv: add helpers for private data construction and destruction

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng struct etnaviv_drm_private contains a lot of common resources that are shared by all GPUs. This patch introduces two dedicated functions, which is for the construction and destruction of instances of this structure.      The idea is to avoid leaking its members outside. The err

[PATCH v7 2/7] drm/etnaviv: add a dedicated function to get various clocks

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI GPUs. So don't rage quit if there is no CLK subsystem. For the GPU in LS7A1000 and LS2K1000, the working frequency of the GPU is tuned by configurin

[PATCH v7 3/7] drm/etnaviv: add dedicated functions to create and destroy platform devices

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng Also rename the virtual master platform device as etnaviv_platform_device, for better reflection that it is a platform device, not a DRM device. Another benefit is that we no longer need to call of_node_put() for three different cases, Instead, we only need to call it once. S

[PATCH v7 0/7] drm/etnaviv: add pci device driver support

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng There is a Vivante GC1000 (v5037) in LS2K1000 and LS7A1000, this GPU is a PCI device, and it has 2D and 3D cores in the same core. Thus, this patch set is trying to add PCI device driver support to etnaviv. v6: * Fix build issue on system without CONFIG_PCI enabled v7:

[PATCH v7 1/7] drm/etnaviv: add a dedicated function to register an irq handler

2023-06-03 Thread Sui Jingfeng
From: Sui Jingfeng Because getting IRQ from a device is platform-dependent, PCI devices have different methods for getting an IRQ. This patch is a preparation patch to extend the driver for the PCI device support. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 +

[PATCH v7 5/7] drm/etnaviv: allow bypass component framework

2023-06-03 Thread Sui Jingfeng
Adds another code path to allow bypass component frameworks, A platform with a single GPU core could probably try the non-component code path. This patch is for code sharing, no functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 47 ++- drivers

[PATCH v7 2/7] drm/etnaviv: add a dedicated function to get various clocks

2023-06-03 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI GPUs. So don't rage quit if there is no CLK subsystem. For the GPU in LS7A1000 and LS2K1000, the working frequency of the GPU is tuned by configuring the PLL register di

[PATCH v7 1/7] drm/etnaviv: add a dedicated function to register an irq handler

2023-06-03 Thread Sui Jingfeng
Because getting IRQ from a device is platform-dependent, PCI devices have different methods for getting an IRQ. This patch is a preparation patch to extend the driver for the PCI device support. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 --

[PATCH v7 0/7] drm/etnaviv: add pci device driver support

2023-06-03 Thread Sui Jingfeng
There is a Vivante GC1000 (v5037) in LS2K1000 and LS7A1000, this GPU is a PCI device, and it has 2D and 3D cores in the same core. Thus, this patch set is trying to add PCI device driver support to etnaviv. v6: * Fix build issue on system without CONFIG_PCI enabled v7: * Add a sepa

[PATCH v7 6/7] drm/etnaviv: add driver support for the PCI devices

2023-06-03 Thread Sui Jingfeng
This patch adds PCI driver support on top of what already have. Take the GC1000 in LS7A1000/LS2K1000 as the first instance of the PCI device driver. There is only one GPU core for the GC1000 in the LS7A1000 and LS2K1000. Therefore, component frameworks can be avoided. Signed-off-by: Sui Jingfeng

[PATCH v7 3/7] drm/etnaviv: add dedicated functions to create and destroy platform devices

2023-06-03 Thread Sui Jingfeng
Also rename the virtual master platform device as etnaviv_platform_device, for better reflection that it is a platform device, not a DRM device. Another benefit is that we no longer need to call of_node_put() for three different cases, Instead, we only need to call it once. Signed-off-by: Sui Jin

[PATCH v7 4/7] drm/etnaviv: add helpers for private data construction and destruction

2023-06-03 Thread Sui Jingfeng
struct etnaviv_drm_private contains a lot of common resources that are shared by all GPUs. This patch introduces two dedicated functions, which is for the construction and destruction of instances of this structure.      The idea is to avoid leaking its members outside. The error handling code can

[PATCH v7 6/7] drm/etnaviv: add driver support for the PCI devices

2023-06-03 Thread Sui Jingfeng
This patch adds PCI driver support on top of what already have. Take the GC1000 in LS7A1000/LS2K1000 as the first instance of the PCI device driver. There is only one GPU core for the GC1000 in the LS7A1000 and LS2K1000. Therefore, component frameworks can be avoided. Signed-off-by: Sui Jingfeng

[PATCH v7 5/7] drm/etnaviv: allow bypass component framework

2023-06-03 Thread Sui Jingfeng
Adds another code path to allow bypass component frameworks, A platform with a single GPU core could probably try the non-component code path. This patch is for code sharing, no functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 47 ++- drivers

[PATCH v7 4/7] drm/etnaviv: add helpers for private data construction and destruction

2023-06-03 Thread Sui Jingfeng
struct etnaviv_drm_private contains a lot of common resources that are shared by all GPUs. This patch introduces two dedicated functions, which is for the construction and destruction of instances of this structure.      The idea is to avoid leaking its members outside. The error handling code can

[PATCH v7 2/7] drm/etnaviv: add a dedicated function to get various clocks

2023-06-03 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI GPUs. So don't rage quit if there is no CLK subsystem. For the GPU in LS7A1000 and LS2K1000, the working frequency of the GPU is tuned by configuring the PLL register di

[PATCH v7 0/7] drm/etnaviv: add pci device driver support

2023-06-03 Thread Sui Jingfeng
There is a Vivante GC1000 (v5037) in LS2K1000 and LS7A1000, this GPU is a PCI device, and it has 2D and 3D cores in the same core. Thus, this patch set is trying to add PCI device driver support to etnaviv. v6: * Fix build issue on system without CONFIG_PCI enabled v7: * Add a sepa

[PATCH v7 1/7] drm/etnaviv: add a dedicated function to register an irq handler

2023-06-03 Thread Sui Jingfeng
Because getting IRQ from a device is platform-dependent, PCI devices have different methods for getting an IRQ. This patch is a preparation patch to extend the driver for the PCI device support. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 --

[PATCH v7 3/7] drm/etnaviv: add dedicated functions to create and destroy platform devices

2023-06-03 Thread Sui Jingfeng
Also rename the virtual master platform device as etnaviv_platform_device, for better reflection that it is a platform device, not a DRM device. Another benefit is that we no longer need to call of_node_put() for three different cases, Instead, we only need to call it once. Signed-off-by: Sui Jin

[PATCH v7 0/7] drm/etnaviv: add pci device driver support

2023-06-03 Thread Sui Jingfeng
There is a Vivante GC1000 (v5037) in LS2K1000 and LS7A1000, this GPU is a PCI device, and it has 2D and 3D cores in the same core. Thus, this patch set is trying to add PCI device driver support to etnaviv. v6: * Fix build issue on system without CONFIG_PCI enabled v7: * Add a sepa

[PATCH v7 5/7] drm/etnaviv: allow bypass component framework

2023-06-03 Thread Sui Jingfeng
Adds another code path to allow bypass component frameworks, A platform with a single GPU core could probably try the non-component code path. This patch is for code sharing, no functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 47 ++- drivers

[PATCH v7 3/7] drm/etnaviv: add dedicated functions to create and destroy platform devices

2023-06-03 Thread Sui Jingfeng
Also rename the virtual master platform device as etnaviv_platform_device, for better reflection that it is a platform device, not a DRM device. Another benefit is that we no longer need to call of_node_put() for three different cases, Instead, we only need to call it once. Signed-off-by: Sui Jin

[PATCH v7 1/7] drm/etnaviv: add a dedicated function to register an irq handler

2023-06-03 Thread Sui Jingfeng
Because getting IRQ from a device is platform-dependent, PCI devices have different methods for getting an IRQ. This patch is a preparation patch to extend the driver for the PCI device support. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 --

[PATCH v7 2/7] drm/etnaviv: add a dedicated function to get various clocks

2023-06-03 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI GPUs. So don't rage quit if there is no CLK subsystem. For the GPU in LS7A1000 and LS2K1000, the working frequency of the GPU is tuned by configuring the PLL register di

[PATCH v7 4/7] drm/etnaviv: add helpers for private data construction and destruction

2023-06-03 Thread Sui Jingfeng
struct etnaviv_drm_private contains a lot of common resources that are shared by all GPUs. This patch introduces two dedicated functions, which is for the construction and destruction of instances of this structure.      The idea is to avoid leaking its members outside. The error handling code can

[PATCH v7 3/7] drm/etnaviv: add dedicated functions to create and destroy platform devices

2023-06-03 Thread Sui Jingfeng
Also rename the virtual master platform device as etnaviv_platform_device, for better reflection that it is a platform device, not a DRM device. Another benefit is that we no longer need to call of_node_put() for three different cases, Instead, we only need to call it once. Signed-off-by: Sui Jin

[PATCH v7 4/7] drm/etnaviv: add helpers for private data construction and destruction

2023-06-03 Thread Sui Jingfeng
struct etnaviv_drm_private contains a lot of common resources that are shared by all GPUs. This patch introduces two dedicated functions, which is for the construction and destruction of instances of this structure.      The idea is to avoid leaking its members outside. The error handling code can

[PATCH v7 0/7] drm/etnaviv: add pci device driver support

2023-06-03 Thread Sui Jingfeng
There is a Vivante GC1000 (v5037) in LS2K1000 and LS7A1000, this GPU is a PCI device, and it has 2D and 3D cores in the same core. Thus, this patch set is trying to add PCI device driver support to etnaviv. v6: * Fix build issue on system without CONFIG_PCI enabled v7: * Add a sepa

[PATCH v7 1/7] drm/etnaviv: add a dedicated function to register an irq handler

2023-06-03 Thread Sui Jingfeng
Because getting IRQ from a device is platform-dependent, PCI devices have different methods for getting an IRQ. This patch is a preparation patch to extend the driver for the PCI device support. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 --

[PATCH v7 5/7] drm/etnaviv: allow bypass component framework

2023-06-03 Thread Sui Jingfeng
Adds another code path to allow bypass component frameworks, A platform with a single GPU core could probably try the non-component code path. This patch is for code sharing, no functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 47 ++- drivers

[PATCH v7 2/7] drm/etnaviv: add a dedicated function to get various clocks

2023-06-03 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI GPUs. So don't rage quit if there is no CLK subsystem. For the GPU in LS7A1000 and LS2K1000, the working frequency of the GPU is tuned by configuring the PLL register di

[PATCH v2] drm/radeon: fix race condition UAF in radeon_gem_set_domain_ioctl

2023-06-03 Thread Min Li
Userspace can race to free the gobj(robj converted from), robj should not be accessed again after drm_gem_object_put, otherwith it will result in use-after-free. Signed-off-by: Min Li --- Changes in v2: - Remove unused robj, avoid compile complain drivers/gpu/drm/radeon/radeon_gem.c | 4 +--- 1

[PATCH v2 0/6] Add display support on the stm32f746-disco board

2023-06-03 Thread Dario Binacchi
The series adds support for the display on the stm32f746-disco board, along with a generic patch that adds the "bpp" parameter to the stm-drm module. The intention is to allow users to size, within certain limits, the memory footprint required by the framebuffer. Changes in v2: - Add 'Acked-by' ta

[PATCH] drm/amd/display: fix compilation error due to shifting negative value

2023-06-03 Thread GONG, Ruiqi
Currently compiling linux-next with allmodconfig triggers the following error: ./drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h: In function ‘dc_fixpt_truncate’: ./drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:528:22: error: left shift of negative value [-Werror=shift-ne

[PATCH v2 5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel

2023-06-03 Thread Dario Binacchi
Add support for Rocktech RK043FN48H 4.3" (480x272) LCD-TFT panel. Signed-off-by: Dario Binacchi Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202306020343.jntwem0p-...@intel.com/ --- Changes in v2: - Fix build warning reported by kernel test robot. - Add 'Report

[PATCH v2 4/6] dt-bindings: display: simple: add Rocktech RK043FN48H

2023-06-03 Thread Dario Binacchi
Add compatible to panel-simple for Rocktech Displays Limited RK043FN48H 4.3" 480x272 LCD-TFT panel. Signed-off-by: Dario Binacchi Acked-by: Conor Dooley --- Changes in v2: - Add 'Acked-by' tag of Conor Dooley. .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file cha

[PATCH v2 6/6] drm/stm: add an option to change FB bpp

2023-06-03 Thread Dario Binacchi
Boards that use the STM32F{4,7} series have limited amounts of RAM. The added parameter allows users to size, within certain limits, the memory footprint required by the framebuffer. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/gpu/drm/stm/drv.c | 8 +++- 1 file changed