Re: [PATCH v3 0/9] MediaTek DisplayPort: support eDP and aux-bus

2023-05-29 Thread AngeloGioacchino Del Regno
Il 04/04/23 12:47, AngeloGioacchino Del Regno ha scritto: Hello CK, Gentle ping for this series. Thanks, Angelo Changes in v3: - Added DPTX AUX block initialization before trying to communicate to stop relying on the bootloader keeping it initialized before booting Linux. - Fixed

Re: [PATCH v15 04/10] dt-bindings: display: bridge: anx7625: Add mode-switch support

2023-05-29 Thread Jagan Teki
On Wed, May 10, 2023 at 9:12 AM Pin-yen Lin wrote: > > +Jagan who worked on a similar design and initiated the thread. > > Hi Stephen, > > On Sat, Apr 29, 2023 at 12:47 PM Stephen Boyd wrote: > > > > Quoting Pin-yen Lin (2023-04-20 02:10:46) > > > On Thu, Apr 20, 2023 at 2:10 PM Stephen Boyd wro

Re: [PATCH v15 04/10] dt-bindings: display: bridge: anx7625: Add mode-switch support

2023-05-29 Thread Pin-yen Lin
On Fri, May 12, 2023 at 1:30 AM Stephen Boyd wrote: > > Quoting Pin-yen Lin (2023-05-09 20:41:54) > > On Sat, Apr 29, 2023 at 12:47 PM Stephen Boyd wrote: > > > > > > Good point. I'm suggesting to make the drm bridge chain into a tree. We > > > need to teach drm_bridge core about a mux, and have

Re: [PATCH] arm64: dts: mediatek: mt8173-elm: remove panel model number in DT

2023-05-29 Thread Icenowy Zheng
在 2023-05-29星期一的 18:28 +0200,Matthias Brugger写道: > > > On 29/05/2023 10:45, Icenowy Zheng wrote: > > 在 2023-05-29星期一的 10:02 +0200,AngeloGioacchino Del Regno写道: > > > Il 26/05/23 16:24, Doug Anderson ha scritto: > > > > Hi, > > > > > > > > On Fri, May 26, 2023 at 3:09 AM Icenowy Zheng > > > > wr

[PATCH v3] drm/ast: Fix long time waiting on s3/s4 resume

2023-05-29 Thread Jammy Huang
In resume, DP's launch function, ast_dp_launch, could wait at most 30 seconds before timeout to check if DP is enabled. It could lead to 'DPM device timeout' and trigger unrecoverable kernel panic. To avoid this problem, we check if DP enable or not at driver probe only. Reported-and-tested-by: W

Re: [PATCH v4 13/13] drm/i915: Implement dedicated fbdev I/O helpers

2023-05-29 Thread Sui Jingfeng
Hi, On 2023/5/30 03:36, Sam Ravnborg wrote: Hi Thomas, On Wed, May 24, 2023 at 11:21:50AM +0200, Thomas Zimmermann wrote: Implement dedicated fbdev helpers for framebuffer I/O instead of using DRM's helpers. Use an fbdev generator macro for deferred I/O to create the fbdev callbacks. i915 was

[PATCH 9/9] drm/amd/pm: enable Wifi RFI mitigation feature support for SMU13.0.7

2023-05-29 Thread Evan Quan
Fulfill the SMU13.0.7 support for Wifi RFI mitigation feature. Signed-off-by: Evan Quan -- v1->v2: - check wbrf support using pmfw version(Lijo) v2->v3: - some minor fixes(Mario) --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 61 +++ 1 file changed, 61 insertions(+) dif

[PATCH 8/9] drm/amd/pm: enable Wifi RFI mitigation feature support for SMU13.0.0

2023-05-29 Thread Evan Quan
Fulfill the SMU13.0.0 support for Wifi RFI mitigation feature. Signed-off-by: Evan Quan -- v1->v2: - check the wbrf support using pmfw version(Lijo) v2->v3: - some minor fixes(Mario) --- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 4 ++ drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 3

[PATCH 7/9] drm/amd/pm: add flood detection for wbrf events

2023-05-29 Thread Evan Quan
To protect PMFW from being overloaded. Signed-off-by: Evan Quan -- v1->v2: - utilize the delayed work(Lijo, Christian) - split the new module parameter changes out(Christian, Alex) v2->v3: - simplify the flood detection further per latest design v3->v4: - drop unneeded wbrf_mutex(Lijo, Ch

[PATCH 6/9] drm/amd/pm: setup the framework to support Wifi RFI mitigation feature

2023-05-29 Thread Evan Quan
With WBRF feature supported, as a driver responding to the frequencies, amdgpu driver is able to do shadow pstate switching to mitigate possible interference(between its (G-)DDR memory clocks and local radio module frequency bands used by Wifi 6/6e/7). To make WBRF feature functional, the kernel n

[PATCH 5/9] drm/amd/pm: update driver_if and ppsmc headers for coming wbrf feature

2023-05-29 Thread Evan Quan
Add those data structures to support Wifi RFI mitigation feature. Signed-off-by: Evan Quan -- v1->v2: - update smu_v13_0_7_ppsmc.h to fit latest messages definitions --- .../pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h | 14 +- .../pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_7.h |

[PATCH 4/9] wifi: ath12k: Add support to the Qualcomm ath12k for ACPI WBRF

2023-05-29 Thread Evan Quan
Qualcomm wifi adapters are utilized in systems that support AMD's WBRF interference mitigation mechanism. For this mechanism to work frequencies utilized use must be notified to an ACPI device. If the kernel is configured with CONFIG_ACPI_WBRF then notify this ACPI device accordingly. Change base

[PATCH 3/9] wifi: ath11k: Add support to the Qualcomm ath11k for ACPI WBRF

2023-05-29 Thread Evan Quan
From: Anson Tsao Qualcomm wifi adapters are utilized in systems that support AMD's WBRF interference mitigation mechanism. For this mechanism to work frequencies utilized use must be notified to an ACPI device. If the kernel is configured with CONFIG_ACPI_WBRF then notify this ACPI device accord

[PATCH 2/9] mt76: Add support to the Mediatek MT7921 for ACPI WBRF

2023-05-29 Thread Evan Quan
From: Mario Limonciello Mediatek wifi adapters are utilized in systems that support AMD's WBRF interference mitigation mechanism. For this mechanism to work frequencies utilized use must be notified to an ACPI device. If the kernel is configured with CONFIG_ACPI_WBRF then notify this ACPI device

[PATCH 1/9] drivers/acpi: Add support for Wifi band RF mitigations

2023-05-29 Thread Evan Quan
From: Mario Limonciello Due to electrical and mechanical constraints in certain platform designs there may be likely interference of relatively high-powered harmonics of the (G-)DDR memory clocks with local radio module frequency bands used by Wifi 6/6e/7. To mitigate this, AMD has introduced an

[PATCH 0/9] Support Wifi RFI interference mitigation feature

2023-05-29 Thread Evan Quan
Due to electrical and mechanical constraints in certain platform designs there may be likely interference of relatively high-powered harmonics of the (G-)DDR memory clocks with local radio module frequency bands used by Wifi 6/6e/7. To mitigate possible RFI interference producers can advertise th

Re: linux-next: manual merge of the drm-intel tree with the drm tree

2023-05-29 Thread Stephen Rothwell
Hi all, On Tue, 30 May 2023 11:57:52 +1000 Stephen Rothwell wrote: > > @@@ -920,33 -587,8 +640,9 @@@ static const struct intel_device_info j > #define GEN12_FEATURES \ > GEN11_FEATURES, \ > GEN(12), \ > - .display.abox_mask = GENMASK(2, 1), \ > - .__runtime.pipe_mask = BIT(

linux-next: manual merge of the drm-intel tree with the drm tree

2023-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_drv.h between commit: 66ca1d8f222b ("drm/i915/i915_drv: Use i915 instead of dev_priv insied the file_priv structure") from the drm tree and commits: 5af5169d7582 ("drm/i915: Convert INTE

linux-next: manual merge of the drm-intel tree with the drm tree

2023-05-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_pci.c between commit: 5e352e32aec2 ("drm/i915: preparation for using PAT index") from the drm tree and commits: 5af5169d7582 ("drm/i915: Convert INTEL_INFO()->display to a pointer") 18e

[Bug 217499] NVIDIA drivers fail to install on 6.4.0-rc3-1-mainline kernel

2023-05-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217499 Wessel (wessel.working+ker...@gmail.com) changed: What|Removed |Added Resolution|MOVED |ANSWERED -- Y

Re: [PATCH 00/36] drm/amd/display: add AMD driver-specific properties for color mgmt

2023-05-29 Thread Dmitry Baryshkov
On 24/05/2023 01:14, Melissa Wen wrote: This series is a refined version of our RFC [1] for AMD driver-specific color management properties. It is a collection of contributions from Joshua, Harry and I to enhance AMD KMS color pipeline for Steam Deck/SteamOS by exposing the large set of color cap

[PATCH v4 6/6] drm/shmem-helper: Switch to reservation lock

2023-05-29 Thread Dmitry Osipenko
Replace all drm-shmem locks with a GEM reservation lock. This makes locks consistent with dma-buf locking convention where importers are responsible for holding reservation lock for all operations performed over dma-bufs, preventing deadlock between dma-buf importers and exporters. Suggested-by: D

[PATCH v4 4/6] drm: Don't assert held reservation lock for dma-buf mmapping

2023-05-29 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v4 5/6] dma-buf: Change locking policy for mmap()

2023-05-29 Thread Dmitry Osipenko
Change locking policy of mmap() callback, making exporters responsible for handling dma-buf reservation locking. Previous locking policy stated that dma-buf is locked for both importers and exporters by the dma-buf core, which caused a deadlock problem for DRM drivers in a case of self-imported dma

[PATCH v4 2/6] dma-buf/heaps: Don't assert held reservation lock for dma-buf mmapping

2023-05-29 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v4 3/6] udmabuf: Don't assert held reservation lock for dma-buf mmapping

2023-05-29 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v4 0/6] Move dma-buf mmap() reservation locking down to exporters

2023-05-29 Thread Dmitry Osipenko
This patchset makes dma-buf exporters responisble for taking care of the reservation lock. I also included patch that moves drm-shmem to use reservation lock, to let CI test the whole set. I'm going to take all the patches via the drm-misc tree, please give an ack. Previous policy stated that dma-

[PATCH v4 1/6] media: videobuf2: Don't assert held reservation lock for dma-buf mmapping

2023-05-29 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Dmitry Baryshkov
On 30/05/2023 01:37, Marijn Suijten wrote: On 2023-05-30 01:18:40, Dmitry Baryshkov wrote: +ret = mipi_dsi_dcs_set_display_on(dsi); +if (ret < 0) { +dev_err(dev, "Failed to turn display on: %d\n", ret); +return ret; +} My usual question: should the mipi_dsi_dcs_exi

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Marijn Suijten
On 2023-05-30 01:18:40, Dmitry Baryshkov wrote: > > +ret = mipi_dsi_dcs_set_display_on(dsi); > > +if (ret < 0) { > > +dev_err(dev, "Failed to turn display on: %d\n", ret); > > +return ret; > > +} > > My usual question: should the mipi_dsi_d

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Dmitry Baryshkov
On 30/05/2023 00:11, Marijn Suijten wrote: On 2023-05-22 04:16:20, Dmitry Baryshkov wrote: + if (ctx->dsi->dsc) { dsi->dsc is always set, thus this condition can be dropped. I want to leave room for possibly running the panel without DSC (at a lower resolution/refresh rate, or at high

Re: [PATCH RFC 06/10] drm/panel/samsung-sofef01: Add panel driver for Sony Xperia 5 / 10 II

2023-05-29 Thread Marijn Suijten
On 2023-05-30 01:20:17, Dmitry Baryshkov wrote: > On 29/05/2023 23:58, Marijn Suijten wrote: > > On 2023-05-23 01:56:46, Dmitry Baryshkov wrote: > >> On Tue, 23 May 2023 at 01:32, Marijn Suijten > >> wrote: > >>> > >>> On 2023-05-22 04:19:45, Dmitry Baryshkov wrote: > On 22/05/2023 00:23, Mar

Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-29 Thread Marijn Suijten
On 2023-05-30 01:22:54, Dmitry Baryshkov wrote: > On 30/05/2023 00:29, Konrad Dybcio wrote: > > > > > > On 29.05.2023 23:21, Marijn Suijten wrote: > >> On 2023-05-22 11:08:12, Neil Armstrong wrote: > >>> On 22/05/2023 03:23, Dmitry Baryshkov wrote: > On 22/05/2023 00:23, Marijn Suijten wrote

Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-29 Thread Dmitry Baryshkov
On 30/05/2023 00:29, Konrad Dybcio wrote: On 29.05.2023 23:21, Marijn Suijten wrote: On 2023-05-22 11:08:12, Neil Armstrong wrote: On 22/05/2023 03:23, Dmitry Baryshkov wrote: On 22/05/2023 00:23, Marijn Suijten wrote: The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia

Re: [PATCH RFC 06/10] drm/panel/samsung-sofef01: Add panel driver for Sony Xperia 5 / 10 II

2023-05-29 Thread Dmitry Baryshkov
On 29/05/2023 23:58, Marijn Suijten wrote: On 2023-05-23 01:56:46, Dmitry Baryshkov wrote: On Tue, 23 May 2023 at 01:32, Marijn Suijten wrote: On 2023-05-22 04:19:45, Dmitry Baryshkov wrote: On 22/05/2023 00:23, Marijn Suijten wrote: This SOFEF01-M Display-IC driver supports two modes with

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Dmitry Baryshkov
On 30/05/2023 00:07, Marijn Suijten wrote: On 2023-05-22 15:58:56, Dmitry Baryshkov wrote: On Mon, 22 May 2023 at 12:04, Neil Armstrong wrote: On 22/05/2023 03:16, Dmitry Baryshkov wrote: On 22/05/2023 00:23, Marijn Suijten wrote: Sony provides an unlabeled LGD + Atmel maXTouch assembly in

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Dmitry Baryshkov
On 30/05/2023 00:11, Marijn Suijten wrote: On 2023-05-22 04:16:20, Dmitry Baryshkov wrote: + if (ctx->dsi->dsc) { dsi->dsc is always set, thus this condition can be dropped. I want to leave room for possibly running the panel without DSC (at a lower resolution/refresh rate, or at high

Re: [PATCH] drm/msm/dpu: use PINGPONG_NONE to unbind INTF from PP

2023-05-29 Thread Dmitry Baryshkov
On Tue, 30 May 2023 at 00:46, Marijn Suijten wrote: > > On 2023-05-26 12:09:45, Dmitry Baryshkov wrote: > > 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. Simpli

Re: [PATCH v3 6/6] drm/shmem-helper: Switch to reservation lock

2023-05-29 Thread Dmitry Osipenko
On 5/22/23 16:02, Emil Velikov wrote: >> -void drm_gem_shmem_put_pages(struct drm_gem_shmem_object *shmem) >> +static int drm_gem_shmem_pin_locked(struct drm_gem_shmem_object *shmem) >> +{ >> + int ret; >> + >> + dma_resv_assert_held(shmem->base.resv); >> + >> + ret = drm_gem_shme

Re: [PATCH] drm/msm/dpu: use PINGPONG_NONE to unbind INTF from PP

2023-05-29 Thread Marijn Suijten
On 2023-05-26 12:09:45, Dmitry Baryshkov wrote: > 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 dro

Re: [PATCH 1/2] drm/msm/dpu: drop SSPP register dumpers

2023-05-29 Thread Marijn Suijten
On 2023-05-24 12:18:09, Abhinav Kumar wrote: > > > On 5/24/2023 2:48 AM, Marijn Suijten wrote: > > On 2023-05-23 13:01:13, Abhinav Kumar wrote: > >> > >> > >> On 5/21/2023 10:21 AM, Dmitry Baryshkov wrote: > >>> Drop SSPP-specifig debugfs register dumps in favour of using > >>> debugfs/dri/0/kms

Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-29 Thread Konrad Dybcio
On 29.05.2023 23:21, Marijn Suijten wrote: > On 2023-05-22 11:08:12, Neil Armstrong wrote: >> On 22/05/2023 03:23, Dmitry Baryshkov wrote: >>> On 22/05/2023 00:23, Marijn Suijten wrote: The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia 5 II always uses Display St

Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-29 Thread Marijn Suijten
On 2023-05-22 11:08:12, Neil Armstrong wrote: > On 22/05/2023 03:23, Dmitry Baryshkov wrote: > > On 22/05/2023 00:23, Marijn Suijten wrote: > >> The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia > >> 5 II always uses Display Stream Compression 1.1 and features a 60hz and > >>

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Marijn Suijten
On 2023-05-22 04:16:20, Dmitry Baryshkov wrote: > > + if (ctx->dsi->dsc) { > > dsi->dsc is always set, thus this condition can be dropped. I want to leave room for possibly running the panel without DSC (at a lower resolution/refresh rate, or at higher power consumption if there is enough BW)

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-29 Thread Marijn Suijten
On 2023-05-22 15:58:56, Dmitry Baryshkov wrote: > On Mon, 22 May 2023 at 12:04, Neil Armstrong > wrote: > > > > On 22/05/2023 03:16, Dmitry Baryshkov wrote: > > > On 22/05/2023 00:23, Marijn Suijten wrote: > > >> Sony provides an unlabeled LGD + Atmel maXTouch assembly in its Xperia > > >> XZ3 (t

Re: [PATCH RFC 06/10] drm/panel/samsung-sofef01: Add panel driver for Sony Xperia 5 / 10 II

2023-05-29 Thread Marijn Suijten
On 2023-05-23 01:56:46, Dmitry Baryshkov wrote: > On Tue, 23 May 2023 at 01:32, Marijn Suijten > wrote: > > > > On 2023-05-22 04:19:45, Dmitry Baryshkov wrote: > > > On 22/05/2023 00:23, Marijn Suijten wrote: > > > > This SOFEF01-M Display-IC driver supports two modes with different > > > > compat

[Bug 217499] NVIDIA drivers fail to install on 6.4.0-rc3-1-mainline kernel

2023-05-29 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217499 Wessel (wessel.working+ker...@gmail.com) changed: What|Removed |Added Status|RESOLVED|CLOSED

Re: [PATCH v4 13/13] drm/i915: Implement dedicated fbdev I/O helpers

2023-05-29 Thread Sam Ravnborg
Hi Thomas, On Wed, May 24, 2023 at 11:21:50AM +0200, Thomas Zimmermann wrote: > Implement dedicated fbdev helpers for framebuffer I/O instead > of using DRM's helpers. Use an fbdev generator macro for > deferred I/O to create the fbdev callbacks. i915 was the only > caller of the DRM helpers, so r

Re: [PATCH v4 11/13] drm/fb-helper: Export helpers for marking damage areas

2023-05-29 Thread Sam Ravnborg
On Wed, May 24, 2023 at 11:21:48AM +0200, Thomas Zimmermann wrote: > Export drm_fb_helper_damage() and drm_fb_helper_damage_range(), which > handle damage areas for fbdev emulation. This is a temporary export > that allows to move the DRM I/O helpers for fbdev into drivers. Only > fbdev-generic and

Re: [PATCH v4 00/13] drm/fbdev: Remove DRM's helpers for fbdev I/O

2023-05-29 Thread Sam Ravnborg
Hi Thomas. > v4: > * use initializer and generator macros for struct fb_ops > * partially support damage handling in msm (Dmitri) I like the macros. They make it simpler and we do not spread the _cfb_ misname to more files. > v3: > * fix Kconfig options (Jingfeng) > * mi

Re: [PATCH v4 13/13] drm/i915: Implement dedicated fbdev I/O helpers

2023-05-29 Thread Sam Ravnborg
Hi Thomas, On Wed, May 24, 2023 at 11:21:50AM +0200, Thomas Zimmermann wrote: > Implement dedicated fbdev helpers for framebuffer I/O instead > of using DRM's helpers. Use an fbdev generator macro for > deferred I/O to create the fbdev callbacks. i915 was the only > caller of the DRM helpers, so r

Re: [PATCH v4 03/13] drm/armada: Use regular fbdev I/O helpers

2023-05-29 Thread Sam Ravnborg
On Wed, May 24, 2023 at 11:21:40AM +0200, Thomas Zimmermann wrote: > Use the regular fbdev helpers for framebuffer I/O instead of DRM's > helpers. Armada does not use damage handling, so DRM's fbdev helpers > are mere wrappers around the fbdev code. > > By using fbdev helpers directly within each

Re: [PATCH v4 02/13] fbdev: Add initializer macros for struct fb_ops

2023-05-29 Thread Sam Ravnborg
On Wed, May 24, 2023 at 11:21:39AM +0200, Thomas Zimmermann wrote: > For framebuffers in I/O and system memory, add macros that set > struct fb_ops to the respective callback functions. > > For deferred I/O, add macros that generate callback functions with > damage handling. Add initializer macros

Re: [PATCH v4 01/13] fbdev: Add Kconfig options to select different fb_ops helpers

2023-05-29 Thread Sam Ravnborg
Hi Thomas, On Wed, May 24, 2023 at 11:21:38AM +0200, Thomas Zimmermann wrote: > Many fbdev drivers use the same set of fb_ops helpers. Add Kconfig > options to select them at once. This will help with making DRM's > fbdev emulation code more modular, but can also be used to simplify > fbdev's driv

Re: [PATCH 1/7] dt-bindings: msm: dsi-phy-28nm: Document msm8226 compatible

2023-05-29 Thread Conor Dooley
On Mon, May 29, 2023 at 11:43:58AM +0200, Luca Weiss wrote: > The MSM8226 SoC uses a slightly different 28nm dsi phy. Add a new > compatible for it. > > Signed-off-by: Luca Weiss > --- > Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml | 1 + > Documentation/devicetree/bindings/di

Re: [PATCH 3/7] dt-bindings: display/msm: qcom,mdp5: Add msm8226 compatible

2023-05-29 Thread Conor Dooley
On Mon, May 29, 2023 at 11:44:00AM +0200, Luca Weiss wrote: > Add the compatible for the MDP5 found on MSM8226. > > Signed-off-by: Luca Weiss Acked-by: Conor Dooley Thanks, Conor. signature.asc Description: PGP signature

Re: [PATCH 2/7] dt-bindings: display/msm: dsi-controller-main: Add msm8226 compatible

2023-05-29 Thread Conor Dooley
On Mon, May 29, 2023 at 11:43:59AM +0200, Luca Weiss wrote: > Add the compatible for the DSI found on MSM8226. > > Signed-off-by: Luca Weiss Acked-by: Conor Dooley Thanks, Conor. signature.asc Description: PGP signature

[PATCH v5 5/6] drm/etnaviv: expand driver support for the PCI devices

2023-05-29 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. Because we want to bind the DR

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

2023-05-29 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 v5 1/6] drm/etnaviv: add a dedicated function to register an irq handler

2023-05-29 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 support for the PCI device. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 --- 1 file c

[PATCH v5 0/6] drm/etnaviv: add pci device driver support

2023-05-29 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 device. Thus, this patch series is trying to add PCI device driver support to etnaviv. Sui Jingfeng (6): drm/etnaviv: add a dedicated function to register an irq handler

[PATCH v5 6/6] drm/etnaviv: allow usperspace create cached coherent bo

2023-05-29 Thread Sui Jingfeng
cached system RAM is coherent on loongson CPUs, and the GPU and DC allways snoop the CPU's cache. write-combine caching property is not suitiable for us. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_gem.c | 22

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

2023-05-29 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 v5 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-05-29 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI gpu. So don't rage quit if there is no CLK subsystem. For the GPU in LS7a1000 and LS2k2000, the working frequency of the GPU is tuned by configuring the PLL register dir

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

2023-05-29 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 v4 2/6] drm/etnaviv: add a dedicated function to get various clocks

2023-05-29 Thread Sui Jingfeng
Because it is also platform-dependent, there are environments where don't have CLK subsystem support, for example, discreted PCI gpu. So don't rage quit if there is no CLK subsystem. For the GPU in LS7a1000 and LS2k2000, the working frequency of the GPU is tuned by configuring the PLL register dir

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

2023-05-29 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 v4 0/6] drm/etnaviv: add pci device driver support

2023-05-29 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 device. Thus, this series is trying to add PCI device driver support to etnaviv. Sui Jingfeng (6): drm/etnaviv: add a dedicated function to register an irq handler drm/e

[PATCH v4 5/6] drm/etnaviv: expand driver support for the PCI devices

2023-05-29 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. Because we want to bind the DR

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

2023-05-29 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 support for the PCI device. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 34 --- 1 file c

Re: [PATCH] arm64: dts: mediatek: mt8173-elm: remove panel model number in DT

2023-05-29 Thread Matthias Brugger
On 29/05/2023 10:45, Icenowy Zheng wrote: 在 2023-05-29星期一的 10:02 +0200,AngeloGioacchino Del Regno写道: Il 26/05/23 16:24, Doug Anderson ha scritto: Hi, On Fri, May 26, 2023 at 3:09 AM Icenowy Zheng wrote: Currently a specific panel number is used in the Elm DTSI, which is corresponded to a

[PATCH] pci/vgaarb: make vga_is_firmware_default() arch independent

2023-05-29 Thread Sui Jingfeng
The vga_is_firmware_default() function will work on non-x86 architectures as long as the arch has UEFI GOP support, which passes the firmware framebuffer base address and size. This patch makes the vga_is_firmware_default() function arch-independent. This could help the VGAARB subsystem make the r

Re: [PATCH v9 RESEND 0/5] Add RZ/{G2L,G2LC} and RZ/V2L Display Unit support

2023-05-29 Thread Laurent Pinchart
On Mon, May 29, 2023 at 02:22:06PM +, Biju Das wrote: > HI Laurent, > > Thanks for the feedback. > > > Subject: Re: [PATCH v9 RESEND 0/5] Add RZ/{G2L,G2LC} and RZ/V2L Display > > Unit support > > > > Hi Biju, > > > > On Thu, May 25, 2023 at 02:30:10PM +, Biju Das wrote: > > > Hi DRM mai

Re: [PATCH v9 RESEND 4/5] drm: Add RZ/G2L DU Support

2023-05-29 Thread Laurent Pinchart
Hi Biju, Thank you for the patch. This is a partial review, because the driver is big, and because some changes in v10 will (hopefully) simplify the code and make review easier. On Tue, May 02, 2023 at 11:09:11AM +0100, Biju Das wrote: > The LCD controller is composed of Frame Compression Proces

[PATCH v4 8/8] drm/mediatek: dpi: Add mt8195 hdmi to DPI driver

2023-05-29 Thread Guillaume Ranquet
Add the DPI1 hdmi path support in mtk dpi driver Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/mtk_dpi.c | 121 ++-- drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 5 ++ 2 files changed, 119 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v4 3/8] drm/mediatek: extract common functions from the mtk hdmi driver

2023-05-29 Thread Guillaume Ranquet
Create a common "framework" that can be used to add support for different hdmi IPs within the mediatek range of products. Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_hdmi.c| 596 ++--- driv

[PATCH v4 7/8] dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8195

2023-05-29 Thread Guillaume Ranquet
Add dt-binding documentation of dpi for MediaTek MT8195 SoC. Acked-by: Krzysztof Kozlowski Signed-off-by: Guillaume Ranquet --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/med

[PATCH v4 6/8] drm/mediatek: hdmi: v2: add audio support

2023-05-29 Thread Guillaume Ranquet
Add HDMI audio support for v2 Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 1 + drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 198 + drivers/gpu/drm/mediatek/mtk_hdmi_v2.h | 4 +- 3 files changed, 202 insertions(+), 1 deleti

[PATCH v4 5/8] drm/mediatek: hdmi: add v2 support

2023-05-29 Thread Guillaume Ranquet
Adds hdmi and hdmi-ddc support for v2 IP. Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/Kconfig|2 + drivers/gpu/drm/mediatek/Makefile |2 + drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 13 + drivers/gpu/drm/mediatek/mtk_hdmi_common.h |1 + d

[PATCH v4 1/8] dt-bindings: display: mediatek: add MT8195 hdmi bindings

2023-05-29 Thread Guillaume Ranquet
Add mt8195 SoC bindings for hdmi and hdmi-ddc On mt8195 the ddc i2c controller is part of the hdmi IP block and thus has no specific register range, power domain or interrupt, making it simpler than the legacy "mediatek,hdmi-ddc" binding. Signed-off-by: Guillaume Ranquet --- .../bindings/displa

[PATCH v4 2/8] drm/mediatek: hdmi: use a regmap instead of iomem

2023-05-29 Thread Guillaume Ranquet
To prepare support for newer chips that need to share their address range with a dedicated ddc driver, use a regmap. Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 173 ++-- 1 file changed, 65 insertions(+), 108 deletions(-) diff --git

[PATCH v4 4/8] drm/mediatek: hdmi: make the cec dev optional

2023-05-29 Thread Guillaume Ranquet
Make cec device optional in order to support newer versions of the hdmi IP which doesn't require it Signed-off-by: Guillaume Ranquet --- drivers/gpu/drm/mediatek/mtk_hdmi.c| 8 +++-- drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 52 +++--- 2 files changed, 39 inse

[PATCH v4 0/8] Add MT8195 HDMI support

2023-05-29 Thread Guillaume Ranquet
Add support for HDMI Tx on MT8195. This includes a split of the current "legacy" hdmi driver into a common library of functions and two dedicated compilation units with specific code for mt8167 and another for the "v2" mt8195 SoC. Support for the new mt8195 dpi/drm_drv adjustments to support hdmi

RE: [PATCH v9 RESEND 0/5] Add RZ/{G2L,G2LC} and RZ/V2L Display Unit support

2023-05-29 Thread Biju Das
HI Laurent, Thanks for the feedback. > Subject: Re: [PATCH v9 RESEND 0/5] Add RZ/{G2L,G2LC} and RZ/V2L Display > Unit support > > Hi Biju, > > On Thu, May 25, 2023 at 02:30:10PM +, Biju Das wrote: > > Hi DRM maintainers, > > > > Gentle ping. > > Sorry, I was on holidays the last two weeks.

Re: [PATCH v9 RESEND 0/5] Add RZ/{G2L,G2LC} and RZ/V2L Display Unit support

2023-05-29 Thread Laurent Pinchart
Hi Biju, On Thu, May 25, 2023 at 02:30:10PM +, Biju Das wrote: > Hi DRM maintainers, > > Gentle ping. Sorry, I was on holidays the last two weeks. > Are we happy with moving all Renesas drm drivers to Renesas specific > directory or preference is for separate one?? This works for me. > If

Re: [PATCH 2/2] dt-bindings: backlight: document new property default-brightness-level

2023-05-29 Thread Alexandru Ardelean
On Fri, May 26, 2023 at 3:05 PM Philippe CORNU wrote: > > > > On 5/19/23 22:05, Alexandru Ardelean wrote: > > From: Yannick Fertre > > > > Add documentation for new default-brightness-level property. > > > > Reviewed-by: Philippe CORNU > > Hi Alexandru, > same comments as for the 1/2 patch. Ack

Re: [PATCH 2/2] dt-bindings: backlight: document new property default-brightness-level

2023-05-29 Thread Alexandru Ardelean
On Fri, May 26, 2023 at 1:20 PM Daniel Thompson wrote: > > On Fri, May 19, 2023 at 11:05:20PM +0300, Alexandru Ardelean wrote: > > From: Yannick Fertre > > > > Add documentation for new default-brightness-level property. > > > > Reviewed-by: Philippe CORNU > > Signed-off-by: Yannick Fertre > >

Re: [PATCH 1/2] backlight: gpio_backlight: add new property default-brightness-level

2023-05-29 Thread Alexandru Ardelean
On Fri, May 26, 2023 at 3:04 PM Philippe CORNU wrote: > > > On 5/19/23 22:05, Alexandru Ardelean wrote: > > From: Yannick Fertre > > > > Add new property to set a brightness by default at probe. > > > > Reviewed-by: Philippe CORNU > > Hi Alexandru, > > Many thanks for your patch. > > You have se

Kernel bug related to drivers/gpu/drm/ttm/ttm_bo.c

2023-05-29 Thread Christopher Klooz
Hi! I think we have a serious kernel bug that is related to or inside in drivers/gpu/drm/ttm/ttm_bo.c The reason for my assumptions lies in one of my recent system freezes with kernel 6.3.4 that go along with massive kernel error logs in journalctl. An extract from the logs: ... May 28 14:

Re: [PATCH 03/27] dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT6795

2023-05-29 Thread Matthias Brugger
Hi Chun-Kuang Hu, Can you help to merge the missing DT-binding patches in this series? Thanks a lot, Matthias On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for the MediaTek Helio X10 MT6795 SoC, using the same parameters as MT8183. Signed-off-by: AngeloGioacch

Re: [PATCH 02/27] dt-bindings: phy: mediatek, dsi-phy: Add compatible for MT6795 Helio X10

2023-05-29 Thread Matthias Brugger
On 14/04/2023 10:22, Krzysztof Kozlowski wrote: On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795: this SoC uses the same DSI PHY as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/phy/medi

RE: [PATCH v9 RESEND 2/5] dt-bindings: display: Document Renesas RZ/G2L DU bindings

2023-05-29 Thread Biju Das
Hi Laurent, > Subject: Re: [PATCH v9 RESEND 2/5] dt-bindings: display: Document > Renesas RZ/G2L DU bindings > > Hi Biju, > > Thank you for the patch. > > On Tue, May 02, 2023 at 11:09:09AM +0100, Biju Das wrote: > > The RZ/G2L LCD controller is composed of Frame Compression Processor > > (FCPV

Re: [PATCH 25/27] arm64: dts: mediatek: mt6795-xperia-m5: Add eMMC, MicroSD slot, SDIO

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Configure and enable the MMC0/1/2 controllers, used for the eMMC chip, MicroSD card slot and SDIO (WiFi) respectively. Signed-off-by: AngeloGioacchino Del Regno Applied, thanks --- .../dts/mediatek/mt6795-sony-xperia-m5.dts| 9

Re: [PATCH 24/27] arm64: dts: mediatek: mt6795-xperia-m5: Add MT6331 Combo PMIC

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: This smartphone uses the Helio X10 standard MT6331+MT6332 combo PMICs: include the mt6331 devicetree and add the required interrupt. Note that despite there being two interrupts, one for MT6331 and one for MT6332, in configurations using

Re: [PATCH 23/27] arm64: dts: mediatek: Add MT6331 PMIC devicetree

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: MT6331 is the primary PMIC for the MediaTek Helio X10 MT6795 smartphone platforms: add a devicetree describing its regulators, Real Time Clock and PMIC-keys. Signed-off-by: AngeloGioacchino Del Regno Applied, thanks --- arch/arm6

Re: [PATCH 21/27] arm64: dts: mediatek: mt6795: Add PMIC Wrapper node

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add the pwrap node: this is used to communicate with the PMIC(s). Signed-off-by: AngeloGioacchino Del Regno Applied thanks! --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --g

Re: [PATCH 18/27] arm64: dts: mediatek: mt6795: Add support for IOMMU and LARBs

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add nodes for the multimedia IOMMU and its LARBs: this includes all but the MJC LARB, which cannot currently be used and will be added later. Signed-off-by: AngeloGioacchino Del Regno Applied, thanks --- arch/arm64/boot/dts/mediat

Re: [PATCH 17/27] arm64: dts: mediatek: mt6795: Add MMSYS node for multimedia clocks

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add the MultiMedia System node, providing clocks for the multimedia hardware blocks and their IOMMU/SMIs. Signed-off-by: AngeloGioacchino Del Regno Applied, thanks --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 13 +

Re: [PATCH 16/27] arm64: dts: mediatek: mt6795: Add support for the CMDQ/GCE mailbox

2023-05-29 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: In preparation for adding multimedia blocks, add the CMDQ/GCE mailbox. Signed-off-by: AngeloGioacchino Del Regno Applied, thanks --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v8 13/18] drm/msm/a6xx: Add A610 support

2023-05-29 Thread Konrad Dybcio
A610 is one of (if not the) lowest-tier SKUs in the A6XX family. It features no GMU, as it's implemented solely on SoCs with SMD_RPM. What's more interesting is that it does not feature a VDDGX line either, being powered solely by VDDCX and has an unfortunate hardware quirk that makes its reset lin

  1   2   >