Re: [PATCH v3 1/9] drm/mediatek: dp: Cache EDID for eDP panel

2023-04-12 Thread Matthias Brugger
On 04/04/2023 12:47, AngeloGioacchino Del Regno wrote: Since eDP panels are not removable it is safe to cache the EDID: this will avoid a relatively long read transaction at every PM resume that is unnecessary only in the "special" case of eDP, hence speeding it up a little, as from now on, as

Re: [PATCH] drm/sun4i: uncouple DSI dotclock divider from TCON0_DCLK_REG

2023-04-12 Thread Roman Beranek
On Wed Apr 5, 2023 at 5:03 PM CEST, Maxime Ripard wrote: > On Wed, Apr 05, 2023 at 02:34:11PM +0200, Roman Beranek wrote: > > It turns out however that the new dclk rates can't be set exactly as > > requested without touching pll-video0*, tcon0 now therefore gets > > reparented from pll-mipi to pll

Re: [PATCH] drm/msm/dpu: always program dsc active bits

2023-04-12 Thread Marijn Suijten
On 2023-04-11 16:45:34, Abhinav Kumar wrote: [..] > > Does this flush all DSCs programmed in CTL_DSC_FLUSH as set above? That > > is currently still in `if (cfg->dsc)` and never overwritten if all DSCs > > are disabled, should it be taken out of the `if` to make sure no DSCs > > are inadvertently

Re: [Freedreno] [PATCH] drm/msm/dpu: add DSC range checking during resource reservation

2023-04-12 Thread Marijn Suijten
On 2023-04-11 18:50:24, Abhinav Kumar wrote: > > > On 4/11/2023 6:06 PM, Dmitry Baryshkov wrote: > > On 12/04/2023 01:32, Abhinav Kumar wrote: > >> Hi Marijn > >> > >> On 4/11/2023 3:24 PM, Marijn Suijten wrote: > >>> Again, don't forget to include previous reviewers in cc, please :) > >>> > >>>

[PATCH] drm/omap: dsi: Fix deferred probe warnings

2023-04-12 Thread Tony Lindgren
We may not have dsi->dsidev initialized during probe, and that can lead into various dsi related warnings as omap_dsi_host_detach() gets called with dsi->dsidev set to NULL. The warnings can be "Fixed dependency cycle(s)" followed by a WARNING: CPU: 0 PID: 787 at drivers/gpu/drm/omapdrm/dss/dsi.c:

Re: [PATCH 2/2] drm: Spelling s/randevouz/rendez-vouz/

2023-04-12 Thread Marc Dionne
On Tue, Apr 11, 2023 at 7:44 AM Geert Uytterhoeven wrote: > > Fix a misspelling of "rendez-vouz". > > Signed-off-by: Geert Uytterhoeven > --- > include/drm/task_barrier.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/drm/task_barrier.h b/include/drm/task_barrie

Re: [PATCH v3 1/7] drm: Add common fdinfo helper

2023-04-12 Thread Daniel Vetter
On Tue, Apr 11, 2023 at 03:56:06PM -0700, Rob Clark wrote: > From: Rob Clark > > Handle a bit of the boiler-plate in a single case, and make it easier to > add some core tracked stats. > > Signed-off-by: Rob Clark Thanks a lot for kicking this off. A few polish comments below, with those addre

Re: [PATCH v3 3/7] drm/amdgpu: Switch to fdinfo helper

2023-04-12 Thread Daniel Vetter
On Tue, Apr 11, 2023 at 03:56:08PM -0700, Rob Clark wrote: > From: Rob Clark > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c| 3 ++- > drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 16 ++-- > drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.h | 2 +- > 3 fi

Re: [PATCH v3 5/7] drm/etnaviv: Switch to fdinfo helper

2023-04-12 Thread Daniel Vetter
On Tue, Apr 11, 2023 at 03:56:10PM -0700, Rob Clark wrote: > From: Rob Clark > > Signed-off-by: Rob Clark You're on an old tree, this got reverted. But I'm kinda wondering whether another patch on top shouldn't just includ the drm_show_fdinfo in DRM_GEM_FOPS macro ... There's really no good rea

Re: [PATCH v3 6/7] drm: Add fdinfo memory stats

2023-04-12 Thread Daniel Vetter
On Tue, Apr 11, 2023 at 03:56:11PM -0700, Rob Clark wrote: > From: Rob Clark > > Add support to dump GEM stats to fdinfo. > > v2: Fix typos, change size units to match docs, use div_u64 > v3: Do it in core > > Signed-off-by: Rob Clark > Reviewed-by: Emil Velikov > --- > Documentation/gpu/drm

Re: [PATCH v3 1/9] drm/mediatek: dp: Cache EDID for eDP panel

2023-04-12 Thread AngeloGioacchino Del Regno
Il 12/04/23 09:08, Matthias Brugger ha scritto: On 04/04/2023 12:47, AngeloGioacchino Del Regno wrote: Since eDP panels are not removable it is safe to cache the EDID: this will avoid a relatively long read transaction at every PM resume that is unnecessary only in the "special" case of eDP, h

[PATCH] MAINTAINERS: add drm_bridge for drm bridge maintainers

2023-04-12 Thread Daniel Vetter
Otherwise core changes don't get noticed by the right people. I noticed this because a patch set from Jagan Teki seems to have fallen through the cracks. Signed-off-by: Daniel Vetter Cc: Jagan Teki Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman C

Re: [Freedreno] [PATCH v2 0/2] drm: fdinfo memory stats

2023-04-12 Thread Daniel Vetter
On Wed, Apr 12, 2023 at 01:36:52AM +0300, Dmitry Baryshkov wrote: > On 11/04/2023 21:28, Rob Clark wrote: > > On Tue, Apr 11, 2023 at 10:36 AM Dmitry Baryshkov > > wrote: > > > > > > On Tue, 11 Apr 2023 at 20:13, Rob Clark wrote: > > > > > > > > On Tue, Apr 11, 2023 at 9:53 AM Daniel Vetter wr

Re: [RFC PATCH 00/10] Xe DRM scheduler and long running workload plans

2023-04-12 Thread Daniel Vetter
On Wed, Apr 12, 2023 at 02:47:52PM +0900, Asahi Lina wrote: > On 11/04/2023 23.07, Daniel Vetter wrote: > > On Sat, Apr 08, 2023 at 04:05:20PM +0900, Asahi Lina wrote: > > > On 04/04/2023 10.58, Matthew Brost wrote: > > > > On Tue, Apr 04, 2023 at 10:07:48AM +0900, Asahi Lina wrote: > > > > > Hi, t

Re: [PATCH] MAINTAINERS: add drm_bridge for drm bridge maintainers

2023-04-12 Thread Laurent Pinchart
Hi Daniel, Thank you for the patch. On Wed, Apr 12, 2023 at 10:09:20AM +0200, Daniel Vetter wrote: > Otherwise core changes don't get noticed by the right people. I > noticed this because a patch set from Jagan Teki seems to have fallen > through the cracks. > > Signed-off-by: Daniel Vetter > C

[PATCH 6.1 146/164] drm/display/dp_mst: Handle old/new payload states in drm_dp_remove_payload()

2023-04-12 Thread Greg Kroah-Hartman
From: Imre Deak commit e761cc20946a0094df71cb31a565a6a0d03bd8be upstream. Atm, drm_dp_remove_payload() uses the same payload state to both get the vc_start_slot required for the payload removal DPCD message and to deduct time_slots from vc_start_slot of all payloads after the one being removed.

Re: [PATCH 1/2] accel/ivpu: Add dma fence to command buffers only

2023-04-12 Thread Stanislaw Gruszka
On Thu, Apr 06, 2023 at 06:57:34PM +0200, Daniel Vetter wrote: > On Fri, Mar 31, 2023 at 01:36:02PM +0200, Stanislaw Gruszka wrote: > > From: Karol Wachowski > > > > Currently job->done_fence is added to every BO handle within a job. If job > > handle (command buffer) is shared between multiple s

Re: [PATCH] drm/omap: dsi: Fix deferred probe warnings

2023-04-12 Thread Laurent Pinchart
Hi Tony, Thank you for the patch. On Wed, Apr 12, 2023 at 10:39:53AM +0300, Tony Lindgren wrote: > We may not have dsi->dsidev initialized during probe, and that can > lead into various dsi related warnings as omap_dsi_host_detach() gets > called with dsi->dsidev set to NULL. > > The warnings ca

Re: [PATCH] drm/omap: dsi: Fix deferred probe warnings

2023-04-12 Thread Tomi Valkeinen
On 12/04/2023 11:50, Laurent Pinchart wrote: Hi Tony, Thank you for the patch. On Wed, Apr 12, 2023 at 10:39:53AM +0300, Tony Lindgren wrote: We may not have dsi->dsidev initialized during probe, and that can lead into various dsi related warnings as omap_dsi_host_detach() gets called with dsi

Re: [PATCH] drm/omap: dsi: Fix deferred probe warnings

2023-04-12 Thread Laurent Pinchart
On Wed, Apr 12, 2023 at 11:55:34AM +0300, Tomi Valkeinen wrote: > On 12/04/2023 11:50, Laurent Pinchart wrote: > > Hi Tony, > > > > Thank you for the patch. > > > > On Wed, Apr 12, 2023 at 10:39:53AM +0300, Tony Lindgren wrote: > >> We may not have dsi->dsidev initialized during probe, and that c

Re: [PATCH] drm/omap: dsi: Fix deferred probe warnings

2023-04-12 Thread H. Nikolaus Schaller
> Am 12.04.2023 um 10:50 schrieb Laurent Pinchart > : > > Hi Tony, > > Thank you for the patch. > > On Wed, Apr 12, 2023 at 10:39:53AM +0300, Tony Lindgren wrote: >> We may not have dsi->dsidev initialized during probe, and that can >> lead into various dsi related warnings as omap_dsi_host_d

Re: [PATCH RESEND v3 2/3] drm/ttm: Reduce the number of used allocation orders for TTM pages

2023-04-12 Thread Daniel Vetter
On Tue, 11 Apr 2023 at 15:45, Daniel Vetter wrote: > > On Tue, Apr 11, 2023 at 02:11:18PM +0200, Christian König wrote: > > Am 11.04.23 um 11:51 schrieb Daniel Vetter: > > > On Tue, Apr 04, 2023 at 10:06:49PM +0200, Thomas Hellström wrote: > > > > When swapping out, we will split multi-order pages

Re: [PATCH v5 00/20] Add Tegra20 parallel video input capture

2023-04-12 Thread Luca Ceresoli
Hello Hans, On Fri, 7 Apr 2023 15:38:32 +0200 Luca Ceresoli wrote: > New in v5: dropped the patch that was removing lots of the logic behind > enum_format, after discussion with Hans. The rest is unmodified except for > rebasing and fixing a couple typos in comments. > > Full details follow. >

Re: [PATCH v5 00/20] Add Tegra20 parallel video input capture

2023-04-12 Thread Hans Verkuil
On 12/04/2023 11:16, Luca Ceresoli wrote: > Hello Hans, > > On Fri, 7 Apr 2023 15:38:32 +0200 > Luca Ceresoli wrote: > >> New in v5: dropped the patch that was removing lots of the logic behind >> enum_format, after discussion with Hans. The rest is unmodified except for >> rebasing and fixing

Re: [BUG?] INFO: rcu_sched detected expedited stalls on CPUs/tasks: { 0-.... } 3 jiffies s: 309 root: 0x1/.

2023-04-12 Thread Jani Nikula
On Wed, 12 Apr 2023, Rui Salvaterra wrote: > Hi, everyone, > > I apologise in advance if I've sent this to {too many, the wrong} > people. For some time now, I've been getting sporadic (in about one > out of five boots) DRM-related RCU complaints on an Ivy Bridge-based > (Core i7-3720QM) Mac Mini.

Re: [PATCH v3 0/7] drm: fdinfo memory stats

2023-04-12 Thread Christian König
Am 12.04.23 um 00:56 schrieb Rob Clark: From: Rob Clark Similar motivation to other similar recent attempt[1]. But with an attempt to have some shared code for this. As well as documentation. It is probably a bit UMA-centric, I guess devices with VRAM might want some placement stats as well.

Re: [PATCH 1/2] drm/mediatek: Add ability to support dynamic connector selection

2023-04-12 Thread Alexandre Mergnat
Hi Jason, Can you give me the based git tree/branch for this series please ? I want to do a non-regression test for mt8365-evk board. Feedback below: On 05/04/2023 16:51, Jason-JH.Lin wrote: 1. Move output drm connector from each ddp_path array to connector array. 2. Add dynamic select availab

Re: INFO: rcu_sched detected expedited stalls

2023-04-12 Thread Hillf Danton
On Wed, 12 Apr 2023 10:15:29 +0100 Rui Salvaterra > Hi, everyone, > > I apologise in advance if I've sent this to {too many, the wrong} > people. For some time now, I've been getting sporadic (in about one > out of five boots) DRM-related RCU complaints on an Ivy Bridge-based > (Core i7-3720QM) M

Re: [syzbot] [dri?] WARNING in vkms_get_vblank_timestamp

2023-04-12 Thread Aleksandr Nogikh
On Thu, Apr 6, 2023 at 8:59 PM Daniel Vetter wrote: > > On Thu, Apr 06, 2023 at 10:57:48AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:4b0f4525dc4f Add linux-next specific files for 20230331 > > git tree: linux-next > > console output:

Re: [PATCH v3 1/9] drm/mediatek: dp: Cache EDID for eDP panel

2023-04-12 Thread Matthias Brugger
On 12/04/2023 10:06, AngeloGioacchino Del Regno wrote: Il 12/04/23 09:08, Matthias Brugger ha scritto: On 04/04/2023 12:47, AngeloGioacchino Del Regno wrote: Since eDP panels are not removable it is safe to cache the EDID: this will avoid a relatively long read transaction at every PM resu

Re: [syzbot] [dri?] WARNING in vkms_get_vblank_timestamp

2023-04-12 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-and-tested-by: syzbot+75cc0f9f7e6324dd2...@syzkaller.appspotmail.com Tested on: commit: 7d8214bb Add linux-next specific files for 20230412 git tree: linux-next console output

Re: [syzbot] [dri?] WARNING in vkms_get_vblank_timestamp

2023-04-12 Thread Aleksandr Nogikh
t trigger any > issue: > > Reported-and-tested-by: syzbot+75cc0f9f7e6324dd2...@syzkaller.appspotmail.com > > Tested on: > > commit: 7d8214bb Add linux-next specific files for 20230412 > git tree: linux-next > console output: https://syzkaller.appspot.com/x

Re: [Intel-gfx] [PATCH v4 5/5] drm/i915/gt: Make sure that errors are propagated through request chains

2023-04-12 Thread Andi Shyti
Hi Rodrigo, > > > Currently, when we perform operations such as clearing or copying > > > large blocks of memory, we generate multiple requests that are > > > executed in a chain. > > > > > > However, if one of these requests fails, we may not realize it > > > unless it happens to be the last req

Re: Linux 6.2.1 hits a display driver bug (list_del corruption, ffff88811b4af298->next is NULL)

2023-04-12 Thread Ammar Faizi
On Wed, Apr 12, 2023 at 11:17:22AM +0700, Bagas Sanjaya wrote: > From gitlab issue above, I don't see any progress on bisection attempt. > Ammar, have you successfully boot Ubuntu 20.04 with v5.10 kernel and > test there? I am still using Ubuntu 22.04. Haven't tried 20.04. I'll arrange time for it

Re: [PATCH] MAINTAINERS: add drm_bridge for drm bridge maintainers

2023-04-12 Thread Andrzej Hajda
On 12.04.2023 10:09, Daniel Vetter wrote: Otherwise core changes don't get noticed by the right people. I noticed this because a patch set from Jagan Teki seems to have fallen through the cracks. Signed-off-by: Daniel Vetter Cc: Jagan Teki Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert F

Re: [PATCH -next 1/3] drm/mediatek: Use devm_platform_ioremap_resource()

2023-04-12 Thread Matthias Brugger
On 12/04/2023 08:46, Yang Li wrote: Remove variable 'res' and convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li Reviewed-by: Matthias Brugger --- drivers/gpu

Re: [PATCH -next 2/3] drm/mediatek: Use devm_platform_ioremap_resource()

2023-04-12 Thread Matthias Brugger
On 12/04/2023 08:46, Yang Li wrote: Remove variable 'res' and convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li Reviewed-by: Matthias Brugger --- drivers/gpu

Re: [PATCH -next 3/3] drm/mediatek: Use devm_platform_ioremap_resource()

2023-04-12 Thread Matthias Brugger
On 12/04/2023 08:46, Yang Li wrote: Remove variable 'res' and convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li Reviewed-by: Matthias Brugger --- drivers/gpu

Re: [PATCH v3 01/13] firmware/sysfb: Fix EFI/VESA format selection

2023-04-12 Thread Javier Martinez Canillas
"Pierre Asselin" writes: >> Can you please share you grub config file? It seems that is set to >> GRUB_GFXMODE=1024x768x32 but the actual mode is set to 1024x768x24 ? > > Okay, but you'll be sorry... The gfxmode is set to "keep" in all the > entries. https://www.panix.com/~pa/linux-6.3-simplefb

[PATCH 00/27] MediaTek Helio X10 - Mailbox, Display, MMC/SD/SDIO

2023-04-12 Thread AngeloGioacchino Del Regno
In this series I'm adding support for the DDC (display) block found in the MediaTek Helio X10, the MT6331 PMIC and its peripherals, and eMMC, MicroSD slot and SDIO. Support for the PMIC (...regulators!) is essential to get all of the mtk-sd hardware to work, especially the eMMC where vol switching

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

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for the MediaTek Helio X10 MT6795 SoC, using the same parameters as MT8183. Signed-off-by: AngeloGioacchino Del Regno --- .../display/mediatek/mediatek,dpi.yaml| 23 +++ 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Documentation

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

2023-04-12 Thread AngeloGioacchino Del Regno
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/mediatek,dsi-phy.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/ph

[PATCH 05/27] dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795, using the same DSI block as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../display/mediatek/mediatek,dsi.yaml| 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetr

[PATCH 01/27] dt-bindings: pwm: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's display PWM block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/

[PATCH 08/27] dt-bindings: display: mediatek: wdma: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's WDMA block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,wdma.yaml| 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/

[PATCH 04/27] dt-bindings: display: mediatek: aal: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795: similarly to MT8173, this SoC has the gamma LUT registers in DISP_AAL. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Docum

[PATCH 10/27] dt-bindings: display: mediatek: gamma: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's GAMMA block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,gamma.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 07/27] dt-bindings: display: mediatek: rdma: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's RDMA block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,rdma.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/

[PATCH 09/27] dt-bindings: display: mediatek: color: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's COLOR block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/

[PATCH 06/27] dt-bindings: display: mediatek: ovl: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's OVL block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,ovl.yaml| 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/d

[PATCH 11/27] dt-bindings: display: mediatek: merge: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's MERGE block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,merge.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 12/27] dt-bindings: display: mediatek: split: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's SPLIT block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,split.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 13/27] dt-bindings: display: mediatek: ufoe: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's UFOE block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,ufoe.yaml| 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/

[PATCH 14/27] dt-bindings: display: mediatek: od: Add compatible for MediaTek MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for MediaTek Helio X10 MT6795's OverDrive (OD) block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,od.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree

[PATCH 15/27] dt-bindings: mailbox: mediatek, gce-mailbox: Add support for MT6795

2023-04-12 Thread AngeloGioacchino Del Regno
Add a compatible string for the MT6795 Helio X10 SoC using MT8173 binding and add a header for the MT6795's GCE mailbox. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../mailbox/mediatek,gce-mailbox.yaml | 20 +-- include/dt-bindings/gce/mediatek,mt67

[PATCH 19/27] arm64: dts: mediatek: mt6795: Add support for display blocks and DPI/DSI

2023-04-12 Thread AngeloGioacchino Del Regno
Introduce all nodes for all of the display blocks in the MediaTek Helio X10 MT6795 SoC, including the DSI PHY and DSI/DPI interfaces: those are left disabled as usage is board specific. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 249

[PATCH 22/27] arm64: dts: mediatek: mt6795: Copyright header additions

2023-04-12 Thread AngeloGioacchino Del Regno
I have added more than 800 lines to this devicetree: adding myself to the copyright header. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/arch/arm64/boot/d

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

2023-04-12 Thread AngeloGioacchino Del Regno
Add the pwrap node: this is used to communicate with the PMIC(s). Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/arch/arm64/boot/dts/mediatek/mt67

[PATCH 20/27] arm64: dts: mediatek: mt6795: Add tertiary PWM node

2023-04-12 Thread AngeloGioacchino Del Regno
The PWM at 0x11006000 is the tertiary PWM; unlike PWM0, PWM1, this is not display specific and can be used as a generic PWM controller. This node is left disabled as usage is board-specific. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 19 +++

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

2023-04-12 Thread AngeloGioacchino Del Regno
In preparation for adding multimedia blocks, add the CMDQ/GCE mailbox. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/arch/arm64/boot/dts/mediatek/

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

2023-04-12 Thread AngeloGioacchino Del Regno
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 --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 60 1 file changed, 60 insertions(+) d

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

2023-04-12 Thread AngeloGioacchino Del Regno
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 --- arch/arm64/boot/dts/mediatek/mt6331.dtsi | 284 +++ 1 file changed, 289

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

2023-04-12 Thread AngeloGioacchino Del Regno
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 the companion PMIC, the interrupt of the latter fires for bo

[PATCH 26/27] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMA255 Accelerometer

2023-04-12 Thread AngeloGioacchino Del Regno
Add the BMA255 Accelerometer on I2C3 and its pin definitions. Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64

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

2023-04-12 Thread AngeloGioacchino Del Regno
Add the MultiMedia System node, providing clocks for the multimedia hardware blocks and their IOMMU/SMIs. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795

[PATCH 27/27] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMM050 Magnetometer

2023-04-12 Thread AngeloGioacchino Del Regno
This smartphone features a Bosch BMM050 Magnetometer on I2C3: enable it with the BMM150 binding, as that driver supports BMM050 as well. For this sensor, there is no interrupt pin; readings were validated in sysfs. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt679

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

2023-04-12 Thread AngeloGioacchino Del Regno
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 --- .../dts/mediatek/mt6795-sony-xperia-m5.dts| 91 +++ 1 file changed, 91 insertions(+) diff --git a/arch/arm64/

[PATCH v5 0/5] Fix error propagation amongst request

2023-04-12 Thread Andi Shyti
Hi, This series of two patches fixes the issue introduced in cf586021642d80 ("drm/i915/gt: Pipelined page migration") where, as reported by Matt, in a chain of requests an error is reported only if happens in the last request. However Chris noticed that without ensuring exclusivity in the locking

[PATCH v5 1/5] drm/i915/gt: Add intel_context_timeline_is_locked helper

2023-04-12 Thread Andi Shyti
We have: - intel_context_timeline_lock() - intel_context_timeline_unlock() In the next patches we will also need: - intel_context_timeline_is_locked() Add it. Signed-off-by: Andi Shyti Cc: sta...@vger.kernel.org Reviewed-by: Nirmoy Das --- drivers/gpu/drm/i915/gt/intel_context.h | 6

[PATCH v5 2/5] drm/i915: Create the locked version of the request create

2023-04-12 Thread Andi Shyti
Make version of the request creation that doesn't hold any lock. Signed-off-by: Andi Shyti Cc: sta...@vger.kernel.org Reviewed-by: Nirmoy Das --- drivers/gpu/drm/i915/i915_request.c | 38 + drivers/gpu/drm/i915/i915_request.h | 2 ++ 2 files changed, 30 insertions(+

[PATCH v5 3/5] drm/i915: Create the locked version of the request add

2023-04-12 Thread Andi Shyti
i915_request_add() assumes that the timeline is locked whtn the function is called. Before exiting it releases the lock. But in the next commit we have one case where releasing the timeline mutex is not necessary and we don't want that. Make a new i915_request_add_locked() version of the function

[PATCH v5 4/5] drm/i915: Throttle for ringspace prior to taking the timeline mutex

2023-04-12 Thread Andi Shyti
From: Chris Wilson Before taking exclusive ownership of the ring for emitting the request, wait for space in the ring to become available. This allows others to take the timeline->mutex to make forward progresses while userspace is blocked. In particular, this allows regular clients to issue req

[PATCH v5 5/5] drm/i915/gt: Make sure that errors are propagated through request chains

2023-04-12 Thread Andi Shyti
Currently, when we perform operations such as clearing or copying large blocks of memory, we generate multiple requests that are executed in a chain. However, if one of these requests fails, we may not realize it unless it happens to be the last request in the chain. This is because errors are not

Re: [PATCH] MAINTAINERS: add drm_bridge for drm bridge maintainers

2023-04-12 Thread Neil Armstrong
On 12/04/2023 10:09, Daniel Vetter wrote: Otherwise core changes don't get noticed by the right people. I noticed this because a patch set from Jagan Teki seems to have fallen through the cracks. Signed-off-by: Daniel Vetter Cc: Jagan Teki Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss

[PATCH 0/4] drm/mediatek: Small mtk-dpi cleanups

2023-04-12 Thread AngeloGioacchino Del Regno
This is a small cleanup of the mtk-dpi driver, switching it to devm variants where possible and where it made sense, and reducing lines while retaining and improving human readability. AngeloGioacchino Del Regno (4): drm/mediatek: mtk_dpi: Simplify with devm_drm_bridge_add() drm/mediatek: mtk_

[PATCH 2/4] drm/mediatek: mtk_dpi: Simplify with dev_err_probe()

2023-04-12 Thread AngeloGioacchino Del Regno
Use dev_err_probe() across the entire probe function of this driver to shrink the size. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 44 ++ 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/mediatek/

[PATCH 3/4] drm/mediatek: mtk_dpi: Switch to devm_drm_of_get_bridge()

2023-04-12 Thread AngeloGioacchino Del Regno
Function drm_of_find_panel_or_bridge() is marked as deprecated: since the usage of that in this driver exactly corresponds to the new function devm_drm_of_get_bridge(), switch to it. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 7 +++ 1 file changed, 3

[PATCH 1/4] drm/mediatek: mtk_dpi: Simplify with devm_drm_bridge_add()

2023-04-12 Thread AngeloGioacchino Del Regno
Change drm_bridge_add() to its devm variant to slightly simplify the probe function. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/me

[PATCH 4/4] drm/mediatek: mtk_dpi: Use devm_platform_get_and_ioremap_resource()

2023-04-12 Thread AngeloGioacchino Del Regno
Instead of the open-coded platform_get_resource, devm_ioremap_resource switch to devm_platform_get_and_ioremap_resource(), doing exactly the same. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH v3 0/7] drm: fdinfo memory stats

2023-04-12 Thread Tvrtko Ursulin
On 12/04/2023 10:34, Christian König wrote: Am 12.04.23 um 00:56 schrieb Rob Clark: From: Rob Clark Similar motivation to other similar recent attempt[1].  But with an attempt to have some shared code for this.  As well as documentation. It is probably a bit UMA-centric, I guess devices wit

Re: [PATCH v5 1/5] drm/i915/gt: Add intel_context_timeline_is_locked helper

2023-04-12 Thread Andrzej Hajda
On 12.04.2023 13:33, Andi Shyti wrote: We have: - intel_context_timeline_lock() - intel_context_timeline_unlock() In the next patches we will also need: - intel_context_timeline_is_locked() Add it. Signed-off-by: Andi Shyti Cc: sta...@vger.kernel.org Reviewed-by: Nirmoy Das Revi

Re: [v9] media: mediatek: vcodec: support stateless AV1 decoder

2023-04-12 Thread Hans Verkuil
On 12/04/2023 05:30, Xiaoyong Lu wrote: > Add mediatek av1 decoder linux driver which use the stateless API in > MT8195. > > Signed-off-by: Xiaoyong Lu > Tested-by: Nicolas Dufresne > Reviewed-by: Nicolas Dufresne > Tested-by: AngeloGioacchino Del Regno > > Reviewed-by: AngeloGioacchino Del Re

Re: [PATCH] MAINTAINERS: add drm_bridge for drm bridge maintainers

2023-04-12 Thread Neil Armstrong
Hi, On 12/04/2023 10:09, Daniel Vetter wrote: Otherwise core changes don't get noticed by the right people. I noticed this because a patch set from Jagan Teki seems to have fallen through the cracks. Signed-off-by: Daniel Vetter I'm applying it but I get: WARNING: From:/Signed-off-by: email

Re: [PATCH v3 0/7] drm: fdinfo memory stats

2023-04-12 Thread Christian König
Am 12.04.23 um 14:10 schrieb Tvrtko Ursulin: On 12/04/2023 10:34, Christian König wrote: Am 12.04.23 um 00:56 schrieb Rob Clark: From: Rob Clark Similar motivation to other similar recent attempt[1].  But with an attempt to have some shared code for this.  As well as documentation. It is pr

Re: [v9] media: mediatek: vcodec: support stateless AV1 decoder

2023-04-12 Thread AngeloGioacchino Del Regno
Il 12/04/23 14:22, Hans Verkuil ha scritto: On 12/04/2023 05:30, Xiaoyong Lu wrote: Add mediatek av1 decoder linux driver which use the stateless API in MT8195. Signed-off-by: Xiaoyong Lu Tested-by: Nicolas Dufresne Reviewed-by: Nicolas Dufresne Tested-by: AngeloGioacchino Del Regno Reviewed

Re: [PATCH 1/2] drm/mediatek: Add ability to support dynamic connector selection

2023-04-12 Thread 林睿祥

Re: [PATCH 01/27] dt-bindings: pwm: Add compatible for MediaTek MT6795

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's display PWM block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger --- Documentation/devicetree/bindings/pwm/mediatek,pwm

Re: [PATCH v3 4/7] drm/i915: Switch to fdinfo helper

2023-04-12 Thread Tvrtko Ursulin
On 11/04/2023 23:56, Rob Clark wrote: From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/i915/i915_driver.c | 3 ++- drivers/gpu/drm/i915/i915_drm_client.c | 18 +- drivers/gpu/drm/i915/i915_drm_client.h | 2 +- 3 files changed, 8 insertions(+), 15 deleti

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

2023-04-12 Thread Matthias Brugger
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/mediatek,dsi-phy.yaml | 4 1 file changed, 4 in

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

2023-04-12 Thread Matthias Brugger
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: AngeloGioacchino Del Regno --- .../display/mediatek/mediatek,dpi.yaml| 23 +++ 1 file changed,

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795: similarly to MT8173, this SoC has the gamma LUT registers in DISP_AAL. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger --- .../devicetree/bindings/dis

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795, using the same DSI block as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../display/mediatek/mediatek,dsi.yaml| 19 --- 1 file changed, 12 inser

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's WDMA block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,wdma.yaml| 3 +++ 1 file changed, 3 i

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's COLOR block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Matthias Brugger --- .../devicetree/bindings/display/mediatek/mediatek,color.

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's MERGE block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,merge.yaml | 3 +++ 1 file changed, 3

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's SPLIT block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,split.yaml | 3 +++ 1 file changed, 3

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's UFOE block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,ufoe.yaml| 3 +++ 1 file changed, 3 i

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

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for MediaTek Helio X10 MT6795's OverDrive (OD) block: this is the same as MT8173. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,od.yaml | 3 +++ 1 file ch

Re: [PATCH 15/27] dt-bindings: mailbox: mediatek,gce-mailbox: Add support for MT6795

2023-04-12 Thread Matthias Brugger
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: Add a compatible string for the MT6795 Helio X10 SoC using MT8173 binding and add a header for the MT6795's GCE mailbox. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger ---

Re: [v9] media: mediatek: vcodec: support stateless AV1 decoder

2023-04-12 Thread Hans Verkuil
On 12/04/2023 14:22, Hans Verkuil wrote: > On 12/04/2023 05:30, Xiaoyong Lu wrote: >> Add mediatek av1 decoder linux driver which use the stateless API in >> MT8195. >> >> Signed-off-by: Xiaoyong Lu >> Tested-by: Nicolas Dufresne >> Reviewed-by: Nicolas Dufresne >> Tested-by: AngeloGioacchino Del

  1   2   3   >