[PATCH] drm/panel-edp: Add panel CSOT MNB601LS1-1

2024-04-22 Thread Xuxin Xiong
Add support for the following panel: CSOT MNB601LS1-1 Signed-off-by: Xuxin Xiong --- drivers/gpu/drm/panel/panel-edp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index d58f90bc48fb..5e0b1c94bc62 100644 ---

Re: [PATCH v2] mediatek: dsi: Correct calculation formula of PHY Timing

2024-04-22 Thread 胡俊光

Re: [PATCH v3 0/2] drm/panel: add Khadas TS050 V2 panel support

2024-04-22 Thread Neil Armstrong
Hi, On Fri, 19 Apr 2024 09:48:50 +0800, Jacobe Zang wrote: > Khadas has update its TS050 panel, the only different between the newer and > older is timing squence. In patches, add new TS050 panel named "ts050v2" as > make it compatible with the old one. > Thanks, Applied to

Re: [PATCH v2][next] backlight: sky81452-backlight: Remove unnecessary call to of_node_get

2024-04-22 Thread Daniel Thompson
On Sun, Apr 21, 2024 at 04:19:17PM +0530, Shresth Prasad wrote: > `dev->of_node` already has a reference to the device_node and calling > of_node_get on it is unnecessary. All conresponding calls to > of_node_put are also removed. > > Signed-off-by: Shresth Prasad Reviewed-by: Daniel Thompson

Re: [PATCH v3 6/8] drm/v3d: Support Big/Super Pages when writing out PTEs

2024-04-22 Thread Tvrtko Ursulin
On 21/04/2024 22:44, Maíra Canal wrote: The V3D MMU also supports 64KB and 1MB pages, called big and super pages, respectively. In order to set a 64KB page or 1MB page in the MMU, we need to make sure that page table entries for all 4KB pages within a big/super page must be correctly

Re: [PATCH] drm/panfrost: Fix dma_resv deadlock at drm object pin time

2024-04-22 Thread Boris Brezillon
On Sun, 21 Apr 2024 17:39:47 +0100 Adrián Larumbe wrote: > When Panfrost must pin an object that is being prepared a dma-buf > attachment for on behalf of another driver, the core drm gem object pinning > code already takes a lock on the object's dma reservation. > > However, Panfrost GEM

Re: [PATCH v6 00/10] Make PCI's devres API more consistent

2024-04-22 Thread Philipp Stanner
Yo, we know reached -rc5. Is this fine for v6.10? Regards, P. On Mon, 2024-04-08 at 10:44 +0200, Philipp Stanner wrote: > Changes in v6: >   - Restructure the cleanup in pcim_iomap_regions_request_all() so > that >     it doesn't trigger a (false positive) test robot warning. No >    

[PATCH v2 2/7] drm/panel: himax-hx83102: Break out as separate driver

2024-04-22 Thread Cong Yang
The Starry HX83102 based mipi panel should never have been part of the boe tv101wum driver. Discussion with Doug and Linus in V1 [1], we need a separate driver to enable the hx83102 controller. In hx83102 driver, add DSI commands as macros. So it can add some panels with same control model in the

[PATCH v2 4/7] dt-bindings: display: panel: Add compatible for BOE nv110wum-l60

2024-04-22 Thread Cong Yang
The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, which fits in nicely with the existing himax-hx83102 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang --- .../devicetree/bindings/display/panel/himax,hx83102.yaml| 2 ++ 1 file changed, 2

[PATCH v2 7/7] drm/panel: himax-hx83102: Support for IVO t109nw41 MIPI-DSI panel

2024-04-22 Thread Cong Yang
The IVO t109nw41 is a 11.0" WUXGA TFT LCD panel, use hx83102 controller which fits in nicely with the existing panel-himax-hx83102 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang --- drivers/gpu/drm/panel/panel-himax-hx83102.c | 178

[PATCH v2 0/7] Break out as separate driver and add BOE nv110wum-l60 IVO t109nw41 MIPI-DSI panel

2024-04-22 Thread Cong Yang
Discussion with Doug and Linus in V1, we need a separate driver to enable the hx83102 controller. So this series this series mainly Break out as separate driver for Starry-himax83102-j02 panels from boe tv101wum driver. Then add BOE nv110wum-l60 and IVO t109nw41 in himax-hx83102 driver. Add

[PATCH v2 1/7] dt-bindings: display: panel: Add himax hx83102 panel bindings

2024-04-22 Thread Cong Yang
In V1, discussed with Doug and Linus [1], we need break out as separate driver for the himax83102-j02 controller. So add new documentation for "starry,himax83102-j02" panel. [1]: https://lore.kernel.org/all/CACRpkdbzYZAS0=zbqjuc4cb2wj4s1h6n6asazqvdmv95r3z...@mail.gmail.com Signed-off-by: Cong

[PATCH v2 5/7] drm/panel: himax-hx83102: Support for BOE nv110wum-l60 MIPI-DSI panel

2024-04-22 Thread Cong Yang
The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, use hx83102 controller which fits in nicely with the existing panel-himax-hx83102 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang --- drivers/gpu/drm/panel/panel-himax-hx83102.c | 198

[PATCH v2 6/7] dt-bindings: display: panel: Add compatible for IVO t109nw41

2024-04-22 Thread Cong Yang
The IVO t109nw41 is a 11.0" WUXGA TFT LCD panel, which fits in nicely with the existing himax-hx83102 driver. Hence, we add a new compatible with panel specific config. Signed-off-by: Cong Yang --- .../devicetree/bindings/display/panel/himax,hx83102.yaml| 2 ++ 1 file changed, 2

[PATCH v2 3/7] arm64: defconfig: Enable HIMAX_HX83102 panel

2024-04-22 Thread Cong Yang
DRM_PANEL_HIMAX_HX83102 is being split out from DRM_PANEL_BOE_TV101WUM_NL6. Since the arm64 defconfig had the BOE panel driver enabled, let's also enable the himax driver. Signed-off-by: Cong Yang --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v1 1/2] vfio: Export vfio device get and put registration helpers

2024-04-22 Thread Vivek Kasireddy
These helpers are useful for managing additional references taken on the device from other associated VFIO modules. Original-patch-by: Jason Gunthorpe Signed-off-by: Vivek Kasireddy --- drivers/vfio/vfio_main.c | 2 ++ include/linux/vfio.h | 2 ++ 2 files changed, 4 insertions(+) diff

[PATCH v1 0/2] vfio/pci: Allow MMIO regions to be exported through dma-buf

2024-04-22 Thread Vivek Kasireddy
This is an attempt to revive the patches posted by Jason Gunthorpe at: https://patchwork.kernel.org/project/linux-media/cover/0-v2-472615b3877e+28f7-vfio_dma_buf_...@nvidia.com/ Here is the cover letter text from Jason's original series: "dma-buf has become a way to safely acquire a handle to

[PATCH v1 2/2] vfio/pci: Allow MMIO regions to be exported through dma-buf

2024-04-22 Thread Vivek Kasireddy
>From Jason Gunthorpe: "dma-buf has become a way to safely acquire a handle to non-struct page memory that can still have lifetime controlled by the exporter. Notably RDMA can now import dma-buf FDs and build them into MRs which allows for PCI P2P operations. Extend this to allow vfio-pci to

Re: (subset) [PATCH 00/34] address all -Wunused-const warnings

2024-04-22 Thread Michael Ellerman
On Wed, 03 Apr 2024 10:06:18 +0200, Arnd Bergmann wrote: > Compilers traditionally warn for unused 'static' variables, but not > if they are constant. The reason here is a custom for C++ programmers > to define named constants as 'static const' variables in header files > instead of using macros

Re: [PATCH v3 5/8] drm/v3d: Reduce the alignment of the node allocation

2024-04-22 Thread Iago Toral
Thanks Maíra, this patch is: Reviewed-by: Iago Toral Quiroga Iago El dom, 21-04-2024 a las 18:44 -0300, Maíra Canal escribió: > Currently, we are using an alignment of 128 kB to insert a node, > which > ends up wasting memory as we perform plenty of small BOs allocations > (<= 4 kB). We

Re: [PATCH v4 0/2] Add driver for Raydium RM69380-based DSI panels

2024-04-22 Thread Neil Armstrong
Hi, On Wed, 17 Apr 2024 18:29:32 +0200, David Wronek wrote: > This patch adds support the 2560x1600@90Hz dual DSI command mode panel by > EDO in combination with a Raydium RM69380 driver IC. > > This driver IC can be found in the following devices: > * Lenovo Xiaoxin Pad Pro 2021 (TB-J716F)

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Christian König
Am 22.04.24 um 07:26 schrieb Qiang Ma: Some boards(like Oland PRO: 0x1002:0x6613) seem to have garbage in the upper 16 bits of the vram size register, kern log as follows: [6.00] [drm] Detected VRAM RAM=2256537600M, BAR=256M [6.007812] [drm] RAM width 64bits GDDR5 [6.031250]

Re: [PATCH v3 6/8] drm/v3d: Support Big/Super Pages when writing out PTEs

2024-04-22 Thread Tvrtko Ursulin
On 22/04/2024 10:57, Tvrtko Ursulin wrote: On 21/04/2024 22:44, Maíra Canal wrote: The V3D MMU also supports 64KB and 1MB pages, called big and super pages, respectively. In order to set a 64KB page or 1MB page in the MMU, we need to make sure that page table entries for all 4KB pages within

Re: [PATCH v3 7/8] drm/v3d: Use gemfs/THP in BO creation if available

2024-04-22 Thread Tvrtko Ursulin
On 21/04/2024 22:44, Maíra Canal wrote: Although Big/Super Pages could appear naturally, it would be quite hard to have 1MB or 64KB allocated contiguously naturally. Therefore, we can force the creation of large pages allocated contiguously by using a mountpoint with "huge=within_size"

Re: [PATCH v2 0/2] drm/panel: add Khadas TS050 V2 panel support

2024-04-22 Thread Neil Armstrong
Hi, On Mon, 15 Apr 2024 11:14:06 +0800, Jacobe Zang wrote: > Changes from v1 at [1]: > - Fix name from "newts050" to "ts050v2" > - Add specific description about controller change > > [1]https://patchwork.kernel.org/project/linux-amlogic/list/?series=842707 > > Jacobe Zang (2): > dt-bindings:

Re: [PATCH] drm/panfrost: Fix dma_resv deadlock at drm object pin time

2024-04-22 Thread Dmitry Osipenko
On 4/21/24 19:39, Adrián Larumbe wrote: > When Panfrost must pin an object that is being prepared a dma-buf > attachment for on behalf of another driver, the core drm gem object pinning > code already takes a lock on the object's dma reservation. > > However, Panfrost GEM object's pinning

Re: [PATCH 1/1] video: Handle HAS_IOPORT dependencies

2024-04-22 Thread Niklas Schnelle
On Thu, 2024-04-11 at 16:00 +0200, Helge Deller wrote: > * Niklas Schnelle : > > In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at > > compile time. We thus need to #ifdef functions and their callsites which > > unconditionally use these I/O accessors. In the

[PATCH v4 0/4] drm/xe: Support PCIe FLR

2024-04-22 Thread Aravind Iddamsetty
PCI subsystem provides callbacks to inform the driver about a request to do function level reset by user, initiated by writing to sysfs entry /sys/bus/pci/devices/.../reset. This will allow the driver to handle FLR without the need to do unbind and rebind as the driver needs to reinitialize the

[PATCH v3 1/4] drm: add devm release action

2024-04-22 Thread Aravind Iddamsetty
In scenarios where drm_dev_put is directly called by driver we want to release devm_drm_dev_init_release action associated with struct drm_device. v2: Directly expose the original function, instead of introducing a helper (Rodrigo) v3: add kernel-doc (Maxime Ripard) Cc: Maxime Ripard Cc:

[PATCH 2/4] drm/xe: Save and restore PCI state

2024-04-22 Thread Aravind Iddamsetty
Save and restore PCI states where ever needed. Cc: Lucas De Marchi Reviewed-by: Rodrigo Vivi Signed-off-by: Aravind Iddamsetty --- drivers/gpu/drm/xe/xe_device_types.h | 3 ++ drivers/gpu/drm/xe/xe_pci.c | 48 ++-- drivers/gpu/drm/xe/xe_pci.h | 4

[PATCH v2 3/4] drm/xe: Extract xe_gt_idle() helper

2024-04-22 Thread Aravind Iddamsetty
This would be used in other places outside of gt_reset path. v2: 1. Add kernel doc for xe_gt_idle (Michal) 2. fix return as no actual error is reported by xe_uc_stop (Himal) Cc: Lucas De Marchi Cc: Michal Wajdeczko Cc: Himal Prasad Ghimiray Reviewed-by: Rodrigo Vivi Signed-off-by: Aravind

[PATCH v3 4/4] drm/xe/FLR: Support PCIe FLR

2024-04-22 Thread Aravind Iddamsetty
PCI subsystem provides callbacks to inform the driver about a request to do function level reset by user, initiated by writing to sysfs entry /sys/bus/pci/devices/.../reset. This will allow the driver to handle FLR without the need to do unbind and rebind as the driver needs to reinitialize the

Re: [PATCH v3 4/5] drm/v3d: Decouple stats calculation from printing

2024-04-22 Thread Tvrtko Ursulin
On 20/04/2024 22:32, Maíra Canal wrote: Create a function to decouple the stats calculation from the printing. This will be useful in the next step when we add a seqcount to protect the stats. Signed-off-by: Maíra Canal --- drivers/gpu/drm/v3d/v3d_drv.c | 18 ++

Re: [PATCH v3 8/8] drm/v3d: Add modparam for turning off Big/Super Pages

2024-04-22 Thread Tvrtko Ursulin
On 21/04/2024 22:44, Maíra Canal wrote: Add a modparam for turning off Big/Super Pages to make sure that if an user doesn't want Big/Super Pages enabled, it can disabled it by setting the modparam to false. Signed-off-by: Maíra Canal --- drivers/gpu/drm/v3d/v3d_drv.c | 8

[PATCH] drm/uapi: Move drm_color_ctm_3x4 out from drm_mode.h

2024-04-22 Thread Ville Syrjala
From: Ville Syrjälä drm_color_ctm_3x4 is some undocumented amgdpu private uapi and thus has no business being in drm_mode.h. At least move it to some amdgpu specific header, albeit with the wrong namespace as maybe something somewhere is using this already? Cc: Harry Wentland Cc: Joshua Ashton

Re: [PATCH v6 03/17] drm/vkms: write/update the documentation for pixel conversion and pixel write functions

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:21 +0200 Louis Chauvet wrote: > Add some documentation on pixel conversion functions. > Update of outdated comments for pixel_write functions. > > Signed-off-by: Louis Chauvet > --- > drivers/gpu/drm/vkms/vkms_composer.c | 7 > drivers/gpu/drm/vkms/vkms_drv.h

[PATCH V2] drm/bridge: imx: Fix unmet depenency for PHY_FSL_SAMSUNG_HDMI_PHY

2024-04-22 Thread Adam Ford
When enabling i.MX8MP DWC HDMI driver, it automatically selects PHY_FSL_SAMSUNG_HDMI_PHY, since it wont' work without the phy. This may cause some Kconfig warnings during various build tests. Fix this by implying the phy instead of selecting the phy. To prevent this from happening with the

Re: [PATCH v6 07/17] drm/vkms: Update pixels accessor to support packed and multi-plane formats.

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:25 +0200 Louis Chauvet wrote: > Introduce the usage of block_h/block_w to compute the offset and the > pointer of a pixel. The previous implementation was specialized for > planes with block_h == block_w == 1. To avoid confusion and allow easier > implementation of

Re: [PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Jani Nikula
On Mon, 22 Apr 2024, "Arnd Bergmann" wrote: > On Mon, Apr 22, 2024, at 13:50, Jani Nikula wrote: >> On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: >>> Hi all, >>> >>> As discussed on IRC with Maxime and Arnd, this series reverts the >>> conversion of select to depends for various DRM helpers

RE: [PATCH 1/2] drm/panel: panel-simple: Add generic panel-dsi driver

2024-04-22 Thread Johan Adolfsson
Hi, Sorry for delayed response, still investigating why these mails didn't reach my inbox as expected.. -Original Message- From: Krzysztof Kozlowski Sent: den 19 april 2024 01:06 To: Johan Adolfsson ; Neil Armstrong ; Jessica Zhang ; Sam Ravnborg ; Maarten Lankhorst ; Maxime Ripard

Re: [PATCH] drm/stm: dsi: relax mode_valid clock tolerance

2024-04-22 Thread Sean Nyekjaer
On Fri, Mar 22, 2024 at 11:47:31AM +0100, Sean Nyekjaer wrote: > When using the DSI interface via DSI2LVDS bridge, it seems a bit harsh > to reguire the requested and the actual px clock to be within > 50Hz. A typical LVDS display requires the px clock to be within +-10%. > > In case for HDMI .5%

Re: Reliably selecting non-CEA modes on Intel graphics (and maybe others)

2024-04-22 Thread Jani Nikula
On Mon, 22 Apr 2024, Michael Olbrich wrote: > Hi, > > In short: I have a HDMI monitor attached to Intel graphics. I'm trying to > set a non-CEA mode but the driver always maps it to the corresponding CEA > mode. Please file a bug as described at [1], and attach dmesg with debugs enabled, so we

Re: [PATCH v6 13/17] drm/vkms: Add range and encoding properties to the plane

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:31 +0200 Louis Chauvet wrote: > From: Arthur Grillo > > Now that the driver internally handles these quantization ranges and YUV > encoding matrices, expose the UAPI for setting them. > > Signed-off-by: Arthur Grillo > [Louis Chauvet: retained only relevant parts,

[PATCH 1/1] drm/rockchip: vop2: Fix the port mux of VP2

2024-04-22 Thread Andy Yan
From: Andy Yan The port mux of VP2 should be RK3568_OVL_PORT_SET__PORT2_MUX. Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver") Signed-off-by: Andy Yan --- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/1] Fix the port mux of VP2

2024-04-22 Thread Andy Yan
From: Andy Yan The port mux bits of VP2 should be defined by RK3568_OVL_PORT_SET__PORT2_MUX, this maybe a copy and paste error when this driver first introduced. Hi Heiko: Maybe thi is the problem you met when you porting the dsi2 driver. I previously sent you this patch when you ask me

[PATCH 1/2] drm/print: drop include debugfs.h and include where needed

2024-04-22 Thread Jani Nikula
Surprisingly many places depend on debugfs.h to be included via drm_print.h. Fix them. v3: Also fix armada, ite-it6505, imagination, msm, sti, vc4, and xe v2: Also fix ivpu and vmwgfx Reviewed-by: Andrzej Hajda Acked-by: Maxime Ripard Link:

[PATCH 2/2] drm/print: drop include seq_file.h

2024-04-22 Thread Jani Nikula
Never include where a forward declaration will suffice. Reviewed-by: Andrzej Hajda Acked-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20240410141434.157908-2-jani.nik...@intel.com Signed-off-by: Jani Nikula --- include/drm/drm_print.h | 2 +- 1 file changed, 1

Re: [PATCH v6 10/17] drm/vkms: Re-introduce line-per-line composition algorithm

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:28 +0200 Louis Chauvet wrote: > Re-introduce a line-by-line composition algorithm for each pixel format. > This allows more performance by not requiring an indirection per pixel > read. This patch is focused on readability of the code. > > Line-by-line composition was

Re: [PATCH v2 1/2] drm/print: drop include debugfs.h and include where needed

2024-04-22 Thread Jani Nikula
On Thu, 18 Apr 2024, Jani Nikula wrote: > On Thu, 18 Apr 2024, Robert Foss wrote: >> I'm seeing build errors for drivers/gpu/drm/bridge/ite-it6505.c, is >> this expected? > > No, but it's possible my configs didn't catch all configs. :( Okay, enabled a bunch more arm/arm64 stuff, and hit some

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Qiang Ma
On Mon, 22 Apr 2024 14:59:36 +0200 Christian König wrote: > Am 22.04.24 um 14:33 schrieb Qiang Ma: > > On Mon, 22 Apr 2024 11:40:26 +0200 > > Christian König wrote: > > > >> Am 22.04.24 um 07:26 schrieb Qiang Ma: > >>> Some boards(like Oland PRO: 0x1002:0x6613) seem to have > >>> garbage in

[PATCH RESEND] drm/amd/display: Fix division by zero in setup_dsc_config

2024-04-22 Thread Jose Fernandez
When slice_height is 0, the division by slice_height in the calculation of the number of slices will cause a division by zero driver crash. This leaves the kernel in a state that requires a reboot. This patch adds a check to avoid the division by zero. The stack trace below is for the 6.8.4

Re: [PATCH v6 09/17] drm/vkms: Introduce pixel_read_direction enum

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:27 +0200 Louis Chauvet wrote: > The pixel_read_direction enum is useful to describe the reading direction > in a plane. It avoids using the rotation property of DRM, which not > practical to know the direction of reading. > This patch also introduce two helpers, one to

Re: [PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Arnd Bergmann
On Mon, Apr 22, 2024, at 13:50, Jani Nikula wrote: > On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: >> Hi all, >> >> As discussed on IRC with Maxime and Arnd, this series reverts the >> conversion of select to depends for various DRM helpers in series >> "[PATCH v3 00/13] drm/display:

Re: [PATCH V2 2/2] drm/bridge: samsung-dsim: Fix porch calcalcuation rounding

2024-04-22 Thread Marek Vasut
On 4/22/24 2:09 PM, Adam Ford wrote: On Sun, Apr 21, 2024 at 9:36 AM Marek Vasut wrote: On 2/12/24 12:09 AM, Adam Ford wrote: When using video sync pulses, the HFP, HBP, and HSA are divided between the available lanes if there is more than one lane. For certain timings and lane

Re: [PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Arnd Bergmann
On Mon, Apr 22, 2024, at 15:28, Jani Nikula wrote: > On Mon, 22 Apr 2024, "Arnd Bergmann" wrote: >> On Mon, Apr 22, 2024, at 13:50, Jani Nikula wrote: >> >>> I still disagree with this, because fundamentally the source symbol >>> really should not have to care about the dependencies of the target

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Alex Deucher
On Mon, Apr 22, 2024 at 9:00 AM Christian König wrote: > > Am 22.04.24 um 14:33 schrieb Qiang Ma: > > On Mon, 22 Apr 2024 11:40:26 +0200 > > Christian König wrote: > > > >> Am 22.04.24 um 07:26 schrieb Qiang Ma: > >>> Some boards(like Oland PRO: 0x1002:0x6613) seem to have > >>> garbage in the

Re: [PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Jani Nikula
On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: > Hi all, > > As discussed on IRC with Maxime and Arnd, this series reverts the > conversion of select to depends for various DRM helpers in series > "[PATCH v3 00/13] drm/display: Convert helpers Kconfig symbols to > depends on"[1], and

Re: [PATCH] staging:fbtft:fb_ili9320 Removed redundant Parentheses

2024-04-22 Thread Dan Carpenter
0) Fix your From address. 1) Look at how other people write subjects. git log --oneline drivers/staging/fbtft/fb_ili9320.c On Fri, Apr 19, 2024 at 11:04:21AM -0700, A wrote: > >From 51e98164e314a2d1d834d2a9baea21a9823650bb Mon Sep 17 00:00:00 2001 > From: Ashok Kumar > Date: Fri, 19 Apr 2024

Re: [PATCH] drm/panel-edp: Add panel CSOT MNB601LS1-1

2024-04-22 Thread Doug Anderson
Hi, On Sun, Apr 21, 2024 at 11:09 PM Xuxin Xiong wrote: > > Add support for the following panel: > CSOT MNB601LS1-1 > > Signed-off-by: Xuxin Xiong > --- > drivers/gpu/drm/panel/panel-edp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-edp.c >

Re: [PATCH v8 6/6] drm/{i915,xe}: Implement fbdev emulation as in-kernel client

2024-04-22 Thread Hogander, Jouni
On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: > Replace all code that initializes or releases fbdev emulation > throughout the driver. Instead initialize the fbdev client by a > single call to intel_fbdev_setup() after i915 has registered its > DRM device. Just like similar code in

Re: [PATCH v1 2/2] vfio/pci: Allow MMIO regions to be exported through dma-buf

2024-04-22 Thread Zhu Yanjun
On 22.04.24 08:30, Vivek Kasireddy wrote: From Jason Gunthorpe: "dma-buf has become a way to safely acquire a handle to non-struct page memory that can still have lifetime controlled by the exporter. Notably RDMA can now import dma-buf FDs and build them into MRs which allows for PCI P2P

Re: [PATCH 1/9] drm/msm/dpu: drop dpu_format_check_modified_format

2024-04-22 Thread Dmitry Baryshkov
On Fri, Apr 19, 2024 at 07:32:35PM -0700, Abhinav Kumar wrote: > > > On 4/19/2024 6:26 PM, Dmitry Baryshkov wrote: > > On Fri, Apr 19, 2024 at 04:43:20PM -0700, Abhinav Kumar wrote: > > > > > > > > > On 3/19/2024 6:21 AM, Dmitry Baryshkov wrote: > > > > The

Re: [PATCH 4/9] drm/msm/dpu: move dpu_format_populate_plane_sizes to atomic_check

2024-04-22 Thread Dmitry Baryshkov
On Fri, Apr 19, 2024 at 07:37:44PM -0700, Abhinav Kumar wrote: > > > On 4/19/2024 6:34 PM, Dmitry Baryshkov wrote: > > On Fri, Apr 19, 2024 at 05:14:01PM -0700, Abhinav Kumar wrote: > > > > > > > > > On 3/19/2024 6:22 AM, Dmitry Baryshkov wrote: > > > > Move a call to

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Qiang Ma
On Mon, 22 Apr 2024 11:40:26 +0200 Christian König wrote: > Am 22.04.24 um 07:26 schrieb Qiang Ma: > > Some boards(like Oland PRO: 0x1002:0x6613) seem to have > > garbage in the upper 16 bits of the vram size register, > > kern log as follows: > > > > [6.00] [drm] Detected VRAM

Reliably selecting non-CEA modes on Intel graphics (and maybe others)

2024-04-22 Thread Michael Olbrich
Hi, In short: I have a HDMI monitor attached to Intel graphics. I'm trying to set a non-CEA mode but the driver always maps it to the corresponding CEA mode. More specifically, the monitor has two 1920x1080@60 modes in the EDID: 1. The CEA mode with VIC 16 2. A custom DTD mode with exactly the

Re: [PATCH v8 1/6] drm/client: Export drm_client_dev_unregister()

2024-04-22 Thread Hogander, Jouni
On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: > Export drm_client_dev_unregister() for use by the i915 driver. The > driver does not use drm_dev_unregister(), so it has to clean up the > in-kernel DRM clients by itself. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Jouni

[PATCH 03/11] Revert "drm/bridge: dw-hdmi: Make DRM_DW_HDMI selectable"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit 0209df3b4731516fe77638bfc52ba2e9629c67cd, as the commit it fixes (which is BTW not the commit in the Fixes: tag!) will be reverted, too. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/bridge/synopsys/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 05/11] Revert "drm: Switch DRM_DISPLAY_HDMI_HELPER to depends on"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit f6d2dc03fa8546b284dd8c1af027d9fac5725921, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

[PATCH 07/11] Revert "drm: Switch DRM_DISPLAY_DP_HELPER to depends on"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit 0323287de87d7e6e9c22c57d7440aa353a2298d0, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

[PATCH 08/11] Revert "drm: Switch DRM_DISPLAY_DP_AUX_BUS to depends on"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit 4d15125d7fe637f401e64e33c99513adf6586fdd, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

[PATCH 10/11] Revert "drm: Make drivers depends on DRM_DW_HDMI"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit c0e0f139354c01e0213204e4a96e7076e5a3e396, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

[PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Geert Uytterhoeven
Hi all, As discussed on IRC with Maxime and Arnd, this series reverts the conversion of select to depends for various DRM helpers in series "[PATCH v3 00/13] drm/display: Convert helpers Kconfig symbols to depends on"[1], and various fixes for it. This conversion introduced a big

[PATCH 01/11] Revert "drm: fix DRM_DISPLAY_DP_HELPER dependencies, part 2"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit a57e191ebbaa0363dbf352cc37447c2230573e29, as the commits it fixes will be reverted, too. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/bridge/analogix/Kconfig | 2 +- drivers/gpu/drm/rockchip/Kconfig| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

[PATCH 04/11] Revert "drm: fix DRM_DISPLAY_DP_HELPER dependencies"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit d1ef8fc18be6adbbffdee06fbb5b33699e2852be, as the commit it fixes will be reverted, too. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/exynos/Kconfig | 2 +- drivers/gpu/drm/rockchip/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 09/11] Revert "drm: Switch DRM_DISPLAY_HELPER to depends on"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit e075e496f516bf92bc0cbaf94d64e8d4a6b58321, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

[PATCH 11/11] Revert "drm/display: Make all helpers visible and switch to depends on"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit d674858ff979550a0e97b4ac766f2640f0d9d7e7, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

[PATCH 02/11] Revert "drm/display: Select DRM_KMS_HELPER for DP helpers"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit 7fa678cc0a5648b5ea28629a2d21b9d4b6ac8f56, as the commit it fixes will be reverted, too. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/display/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/display/Kconfig b/drivers/gpu/drm/display/Kconfig

Re: [PATCH v6 08/17] drm/vkms: Avoid computing blending limits inside pre_mul_alpha_blend

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:26 +0200 Louis Chauvet wrote: > The pre_mul_alpha_blend is dedicated to blending, so to avoid mixing > different concepts (coordinate calculation and color management), extract > the x_limit and x_dst computation outside of this helper. > It also increases the

Re: [PATCH v3 07/17] dt-bindings: display: mediatek: dpi: add compatible for MT8365

2024-04-22 Thread Rob Herring
On Thu, 18 Apr 2024 16:16:55 +0200, Alexandre Mergnat wrote: > Add dt-binding documentation of dpi for MediaTek MT8365 SoC. > > Signed-off-by: Alexandre Mergnat > --- > Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 4 > 1 file changed, 4 insertions(+) >

RE: [PATCH 2/2] dt-bindings: panel-simple-dsi: Add generic panel-dsi

2024-04-22 Thread Johan Adolfsson
-Original Message- From: Krzysztof Kozlowski Sent: den 19 april 2024 01:05 To: Johan Adolfsson ; Neil Armstrong ; Jessica Zhang ; Sam Ravnborg ; Maarten Lankhorst ; Maxime Ripard ; Thomas Zimmermann ; David Airlie ; Daniel Vetter ; Rob Herring ; Krzysztof Kozlowski ; Conor Dooley

Re: [PATCH v6 12/17] drm/vkms: Add YUV support

2024-04-22 Thread Pekka Paalanen
On Tue, 09 Apr 2024 15:25:30 +0200 Louis Chauvet wrote: > From: Arthur Grillo > > Add support to the YUV formats bellow: > > - NV12/NV16/NV24 > - NV21/NV61/NV42 > - YUV420/YUV422/YUV444 > - YVU420/YVU422/YVU444 > > The conversion from yuv to rgb is done with fixed-point arithmetic, using >

Re: [PATCH V2 2/2] drm/bridge: samsung-dsim: Fix porch calcalcuation rounding

2024-04-22 Thread Adam Ford
On Sun, Apr 21, 2024 at 9:36 AM Marek Vasut wrote: > > On 2/12/24 12:09 AM, Adam Ford wrote: > > When using video sync pulses, the HFP, HBP, and HSA are divided between > > the available lanes if there is more than one lane. For certain > > timings and lane configurations, the HFP may not be

Re: [PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Dmitry Baryshkov
On Mon, Apr 22, 2024 at 02:50:09PM +0300, Jani Nikula wrote: > On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: > > Hi all, > > > > As discussed on IRC with Maxime and Arnd, this series reverts the > > conversion of select to depends for various DRM helpers in series > > "[PATCH v3 00/13]

Re: [PATCH 1/1] drm/rockchip: vop2: Fix the port mux of VP2

2024-04-22 Thread Sascha Hauer
On Mon, Apr 22, 2024 at 06:19:05PM +0800, Andy Yan wrote: > From: Andy Yan > > The port mux of VP2 should be RK3568_OVL_PORT_SET__PORT2_MUX. > > Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver") > Signed-off-by: Andy Yan Acked-by: Sascha Hauer Sascha > > --- > >

Re: [PATCH V2 2/2] drm/bridge: samsung-dsim: Fix porch calcalcuation rounding

2024-04-22 Thread Adam Ford
On Mon, Apr 22, 2024 at 8:01 AM Marek Vasut wrote: > > On 4/22/24 2:09 PM, Adam Ford wrote: > > On Sun, Apr 21, 2024 at 9:36 AM Marek Vasut wrote: > >> > >> On 2/12/24 12:09 AM, Adam Ford wrote: > >>> When using video sync pulses, the HFP, HBP, and HSA are divided between > >>> the available

[PATCH 06/11] Revert "drm: Switch DRM_DISPLAY_HDCP_HELPER to depends on"

2024-04-22 Thread Geert Uytterhoeven
This reverts commit 3166e7e6d935caaef07605a5c90773fbf9ffeaf4, as helper code should always be selected by the driver that needs it, for the convenience of the final user configuring a kernel. The user who configures a kernel should not need to know which helpers are needed for the driver he is

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Christian König
Am 22.04.24 um 14:33 schrieb Qiang Ma: On Mon, 22 Apr 2024 11:40:26 +0200 Christian König wrote: Am 22.04.24 um 07:26 schrieb Qiang Ma: Some boards(like Oland PRO: 0x1002:0x6613) seem to have garbage in the upper 16 bits of the vram size register, kern log as follows: [6.00] [drm]

Re: [PATCH 1/2] drm/print: drop include debugfs.h and include where needed

2024-04-22 Thread Dmitry Baryshkov
On Mon, Apr 22, 2024 at 03:10:10PM +0300, Jani Nikula wrote: > Surprisingly many places depend on debugfs.h to be included via > drm_print.h. Fix them. > > v3: Also fix armada, ite-it6505, imagination, msm, sti, vc4, and xe > > v2: Also fix ivpu and vmwgfx > > Reviewed-by: Andrzej Hajda >

Re: [PATCH v8 4/6] drm/{i915,xe}: Unregister in-kernel clients

2024-04-22 Thread Hogander, Jouni
On Tue, 2024-04-09 at 10:04 +0200, Thomas Zimmermann wrote: > Unregister all in-kernel clients before unloading the i915 driver. > For > other drivers, drm_dev_unregister() does this automatically. As i915 > and > xe do not use this helper, they have to perform the call by > themselves. > > Note

[PATCH v1 1/1] drm: fixed: Don't use "proxy" headers

2024-04-22 Thread Andy Shevchenko
Update header inclusions to follow IWYU (Include What You Use) principle. Signed-off-by: Andy Shevchenko --- include/drm/drm_fixed.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_fixed.h b/include/drm/drm_fixed.h index 81572d32db0c..387fb81d5b81 100644

Re: [PATCH] drm/amdgpu: Fixup bad vram size on gmc v6 and v7

2024-04-22 Thread Christian König
Am 22.04.24 um 16:40 schrieb Alex Deucher: On Mon, Apr 22, 2024 at 9:00 AM Christian König wrote: Am 22.04.24 um 14:33 schrieb Qiang Ma: On Mon, 22 Apr 2024 11:40:26 +0200 Christian König wrote: Am 22.04.24 um 07:26 schrieb Qiang Ma: Some boards(like Oland PRO: 0x1002:0x6613) seem to have

Re: [PATCH v2 4/7] dt-bindings: display: panel: Add compatible for BOE nv110wum-l60

2024-04-22 Thread Rob Herring
On Mon, Apr 22, 2024 at 05:03:07PM +0800, Cong Yang wrote: > The BOE nv110wum-l60 is a 11.0" WUXGA TFT LCD panel, which fits in nicely > with the existing himax-hx83102 driver. >From a h/w perspective, the reason to share the binding is the same underlying controller, himax hx83102, is used,

Re: [PATCH v3 0/5] drm/v3d: Fix GPU stats inconsistencies and race-condition

2024-04-22 Thread Maíra Canal
Hi, @drm-misc maintainers, is there any chance you could backport commit 35f4f8c9fc97 ("drm/v3d: Don't increment `enabled_ns` twice") [1] to drm- misc-next? I would like to apply this series to drm-misc-next because it fixes another issue with the GPU stats, but this series depends on commit

Re: [PATCH v12 4/7] drm/meson: gate px_clk when setting rate

2024-04-22 Thread Neil Armstrong
Hi Martin, On 10/04/2024 21:34, Martin Blumenstingl wrote: Hi Neil, On Wed, Apr 3, 2024 at 9:46 AM Neil Armstrong wrote: Disable the px_clk when setting the rate to recover a fully configured and correctly reset VCLK clock tree after the rate is set. Fixes: 77d9e1e6b846 ("drm/meson: add

Re: [PATCH 00/11] drm: Restore helper usability

2024-04-22 Thread Jani Nikula
On Mon, 22 Apr 2024, Geert Uytterhoeven wrote: > Hi Arnd, > > CC kbuild > > On Mon, Apr 22, 2024 at 3:55 PM Arnd Bergmann wrote: >> I'm not sure where this misunderstanding comes from, as you >> seem to be repeating the same incorrect assumption about >> how select works that Maxime wrote in his

[PATCH v4 7/9] drm-bridge: it66121: Use fwnode API to acquire device properties

2024-04-22 Thread Sui Jingfeng
Make this driver DT-independent by calling the freshly created helpers, which reduce boilerplate and open the door for otherwise use cases. No functional changes for DT based systems. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/bridge/ite-it66121.c | 57 +--- 1 file

[PATCH v4 9/9] drm/bridge: tfp410: Add platform module alias

2024-04-22 Thread Sui Jingfeng
Otherwise when compiled as module, this driver will not be probed on non-DT environment. This is a fundamential step to make this driver truely OF-independent. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/bridge/ti-tfp410.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 8/9] drm/bridge: tfp410: Use fwnode API to acquire device properties

2024-04-22 Thread Sui Jingfeng
Make this driver DT-independent by calling the freshly created helpers, which reduce boilerplate and open the door for otherwise use cases. No functional changes for DT based systems. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/bridge/ti-tfp410.c | 41 +++--- 1 file

Re: [PATCH v2 1/7] dt-bindings: display: panel: Add himax hx83102 panel bindings

2024-04-22 Thread Rob Herring
On Mon, Apr 22, 2024 at 05:03:04PM +0800, Cong Yang wrote: > In V1, discussed with Doug and Linus [1], we need break out as separate > driver for the himax83102-j02 controller. So add new documentation for > "starry,himax83102-j02" panel. > > [1]: >

Re: [PATCH] drm/amd/display: Fix division by zero in setup_dsc_config

2024-04-22 Thread Markus Elfring
… > +++ b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c > @@ -1055,7 +1055,12 @@ static bool setup_dsc_config( > if (!is_dsc_possible) > goto done; > > - dsc_cfg->num_slices_v = pic_height/slice_height; > + if (slice_height > 0) > + dsc_cfg->num_slices_v =

  1   2   3   >