Re: [RFC PATCH v3 13/21] drm/exec: Rework contended locking

2024-05-27 Thread Christian König
Hi Thomas, Am 28.05.24 um 08:36 schrieb Thomas Hellström: Hi, Christian. I'd appreciate if you could respond to the below, since it is a bit hard to try to design around a problem I don't believe exists, and come up with a good solution for that. In short. 1) To prefault userptr we have to exi

[PATCH] nouveau/uconn: drop WARN_ON and pointless ret setting.

2024-05-27 Thread Dave Airlie
From: Dave Airlie With GSP on my laptop I get an 0xff connector type, it appears this is normal behaviour and we should ignore that connector. Now we don't handle that all properly, but anywhere I try to ignore it at that point causes driver load to fail, so let's not do that, and just drop the

Re: 6.10/regression/bisected commit c4cb23111103 causes sleeping function called from invalid context at kernel/locking/mutex.c:585

2024-05-27 Thread Linux regression tracking (Thorsten Leemhuis)
On 22.05.24 23:18, Chris Bainbridge wrote: > On Tue, May 21, 2024 at 02:39:06PM +0500, Mikhail Gavrilov wrote: >> Yesterday on the fresh kernel snapshot >> I spotted a new bug message with follow stacktrace: >> [4.307097] BUG: sleeping function called from invalid context at >> kernel/locking/m

drm-ci: flaky tests for i915 driver testing

2024-05-27 Thread Vignesh Raman
Hi Maintainers, There are some flaky tests reported for i915 driver testing in drm-ci for the below boards. *) # Board Name: asus-C523NA-A20057-coral # IGT Version: 1.28-g0df7b9b97 # Linux Version: 6.9.0-rc7 # Failure Rate: 50 kms_fb_coherency@memset-crc *) # Board Name: asus-C436FA-Flip-hatc

Re: [RFC PATCH v3 13/21] drm/exec: Rework contended locking

2024-05-27 Thread Thomas Hellström
Hi, Christian. I'd appreciate if you could respond to the below, since it is a bit hard to try to design around a problem I don't believe exists, and come up with a good solution for that. In short. 1) To prefault userptr we have to exit the ww transaction anyway. 2) Any contended lock held at lo

drm-ci: flaky tests for msm driver testing

2024-05-27 Thread Vignesh Raman
Hi Maintainers, There are some flaky tests reported for msm driver testing in drm-ci for the below boards. *) # Board Name: apq8096-db820c # IGT Version: 1.28-g0df7b9b97 # Linux Version: 6.9.0-rc7 # Failure Rate: 50 dumb_buffer@create-clear *) # Board Name: sc7180-trogdor-kingoftown # IGT Ver

drm-ci: flaky tests for mediatek driver testing

2024-05-27 Thread Vignesh Raman
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 dumb_buffer@create-clear fbdev@unaligned-write fbdev@write kms_cursor_legac

drm-ci: flaky tests for panfrost driver testing

2024-05-27 Thread Vignesh Raman
Hi Maintainers, There are some flaky tests reported for panfrost driver testing in drm-ci. # Board Name: rk3399-gru-kevin # IGT Version: 1.28-g0df7b9b97 # Linux Version: 6.9.0-rc7 # Failure Rate: 50 panfrost_submit@pan-unhandled-pagefault Will add these tests in drivers/gpu/drm/ci/xfails/rockc

drm-ci: flaky tests for amdgpu driver testing

2024-05-27 Thread Vignesh Raman
Hi Maintainers, There are some flaky tests reported for amdgpu driver testing in drm-ci. # Board Name: hp-11A-G6-EE-grunt # IGT Version: 1.28-g0df7b9b97 # Linux Version: 6.9.0-rc7 # Failure Rate: 50 kms_async_flips@async-flip-with-page-flip-events kms_async_flips@crc kms_plane@pixel-format-sourc

Re: (subset) [PATCH 0/4] Various fixes for the lm3630a backlight driver

2024-05-27 Thread Bjorn Andersson
On Tue, 20 Feb 2024 00:11:18 +0100, Luca Weiss wrote: > On the MSM8974 Nexus 5 and OnePlus One phones (latter doesn't have > display upstream) the display backlight was turning off whenever you > would write a brightness to sysfs since a recent commit to the driver > (kernel v6.5). > > backlig

Re: (subset) [PATCH 0/8] MSM8976 MDSS/GPU/WCNSS support

2024-05-27 Thread Bjorn Andersson
On Sun, 21 Jan 2024 20:40:58 +0100, Adam Skladowski wrote: > This patch series provide support for display subsystem, gpu > and also adds wireless connectivity subsystem support. > > Adam Skladowski (8): > arm64: dts: qcom: msm8976: Add IOMMU nodes > dt-bindings: dsi-controller-main: Documen

Re: [PATCH RESEND, v6 6/8] mailbox: mediatek: Add CMDQ secure mailbox driver

2024-05-27 Thread 胡俊光

Re: [PATCH RESEND,v6 8/8] soc: mediatek: mtk-cmdq: Add secure cmdq_pkt APIs

2024-05-27 Thread 胡俊光

Re: [PATCH RESEND, v6 6/8] mailbox: mediatek: Add CMDQ secure mailbox driver

2024-05-27 Thread 胡俊光

Re: [PATCH] drm/radeon/r100: enhance error handling in r100_cp_init_microcode

2024-05-27 Thread Zhouyi Zhou
Fix some error in my previous email On Tue, May 28, 2024 at 9:36 AM Zhouyi Zhou wrote: > > Thanks for reviewing the patch > > On Mon, May 27, 2024 at 3:58 PM Christian König > wrote: > > > > Am 27.05.24 um 03:20 schrieb Zhouyi Zhou: > > > In r100_cp_init_microcode, if rdev->family don't match an

Re: [PATCH] drm/radeon/r100: enhance error handling in r100_cp_init_microcode

2024-05-27 Thread Zhouyi Zhou
Thanks for reviewing the patch On Mon, May 27, 2024 at 3:58 PM Christian König wrote: > > Am 27.05.24 um 03:20 schrieb Zhouyi Zhou: > > In r100_cp_init_microcode, if rdev->family don't match any of > > if statement, fw_name will be NULL, which will cause > > gcc (11.4.0 powerpc64le-linux-gnu) co

Re: [PATCH v2] drm/bridge: simple-bridge: Add support for TI TDP158

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 06:06:05PM +0200, Marc Gonzalez wrote: > From: Arnaud Vrac > > The TI TDP158 is an AC-Coupled HDMI signal to TMDS Redriver supporting > DVI 1.0 and HDMI 1.4b and 2.0b output signals. > > Since it's an I2C-programmable bridge, it could have a proper driver, > but the defau

Re: [PATCH v15 17/29] drm/doc: Remove unused Broadcast RGB Property

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 03:58:06PM +0200, Maxime Ripard wrote: > The Broadcast RGB property has been documented as three separate entries > so far, each with a different set of values. > > The first one is pretty much the generic one: it's used by i915 and vc4, > and is the one used by all the com

Re: [PATCH v15 15/29] drm/connector: hdmi: Compute bpc and format automatically

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 03:58:04PM +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 v15 10/29] drm/tests: Add HDMI TDMS character rate tests

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 03:57:59PM +0200, Maxime Ripard wrote: > The previous patch added an helper to compute the TMDS character rate on > an HDMI connector. Let's add a few tests to make sure it works as > expected. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > driver

Re: [PATCH v15 09/29] drm/display: hdmi: Add HDMI compute clock helper

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 03:57:58PM +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 v2 00/12] drm/imx/ipuv3: switch LDB and parallel-display driver to use drm_bridge_connector

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 05:40:03PM +0200, Philipp Zabel wrote: > Hi Dmitry, > > On Mi, 2024-04-17 at 00:58 +0300, Dmitry Baryshkov wrote: > > On Sun, Mar 31, 2024 at 11:28:57PM +0300, Dmitry Baryshkov wrote: > > > The IPUv3 DRM i.MX driver contains several codepaths for different > > > usescases:

Re: [PATCH v5 3/6] drm/msm/dpu: enable compression bit in cfg2 for DSC

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 10:21:49PM +0800, Jun Nie wrote: > Enable compression bit in cfg2 register for DSC in the DSI case > > Signed-off-by: Jun Nie > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Dmitry Baryshkov -- With best

Re: [PATCH v5 2/6] drm/msm/dpu: adjust data width for widen bus case

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 10:21:48PM +0800, Jun Nie wrote: > data is valid for only half the active window if widebus > is enabled > > Signed-off-by: Jun Nie > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/msm/d

Re: [PATCH v5 1/6] drm/msm/dpu: fix video mode DSC for DSI

2024-05-27 Thread Dmitry Baryshkov
On Mon, May 27, 2024 at 10:21:47PM +0800, Jun Nie wrote: > From: Jonathan Marek > > Add width change in DPU timing for DSC compression case to work with > DSI video mode. > > Signed-off-by: Jonathan Marek > Signed-off-by: Jun Nie > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c |

[PATCH v2] drm/bridge: simple-bridge: Add support for TI TDP158

2024-05-27 Thread Marc Gonzalez
From: Arnaud Vrac The TI TDP158 is an AC-Coupled HDMI signal to TMDS Redriver supporting DVI 1.0 and HDMI 1.4b and 2.0b output signals. Since it's an I2C-programmable bridge, it could have a proper driver, but the default settings work fine, thus simple bridge is sufficient. Signed-off-by: Arna

[PATCH v1] drm/bridge: simple-bridge: Add support for TI TDP158

2024-05-27 Thread Marc Gonzalez
From: Arnaud Vrac The TI TDP158 is an AC-Coupled HDMI signal to TMDS Redriver supporting DVI 1.0 and HDMI 1.4b and 2.0b output signals. Since it's an I2C-programmable bridge, it could have a proper driver, but the default settings work fine, thus simple bridge is sufficient. Signed-off-by: Arna

[drm-misc:drm-misc-next 7/10] drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:122:25: sparse: sparse: incorrect type in argument 1 (different address spaces)

2024-05-27 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next head: 40f98db5c06081ce583a24fb8950367f1058d2a3 commit: dc6fcaaba5a5411237d042a26c4d46689f3346bb [7/10] drm/omap: Allow build with COMPILE_TEST=y config: mips-randconfig-r133-20240528 (https://download.01.org/0day-ci/archive/202405

[PATCH v3 2/2] drm/rockchip: vop: enable VOP_FEATURE_INTERNAL_RGB on RK3066

2024-05-27 Thread Val Packett
The RK3066 does have RGB display output, so it should be marked as such. Fixes: f4a6de8 ("drm: rockchip: vop: add rk3066 vop definitions") Cc: sta...@vger.kernel.org Signed-off-by: Val Packett --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dri

[PATCH v3 1/2] drm/rockchip: vop: clear DMA stop bit upon vblank on RK3066

2024-05-27 Thread Val Packett
The RK3066 VOP sets a dma_stop bit when it's done scanning out a frame and needs the driver to acknowledge that by clearing the bit. So unless we clear it "between" frames, the RGB output only shows noise instead of the picture. vblank seems to be the most appropriate place to do it, since it indi

Re: [PATCH v2 1/2] drm/rockchip: vop: clear DMA stop bit upon vblank on RK3066

2024-05-27 Thread Heiko Stübner
Hey, Am Dienstag, 28. Mai 2024, 00:13:59 CEST schrieb Val Packett: > On Mon, May 27 2024 at 22:43:18 +02:00:00, Heiko Stübner > wrote: > > Am Montag, 27. Mai 2024, 09:16:33 CEST schrieb Val Packett: > >> On the RK3066, there is a bit that must be cleared, otherwise > >> the picture does not sh

Re: [PATCH 2/2] drm: panel: nv3052c: Add WL-355608-A8 panel

2024-05-27 Thread John Watts
Hi, On Fri, May 24, 2024 at 10:33:14PM +1200, Ryan Walklin wrote: > The WL-355608-A8 is a 3.5" 640x480@60Hz RGB LCD display from an unknown > OEM, used in a number of handheld gaming devices made by Anbernic. > > Limited information is available online however the panel timing values > (below) ha

Re: [PATCH 2/2] drm: panel: nv3052c: Add WL-355608-A8 panel

2024-05-27 Thread Ryan Walklin
On Tue, 28 May 2024, at 10:16 AM, John Watts wrote: > This all looks good to me, though I understand you may need to change the > compatible. Please CC me if this happens so I can re-review. I think the consensus is to accept an absent vendor-prefix rather than use the device manufacturer, so I

Re: [PATCH v2 1/2] drm/rockchip: vop: clear DMA stop bit upon vblank on RK3066

2024-05-27 Thread Val Packett
On Mon, May 27 2024 at 22:43:18 +02:00:00, Heiko Stübner wrote: Hi Val, Am Montag, 27. Mai 2024, 09:16:33 CEST schrieb Val Packett: On the RK3066, there is a bit that must be cleared, otherwise the picture does not show up on the display (at least for RGB). Fixes: f4a6de8 ("drm: rockch

Re: [PATCH v2 1/2] drm/rockchip: vop: clear DMA stop bit upon vblank on RK3066

2024-05-27 Thread Heiko Stübner
Hi Val, Am Montag, 27. Mai 2024, 09:16:33 CEST schrieb Val Packett: > On the RK3066, there is a bit that must be cleared, otherwise > the picture does not show up on the display (at least for RGB). > > Fixes: f4a6de8 ("drm: rockchip: vop: add rk3066 vop definitions") > Cc: sta...@vger.kernel.org

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-27 Thread Andy Shevchenko
On Mon, May 27, 2024 at 11:37:20PM +0300, Andy Shevchenko wrote: > On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: ... > > +MODULE_LICENSE("GPL"); > > modpost validator won't be happy about this, i.e. missing > MODULE_DESCRIPTION(). And obviously + module.h in the inclusion bl

Re: [PATCH v9 07/10] lib: add basic KUnit test for lib/math

2024-05-27 Thread Andy Shevchenko
On Sun, May 26, 2024 at 11:39:33PM +0530, Devarsh Thakkar wrote: > From: Daniel Latypov > > Add basic test coverage for files that don't require any config options: > * part of math.h (what seem to be the most commonly used macros) > * gcd.c > * lcm.c > * int_sqrt.c > * reciprocal_div.c > (Ignore

Re: [PATCH v9 06/10] math.h: Add macros for rounding to closest value

2024-05-27 Thread Andy Shevchenko
On Sun, May 26, 2024 at 11:38:56PM +0530, Devarsh Thakkar wrote: > Add below rounding related macros: > > round_closest_up(x, y) : Rounds x to closest multiple of y where y is a > power of 2, with a preference to round up in case two nearest values are > possible. > > round_closest_down(x, y) : R

[PATCH 6.8 399/493] fbdev: sh7760fb: allow modular build

2024-05-27 Thread Greg Kroah-Hartman
6.8-stable review patch. If anyone has any objections, please let me know. -- From: Randy Dunlap [ Upstream commit 51084f89d687e14d96278241e5200cde4b0985c7 ] There is no reason to prohibit sh7760fb from being built as a loadable module as suggested by Geert, so change the conf

Re: [RFC PATCH 3/8] rust: drm: Add Device and Driver abstractions

2024-05-27 Thread Danilo Krummrich
On Tue, May 21, 2024 at 04:23:33PM -0500, Rob Herring wrote: > On Mon, May 20, 2024 at 07:20:50PM +0200, Danilo Krummrich wrote: > > From: Asahi Lina > > > > Add abstractions for DRM drivers and devices. These go together in one > > commit since both are fairly tightly coupled types. > > > > A f

Re: [RFC PATCH 7/8] rust: add firmware abstractions

2024-05-27 Thread Danilo Krummrich
On Wed, May 22, 2024 at 08:53:34AM +0900, FUJITA Tomonori wrote: > Hi, > Thanks for working on the firmware API! > > On Mon, 20 May 2024 19:24:19 +0200 > Danilo Krummrich wrote: > > > Add an abstraction around the kernels firmware API to request firmware > > images. The abstraction provides func

Re: [RFC PATCH 7/8] rust: add firmware abstractions

2024-05-27 Thread Danilo Krummrich
On Tue, May 21, 2024 at 08:32:31AM +0300, Zhi Wang wrote: > On Mon, 20 May 2024 19:24:19 +0200 > Danilo Krummrich wrote: > > > Add an abstraction around the kernels firmware API to request firmware > > images. The abstraction provides functions to access the firmware > > buffer and / or copy it t

[PATCH 6.9 325/427] fbdev: sh7760fb: allow modular build

2024-05-27 Thread Greg Kroah-Hartman
6.9-stable review patch. If anyone has any objections, please let me know. -- From: Randy Dunlap [ Upstream commit 51084f89d687e14d96278241e5200cde4b0985c7 ] There is no reason to prohibit sh7760fb from being built as a loadable module as suggested by Geert, so change the conf

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

2024-05-27 Thread Dmitry Baryshkov
On Mon, 27 May 2024 at 16:30, Maxime Ripard wrote: > > Hi, > > On Mon, May 27, 2024 at 12:43:18PM GMT, Dmitry Baryshkov wrote: > > On Mon, May 27, 2024 at 11:02:13AM +0200, Maxime Ripard wrote: > > > Hi, > > > > > > Thanks again for that thorough review :) > > > > > > On Thu, May 23, 2024 at 01:22

Re: [PATCH RESEND,v6 2/8] dt-bindings: mailbox: Add property for CMDQ secure driver

2024-05-27 Thread Conor Dooley
On Sun, May 26, 2024 at 10:44:37PM +0800, Jason-JH.Lin wrote: > 1. Add mboxes property to define a GCE loopping thread as a secure IRQ > handler. > The CMDQ secure driver requests a mbox channel and sends a looping > command to the GCE thread. The looping command will wait for a secure > packet don

Re: [PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-05-27 Thread Borislav Petkov
On Thu, May 23, 2024 at 12:14:39PM -0700, Alexey Makhalov wrote: > +#define VMWARE_HYPERCALL \ > + ALTERNATIVE_3("", \ > + "jmp .Lport_call%=", X86_FEATURE_HYPERVISOR, \ > +

Re: [PATCH 5/8] accel/habanalabs: remove timestamp registration debug prints

2024-05-27 Thread Tomer Tayar
On 27/05/2024 18:02, Ofir Bitton wrote: > There are several timestamp registration debug prints which > spams the kernel log whenever dyn debug is enabled. > Remove those prints. > > Signed-off-by: Ofir Bitton Reviewed-by: Tomer Tayar > --- > .../accel/habanalabs/common/command_submission.c

Re: [PATCH] drm/client: Detect when ACPI lid is closed during initialization

2024-05-27 Thread Chris Bainbridge
On Mon, 27 May 2024 at 15:23, Mario Limonciello wrote: > > If the lid on a laptop is closed when eDP connectors are populated > then it remains enabled when the initial framebuffer configuration > is built. > > When creating the initial framebuffer configuration detect the ACPI > lid status and if

[PATCH AUTOSEL 5.10 3/7] drm/lima: add mask irq callback to gp and pp

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes

[PATCH AUTOSEL 5.10 4/7] drm/lima: mask irqs in timeout path before hard reset

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit a421cc7a6a001b70415aa4f66024fa6178885a14 ] There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into

[PATCH AUTOSEL 5.10 1/7] drm/amd/display: Exit idle optimizations before HDCP execution

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit f30a3bea92bdab398531129d187629fb1d28f598 ] [WHY] PSP can access DCN registers during command submission and we need to ensure that DCN is not in PG before doing so. [HOW] Add a callback to DM to lock and notify DC for idle optimization exit. It can't

[PATCH AUTOSEL 5.15 3/6] drm/lima: mask irqs in timeout path before hard reset

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit a421cc7a6a001b70415aa4f66024fa6178885a14 ] There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into

[PATCH AUTOSEL 5.15 1/6] drm/amd/display: Exit idle optimizations before HDCP execution

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit f30a3bea92bdab398531129d187629fb1d28f598 ] [WHY] PSP can access DCN registers during command submission and we need to ensure that DCN is not in PG before doing so. [HOW] Add a callback to DM to lock and notify DC for idle optimization exit. It can't

[PATCH AUTOSEL 5.15 2/6] drm/lima: add mask irq callback to gp and pp

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes

[PATCH AUTOSEL 6.1 05/11] drm/lima: mask irqs in timeout path before hard reset

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit a421cc7a6a001b70415aa4f66024fa6178885a14 ] There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into

[PATCH AUTOSEL 6.1 04/11] drm/lima: add mask irq callback to gp and pp

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes

[PATCH AUTOSEL 6.1 01/11] drm/amd/display: Exit idle optimizations before HDCP execution

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit f30a3bea92bdab398531129d187629fb1d28f598 ] [WHY] PSP can access DCN registers during command submission and we need to ensure that DCN is not in PG before doing so. [HOW] Add a callback to DM to lock and notify DC for idle optimization exit. It can't

[PATCH AUTOSEL 6.6 07/16] drm/lima: mask irqs in timeout path before hard reset

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit a421cc7a6a001b70415aa4f66024fa6178885a14 ] There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into

[PATCH AUTOSEL 6.6 06/16] drm/lima: add mask irq callback to gp and pp

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes

[PATCH AUTOSEL 6.6 01/16] drm/amd/display: Exit idle optimizations before HDCP execution

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit f30a3bea92bdab398531129d187629fb1d28f598 ] [WHY] PSP can access DCN registers during command submission and we need to ensure that DCN is not in PG before doing so. [HOW] Add a callback to DM to lock and notify DC for idle optimization exit. It can't

[PATCH AUTOSEL 6.8 09/20] drm/lima: add mask irq callback to gp and pp

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes

[PATCH AUTOSEL 6.8 10/20] drm/lima: mask irqs in timeout path before hard reset

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit a421cc7a6a001b70415aa4f66024fa6178885a14 ] There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into

[PATCH AUTOSEL 6.8 06/20] drm/amd/display: add root clock control function pointer to fix display corruption

2024-05-27 Thread Sasha Levin
From: "Xi (Alex) Liu" [ Upstream commit de2d1105a3757742b45b0d8270b3c8734cd6b6f8 ] [Why and how] External display has corruption because no root clock control function. Add the function pointer to fix the issue. Reviewed-by: Daniel Miess Reviewed-by: Nicholas Kazlauskas Acked-by: Roman Li

[PATCH AUTOSEL 6.8 02/20] drm/amd/display: Workaround register access in idle race with cursor

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit b5b6d6251579a29dafdad25f4bc7f3ff7bfd2c86 ] [Why] Cursor update can be pre-empted by a request for setting target flip submission. This causes an issue where we're in the middle of the exit sequence trying to log to DM, but the pre-emption starts anoth

[PATCH AUTOSEL 6.8 01/20] drm/amd/display: Exit idle optimizations before HDCP execution

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit f30a3bea92bdab398531129d187629fb1d28f598 ] [WHY] PSP can access DCN registers during command submission and we need to ensure that DCN is not in PG before doing so. [HOW] Add a callback to DM to lock and notify DC for idle optimization exit. It can't

[PATCH AUTOSEL 6.9 12/23] drm/lima: mask irqs in timeout path before hard reset

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit a421cc7a6a001b70415aa4f66024fa6178885a14 ] There is a race condition in which a rendering job might take just long enough to trigger the drm sched job timeout handler but also still complete before the hard reset is done by the timeout handler. This runs into

[PATCH AUTOSEL 6.9 11/23] drm/lima: include pp bcast irq in timeout handler check

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit d8100caf40a35904d27ce446fb2088b54277997a ] In commit 53cb55b20208 ("drm/lima: handle spurious timeouts due to high irq latency") a check was added to detect an unexpectedly high interrupt latency timeout. With further investigation it was noted that on Mali-45

[PATCH AUTOSEL 6.9 10/23] drm/lima: add mask irq callback to gp and pp

2024-05-27 Thread Sasha Levin
From: Erico Nunes [ Upstream commit 49c13b4d2dd4a831225746e758893673f6ae961c ] This is needed because we want to reset those devices in device-agnostic code such as lima_sched. In particular, masking irqs will be useful before a hard reset to prevent race conditions. Signed-off-by: Erico Nunes

[PATCH AUTOSEL 6.9 07/23] drm/amd/display: add root clock control function pointer to fix display corruption

2024-05-27 Thread Sasha Levin
From: "Xi (Alex) Liu" [ Upstream commit de2d1105a3757742b45b0d8270b3c8734cd6b6f8 ] [Why and how] External display has corruption because no root clock control function. Add the function pointer to fix the issue. Reviewed-by: Daniel Miess Reviewed-by: Nicholas Kazlauskas Acked-by: Roman Li

[PATCH AUTOSEL 6.9 02/23] drm/amd/display: Workaround register access in idle race with cursor

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit b5b6d6251579a29dafdad25f4bc7f3ff7bfd2c86 ] [Why] Cursor update can be pre-empted by a request for setting target flip submission. This causes an issue where we're in the middle of the exit sequence trying to log to DM, but the pre-emption starts anoth

[PATCH AUTOSEL 6.9 01/23] drm/amd/display: Exit idle optimizations before HDCP execution

2024-05-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit f30a3bea92bdab398531129d187629fb1d28f598 ] [WHY] PSP can access DCN registers during command submission and we need to ensure that DCN is not in PG before doing so. [HOW] Add a callback to DM to lock and notify DC for idle optimization exit. It can't

[Bug 218900] amdgpu: Fatal error during GPU init

2024-05-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218900 --- Comment #3 from Jean-Christophe Guillain (jean-christo...@guillain.net) --- Bisecting: 5720 revisions left to test after this (roughly 13 steps) I'll try, but it will take some time. My machine is not very powerful... -- You may reply to th

Re: [PATCH v2 00/12] drm/imx/ipuv3: switch LDB and parallel-display driver to use drm_bridge_connector

2024-05-27 Thread Philipp Zabel
Hi Dmitry, On Mi, 2024-04-17 at 00:58 +0300, Dmitry Baryshkov wrote: > On Sun, Mar 31, 2024 at 11:28:57PM +0300, Dmitry Baryshkov wrote: > > The IPUv3 DRM i.MX driver contains several codepaths for different > > usescases: both LDB and paralllel-display drivers handle next-bridge, > > panel and th

Re: [PATCH 4/4] drm/sti: vtg: drop driver owner assignment

2024-05-27 Thread Alain Volmat
Hi Krzysztof, thanks for your patch, sorry for the delay. On Sat, Mar 30, 2024 at 09:38:31PM +0100, Krzysztof Kozlowski wrote: > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling plat

Re: [PATCH 07/21] drm/sti: Allow build with COMPILE_TEST=y

2024-05-27 Thread Alain Volmat
Hi Ville, thank you for your patch. On Mon, Apr 08, 2024 at 08:04:12PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Allow sti to be built with COMPILE_TEST=y for greater > coverage. Builds fine on x86/x86_64 at least. > > Cc: Alain Volmat > Signed-off-by: Ville Syrjälä > --- > driv

Re: [PATCH 06/21] drm/sti: Include linux/io.h for devm_ioremap()

2024-05-27 Thread Alain Volmat
Hi Ville, thank you for your patch. On Mon, Apr 08, 2024 at 08:04:11PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Include linux/io.h for devm_ioremap(). > > When built on x86_64 w/ COMPILE_TEST=y: > ../drivers/gpu/drm/sti/sti_dvo.c:531:21: error: implicit declaration of > function

Re: [v15,06/29] drm/tests: Add output bpc tests

2024-05-27 Thread Sui Jingfeng
Hi, On 5/27/24 21:57, 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 Reviewed-by: Dmitry Baryshkov Signed-off-by: Maxime Ripard Tested-by: Sui Jingfeng

[Bug 218900] amdgpu: Fatal error during GPU init

2024-05-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218900 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC||alexdeuc...@gmail.c

Re: [PATCH 3/4] drm/sti: tvout: drop driver owner assignment

2024-05-27 Thread Alain Volmat
Hi Krzysztof, thanks for your patch, sorry for the delay. On Sat, Mar 30, 2024 at 09:38:30PM +0100, Krzysztof Kozlowski wrote: > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling plat

Re: [PATCH 4/9] accel/habanalabs/gaudi2: align embedded specs headers

2024-05-27 Thread Tomer Tayar
On 27/05/2024 14:47, Ofir Bitton wrote: > Align embedded headers to latest release. > > Signed-off-by: Ofir Bitton Reviewed-by: Tomer Tayar > --- > .../habanalabs/include/gaudi2/gaudi2_fw_if.h | 27 + > .../include/gaudi2/gaudi2_reg_map.h | 8 + > include/lin

Re: [PATCH 2/4] drm/sti: hda: drop driver owner assignment

2024-05-27 Thread Alain Volmat
Hi Krzysztof, thanks for your patch, sorry for the delay. On Sat, Mar 30, 2024 at 09:38:29PM +0100, Krzysztof Kozlowski wrote: > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling plat

Re: [v15,06/29] drm/tests: Add output bpc tests

2024-05-27 Thread Sui Jingfeng
On 5/27/24 21:57, 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 Reviewed-by: Dmitry Baryshkov Signed-off-by: Maxime Ripard --- drivers/gpu/drm/Kconfig

Re: [PATCH 1/4] drm/sti: dvo: drop driver owner assignment

2024-05-27 Thread Alain Volmat
Hi Krzysztof, sorry for the delay. On Sat, Mar 30, 2024 at 09:38:28PM +0100, Krzysztof Kozlowski wrote: > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling platform_driver_register().

[Bug 218900] amdgpu: Fatal error during GPU init

2024-05-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218900 Jean-Christophe Guillain (jean-christo...@guillain.net) changed: What|Removed |Added Bisected commit-id||

[Bug 218900] amdgpu: Fatal error during GPU init

2024-05-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218900 --- Comment #1 from Jean-Christophe Guillain (jean-christo...@guillain.net) --- Created attachment 306354 --> https://bugzilla.kernel.org/attachment.cgi?id=306354&action=edit Full logs of the boot. I added the full log of the boot process showi

[PATCH 6/8] accel/habanalabs/gaudi2: unsecure edma max outstanding register

2024-05-27 Thread Ofir Bitton
From: Rakesh Ughreja Netowrk EDMAs uses more outstanding transfers so this needs to be programmed by EDMA firmware. Signed-off-by: Rakesh Ughreja Reviewed-by: Ofir Bitton --- drivers/accel/habanalabs/gaudi2/gaudi2_security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/accel/ha

[PATCH 8/8] accel/habanalabs: disable EQ interrupt after disabling pci

2024-05-27 Thread Ofir Bitton
From: Tal Cohen When sending disable pci msg towards firmware, there is a possibility that an EQ packet is already pending, disabling EQ interrupt will prevent this from happening. The interrupt will be re-enabled after reset. Signed-off-by: Tal Cohen Reviewed-by: Ofir Bitton --- drivers/acce

[PATCH 2/8] accel/habanalabs: use device-name directory in debugfs-driver-habanalabs

2024-05-27 Thread Ofir Bitton
From: Tomer Tayar The device debugfs directory was modified to be named as the parent device name. Update the description of 'mmu' and 'mmu_error' to use the new path. Signed-off-by: Tomer Tayar Reviewed-by: Ofir Bitton --- Documentation/ABI/testing/debugfs-driver-habanalabs | 6 +++--- 1 fil

[PATCH 1/8] accel/habanalabs/gaudi2: add GAUDI2D revision support

2024-05-27 Thread Ofir Bitton
From: Farah Kassabri Gaudi2 with PCI revision ID with the value of '4' represents Gaudi2D device and should be detected and initialized as Gaudi2. Signed-off-by: Farah Kassabri Reviewed-by: Ofir Bitton --- drivers/accel/habanalabs/common/device.c | 4 drivers/accel/habana

[PATCH 4/8] accel/habanalabs: add cpld ts cpld_timestamp cpucp

2024-05-27 Thread Ofir Bitton
From: Vitaly Margolin Add cpld_timestamp field to cpucp_info structure and return cpld timestamp as part of cpld version Signed-off-by: Vitaly Margolin Reviewed-by: Ofir Bitton --- drivers/accel/habanalabs/common/sysfs.c | 5 +++-- include/linux/habanalabs/cpucp_if.h | 3 ++- 2 files chan

[PATCH 3/8] accel/habanalabs: add a common handler for clock change events

2024-05-27 Thread Ofir Bitton
From: Tomer Tayar As the new dynamic EQ includes clock change events which are common and not ASIC-specific, add a common handler for these events. Signed-off-by: Tomer Tayar Reviewed-by: Ofir Bitton --- drivers/accel/habanalabs/common/device.c | 46 drivers/accel/hab

[PATCH 5/8] accel/habanalabs: remove timestamp registration debug prints

2024-05-27 Thread Ofir Bitton
There are several timestamp registration debug prints which spams the kernel log whenever dyn debug is enabled. Remove those prints. Signed-off-by: Ofir Bitton --- .../accel/habanalabs/common/command_submission.c| 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/accel/

[PATCH 7/8] accel/habanalabs: change the heartbeat scheduling point

2024-05-27 Thread Ofir Bitton
From: Farah Kassabri Currently we schedule the heartbeat thread at late init, only then we set the INTS_REGISTER packet which enables events to be received from firmware. Init may take some time and we want to give firmware 2 full cycles of heartbeat thread after it received INTS_REGISTER. The

Re: [PATCH v2] dma-buf: handle testing kthreads creation failure

2024-05-27 Thread Christian König
Am 22.05.24 um 20:33 schrieb T.J. Mercier: On Wed, May 22, 2024 at 11:14 AM Fedor Pchelkin wrote: kthread creation may possibly fail inside race_signal_callback(). In such a case stop the already started threads, put the already taken references to them and return with error code. Found by Lin

Re: [PATCH v2] drm/i915: Increase FLR timeout from 3s to 9s

2024-05-27 Thread Andi Shyti
On Mon, May 27, 2024 at 11:47:49AM +0100, Andi Shyti wrote: > On Fri, May 24, 2024 at 10:07:44AM -0400, Rodrigo Vivi wrote: > > On Fri, May 24, 2024 at 01:58:53AM +0200, Andi Shyti wrote: > > > Following the guidelines it takes 3 seconds to perform an FLR > > > reset. Let's give it a bit more slack

[Bug 218900] New: amdgpu: Fatal error during GPU init

2024-05-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218900 Bug ID: 218900 Summary: amdgpu: Fatal error during GPU init Product: Drivers Version: 2.5 Hardware: AMD OS: Linux Status: NEW Severity: blocking

Re: [PATCH 5/6] drm/sti: hdmi: drop driver owner assignment

2024-05-27 Thread Alain Volmat
Hi Krzysztof, thanks for your patch, sorry for the delay. On Sat, Mar 30, 2024 at 09:57:21PM +0100, Krzysztof Kozlowski wrote: > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling plat

Re: [PATCH 6/6] drm/sti: hqvdp: drop driver owner assignment

2024-05-27 Thread Alain Volmat
Hi Krzysztof, thanks for your patch, sorry for the delay. On Sat, Mar 30, 2024 at 09:57:22PM +0100, Krzysztof Kozlowski wrote: > Core in platform_driver_register() already sets the .owner, so driver > does not need to. Whatever is set here will be anyway overwritten by > main driver calling plat

Re: [PATCH] drm/client: Detect when ACPI lid is closed during initialization

2024-05-27 Thread Alex Deucher
On Mon, May 27, 2024 at 10:32 AM Mario Limonciello wrote: > > If the lid on a laptop is closed when eDP connectors are populated > then it remains enabled when the initial framebuffer configuration > is built. > > When creating the initial framebuffer configuration detect the ACPI > lid status and

[PATCH v5 6/6] drm/msm/dsi: add a comment to explain pkt_per_line encoding

2024-05-27 Thread Jun Nie
From: Jonathan Marek Make it clear why the pkt_per_line value is being "divided by 2". Signed-off-by: Jonathan Marek Reviewed-by: Dmitry Baryshkov Signed-off-by: Jun Nie --- drivers/gpu/drm/msm/dsi/dsi_host.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi

  1   2   3   >