[PATCH v1 1/1] Fix get efuse issue for MT8188 DPTX

2024-05-10 Thread Liankun Yang
Fix get efuse issue for MT8188 DPTX. Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 85 ++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c index 2136a596efa1..32

[PATCH v1 1/1] Support YUV422 for DPTX.

2024-05-10 Thread Liankun Yang
Adjust the training sequence.Detects the actual link condition and calculates the bandwidth where the relevant resolution resides. The bandwidth is recalculated and modes that exceed the bandwidth are filtered. Example Modify bandwidth filtering requirements. Signed-off-by: Liankun Yang --- dr

Re: [PATCH] drm/panel: jdi-fhd-r63452: move DCS off commands to disable

2024-05-10 Thread Barnabás Czémán
On Fri, May 10, 2024 at 8:46 AM Barnabás Czémán wrote: > > On Fri, May 10, 2024 at 2:56 AM Dmitry Baryshkov > wrote: > > > > On Thu, May 09, 2024 at 08:14:07PM +0200, Barnabás Czémán wrote: > > > Move DCS off commands from .unprepare to .disable so that they > > > actually reach the DSI host. > >

[PATCH v2 0/5] Add support for GE SUNH hot-pluggable connector (was: "drm: add support for hot-pluggable bridges")

2024-05-10 Thread Luca Ceresoli
Hello, this series aims at supporting a Linux device with a connector to physically add and remove an add-on to/from the main device to augment its features at runtime, using device tree overlays. This is the v2 of "drm: add support for hot-pluggable bridges" [0] which was however more limited in

[PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Luca Ceresoli
Add bindings for the GE SUNH add-on connector. This is a physical, hot-pluggable connector that allows to attach and detach at runtime an add-on adding peripherals on non-discoverable busses. Signed-off-by: Luca Ceresoli --- NOTE: the second and third examples fail 'make dt_binding_check' becau

[PATCH v2 2/5] drm/bridge: add bridge notifier to be notified of bridge addition and removal

2024-05-10 Thread Luca Ceresoli
From: Paul Kocialkowski In preparation for allowing bridges to be added to and removed from a DRM card without destroying the whole card, add a DRM bridge notifier. Notified events are addition and removal to/from the global bridge list. Co-developed-by: Luca Ceresoli Signed-off-by: Luca Cereso

[PATCH v2 4/5] drm/bridge: hotplug-bridge: add driver to support hot-pluggable DSI bridges

2024-05-10 Thread Luca Ceresoli
This driver implements the point of a DRM pipeline where a connector allows removal of all the following bridges up to the panel. The DRM subsystem currently allows hotplug of the monitor but not preceding components. However there are embedded devices where the "tail" of the DRM pipeline, includi

[PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Luca Ceresoli
Add a driver to support the runtime hot-pluggable add-on connector on the GE SUNH device. This connector allows connecting and disconnecting an add-on to/from the main device to augment its features. Connection and disconnection can happen at runtime at any moment without notice. Different add-on

[PATCH v2 3/5] drm/encoder: add drm_encoder_cleanup_from()

2024-05-10 Thread Luca Ceresoli
Supporting hardware whose final part of the DRM pipeline can be physically removed requires the ability to detach all bridges from a given point to the end of the pipeline. Introduce a variant of drm_encoder_cleanup() for this. Signed-off-by: Luca Ceresoli --- Changed in v2: - fix a typo in a

[PULL] drm-misc-fixes

2024-05-10 Thread Thomas Zimmermann
Hi Dave, Sima, this is the weekly drm-misc-fixes PR. Sorry for being late. Best regards Thomas drm-misc-fixes-2024-05-10: Short summary of fixes pull: core: - fix connector debugging output meson: - dw-hdmi: power-up fixes - dw-hdmi: add badngap setting for g12 The following changes since comm

Re: simpledrm, running display servers, and drivers replacing simpledrm while the display server is running

2024-05-10 Thread Pekka Paalanen
On Thu, 09 May 2024 09:06:29 -0400 nerdopolis wrote: > Hi > > So I have been made aware of an apparent race condition of some > drivers taking a bit longer to load, which could lead to a possible > race condition of display servers/greeters using the simpledrm > device, and then experiencing pro

Re: simpledrm, running display servers, and drivers replacing simpledrm while the display server is running

2024-05-10 Thread Thomas Zimmermann
Hi Am 09.05.24 um 15:06 schrieb nerdopolis: Hi So I have been made aware of an apparent race condition of some drivers taking a bit longer to load, which could lead to a possible race condition of display servers/greeters using the simpledrm device, and then experiencing problems once the

Re: [PATCH v9 6/8] drm/vmwgfx: Use VMware hypercall API

2024-05-10 Thread kernel test robot
55606 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20240506215305.30756-7-alexey.makhalov%40broadcom.com patch subject: [PATCH v9 6/8] drm/vmwgfx: Use VMware hypercall API config: x86_64-buildonly-randconfig-003-20240510 (https://download.0

Re: simpledrm, running display servers, and drivers replacing simpledrm while the display server is running

2024-05-10 Thread Javier Martinez Canillas
nerdopolis writes: Hello, > Hi > > So I have been made aware of an apparent race condition of some drivers > taking a bit longer to load, which could lead to a possible race condition of > display servers/greeters using the simpledrm device, and then experiencing > problems once the real driv

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2024 at 09:10:41AM +0200, Luca Ceresoli wrote: > Add a driver to support the runtime hot-pluggable add-on connector on the > GE SUNH device. This connector allows connecting and disconnecting an > add-on to/from the main device to augment its features. Connection and > disconnection

Re: [PATCH] drm/drm-bridge.c: Drop conditionals around of_node pointers

2024-05-10 Thread Robert Foss
On Wed, 8 May 2024 02:00:00 +0800, Sui Jingfeng wrote: > Having conditional around the of_node pointer of the drm_bridge structure > is not necessary, since drm_bridge structure always has the of_node as its > member. > > Let's drop the conditional to get a better looks, please also note that > th

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Jani Nikula
On Thu, 09 May 2024, Dmitry Baryshkov wrote: > The drm/msm driver had adopted using Python3 script to generate register > header files instead of shipping pre-generated header files. Document > the minimal Python version supported by the script. > > Signed-off-by: Dmitry Baryshkov > --- > Docume

[PATCH RESEND v7 0/8] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-05-10 Thread Devarsh Thakkar
Resending this V7 series to have proper linking of patches in the series with cover-letter while doing git send-email. Original cover letter: This adds support for V4L2 M2M based driver for E5010 JPEG Encoder which is a stateful JPEG encoder from Imagination technologies and is present in TI AM62

Re: [PATCH] drm/etnaviv: Create an accel device node if compute-only

2024-05-10 Thread Lucas Stach
Hi Tomeu, Am Mittwoch, dem 24.04.2024 um 08:37 +0200 schrieb Tomeu Vizoso: > If we expose a render node for NPUs without rendering capabilities, the > userspace stack will offer it to compositors and applications for > rendering, which of course won't work. > > Userspace is probably right in not

[PATCH RESEND v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Devarsh Thakkar
Add macros to round to nearest specified power of 2. Two macros are added : round_closest_up and round_closest_down which round up to nearest multiple of 2 with a preference to round up or round down respectively if there are two possible nearest values to the given number. This patch is inspired

[PATCH RESEND v7 7/8] media: imagination: Round to closest multiple for cropping region

2024-05-10 Thread Devarsh Thakkar
If neither of the flags to round down (V4L2_SEL_FLAG_LE) or round up (V4L2_SEL_FLAG_GE) are specified by the user, then round to nearest multiple of requested value while updating the crop rectangle coordinates. Use the rounding macro which gives preference to rounding down in case two nearest val

[PATCH RESEND v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Devarsh Thakkar
Use generic macro round_closest_up for rounding to nearest multiple instead of using local function. Signed-off-by: Devarsh Thakkar --- V1->V6 (No change, patch introduced in V7) --- drivers/gpu/ipu-v3/ipu-image-convert.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dri

Re: [PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Rob Herring (Arm)
e.dtb] Error 1 make[2]: *** Waiting for unfinished jobs make[1]: *** [/builds/robherring/dt-review-ci/linux/Makefile:1430: dt_binding_check] Error 2 make: *** [Makefile:240: __sub-make] Error 2 doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings

powervr lockdep warnings

2024-05-10 Thread Chen-Yu Tsai
Hi, I got the following lockdep warnings while trying to make the powervr driver work on MT8173. This was observed while trying to run vkmark. This was on the next-20240506 kernel running Debian Sid with the Mesa 24.0.6 package rebuilt to include the powervr driver. [73602.438144] [

[PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Jani Nikula
libdrm does not like the empty string for driver date. Use "0" instead, which has been used by virtio previously. Reported-by: Steven Price Closes: https://lore.kernel.org/r/9d0cff47-308e-4b11-a9f3-4157dc26b...@arm.com Fixes: 7fb8af6798e8 ("drm: deprecate driver date") Signed-off-by: Jani Nikula

Re: [PATCH] drm: deprecate driver date

2024-05-10 Thread Jani Nikula
On Thu, 09 May 2024, Steven Price wrote: > On 29/04/2024 17:43, Jani Nikula wrote: >> The driver date serves no useful purpose, because it's hardly ever >> updated. The information is misleading at best. >> >> As described in Documentation/gpu/drm-internals.rst: >> >> The driver date, formatte

[PATCH] drm/edid: rename drm_do_probe_ddc_edid() to ddc_read_block()

2024-05-10 Thread Jani Nikula
The "do probe" naming is confusing when it's really about reading a block via DDC. Rename accordingly. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Mauro Carvalho Chehab
Em Fri, 10 May 2024 11:08:38 +0300 Jani Nikula escreveu: > On Thu, 09 May 2024, Dmitry Baryshkov wrote: > > The drm/msm driver had adopted using Python3 script to generate register > > header files instead of shipping pre-generated header files. Document > > the minimal Python version supported

RE: [PATCH] drm/mst: Fix NULL pointer dereference at drm_dp_add_payload_part2

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, "Lin, Wayne" wrote: > [Public] > >> -Original Message- >> From: Limonciello, Mario >> Sent: Friday, May 10, 2024 3:18 AM >> To: Linux regressions mailing list ; Wentland, >> Harry >> ; Lin, Wayne >> Cc: ly...@redhat.com; imre.d...@intel.com; Leon Weiß > bochum.de>;

Re: [PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Javier Martinez Canillas
Jani Nikula writes: > libdrm does not like the empty string for driver date. Use "0" instead, > which has been used by virtio previously. > > Reported-by: Steven Price > Closes: https://lore.kernel.org/r/9d0cff47-308e-4b11-a9f3-4157dc26b...@arm.com > Fixes: 7fb8af6798e8 ("drm: deprecate driver d

Re: [PATCH v2 2/3] dt-bindings: arm: mediatek: mmsys: Add OF graph support for board path

2024-05-10 Thread 胡俊光

Re: [PATCH] drm: deprecate driver date

2024-05-10 Thread Steven Price
On 10/05/2024 10:13, Jani Nikula wrote: > On Thu, 09 May 2024, Steven Price wrote: >> On 29/04/2024 17:43, Jani Nikula wrote: >>> The driver date serves no useful purpose, because it's hardly ever >>> updated. The information is misleading at best. >>> >>> As described in Documentation/gpu/drm-int

Re: [PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Steven Price
On 10/05/2024 10:09, Jani Nikula wrote: > libdrm does not like the empty string for driver date. Use "0" instead, > which has been used by virtio previously. > > Reported-by: Steven Price > Closes: https://lore.kernel.org/r/9d0cff47-308e-4b11-a9f3-4157dc26b...@arm.com > Fixes: 7fb8af6798e8 ("drm:

Re: simpledrm, running display servers, and drivers replacing simpledrm while the display server is running

2024-05-10 Thread Jonas Ådahl
On Fri, May 10, 2024 at 09:32:02AM +0200, Thomas Zimmermann wrote: > Hi > > Am 09.05.24 um 15:06 schrieb nerdopolis: > > > > Hi > > > > > > So I have been made aware of an apparent race condition of some drivers > > taking a bit longer to load, which could lead to a possible race > > condition

Re: [PATCH v1 1/1] Support YUV422 for DPTX.

2024-05-10 Thread AngeloGioacchino Del Regno
Il 10/05/24 04:15, Liankun Yang ha scritto: Adjust the training sequence.Detects the actual link condition and calculates the bandwidth where the relevant resolution resides. The bandwidth is recalculated and modes that exceed the bandwidth are filtered. Example Modify bandwidth filtering requi

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: > Em Fri, 10 May 2024 11:08:38 +0300 > Jani Nikula escreveu: > >> On Thu, 09 May 2024, Dmitry Baryshkov wrote: >> > The drm/msm driver had adopted using Python3 script to generate register >> > header files instead of shipping pre-generated heade

Re: [PATCH v1 1/1] Fix get efuse issue for MT8188 DPTX

2024-05-10 Thread AngeloGioacchino Del Regno
Il 10/05/24 08:16, Liankun Yang ha scritto: Fix get efuse issue for MT8188 DPTX. Signed-off-by: Liankun Yang I may agree with this commit, but: 1. The commit title is incorrect - I don't see "drm/mediatek:" - please look at the history to find out the right titles for your commits; and 2.

Re: [PATCH v2 2/3] dt-bindings: arm: mediatek: mmsys: Add OF graph support for board path

2024-05-10 Thread AngeloGioacchino Del Regno
Il 10/05/24 11:34, CK Hu (胡俊光) ha scritto: On Thu, 2024-05-09 at 11:27 +0200, AngeloGioacchino Del Regno wrote: Il 09/05/24 07:42, CK Hu (胡俊光) ha scritto: On Wed, 2024-05-08 at 15:03 +0200, AngeloGioacchino Del Regno wrote: Il 08/05/24 09:19, CK Hu (胡俊光) ha scritto: On Tue, 2024-05-07 at 16:0

Re: [PATCH RFC 2/2] pmdomain: ti-sci: Support retaining PD boot time state

2024-05-10 Thread Tomi Valkeinen
Hi, On 03/05/2024 16:45, Ulf Hansson wrote: + Abel, Saravanna, Stephen On Mon, 15 Apr 2024 at 19:17, Tomi Valkeinen wrote: On 15/04/2024 19:00, Tomi Valkeinen wrote: Add a new flag, TI_SCI_PD_KEEP_BOOT_STATE, which can be set in the dts when referring to power domains. When this flag is set

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Arnd Bergmann
On Fri, May 10, 2024, at 09:55, Greg Kroah-Hartman wrote: > On Fri, May 10, 2024 at 09:10:41AM +0200, Luca Ceresoli wrote: >> >> +config GE_SUNH_CONNECTOR >> +tristate "GE SUNH hotplug add-on connector" >> +depends on OF >> +select OF_OVERLAY >> +select FW_LOADER >> +select NV

[PATCH v10 05/12] drm/panelreplay: dpcd register definition for panelreplay SU

2024-05-10 Thread Jouni Högander
Add definitions for panel replay selective update v2: Remove unnecessary Cc from commit message Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- include/drm/display/drm_dp.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/display/drm_dp.h b/include/drm/display

Re: [PATCH] drm: use "0" instead of "" for deprecated driver date

2024-05-10 Thread Simon Ser
Sounds good to me. Reviewed-by: Simon Ser

Re: [PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Luca Ceresoli
Hello Rob, On Fri, 10 May 2024 03:41:35 -0500 "Rob Herring (Arm)" wrote: > On Fri, 10 May 2024 09:10:37 +0200, Luca Ceresoli wrote: > > Add bindings for the GE SUNH add-on connector. This is a physical, > > hot-pluggable connector that allows to attach and detach at runtime an > > add-on adding

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Dmitry Baryshkov
On Fri, 10 May 2024 at 13:09, Jani Nikula wrote: > > On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: > > Em Fri, 10 May 2024 11:08:38 +0300 > > Jani Nikula escreveu: > > > >> On Thu, 09 May 2024, Dmitry Baryshkov wrote: > >> > The drm/msm driver had adopted using Python3 script to generate re

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Luca Ceresoli
Hello Greg, thanks for reviewing. On Fri, 10 May 2024 08:55:29 +0100 Greg Kroah-Hartman wrote: > On Fri, May 10, 2024 at 09:10:41AM +0200, Luca Ceresoli wrote: > > Add a driver to support the runtime hot-pluggable add-on connector on the > > GE SUNH device. This connector allows connecting and

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Luca Ceresoli
Hello Greg, Arnd, On Fri, 10 May 2024 12:24:06 +0200 "Arnd Bergmann" wrote: > On Fri, May 10, 2024, at 09:55, Greg Kroah-Hartman wrote: > > On Fri, May 10, 2024 at 09:10:41AM +0200, Luca Ceresoli wrote: > >> > >> +config GE_SUNH_CONNECTOR > >> + tristate "GE SUNH hotplug add-on connector" >

Re: [Linaro-mm-sig] Re: [PATCH] epoll: try to be a _bit_ better about file lifetimes

2024-05-10 Thread Christian Brauner
> For the uapi issue you describe below my take would be that we should just > try, and hope that everyone's been dutifully using O_CLOEXEC. But maybe > I'm biased from the gpu world, where we've been hammering it in that > "O_CLOEXEC or bust" mantra since well over a decade. Really the only valid

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Arnd Bergmann
On Fri, May 10, 2024, at 12:54, Luca Ceresoli wrote: > On Fri, 10 May 2024 12:24:06 +0200 "Arnd Bergmann" wrote: >> On Fri, May 10, 2024, at 09:55, Greg Kroah-Hartman wrote: >> > On Fri, May 10, 2024 at 09:10:41AM +0200, Luca Ceresoli wrote: >> >> >> >> +config GE_SUNH_CONNECTOR >> >> + trista

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2024 at 12:54:17PM +0200, Luca Ceresoli wrote: > > > +static int sunh_conn_handle_event(struct sunh_conn *conn, bool plugged) > > > +{ > > > + int err; > > > + > > > + if (plugged == conn->plugged) > > > + return 0; > > > + > > > + dev_info(conn->dev, "%s\n", plugged ? "conn

[PATCH v2 2/2] Add dp PHY dt-bindings

2024-05-10 Thread Liankun Yang
Add dp PHY dt-bindings. Changeds in v2: - Add dp PHY dt-bindings. https://patchwork.kernel.org/project/linux-mediatek/patch/ 20240403040517.3279-1-liankun.y...@mediatek.com/ Signed-off-by: Liankun Yang --- .../display/mediatek/mediatek.phy-dp.yaml | 45 +++ 1 file changed, 4

[PATCH v2 1/2] Add write DP phyd register from parse dts

2024-05-10 Thread Liankun Yang
During the testing phase, screen flickering is observed when using displayport for screen casting. Relevant SSC register parameters are set in dts to address the screen flickering issue effectively and improve compatibility with different devices by adjusting the SSC gear. Obtaining the DPTX node,

[PATCH v2 0/2] Add PHY-dp bindings

2024-05-10 Thread Liankun Yang
Update write DP phyd register and add phy-dp bindings. Liankun Yang (2): Add write DP phyd register from parse dts Add dp PHY dt-bindings .../display/mediatek/mediatek.phy-dp.yaml | 45 +++ drivers/phy/mediatek/phy-mtk-dp.c | 37 +++ 2 files change

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Mauro Carvalho Chehab
Em Fri, 10 May 2024 13:39:17 +0300 Dmitry Baryshkov escreveu: > On Fri, 10 May 2024 at 13:09, Jani Nikula wrote: > > > > On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: > > > Em Fri, 10 May 2024 11:08:38 +0300 > > > Jani Nikula escreveu: > > > > > >> On Thu, 09 May 2024, Dmitry Baryshkov

Re: [PATCH v2 0/2] Add PHY-dp bindings

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Liankun Yang wrote: > Update write DP phyd register and add phy-dp bindings. > > Liankun Yang (2): > Add write DP phyd register from parse dts > Add dp PHY dt-bindings Please use the proper subject prefix for the driver. git log suggests "phy: phy-mtk-dp:". Thanks, Jani.

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Mauro Carvalho Chehab
Em Fri, 10 May 2024 13:39:17 +0300 Dmitry Baryshkov escreveu: > On Fri, 10 May 2024 at 13:09, Jani Nikula wrote: > > > > On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: > > > Em Fri, 10 May 2024 11:08:38 +0300 > > > Jani Nikula escreveu: > > > > > >> On Thu, 09 May 2024, Dmitry Baryshkov

Re: [PATCH] docs: document python version used for compilation

2024-05-10 Thread Jon Hunter
On 10/05/2024 12:39, Mauro Carvalho Chehab wrote: Em Fri, 10 May 2024 13:39:17 +0300 Dmitry Baryshkov escreveu: On Fri, 10 May 2024 at 13:09, Jani Nikula wrote: On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: Em Fri, 10 May 2024 11:08:38 +0300 Jani Nikula escreveu: On Thu, 09 May

Re: [PATCH v2 1/5] drm/udl: Remove DRM_CONNECTOR_POLL_HPD

2024-05-10 Thread Jani Nikula
On Wed, 10 Apr 2024, Thomas Zimmermann wrote: > DisplayLink devices do not generate hotplug events. Remove the poll > flag DRM_CONNECTOR_POLL_HPD, as it may not be specified together with > DRM_CONNECTOR_POLL_CONNECT or DRM_CONNECTOR_POLL_DISCONNECT. > > Signed-off-by: Thomas Zimmermann > Fixes:

Re: [PATCH v2 2/5] drm/udl: Move drm_dev_{enter,exit}() into udl_get_edid_block()

2024-05-10 Thread Jani Nikula
On Wed, 10 Apr 2024, Thomas Zimmermann wrote: > Protect the code in udl_get_edid_block() with drm_dev_enter() and > drm_dev_exit(), so that all callers automatically invoke it. The > function uses hardware resources, which can be hot-unplugged at > any time. The other code in udl_connector_detect(

Re: [PATCH v2 3/5] drm/udl: Clean up Makefile

2024-05-10 Thread Jani Nikula
On Wed, 10 Apr 2024, Thomas Zimmermann wrote: > Clean up Makefile before listing new object files. No functional > changes. > > Signed-off-by: Thomas Zimmermann Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/udl/Makefile | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff

Re: [PATCH v1 2/2] HID: i2c-hid: elan: Add ili2900 timing

2024-05-10 Thread zhaoxiong lv
hi Doug Sorry, This patch was accidentally sent when sending other patches. Please ignore this patch. > Also: other than the main power supply, there is no difference between > this and the ili2901. If you actually do have a main power supply, > then you probably don't need a new table. You pro

Re: [PATCH v2 4/5] drm/udl: Untangle .get_modes() and .detect_ctx()

2024-05-10 Thread Jani Nikula
On Wed, 10 Apr 2024, Thomas Zimmermann wrote: > Provide separate implementations of .get_modes() and .detect_ctx() > from struct drm_connector. Switch to struct drm_edid. > > Udl's .detect() helper used to fetch the EDID from the adapter and the > .get_modes() helper provided display modes from th

Re: [PATCH v2 5/5] drm/udl: Remove struct udl_connector

2024-05-10 Thread Jani Nikula
On Wed, 10 Apr 2024, Thomas Zimmermann wrote: > Udl's struct udl_connector is an empty wrapper around struct > drm_connector. Remove it. Allocate the connector as part of struct > udl_device and inline the init function into its only caller. > > v2: > - fix return value in udl_modeset_init() (Dan)

Re: simpledrm, running display servers, and drivers replacing simpledrm while the display server is running

2024-05-10 Thread Thomas Zimmermann
Hi (This was discussed on #dri-devel, but I'll reiterate here as well). There are two problems at hand; one is the race condition during boot when the login screen (or whatever display server appears first) is launched with simpledrm, only some moments later having the real GPU driver appear.

Re: [PATCH v2 2/2] Add dp PHY dt-bindings

2024-05-10 Thread Rob Herring
On Fri, May 10, 2024 at 07:04:15PM +0800, Liankun Yang wrote: > Add dp PHY dt-bindings. > > Changeds in v2: > - Add dp PHY dt-bindings. > https://patchwork.kernel.org/project/linux-mediatek/patch/ > 20240403040517.3279-1-liankun.y...@mediatek.com/ > > Signed-off-by: Liankun Yang > --- > .../dis

Re: NXP i.MX8MM GPU performances

2024-05-10 Thread João Paulo Gonçalves
> Offscreen test results: > > glmark2 command: > glmark2-es2-wayland --off-screen -b shading:duration=5.0 -b refract -b build > -b texture -b shadow -b bump -s 640x480 2>&1 > | | glmark2 tests | > | sw ver |shading|build|texture|refract|shadow|

Re: simpledrm, running display servers, and drivers replacing simpledrm while the display server is running

2024-05-10 Thread Jonas Ådahl
On Fri, May 10, 2024 at 02:45:48PM +0200, Thomas Zimmermann wrote: > Hi > > > (This was discussed on #dri-devel, but I'll reiterate here as well). > > > > There are two problems at hand; one is the race condition during boot > > when the login screen (or whatever display server appears first) is

Re: [PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Rob Herring
On Fri, May 10, 2024 at 5:37 AM Luca Ceresoli wrote: > > Hello Rob, > > On Fri, 10 May 2024 03:41:35 -0500 > "Rob Herring (Arm)" wrote: > > > On Fri, 10 May 2024 09:10:37 +0200, Luca Ceresoli wrote: > > > Add bindings for the GE SUNH add-on connector. This is a physical, > > > hot-pluggable conne

[RESEND 0/6] drm: struct drm_edid conversions

2024-05-10 Thread Jani Nikula
Resend of the remaining patches from [1]. BR, Jani. [1] https://lore.kernel.org/r/cover.1713273659.git.jani.nik...@intel.com Jani Nikula (6): drm/bridge/analogix/anx6345: switch to struct drm_edid drm/bridge/analogix/anx78xx: switch to struct drm_edid drm/bridge: anx7625: use struct drm_e

[RESEND 1/6] drm/bridge/analogix/anx6345: switch to struct drm_edid

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec --- .../gpu/drm/bridge/analogix/analogix-anx6345.c| 15 +++ 1 file change

[RESEND 2/6] drm/bridge/analogix/anx78xx: switch to struct drm_edid

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec --- .../drm/bridge/analogix/analogix-anx78xx.c| 23 ++- 1 file change

[RESEND 3/6] drm/bridge: anx7625: use struct drm_edid more

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Robert Foss Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec --- drivers/gpu/drm/bridge/analogix/anx7625.c | 26 +++ drivers/gpu/d

[RESEND 4/6] drm/i2c: tda998x: switch to struct drm_edid

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: Russell King --- drivers/gpu/drm/i2c/tda998x_drv.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda9

[RESEND 5/6] drm/bochs: switch to struct drm_edid

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: Gerd Hoffmann Cc: virtualizat...@lists.linux.dev --- drivers/gpu/drm/tiny/bochs.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/tiny/boch

[RESEND 6/6] drm/virtio: switch to struct drm_edid

2024-05-10 Thread Jani Nikula
Prefer struct drm_edid based functions over struct edid. Signed-off-by: Jani Nikula --- Cc: David Airlie Cc: Gerd Hoffmann Cc: Gurchetan Singh Cc: Chia-I Wu Cc: virtualizat...@lists.linux.dev --- drivers/gpu/drm/virtio/virtgpu_display.c | 10 -- drivers/gpu/drm/virtio/virtgpu_drv.h

Re: [PATCH 00/15] drm: struct drm_edid conversions

2024-05-10 Thread Jani Nikula
On Tue, 07 May 2024, Thomas Zimmermann wrote: > Hi > > Am 16.04.24 um 15:22 schrieb Jani Nikula: >> I've these laying in a branch for a while, maybe let's try to make some >> forward progress in this front. > > Could you take another look at the udl patches at [1]? The second > iteration of the p

Re: [PATCH v2 2/2] drm/ci: validate drm/msm XML register files against schema

2024-05-10 Thread Helen Koike
On 03/05/2024 21:07, Abhinav Kumar wrote: On 5/3/2024 5:02 PM, Dmitry Baryshkov wrote: On Sat, 4 May 2024 at 01:38, Abhinav Kumar wrote: On 5/3/2024 1:20 PM, Dmitry Baryshkov wrote: On Fri, 3 May 2024 at 22:42, Abhinav Kumar wrote: On 5/3/2024 11:15 AM, Dmitry Baryshkov wrote: In

Re: [PATCH v2 0/2] drm/msm/gen_header: allow skipping the validation

2024-05-10 Thread Helen Koike
On 03/05/2024 17:23, Dmitry Baryshkov wrote: On Fri, 3 May 2024 at 21:15, Dmitry Baryshkov wrote: In order to remove pointless messages regarding missing lxml, skip validation of MSM register files against the schema. Only the driver developers really care and/or can fix the files. Keep th

Re: [pull] amdgpu, amdkfd drm-fixes-6.9

2024-05-10 Thread Alex Deucher
On Thu, May 9, 2024 at 11:22 PM Dave Airlie wrote: > > On Thu, 9 May 2024 at 09:00, Alex Deucher wrote: > > > > Hi Dave, Sima, > > > > Fixes for 6.9. > > > > The following changes since commit dd5a440a31fae6e459c0d627162825505361: > > > > Linux 6.9-rc7 (2024-05-05 14:06:01 -0700) > > > > ar

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

2024-05-10 Thread Doug Anderson
Hi, On Thu, May 9, 2024 at 11:05 PM cong yang wrote: > > Hi, > > Doug Anderson 于2024年5月10日周五 00:49写道: > > > > Hi, > > > > On Wed, May 8, 2024 at 6:53 PM Cong Yang > > wrote: > > > > > > +static int ivo_t109nw41_init(struct hx83102 *ctx) > > > +{ > > > + struct mipi_dsi_multi_context dsi_c

Re: [PATCH v2 1/5] dt-bindings: connector: add GE SUNH hotplug addon connector

2024-05-10 Thread Luca Ceresoli
Hello Rob, On Fri, 10 May 2024 08:22:53 -0500 Rob Herring wrote: > On Fri, May 10, 2024 at 5:37 AM Luca Ceresoli > wrote: > > > > Hello Rob, > > > > On Fri, 10 May 2024 03:41:35 -0500 > > "Rob Herring (Arm)" wrote: > > > > > On Fri, 10 May 2024 09:10:37 +0200, Luca Ceresoli wrote: > > > >

[GIT PULL] Immutable branch between Backlight, HID and fbdev due for the v6.10 merge window

2024-05-10 Thread Lee Jones
Enjoy! The following changes since commit 4cece764965020c22cff7665b18a012006359095: Linux 6.9-rc1 (2024-03-24 14:10:05 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git ib-backlight-hid-fbdev-lcd-scripts-v6.10 for you to fetch c

Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 12:09:52AM +0530, Devarsh Thakkar wrote: > Add macros to round to nearest specified power of 2. This is not what they are doing. For the above we already have macros defined. > Two macros are added : (Yes, after I wrapped to comment this line looks better on its own, so

Re: [PATCH v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 12:10:10AM +0530, Devarsh Thakkar wrote: > Use generic macro round_closest_up for rounding to nearest multiple instead round_closest_up() We refer to the functions as func(). > of using local function. ... > @@ -565,7 +563,7 @@ static void find_best_seam(struct ipu_imag

Re: [PATCH RESEND v7 0/8] Add V4L2 M2M Driver for E5010 JPEG Encoder

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 01:56:03PM +0530, Devarsh Thakkar wrote: > Resending this V7 series to have proper linking of patches in the series > with cover-letter while doing git send-email. > > Original cover letter: > This adds support for V4L2 M2M based driver for E5010 JPEG Encoder > which is a

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

2024-05-10 Thread Jani Nikula
I've sent this some moths ago, let's try again... BR, Jani. Jani Nikula (6): drm/nouveau: convert to using is_hdmi and has_audio from display info drm/radeon: convert to using is_hdmi and has_audio from display info drm/radeon: remove radeon_connector_edid() and stop using edid_blob_ptr

[RESEND 1/6] drm/nouveau: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Conveniently, this also removes the need to use edid_blob_ptr. v2: Reverse a backwards if condition (Ilia) Cc: Karol Herbst Cc: Lyude Paul Cc

[RESEND 2/6] drm/radeon: convert to using is_hdmi and has_audio from display info

2024-05-10 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Cc: Alex Deucher Cc: Christian König Cc: Pan, Xinhui Cc: amd-...@lists.freedesktop.org Signed-off-by: Jani Nikula --- drivers/gpu/drm/radeon

[RESEND 3/6] drm/radeon: remove radeon_connector_edid() and stop using edid_blob_ptr

2024-05-10 Thread Jani Nikula
radeon_connector_edid() copies the EDID from edid_blob_ptr as a side effect if radeon_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using it.

[RESEND 4/6] drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptr

2024-05-10 Thread Jani Nikula
amdgpu_connector_edid() copies the EDID from edid_blob_ptr as a side effect if amdgpu_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using it.

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

2024-05-10 Thread Jani Nikula
Add a helper to get the EDID property for sysfs property show. This hides all the edid_blob_ptr usage within drm_edid.c. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_crtc_internal.h | 2 ++ drivers/gpu/drm/drm_edid.c | 33 + drivers/gpu/drm/drm_sysfs.c

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

2024-05-10 Thread Jani Nikula
Accessing the EDID via edid_blob_ptr causes chicken-and-egg problems. Keep edid_blob_ptr as the userspace interface that should be accessed via dedicated functions. Signed-off-by: Jani Nikula --- include/drm/drm_connector.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

Re: [PATCH v7 7/8] media: imagination: Round to closest multiple for cropping region

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 12:10:01AM +0530, Devarsh Thakkar wrote: > If neither of the flags to round down (V4L2_SEL_FLAG_LE) or round up > (V4L2_SEL_FLAG_GE) are specified by the user, then round to nearest > multiple of requested value while updating the crop rectangle coordinates. > > Use the rou

Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Jani Nikula
On Fri, 10 May 2024, Andy Shevchenko wrote: > On Fri, May 10, 2024 at 12:09:52AM +0530, Devarsh Thakkar wrote: >> Add macros to round to nearest specified power of 2. > > This is not what they are doing. For the above we already have macros defined. > >> Two macros are added : > > (Yes, after I wr

Re: [PATCH v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Laurent Pinchart
On Fri, May 10, 2024 at 06:03:52PM +0300, Andy Shevchenko wrote: > On Fri, May 10, 2024 at 12:10:10AM +0530, Devarsh Thakkar wrote: > > Use generic macro round_closest_up for rounding to nearest multiple instead > > round_closest_up() > > We refer to the functions as func(). > > > of using local

Re: [PATCH v2 4/5] drm/udl: Untangle .get_modes() and .detect_ctx()

2024-05-10 Thread Thomas Zimmermann
Hi Am 10.05.24 um 14:17 schrieb Jani Nikula: + /* +* The adapter sends all-zeros if no monitor has been +* connected. We consider anything else a connection. +*/ + return memcmp(no_edid, hdr, 8) != 0; Nitpick, this works, but you can drop the no_edid buf by

Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 06:15:34PM +0300, Jani Nikula wrote: > On Fri, 10 May 2024, Andy Shevchenko > wrote: > > On Fri, May 10, 2024 at 12:09:52AM +0530, Devarsh Thakkar wrote: > >> Add macros to round to nearest specified power of 2. > > > > This is not what they are doing. For the above we alr

Re: [PATCH v2 5/5] misc: add ge-addon-connector driver

2024-05-10 Thread Luca Ceresoli
Hi Greg, Arnd, On Fri, 10 May 2024 12:57:24 +0200 "Arnd Bergmann" wrote: > On Fri, May 10, 2024, at 12:54, Luca Ceresoli wrote: > > On Fri, 10 May 2024 12:24:06 +0200 "Arnd Bergmann" wrote: > >> On Fri, May 10, 2024, at 09:55, Greg Kroah-Hartman wrote: > >> > On Fri, May 10, 2024 at 09:10:4

Re: [PATCH v7 8/8] gpu: ipu-v3: Use generic macro for rounding to nearest multiple

2024-05-10 Thread Andy Shevchenko
On Fri, May 10, 2024 at 06:16:42PM +0300, Laurent Pinchart wrote: > On Fri, May 10, 2024 at 06:03:52PM +0300, Andy Shevchenko wrote: > > On Fri, May 10, 2024 at 12:10:10AM +0530, Devarsh Thakkar wrote: > > > Use generic macro round_closest_up for rounding to nearest multiple > > > instead > > > >

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

2024-05-10 Thread Alex Deucher
On Fri, May 10, 2024 at 11:17 AM Jani Nikula wrote: > > I've sent this some moths ago, let's try again... > > BR, > Jani. > > Jani Nikula (6): > drm/nouveau: convert to using is_hdmi and has_audio from display info > drm/radeon: convert to using is_hdmi and has_audio from display info > drm/

[PATCH v3 2/5] drm/udl: Move drm_dev_{enter, exit}() into udl_get_edid_block()

2024-05-10 Thread Thomas Zimmermann
Protect the code in udl_get_edid_block() with drm_dev_enter() and drm_dev_exit(), so that all callers automatically invoke it. The function uses hardware resources, which can be hot-unplugged at any time. The other code in udl_connector_detect() does not use the resources of the hardware device and

  1   2   >