[git pull] drm fixes for 6.8-rc1 (part two)

2024-01-18 Thread Dave Airlie
Hi Linus, Hope your power/internet stabilizes, this is the last set of fixes before rc1 for drm. This is mostly amdgpu and xe fixes, with an amdkfd and nouveau fix thrown in. The amdgpu ones are just the usual couple of weeks of fixes. The xe ones are bunch of cleanups for the new xe driver, the

Re: [PATCH v3] drm: Check output polling initialized before disabling

2024-01-18 Thread kernel test robot
Hello, kernel test robot noticed "WARNING:at_drivers/gpu/drm/drm_probe_helper.c:#drm_kms_helper_poll_enable[drm_kms_helper]" on: commit: 98a690eb11a5f722cfff1dd5c3ac46f9ba326919 ("[PATCH v3] drm: Check output polling initialized before disabling") url: https://github.com/intel-lab-lkp/linu

Re: [PATCH] drm: bridge: samsung-dsim: Don't use FORCE_STOP_STATE

2024-01-18 Thread Inki Dae
Really sorry for late. Will pick it up. Thanks, Inki Dae 2024년 1월 9일 (화) 오후 9:50, Daniel Vetter 님이 작성: > On Tue, Jan 09, 2024 at 09:47:20AM +0100, Michael Walle wrote: > > Hi, > > > > > > Inki, are you picking this up? Or if not, who will? > > > > > > I can pick it up but it would be better to g

[PATCH v3 3/3] dt-bindings: soc: mediatek: Change mediatek, gce-events to refernece

2024-01-18 Thread Jason-JH . Lin
Change mediatek,gce-events property to reference mediatek,gce-props.yaml instead of defining itself. Signed-off-by: Jason-JH.Lin --- .../bindings/soc/mediatek/mediatek,ccorr.yaml| 12 .../bindings/soc/mediatek/mediatek,mutex.yaml| 11 +++ .../bindings/soc/med

[PATCH v3 1/3] dt-bindings: mailbox: Add mediatek,gce-props.yaml

2024-01-18 Thread Jason-JH . Lin
Add mediatek,gce-props.yaml for common GCE properties that is used for both mailbox providers and consumers. We place the common property "mediatek,gce-events" in this binding currently. The property "mediatek,gce-events" is used for GCE event ID corresponding to a hardware event signal sent by th

[PATCH v3 2/3] dt-bindings: media: mediatek: mdp: Change mediatek, gce-events to reference

2024-01-18 Thread Jason-JH . Lin
Change mediatek,gce-events property to reference mediatek,gce-props.yaml instead of defining itself. Signed-off-by: Jason-JH.Lin --- .../bindings/media/mediatek,mdp3-rdma.yaml | 11 +++ .../devicetree/bindings/media/mediatek,mdp3-rsz.yaml | 12 .../bindings/media/m

[PATCH v3 0/3] Add mediatek, gce-props.yaml for other bindings reference

2024-01-18 Thread Jason-JH . Lin
From: Jason-jh Lin The property "mediatek,gce-events" is used for GCE event ID corresponding to a hardware event signal sent by the hardware or a sofware driver. If the mailbox providers or consumers want to manipulate the value of the event ID, they need to know the specific event ID. Since med

[PATCH v2 2/4] drm: xlnx: zynqmp_dpsub: Fix timing for live mode

2024-01-18 Thread Anatoliy Klymenko
Expect external video timing in live video input mode, program DPSUB acordingly. Reviewed-by: Tomi Valkeinen Signed-off-by: Anatoliy Klymenko --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers

[PATCH v2 4/4] drm: xlnx: zynqmp_dpsub: Set live video in format

2024-01-18 Thread Anatoliy Klymenko
ZynqMP DPSUB supports 2 modes of operations in regard to video data input. In the first mode, DPSUB uses DMA engine to pull video data from memory buffers. To support this the driver implements CRTC and DRM bridge representing DP encoder. In the second mode, DPSUB acquires video data pushed from

[PATCH v2 3/4] drm: xlnx: zynqmp_dpsub: Filter interrupts against mask

2024-01-18 Thread Anatoliy Klymenko
Filter out status register against the interrupts' mask. Some events are being reported via DP status register, even if corresponding interrupts have been disabled. One instance of such event leads to generation of VBLANK when the driver is in DRM bridge mode, which in turn results in NULL pointer

[PATCH v2 1/4] drm: xlnx: zynqmp_dpsub: Make drm bridge discoverable

2024-01-18 Thread Anatoliy Klymenko
ZynqMP DPSUB supports 2 input modes: DMA based and live video. In the first mode, the driver implements CRTC and DP encoder DRM bridge to model the complete display pipeline. In this case, DRM bridge is being directly instantiated within the driver, not using any bridge discovery mechanisms. In t

[PATCH v2 0/4] Fixing live video input in ZynqMP DPSUB

2024-01-18 Thread Anatoliy Klymenko
Add few missing pieces to support ZynqMP DPSUB live video in mode. ZynqMP DPSUB supports 2 modes of operations in regard to video data input. In the first mode, DPSUB uses DMA engine to pull video data from memory buffers. To support this the driver implements CRTC and DRM bridge representing

Re: [PATCH 4/4] drm: xlnx: zynqmp_dpsub: Set live video in format

2024-01-18 Thread Klymenko, Anatoliy
Hi Tommy, Thank you for the comments. > Date: Wed, 17 Jan 2024 17:32:57 +0200 > From: Tomi Valkeinen > To: Anatoliy Klymenko , > laurent.pinch...@ideasonboard.com, maarten.lankho...@linux.intel.com, > mrip...@kernel.org, tzimmerm...@suse.de, airl...@gmail.com, > dan...@ff

Re: [PATCH 3/4] drm: xlnx: zynqmp_dpsub: Don't generate vblank in live mode

2024-01-18 Thread Klymenko, Anatoliy
Hi Tomi, Thank you for the review. > Date: Wed, 17 Jan 2024 16:20:10 +0200 > From: Tomi Valkeinen > To: Anatoliy Klymenko , > laurent.pinch...@ideasonboard.com, maarten.lankho...@linux.intel.com, > mrip...@kernel.org, tzimmerm...@suse.de, airl...@gmail.com, > dan...@ffwll

Re: [PATCH 1/4] drm: xlnx: zynqmp_dpsub: Make drm bridge

2024-01-18 Thread Klymenko, Anatoliy
Hi Tomi, Thanks for your response. > Date: Wed, 17 Jan 2024 16:06:31 +0200 > From: Tomi Valkeinen > To: Anatoliy Klymenko , > laurent.pinch...@ideasonboard.com, maarten.lankho...@linux.intel.com, > mrip...@kernel.org, tzimmerm...@suse.de, airl...@gmail.com, > dan...@ffwl

Re: [PATCH 1/4] drm: xlnx: zynqmp_dpsub: Make drm bridge discoverable

2024-01-18 Thread Klymenko, Anatoliy
Hi Laurent, Thank you for the reply. > Date: Wed, 17 Jan 2024 16:24:20 +0200 > From: Laurent Pinchart > To: Tomi Valkeinen > Cc: Anatoliy Klymenko , > maarten.lankho...@linux.intel.com, mrip...@kernel.org, > tzimmerm...@suse.de, airl...@gmail.com, dan...@ffwll.ch, > mich

Re: [PATCH 0/4] Fixing live video input in ZynqMP DPSUB

2024-01-18 Thread Klymenko, Anatoliy
Hi Laurent and Maxime, Laurent, thank you very much for clear and comprehensive description of the "live video input" feature. Maxime, sure, I will elaborate more in the next version of cover letter. > Date: Wed, 17 Jan 2024 16:23:43 +0200 > From: Laurent Pinchart > To: Maxime Ripard > Cc: An

Re: [PATCH v3 3/3] dt-bindings: mfd: atmel,hlcdc: Convert to DT schema format

2024-01-18 Thread Dharma.B
On 18/01/24 9:10 pm, Conor Dooley wrote: > On Thu, Jan 18, 2024 at 02:56:12PM +0530, Dharma Balasubiramani wrote: >> Convert the atmel,hlcdc binding to DT schema format. >> >> Adjust the clock-names property to clarify that the LCD controller expects >> one of these clocks (either sys_clk or lvds_p

[Bug 198551] amdgpu error on shutdown or gpu intense game

2024-01-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=198551 CassiRunnells (troy28...@outlook.com) changed: What|Removed |Added CC||troy28...@outlook.

Re: [PATCH v3 1/3] dt-bindings: display: convert Atmel's HLCDC to DT schema

2024-01-18 Thread Dharma.B
On 18/01/24 9:01 pm, Conor Dooley wrote: > On Thu, Jan 18, 2024 at 02:56:10PM +0530, Dharma Balasubiramani wrote: >> Convert the existing DT binding to DT schema of the Atmel's HLCDC display >> controller. >> >> Signed-off-by: Dharma Balasubiramani >> --- >> changelog >> v2 -> v3 >> - Remove '|' in

Re: [PATCH] [v2] drm/lima: fix a memleak in lima_heap_alloc

2024-01-18 Thread Qiang Yu
applied to drm-misc-next On Wed, Jan 17, 2024 at 8:14 PM Qiang Yu wrote: > > Reviewed-by: Qiang Yu > > On Wed, Jan 17, 2024 at 3:14 PM Zhipeng Lu wrote: > > > > When lima_vm_map_bo fails, the resources need to be deallocated, or > > there will be memleaks. > > > > Fixes: 6aebc51d7aef ("drm/lima

Re: Re: Re: [Intel-xe] [PATCH 2/3] linux/bits.h: Add fixed-width GENMASK and BIT macros

2024-01-18 Thread Yury Norov
On Thu, Jan 18, 2024 at 05:25:00PM -0600, Lucas De Marchi wrote: > SA2PR11MB4874 > X-OriginatorOrg: intel.com > Status: RO > Content-Length: 6257 > Lines: 150 > > On Thu, Jan 18, 2024 at 01:48:43PM -0800, Yury Norov wrote: > > On Thu, Jan 18, 2024 at 02:42:12PM -0600, Lucas De Marchi wrote: > > >

Re: [PATCH v1 1/6] drm/lima: fix devfreq refcount imbalance for job timeouts

2024-01-18 Thread Qiang Yu
On Thu, Jan 18, 2024 at 7:14 PM Erico Nunes wrote: > > On Thu, Jan 18, 2024 at 2:36 AM Qiang Yu wrote: > > > > So this is caused by same job trigger both done and timeout handling? > > I think a better way to solve this is to make sure only one handler > > (done or timeout) process the job instea

Re: [PATCH v1 4/6] drm/lima: handle spurious timeouts due to high irq latency

2024-01-18 Thread Qiang Yu
On Wed, Jan 17, 2024 at 11:12 AM Erico Nunes wrote: > > There are several unexplained and unreproduced cases of rendering > timeouts with lima, for which one theory is high IRQ latency coming from > somewhere else in the system. > This kind of occurrence may cause applications to trigger unnecessa

Re: [PATCH] drm/i915/mtl: Wake GT before sending H2G message

2024-01-18 Thread Matt Roper
On Thu, Jan 18, 2024 at 05:21:23PM -0800, Belgaumkar, Vinay wrote: > > On 1/18/2024 3:50 PM, Matt Roper wrote: > > On Thu, Jan 18, 2024 at 03:17:28PM -0800, Vinay Belgaumkar wrote: > > > Instead of waiting until the interrupt reaches GuC, we can grab a > > > forcewake while triggering the H2G inte

Re: [PATCH] drm/i915/mtl: Wake GT before sending H2G message

2024-01-18 Thread Belgaumkar, Vinay
On 1/18/2024 3:50 PM, Matt Roper wrote: On Thu, Jan 18, 2024 at 03:17:28PM -0800, Vinay Belgaumkar wrote: Instead of waiting until the interrupt reaches GuC, we can grab a forcewake while triggering the H2G interrupt. GEN11_GUC_HOST_INTERRUPT is inside an "always on" domain with respect to RC6

Re: [PATCH] drm/i915/mtl: Wake GT before sending H2G message

2024-01-18 Thread Matt Roper
On Thu, Jan 18, 2024 at 03:17:28PM -0800, Vinay Belgaumkar wrote: > Instead of waiting until the interrupt reaches GuC, we can grab a > forcewake while triggering the H2G interrupt. GEN11_GUC_HOST_INTERRUPT > is inside an "always on" domain with respect to RC6. However, there A bit of a nitpick, b

Re: Re: Re: [Intel-xe] [PATCH 2/3] linux/bits.h: Add fixed-width GENMASK and BIT macros

2024-01-18 Thread Lucas De Marchi
On Thu, Jan 18, 2024 at 01:48:43PM -0800, Yury Norov wrote: On Thu, Jan 18, 2024 at 02:42:12PM -0600, Lucas De Marchi wrote: Hi, Reviving this thread as now with xe driver merged we have 2 users for a fixed-width BIT/GENMASK. Can you point where and why? See users of REG_GENMASK and REG_BIT

[PATCH] drm/i915/mtl: Wake GT before sending H2G message

2024-01-18 Thread Vinay Belgaumkar
Instead of waiting until the interrupt reaches GuC, we can grab a forcewake while triggering the H2G interrupt. GEN11_GUC_HOST_INTERRUPT is inside an "always on" domain with respect to RC6. However, there could be some delays when platform is entering/exiting some higher level platform sleep states

Re: Implement per-key keyboard backlight as auxdisplay?

2024-01-18 Thread Werner Sembach
Hi Am 18.01.24 um 18:45 schrieb Pavel Machek: Hi! We have an upcoming device that has a per-key keyboard backlight, but does the control completely via a wmi/acpi interface. So no usable hidraw here for a potential userspace driver implementation ... So a quick summary for the ideas floating

[pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-18 Thread Alex Deucher
Hi Dave, Sima, New fixes for 6.8, on top of the fixes I sent last week and fixed up on Monday. The following changes since commit d7643fe6fb76edb1f2f1497bf5e8b8f4774b5129: drm/amd/display: Avoid enum conversion warning (2024-01-15 18:35:07 -0500) are available in the Git repository at: htt

[PATCH] drm/bridge: tc358767: Limit the Pixel PLL input range

2024-01-18 Thread Marek Vasut
According to new configuration spreadsheet from Toshiba for TC9595, the Pixel PLL input clock have to be in range 6..40 MHz. The sheet calculates those PLL input clock as reference clock divided by both pre-dividers. Add the extra limit. Signed-off-by: Marek Vasut --- Cc: Andrzej Hajda Cc: Danie

Re: Re: [PATCH v2 3/5] drm/xe/display: Avoid calling readq()

2024-01-18 Thread Lucas De Marchi
On Wed, Jan 17, 2024 at 04:15:42PM -0800, Matt Roper wrote: On Tue, Jan 16, 2024 at 09:40:48AM -0800, Lucas De Marchi wrote: readq() is not available in 32bits. iosys-map already has the logic in place to use read u64 in all cases, so simply add a helper variable for using that. Fixes: 44e69495

Re: Re: [Intel-xe] [PATCH 2/3] linux/bits.h: Add fixed-width GENMASK and BIT macros

2024-01-18 Thread Yury Norov
On Thu, Jan 18, 2024 at 02:42:12PM -0600, Lucas De Marchi wrote: > Hi, > > Reviving this thread as now with xe driver merged we have 2 users for > a fixed-width BIT/GENMASK. Can you point where and why? > On Wed, Jun 21, 2023 at 07:20:59PM -0700, Yury Norov wrote: > > Hi Lucas, all! > > > > (T

Re: [BUG][BISECTED] Freeze at loading init ramdisk

2024-01-18 Thread Mirsad Todorovac
On 1/18/24 22:14, Uwe Kleine-König wrote: On Thu, Jan 18, 2024 at 09:04:05PM +0100, Mirsad Todorovac wrote: On 1/18/24 08:45, Uwe Kleine-König wrote: Hello Mirsad, On Wed, Jan 17, 2024 at 07:47:49PM +0100, Mirsad Todorovac wrote: On 1/16/24 01:32, Mirsad Todorovac wrote: On the Ubuntu 2

Re: [PATCH v2 2/4] drm/uAPI: Add "force color format" drm property as setting for userspace

2024-01-18 Thread Sebastian Wick
On Wed, Jan 17, 2024 at 12:58:15PM +, Andri Yngvason wrote: > mið., 17. jan. 2024 kl. 09:21 skrifaði Pekka Paalanen : > > > > On Tue, 16 Jan 2024 14:11:43 + > > Andri Yngvason wrote: > > > > > þri., 16. jan. 2024 kl. 13:29 skrifaði Sebastian Wick > > > : > > > > > > > > On Tue, Jan 16, 202

Re: Re: [PATCH v5 08/44] drm/connector: hdmi: Add Broadcast RGB property

2024-01-18 Thread Sebastian Wick
On Mon, Jan 15, 2024 at 04:25:41PM +0100, Maxime Ripard wrote: > On Mon, Jan 15, 2024 at 03:33:08PM +0100, Sebastian Wick wrote: > > On Thu, Dec 07, 2023 at 04:49:31PM +0100, Maxime Ripard wrote: > > > The i915 driver has a property to force the RGB range of an HDMI output. > > > The vc4 driver the

Re: [BUG][BISECTED] Freeze at loading init ramdisk

2024-01-18 Thread Uwe Kleine-König
On Thu, Jan 18, 2024 at 09:04:05PM +0100, Mirsad Todorovac wrote: > > > On 1/18/24 08:45, Uwe Kleine-König wrote: > > Hello Mirsad, > > > > On Wed, Jan 17, 2024 at 07:47:49PM +0100, Mirsad Todorovac wrote: > > > On 1/16/24 01:32, Mirsad Todorovac wrote: > > > > On the Ubuntu 22.04 LTS Jammy plat

Re: [PATCH v3 3/4] usb: gadget: functionfs: Add DMABUF import interface

2024-01-18 Thread Daniel Vetter
On Thu, Jan 18, 2024 at 08:39:23PM +0100, Paul Cercueil wrote: > Hi Daniel / Sima, > > Le jeudi 18 janvier 2024 à 14:59 +0100, Daniel Vetter a écrit : > > On Thu, Jan 18, 2024 at 02:56:31PM +0100, Daniel Vetter wrote: > > > On Mon, Jan 15, 2024 at 01:54:27PM +0100, Paul Cercueil wrote: > > > > Hi

Re: [PATCH] dma-buf: heaps: Don't track CMA dma-buf pages under RssFile

2024-01-18 Thread Daniel Vetter
On Thu, Jan 18, 2024 at 08:57:16AM -0800, T.J. Mercier wrote: > On Thu, Jan 18, 2024 at 6:49 AM Daniel Vetter wrote: > > > > On Thu, Jan 18, 2024 at 11:02:22AM +0100, Christian König wrote: > > > Am 17.01.24 um 19:11 schrieb T.J. Mercier: > > > > DMA buffers allocated from the CMA dma-buf heap get

Re: Re: [Intel-xe] [PATCH 2/3] linux/bits.h: Add fixed-width GENMASK and BIT macros

2024-01-18 Thread Lucas De Marchi
Hi, Reviving this thread as now with xe driver merged we have 2 users for a fixed-width BIT/GENMASK. On Wed, Jun 21, 2023 at 07:20:59PM -0700, Yury Norov wrote: Hi Lucas, all! (Thanks, Andy, for pointing to this thread.) On Mon, May 08, 2023 at 10:14:02PM -0700, Lucas De Marchi wrote: Add GE

Re: [PATCH] drm/radeon: remove dead code in ni_mc_load_microcode()

2024-01-18 Thread Alex Deucher
On Thu, Jan 18, 2024 at 3:52 AM Nikita Zhandarovich wrote: > > Inside the if block with (running == 0), the checks for 'running' > possibly being non-zero are redundant. Remove them altogether. > > This change is similar to the one authored by Heinrich Schuchardt > in commit > ddbbd3be9679 ("drm/

Re: [BUG][BISECTED] Freeze at loading init ramdisk

2024-01-18 Thread Mirsad Todorovac
On 1/18/24 08:45, Uwe Kleine-König wrote: Hello Mirsad, On Wed, Jan 17, 2024 at 07:47:49PM +0100, Mirsad Todorovac wrote: On 1/16/24 01:32, Mirsad Todorovac wrote: On the Ubuntu 22.04 LTS Jammy platform, on a mainline vanilla torvalds tree kernel, the boot freezes upon first two lines and

Re: [PATCH v3 3/4] usb: gadget: functionfs: Add DMABUF import interface

2024-01-18 Thread Paul Cercueil
Hi Daniel / Sima, Le jeudi 18 janvier 2024 à 14:59 +0100, Daniel Vetter a écrit : > On Thu, Jan 18, 2024 at 02:56:31PM +0100, Daniel Vetter wrote: > > On Mon, Jan 15, 2024 at 01:54:27PM +0100, Paul Cercueil wrote: > > > Hi Daniel / Sima, > > > > > > Le mardi 09 janvier 2024 à 14:01 +0100, Daniel

Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-18 Thread Sam Ravnborg
Hi Dharma et al. On Thu, Jan 18, 2024 at 02:56:09PM +0530, Dharma Balasubiramani wrote: > Converted the text bindings to YAML and validated them individually using > following commands > > $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ > $ make dtbs_check DT_SCHEMA_FI

[PATCH] drm/lcdif: Do not disable clock on already suspended hardware

2024-01-18 Thread Marek Vasut
In case the LCDIF is enabled in DT but unused, the clock used by the LCDIF are not enabled. Those clock may even have a use count of 0 in case there are no other users of those clock. This can happen e.g. in case the LCDIF drives HDMI bridge which has no panel plugged into the HDMI connector. Do n

Re: [PATCH] drm/vmwgfx: Filter modes which exceed 3/4 of graphics memory.

2024-01-18 Thread Zack Rusin
On Mon, Jan 15, 2024 at 3:21 AM Thomas Zimmermann wrote: > > Hi > > Am 12.01.24 um 21:38 schrieb Ian Forbes: > > SVGA requires surfaces to fit within graphics memory (max_mob_pages) which > > means that modes with a final buffer size that would exceed graphics memory > > must be pruned otherwise c

Re: Implement per-key keyboard backlight as auxdisplay?

2024-01-18 Thread Pavel Machek
Hi! > We have an upcoming device that has a per-key keyboard backlight, but does > the control completely via a wmi/acpi interface. So no usable hidraw here > for a potential userspace driver implementation ... > > So a quick summary for the ideas floating in this thread so far: > > 1. Expand le

[PATCH v2 2/2] backlight: Add Kinetic KTD2801 driver

2024-01-18 Thread Duje Mihanović
Add driver for the Kinetic KTD2801 backlight driver. Signed-off-by: Duje Mihanović --- Shared ExpressWire handling code and preemption watchdogs haven't been implemented in this version as my questions regarding these two weren't answered. --- MAINTAINERS | 6 +

[PATCH v2 0/2] Kinetic KTD2801 backlight driver

2024-01-18 Thread Duje Mihanović
Hello, This small series adds a driver for the Kinetic KTD2801 backlight IC. The driver has been tested on the samsung,coreprimevelte for which support is still out-of-tree. Signed-off-by: Duje Mihanović --- Changes in v2: - Address maintainer comments: - Drop MODULE_ALIAS - Rename enable-gp

[PATCH v2 1/2] dt-bindings: backlight: add Kinetic KTD2801 binding

2024-01-18 Thread Duje Mihanović
Add the dt binding for the Kinetic KTD2801 backlight driver. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Duje Mihanović --- .../bindings/leds/backlight/kinetic,ktd2801.yaml | 46 ++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/

Re: [PATCH] drm/bridge: anx7625: Ensure bridge is suspended in disable()

2024-01-18 Thread Doug Anderson
Hi, On Wed, Jan 17, 2024 at 5:59 PM Hsin-Yi Wang wrote: > > Similar to commit 26db46bc9c67 ("drm/bridge: parade-ps8640: Ensure bridge > is suspended in .post_disable()"). Add a mutex to ensure that aux transfer > won't race with atomic_disable by holding the PM reference and prevent > the bridge

Re: [PATCH RFC 4/4] drm/msm/dsi: Add simulated panel support

2024-01-18 Thread Dmitry Baryshkov
On Wed, 17 Jan 2024 at 00:22, Jessica Zhang wrote: > > Introduce the sim_panel_enabled module parameter. > > When set, this parameter will force DSI to select the simulated panel > instead of the physical panel. > > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/msm/dsi/dsi.c | 4 +

Re: [PATCH] drm/imagination: fix ARRAY_SIZE build error

2024-01-18 Thread Randy Dunlap
Hi Matt, On 1/18/24 01:38, Matt Coster wrote: > On 10/01/2024 00:23, Randy Dunlap wrote: >> Fix a build error when using GCC 13.2.0 from kernel.org crosstools >> by changing ARRAY_SIZE() to the macro PVR_MIPS_PT_PAGE_COUNT: > > I assume you're referring to the x86_64 => aarch64 toolchain here? Y

Re: [PATCH] dma-buf: heaps: Don't track CMA dma-buf pages under RssFile

2024-01-18 Thread T.J. Mercier
On Thu, Jan 18, 2024 at 6:49 AM Daniel Vetter wrote: > > On Thu, Jan 18, 2024 at 11:02:22AM +0100, Christian König wrote: > > Am 17.01.24 um 19:11 schrieb T.J. Mercier: > > > DMA buffers allocated from the CMA dma-buf heap get counted under > > > RssFile for processes that map them and trigger pag

Re: [PATCH 4/5] drm/ttm: improve idle/busy handling v3

2024-01-18 Thread Thomas Hellström
On 1/18/24 15:24, Thomas Hellström wrote: On Fri, 2024-01-12 at 13:51 +0100, Christian König wrote: Previously we would never try to move a BO into the preferred placements when it ever landed in a busy placement since those were considered compatible. Rework the whole handling and finally un

Re: [PATCH 3/5] drm/ttm: replace busy placement with flags v6

2024-01-18 Thread Thomas Hellström
On 1/17/24 13:27, Thomas Hellström wrote: On 1/17/24 11:47, Thomas Hellström wrote: Hi, Christian Xe changes look good. Will send the series to xe ci to check for regressions. Hmm, there are some checkpatch warnings about author / SOB email mismatch, With those fixed, this patch is Re

Documentation showing requirements on correct userspace DRM master behavior?

2024-01-18 Thread Matt Hoosier
I’m trying to find some sort of formal document showing the thou-shalts and though-shalt-nots of userspace DRM applications’ interaction with the KMS UAPI. (For modern atomic commits, not the legacy modeset API.) I’m interested in stuff like what minimum set of properties are required on CRTCs or

Re: Mesa >= 23.3.x and python 2.6 ...

2024-01-18 Thread Stefan Dirsch
On Thu, Jan 18, 2024 at 01:37:52PM +0100, Stefan Dirsch wrote: > Hi > > I noticed that with version 23.3.x Mesa no longer can be built with python > 2.6. It still worked with Mesa 23.2.1. I've meant python 3.6 of course! CU, Stefan Public Key available --

Re: [PATCH v3 3/3] dt-bindings: mfd: atmel,hlcdc: Convert to DT schema format

2024-01-18 Thread Conor Dooley
On Thu, Jan 18, 2024 at 02:56:12PM +0530, Dharma Balasubiramani wrote: > Convert the atmel,hlcdc binding to DT schema format. > > Adjust the clock-names property to clarify that the LCD controller expects > one of these clocks (either sys_clk or lvds_pll_clk to be present but not > both) along wit

Re: [PATCH v3 1/3] dt-bindings: display: convert Atmel's HLCDC to DT schema

2024-01-18 Thread Conor Dooley
On Thu, Jan 18, 2024 at 02:56:10PM +0530, Dharma Balasubiramani wrote: > Convert the existing DT binding to DT schema of the Atmel's HLCDC display > controller. > > Signed-off-by: Dharma Balasubiramani > --- > changelog > v2 -> v3 > - Remove '|' in description, as there is no formatting to preser

Re: [PATCH v3 1/6] dt-bindings: display: add dt-bindings for STM32 LVDS device

2024-01-18 Thread Raphael Gallais-Pou
On 1/16/24 08:42, Krzysztof Kozlowski wrote: > On 15/01/2024 17:51, Raphael Gallais-Pou wrote: >> On 1/15/24 16:46, Rob Herring wrote: >>> On Mon, Jan 15, 2024 at 02:20:04PM +0100, Raphael Gallais-Pou wrote: Add "st,stm32mp25-lvds" compatible. > A nit, subject: drop second/last, redunda

Re: [PATCH] sh: ecovec24: Rename missed backlight field from fbdev to dev

2024-01-18 Thread John Paul Adrian Glaubitz
On Mon, 2023-09-25 at 13:10 +0200, Geert Uytterhoeven wrote: > One instance of gpio_backlight_platform_data.fbdev was renamed, but the > second instance was forgotten, causing a build failure: > > arch/sh/boards/mach-ecovec24/setup.c: In function ‘arch_setup’: > arch/sh/boards/mach-ecovec2

Re: [PATCH] dma-buf: heaps: Don't track CMA dma-buf pages under RssFile

2024-01-18 Thread Daniel Vetter
On Thu, Jan 18, 2024 at 11:02:22AM +0100, Christian König wrote: > Am 17.01.24 um 19:11 schrieb T.J. Mercier: > > DMA buffers allocated from the CMA dma-buf heap get counted under > > RssFile for processes that map them and trigger page faults. In > > addition to the incorrect accounting reported t

Re: [PATCH 4/5] drm/ttm: improve idle/busy handling v3

2024-01-18 Thread Thomas Hellström
On Fri, 2024-01-12 at 13:51 +0100, Christian König wrote: > Previously we would never try to move a BO into the preferred > placements > when it ever landed in a busy placement since those were considered > compatible. > > Rework the whole handling and finally unify the idle and busy > handling. >

Re: [PATCH v2 0/3] video: Simplify Kconfig options

2024-01-18 Thread Daniel Vetter
On Thu, Jan 18, 2024 at 10:05:25AM +0100, Thomas Zimmermann wrote: > Replace CONFIG_VIDEO_CMDLINE and CONFIG_VIDEO_NOMODESET by the single > option CONFIG_VIDEO. Select the latter for DRM or fbdev. Both original > options used to be selected in most cases, so this change simplifies > the Kconfig ru

Re: [PATCH] drm/syncobj: call drm_syncobj_fence_add_wait when, WAIT_AVAILABLE flag is set

2024-01-18 Thread Daniel Vetter
On Fri, Jan 12, 2024 at 02:19:00PM -0800, Erik Kurzinger wrote: > When waiting for a syncobj timeline point whose fence has not yet been > submitted with the WAIT_FOR_SUBMIT flag, a callback is registered using > drm_syncobj_fence_add_wait and the thread is put to sleep until the > timeout expires.

Re: [PATCH v3 3/4] usb: gadget: functionfs: Add DMABUF import interface

2024-01-18 Thread Daniel Vetter
On Thu, Jan 18, 2024 at 02:56:31PM +0100, Daniel Vetter wrote: > On Mon, Jan 15, 2024 at 01:54:27PM +0100, Paul Cercueil wrote: > > Hi Daniel / Sima, > > > > Le mardi 09 janvier 2024 à 14:01 +0100, Daniel Vetter a écrit : > > > On Tue, Jan 09, 2024 at 12:06:58PM +0100, Paul Cercueil wrote: > > > >

Re: [RFC PATCH 1/3] dt-bindings: display: ti,am65x-dss: Add support for display sharing mode

2024-01-18 Thread Devarsh Thakkar
Hi Rob, Thanks for the quick review. On 18/01/24 01:43, Rob Herring wrote: > On Tue, Jan 16, 2024 at 07:11:40PM +0530, Devarsh Thakkar wrote: >> Add support for using TI Keystone DSS hardware present in display >> sharing mode. >> >> TI Keystone DSS hardware supports partitioning of resources bet

Re: [PATCH v3 3/4] usb: gadget: functionfs: Add DMABUF import interface

2024-01-18 Thread Daniel Vetter
On Mon, Jan 15, 2024 at 01:54:27PM +0100, Paul Cercueil wrote: > Hi Daniel / Sima, > > Le mardi 09 janvier 2024 à 14:01 +0100, Daniel Vetter a écrit : > > On Tue, Jan 09, 2024 at 12:06:58PM +0100, Paul Cercueil wrote: > > > Hi Daniel / Sima, > > > > > > Le lundi 08 janvier 2024 à 20:19 +0100, Dan

Re: [PATCH v7 5/9] drm/fb_dma: Add generic get_scanout_buffer() for drm_panic

2024-01-18 Thread Daniel Vetter
On Wed, Jan 17, 2024 at 03:28:09PM +0100, Jocelyn Falempe wrote: > > > On 12/01/2024 14:41, Daniel Vetter wrote: > > On Thu, Jan 04, 2024 at 05:00:49PM +0100, Jocelyn Falempe wrote: > > > This was initialy done for imx6, but should work on most drivers > > > using drm_fb_dma_helper. > > > > > >

Re: [PATCH v7 5/9] drm/fb_dma: Add generic get_scanout_buffer() for drm_panic

2024-01-18 Thread Daniel Vetter
On Fri, Jan 12, 2024 at 02:56:17PM +0100, Maxime Ripard wrote: > On Fri, Jan 12, 2024 at 02:41:53PM +0100, Daniel Vetter wrote: > > > + fb = plane->state->fb; > > > + /* Only support linear modifier */ > > > + if (fb->modifier != DRM_FORMAT_MOD_LINEAR) > > > +

Re: [PATCH v7 2/9] drm/panic: Add a drm panic handler

2024-01-18 Thread Daniel Vetter
On Tue, Jan 16, 2024 at 11:54:42AM +0100, Jocelyn Falempe wrote: > On 12/01/2024 14:31, Daniel Vetter wrote: > > You need to tie these nice kerneldocs into the overall documentation tree, > > or they're not getting built. Please then also check that all the links > > and formatting works correctly.

Mesa >= 23.3.x and python 2.6 ...

2024-01-18 Thread Stefan Dirsch
Hi I noticed that with version 23.3.x Mesa no longer can be built with python 2.6. It still worked with Mesa 23.2.1. It fails with [ 95s] Traceback (most recent call last): [ 95s] File "../src/intel/genxml/gen_bits_header.py", line 23, in [ 95s] import intel_genxml [ 95s] File "

Re: [PATCH v1 3/6] drm/lima: set bus_stop bit before hard reset

2024-01-18 Thread Erico Nunes
On Thu, Jan 18, 2024 at 3:01 AM Qiang Yu wrote: > > Do we need same for GP? I don't have an issue reproducer for gp so far, but the hardware does have the same bit and the mali driver does it for both gp and pp, so I think we can also add it to gp.

Re: [PATCH v1 4/6] drm/lima: handle spurious timeouts due to high irq latency

2024-01-18 Thread Erico Nunes
On Thu, Jan 18, 2024 at 3:46 AM Qiang Yu wrote: > > On Wed, Jan 17, 2024 at 11:12 AM Erico Nunes wrote: > > diff --git a/drivers/gpu/drm/lima/lima_sched.h > > b/drivers/gpu/drm/lima/lima_sched.h > > index 6a11764d87b3..34050facb110 100644 > > --- a/drivers/gpu/drm/lima/lima_sched.h > > +++ b/dri

Re: [PATCH] drm/msm/adreno: Update generated headers

2024-01-18 Thread Konrad Dybcio
On 1/17/24 21:37, Rob Clark wrote: From: Rob Clark This updates the GPU headers to latest from mesa, using gen_header.py (which is used to generate headers at bulid time for mesa), rather than headergen2 (which doesn't have proper support for A6XX vs A7XX register variants). Mostly just uni

[PATCH] docs/accel: correct links to mailing list archives

2024-01-18 Thread Hu Haowen
Since the mailing archive list lkml.org is obsolete, change the links into lore.kernel.org's ones. Signed-off-by: Hu Haowen <2023002...@link.tyut.edu.cn> --- Documentation/accel/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/accel/introducti

Re: [PATCH v1 1/6] drm/lima: fix devfreq refcount imbalance for job timeouts

2024-01-18 Thread Erico Nunes
On Thu, Jan 18, 2024 at 2:36 AM Qiang Yu wrote: > > So this is caused by same job trigger both done and timeout handling? > I think a better way to solve this is to make sure only one handler > (done or timeout) process the job instead of just making lima_pm_idle() > unique. It's not very clear t

Re: Re: [PATCH v7 6/9] drm/simpledrm: Add drm_panic support

2024-01-18 Thread Maxime Ripard
On Wed, Jan 17, 2024 at 04:22:01PM +0100, Thomas Zimmermann wrote: > Hi > > Am 12.01.24 um 14:58 schrieb Maxime Ripard: > > On Fri, Jan 12, 2024 at 02:44:57PM +0100, Daniel Vetter wrote: > > > On Thu, Jan 04, 2024 at 05:00:50PM +0100, Jocelyn Falempe wrote: > > > > Add support for the drm_panic mo

Re: [PATCH v7 2/9] drm/panic: Add a drm panic handler

2024-01-18 Thread Jocelyn Falempe
On 17/01/2024 16:49, Thomas Zimmermann wrote: Hi Am 04.01.24 um 17:00 schrieb Jocelyn Falempe: [...] +    /** + * @get_scanout_buffer: + * + * Get the current scanout buffer, to display a panic message with drm_panic. + * The driver should do the minimum changes to provide a

Re: [PATCH v3 2/3] dt-bindings: atmel, hlcdc: convert pwm bindings to json-schema

2024-01-18 Thread Uwe Kleine-König
Hello, On Thu, Jan 18, 2024 at 02:56:11PM +0530, Dharma Balasubiramani wrote: > Convert device tree bindings for Atmel's HLCDC PWM controller to YAML > format. > > Signed-off-by: Dharma Balasubiramani > Reviewed-by: Conor Dooley Reviewed-by: Uwe Kleine-König I will update the short log to

Re: [PATCH] dma-buf: heaps: Don't track CMA dma-buf pages under RssFile

2024-01-18 Thread Christian König
Am 17.01.24 um 19:11 schrieb T.J. Mercier: DMA buffers allocated from the CMA dma-buf heap get counted under RssFile for processes that map them and trigger page faults. In addition to the incorrect accounting reported to userspace, reclaim behavior was influenced by the MM_FILEPAGES counter unti

[syzbot] [dri?] BUG: scheduling while atomic in drm_atomic_helper_wait_for_flip_done

2024-01-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:1b1934dbbdcf Merge tag 'docs-6.8-2' of git://git.lwn.net/l.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1029adbde8 kernel config: https://syzkaller.appspot.com/x/.config?x=68ea41b98043e6e8 das

[PATCH] hwmon: (peci/cputemp) Add a null pointer check to the wled_configure

2024-01-18 Thread Kunwu Chan
devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Ensure the allocation was successful by checking the pointer validity. Signed-off-by: Kunwu Chan --- drivers/video/backlight/qcom-wled.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) d

Re: [PATCH] drm/imagination: fix ARRAY_SIZE build error

2024-01-18 Thread Matt Coster
On 10/01/2024 00:23, Randy Dunlap wrote: Fix a build error when using GCC 13.2.0 from kernel.org crosstools by changing ARRAY_SIZE() to the macro PVR_MIPS_PT_PAGE_COUNT: I assume you're referring to the x86_64 => aarch64 toolchain here? drivers/gpu/drm/imagination/pvr_vm_mips.c: In function '

[PATCH v3 2/3] dt-bindings: atmel, hlcdc: convert pwm bindings to json-schema

2024-01-18 Thread Dharma Balasubiramani
Convert device tree bindings for Atmel's HLCDC PWM controller to YAML format. Signed-off-by: Dharma Balasubiramani Reviewed-by: Conor Dooley --- changelog v2 -> v3 - Remove '|' in description, as there is no formatting to preserve. - Delete the description for pwm-cells. - Drop the label for pwm

[PATCH v3 3/3] dt-bindings: mfd: atmel, hlcdc: Convert to DT schema format

2024-01-18 Thread Dharma Balasubiramani
Convert the atmel,hlcdc binding to DT schema format. Adjust the clock-names property to clarify that the LCD controller expects one of these clocks (either sys_clk or lvds_pll_clk to be present but not both) along with the slow_clk and periph_clk. This alignment with the actual hardware requiremen

[PATCH v3 1/3] dt-bindings: display: convert Atmel's HLCDC to DT schema

2024-01-18 Thread Dharma Balasubiramani
Convert the existing DT binding to DT schema of the Atmel's HLCDC display controller. Signed-off-by: Dharma Balasubiramani --- changelog v2 -> v3 - Remove '|' in description, as there is no formatting to preserve. - Ref video-interfaces as endpoint. - Remove ref and description for bus-width. - A

[PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema

2024-01-18 Thread Dharma Balasubiramani
Converted the text bindings to YAML and validated them individually using following commands $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ $ make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ changelogs are available in respective patches. Dharma Bal

Re: [PATCH 2/3] dt-bindings: mfd: atmel,hlcdc: Convert to DT schema format

2024-01-18 Thread Dharma.B
On 17/01/24 1:07 pm, Krzysztof Kozlowski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 17/01/2024 03:22, dharm...@microchip.com wrote: >> Hi Krzysztof, >> On 10/01/24 11:31 pm, Krzysztof Kozlowski wrote: >>> EXTERNAL EMAIL: Do not cli

[PATCH v2 1/3] video/cmdline: Introduce CONFIG_VIDEO for video= parameter

2024-01-18 Thread Thomas Zimmermann
Add CONFIG_VIDEO for common code in drivers/video/. Use the option to select helpers for the video= parameter. Replaces CONFIG_VIDEO_CMDLINE. Other common code in drivers/video/ can be moved behind CONFIG_VIDEO, which will simplify the Kconfig rules. Signed-off-by: Thomas Zimmermann --- drivers

[PATCH v2 0/3] video: Simplify Kconfig options

2024-01-18 Thread Thomas Zimmermann
Replace CONFIG_VIDEO_CMDLINE and CONFIG_VIDEO_NOMODESET by the single option CONFIG_VIDEO. Select the latter for DRM or fbdev. Both original options used to be selected in most cases, so this change simplifies the Kconfig rules. Since commit ca6c080eef42 ("arch/parisc: Detect primary video device

[PATCH v2 2/3] video/cmdline: Hide __video_get_options() behind CONFIG_FB_CORE

2024-01-18 Thread Thomas Zimmermann
The function __video_get_options() only exists for compatibility with old fbdev drivers that cannot be refactored easily. Hide it behind CONFIG_FB_CORE. v2: * support CONFIG_FB_CORE=m via IS_ENABLED() (kernel test robot) Signed-off-by: Thomas Zimmermann --- drivers/video/cmdline.c | 2 +

[PATCH v2 3/3] video/nomodeset: Select nomodeset= parameter with CONFIG_VIDEO

2024-01-18 Thread Thomas Zimmermann
Enable support for nomodeset= parameter via CONFIG_VIDEO. Both, DRM and fbdev, already select this option. Remove the existing option CONFIG_VIDEO_NOMODESET. Simplifies the Kconfig rules. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/Kconfig | 1 - drivers/staging/sm750fb/Kconf

Re: [PATCH v2 2/3] dt-bindings: atmel, hlcdc: convert pwm bindings to json-schema

2024-01-18 Thread Dharma.B
On 17/01/24 9:03 pm, Conor Dooley wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > > ForwardedMessage.eml > > Subject: > Re: [PATCH v2 2/3] dt-bindings: atmel,hlcdc: convert pwm bindings to > json-schema > From: > Conor Dooley > Date: >

Re: [PATCH 08/11] ARM: dts: DRA7xx: Add device tree entry for SGX GPU

2024-01-18 Thread Tony Lindgren
* Andrew Davis [240117 15:52]: > On 1/10/24 2:29 AM, Tony Lindgren wrote: > > * Andrew Davis [240109 17:20]: > > > --- a/arch/arm/boot/dts/ti/omap/dra7.dtsi > > > +++ b/arch/arm/boot/dts/ti/omap/dra7.dtsi > > > @@ -850,12 +850,19 @@ target-module@5600 { > > >

Re: [PATCH 19/45] tty: vt: make init parameter of consw::con_init() a bool

2024-01-18 Thread Geert Uytterhoeven
Hi Jiri, On Thu, Jan 18, 2024 at 9:03 AM Jiri Slaby (SUSE) wrote: > The 'init' parameter of consw::con_init() is true for the first call of > the hook on a particular console. So make the parameter a bool. > > And document the hook. > > Signed-off-by: Jiri Slaby (SUSE) Thanks for your patch! >

Re: [PATCH 31/45] tty: vt: use VESA blanking constants

2024-01-18 Thread Greg KH
On Thu, Jan 18, 2024 at 09:41:34AM +0100, Thomas Zimmermann wrote: > Hi > > Am 18.01.24 um 09:32 schrieb Jiri Slaby: > > On 18. 01. 24, 9:30, Thomas Zimmermann wrote: > > > Am 18.01.24 um 08:57 schrieb Jiri Slaby (SUSE): > > > > There are VESA blanking constants defined in console.h already. So us

Re: [PATCH 31/45] tty: vt: use VESA blanking constants

2024-01-18 Thread Jiri Slaby
On 18. 01. 24, 9:41, Thomas Zimmermann wrote: Is it hard to get a new UAPI header accepted (honest question)? Not at all, IMO. The header just needs to be correct™ as it would be set in stone once released. thanks, -- js suse labs

  1   2   >