Re: [Intel-gfx] [PATCH] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-06-07 Thread Andrzej Hajda
On 06.06.2023 05:00, Zhanjun Dong wrote: This attemps to avoid circular locing dependency between flush delayed work and intel_gt_reset. WARNING: possible circular locking dependency detected 6.4.0-rc1-drmtip_1340-g31e3463b0edb+ #1 Not tainted

Re: [PATCH v3 3/3] drm/panel-fannal-c3004: Add fannal c3004 DSI panel

2023-06-07 Thread Krzysztof Kozlowski
On 07/06/2023 15:38, Paulo Pavacic wrote: > Hello, > > uto, 6. lip 2023. u 16:45 Krzysztof Kozlowski > napisao je: >> >> On 06/06/2023 16:07, Paulo Pavacic wrote: >>> Fannal C3004 is a 480x800 display made by fannal that requires >>> DCS initialization sequences. >>> >>> Signed-off-by: Paulo

Re: [PATCH] drm/panel-edp: Add AUO B116XAB01.4 edp panel entry

2023-06-07 Thread Doug Anderson
Hi, On Wed, Jun 7, 2023 at 3:23 AM Laura Nao wrote: > > Add a panel entry for the AUO B116XAB01.4 edp panel, found in the Acer > Chromebook Spin 311 (CP311-3H) laptop. > > Signed-off-by: Laura Nao > --- > drivers/gpu/drm/panel/panel-edp.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH v3 3/3] drm/panel-fannal-c3004: Add fannal c3004 DSI panel

2023-06-07 Thread Paulo Pavacic
Hello, uto, 6. lip 2023. u 16:45 Krzysztof Kozlowski napisao je: > > On 06/06/2023 16:07, Paulo Pavacic wrote: > > Fannal C3004 is a 480x800 display made by fannal that requires > > DCS initialization sequences. > > > > Signed-off-by: Paulo Pavacic > > --- > > v4 changelog: > > - formatting

Re: [PATCH V8 0/7] drm: bridge: samsung-dsim: Support variable clocking

2023-06-07 Thread Adam Ford
On Wed, Jun 7, 2023 at 8:15 AM Rasmus Villemoes wrote: > > On 26/05/2023 05.05, Adam Ford wrote: > > This series fixes the blanking pack size and the PMS calculation. It then > > adds support to allows the DSIM to dynamically DPHY clocks, and support > > non-burst mode while allowing the removal

Re: [PATCH V8 0/7] drm: bridge: samsung-dsim: Support variable clocking

2023-06-07 Thread Rasmus Villemoes
On 26/05/2023 05.05, Adam Ford wrote: > This series fixes the blanking pack size and the PMS calculation. It then > adds support to allows the DSIM to dynamically DPHY clocks, and support > non-burst mode while allowing the removal of the hard-coded clock values > for the PLL for imx8m

Re: [PATCH] drm/panel-edp: Add AUO B116XAB01.4 edp panel entry

2023-06-07 Thread AngeloGioacchino Del Regno
Il 07/06/23 12:21, Laura Nao ha scritto: Add a panel entry for the AUO B116XAB01.4 edp panel, found in the Acer Chromebook Spin 311 (CP311-3H) laptop. Signed-off-by: Laura Nao Reviewed-by: AngeloGioacchino Del Regno

[PATCH 4/8] drm/etnaviv: make clock handling symetric between runtime resume and suspend

2023-06-07 Thread Lucas Stach
Currently the clock is enabled in the runtime resume function, but are disabled a level further down in the callstack in the suspend function. Move the clock disable into the suspend function to make handling symmetrical between resume and suspend. Signed-off-by: Lucas Stach ---

[PATCH 7/8] drm/etnaviv: drop GPU initialized property

2023-06-07 Thread Lucas Stach
Now that it is only used to track the driver internal state of the MMU global and cmdbuf objects, we can get rid of this property by making the free/finit functions of those objects safe to call on an uninitialized object. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c

[PATCH 8/8] drm/etnaviv: expedited MMU fault handling

2023-06-07 Thread Lucas Stach
The GPU is halted when it hits a MMU exception, so there is no point in waiting for the job timeout to expire or try to work out if the GPU is still making progress in the timeout handler, as we know that the GPU won't make any more progress. Signed-off-by: Lucas Stach ---

[PATCH 6/8] drm/etnaviv: better track GPU state

2023-06-07 Thread Lucas Stach
Instead of only tracking if the FE is running, use a enum to better describe the various states the GPU can be in. This allows some additional validation to make sure that functions that expect a certain GPU state are only called when the GPU is actually in that state. Signed-off-by: Lucas Stach

[PATCH 1/8] drm/etnaviv: move down etnaviv_gpu_recover_hang() in file

2023-06-07 Thread Lucas Stach
So it can use the event_free function without adding another forward declaration. No functional change. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 88 +-- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git

[PATCH 3/8] drm/etnaviv: move runtime PM handling to events

2023-06-07 Thread Lucas Stach
Conceptually events are the right abstraction to handle the GPU runtime PM state: as long as any event is pending the GPU can not be idle. Events are also properly freed and reallocated when the GPU has been reset after a hang. Signed-off-by: Lucas Stach ---

[PATCH 5/8] drm/etnaviv: avoid runtime PM usage in etnaviv_gpu_bind

2023-06-07 Thread Lucas Stach
Nothing in this callpath actually touches the GPU, so there is no reason to get it out of suspend state here. Only if runtime PM isn't enabled at all we must make sure to enable the clocks, so the GPU init routine can access the GPU later on. This also removes the need to guard against the state

[PATCH 2/8] drm/etnaviv: free events the usual way in recover worker

2023-06-07 Thread Lucas Stach
Clearing the whole bitmap at once is only a minor optimization in a path that should be extremely cold. Free the events by calling event_free() instead of directly manipulating the completion count and event bitmap. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 3 +-- 1

[PATCH] drm/etnaviv: add HWDB entry for GC520 r5341 c204

2023-06-07 Thread Lucas Stach
This is the 2D GPU found on the i.MX8MP SoC. Feature bits taken from the downstream kernel driver 6.4.3.p4.4. Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 31 ++ 1 file changed, 31 insertions(+) diff --git

[PATCH] drm/etnaviv: slow down FE idle polling

2023-06-07 Thread Lucas Stach
Currently the FE is spinning way too fast when polling for new work in the FE idleloop. As each poll fetches 16 bytes from memory, a GPU running at 1GHz with the current setting of 200 wait cycle between fetches causes 80 MB/s of memory traffic just to check for new work when the GPU is otherwise

[PATCH] drm/etnaviv: disable MLCG and pulse eater on GPU reset

2023-06-07 Thread Lucas Stach
Module level clock gating and the pulse eater might interfere with the GPU reset, as they both have the potential to stop the clock and thus reset propagation to parts of the GPU. Signed-off-by: Lucas Stach --- I'm not aware of any cases where this would have been an issue, but it is what the

Re: [PATCH 2/2] drm: bridge: tc358767: give VSDELAY some positive value

2023-06-07 Thread Lucas Stach
Am Freitag, dem 02.06.2023 um 23:34 +0200 schrieb Marek Vasut: > On 6/2/23 21:15, Lucas Stach wrote: > > From: David Jander > > > > The documentation is not clear about how this delay works. > > Empirical tests have shown that with a VSDELAY of 0, the first > > scanline is not properly formatted

Re: [RESEND PATCH v2 3/6] ARM: dts: stm32: support display on stm32f746-disco board

2023-06-07 Thread Dario Binacchi
Hi Jagan, On Wed, Jun 7, 2023 at 8:43 AM Jagan Teki wrote: > > On Wed, Jun 7, 2023 at 12:01 PM Dario Binacchi > wrote: > > > > Add support to Rocktech RK043FN48H display on stm32f746-disco board. > > > > Signed-off-by: Dario Binacchi > > --- > > > > (no changes since v1) > > > >

Re: [PATCH 00/30] fbdev: Make userspace interfaces optional

2023-06-07 Thread Thomas Zimmermann
Am 07.06.23 um 14:06 schrieb Markus Elfring: Modern Linux distrobutions have adopted DRM drivers for graphics output and use fbdev only for the kernel's framebuffer console. Would you like to avoid a typo in subsequent cover letters? Ha! It says 'distrobutions'. Regards, Markus --

Re: [PATCH] drm: gem: add an option for supporting the dma-coherent hardware.

2023-06-07 Thread Maxime Ripard
On Wed, Jun 07, 2023 at 06:30:01PM +0800, Sui Jingfeng wrote: > On 2023/6/7 17:36, Paul Cercueil wrote: > > Hi Sui, > > > > Le mercredi 07 juin 2023 à 13:30 +0800, Sui Jingfeng a écrit : > > > The single map_noncoherent member of struct drm_gem_dma_object may > > > not > > > sufficient for

Re: [PATCH] drm: gem: add an option for supporting the dma-coherent hardware.

2023-06-07 Thread Paul Cercueil
Hi Sui, Le mercredi 07 juin 2023 à 18:30 +0800, Sui Jingfeng a écrit : > Hi, > > > On 2023/6/7 17:36, Paul Cercueil wrote: > > Hi Sui, > > > > Le mercredi 07 juin 2023 à 13:30 +0800, Sui Jingfeng a écrit : > > > The single map_noncoherent member of struct drm_gem_dma_object > > > may > > > not

Re: [PATCH 00/30] fbdev: Make userspace interfaces optional

2023-06-07 Thread Markus Elfring
> Modern Linux distrobutions have adopted DRM drivers for graphics > output and use fbdev only for the kernel's framebuffer console. Would you like to avoid a typo in subsequent cover letters? Regards, Markus

Re: [PATCH 1/1] drm/bridge: Silence error messages upon probe deferral

2023-06-07 Thread Alexander Stein
Hi Laurent, Am Dienstag, 6. Juni 2023, 17:12:29 CEST schrieb Laurent Pinchart: > Hi Alexander, > > Thank you for the patch. > > On Tue, Jun 06, 2023 at 04:48:33PM +0200, Alexander Stein wrote: > > When -EPROBE_DEFER is returned do not raise an error, but silently return > > this error instead.

[PATCH v2] drm/ingenic: Kconfig: select REGMAP and REGMAP_MMIO

2023-06-07 Thread Sui Jingfeng
Otherwise its failed to pass basic compile test on platform without REGMAP_MMIO selected by defconfig make -j$(nproc) ARCH=mips CROSS_COMPILE=mips64el-linux-gnuabi64- SYNCinclude/config/auto.conf.cmd Checking missing-syscalls for N32 CALLscripts/checksyscalls.sh Checking

RE: [PATCH v5 01/11] i2c: Enhance i2c_new_ancillary_device API

2023-06-07 Thread Biju Das
Hi Wolfram, > Subject: Re: [PATCH v5 01/11] i2c: Enhance i2c_new_ancillary_device API > > Hi all, > > sorry for not being able to chime in earlier. > > > In Biju's particular use case, the i2c device responds to two > > addresses, which is the standard i2c ancillary use case. However, > >

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

2023-06-07 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 v8 5/8] drm/etnaviv: allow bypass component framework

2023-06-07 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. Cc: Lucas Stach Cc: Christian Gmeiner Cc: Philipp Zabel Cc: Bjorn Helgaas

[PATCH v8 8/8] drm/etnaviv: add a dedicated function to create the virtual master

2023-06-07 Thread Sui Jingfeng
From: Sui Jingfeng After introducing the etnaviv_of_first_available_node() helper, the creation of the virtual master platform device can also be simplified. So, switch to etnaviv_create_virtual_master() function. Cc: Lucas Stach Cc: Christian Gmeiner Cc: Philipp Zabel Cc: Bjorn Helgaas Cc:

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

2023-06-07 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.

[PATCH v8 6/8] drm/etnaviv: add driver support for the PCI devices

2023-06-07 Thread Sui Jingfeng
From: Sui Jingfeng This patch adds PCI driver support on top of what we 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. Cc:

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

2023-06-07 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

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

2023-06-07 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 support. For the GPU in LS7A1000 and LS2K1000, the working frequency of the GPU is tuned by

[PATCH v8 0/8] drm/etnaviv: add pci device driver support

2023-06-07 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

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

2023-06-07 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. Cc: Lucas Stach Cc: Christian Gmeiner Cc: Philipp Zabel Cc: Bjorn Helgaas Cc:

Re: [PATCH] drm: gem: add an option for supporting the dma-coherent hardware.

2023-06-07 Thread Sui Jingfeng
Hi, On 2023/6/7 17:36, Paul Cercueil wrote: Hi Sui, Le mercredi 07 juin 2023 à 13:30 +0800, Sui Jingfeng a écrit : The single map_noncoherent member of struct drm_gem_dma_object may not sufficient for describing the backing memory of the GEM buffer object. Especially on dma-coherent

Re: [PATCH] drm/ingenic: Kconfig: select REGMAP and REGMAP_MMIO

2023-06-07 Thread Sui Jingfeng
Ok, thanks On 2023/6/7 17:46, Paul Cercueil wrote: Hi Sui, Le mercredi 07 juin 2023 à 15:22 +0800, Sui Jingfeng a écrit : Otherwise its failed to pass basic compile test on platform without REGMAP_MMIO selected by defconfig make -j$(nproc) ARCH=mips CROSS_COMPILE=mips64el-linux-gnuabi64-  

[PATCH] drm/panel-edp: Add AUO B116XAB01.4 edp panel entry

2023-06-07 Thread Laura Nao
Add a panel entry for the AUO B116XAB01.4 edp panel, found in the Acer Chromebook Spin 311 (CP311-3H) laptop. Signed-off-by: Laura Nao --- drivers/gpu/drm/panel/panel-edp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c

Re: [PATCH v3 2/3] dt-bindings: display: panel: add fannal,c3004

2023-06-07 Thread Krzysztof Kozlowski
On 07/06/2023 11:29, Paulo Pavacic wrote: > Hello Krzysztof, > > uto, 6. lip 2023. u 16:43 Krzysztof Kozlowski > napisao je: >> >> On 06/06/2023 16:07, Paulo Pavacic wrote: >>> Added fannal to vendor-prefixes and dt bindings for Fannal C3004. >>> Fannal C3004 is a 480x800 MIPI DSI Panel which

Re: [PATCH] drm/amdgpu: display/Kconfig: replace leading spaces with tab

2023-06-07 Thread Sui Jingfeng
Hi, On 2023/6/7 17:09, Chen, Guchun wrote: [Public] It's https://gitlab.freedesktop.org/agd5f/linux/-/tree/amd-staging-drm-next?ref_type=heads. Latest patches including yours's will be pushed to this branch after a while. Now I know,  thanks for your kindness reply. Regards, Guchun

Re: [PATCH v5 04/13] drm/connector: Use common colorspace_names array

2023-06-07 Thread Simon Ser
On Tuesday, June 6th, 2023 at 22:25, Harry Wentland wrote: > + if (supported_colorspaces != 0 && (colorspaces & BIT(i)) == 0) This patch actually also introduces a change in behavior: passing no colorspace will make the function advertise all colorspaces. I have a hard time

Re: [PATCH] drm/ingenic: Kconfig: select REGMAP and REGMAP_MMIO

2023-06-07 Thread Paul Cercueil
Hi Sui, Le mercredi 07 juin 2023 à 15:22 +0800, Sui Jingfeng a écrit : > Otherwise its failed to pass basic compile test on platform without > REGMAP_MMIO selected by defconfig > > make -j$(nproc) ARCH=mips CROSS_COMPILE=mips64el-linux-gnuabi64- > >   SYNC    include/config/auto.conf.cmd >  

[PATCH] accel/ivpu: Fix sporadic VPU boot failure

2023-06-07 Thread Stanislaw Gruszka
From: Andrzej Kacprowski Wait for AON bit in HOST_SS_CPR_RST_CLR to return 0 before starting VPUIP power up sequence, otherwise the VPU device may sporadically fail to boot. An error in power up sequence is propagated to the runtime power management - the device will be in an error state until

Re: [PATCH v5 06/13] drm/connector: Allow drivers to pass list of supported colorspaces

2023-06-07 Thread Simon Ser
On Tuesday, June 6th, 2023 at 22:26, Harry Wentland wrote: > -int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector) > +int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector, > + u32 supported_colorspaces) >

Re: [PATCH v2 0/2] Enable GPU on Smaug

2023-06-07 Thread Diogo Ivo
On Tue, May 16, 2023 at 09:28:27AM +0100, Diogo Ivo wrote: > Hello, > > This patch series enables the use of the GM20B GPU in the > Google Pixel C. > > Patch 1 adds the needed regulator DT node for the GPU. > > Patch 2 enables the GPU in the DT. Hello, Gentle ping on these patches. Thank

Re: [PATCH] drm: xlnx: zynqmp_dpsub: Add missing check for dma_set_mask

2023-06-07 Thread Tomi Valkeinen
On 07/06/2023 08:07, Laurent Pinchart wrote: Hello Jiasheng, Thank you for the patch. On Wed, Jun 07, 2023 at 10:05:29AM +0800, Jiasheng Jiang wrote: Add check for dma_set_mask() and return the error if it fails. Fixes: d76271d22694 ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort

Re: [PATCH v5 04/13] drm/connector: Use common colorspace_names array

2023-06-07 Thread Simon Ser
On Tuesday, June 6th, 2023 at 22:25, Harry Wentland wrote: > We an use bitfields to track the support ones for HDMI Typo: "We can"

Re: [PATCH] drm: gem: add an option for supporting the dma-coherent hardware.

2023-06-07 Thread Paul Cercueil
Hi Sui, Le mercredi 07 juin 2023 à 13:30 +0800, Sui Jingfeng a écrit : > The single map_noncoherent member of struct drm_gem_dma_object may > not > sufficient for describing the backing memory of the GEM buffer > object. > > Especially on dma-coherent systems, the backing memory is both cached >

Re: [PATCH v3 2/3] dt-bindings: display: panel: add fannal,c3004

2023-06-07 Thread Paulo Pavacic
Hello Krzysztof, uto, 6. lip 2023. u 16:43 Krzysztof Kozlowski napisao je: > > On 06/06/2023 16:07, Paulo Pavacic wrote: > > Added fannal to vendor-prefixes and dt bindings for Fannal C3004. > > Fannal C3004 is a 480x800 MIPI DSI Panel which requires > > DCS initialization sequences with certain

Re: [Lima] [PATCH] drm/lima: fix sched context destroy

2023-06-07 Thread Christian König
Acked-by: Christian König While you are at it: It's beneficial for drivers to implement the flush callback on the file descriptor. This way you can still send a SIGKILL when a terminating application waits for the entity to be flushed out to the hardware and all the pending jobs are

Re: [PATCH v2] drm/vkms: Add support to 1D gamma LUT

2023-06-07 Thread Pekka Paalanen
On Tue, 6 Jun 2023 17:53:52 -0300 Arthur Grillo wrote: > Support a 1D gamma LUT with interpolation for each color channel on the > VKMS driver. Add a check for the LUT length by creating > vkms_atomic_check(). > > Tested with: > igt@kms_color@gamma > igt@kms_color@legacy-gamma >

Re: [PATCH 21/30] fbdev/sm501fb: Output message with fb_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix case were dev_err() is being called with struct fb_info.dev. > Use fb_err() instead. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 20/30] fbdev/rivafb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Use the hardware device in struct fb_info.device as parent of the > backlight device. Aligns the driver with the rest of the codebase > and prepares fbdev for making struct fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > Cc: Antonino Daplas > ---

Re: [PATCH 19/30] fbdev/rivafb: Reorder backlight and framebuffer init/cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the init and cleanup calls for > both data structures. > > Signed-off-by: Thomas Zimmermann > Cc: Antonino Daplas > --- Reviewed-by: Javier Martinez Canillas -- Best

Re: [PATCH 18/30] fbdev/radeonfb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Use the hardware device in struct fb_info.device as parent of the > backlight device. Aligns the driver with the rest of the codebase > and prepares fbdev for making struct fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > Benjamin Herrenschmidt > ---

Re: [PATCH 17/30] fbdev/radeonfb: Reorder backlight and framebuffer cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the cleanup calls for both data > structures. The init calls are already in the correct order. > > Signed-off-by: Thomas Zimmermann > Cc: Benjamin Herrenschmidt > ---

RE: [PATCH] drm/amdgpu: display/Kconfig: replace leading spaces with tab

2023-06-07 Thread Chen, Guchun
[Public] It's https://gitlab.freedesktop.org/agd5f/linux/-/tree/amd-staging-drm-next?ref_type=heads. Latest patches including yours's will be pushed to this branch after a while. Regards, Guchun > -Original Message- > From: amd-gfx On Behalf Of Sui > Jingfeng > Sent: Wednesday, June

Re: [PATCH 16/30] fbdev/pxa168fb: Do not assign to struct fb_info.dev

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Do not assign the hardware device to struct fb_info.dev. The > field references the fbdev software device, which is unrelated. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core

Re: [2/4] fbdev: imsttfb: Fix exception handling in imsttfb_probe()

2023-06-07 Thread Markus Elfring
> The exception handling was incomplete. > > The label “error” was used to jump to another pointer check despite of > the detail in the implementation of the function “imsttfb_probe” > that it was determined already that the corresponding variable > contained a null pointer. > > * Thus use more

Re: [1/4] fbdev: imsttfb: Fix error handling in init_imstt()

2023-06-07 Thread Markus Elfring
> I think the return value isn't checked at all, so you could > simply return below "-ENODEV" for all cases (instead of "return ret"). > Then you don't need the e_nodev label and can simplify the flow. I noticed that the software evolution was continued with an other change variant. fbdev:

Re: [PATCH 15/30] fbdev/nvidiafb: Use hardware device as backlight parent

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Use the hardware device in struct fb_info.device as parent of the > backlight device. Aligns the driver with the rest of the codebase > and prepares fbdev for making struct fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > Cc: Antonino Daplas > ---

Re: [PATCH 14/30] fbdev/nvidiafb: Reorder backlight and framebuffer init/cleanup

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > The driver's backlight code requires the framebuffer to be > registered. Therefore reorder the init and cleanup calls for > both data structures. > > Signed-off-by: Thomas Zimmermann > Cc: Antonino Daplas > --- Reviewed-by: Javier Martinez Canillas -- Best

Re: [PATCH 13/30] fbdev/metronomefb: Use hardware device for dev_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Replace the use of the fbdev software device, stored in struct > fb_info.dev, with the hardware device from struct fb_info.device > in load_waveform(). The device is only used for printing errors > with dev_err(). > > This change aligns load_waveform() with the rest

Re: [PATCH 12/30] fbdev/mb862xxfb: Output messages with fb_dbg() and fb_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix cases were output helpers are called with struct fb_info.dev. > Use fb_dbg() and fb_err() instead. Prepares fbdev for making struct > fb_info.dev optional. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards,

Re: [PATCH 11/30] fbdev/ep93xx-fb: Do not assign to struct fb_info.dev

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Do not assing the Linux device to struct fb_info.dev. The call to > register_framebuffer() initializes the field to the fbdev device. > Drivers should not override its value. > > Fixes a bug where the driver incorrectly decreases the hardware > device's reference

Re: [PATCH 10/30] fbdev/ep93xx-fb: Output messages with fb_info() and fb_err()

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix cases were output helpers are called with struct fb_info.dev. > Use fb_info() and fb_err() instead. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

[PULL] drm-misc-next

2023-06-07 Thread Thomas Zimmermann
Hi Dave and Daniel, here's the weekly PR for drm-misc-next. Best regards Thomas drm-misc-next-2023-06-07: drm-misc-next for v6.5: UAPI Changes: Cross-subsystem Changes: Core Changes: Driver Changes: * bridge * imx: Fix module linking * tc358762: Support reset GPIO * meson * Add

Re: [PATCH 3/9] drm/verisilicon: Add basic drm driver

2023-06-07 Thread Lucas Stach
Hi Keith, Am Freitag, dem 02.06.2023 um 15:40 +0800 schrieb Keith Zhao: > Add a basic platform driver of the DRM driver for JH7110 SoC. > > Signed-off-by: Keith Zhao > --- > MAINTAINERS | 2 + > drivers/gpu/drm/Kconfig | 2 + > drivers/gpu/drm/Makefile

Re: [PATCH v5 01/11] i2c: Enhance i2c_new_ancillary_device API

2023-06-07 Thread Wolfram Sang
Hi all, sorry for not being able to chime in earlier. > In Biju's particular use case, the i2c device responds to two addresses, > which is the standard i2c ancillary use case. However, what's special Not quite. ancillary is used when a *driver* needs to take care of two addresses. We already

Re: [PATCH 30/30] fbdev: Make support for userspace interfaces configurable

2023-06-07 Thread Geert Uytterhoeven
Hi Thomas, Thanks for your patch! On Mon, Jun 5, 2023 at 4:48 PM Thomas Zimmermann wrote: > Add Kconfig option CONFIG_FB_DEVICE and make the virtual fbdev > device optional. If the new option has not been selected, fbdev > does not create a files in devfs or sysfs. > > Most modern Linux systems

Re: [PATCH 09/30] fbdev/ep93xx-fb: Alloc DMA memory from hardware device

2023-06-07 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Pass the hardware device to the DMA helpers dma_alloc_wc(), dma_mmap_wc() > and dma_free_coherent(). The fbdev device that is currently being used is > a software device and does not provide DMA memory. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier

Re: [PATCH v9 2/8] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 19:35:12 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > On Tue, Jun 06, 2023 at 04:15:16PM +0530, Siddh Raman Pant wrote: > > Comments say macros DRM_DEBUG_* are deprecated in favor of > > drm_dbg_*(NULL, ...), but they have broken

[PATCH v10 1/9] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-06-07 Thread Siddh Raman Pant
This reverts commit 1040e424353f5f4d39f6f3aa8723eb3bd6ea6446. It used an incorrect way to use drm_* functions. Only drm_device ptrs should be passed, but the mentioned commit passed mipi_dsi_host ptr. It worked by accident due to macro magic. Reported-by: Jani Nikula Reviewed-by: Jani Nikula

[PATCH v10 0/9] drm: Remove usage of deprecated DRM_* macros in DRM core

2023-06-07 Thread Siddh Raman Pant
This patchset aims to remove usages of deprecated DRM_* macros from the DRM core (i.e. drivers/gpu/drm/*.c). In process, I found out that NULL as first argument of drm_dbg_* wasn't working, but it was listed as the alternative in deprecation comment, so I fixed that before removing usages of

Re: [Freedreno] [PATCH v3 4/7] drm/msm/mdp5: Add MDP5 configuration for MSM8226

2023-06-07 Thread Jeykumar Sankaran
On 6/1/2023 10:00 AM, Luca Weiss wrote: Add the required config for the v1.1 MDP5 found on MSM8226. Reviewed-by: Dmitry Baryshkov Signed-off-by: Luca Weiss --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 82 1 file changed, 82 insertions(+) diff --git

Re: [PATCH] drm/bridge: ti-sn65dsi86: Avoid possible buffer overflow

2023-06-07 Thread Longsuhui
Hi, On 2023/6/6 23:28, Doug Anderson wrote: Hi, On Tue, Jun 6, 2023 at 12:56 AM Su Hui wrote: Smatch error:buffer overflow 'ti_sn_bridge_refclk_lut' 5 <= 5. Fixes: cea86c5bb442 ("drm/bridge: ti-sn65dsi86: Implement the pwm_chip") Signed-off-by: Su Hui ---

[PATCH v9 6/8] drm: Remove usage of deprecated DRM_DEBUG

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v9 4/8] drm: Remove usage of deprecated DRM_NOTE

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c

[PATCH v10 3/9] drm: Remove usage of deprecated DRM_INFO in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v9 2/8] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-06-07 Thread Siddh Raman Pant
Comments say macros DRM_DEBUG_* are deprecated in favor of drm_dbg_*(NULL, ...), but they have broken support for it, as the macro will result in `(NULL) ? (NULL)->dev : NULL`. Thus, fix them by separating logic to get dev ptr in a new function, which will return the dev ptr if arg is not NULL.

[PATCH v10 4/9] drm: Remove usage of deprecated DRM_NOTE in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v10 2/9] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-06-07 Thread Siddh Raman Pant
Comments say macros DRM_DEBUG_* are deprecated in favor of drm_dbg_*(NULL, ...), but they have broken support for it, as the macro will result in `(NULL) ? (NULL)->dev : NULL`. Thus, fix them by separating logic to get dev ptr in a new function, which will return the dev ptr if arg is not NULL.

Re: [PATCH v9 1/8] Revert "drm: mipi-dsi: Convert logging to drm_* functions."

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 18:25:37 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > Any chance we could prevent this from happening by turning the macros > into inline functions ? The next patch in the series almost does that, with a function introduced as Jani

Re: [PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:16:25 +0530, Laurent Pinchart wrote: > I would write > > drm: Remove usage of deprecated DRM_INFO in DRM core > > The "drm: " prefix doesn't imply you're touching the core only, you > could do a tree-wide change that also touches all drivers. Okay, will send a v10 with

Re: [PATCH 1/9] dt-bindings: display: Add yamls for JH7110 display subsystem

2023-06-07 Thread Keith Zhao
On 2023/6/7 14:41, Maxime Ripard wrote: > On Tue, Jun 06, 2023 at 11:37:53PM +0100, Conor Dooley wrote: >> On Wed, Jun 07, 2023 at 12:22:33AM +0200, Heiko Stübner wrote: >> > Am Dienstag, 6. Juni 2023, 20:41:17 CEST schrieb Shengyu Qu: >> > > > On Fri, Jun 02, 2023 at 03:40:35PM +0800, Keith

[PATCH v10 9/9] drm: Remove superfluous print statements in DRM core

2023-06-07 Thread Siddh Raman Pant
There are a couple of superfluous print statements using the drm_* macros, which do stuff like printing newlines, print OOM messages (OOM while allocating memory is already supposed to be noisy), and printing strings like "Initialised" with no extra info whatsoever. Thus, remove a couple of these

[PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros

2023-06-07 Thread Siddh Raman Pant
This patchset aims to remove usages of deprecated DRM_* macros from the files residing in drivers/gpu/drm root. In process, I found out that NULL as first argument of drm_dbg_* wasn't working, but it was listed as the alternative in deprecation comment, so I fixed that before removing usages of

Re: [PATCH v9 5/8] drm: Remove usage of deprecated DRM_ERROR

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:14:52 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > > if (!crtcs || !modes || !enabled || !offsets) { > > - DRM_ERROR("Memory allocation failed\n"); > > + drm_err(client->dev, "Memory allocation

[PATCH v10 6/9] drm: Remove usage of deprecated DRM_DEBUG in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14

[PATCH v9 7/8] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

Re: [PATCH 1/9] dt-bindings: display: Add yamls for JH7110 display subsystem

2023-06-07 Thread Shengyu Qu
Hi Conor, Hey Keith, On Fri, Jun 02, 2023 at 03:40:35PM +0800, Keith Zhao wrote: Add bindings for JH7110 display subsystem which has a display controller verisilicon dc8200 and an HDMI interface. Signed-off-by: Keith Zhao --- .../display/verisilicon/starfive-hdmi.yaml| 93

[PATCH v9 8/8] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 +++ drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c | 21 ++---

Re: [PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 19:53:22 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > Any plan to remove it from drivers as well ? If not you should mention > in the commit message (probably in the subject line itself) that you're > only addressing the DRM core. > >

Re: [PATCH v9 0/8] drm: Remove usage of deprecated DRM_* macros

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:35:45 +0530, Laurent Pinchart wrote: > This is a nice series, thank you for working on that. > > Now that the deprecated macros are used in drivers only, would it make > sense to move them to a drm_print_deprecated.h header, to make sure no > new driver uses them ? Sure,

Re: [Freedreno] [PATCH v3 5/7] drm/msm/dsi: Add configuration for MSM8226

2023-06-07 Thread Jeykumar Sankaran
On 6/1/2023 10:00 AM, Luca Weiss wrote: Add the config for the v1.0.2 DSI found on MSM8226. We can reuse existing bits from other revisions that are identical for v1.0.2. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss ---

[PATCH v10 8/9] drm: Remove usage of deprecated DRM_DEBUG_KMS in DRM core

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Reviewed-by: Laurent Pinchart Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 +++ drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c

[PATCH v9 3/8] drm: Remove usage of deprecated DRM_INFO

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

Re: [PATCH v9 6/8] drm: Remove usage of deprecated DRM_DEBUG

2023-06-07 Thread Siddh Raman Pant
On Tue, 06 Jun 2023 20:27:06 +0530, Laurent Pinchart wrote: > Hi Siddh, > > Thank you for the patch. Anytime :) > > if (!ctx_entry) { > > - DRM_DEBUG("out of memory\n"); > > + drm_dbg_core(dev, "out of memory\n"); > > This message could also be dropped. Okay. >

[PATCH v9 5/8] drm: Remove usage of deprecated DRM_ERROR

2023-06-07 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

<    1   2   3   >