Re: [PATCH drm-misc-next v3] drm/sched: implement dynamic job-flow control

2023-10-30 Thread Christian König
Hi Boris, Am 27.10.23 um 12:17 schrieb Boris Brezillon: Hi Christian, On Fri, 27 Oct 2023 11:06:44 +0200 Christian König wrote: Am 27.10.23 um 10:22 schrieb Boris Brezillon: On Fri, 27 Oct 2023 09:44:13 +0200 Christian König wrote: Am 27.10.23 um 09:39 schrieb Boris Brezillon: On Fri,

Re: [PATCH 6/7] drm/exec: Pass in initial # of objects

2023-10-30 Thread Christian König
Am 27.10.23 um 18:58 schrieb Rob Clark: From: Rob Clark In cases where the # is known ahead of time, it is silly to do the table resize dance. Ah, yes that was my initial implementation as well, but I ditched that because nobody actually used it. One comment below. Signed-off-by: Rob Cl

[RFC PATCH v4 1/7] drm/panel: nv3052c: Document known register names

2023-10-30 Thread John Watts
Many of these registers have a known name in the public datasheet. Document them as comments for reference. Signed-off-by: John Watts Reviewed-by: Jessica Zhang --- .../gpu/drm/panel/panel-newvision-nv3052c.c | 261 +- 1 file changed, 132 insertions(+), 129 deletions(-) diff

[RFC PATCH v4 4/7] drm/panel: nv3052c: Add Fascontek FS035VG158 LCD display

2023-10-30 Thread John Watts
This display is extremely similar to the LTK035C5444T, but still has some minor variations in panel initialization. Signed-off-by: John Watts Reviewed-by: Jessica Zhang --- .../gpu/drm/panel/panel-newvision-nv3052c.c | 223 ++ 1 file changed, 223 insertions(+) diff --git a/dr

[RFC PATCH v4 7/7] dt-bindings: display: panel: add Fascontek FS035VG158 panel

2023-10-30 Thread John Watts
This is a small 3.5" 640x480 IPS LCD panel. Signed-off-by: John Watts Reviewed-by: Rob Herring --- .../display/panel/fascontek,fs035vg158.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/fascontek,fs035vg158.y

[RFC PATCH v4 6/7] dt-bindings: vendor-prefixes: Add fascontek

2023-10-30 Thread John Watts
Fascontek manufactures LCD panels such as the FS035VG158. Signed-off-by: John Watts Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentat

[RFC PATCH v4 0/7] Add FS035VG158 panel

2023-10-30 Thread John Watts
Hello there, This RFC introduces support for the FS035VG158 LCD panel, cleaning up the nv3052c driver on the way and documentating existing panel code. This patch series is at a bit of a standstill: I have gotten feedback that it should instead use the Leadtek LTK035C5444T panel init sequence ins

[RFC PATCH v4 2/7] drm/panel: nv3052c: Add SPI device IDs

2023-10-30 Thread John Watts
SPI drivers needs their own list of compatible device IDs in order for automatic module loading to work. Add those for this driver. Signed-off-by: John Watts Reviewed-by: Jessica Zhang --- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[RFC PATCH v4 5/7] dt-bindings: display: panel: Clean up leadtek, ltk035c5444t properties

2023-10-30 Thread John Watts
Remove common properties listed in common yaml files. Add required properties needed to describe the panel. Signed-off-by: John Watts Reviewed-by: Rob Herring --- .../bindings/display/panel/leadtek,ltk035c5444t.yaml | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[RFC PATCH v4 3/7] drm/panel: nv3052c: Allow specifying registers per panel

2023-10-30 Thread John Watts
Panel initialization registers are per-display and not tied to the controller itself. Different panels will specify their own registers. Attach the sequences to the panel info struct so future panels can specify their own sequences. Signed-off-by: John Watts --- .../gpu/drm/panel/panel-newvision

Re: [RFC PATCH v1 12/12] usb: typec: qcom: define the bridge's path

2023-10-30 Thread Heikki Krogerus
On Mon, Oct 23, 2023 at 09:24:33PM +0300, Dmitry Baryshkov wrote: > On 15 September 2023 15:14:35 EEST, Heikki Krogerus > wrote: > >Hi Dmitry, > > > >On Mon, Sep 04, 2023 at 12:41:50AM +0300, Dmitry Baryshkov wrote: > >> In order to notify the userspace about the DRM connector's USB-C port, > >>

Re: [PATCH 4/9] dma-buf: heaps: Initialise MediaTek secure heap

2023-10-30 Thread Vijayanand Jitta
On 10/27/2023 1:17 PM, Yong Wu (吴勇) wrote: > On Thu, 2023-10-26 at 10:18 +0530, Vijayanand Jitta wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> >> >> On 10/20/2023 3:29 PM, Yong Wu (吴勇) wrote: >>> On T

[PATCH v2 0/4] V3D module changes for Pi5

2023-10-30 Thread Iago Toral Quiroga
This series includes patches to update the V3D kernel module that drives the VideoCore VI GPU in Raspberry Pi 4 to also support the Video Core VII iteration present in Raspberry Pi 5. The first patch in the series adds a small uAPI update required for TFU jobs, the second patch addresses the bulk

[PATCH v2 1/4] drm/v3d: update UAPI to match user-space for V3D 7.x

2023-10-30 Thread Iago Toral Quiroga
V3D 7.x takes a new parameter to configure TFU jobs that needs to be provided by user space. v2: added s-o-b, fixed typo in commit message (Maíra Canal) Signed-off-by: Iago Toral Quiroga --- include/uapi/drm/v3d_drm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/v3d

[PATCH v2 3/4] dt-bindings: gpu: v3d: Add BCM2712's compatible

2023-10-30 Thread Iago Toral Quiroga
BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its specific compatible to the bindings. v2: new, requested by Stefan Wahren. Signed-off-by: Iago Toral Quiroga --- Documentation/devicetree/bindings/gpu/brcm,bcm-v3d.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentatio

[PATCH v2 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-30 Thread Iago Toral Quiroga
This patch updates a number of register addresses that have been changed in Raspberry Pi 5 (V3D 7.1) and updates the code to use the corresponding registers and addresses based on the actual V3D version. v2: - added s-o-b and commit message. (Maíra Canal) - Used macro that takes version as argum

[PATCH v2 4/4] drm/v3d: add brcm,2712-v3d as a compatible V3D device

2023-10-30 Thread Iago Toral Quiroga
This is required to get the V3D module to load with Raspberry Pi 5. v2: - added s-o-b and commit message. (Maíra) - keep order of compatible strings. (Stefan Wahren) Signed-off-by: Iago Toral Quiroga --- drivers/gpu/drm/v3d/v3d_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

Re: [PATCH AUTOSEL 6.5 34/52] fbdev: core: cfbcopyarea: fix sloppy typing

2023-10-30 Thread Sergey Shtylyov
Hello! On 10/30/23 1:53 AM, Sasha Levin wrote: > From: Sergey Shtylyov > > [ Upstream commit 7f33df94cf0156f64eee9509bd9b4a178990f613 ] > > In cfb_copyarea(), the local variable bits_per_line is needlessly typed as > *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit >

Re: [PATCH AUTOSEL 6.5 35/52] fbdev: core: syscopyarea: fix sloppy typing

2023-10-30 Thread Sergey Shtylyov
On 10/30/23 1:53 AM, Sasha Levin wrote: > From: Sergey Shtylyov > > [ Upstream commit e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca ] > > In sys_copyarea(), the local variable bits_per_line is needlessly typed as > *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit > type on

Re: [PATCH 7/8] drm/loongson: Support to infer DC reversion from CPU's PRID value

2023-10-30 Thread Sui Jingfeng
Hi, On 2023/10/30 07:19, Dmitry Baryshkov wrote: On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: Due to the fact that the same display IP core has been integrated into different platform, there is a need to differentiate them on the runtime. The DC in LS7A1000/LS2K1000 has the PCI vendor & d

Re: [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-30 Thread Sui Jingfeng
Hi, On 2023/10/30 12:13, Sui Jingfeng wrote: handle them one by one.    It is actually to review and understand. Handle the cases one by one. It is actually more easier to review the untangled code. It is also more easier to edit and maintain.

[RFC] drm/tests: annotate intentional stack trace in drm_test_rect_calc_hscale()

2023-10-30 Thread Dan Carpenter
We have started printing more and more intentional stack traces. Whether it's testing KASAN is able to detect use after frees or it's part of a kunit test. These stack traces can be problematic. They suddenly show up as a new failure. Now the test team has to contact the developers. A bunch of

[PATCH v2 0/1] Fix errors when reporting rotation capability

2023-10-30 Thread Hsiao Chien Sung
This commit is based on 20231024130048.14749-1-shawn.s...@mediatek.com. This bug is found when running IGT tests. For CRTCs that doesn't support rotation should still return DRM_MODE_ROTATE_0. Returns the hardware capabilities accordingly. Changes in v2: - Restore DRM_MODE_ROTATE_180 (reflect x +

[PATCH v2 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-10-30 Thread Hsiao Chien Sung
For CRTCs that doesn't support rotation should still return DRM_MODE_ROTATE_0. Returns hardware capabilities accordingly. Fixes: 84d805753983 ("drm/mediatek: Support reflect-y plane rotation") Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek

Re: [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-30 Thread Sui Jingfeng
Hi, On 2023/10/30 07:10, Dmitry Baryshkov wrote: + +static void lsdc_pipe1_hdmi_encoder_reset(struct drm_encoder *encoder) +{ + struct drm_device *ddev = encoder->dev; + struct lsdc_device *ldev = to_lsdc(ddev); + u32 val; + + val = PHY_CLOCK_POL | PHY_CLOCK_EN | PHY_DAT

Re: [PATCH] gpu/drm/drm_framebuffer.c: Add judgement for return value of drm_get_format_info().

2023-10-30 Thread 彭昊
Hi, Ville & all Thanks for quick reply! According to your reply, the *info has been checked info earlier, and I have read the code of framebuffer_check() and related drm_get_format_info() which it calls, but unfortunatelly, I haven't seen  judgement(check) for it. What I only found related with

Re: [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init()

2023-10-30 Thread Dmitry Baryshkov
On Mon, 30 Oct 2023 at 06:13, Sui Jingfeng wrote: > > Hi, > > > On 2023/10/30 07:10, Dmitry Baryshkov wrote: > >> + > >> +/* Built-in HDMI encoder funcs on display pipe 0 */ > >> + > >> +static void lsdc_pipe0_hdmi_encoder_reset(struct drm_encoder *encoder) > >> +{ > >> + struct drm_device *

Re: [PATCH] gpu/drm/drm_framebuffer.c: Add judgement for return value of drm_get_format_info().

2023-10-30 Thread 彭昊
Hi, Ville & all Thanks for quick reply! According to your reply, the *info has been checked info earlier, and I have read the code of framebuffer_check() and related drm_get_format_info() which it calls, but unfortunatelly, I haven't seen  judgement(check) for it. What I only found related with

RE: [PATCH v7 4/6] drm/i915/panelreplay: Enable panel replay dpcd initialization for DP

2023-10-30 Thread Murthy, Arun R
> -Original Message- > From: Manna, Animesh > Sent: Tuesday, October 17, 2023 1:52 PM > To: Murthy, Arun R ; intel-...@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org; Hogander, Jouni > ; Nikula, Jani > Subject: RE: [PATCH v7 4/6] drm/i915/panelreplay: Enable panel replay dp

RE: [PATCH v7 6/6] drm/i915/panelreplay: Debugfs support for panel replay

2023-10-30 Thread Murthy, Arun R
> -Original Message- > From: Manna, Animesh > Sent: Wednesday, October 11, 2023 4:40 PM > To: intel-...@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org; Manna, Animesh > ; Hogander, Jouni ; > Murthy, Arun R ; Nikula, Jani > > Subject: [PATCH v7 6/6] drm/i915/panelreplay: Deb

[PATCH] gpu/drm/drm_framebuffer.c: Add judgement for return value of drm_get_format_info().

2023-10-30 Thread 彭昊
According to your(Villie) reply, the *info has been checked info earlier, and I have read the code of framebuffer_check() and related drm_get_format_info() which it calls, but unfortunatelly, I haven't seen  judgement(check) for it. What I only found related with check is the sentence below (in

Re: [PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter

2023-10-30 Thread Sui Jingfeng
Hi, On 2023/10/30 06:53, Dmitry Baryshkov wrote: On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: The IT66121 is a DVO to HDMI converter, LS3A5000+LS7A1000 ML5A_MB use this chip to support HDMI output. Thus add a drm bridge based driver for it. This patch is developed with drivers/gpu/drm/br

Re: [RFC PATCH v1 12/12] usb: typec: qcom: define the bridge's path

2023-10-30 Thread Dmitry Baryshkov
On Mon, 30 Oct 2023 at 10:19, Heikki Krogerus wrote: > > On Mon, Oct 23, 2023 at 09:24:33PM +0300, Dmitry Baryshkov wrote: > > On 15 September 2023 15:14:35 EEST, Heikki Krogerus > > wrote: > > >Hi Dmitry, > > > > > >On Mon, Sep 04, 2023 at 12:41:50AM +0300, Dmitry Baryshkov wrote: > > >> In ord

[PATCH] drm/ast: use managed devres functions

2023-10-30 Thread Philipp Stanner
Currently, tha ast-driver just maps the PCI-dev's regions with pcim_iomap(). It does not actually reserve the regions exclusively with, e.g., pci_request_regions(). Replace the calls to pcim_iomap() with ones to pcim_iomap_regions() to reserve and map the regions simultaneously. Suggested-by: Tho

[PATCH v8 00/16] introduce more MDP3 components in MT8195

2023-10-30 Thread Moudy Ho
Changes since v7: - Rebase on linux-next. - Dependent dtsi files: https://patchwork.kernel.org/project/linux-mediatek/list/?series=797543 - Depends on: Message ID = 20231024130048.14749-9-shawn.s...@mediatek.com - Correct the bindings of the four components: FG, TCC, TDSHP and HDR. The names

[PATCH v8 03/16] dt-bindings: media: mediatek: mdp3: add config for MT8195 RDMA

2023-10-30 Thread Moudy Ho
Added the configuration for MT8195 RDMA. In comparison to MT8183, it no longer shares SRAM with RSZ, and there are now preconfigured 5 mbox. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno --- .../bindings/media/mediatek,mdp3-rdma.yaml| 26 ++- 1 file change

[PATCH v8 04/16] dt-bindings: media: mediatek: mdp3: add compatible for MT8195 RSZ

2023-10-30 Thread Moudy Ho
MT8195 RSZ inherited from MT8183, add the corresponding compatible name to it. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/media/mediatek,mdp3-rsz.yaml| 6 +- 1 file changed, 5 insertions(+), 1 deletion(

[PATCH v8 16/16] dt-bindings: display: mediatek: padding: add compatible for MT8195

2023-10-30 Thread Moudy Ho
Add a compatible string for the PADDING block in MediaTek MT8195 that is controlled by MDP3. Signed-off-by: Moudy Ho --- .../bindings/display/mediatek/mediatek,padding.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display

[PATCH v8 07/16] dt-bindings: media: mediatek: mdp3: add component HDR for MT8195

2023-10-30 Thread Moudy Ho
Add the fundamental hardware configuration of component HDR, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/mediatek,mdp3-hdr.yaml | 61 +++ 1 file changed, 61 i

[PATCH v8 06/16] dt-bindings: media: mediatek: mdp3: add component FG for MT8195

2023-10-30 Thread Moudy Ho
Add the fundamental hardware configuration of component FG, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/mediatek,mdp3-fg.yaml | 61 +++ 1 file changed, 61 in

[PATCH v8 02/16] dt-bindings: media: mediatek: mdp3: merge the indentical RDMA under display

2023-10-30 Thread Moudy Ho
To simplify maintenance and avoid branches, the identical component should be merged and placed in the path belonging to the MDP (from display/* to media/*). In addition, currently only MDP utilizes RDMA through CMDQ, and the necessary properties for "mediatek,gce-events", and "mboxes" have been s

[PATCH v8 14/16] dt-bindings: display: mediatek: ovl: add compatible for MT8195

2023-10-30 Thread Moudy Ho
Add a compatible string for the OVL block in MediaTek MT8195 that is controlled by MDP3. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/mediatek/mediatek,ovl.yaml | 1 + 1 file changed, 1 insertion(+) di

[PATCH v8 01/16] dt-bindings: media: mediatek: mdp3: correct RDMA and WROT node with generic names

2023-10-30 Thread Moudy Ho
The DMA-related nodes RDMA/WROT in MDP3 should be changed to generic names. In addition, fix improper space indent in example. Fixes: 4ad7b39623ab ("media: dt-binding: mediatek: add bindings for MediaTek MDP3 components") Signed-off-by: Moudy Ho Acked-by: Rob Herring Reviewed-by: AngeloGioacchi

[PATCH v8 05/16] dt-bindings: media: mediatek: mdp3: add compatible for MT8195 WROT

2023-10-30 Thread Moudy Ho
MT8195 WROT inherited from MT8183, add the corresponding compatible name to it. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/media/mediatek,mdp3-wrot.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion

[PATCH v8 10/16] dt-bindings: media: mediatek: mdp3: add component TDSHP for MT8195

2023-10-30 Thread Moudy Ho
Add the fundamental hardware configuration of component TDSHP, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/mediatek,mdp3-tdshp.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Docume

[PATCH v8 09/16] dt-bindings: media: mediatek: mdp3: add component TCC for MT8195

2023-10-30 Thread Moudy Ho
Add the fundamental hardware configuration of component TCC, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/mediatek,mdp3-tcc.yaml | 62 +++ 1 file changed, 62 i

[PATCH v8 12/16] dt-bindings: display: mediatek: color: add compatible for MT8195

2023-10-30 Thread Moudy Ho
Add a compatible string for the COLOR block in MediaTek MT8195 that is controlled by MDP3. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion(+)

[PATCH v8 13/16] dt-bindings: display: mediatek: merge: add compatible for MT8195

2023-10-30 Thread Moudy Ho
Add a compatible string for the MERGE block in MediaTek MT8195 that is controlled by MDP3. Signed-off-by: Moudy Ho Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/mediatek/mediatek,merge.yaml | 1 + 1 file changed, 1 insertion(+)

[PATCH v8 15/16] dt-bindings: display: mediatek: split: add compatible for MT8195

2023-10-30 Thread Moudy Ho
Add compatible string and GCE property for MT8195 SPLIT, of which is operated by MDP3. Signed-off-by: Moudy Ho Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../display/mediatek/mediatek,split.yaml | 27 +++ 1 file changed, 27 insertions(+)

[PATCH v8 11/16] dt-bindings: display: mediatek: aal: add compatible for MT8195

2023-10-30 Thread Moudy Ho
Add a compatible string for the AAL block in MediaTek MT8195 that is controlled by MDP3. Signed-off-by: Moudy Ho Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH v8 08/16] dt-bindings: media: mediatek: mdp3: add component STITCH for MT8195

2023-10-30 Thread Moudy Ho
Add the fundamental hardware configuration of component STITCH, which is controlled by MDP3 on MT8195. Signed-off-by: Moudy Ho Reviewed-by: Krzysztof Kozlowski --- .../bindings/media/mediatek,mdp3-stitch.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Docum

Re: [PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter

2023-10-30 Thread Dmitry Baryshkov
On Mon, 30 Oct 2023 at 11:42, Sui Jingfeng wrote: > > Hi, > > > On 2023/10/30 06:53, Dmitry Baryshkov wrote: > > On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > >> The IT66121 is a DVO to HDMI converter, LS3A5000+LS7A1000 ML5A_MB use this > >> chip to support HDMI output. Thus add a drm bridg

Re: [PATCH] dt-bindings: display: ssd132x: Remove '-' before compatible enum

2023-10-30 Thread Javier Martinez Canillas
Javier Martinez Canillas writes: > Rob Herring writes: > > Hello Rob, > [...] >>> Pushed to drm-misc (drm-misc-next). Thanks! >> >> Given what introduced this is before the drm-misc-next-2023-10-19 tag, >> isn't it going into 6.7 and needs to be in the fixes branch? Though that >> doesn't ex

Re: [PATCH v2 00/11] accel/ivpu: Update for -next 2023-10-25

2023-10-30 Thread Stanislaw Gruszka
On Sat, Oct 28, 2023 at 03:34:04PM +0200, Stanislaw Gruszka wrote: > Various driver updates: > > - FW api update > - suspend/resume optimizations > - dynamic valtage and frequency mode knob > - new test modes > > v2: > - fix spelling mistakes pointed Jeffrey > - move patch 7, add note whe

Re: [RFC PATCH v1 12/12] usb: typec: qcom: define the bridge's path

2023-10-30 Thread Simon Ser
On Monday, October 30th, 2023 at 10:47, Dmitry Baryshkov wrote: > On Mon, 30 Oct 2023 at 10:19, Heikki Krogerus > heikki.kroge...@linux.intel.com wrote: > > > On Mon, Oct 23, 2023 at 09:24:33PM +0300, Dmitry Baryshkov wrote: > > > > > On 15 September 2023 15:14:35 EEST, Heikki Krogerus > > >

Re: [PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter

2023-10-30 Thread Maxime Ripard
Hi, On Mon, Oct 30, 2023 at 05:42:28PM +0800, Sui Jingfeng wrote: > On 2023/10/30 06:53, Dmitry Baryshkov wrote: > > On Sun, 29 Oct 2023 at 21:46, Sui Jingfeng wrote: > > > The IT66121 is a DVO to HDMI converter, LS3A5000+LS7A1000 ML5A_MB use this > > > chip to support HDMI output. Thus add a drm

Re: [PATCH v2 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-30 Thread Iago Toral
Hi Stefan, El lun, 30-10-2023 a las 10:58 +0100, Stefan Wahren escribió: > Hi Iago, > > Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: > > This patch updates a number of register addresses that have > > been changed in Raspberry Pi 5 (V3D 7.1) and updates the > > code to use the corresponding r

Re: [PATCH v2 3/4] dt-bindings: gpu: v3d: Add BCM2712's compatible

2023-10-30 Thread Iago Toral
El lun, 30-10-2023 a las 10:57 +0100, Stefan Wahren escribió: > Hi Iago, > > Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: > > BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its > > specific > > compatible to the bindings. > > > > v2: new, requested by Stefan Wahren. > Thanks for s

Re: [RFC PATCH v1 12/12] usb: typec: qcom: define the bridge's path

2023-10-30 Thread Dmitry Baryshkov
On Mon, 30 Oct 2023 at 12:13, Simon Ser wrote: > > On Monday, October 30th, 2023 at 10:47, Dmitry Baryshkov > wrote: > > > On Mon, 30 Oct 2023 at 10:19, Heikki Krogerus > > heikki.kroge...@linux.intel.com wrote: > > > > > On Mon, Oct 23, 2023 at 09:24:33PM +0300, Dmitry Baryshkov wrote: > > > >

[PATCH libdrm v5 7/9] util: fix pwetty on big-endian

2023-10-30 Thread Geert Uytterhoeven
Cairo always uses native byte order for rendering. Hence if the byte order of the frame buffer differs from the byte order of the CPU, the frame buffer contents need to be byteswapped twice: once before rendering, to convert to native byte order, and a second time after rendering, to restore the f

[PATCH libdrm v5 6/9] util: add test pattern support for big-endian XRGB1555/RGB565

2023-10-30 Thread Geert Uytterhoeven
Add support for drawing the SMPTE and tiles test patterns in buffers using big-endian formats. For now this is limited to XRGB1555 and RGB565, which are the most common big-endian formats. Signed-off-by: Geert Uytterhoeven Reviewed-by: Dmitry Baryshkov --- v5: - Add Reviewed-by, v4: - No c

[PATCH libdrm v5 2/9] util: fix 32 bpp patterns on big-endian

2023-10-30 Thread Geert Uytterhoeven
DRM formats are defined to be little-endian, unless the DRM_FORMAT_BIG_ENDIAN flag is set. Hence writes of multi-byte pixel values need to take endianness into account. Introduce a swap32() helper to byteswap 32-bit values, and a cpu_to_le32() helper to convert 32-bit values from CPU-endian to li

[PATCH libdrm v5 5/9] modetest: add support for parsing big-endian formats

2023-10-30 Thread Geert Uytterhoeven
When specifying a frame buffer format like "RG16_BE" (big-endian RG16), modetest still uses the little-endian variant, as the format string is truncated to four characters. Fix this by increasing the format string size to 8 bytes (7 characters + NUL terminator). Signed-off-by: Geert Uytterhoeven

[PATCH libdrm v5 1/9] intel: determine target endianness using meson

2023-10-30 Thread Geert Uytterhoeven
The endianness of the target is currently determined based on preprocessor symbols. Unfortunately some symbols checked are wrong (sparc64-linux-gnu-gcc does not define __BIG_ENDIAN__ or SPARC), and several checks for big-endian architectures are missing. Fix this by introducing a new preprocessor

[PATCH libdrm v5 3/9] util: fix 16 bpp patterns on big-endian

2023-10-30 Thread Geert Uytterhoeven
DRM formats are defined to be little-endian, unless the DRM_FORMAT_BIG_ENDIAN flag is set. Hence writes of multi-byte pixel values need to take endianness into account. Introduce a swap16() helper to byteswap 16-bit values, and a cpu_to_le16() helper to convert 16-bit values from CPU-endian to li

[PATCH libdrm v5 0/9] Big-endian fixes

2023-10-30 Thread Geert Uytterhoeven
Hi all, This patch series fixes some endianness issues in libdrm. It has been tested on ARAnyM using a work-in-progress Atari DRM driver. After this, the smpte and tiles modetest patterns and the pwetty markers are rendered correctly using the XR24, RG16, and RG16BE formats on big-endian s

[PATCH libdrm v5 8/9] util: add pwetty support for big-endian RGB565

2023-10-30 Thread Geert Uytterhoeven
Add support for rendering the crosshairs in a buffer using the big-endian RGB565 format. Signed-off-by: Geert Uytterhoeven Reviewed-by: Dmitry Baryshkov --- v5: - Add Reviewed-by, v4: - No changes, v3: - No changes, v2: - New. --- tests/util/pattern.c | 1 + 1 file changed, 1 inserti

[PATCH libdrm v5 4/9] util: add missing big-endian RGB16 frame buffer formats

2023-10-30 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Reviewed-by: Dmitry Baryshkov --- v5: - Add Reviewed-by, v4: - No changes, v3: - Update for suffix change from "be" to "_BE", cfr. commit ffb9375a505700ad ("xf86drm: handle DRM_FORMAT_BIG_ENDIAN in drmGetFormatName()"), v2: - New. --- tests/ut

[PATCH libdrm v5 9/9] modetest: add support for big-endian XRGB1555/RGB565

2023-10-30 Thread Geert Uytterhoeven
Add support for creating buffers using big-endian formats. For now this is limited to XRGB1555 and RGB565, which are the most common big-endian formats. Signed-off-by: Geert Uytterhoeven Reviewed-by: Dmitry Baryshkov --- v5: - Add Reviewed-by, v4: - No changes, v3: - No changes, v2:

Re: [RFC PATCH v1 12/12] usb: typec: qcom: define the bridge's path

2023-10-30 Thread Simon Ser
On Monday, October 30th, 2023 at 11:22, Dmitry Baryshkov wrote: > On Mon, 30 Oct 2023 at 12:13, Simon Ser cont...@emersion.fr wrote: > > > On Monday, October 30th, 2023 at 10:47, Dmitry Baryshkov > > dmitry.barysh...@linaro.org wrote: > > > > > On Mon, 30 Oct 2023 at 10:19, Heikki Krogerus >

Re: [PATCH v2 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-30 Thread Iago Toral
El lun, 30-10-2023 a las 11:28 +0100, Stefan Wahren escribió: > Hi Iago, > > Am 30.10.23 um 11:14 schrieb Iago Toral: > > Hi Stefan, > > > > El lun, 30-10-2023 a las 10:58 +0100, Stefan Wahren escribió: > > > Hi Iago, > > > > > > Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: > > > > This patc

[PATCH v2 0/8] drm/msm: Introduce display support for SM8650

2023-10-30 Thread Neil Armstrong
The SM8650 MDSS is very close from the MDSS 9.0.0 found on the SM8550 SoC, with the following difference: - DSI PHY 2.8.8, no significant differences - DPU 10.0.0: - Enhanced max_linewidth to 8k - PINGPONG_8 & PINGPONG_9 - MERGE_3D_4 - DSC_4 & DSC_5, DSC_NATIVE_42x on DSC0/1 This patchset

[PATCH v2 1/8] dt-bindings: display: msm-dsi-phy-7nm: document the SM8650 DSI PHY

2023-10-30 Thread Neil Armstrong
Document the DSI PHY on the SM8650 Platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml b/Do

[PATCH v2 2/8] dt-bindings: display: msm-dsi-controller-main: document the SM8650 DSI Controller

2023-10-30 Thread Neil Armstrong
Document the DSI Controller on the SM8650 Platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-

[PATCH v2 4/8] dt-bindings: display: msm: document the SM8650 Mobile Display Subsystem

2023-10-30 Thread Neil Armstrong
Document the Mobile Display Subsystem (MDSS) on the SM8650 Platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- .../bindings/display/msm/qcom,sm8650-mdss.yaml | 322 + 1 file changed, 322 insertions(+) diff --git a/Documentation/devicetree/bindi

[PATCH v2 8/8] drm/msm: dsi: add support for DSI 2.8.0

2023-10-30 Thread Neil Armstrong
Add DSI Controller version 2.8.0 support for the SM8650 platform. Reviewed-by: Dmitry Baryshkov Signed-off-by: Neil Armstrong --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 17 + drivers/gpu/drm/msm/dsi/dsi_cfg.h | 1 + 2 files changed, 18 insertions(+) diff --git a/drivers/gpu/drm/m

[PATCH v2 5/8] drm/msm/dpu: add support for SM8650 DPU

2023-10-30 Thread Neil Armstrong
Add DPU version 10.0 support for the SM8650 platform. Signed-off-by: Neil Armstrong --- .../drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h| 457 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 26 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 + drivers

[PATCH v2 7/8] drm/msm: dsi: add support for DSI-PHY on SM8650

2023-10-30 Thread Neil Armstrong
Add DSI PHY support for the SM8650 platform. Reviewed-by: Dmitry Baryshkov Signed-off-by: Neil Armstrong --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 ++ drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 1 + drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 27 +++ 3 files c

[PATCH v2 3/8] dt-bindings: display: msm: document the SM8650 DPU

2023-10-30 Thread Neil Armstrong
Document the DPU Display Controller on the SM8650 Platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- .../bindings/display/msm/qcom,sm8650-dpu.yaml | 127 + 1 file changed, 127 insertions(+) diff --git a/Documentation/devicetree/bindings/displa

[PATCH v2 6/8] drm/msm: mdss: add support for SM8650

2023-10-30 Thread Neil Armstrong
Add Mobile Display Subsystem (MDSS) support for the SM8650 platform. Reviewed-by: Dmitry Baryshkov Signed-off-by: Neil Armstrong --- drivers/gpu/drm/msm/msm_mdss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index 6865db1e3

Re: [RFC PATCH] drm/test: add a test suite for GEM objects backed by shmem

2023-10-30 Thread Marco Pagani
On 2023-10-25 10:43, Maxime Ripard wrote: > Hi, > > On Tue, Oct 24, 2023 at 07:14:25PM +0200, Marco Pagani wrote: +static void drm_gem_shmem_test_obj_create_private(struct kunit *test) +{ + struct fake_dev *fdev = test->priv; + struct drm_gem_shmem_object *shmem; + s

Re: [PATCH Resend] Fix line Length

2023-10-30 Thread Bagas Sanjaya
On 30/10/2023 13:12, Julia Lawall wrote: > > > On Mon, 30 Oct 2023, Bagas Sanjaya wrote: > >> Hi Julia, >> >> The submitter touched one of CI scripts for the DRM subsystem. To test >> this patch, there must be a way to run these scripts locally (which >> may requires non-trivial setup). >> >> Cc

Re: [PATCH v2 4/4] drm/v3d: add brcm,2712-v3d as a compatible V3D device

2023-10-30 Thread Stefan Wahren
Hi Iago, Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: This is required to get the V3D module to load with Raspberry Pi 5. v2: - added s-o-b and commit message. (Maíra) - keep order of compatible strings. (Stefan Wahren) as in the other patch, please move the changelog below --- or in t

Re: [PATCH v2 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-30 Thread Stefan Wahren
Hi Iago, Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: This patch updates a number of register addresses that have been changed in Raspberry Pi 5 (V3D 7.1) and updates the code to use the corresponding registers and addresses based on the actual V3D version. v2: - added s-o-b and commit me

Re: [PATCH v2 2/4] drm/v3d: fix up register addresses for V3D 7.x

2023-10-30 Thread Stefan Wahren
Hi Iago, Am 30.10.23 um 11:14 schrieb Iago Toral: Hi Stefan, El lun, 30-10-2023 a las 10:58 +0100, Stefan Wahren escribió: Hi Iago, Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: This patch updates a number of register addresses that have been changed in Raspberry Pi 5 (V3D 7.1) and update

Re: [PATCH v7 7/8] drm/tidss: Update encoder/bridge chain connect model

2023-10-30 Thread Jan Kiszka
On 06.06.23 10:21, Aradhya Bhatia wrote: > With the new encoder/bridge chain model, the display controller driver > is required to create a drm_connector entity instead of asking the > bridge to do so during drm_bridge_attach. Moreover, the controller > driver should create a drm_bridge entity to n

Re: [PATCH v2 3/4] dt-bindings: gpu: v3d: Add BCM2712's compatible

2023-10-30 Thread Stefan Wahren
Hi Iago, Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its specific compatible to the bindings. v2: new, requested by Stefan Wahren. Thanks for sending this but the line above belongs below --- since it's not relevant after the patc

Re: [PATCH v2 3/4] dt-bindings: gpu: v3d: Add BCM2712's compatible

2023-10-30 Thread Stefan Wahren
Hi Iago, Am 30.10.23 um 11:18 schrieb Iago Toral: El lun, 30-10-2023 a las 10:57 +0100, Stefan Wahren escribió: Hi Iago, Am 30.10.23 um 09:28 schrieb Iago Toral Quiroga: BCM2712, Raspberry Pi 5's SoC, contains a V3D core. So add its specific compatible to the bindings. v2: new, requested by

Re: [RFC PATCH v1 12/12] usb: typec: qcom: define the bridge's path

2023-10-30 Thread Dmitry Baryshkov
On Mon, 30 Oct 2023 at 12:27, Simon Ser wrote: > > On Monday, October 30th, 2023 at 11:22, Dmitry Baryshkov > wrote: > > > On Mon, 30 Oct 2023 at 12:13, Simon Ser cont...@emersion.fr wrote: > > > > > On Monday, October 30th, 2023 at 10:47, Dmitry Baryshkov > > > dmitry.barysh...@linaro.org wrot

Re: [PATCH 1/2] drm/v3d: wait for all jobs to finish before unregistering

2023-10-30 Thread Iago Toral
El mar, 24-10-2023 a las 07:05 -0300, Maira Canal escribió: > Hi Iago, > > On 10/24/23 02:57, Iago Toral wrote: > > El lun, 23-10-2023 a las 07:58 -0300, Maíra Canal escribió: > > > Currently, we are only warning the user if the BIN or RENDER jobs > > > don't > > > finish before we unregister V3D.

Re: [PATCH v2 5/8] drm/msm/dpu: add support for SM8650 DPU

2023-10-30 Thread Dmitry Baryshkov
On Mon, 30 Oct 2023 at 12:36, Neil Armstrong wrote: > > Add DPU version 10.0 support for the SM8650 platform. > > Signed-off-by: Neil Armstrong Reviewed-by: Dmitry Baryshkov > --- > .../drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h| 457 > + > drivers/gpu/drm/msm/disp/d

Re: [PATCH v2 0/4] V3D module changes for Pi5

2023-10-30 Thread Maira Canal
Hi Iago, The whole series is: Reviewed-by: Maíra Canal You can add my r-b in the next version (adding the DTS maintainers in CC). Best Regards, - Maíra On 10/30/23 05:28, Iago Toral Quiroga wrote: This series includes patches to update the V3D kernel module that drives the VideoCore VI GPU

Re: [PATCH 1/2] drm/v3d: wait for all jobs to finish before unregistering

2023-10-30 Thread Maira Canal
Hi Iago, On 10/30/23 09:20, Iago Toral wrote: El mar, 24-10-2023 a las 07:05 -0300, Maira Canal escribió: Hi Iago, On 10/24/23 02:57, Iago Toral wrote: El lun, 23-10-2023 a las 07:58 -0300, Maíra Canal escribió: Currently, we are only warning the user if the BIN or RENDER jobs don't finish b

Re: [PATCH v2] i915/perf: Fix NULL deref bugs with drm_dbg() calls

2023-10-30 Thread Tvrtko Ursulin
On 27/10/2023 18:38, Tvrtko Ursulin wrote: On 27/10/2023 18:28, Harshit Mogalapalli wrote: When i915 perf interface is not available dereferencing it will lead to NULL dereferences. As returning -ENOTSUPP is pretty clear return when perf interface is not available. Fixes: 2fec539112e8 ("i91

[syzbot] Monthly dri report (Oct 2023)

2023-10-30 Thread syzbot
Hello dri maintainers/developers, This is a 31-day syzbot report for the dri subsystem. All related reports/information can be found at: https://syzkaller.appspot.com/upstream/s/dri During the period, 1 new issues were detected and 0 were fixed. In total, 15 issues are still open and 30 have been

[PATCH 0/4] drm/panfrost: Turn off clocks and regulators in PM

2023-10-30 Thread AngeloGioacchino Del Regno
At least MediaTek platforms are able to get the GPU clocks and regulators completely off during system suspend, allowing to save a bit of power. Panfrost is used on more than just MediaTek SoCs and the benefits of this can be variable across different SoC models and/or different SoCs from differen

[PATCH 1/4] drm/panfrost: Implement ability to turn on/off GPU clocks in suspend

2023-10-30 Thread AngeloGioacchino Del Regno
Currently, the GPU is being internally powered off for runtime suspend and turned back on for runtime resume through commands sent to it, but note that the GPU doesn't need to be clocked during the poweroff state, hence it is possible to save some power on selected platforms. Add suspend and resum

[PATCH 2/4] drm/panfrost: Set clocks on/off during system sleep on MediaTek SoCs

2023-10-30 Thread AngeloGioacchino Del Regno
All of the MediaTek SoCs supported by Panfrost can switch the clocks off and on during system sleep to save some power without any user experience penalty. Measurements taken on multiple MediaTek SoCs show that adding this will not prolong the time that is required to resume the system in any mean

[PATCH 4/4] drm/panfrost: Set regulators on/off during system sleep on MediaTek SoCs

2023-10-30 Thread AngeloGioacchino Del Regno
All of the MediaTek SoCs supported by Panfrost can completely cut power to the GPU during full system sleep without any user-noticeable delay in the resume operation, as shown by measurements taken on multiple MediaTek SoCs. As an example, for MT8195 - a "before" with only runtime PM operations (s

[PATCH 3/4] drm/panfrost: Implement ability to turn on/off regulators in suspend

2023-10-30 Thread AngeloGioacchino Del Regno
Some platforms/SoCs can power off the GPU entirely by completely cutting off power, greatly enhancing battery time during system suspend: add a new pm_feature GPU_PM_VREG_OFF to allow turning off the GPU regulators during full suspend only on selected platforms. Signed-off-by: AngeloGioacchino Del

  1   2   >