[PATCH 1/2] drm/mipi-dsi: Add quiet member to mipi_dsi_multi_context struct

2024-07-24 Thread Tejas Vipin
A "quiet" member is added to mipi_dsi_multi_context which allows silencing all the errors printed by the multi functions. Signed-off-by: Tejas Vipin --- include/drm/drm_mipi_dsi.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h

Re: [PATCH v7 1/2] drm/buddy: Add start address support to trim function

2024-07-24 Thread Christian König
Am 24.07.24 um 11:37 schrieb Matthew Auld: On 24/07/2024 02:35, Marek Olšák wrote: The reason is that our DCC requires 768K alignment in some cases. I haven't read this patch series, but one way to do that is to align to 256K, overallocate by 512K, and then not use either 0, 256K, or 512K at

Re: [PATCH] drm/scheduler: Fix drm_sched_entity_set_priority()

2024-07-24 Thread Christian König
Am 24.07.24 um 10:16 schrieb Tvrtko Ursulin: [SNIP] Absolutely. Absolutely good and absolutely me, or absolutely you? :) You, I don't even have time to finish all the stuff I already started :/ These are the TODO points and their opens: - Adjust

Re: [PATCH v3] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-07-24 Thread Ma Ke
On Wed, 24 Jul 2024, Jani Nikula wrote: > On Wed, 24 Jul 2024, Ma Ke wrote: > > In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is > > assigned to modeset->mode, which will lead to a possible NULL pointer > > dereference on failure of drm_mode_duplicate(). Add a check to

[Bug 219091] amdgpu: after updating to linux 6.10, screen flickering occurs

2024-07-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219091 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [RFC PATCH] drm: panthor: add dev_coredumpv support

2024-07-24 Thread Boris Brezillon
Hi Steve, On Wed, 24 Jul 2024 09:59:36 +0100 Steven Price wrote: > Hi Boris, > > On 23/07/2024 17:06, Boris Brezillon wrote: > > Hi Steve, > > > > On Mon, 15 Jul 2024 10:12:16 +0100 > > Steven Price wrote: > > > >> I note it also shows that the "panthor_regs.rs" would ideally be shared. >

[PATCH v8 5/5] drm/ci: rockchip: add tests for rockchip display driver

2024-07-24 Thread Vignesh Raman
For rockchip rk3288 and rk3399, the display driver is rockchip and gpu driver is panfrost. Currently, in drm-ci for rockchip rk3288 and rk3399, only the gpu driver is tested. Refactor the existing rockchip jobs to test both display and gpu driver and update xfails. Since the correct driver name

[PATCH v8 3/5] drm/ci: mediatek: add tests for powervr gpu driver

2024-07-24 Thread Vignesh Raman
For mediatek mt8173, the display driver is mediatek, while the gpu driver is powervr. Currently, in drm-ci for mt8173, only the display driver is tested. Add support in drm-ci to test powervr driver for mt8173. Powervr driver was merged in linux kernel, but there's no mediatek support yet. So

[PATCH v8 4/5] drm/ci: meson: add tests for meson display driver

2024-07-24 Thread Vignesh Raman
For Amlogic Meson G12B (A311D) SOC the display driver is meson and gpu driver is panfrost. Currently, in drm-ci for Meson G12B (A311D), only the gpu driver is tested. Refactor the existing meson jobs and add support in drm-ci to test both display and gpu driver for Amlogic Meson G12B (A311D) and

[PATCH v8 2/5] drm/ci: mediatek: add tests for mediatek display driver

2024-07-24 Thread Vignesh Raman
For mediatek mt8183, the display driver is mediatek, while the gpu driver is panfrost. Currently, in drm-ci for mt8183, only the gpu driver is tested. Refactor the existing mediatek jobs and add support in drm-ci to test both display and gpu driver for mt8183 and update xfails. Since the correct

[PATCH v8 1/5] drm/ci: arm64.config: Enable CONFIG_DRM_ANALOGIX_ANX7625

2024-07-24 Thread Vignesh Raman
Enable CONFIG_DRM_ANALOGIX_ANX7625 in the arm64 defconfig to get display driver probed on the mt8183-kukui-jacuzzi-juniper machine. arch/arm64/configs/defconfig has CONFIG_DRM_ANALOGIX_ANX7625=m, but drm-ci don't have initrd with modules, so add CONFIG_DRM_ANALOGIX_ANX7625=y in CI arm64 config.

[PATCH v8 0/5] drm/ci: Add support for GPU and display testing

2024-07-24 Thread Vignesh Raman
Some ARM SOCs have a separate display controller and GPU, each with different drivers. For mediatek mt8173, the GPU driver is powervr, and the display driver is mediatek. In the case of mediatek mt8183, the GPU driver is panfrost, and the display driver is mediatek. With rockchip rk3288/rk3399,

Re: [PATCH][next] drm/i915/dp: Make read-only array bw_gbps static const

2024-07-24 Thread Jani Nikula
On Mon, 22 Jul 2024, Colin Ian King wrote: > Don't populate the read-only array bw_gbps on the stack at run time, > instead make it static const. > > Signed-off-by: Colin Ian King Pushed to drm-intel-next, thanks for the patch. BR, Jani. > --- > drivers/gpu/drm/i915/display/intel_dp.c | 2 +-

Re: [PATCH v3] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-07-24 Thread Jani Nikula
On Wed, 24 Jul 2024, Ma Ke wrote: > In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is > assigned to modeset->mode, which will lead to a possible NULL pointer > dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. > > Cc: sta...@vger.kernel.org >

Re: [PATCH v7 1/2] drm/buddy: Add start address support to trim function

2024-07-24 Thread Matthew Auld
On 23/07/2024 14:25, Arunpravin Paneer Selvam wrote: - Add a new start parameter in trim function to specify exact address from where to start the trimming. This would help us in situations like if drivers would like to do address alignment for specific requirements. - Add a new flag

[PATCH v3] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-07-24 Thread Ma Ke
In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is assigned to modeset->mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Cc: sta...@vger.kernel.org Fixes: cf13909aee05 ("drm/fb-helper: Move out

Re: [PATCH v7 1/2] drm/buddy: Add start address support to trim function

2024-07-24 Thread Matthew Auld
On 24/07/2024 02:35, Marek Olšák wrote: The reason is that our DCC requires 768K alignment in some cases. I haven't read this patch series, but one way to do that is to align to 256K, overallocate by 512K, and then not use either 0, 256K, or 512K at the beginning to get to 768K alignment.

Re: [PATCH] drm/nouveau/debugfs: Simplify character output in nouveau_debugfs_vbios_image()

2024-07-24 Thread Markus Elfring
>> Is there some reason this whole thing isn't just >> >> seq_write(m, drm->vbios.data, drm->vbios.length) … > I don't know if my answer is relevant or not here but: > for () seq_putc();    ==> will fill 'm' with everything that fits in I find such a discussion approach strange. > and >

[PATCH v3 10/19] drm/imx: Add i.MX8qxp Display Controller pixel engine

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller pixel engine consists of all processing units that operate in the AXI bus clock domain. Add drivers for ConstFrame, ExtDst, FetchLayer, FetchWarp and LayerBlend units, as well as a pixel engine driver, so that two displays with primary planes can be supported. The

[DO NOT MERGE PATCH v3 18/19] arm64: dts: imx8qxp-mek: Enable display controller

2024-07-24 Thread Liu Ying
Enable display controller for i.MX8qxp MEK. Signed-off-by: Liu Ying --- v3: * No change. v2: * New patch. (Francesco) arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

[DO NOT MERGE PATCH v3 19/19] arm64: dts: imx8qxp-mek: Add MX8-DLVDS-LCD1 display module support

2024-07-24 Thread Liu Ying
MX8-DLVDS-LCD1 display module integrates a KOE TX26D202VM0BWA LCD panel and a touch IC. Add an overlay to support the LCD panel on i.MX8qxp MEK. mipi_lvds_0_ldb channel0 and mipi_lvds_1_ldb channel1 send odd and even pixels to the panel respectively. Signed-off-by: Liu Ying --- v3: * No

[PATCH v3 13/19] MAINTAINERS: Add maintainer for i.MX8qxp Display Controller

2024-07-24 Thread Liu Ying
Add myself as the maintainer of i.MX8qxp Display Controller. Signed-off-by: Liu Ying --- v3: * No change. v2: * Improve file list. (Frank) MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 10bd3f40a2f1..fa82fdd9bfef 100644 ---

[DO NOT MERGE PATCH v3 17/19] arm64: dts: imx8qxp: Add MIPI-LVDS combo subsystems

2024-07-24 Thread Liu Ying
The MIPI-LVDS combo subsystems are peripherals of pixel link MSI bus in i.MX8qxp display controller subsystem. Add the MIPI-LVDS combo subsystems. Signed-off-by: Liu Ying --- v3: * No change. v2: * New patch. (Francesco) .../boot/dts/freescale/imx8qxp-ss-dc.dtsi | 4 +

[DO NOT MERGE PATCH v3 16/19] arm64: dts: imx8qxp: Add display controller subsystem

2024-07-24 Thread Liu Ying
Add display controller subsystem in i.MX8qxp SoC. Signed-off-by: Liu Ying --- v3: * No change. v2: * New patch. (Krzysztof) .../arm64/boot/dts/freescale/imx8-ss-dc0.dtsi | 408 ++ .../boot/dts/freescale/imx8qxp-ss-dc.dtsi | 236 ++

[PATCH v3 08/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller(DC) is comprised of three main components that include a blit engine for 2D graphics accelerations, display controller for display output processing, as well as a command sequencer. Signed-off-by: Liu Ying --- v3: * No change. v2: * Drop fsl,dc-*-id DT properties

[PATCH v3 07/19] dt-bindings: interrupt-controller: Add i.MX8qxp Display Controller interrupt controller

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller has a built-in interrupt controller to support Enable/Status/Preset/Clear interrupt bit. Signed-off-by: Liu Ying Reviewed-by: Rob Herring (Arm) --- v3: * Collect Rob's R-b tag. v2: * Drop unneeded "|". (Krzysztof) .../fsl,imx8qxp-dc-intc.yaml |

[PATCH v3 11/19] drm/imx: Add i.MX8qxp Display Controller interrupt controller

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller has a built-in interrupt controller to support Enable/Status/Preset/Clear interrupt bit. Add driver for it. Signed-off-by: Liu Ying --- v3: * No change. v2: * No change. drivers/gpu/drm/imx/dc/Kconfig | 1 + drivers/gpu/drm/imx/dc/Makefile | 2 +-

[DO NOT MERGE PATCH v3 14/19] dt-bindings: phy: mixel, mipi-dsi-phy: Allow assigned-clock* properties

2024-07-24 Thread Liu Ying
assigned-clock* properties can be used by default now, so allow them. Signed-off-by: Liu Ying --- v3: * No change. v2: * New patch as needed by MIPI/LVDS subsystems device tree. .../devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH v3 06/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller command sequencer

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller contains a command sequencer is designed to autonomously process command lists. Signed-off-by: Liu Ying --- v3: * New patch. (Rob) .../imx/fsl,imx8qxp-dc-command-sequencer.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644

[DO NOT MERGE PATCH v3 15/19] dt-bindings: firmware: imx: Add SCU controlled display pixel link nodes

2024-07-24 Thread Liu Ying
Document SCU controlled display pixel link child nodes. Signed-off-by: Liu Ying --- v3: * No change. v2: * New patch as needed by display controller subsystem device tree. .../devicetree/bindings/firmware/fsl,scu.yaml | 20 +++ 1 file changed, 20 insertions(+) diff --git

[PATCH v3 12/19] drm/imx: Add i.MX8qxp Display Controller KMS

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller(DC) is comprised of three main components that include a blit engine for 2D graphics accelerations, display controller for display output processing, as well as a command sequencer. Add kernel mode setting support for the display controller part with two CRTCs and two

[PATCH v3 09/19] drm/imx: Add i.MX8qxp Display Controller display engine

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller display engine consists of all processing units that operate in a display clock domain. Add minimal feature support with FrameGen and TCon so that the engine can output display timings. The display engine driver as a master binds FrameGen and TCon drivers as

[PATCH v3 05/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller AXI performance counter

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller contains a AXI performance counter which allows measurement of average bandwidth and latency during operation. Signed-off-by: Liu Ying --- v3: * New patch. (Rob) ...sl,imx8qxp-dc-axi-performance-counter.yaml | 57 +++ 1 file changed, 57 insertions(+)

[PATCH v3 04/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller pixel engine

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller pixel engine consists of all processing units that operate in the AXI bus clock domain. Command sequencer and interrupt controller of the Display Controller work with AXI bus clock, but they are not in pixel engine. Signed-off-by: Liu Ying --- v3: * No change. v2: *

[PATCH v3 03/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller display engine

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller display engine consists of all processing units that operate in a display clock domain. Signed-off-by: Liu Ying --- v3: * No change. v2: * Drop fsl,dc-*-id DT properties. (Krzysztof) * Drop port property. (Krzysztof) * Fix register range sizes in example.

[PATCH v3 02/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller blit engine

2024-07-24 Thread Liu Ying
i.MX8qxp Display Controller contains a blit engine for raster graphics. It may read up to 3 source images from memory and computes one destination image from it, which is written back to memory. Signed-off-by: Liu Ying --- v3: * New patch. (Rob) .../imx/fsl,imx8qxp-dc-blit-engine.yaml |

[PATCH v3 01/19] dt-bindings: display: imx: Add i.MX8qxp Display Controller processing units

2024-07-24 Thread Liu Ying
Freescale i.MX8qxp Display Controller is implemented as construction set of building blocks with unified concept and standardized interfaces. Document all existing processing units. Signed-off-by: Liu Ying --- v3: * Combine fsl,imx8qxp-dc-fetchunit-common.yaml, fsl,imx8qxp-dc-fetchlayer.yaml

[PATCH v3 00/19] Add Freescale i.MX8qxp Display Controller support

2024-07-24 Thread Liu Ying
Hi, This patch series aims to add Freescale i.MX8qxp Display Controller support. The controller is comprised of three main components that include a blit engine for 2D graphics accelerations, display controller for display output processing, as well as a command sequencer. Previous patch series

Re: [PATCH v2 RESEND] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-07-24 Thread Jani Nikula
On Wed, 24 Jul 2024, Ma Ke wrote: > In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is > assigned to modeset->mode, which will lead to a possible NULL pointer > dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. > > Cc: sta...@vger.kernel.org >

Re: drm-ci: flaky tests for mediatek driver testing

2024-07-24 Thread Vignesh Raman
Hi Maintainers, On 28/05/24 10:55, Vignesh Raman wrote: Hi Maintainers, There are some flaky tests reported for mediatek driver testing in drm-ci. # Board Name: mt8173-elm-hana # IGT Version: 1.28-g0df7b9b97 # Linux Version: 6.9.0-rc7 # Failure Rate: 50 core_setmaster_vs_auth

Re: [RFC PATCH] drm: panthor: add dev_coredumpv support

2024-07-24 Thread Steven Price
Hi Boris, On 23/07/2024 17:06, Boris Brezillon wrote: > Hi Steve, > > On Mon, 15 Jul 2024 10:12:16 +0100 > Steven Price wrote: > >> I note it also shows that the "panthor_regs.rs" would ideally be shared. >> For arm64 we have been moving to generating system register descriptions >> from a

Re: [PATCH v2 0/3] drm: backlight quirk infrastructure and lower minimum for Framework AMD 13

2024-07-24 Thread Jani Nikula
On Thu, 18 Jul 2024, Hans de Goede wrote: > Hi Thomas, > > On 6/24/24 6:15 PM, Thomas Weißschuh wrote: >> Hi Hans! >> >> thanks for your feedback! >> >> On 2024-06-24 11:11:40+, Hans de Goede wrote: >>> On 6/23/24 10:51 AM, Thomas Weißschuh wrote: The value of "min_input_signal"

drm-ci: flaky tests for rockchip driver testing

2024-07-24 Thread Vignesh Raman
Hi Maintainers, There are some flaky tests reported for rockchip driver testing in drm-ci. === rockchip rk3288 === # Board Name: rk3288-veyron-jaq # Failure Rate: 100 # IGT Version: 1.28-gf13702b8e # Linux Version: 6.10.0-rc5 kms_cursor_legacy@flip-vs-cursor-atomic === rockchip rk3399 === #

Re: [PATCH v1] drm/i915/hwmon: expose fan speed

2024-07-24 Thread Nilawar, Badal
On 12-07-2024 17:53, Raag Jadav wrote: Add hwmon support for fan1_input attribute, which will expose fan speed in RPM. With this in place we can monitor fan speed using lm-sensors tool. $ sensors i915-pci-0300 Adapter: PCI adapter in0: 653.00 mV fan1:3833 RPM power1:

Re: [PATCH] drm/scheduler: Fix drm_sched_entity_set_priority()

2024-07-24 Thread Tvrtko Ursulin
On 22/07/2024 16:13, Christian König wrote: Am 22.07.24 um 16:43 schrieb Tvrtko Ursulin: On 22/07/2024 15:06, Christian König wrote: Am 22.07.24 um 15:52 schrieb Tvrtko Ursulin: On 19/07/2024 16:18, Christian König wrote: Am 19.07.24 um 15:02 schrieb Christian König: Am 19.07.24 um

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

2024-07-24 Thread Krzysztof Kozlowski
On 22/07/2024 08:53, Alexandre Mergnat wrote: > 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

Re: [PATCH v4 0/2] Modify the method of obtaining porch parameters

2024-07-24 Thread Neil Armstrong
Hi, On Tue, 23 Jul 2024 14:26:13 +0800, Zhaoxiong Lv wrote: > The current driver can only obtain the porch parameters > of boe-th101mb31ig002. Modify it to obtain the porch > parameters of the panel currently being used. > > Also switch to the drm_connector_helper_get_modes_fixed() function > to

Re: [PATCH 1/2] dt-bindings: display: panel: Document Densitron DMT028VGHMCMI-1D TFT on ILI9806E DSI TCON

2024-07-24 Thread Neil Armstrong
Hi, On Wed, 24 Jul 2024 02:55:52 +0200, Marek Vasut wrote: > Document Densitron DMT028VGHMCMI-1D 480x640 TFT matrix 2.83 inch panel > attached to Ilitek ILI9806E DSI TCON in the ILI9806E bindings. > > Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next) [1/2]

Re: [PATCH] drm: panel: boe-bf060y8m-aj0: Enable prepare_prev_first

2024-07-24 Thread Neil Armstrong
Hi, On Mon, 22 Jul 2024 14:07:15 +0700, Dang Huynh wrote: > Enable prepare_prev_first flag for BF060Y8M-AJ0 panel so that the > previous controller should be prepared first before the prepare for > the panel is called. > > This makes sure that the previous controller, likely to be a DSI host >

Re: [PATCH v1 4/4] drm/panel: ili9806e: Break some CMDS into helper functions

2024-07-24 Thread neil . armstrong
On 12/07/2024 17:50, Doug Anderson wrote: Hi, On Fri, Jul 12, 2024 at 7:56 AM wrote: On 11/07/2024 21:36, Doug Anderson wrote: Hi, On Wed, Jul 10, 2024 at 6:09 PM cong yang wrote: Hi, Michael Walle 于2024年7月11日周四 03:38写道: On Wed Jul 10, 2024 at 9:12 PM CEST, Doug Anderson wrote: Hi,

Re: [PATCH v4 2/2] drm/panel: boe-th101mb31ig002 : using drm_connector_helper_get_modes_fixed()

2024-07-24 Thread neil . armstrong
Hi Doug, On 23/07/2024 21:48, Doug Anderson wrote: Hi, On Mon, Jul 22, 2024 at 11:26 PM Zhaoxiong Lv wrote: Use public functions( drm_connector_helper_get_modes_fixed()) to get porch parameters. Signed-off-by: Zhaoxiong Lv --- Changes between V4 and V3: - 1.Modify the return value,

[Bug 211807] [drm:drm_dp_mst_dpcd_read] *ERROR* mstb 000000004e6288dd port 3: DPCD read on addr 0x60 for 1 bytes NAKed

2024-07-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211807 joggarden (wellsedith...@gmail.com) changed: What|Removed |Added CC|

Re: [PATCH v3 3/5] dt-bindings: display: st7701: Add Anbernic RG28XX panel

2024-07-24 Thread Neil Armstrong
Hi, On 10/07/2024 16:01, Conor Dooley wrote: On Sat, Jul 06, 2024 at 07:23:34PM +0900, Hironori KIKUCHI wrote: The RG28XX panel is a display panel of the Anbernic RG28XX, a handheld gaming device from Anbernic. It is 2.8 inches in size (diagonally) with a resolution of 480x640. This panel is

Re: [PATCH v3 5/5] drm/panel: st7701: Add Anbernic RG28XX panel support

2024-07-24 Thread Neil Armstrong
On 06/07/2024 12:23, Hironori KIKUCHI wrote: The Anbernic RG28XX is a handheld gaming device with a 2.8 inch 480x640 display. Add support for the display panel. This panel is driven by a variant of ST7701 driver IC internally, confirmed by dumping and analyzing its BSP initialization sequence

Re: [PATCH v3 4/5] drm/panel: st7701: Add support for SPI for configuration

2024-07-24 Thread Neil Armstrong
On 06/07/2024 12:23, Hironori KIKUCHI wrote: The ST7701 supports not only MIPI DSI, but also SPI as an interface for configuration. To support a panel connected via SPI with an RGB parallel interface, add support for SPI using MIPI DBI helpers. Signed-off-by: Hironori KIKUCHI ---

Re: [PATCH] drm: panel: boe-bf060y8m-aj0: Enable prepare_prev_first

2024-07-24 Thread Neil Armstrong
On 22/07/2024 09:07, Dang Huynh wrote: Enable prepare_prev_first flag for BF060Y8M-AJ0 panel so that the previous controller should be prepared first before the prepare for the panel is called. This makes sure that the previous controller, likely to be a DSI host controller should be

[PATCH v5 4/4] drm/panic: Add a QR code panic screen

2024-07-24 Thread Jocelyn Falempe
This patch adds a new panic screen, with a QR code and the kmsg data embedded. If DRM_PANIC_SCREEN_QR_CODE_URL is set, then the kmsg data will be compressed with zlib and encoded as a numerical segment, and appended to the URL as a URL parameter. This allows to save space, and put about ~7500

[PATCH v5 3/4] drm/panic: Simplify logo handling

2024-07-24 Thread Jocelyn Falempe
Move logo rectangle initialisation, and logo drawing in separate functions, so they can be re-used by different panic screens. It prepares the introduction of the QR code panic screen. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 57 + 1

[PATCH v5 2/4] drm/rect: Add drm_rect_overlap()

2024-07-24 Thread Jocelyn Falempe
Check if two rectangles overlap. It's a bit similar to drm_rect_intersect() but this won't modify the rectangle. Simplifies a bit drm_panic. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/drm_panic.c | 3 +-- include/drm/drm_rect.h | 15 +++ 2 files changed, 16

[PATCH v5 1/4] drm/panic: Add integer scaling to blit()

2024-07-24 Thread Jocelyn Falempe
Add a parameter to the blit function, to upscale the image. This is necessary to draw a QR code, otherwise, the pixels are usually too small to be readable by most QR code reader. It can also be used later for drawing fonts on high DPI display. Signed-off-by: Jocelyn Falempe ---

[PATCH v5 0/4] drm/panic: Add a QR code panic screen

2024-07-24 Thread Jocelyn Falempe
This series adds a new panic screen, with the kmsg data embedded in a QR code. The main advantage of QR code, is that you can copy/paste the debug data to a bug report. The QR code encoder is written in rust, and is very specific to drm panic. The reason is that it is called in a panic handler,

Re: [PATCH 2/2] drm/panel: add BOE tv101wum-ll2 panel driver

2024-07-24 Thread Neil Armstrong
On 23/07/2024 21:17, Doug Anderson wrote: Hi, On Tue, Jul 9, 2024 at 6:06 AM Neil Armstrong wrote: diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 5581387707c6..79c90894b6a4 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@

Re: [PATCH 6/7] drm/i915/pmu: Lazy unregister

2024-07-24 Thread Tvrtko Ursulin
On 23/07/2024 16:30, Lucas De Marchi wrote: On Tue, Jul 23, 2024 at 09:03:25AM GMT, Tvrtko Ursulin wrote: On 22/07/2024 22:06, Lucas De Marchi wrote: Instead of calling perf_pmu_unregister() when unbinding, defer that to the destruction of i915 object. Since perf itself holds a reference in

[PATCH -next] drm/amd/display: use swap() in sort()

2024-07-24 Thread Jiapeng Chong
Use existing swap() function rather than duplicating its implementation. ./drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c:17:29-30: WARNING opportunity for swap(). Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9573 Signed-off-by:

Re: [PATCH] drm/scheduler: Use ternary operator in standardized manner

2024-07-24 Thread Jani Nikula
On Mon, 15 Jul 2024, Philipp Stanner wrote: > drm_sched_init() omits the middle operand when using the ternary > operator to set the timeout_wq if one has been passed. > > This is a non-standardized GNU extension to the C language [1]. > > It decreases code readability and might be read as a bug.

Re: [PATCH v4] drm/loongson: Introduce component framework support

2024-07-24 Thread Markus Elfring
> In some display subsystems, the functionality of a PCIe device may too might be? … > of the dirver is loaded, … driver? … > its dependencies ready before it can register the service to userspace.

Re: [PATCH] drm/edid: add non-desktop quirk to Pimax VR Headsets

2024-07-24 Thread Jani Nikula
On Sat, 20 Jul 2024, Sefa Eyeoglu wrote: > See https://gitlab.freedesktop.org/drm/misc/kernel/-/issues/40 Please attach the relevant EDID blobs to the bug. BR, Jani. > > Signed-off-by: Sefa Eyeoglu > --- > drivers/gpu/drm/drm_edid.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git

Re: [PATCH 2/2] drm/panel/panel-ilitek-ili9806e: Add Densitron DMT028VGHMCMI-1D TFT to ILI9806E DSI TCON driver

2024-07-24 Thread Michael Walle
> Add Densitron DMT028VGHMCMI-1D 480x640 TFT matrix 2.83 inch panel > attached to Ilitek ILI9806E DSI TCON into the ILI9806E driver. > > Note that the Densitron panels use different TCONs, this driver is for > the later panel, use panel-ilitek-st7701.c for the former panel: > DMT028VGHMCMI-1A -

Re: [PATCH 1/2] dma-buf: heaps: DMA_HEAP_IOCTL_ALLOC_READ_FILE framework

2024-07-24 Thread Huan Yang
在 2024/7/18 1:03, Christoph Hellwig 写道: copy_file_range only work inside the same file system anyway, so it is completely irrelevant here. What should work just fine is using sendfile (or splice if you like it complicated) to write TO the dma buf. That just iterates over the page cache on

Re: bisected/regression: choopy youtube video on Ryzen IGP - 0ddd2ae586d2 drm/ttm: increase ttm pre-fault value to PMD size

2024-07-24 Thread Yanko Kaneti
Hi, Well, it starts, then within a second or two it begins stuttering with long (half a second/second) freezes of the video , while the audio seems to work fine. Nothing in the log from chrome or kernel , AFAICS, to show anything is wrong. Regards Yanko On Wed, 2024-07-24 at 09:02 +0200,

Re: bisected/regression: choopy youtube video on Ryzen IGP - 0ddd2ae586d2 drm/ttm: increase ttm pre-fault value to PMD size

2024-07-24 Thread Christian König
Hi Yanko, interesting. What do you mean with "choppy"? E.g. lag on startup? Regards, Christian. Am 23.07.24 um 21:42 schrieb Yanko Kaneti: Hello, Noticed and bisected a rawhide (with the new 6.11-rc0 snapshots) regression to this commit: 0ddd2ae586d2 drm/ttm: increase ttm pre-fault

[PATCH v2 RESEND] drm/client: fix null pointer dereference in drm_client_modeset_probe

2024-07-24 Thread Ma Ke
In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is assigned to modeset->mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Cc: sta...@vger.kernel.org Fixes: cf13909aee05 ("drm/fb-helper: Move out

Re: [PATCH 1/2] dt-bindings: display: panel: Document Densitron DMT028VGHMCMI-1D TFT on ILI9806E DSI TCON

2024-07-24 Thread Krzysztof Kozlowski
On 24/07/2024 02:55, Marek Vasut wrote: > Document Densitron DMT028VGHMCMI-1D 480x640 TFT matrix 2.83 inch panel > attached to Ilitek ILI9806E DSI TCON in the ILI9806E bindings. > > Signed-off-by: Marek Vasut Acked-by: Krzysztof Kozlowski Best regards, Krzysztof

[Bug 219091] New: amdgpu: after updating to linux 6.10, screen flickering occurs

2024-07-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=219091 Bug ID: 219091 Summary: amdgpu: after updating to linux 6.10, screen flickering occurs Product: Drivers Version: 2.5 Hardware: AMD OS: Linux

Re: [PATCH RESEND] rockchip/drm: vop2: add support for gamma LUT

2024-07-23 Thread Dragan Simic
Hello Piotr, On 2024-07-22 20:26, Piotr Zalewski wrote: Thank you for the comment/review. Your code styling suggestions are naturally justified. Also, thanks to your comment, I noticed one extra thing. Namely, in my patch, gamma LUT write happens outside of the vop2 lock - which should happen

Re: [PATCH v7 5/5] drm/ci: rockchip: add tests for rockchip display driver

2024-07-23 Thread Helen Koike
On 12/07/2024 06:15, Vignesh Raman wrote: For rockchip rk3288 and rk3399, the display driver is rockchip and gpu driver is panfrost. Currently, in drm-ci for rockchip rk3288 and rk3399, only the gpu driver is tested. Refactor the existing rockchip jobs to test both display and gpu driver and

Re: [PATCH v7 4/5] drm/ci: meson: add tests for meson display driver

2024-07-23 Thread Helen Koike
On 12/07/2024 06:15, Vignesh Raman wrote: For Amlogic Meson G12B (A311D) SOC the display driver is meson and gpu driver is panfrost. Currently, in drm-ci for Meson G12B (A311D), only the gpu driver is tested. Refactor the existing meson jobs and add support in drm-ci to test both display and

Re: [PATCH v7 3/5] drm/ci: mediatek: add tests for powervr gpu driver

2024-07-23 Thread Helen Koike
On 12/07/2024 06:15, Vignesh Raman wrote: For mediatek mt8173, the display driver is mediatek, while the gpu driver is powervr. Currently, in drm-ci for mt8173, only the display driver is tested. Add support in drm-ci to test powervr driver for mt8173. Powervr driver was merged in linux

Re: [PATCH v7 2/5] drm/ci: mediatek: add tests for mediatek display driver

2024-07-23 Thread Helen Koike
On 12/07/2024 06:15, Vignesh Raman wrote: For mediatek mt8183, the display driver is mediatek, while the gpu driver is panfrost. Currently, in drm-ci for mt8183, only the gpu driver is tested. Refactor the existing mediatek jobs and add support in drm-ci to test both display and gpu driver

Re: [PATCH v7 1/2] drm/buddy: Add start address support to trim function

2024-07-23 Thread Marek Olšák
The reason is that our DCC requires 768K alignment in some cases. I haven't read this patch series, but one way to do that is to align to 256K, overallocate by 512K, and then not use either 0, 256K, or 512K at the beginning to get to 768K alignment. Marek On Tue, Jul 23, 2024, 11:04 Matthew Auld

[PATCH 2/2] drm/panel/panel-ilitek-ili9806e: Add Densitron DMT028VGHMCMI-1D TFT to ILI9806E DSI TCON driver

2024-07-23 Thread Marek Vasut
Add Densitron DMT028VGHMCMI-1D 480x640 TFT matrix 2.83 inch panel attached to Ilitek ILI9806E DSI TCON into the ILI9806E driver. Note that the Densitron panels use different TCONs, this driver is for the later panel, use panel-ilitek-st7701.c for the former panel: DMT028VGHMCMI-1A - ST7701

[PATCH 1/2] dt-bindings: display: panel: Document Densitron DMT028VGHMCMI-1D TFT on ILI9806E DSI TCON

2024-07-23 Thread Marek Vasut
Document Densitron DMT028VGHMCMI-1D 480x640 TFT matrix 2.83 inch panel attached to Ilitek ILI9806E DSI TCON in the ILI9806E bindings. Signed-off-by: Marek Vasut --- Cc: Conor Dooley Cc: Daniel Vetter Cc: David Airlie Cc: Jessica Zhang Cc: Krzysztof Kozlowski Cc: Maarten Lankhorst Cc:

[PATCH v2 2/2] media: imx: vdic: Introduce mem2mem VDI deinterlacer driver

2024-07-23 Thread Marek Vasut
Introduce dedicated memory-to-memory IPUv3 VDI deinterlacer driver. Currently the IPUv3 can operate VDI in DIRECT mode, from sensor to memory. This only works for single stream, that is, one input from one camera is deinterlaced on the fly with a helper buffer in DRAM and the result is written

[PATCH v2 1/2] gpu: ipu-v3: vdic: Simplify ipu_vdi_setup()

2024-07-23 Thread Marek Vasut
The 'code' parameter only ever selects between YUV 4:2:0 and 4:2:2 subsampling, turn it into boolean to select exactly that and update related code accordingly. Signed-off-by: Marek Vasut --- Cc: Daniel Vetter Cc: David Airlie Cc: Fabio Estevam Cc: Greg Kroah-Hartman Cc: Helge Deller Cc:

Re: [PATCH 1/7] perf/core: Add pmu get/put

2024-07-23 Thread Ian Rogers
On Mon, Jul 22, 2024 at 2:07 PM Lucas De Marchi wrote: > > If a pmu is unregistered while there's an active event, perf will still > access the pmu via event->pmu, even after the event is destroyed. This > makes it difficult for drivers like i915 that take a reference on the > device when the

Re: [PATCH net-next v15 03/14] netdev: support binding dma-buf to netdevice

2024-07-23 Thread Mina Almasry
On Tue, Jul 9, 2024 at 8:37 AM Taehee Yoo wrote: ... > Reproducer: > ./ncdevmem -f -l -p 5201 -v 7 -t 0 -q 2 & > sleep 10 > modprobe -rv bnxt_en > killall ncdevmem > > I think it's a devmemTCP core bug so this issue would be reproduced > with other drivers. Sorry for the late reply. I was out

[bug report] drm/v3d: Create a CPU job extension for the reset timestamp job

2024-07-23 Thread Dan Carpenter
[ The Smatch integer overflow are too garbage to publish. We're going to have a BoF about integer overflows at plumbers. - dan ] Hello Maíra Canal, Commit 34a101e64296 ("drm/v3d: Create a CPU job extension for the reset timestamp job") from Nov 30, 2023 (linux-next), leads to the following

Keybaords with arrays of RGB LEDs was Re: Future handling of complex RGB devices on Linux v2

2024-07-23 Thread Pavel Machek
Hi! So... I got two gaming keyboards. One is totally unusable (and it looks LEDs are not controllable from the host), and the second one is .. HyperX Elite RGB. Needs 2 USB connections, very buggy, probably needs repair, and I'd not recomend it to anyone. But that one seems to be usable for RGB

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-23 Thread Conor Dooley
On Tue, Jul 23, 2024 at 05:17:12PM +0200, Marc Gonzalez wrote: > On 27/06/2024 18:25, Conor Dooley wrote: > > > On Thu, Jun 27, 2024 at 01:13:03PM +0200, Marc Gonzalez wrote: > > > >> TDP158 is an AC-coupled DVI / HDMI to TMDS level shifting Redriver. > >> It supports DVI 1.0, HDMI 1.4b and 2.0b.

Re: [PATCH v4 2/2] drm/panel: boe-th101mb31ig002 : using drm_connector_helper_get_modes_fixed()

2024-07-23 Thread Doug Anderson
Hi, On Mon, Jul 22, 2024 at 11:26 PM Zhaoxiong Lv wrote: > > Use public functions( drm_connector_helper_get_modes_fixed()) to > get porch parameters. > > Signed-off-by: Zhaoxiong Lv > --- > Changes between V4 and V3: > - 1.Modify the return value, return >

bisected/regression: choopy youtube video on Ryzen IGP - 0ddd2ae586d2 drm/ttm: increase ttm pre-fault value to PMD size

2024-07-23 Thread Yanko Kaneti
Hello, Noticed and bisected a rawhide (with the new 6.11-rc0 snapshots) regression to this commit: 0ddd2ae586d2 drm/ttm: increase ttm pre-fault value to PMD size The regression manifests in choppy youtube video playback in google-chrome-stable. https://www.youtube.com/watch?v=uOpl2XNOgMA

Re: [PATCH v4 0/1] drm/loongson: Introduce component framework support

2024-07-23 Thread Markus Elfring
… > v3 -> v4: > * Tiny refinement and clean up. I suggest to reconsider the need for a cover letter according to a single patch. Regards, Markus

Re: [PATCH 2/2] drm/panel: add BOE tv101wum-ll2 panel driver

2024-07-23 Thread Doug Anderson
Hi, On Tue, Jul 9, 2024 at 6:06 AM Neil Armstrong wrote: > > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index 5581387707c6..79c90894b6a4 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -7,6 +7,7 @@

[PATCH] drm/test: use kunit action wrapper macro in the gem shmem test suite

2024-07-23 Thread Marco Pagani
Replace deferred action function wrappers with equivalent ones defined using the macro introduced by commit 56778b49c9a2 ("kunit: Add a macro to wrap a deferred action function") Signed-off-by: Marco Pagani --- drivers/gpu/drm/tests/drm_gem_shmem_test.c | 27 ++ 1 file

[PATCH v4 1/1] drm/loongson: Introduce component framework support

2024-07-23 Thread Sui Jingfeng
In some display subsystems, the functionality of a PCIe device may too complex to be managed by a single driver. A split of the functionality into child devices can help to achieve better modularity. For example, KMS drivers who have dependencies on external modules will suffer from the deferral

[PATCH v4 0/1] drm/loongson: Introduce component framework support

2024-07-23 Thread Sui Jingfeng
Introduce component framework to avoid potential cyclic dependency problem. The whole driver won't finish bound before all submodules are ready, respective modules just do fundimental works in their probe() function, such as allocating storage for themselves, mapping mmio, and handling the

Re: [PATCH] drm/dp_mst: Simplify character output in drm_dp_mst_dump_topology()

2024-07-23 Thread Lyude Paul
Reviewed-by: Lyude Paul Will push to the kernel in just a moment On Mon, 2024-07-15 at 13:26 +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 15 Jul 2024 13:12:10 +0200 > > Single characters should be put into a sequence. > Thus use the corresponding function “seq_putc” for

Re: [PATCH 06/11] drm/vc4: hdmi: Handle error case of pm_runtime_resume_and_get

2024-07-23 Thread Stefan Wahren
Hello, Am 30.06.24 um 17:36 schrieb Stefan Wahren: The commit 0f5251339eda ("drm/vc4: hdmi: Make sure the controller is powered in detect") introduced the necessary power management handling to avoid register access while controller is powered down. Unfortunately it just print a warning if

Re: [RFC PATCH] drm: panthor: add dev_coredumpv support

2024-07-23 Thread Daniel Almeida
The script (and the panthor_regs.rs file it generates) is at https://gitlab.collabora.com/dwlsalmeida/for-upstream/-/commit/783be55acf8d3352901798efb0118cce43e7f60b As you can see, it’s all regexes. It works, but I agree that it’s simpler to generate something more idiomatic by hand. — Daniel

Re: [PATCH] drm/amdgpu: convert bios_hardcoded_edid to drm_edid

2024-07-23 Thread Alex Deucher
On Tue, Jul 23, 2024 at 12:49 PM Alex Deucher wrote: > > On Sun, Jun 16, 2024 at 2:32 PM Thomas Weißschuh wrote: > > > > On 2024-06-16 11:12:03+, Thomas Weißschuh wrote: > > > Instead of manually passing around 'struct edid *' and its size, > > > use 'struct drm_edid', which encapsulates a

<    8   9   10   11   12   13   14   15   16   17   >