Re: [PATCH RFC] drm/panel-edp: add fat warning against adding new panel compatibles

2024-05-23 Thread Neil Armstrong
rted to declaring panels in a proper way. +*/ + { .compatible = "auo,b101ean01", .data = &auo_b101ean01, }, { --- base-commit: 8314289a8d50a4e05d8ece1ae0445a3b57bb4d3b change-id: 20240523-edp-panel-drop-00aa239b3c6b Best regards, Reviewed-by: Neil Armstrong

Re: [PATCH] dt-bindings: display: Reorganize legacy eDP panel bindings

2024-05-23 Thread Neil Armstrong
Hi, On Mon, 20 May 2024 15:38:17 -0700, Douglas Anderson wrote: > Back in the day, we used to need to list the exact panel in dts for > eDP panels. This led to all sorts of problems including a large number > of cases where people listed a bogus panel in their device tree > because of the needs of

Re: [PATCH 0/8] drm/panel: Some very minor err handling fixes + more _multi

2024-05-23 Thread Neil Armstrong
Hi, On Fri, 17 May 2024 14:36:35 -0700, Douglas Anderson wrote: > This series is pretty much just addressing a few minor error handling > bugs that I noticed recently while reviewing some panel patches. For > the most part these are all old issues. > > This also adjusts the new himax-hx83102 in a

Re: [PATCH] drm/tests: fix drm_test_fb_xrgb8888_to_xrgb2101010 on big endian

2024-05-23 Thread Javier Martinez Canillas
Dave Airlie writes: Hello Dave, > From: Dave Airlie > > This test is failing for me on s390x and there is a report on the list from > ppc64. > > This aligns it with the argb test that doesn't fail. > > Fixes: 15bda1f8de5d ("drm/tests: Add calls to drm_fb_blit() on supported > format conversio

Re: [PATCH v14 0/8] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios

2024-05-23 Thread Gerd Hoffmann
On Thu, May 23, 2024 at 01:13:11PM GMT, Dave Airlie wrote: > Hey > > Gerd, do you have any time to look at this series again, I think at > v14 we should probably consider landing it. Phew. Didn't follow recent MM changes closely, don't know much about folios beyond LWN coverage. The changes loo

[PATCH v5 00/16] Add audio support for the MediaTek Genio 350-evk board

2024-05-23 Thread Alexandre Mergnat
mits/sound/for-next/add-i350-audio-support Signed-off-by: Alexandre Mergnat --- Changes in v5: - Rebase to "next-20240523" branch. - bindings: power supply property moved to the parent node - Replace "SoC" by "ASoC" in the patch title (5/16) - Move and rename DAI I2S&

[PATCH v5 03/16] dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC

2024-05-23 Thread Alexandre Mergnat
Add the audio codec sub-device. This sub-device is used to set the optional voltage values according to the hardware. The properties are: - Setup of microphone bias voltage. - Setup of the speaker pin pull-down. Also, add the audio power supply property which is dedicated for the audio codec s

[PATCH v5 05/16] ASoC: mediatek: mt8365: Add audio clock control support

2024-05-23 Thread Alexandre Mergnat
Add audio clock wrapper and audio tuner control. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-afe-clk.c | 429 + sound/soc/mediatek/mt8365/mt8365-afe-clk.h | 32 +++ 2 files changed, 461 insertions(+) diff --git a/sound/soc/mediatek/mt8365/m

[PATCH v5 01/16] ASoC: dt-bindings: mediatek,mt8365-afe: Add audio afe document

2024-05-23 Thread Alexandre Mergnat
Add MT8365 audio front-end bindings Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alexandre Mergnat --- .../bindings/sound/mediatek,mt8365-afe.yaml| 130 + 1 file changed, 130 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8365-afe.y

[PATCH v5 02/16] ASoC: dt-bindings: mediatek,mt8365-mt6357: Add audio sound card document

2024-05-23 Thread Alexandre Mergnat
Add soundcard bindings for the MT8365 SoC with the MT6357 audio codec. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alexandre Mergnat --- .../bindings/sound/mediatek,mt8365-mt6357.yaml | 107 + 1 file changed, 107 insertions(+) diff --git a/Documentation/devicetree/

[PATCH v5 07/16] ASoC: mediatek: mt8365: Add ADDA DAI support

2024-05-23 Thread Alexandre Mergnat
Add ADDA Device Audio Interface support for MT8365 SoC. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-dai-adda.c | 311 1 file changed, 311 insertions(+) diff --git a/sound/soc/mediatek/mt8365/mt8365-dai-adda.c b/sound/soc/mediatek/mt8365/mt

[PATCH v5 06/16] ASoC: mediatek: mt8365: Add I2S DAI support

2024-05-23 Thread Alexandre Mergnat
Add I2S Device Audio Interface support for MT8365 SoC. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-dai-i2s.c | 850 + 1 file changed, 850 insertions(+) diff --git a/sound/soc/mediatek/mt8365/mt8365-dai-i2s.c b/sound/soc/mediatek/mt8365/mt83

[PATCH v5 08/16] ASoC: mediatek: mt8365: Add DMIC DAI support

2024-05-23 Thread Alexandre Mergnat
Add Digital Micro Device Audio Interface support for MT8365 SoC. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-dai-dmic.c | 340 1 file changed, 340 insertions(+) diff --git a/sound/soc/mediatek/mt8365/mt8365-dai-dmic.c b/sound/soc/mediatek/

[PATCH v5 04/16] ASoC: mediatek: mt8365: Add common header

2024-05-23 Thread Alexandre Mergnat
Add header files for register definition and structure. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-afe-common.h | 491 + sound/soc/mediatek/mt8365/mt8365-reg.h| 991 ++ 2 files changed, 1482 insertions(+) diff --git a/sound/

[PATCH v5 11/16] ASoC: mediatek: mt8365: Add the AFE driver support

2024-05-23 Thread Alexandre Mergnat
Add a driver for the Audio Front End (AFE) PCM to provide Audio Uplink (UL) and Downlink (DL) paths. Use the ALSA SoC Dynamic Audio Power Management to add widget and kcontrol supports. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt836

[PATCH v5 14/16] arm64: defconfig: enable mt8365 sound

2024-05-23 Thread Alexandre Mergnat
Enable the MediaTek MT8365-EVK sound support. The audio feature is handled by the MT8365 SoC and the MT6357 PMIC codec audio. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/ar

[PATCH v5 13/16] ASoC: mediatek: Add MT8365 support

2024-05-23 Thread Alexandre Mergnat
- Add specific config to enable: - MT8365 sound support - MT6357 audio codec support - Add the mt8365 directory and all drivers under it. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/Kconfig | 20 sound/soc/mediatek/Makefile| 1 + sound/soc/me

[PATCH v5 15/16] arm64: dts: mediatek: add afe support for mt8365 SoC

2024-05-23 Thread Alexandre Mergnat
Add audio front end support of MT8365 SoC. Update the file header. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 43 ++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/

[PATCH v5 10/16] ASoc: mediatek: mt8365: Add a specific soundcard for EVK

2024-05-23 Thread amergnat
From: Nicolas Belin Add a specific soundcard for mt8365-evk. It supports audio jack in/out, dmics, the amic and lineout. Signed-off-by: Nicolas Belin Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-mt6357.c | 345

[PATCH v5 09/16] ASoC: mediatek: mt8365: Add PCM DAI support

2024-05-23 Thread Alexandre Mergnat
Add Pulse Code Modulation Device Audio Interface support for MT8365 SoC. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/mt8365/mt8365-dai-pcm.c | 293 + 1 file changed, 293 insertions(+) diff --git a/sound/soc/mediat

[PATCH v5 12/16] ASoC: codecs: add MT6357 support

2024-05-23 Thread amergnat
From: Nicolas Belin Add the support of MT6357 PMIC audio codec. Signed-off-by: Nicolas Belin Signed-off-by: Alexandre Mergnat --- sound/soc/codecs/Kconfig |7 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/mt6357.c | 1898 + sound/soc/c

[PATCH v5 16/16] arm64: dts: mediatek: add audio support for mt8365-evk

2024-05-23 Thread Alexandre Mergnat
Add the sound node which is linked to the MT8365 SoC AFE and the MT6357 audio codec. Update the file header. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 89 + 1 file changed, 89 insertions(+) diff --git a/arch/arm64/boot/dts/me

Re: [PATCH v14 06/28] drm/tests: Add output bpc tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:39PM +0200, Maxime Ripard wrote: > Now that we're tracking the output bpc count in the connector state, > let's add a few tests to make sure it works as expected. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/Kconfig

Re: [PATCH v14 07/28] drm/connector: hdmi: Add support for output format

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:40PM +0200, Maxime Ripard wrote: > Just like BPC, we'll add support for automatic selection of the output > format for HDMI connectors. > > Let's add the needed defaults and fields for now. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > dri

Re: [PATCH v14 08/28] drm/tests: Add output formats tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:41PM +0200, Maxime Ripard wrote: > Now that we track the HDMI output format as part of the connector state, > let's add a few tests to make sure it works as expected. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/tests/drm_c

Re: [PATCH v14 09/28] drm/display: hdmi: Add HDMI compute clock helper

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:42PM +0200, Maxime Ripard wrote: > A lot of HDMI drivers have some variation of the formula to calculate > the TMDS character rate from a mode, but few of them actually take all > parameters into account. > > Let's create a helper to provide that rate taking all param

Re: [PATCH v14 11/28] drm/connector: hdmi: Calculate TMDS character rate

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:44PM +0200, Maxime Ripard wrote: > Most HDMI drivers have some code to calculate the TMDS character rate, > usually to adjust an internal clock to match what the mode requires. > > Since the TMDS character rates mostly depends on the resolution, whether > we need to r

Re: [PATCH v14 12/28] drm/tests: Add TDMS character rate connector state tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:45PM +0200, Maxime Ripard wrote: > The previous patch stores in the connector state the expected TMDS > character rate matching the configuration of the HDMI connector. Let's > add a few tests to make sure it works as expected. > > Reviewed-by: Dave Stevenson > Signe

Re: Safety of opening up /dev/dma_heap/* to physically present users (udev uaccess tag) ?

2024-05-23 Thread Daniel Vetter
On Wed, May 22, 2024 at 03:34:52PM +0200, Maxime Ripard wrote: > Hi, > > On Mon, May 06, 2024 at 03:38:24PM GMT, Daniel Vetter wrote: > > On Mon, May 06, 2024 at 02:05:12PM +0200, Maxime Ripard wrote: > > > Hi, > > > > > > On Mon, May 06, 2024 at 01:49:17PM GMT, Hans de Goede wrote: > > > > Hi dm

Re: [PATCH 0/8] dma-buf: heaps: Support carved-out heaps and ECC related-flags

2024-05-23 Thread Daniel Vetter
On Wed, May 22, 2024 at 03:18:02PM +0200, Maxime Ripard wrote: > On Tue, May 21, 2024 at 02:06:19PM GMT, Daniel Vetter wrote: > > On Thu, May 16, 2024 at 09:51:35AM -0700, John Stultz wrote: > > > On Thu, May 16, 2024 at 3:56 AM Daniel Vetter wrote: > > > > On Wed, May 15, 2024 at 11:42:58AM -0700

Re: [PATCH 1/7] dt-bindings: display/msm/dsi: allow specifying TE source

2024-05-23 Thread Dmitry Baryshkov
On Thu, 23 May 2024 at 02:57, Abhinav Kumar wrote: > > > > On 5/22/2024 1:05 PM, Dmitry Baryshkov wrote: > > On Wed, 22 May 2024 at 21:38, Abhinav Kumar > > wrote: > >> > >> > >> > >> On 5/20/2024 5:12 AM, Dmitry Baryshkov wrote: > >>> Command mode panels provide TE signal back to the DSI host t

Re: [PATCH v2 1/6] drm/ci: uprev mesa version

2024-05-23 Thread Dmitry Baryshkov
On Thu, 23 May 2024 at 09:07, Vignesh Raman wrote: > > Hi Dmitry, > > On 20/05/24 16:13, Dmitry Baryshkov wrote: > > On Fri, May 17, 2024 at 02:54:57PM +0530, Vignesh Raman wrote: > >> zlib.net is not allowing tarball download anymore and results > >> in below error in kernel+rootfs_arm32 containe

Re: [PATCH v14 13/28] drm/connector: hdmi: Add custom hook to filter TMDS character rate

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:46PM +0200, Maxime Ripard wrote: > Most of the HDMI controllers have an upper TMDS character rate limit > they can't exceed. On "embedded"-grade display controllers, it will > typically be lower than what high-grade monitors can provide these days, > so drivers will fi

Re: [PATCH v14 14/28] drm/tests: Add HDMI connector rate filter hook tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:47PM +0200, Maxime Ripard wrote: > The previous patch adds a new hook for HDMI connectors to filter out > configurations based on the TMDS character rate. Let's add some tests to > make sure it works as expected. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxim

RE: [RESEND 5/6] drm/edid: add a helper for EDID sysfs property show

2024-05-23 Thread Borah, Chaitanya Kumar
> -Original Message- > From: dri-devel On Behalf Of Jani > Nikula > Sent: Friday, May 10, 2024 8:38 PM > To: dri-devel@lists.freedesktop.org > Cc: amd-...@lists.freedesktop.org; nouv...@lists.freedesktop.org; intel- > g...@lists.freedesktop.org; Nikula, Jani > Subject: [RESEND 5/6] drm/ed

RE: [RESEND 6/6] drm/connector: update edid_blob_ptr documentation

2024-05-23 Thread Borah, Chaitanya Kumar
> -Original Message- > From: dri-devel On Behalf Of Jani > Nikula > Sent: Friday, May 10, 2024 8:38 PM > To: dri-devel@lists.freedesktop.org > Cc: amd-...@lists.freedesktop.org; nouv...@lists.freedesktop.org; intel- > g...@lists.freedesktop.org; Nikula, Jani > Subject: [RESEND 6/6] drm/co

Re: [PATCH v6,14/24] media: mediatek: vcodec: Add capture format to support one plane memory

2024-05-23 Thread Andrzej Pietrasiewicz
Hi, I'm having second thoughts, please see inline, W dniu 22.05.2024 o 14:26, Andrzej Pietrasiewicz pisze: Hi Yunfei, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: Define one uncompressed capture format V4L2_PIX_FMT_MS21 in order to support one plane memory. The buffer size is luma + chroma,

Re: [PATCH v14 15/28] drm/connector: hdmi: Compute bpc and format automatically

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:48PM +0200, Maxime Ripard wrote: > Now that we have all the infrastructure needed, we can add some code > that will, for a given connector state and mode, compute the best output > format and bpc. > > The algorithm is equivalent to the one already found in i915 and vc

Re: [PATCH v14 16/28] drm/tests: Add HDMI connector bpc and format tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:49PM +0200, Maxime Ripard wrote: > The previous patch added the bpc and format an HDMI connector needs to > be set up with for a given connector state. > > Let's add a few tests to make sure it works as expected. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu

Re: [PATCH v14 17/28] drm/connector: hdmi: Add Broadcast RGB property

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:50PM +0200, Maxime Ripard wrote: > The i915 driver has a property to force the RGB range of an HDMI output. > The vc4 driver then implemented the same property with the same > semantics. KWin has support for it, and a PR for mutter is also there to > support it. > > B

Re: [PATCH v14 18/28] drm/tests: Add tests for Broadcast RGB property

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:51PM +0200, Maxime Ripard wrote: > This had a bunch of kunit tests to make sure our code to handle the > Broadcast RGB property behaves properly. > > This requires bringing a bit of infrastructure to create mock HDMI > connectors, with custom EDIDs. > > Reviewed-by:

Re: [PATCH v14 19/28] drm/connector: hdmi: Add RGB Quantization Range to the connector state

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:52PM +0200, Maxime Ripard wrote: > HDMI controller drivers will need to figure out the RGB range they need > to configure based on a mode and property values. Let's expose that in > the HDMI connector state so drivers can just use that value. > > Reviewed-by: Dave Ste

Re: [PATCH v14 20/28] drm/tests: Add RGB Quantization tests

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:53PM +0200, Maxime Ripard wrote: > The previous commit added the infrastructure to the connector state to > track what RGB Quantization should be used in a given state for an HDMI > connector. > > Let's add some kunit tests to make sure it works as expected. > > Revi

Re: [PATCH v6,14/24] media: mediatek: vcodec: Add capture format to support one plane memory

2024-05-23 Thread Chen-Yu Tsai
On Thu, May 23, 2024 at 6:14 PM Andrzej Pietrasiewicz wrote: > > Hi, > > I'm having second thoughts, please see inline, > > W dniu 22.05.2024 o 14:26, Andrzej Pietrasiewicz pisze: > > Hi Yunfei, > > > > W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: > >> Define one uncompressed capture format V4L2_

Re: [v5, 3/3] drm/mediatek: Implement OF graphs support for display paths

2024-05-23 Thread Chen-Yu Tsai
On Wed, May 22, 2024 at 8:32 PM Sui Jingfeng wrote: > > Hi, > > > On 5/21/24 15:57, AngeloGioacchino Del Regno wrote: > > +static int mtk_drm_of_ddp_path_build(struct device *dev, struct > > device_node *node, > > + struct mtk_mmsys_driver_data *data) > > +{ > > +

Re: [PATCH v14 19/28] drm/connector: hdmi: Add RGB Quantization Range to the connector state

2024-05-23 Thread Luc Ma
Hi, On Tue, 21 May 2024 at 18:52, Maxime Ripard wrote: > > HDMI controller drivers will need to figure out the RGB range they need > to configure based on a mode and property values. Let's expose that in > the HDMI connector state so drivers can just use that value. > > Reviewed-by: Dave Stevenso

[PATCH v4 1/3] drm/panfrost: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Adrián Larumbe
When Panfrost must pin an object that is being prepared a dma-buf attachment for on behalf of another driver, the core drm gem object pinning code already takes a lock on the object's dma reservation. However, Panfrost GEM object's pinning callback would eventually try taking the lock on the same

[PATCH v4 0/3] drm: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Adrián Larumbe
This is v4 of https://lore.kernel.org/lkml/20240521181817.097af...@collabora.com/T/ The goal of this patch series is fixing a deadlock upon locking the dma reservation of a DRM gem object when pinning it, at a prime import operation. Changelog: v3: - Split driver fixes into separate commits fo

[PATCH v4 3/3] drm/gem-shmem: Add import attachment warning to locked pin function

2024-05-23 Thread Adrián Larumbe
Commit ec144244a43f ("drm/gem-shmem: Acquire reservation lock in GEM pin/unpin callbacks") moved locking DRM object's dma reservation to drm_gem_shmem_object_pin, and made drm_gem_shmem_pin_locked public, so we need to make sure the non-NULL check warning is also added to the latter. Cc: Thomas Zi

[PATCH v4 2/3] drm/lima: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Adrián Larumbe
Commit a78027847226 ("drm/gem: Acquire reservation lock in drm_gem_{pin/unpin}()") moved locking the DRM object's dma reservation to drm_gem_pin(), but Lima's pin callback kept calling drm_gem_shmem_pin, which also tries to lock the same dma_resv, leading to a double lock situation. As was already

Re: [PATCH v14 21/28] drm/connector: hdmi: Add Infoframes generation

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:54PM +0200, Maxime Ripard wrote: > Infoframes in KMS is usually handled by a bunch of low-level helpers > that require quite some boilerplate for drivers. This leads to > discrepancies with how drivers generate them, and which are actually > sent. > > Now that we have

Re: [PATCH v14 22/28] drm/tests: Add infoframes test

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:55PM +0200, Maxime Ripard wrote: > The previous patch added the generation of the infoframes matching an > HDMI connector state. Let's add a few tests to make sure it works as > expected. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/tests/drm_connector_t

Re: [PATCH v14 23/28] drm/connector: hdmi: Create Infoframe DebugFS entries

2024-05-23 Thread Dmitry Baryshkov
On Tue, May 21, 2024 at 12:13:56PM +0200, Maxime Ripard wrote: > There has been some discussions recently about the infoframes sent by > drivers and if they were properly generated. > > In parallel, there's been some interest in creating an infoframe-decode > tool similar to edid-decode. > > Both

Re:[PATCH v14 27/28] drm/rockchip: inno_hdmi: Switch to HDMI connector

2024-05-23 Thread Andy Yan
Hi Maxime, At 2024-05-21 18:14:00, "Maxime Ripard" wrote: >The new HDMI connector infrastructure allows to remove some boilerplate, >especially to generate infoframes. Let's switch to it. > >Reviewed-by: Heiko Stuebner >Acked-by: Heiko Stuebner >Signed-off-by: Maxime Ripard Acked-by: Andy Y

Re:[PATCH v14 28/28] drm/sun4i: hdmi: Switch to HDMI connector

2024-05-23 Thread Andy Yan
Hi Maxime, At 2024-05-21 18:14:01, "Maxime Ripard" wrote: >The new HDMI connector infrastructure allows to remove some boilerplate, >especially to generate infoframes. Let's switch to it. > >Reviewed-by: Jernej Skrabec >Acked-by: Sui Jingfeng >Signed-off-by: Maxime Ripard Reviewed-by: Andy Y

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

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

Re: [PATCH v4 2/3] drm/lima: Fix dma_resv deadlock at drm object pin time

2024-05-23 Thread Boris Brezillon
On Thu, 23 May 2024 12:32:18 +0100 Adrián Larumbe wrote: > Commit a78027847226 ("drm/gem: Acquire reservation lock in > drm_gem_{pin/unpin}()") moved locking the DRM object's dma reservation to > drm_gem_pin(), but Lima's pin callback kept calling drm_gem_shmem_pin, > which also tries to lock the

Re: [PATCH v4 3/3] drm/gem-shmem: Add import attachment warning to locked pin function

2024-05-23 Thread Boris Brezillon
On Thu, 23 May 2024 12:32:19 +0100 Adrián Larumbe wrote: > Commit ec144244a43f ("drm/gem-shmem: Acquire reservation lock in GEM > pin/unpin callbacks") moved locking DRM object's dma reservation to > drm_gem_shmem_object_pin, and made drm_gem_shmem_pin_locked public, so we > need to make sure the

Re: [PATCH v2 5/7] drm/msm/adreno: Add A702 support

2024-05-23 Thread Connor Abbott
On Fri, Feb 23, 2024 at 9:28 PM Konrad Dybcio wrote: > > The A702 is a weird mix of 600 and 700 series.. Perhaps even a > testing ground for some A7xx features with good ol' A6xx silicon. > It's basically A610 that's been beefed up with some new registers > and hw features (like APRIV!), that was

[PATCH v4 00/15] Add display support for the MT8365-EVK board

2024-05-23 Thread Alexandre Mergnat
drivers are also improved. The series is rebased on top of Angelo's series [1] to use the OF graphs support. Regards, Alex Signed-off-by: Alexandre Mergnat --- Changes in v4: - Rebase to "next-20240523" branch. - Patch merged, then removed from the series: - dt-bindings: di

[PATCH v4 01/15] dt-bindings: display: mediatek: aal: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Adaptive Ambient Light on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file chang

[PATCH v4 03/15] dt-bindings: display: mediatek: color: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Color on MT8365, which is compatible with that of the MT8173. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion

[PATCH v4 02/15] dt-bindings: display: mediatek: ccorr: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Color Correction on MT8365, which is compatible with that of the MT8183. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml | 3 +++ 1 file changed

[PATCH v4 06/15] dt-bindings: display: mediatek: dpi: add power-domains property

2024-05-23 Thread amergnat
From: Fabien Parent DPI is part of the display / multimedia block in MediaTek SoCs, and always have a power-domain (at least in the upstream device-trees). Add the power-domains property to the binding documentation. Fixes: 9273cf7d3942 ("dt-bindings: display: mediatek: convert the dpi bindings

[PATCH v4 08/15] dt-bindings: display: mediatek: gamma: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Gamma on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml | 1 + 1 file changed, 1 insertion

[PATCH v4 07/15] dt-bindings: display: mediatek: dpi: add compatible for MT8365

2024-05-23 Thread Alexandre Mergnat
Add dt-binding documentation of dpi for MediaTek MT8365 SoC. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 4 1 file changed, 4 insertions(+) diff --git a/D

[PATCH v4 11/15] drm/mediatek: dsi: Improves the DSI lane setup robustness

2024-05-23 Thread Alexandre Mergnat
Currently, mtk_dsi_lane_ready (which setup the DSI lane) is triggered before mtk_dsi_poweron. lanes_ready flag toggle to true during mtk_dsi_lane_ready function, and the DSI module is set up during mtk_dsi_poweron. Later, during panel driver init, mtk_dsi_lane_ready is triggered but does nothing b

[PATCH v4 12/15] drm/mediatek: add MT8365 SoC support

2024-05-23 Thread amergnat
From: Fabien Parent Add DRM support for MT8365 SoC. Signed-off-by: Fabien Parent Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_d

[PATCH v4 13/15] arm64: defconfig: enable display connector support

2024-05-23 Thread Alexandre Mergnat
Enable this feature for the i350-evk HDMI connector support. Signed-off-by: Alexandre Mergnat --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6281975199c4..7dac8f92b0b9 100644 --- a/arch/arm64/

[PATCH v4 14/15] arm64: dts: mediatek: add display blocks support for the MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
- Add aliases for each display components to help display drivers. - Add the Display Pulse Width Modulation (DISP_PWM) to provide PWM signals for the LED driver of mobile LCM. - Add the MIPI Display Serial Interface (DSI) PHY support. (up to 4-lane output) - Add the display mutex support. - Add

[PATCH v4 05/15] dt-bindings: display: mediatek: dsi: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the Display Serial Interface on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1 file changed, 1

[PATCH v4 10/15] dt-bindings: display: mediatek: rdma: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Data Path Read DMA on MT8365, which is compatible with that of the MT8183. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml | 1 + 1 file changed,

[PATCH v4 09/15] dt-bindings: display: mediatek: ovl: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Overlay on MT8365, which is compatible with that of the MT8192. Reviewed-by: AngeloGioacchino Del Regno Acked-by: Rob Herring (Arm) Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml | 1 + 1 file changed, 1 insertion

[PATCH v4 04/15] dt-bindings: display: mediatek: dither: add compatible for MT8365 SoC

2024-05-23 Thread Alexandre Mergnat
Document the display Dither on MT8365, which is compatible with that of the MT8183. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml | 1 + 1 file changed, 1 inserti

[PATCH v4 15/15] arm64: dts: mediatek: add display support for mt8365-evk

2024-05-23 Thread Alexandre Mergnat
MIPI DSI: - Add "vsys_lcm_reg" regulator support and setup the "mt6357_vsim1_reg", to power the pannel plugged to the DSI connector. - Setup the Display Parallel Interface. - Add the startek kd070fhfid015 pannel support. HDMI: - Add HDMI connector support. - Add the "ite,it66121" HDMI bridge sup

[no subject]

2024-05-23 Thread Simon Horman
Bcc: Subject: Re: [PATCH v9 3/8] x86/vmware: Introduce VMware hypercall API Reply-To: In-Reply-To: <683225e0-1cd3-4dea-bb68-086d46b23...@broadcom.com> + Joe Perches On Wed, May 22, 2024 at 04:39:57PM -0700, Alexey Makhalov wrote: > Hi Simon, apologize for long delay > > On 5/11/24 8:02 AM, Sim

Re: [PATCH v9 3/8] x86/vmware: Introduce VMware hypercall API

2024-05-23 Thread Simon Horman
[ resending as I mangled the previous attempt , sorry ] + Joe Perches On Wed, May 22, 2024 at 04:39:57PM -0700, Alexey Makhalov wrote: > Hi Simon, apologize for long delay > > On 5/11/24 8:02 AM, Simon Horman wrote: > > > diff --git a/arch/x86/include/asm/vmware.h b/arch/x86/include/asm/vmware.h

Re: [RESEND 0/6] drm, nouveau/radeon/amdpgu: edid_blob_ptr cleanups

2024-05-23 Thread Jani Nikula
On Mon, 13 May 2024, Alex Deucher wrote: > On Mon, May 13, 2024 at 8:20 AM Jani Nikula wrote: >> >> On Fri, 10 May 2024, Alex Deucher wrote: >> > On Fri, May 10, 2024 at 11:17 AM Jani Nikula wrote: >> > Series is: >> > Acked-by: Alex Deucher >> >> Thanks, do you want to pick these up via your

[PATCH 0/5] drm/nouveau: Add drm_panic support for nv50+

2024-05-23 Thread Jocelyn Falempe
This series adds basic drm_panic support for nouveau. Patches 1-4 Add missing bits in drm_panic (ABGR2101010, set_pixel() for tiling, ...) Patch 5 registers nouveau to drm_panic, and handle tiling. I've tested on a GTX1650, while running Gnome/Wayland desktop. I didn't find documentation about nV

[PATCH 1/5] drm/panic: Add ABGR2101010 support

2024-05-23 Thread Jocelyn Falempe
Add support for ABGR2101010, used by the nouveau driver. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/drm_panic.c b/drivers/gpu/drm/drm_panic.c index 7ece67086cec..78fdecfede84 100644 --- a/drivers/

[PATCH 2/5] drm/panic: only draw the foreground color in drm_panic_blit()

2024-05-23 Thread Jocelyn Falempe
The whole framebuffer is cleared, so it's useless to rewrite the background colored pixels. It allows to simplify the drawing functions, and prepare the work for the set_pixel() callback. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 63 +++-- 1

[PATCH 4/5] drm/panic: add a private pointer to drm_scanout_buffer

2024-05-23 Thread Jocelyn Falempe
So you can pass a parameter to the set_pixel() callback. Signed-off-by: Jocelyn Falempe --- include/drm/drm_panic.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h index 73bb3f3d9ed9..f7c32d64af5f 100644 --- a/include/drm/drm_panic.h ++

[PATCH 5/5] drm/nouveau: Add drm_panic support for nv50+

2024-05-23 Thread Jocelyn Falempe
Add drm_panic support, for nv50+ cards. It's enough to get the panic screen while running Gnome/Wayland on a GTX 1650. It doesn't support multi-plane or compressed format. Support for other formats and older cards will come later. Tiling is only tested on GTX1650, and might be wrong for other cards

[PATCH 3/5] drm/panic: Add a set_pixel() callback to drm_scanout_buffer

2024-05-23 Thread Jocelyn Falempe
This allows drivers to draw the pixel, and handle tiling, or specific color formats. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 120 +++- include/drm/drm_panic.h | 9 +++ 2 files changed, 85 insertions(+), 44 deletions(-) diff --git a/

Re: [PATCH 1/3] kci-gitlab: Introducing GitLab-CI Pipeline for Kernel Testing

2024-05-23 Thread Daniel Vetter
On Mon, Mar 04, 2024 at 06:45:33PM -0300, Helen Koike wrote: > Hi Linus, > > Thank you for your reply and valuable inputs. > > On 01/03/2024 17:10, Linus Torvalds wrote: > > On Fri, 1 Mar 2024 at 02:27, Nikolai Kondrashov wrote: > > > > > > I agree, it's hard to imagine even a simple majority a

Re: [PATCH v6, 23/24] media: mediatek: vcodec: support av1 svp decoder for mt8188

2024-05-23 Thread Andrzej Pietrasiewicz
Hi Yunfei and Xiaoyong, W dniu 16.05.2024 o 14:21, Yunfei Dong pisze: From: Xiaoyong Lu Change av1 driver to support secure video playback(svp) for mt8188. Need to map shared memory with optee interface and wait interrupt in optee-os. Signed-off-by: Xiaoyong Lu Signed-off-by: Yunfei Dong --

[PATCH 0/3] amd, i915, xe: drop redundant warnings from driver makefiles

2024-05-23 Thread Jani Nikula
I'm sending these together, as they're related, and almost identical, but I expect them to be merged individually to each driver. BR, Jani. Jani Nikula (3): drm/i915: drop redundant W=1 warnings from Makefile drm/xe: drop redundant W=1 warnings from Makefile drm/amdgpu: drop redundant W=1 w

[PATCH 1/3] drm/i915: drop redundant W=1 warnings from Makefile

2024-05-23 Thread Jani Nikula
Since commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), most of the extra warnings in the driver Makefile are redundant. Remove them. Note that -Wmissing-declarations and -Wmissing-prototypes are always enabled by default in scripts/Makefile.extrawarn. Signe

[PATCH 2/3] drm/xe: drop redundant W=1 warnings from Makefile

2024-05-23 Thread Jani Nikula
Since commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), most of the extra warnings in the driver Makefile are redundant. Remove them. Note that -Wmissing-declarations and -Wmissing-prototypes are always enabled by default in scripts/Makefile.extrawarn. Signe

[PATCH 3/3] drm/amdgpu: drop redundant W=1 warnings from Makefile

2024-05-23 Thread Jani Nikula
Since commit a61ddb4393ad ("drm: enable (most) W=1 warnings by default across the subsystem"), most of the extra warnings in the driver Makefile are redundant. Remove them. Note that -Wmissing-declarations and -Wmissing-prototypes are always enabled by default in scripts/Makefile.extrawarn. Signe

Re: [PATCH v2] drm/amd/display: Enable colorspace property for MST connectors

2024-05-23 Thread Harry Wentland
On 2024-05-08 17:45, Mario Limonciello wrote: MST colorspace property support was disabled due to a series of warnings that came up when the device was plugged in since the properties weren't made at device creation. Create the properties in advance instead. Suggested-by: Ville Syrjälä Fixes: 6

[linux-next:master] BUILD REGRESSION 3689b0ef08b70e4e03b82ebd37730a03a672853a

2024-05-23 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 3689b0ef08b70e4e03b82ebd37730a03a672853a Add linux-next specific files for 20240523 Unverified Error/Warning (likely false positive, please contact us if interested): drivers/gpu/drm/xe

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-05-23 Thread Maxime Ripard
Hi, Reviving this thread because I'm not sure what the outcome was. On Thu, Feb 29, 2024 at 11:52:12AM GMT, Daniel Vetter wrote: > > The only thing I'm saying is that this breaks the usual DRM requirements. > > If, as a maintainer, you're fine with breaking the rules and have a good > > motivatio

Re: [PATCH v2 3/3] dt-bindings: display: vop2: Add VP clock resets

2024-05-23 Thread Conor Dooley
On Wed, May 22, 2024 at 02:57:50PM -0400, Detlev Casanova wrote: > Add the documentation for VOP2 video ports reset clocks. > One reset can be set per video port. Reviewed-by: Conor Dooley Cheers, Conor. signature.asc Description: PGP signature

Re: UAPI Re: [PATCH 1/3] drm: Add DRM_MODE_TV_MODE_MONOCHROME

2024-05-23 Thread Simon Ser
On Thursday, February 29th, 2024 at 11:52, Daniel Vetter wrote: > I think some weston (or whatever compositor you like) config file support > to set a bunch of "really only way to configure is by hand" output > properties would clear the bar here for me. Because that is a feature I > already men

Re: [PATCH RFC] drm/panel-edp: add fat warning against adding new panel compatibles

2024-05-23 Thread Doug Anderson
Hi, On Wed, May 22, 2024 at 3:07 PM Dmitry Baryshkov wrote: > > Add a fat warning against adding new panel compatibles to the panel-edp > driver. All new users of the eDP panels are supposed to use the generic > "edp-panel" compatible device on the AUX bus. The remaining compatibles > are either

[PATCH 0/4] drm: enable -Wformat-truncation

2024-05-23 Thread Jani Nikula
Jani Nikula (4): drm/amdgpu: fix -Wformat-truncation warning in amdgpu_gfx_kiq_init_ring() drm/nouveau: fix -Wformat-truncation warning in nouveau_backlight_init() drm/imx: fix -Wformat-truncation warning in imx_ldb_probe() drm: enable -Wformat-truncation across the subsystem driv

[PATCH 1/4] drm/amdgpu: fix -Wformat-truncation warning in amdgpu_gfx_kiq_init_ring()

2024-05-23 Thread Jani Nikula
Enabling -Wformat-truncation yields the following warning: ../drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c: In function ‘amdgpu_gfx_kiq_init_ring’: ../drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:332:61: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size bet

[PATCH 2/4] drm/nouveau: fix -Wformat-truncation warning in nouveau_backlight_init()

2024-05-23 Thread Jani Nikula
Enabling -Wformat-truncation yields the following warning: ../drivers/gpu/drm/nouveau/nouveau_backlight.c: In function ‘nouveau_backlight_init’: ../drivers/gpu/drm/nouveau/nouveau_backlight.c:56:69: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of siz

[PATCH 3/4] drm/imx: fix -Wformat-truncation warning in imx_ldb_probe()

2024-05-23 Thread Jani Nikula
Enabling -Wformat-truncation yields the following warning: ../drivers/gpu/drm/imx/ipuv3/imx-ldb.c: In function ‘imx_ldb_probe’: ../drivers/gpu/drm/imx/ipuv3/imx-ldb.c:658:57: error: ‘_sel’ directive output may be truncated writing 4 bytes into a region of size between 3 and 13 [-Werror=format-tr

  1   2   >