[PATCH 2/2] drm/tegra: gem: Don't attach dma-bufs when not needed

2024-04-24 Thread Mikko Perttunen
From: Mikko Perttunen The dma-buf import code currently attaches and maps all imported dma-bufs to the drm device to get their sgt for mapping to the directly managed IOMMU domain. In many cases, like for newer chips (Tegra186+), the directly managed IOMMU domain is, however, not used. Mapping

[PATCH 1/2] drm/tegra: gem: Open code drm_prime_gem_destroy

2024-04-24 Thread Mikko Perttunen
From: Mikko Perttunen Since we aren't using drm_gem_prime_import(_dev), for clarity don't use the corresponding destroy function either. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/gem.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v2 06/19] backlight: ili9320: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/ili9320.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 07/19] backlight: jornada720_lcd: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/jornada720_lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 12/19] backlight: otm3225a: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/otm3225a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 13/19] backlight: platform_lcd: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/platform_lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 14/19] backlight: tdo24m: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/tdo24m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 15/19] HID: picoLCD: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Bruno Prémont Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch in the series. --- drivers/hid/hid-picolcd_lcd.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 10/19] backlight: lms501kf03: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/lms501kf03.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 11/19] backlight: ltv350qv: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/ltv350qv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 09/19] backlight: lms283gf05: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/lms283gf05.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 16/19] fbdev: clps711x: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Thomas Zimmermann Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch in the series. --- drivers/video/fbdev/clps711x-fb.c | 2 +- 1 file changed, 1

[PATCH v2 08/19] backlight: l4f00242t03: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/l4f00242t03.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/4] drm/tiny: ili9225: drop driver owner assignment

2024-04-24 Thread Krzysztof Kozlowski
On 27/03/2024 18:48, Krzysztof Kozlowski wrote: > Core in spi_register_driver() already sets the .owner, so driver > does not need to. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/gpu/drm/tiny/ili9225.c | 1 - > 1 file changed, 1 deletion(-) It has been almost a month. Any comments

[PATCH v2 00/19] backlight: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
Hi, Changes in v2: - Collect tags, including wrongly places Thomas' tag (which requires me to manually edit 15 other patches to drop it). - Combine here checkpatch patch: https://lore.kernel.org/all/20240414185440.288812-1-k...@kernel.org/ - Link to v1:

[PATCH v2 01/19] backlight: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' passed in lcd_device_register() is not modified by core backlight code, so it can be made const for code safety. This allows drivers to also define the structure as const. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/lcd.c | 4

[PATCH v2 02/19] backlight: ams369fg06: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/ams369fg06.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 03/19] backlight: corgi_lcd: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/corgi_lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 04/19] backlight: hx8357: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/hx8357.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 05/19] backlight: ili922x: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Daniel Thompson Signed-off-by: Krzysztof Kozlowski --- drivers/video/backlight/ili922x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 19/19] const_structs.checkpatch: add lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core code. Suggested-by: Thomas Weißschuh Signed-off-by: Krzysztof Kozlowski --- Patch making lcd_ops const in progress: https://lore.kernel.org/r/20240414-video-backlight-lcd-ops-v1-0-9b37fcbf5...@kernel.org Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo

[PATCH v2 18/19] fbdev: omap: lcd_ams_delta: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Thomas Zimmermann Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch in the series. --- drivers/video/fbdev/omap/lcd_ams_delta.c | 2 +- 1 file changed, 1

[PATCH v2 17/19] fbdev: imx: Constify lcd_ops

2024-04-24 Thread Krzysztof Kozlowski
'struct lcd_ops' is not modified by core backlight code, so it can be made const for increased code safety. Reviewed-by: Thomas Zimmermann Signed-off-by: Krzysztof Kozlowski --- Depends on the first patch in the series. --- drivers/video/fbdev/imxfb.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2024-04-24 Thread Tomeu Vizoso
If we expose a render node for NPUs without rendering capabilities, the userspace stack will offer it to compositors and applications for rendering, which of course won't work. Userspace is probably right in not questioning whether a render node might not be capable of supporting rendering, so

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

2024-04-24 Thread Krzysztof Kozlowski
On 30/03/2024 21:38, 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(). > > Signed-off-by: Krzysztof Kozlowski > --- It has

Re: [PATCH] drm/etnaviv: drop driver owner assignment

2024-04-24 Thread Krzysztof Kozlowski
On 01/04/2024 12:26, Christian Gmeiner 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(). >> >> Signed-off-by: Krzysztof Kozlowski > >

Re: [PATCH 1/2] drm/bridge: chipone-icn6211: drop driver owner assignment

2024-04-24 Thread Krzysztof Kozlowski
On 30/03/2024 21:27, Krzysztof Kozlowski wrote: > Core in mipi_dsi_driver_register() already sets the .owner, so driver > does not need to. > > Signed-off-by: Krzysztof Kozlowski > --- It has been almost a month. Any comments on this patchset? Best regards, Krzysztof

Re: [PATCH v2 1/3] drm/panthor: introduce job cycle and timestamp accounting

2024-04-24 Thread Boris Brezillon
On Tue, 23 Apr 2024 22:32:34 +0100 Adrián Larumbe wrote: > Enable calculations of job submission times in clock cycles and wall > time. This is done by expanding the boilerplate command stream when running > a job to include instructions that compute said times right before an after > a user CS.

Re: [PATCH v2] drm/bridge: adv7511: make it honour next bridge in DT

2024-04-24 Thread Neil Armstrong
On 31/03/2024 22:45, Dmitry Baryshkov wrote: DT bindings for adv7511 and adv7533 bridges specify HDMI output to be present at the port@1. This allows board DT to add e.g. HDMI connector nodes or any other next chained bridge. Make adv7511 driver discover that bridge and attach it to the chain.

Re: [PATCH] drm/imagination: Ensure PVR_MIPS_PT_PAGE_COUNT is never zero

2024-04-24 Thread Frank Binns
On Tue, 2024-04-23 at 16:09 +, Matt Coster wrote: > When the host page size was more than 4 times larger than the FW page > size, this macro evaluated to zero resulting in zero-sized arrays. > > Use DIV_ROUND_UP() to ensure the correct behavior. > > Reported-by:

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Sui Jingfeng
Hi, On 2024/4/24 16:39, Dmitry Baryshkov wrote: Ok, what is the_bug_ that is being fixed by this patch? I didn't have a way to use that driver under non DT environment, this is the bug. Note: I demanding full features. Both st7735r.c and repaper.c requires additional device property. -

Re: [PATCH] [RFC] dma-buf: fix race condition between poll and close

2024-04-24 Thread Christian König
Am 24.04.24 um 12:19 schrieb Dmitry Antipov: On 4/24/24 10:09, Christian König wrote: To repeat what I already said on the other thread: Calling dma_buf_poll() while fput() is in progress is illegal in the first place. So there is nothing to fix in dma_buf_poll(), but rather to figure out

Re: [PATCH v5 09/18] drm/msm: import A6xx XML display registers database

2024-04-24 Thread Dmitry Baryshkov
On Wed, 24 Apr 2024 at 15:21, Connor Abbott wrote: > > On Mon, Apr 1, 2024 at 3:52 AM Dmitry Baryshkov > wrote: > > > > Import Adreno registers database for A6xx from the Mesa, commit > > 639488f924d9 ("freedreno/registers: limit the rules schema"). > > > > Signed-off-by: Dmitry Baryshkov > >

Re: [PATCH] drm/amd/display: re-indent dc_power_down_on_boot()

2024-04-24 Thread Dan Carpenter
On Wed, Apr 24, 2024 at 03:11:08PM +0200, Christian König wrote: > Am 24.04.24 um 13:41 schrieb Dan Carpenter: > > These lines are indented too far. Clean the whitespace. > > > > Signed-off-by: Dan Carpenter > > --- > > drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++ > > 1 file

Re: [PATCH 06/23] drm/xe/svm: Introduce a helper to build sg table from hmm range

2024-04-24 Thread Jason Gunthorpe
On Tue, Apr 23, 2024 at 09:17:03PM +, Zeng, Oak wrote: > > On Tue, Apr 09, 2024 at 04:45:22PM +, Zeng, Oak wrote: > > > > > > I saw, I am saying this should not be done. You cannot unmap bits of > > > > a sgl mapping if an invalidation comes in. > > > > > > You are right, if we register a

Re: [PATCH v4 10/13] drm: zynqmp_dp: Use AUX IRQs instead of polling

2024-04-24 Thread Tomi Valkeinen
On 23/04/2024 20:18, Sean Anderson wrote: Instead of polling the status register for the AUX status, just enable the IRQs and signal a completion. Signed-off-by: Sean Anderson --- This one seems to cause a hang when I unload the modules. I didn't debug it further yet, but most likely we

Re: [PATCH] MAINTAINERS: Move the drm-intel repo location to fd.o GitLab

2024-04-24 Thread Jani Nikula
On Wed, 24 Apr 2024, Ryszard Knop wrote: > The drm-intel repo is moving from the classic fd.o git host to GitLab. > Update its location with a URL matching other fd.o GitLab kernel trees. > > Signed-off-by: Ryszard Knop Acked-by: Jani Nikula > --- > MAINTAINERS | 2 +- > 1 file changed, 1

Re: [PATCH] drm/sysfs: Add drm class-wide attribute to get active device clients

2024-04-24 Thread Adrián Larumbe
Hi Tvrtko, On 15.04.2024 13:50, Tvrtko Ursulin wrote: > > On 05/04/2024 18:59, Rob Clark wrote: > > On Wed, Apr 3, 2024 at 11:37 AM Adrián Larumbe > > wrote: > > > > > > Up to this day, all fdinfo-based GPU profilers must traverse the entire > > > /proc directory structure to find open DRM

Re: [PATCH v2 19/19] const_structs.checkpatch: add lcd_ops

2024-04-24 Thread Daniel Thompson
On Wed, Apr 24, 2024 at 08:33:45AM +0200, Krzysztof Kozlowski wrote: > 'struct lcd_ops' is not modified by core code. > > Suggested-by: Thomas Weißschuh > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Daniel Thompson Daniel.

Re: [PATCH] nightly.conf: Update drm-intel URLs, add missing bare ssh drm-xe URL

2024-04-24 Thread Lucas De Marchi
On Wed, Apr 24, 2024 at 01:32:19PM GMT, Ryszard Knop wrote: - Switch drm-intel URLs to the new GitLab location. - Add a short SSH link for drm-xe for completeness with other blocks. - Add a missing tab in drm_tip_config for column alignment. Signed-off-by: Ryszard Knop --- nightly.conf | 8

Re: [PATCH 06/23] drm/xe/svm: Introduce a helper to build sg table from hmm range

2024-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2024 at 02:31:36AM +, Matthew Brost wrote: > AMD seems to register notifiers on demand for parts of the address space > [1], I think Nvidia's open source driver does this too (can look this up > if needed). We (Intel) also do this in Xe and the i915 for userptrs > (explictly

Re: [PATCH v4 0/7] Managing live video input format for ZynqMP DPSUB

2024-04-24 Thread Tomi Valkeinen
Hi, On 16/04/2024 23:31, Anatoliy Klymenko wrote: Implement live video input format setting for ZynqMP DPSUB. ZynqMP DPSUB can operate in 2 modes: DMA-based and live. In the live mode, DPSUB receives a live video signal from FPGA-based CRTC. DPSUB acts as a DRM encoder bridge in such a

Re: [PATCH v3 1/4] drm: add devm release action

2024-04-24 Thread Aravind Iddamsetty
On 23/04/24 23:12, Rodrigo Vivi wrote: > On Tue, Apr 23, 2024 at 02:25:06PM +0530, Aravind Iddamsetty wrote: >> On 23/04/24 02:24, Rodrigo Vivi wrote: >>> On Mon, Apr 22, 2024 at 12:27:53PM +0530, Aravind Iddamsetty wrote: In scenarios where drm_dev_put is directly called by driver we want

Re: [PATCH v3 1/4] drm: add devm release action

2024-04-24 Thread Maxime Ripard
On Mon, Apr 22, 2024 at 12:27:53PM +0530, Aravind Iddamsetty wrote: > In scenarios where drm_dev_put is directly called by driver we want to > release devm_drm_dev_init_release action associated with struct > drm_device. > > v2: Directly expose the original function, instead of introducing a >

Re: [PATCH v3 1/4] drm: add devm release action

2024-04-24 Thread Aravind Iddamsetty
On 24/04/24 17:21, Maxime Ripard wrote: > On Mon, Apr 22, 2024 at 12:27:53PM +0530, Aravind Iddamsetty wrote: >> In scenarios where drm_dev_put is directly called by driver we want to >> release devm_drm_dev_init_release action associated with struct >> drm_device. >> >> v2: Directly expose the

Re: [PATCH] drm/amd/display: re-indent dc_power_down_on_boot()

2024-04-24 Thread Christian König
Am 24.04.24 um 15:20 schrieb Dan Carpenter: On Wed, Apr 24, 2024 at 03:11:08PM +0200, Christian König wrote: Am 24.04.24 um 13:41 schrieb Dan Carpenter: These lines are indented too far. Clean the whitespace. Signed-off-by: Dan Carpenter --- drivers/gpu/drm/amd/display/dc/core/dc.c | 7

Re: [PATCH v3 4/4] drm/xe/FLR: Support PCIe FLR

2024-04-24 Thread Nilawar, Badal
On 24-04-2024 08:42, Aravind Iddamsetty wrote: On 23/04/24 20:34, Nilawar, Badal wrote: On 22-04-2024 12:27, Aravind Iddamsetty wrote: PCI subsystem provides callbacks to inform the driver about a request to do function level reset by user, initiated by writing to sysfs entry

Re: [PATCH v3 1/4] drm: add devm release action

2024-04-24 Thread Maxime Ripard
On Tue, Apr 23, 2024 at 01:42:22PM -0400, Rodrigo Vivi wrote: > On Tue, Apr 23, 2024 at 02:25:06PM +0530, Aravind Iddamsetty wrote: > > > > On 23/04/24 02:24, Rodrigo Vivi wrote: > > > On Mon, Apr 22, 2024 at 12:27:53PM +0530, Aravind Iddamsetty wrote: > > >> In scenarios where drm_dev_put is

Re: [PATCH] nightly.conf: Update drm-intel URLs, add missing bare ssh drm-xe URL

2024-04-24 Thread Jani Nikula
On Wed, 24 Apr 2024, Ryszard Knop wrote: > - Switch drm-intel URLs to the new GitLab location. > - Add a short SSH link for drm-xe for completeness with other blocks. > - Add a missing tab in drm_tip_config for column alignment. > > Signed-off-by: Ryszard Knop Acked-by: Jani Nikula > --- >

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Andy Shevchenko
On Wed, Apr 24, 2024 at 12:37:16AM +0300, Dmitry Baryshkov wrote: > On Wed, Apr 24, 2024 at 12:49:18AM +0800, Sui Jingfeng wrote: > > On 2024/4/23 21:28, Andy Shevchenko wrote: > > > On Tue, Apr 23, 2024 at 12:46:58AM +0800, Sui Jingfeng wrote: ... > But let me throw an argument why this patch

Re: [PATCH] drm/amd/display: re-indent dc_power_down_on_boot()

2024-04-24 Thread Christian König
Am 24.04.24 um 13:41 schrieb Dan Carpenter: These lines are indented too far. Clean the whitespace. Signed-off-by: Dan Carpenter --- drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c

Re: [PATCH] [RFC] dma-buf: fix race condition between poll and close

2024-04-24 Thread Dmitry Antipov
On 4/24/24 10:09, Christian König wrote: To repeat what I already said on the other thread: Calling dma_buf_poll() while fput() is in progress is illegal in the first place. So there is nothing to fix in dma_buf_poll(), but rather to figure out who is incorrectly calling fput(). Hm. OTOH

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Sui Jingfeng
Hi, On 2024/4/24 16:39, Dmitry Baryshkov wrote: Sui, if that fits your purpose, That doesn't fits my purpose, please stop the recommendation, thanks. please make sure that with your patch (or the next iteration of it) you can get driver_data from the matched platform_device_id. No, that's

Re: [PATCH v3 1/4] drm: add devm release action

2024-04-24 Thread Rodrigo Vivi
On Wed, Apr 24, 2024 at 01:49:16PM +0200, Maxime Ripard wrote: > On Tue, Apr 23, 2024 at 01:42:22PM -0400, Rodrigo Vivi wrote: > > On Tue, Apr 23, 2024 at 02:25:06PM +0530, Aravind Iddamsetty wrote: > > > > > > On 23/04/24 02:24, Rodrigo Vivi wrote: > > > > On Mon, Apr 22, 2024 at 12:27:53PM

Re: [PATCH v5 09/18] drm/msm: import A6xx XML display registers database

2024-04-24 Thread Connor Abbott
On Mon, Apr 1, 2024 at 3:52 AM Dmitry Baryshkov wrote: > > Import Adreno registers database for A6xx from the Mesa, commit > 639488f924d9 ("freedreno/registers: limit the rules schema"). > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/registers/adreno/a6xx.xml | 4970 >

[PATCH] MAINTAINERS: Move the drm-intel repo location to fd.o GitLab

2024-04-24 Thread Ryszard Knop
The drm-intel repo is moving from the classic fd.o git host to GitLab. Update its location with a URL matching other fd.o GitLab kernel trees. Signed-off-by: Ryszard Knop --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH] drm/amd/display: re-indent dc_power_down_on_boot()

2024-04-24 Thread Dan Carpenter
These lines are indented too far. Clean the whitespace. Signed-off-by: Dan Carpenter --- drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c

Re: [PATCH] drm: zynqmp_dpsub: Always register bridge

2024-04-24 Thread Tomi Valkeinen
On 23/04/2024 23:50, Sean Anderson wrote: Hi, On 3/22/24 02:01, Tomi Valkeinen wrote: Hi, On 08/03/2024 22:47, Sean Anderson wrote: We must always register the DRM bridge, since zynqmp_dp_hpd_work_func calls drm_bridge_hpd_notify, which in turn expects hpd_mutex to be initialized. We do this

[PATCH] nightly.conf: Update drm-intel URLs, add missing bare ssh drm-xe URL

2024-04-24 Thread Ryszard Knop
- Switch drm-intel URLs to the new GitLab location. - Add a short SSH link for drm-xe for completeness with other blocks. - Add a missing tab in drm_tip_config for column alignment. Signed-off-by: Ryszard Knop --- nightly.conf | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

Re: [PATCH 1/2] drm/print: drop include debugfs.h and include where needed

2024-04-24 Thread Jani Nikula
On Mon, 22 Apr 2024, Jani Nikula wrote: > Surprisingly many places depend on debugfs.h to be included via > drm_print.h. Fix them. > > v3: Also fix armada, ite-it6505, imagination, msm, sti, vc4, and xe > > v2: Also fix ivpu and vmwgfx > > Reviewed-by: Andrzej Hajda > Acked-by: Maxime Ripard >

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Andy Shevchenko
On Wed, Apr 24, 2024 at 04:34:39PM +0300, Dmitry Baryshkov wrote: > On Wed, 24 Apr 2024 at 16:11, Andy Shevchenko > wrote: > > > > On Wed, Apr 24, 2024 at 12:37:16AM +0300, Dmitry Baryshkov wrote: > > > On Wed, Apr 24, 2024 at 12:49:18AM +0800, Sui Jingfeng wrote: > > > > On 2024/4/23 21:28, Andy

Re: [PATCH v2 3/6] drm/xe: Add helper to accumulate exec queue runtime

2024-04-24 Thread Lucas De Marchi
On Wed, Apr 24, 2024 at 04:08:29AM GMT, Matthew Brost wrote: On Tue, Apr 23, 2024 at 04:56:48PM -0700, Lucas De Marchi wrote: From: Umesh Nerlige Ramappa Add a helper to accumulate per-client runtime of all its exec queues. Currently that is done in 2 places: 1. when the exec_queue

RE: ✗ Fi.CI.IGT: failure for drm/i915/dp: Few MTL/DSC and a UHBR monitor fix (rev4)

2024-04-24 Thread Illipilli, TejasreeX
Hi, https://patchwork.freedesktop.org/series/131386/ - Re-reported. Thanks, Tejasree -Original Message- From: I915-ci-infra On Behalf Of Imre Deak Sent: Friday, April 19, 2024 8:15 PM To: Nautiyal, Ankit K ; Manasi D Navare ; Maarten Lankhorst ; Nikula, Jani ;

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Dmitry Baryshkov
On Wed, 24 Apr 2024 at 16:11, Andy Shevchenko wrote: > > On Wed, Apr 24, 2024 at 12:37:16AM +0300, Dmitry Baryshkov wrote: > > On Wed, Apr 24, 2024 at 12:49:18AM +0800, Sui Jingfeng wrote: > > > On 2024/4/23 21:28, Andy Shevchenko wrote: > > > > On Tue, Apr 23, 2024 at 12:46:58AM +0800, Sui

Re: [PATCH] drm/amd/display: re-indent dc_power_down_on_boot()

2024-04-24 Thread Dan Carpenter
On Wed, Apr 24, 2024 at 03:33:11PM +0200, Christian König wrote: > Am 24.04.24 um 15:20 schrieb Dan Carpenter: > > On Wed, Apr 24, 2024 at 03:11:08PM +0200, Christian König wrote: > > > Am 24.04.24 um 13:41 schrieb Dan Carpenter: > > > > These lines are indented too far. Clean the whitespace. > >

Re: [PATCH 09/10] dt-bindings: arm: qcom: Add AYN Odin 2

2024-04-24 Thread Bryan O'Donoghue
On 24/04/2024 16:29, Xilin Wu via B4 Relay wrote: From: Xilin Wu This documents AYN Odin 2 which is a gaming handheld by AYN based on the QCS8550 SoC. Signed-off-by: Xilin Wu --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 02/10] pwm: Add SI-EN SN3112 PWM support

2024-04-24 Thread Bryan O'Donoghue
On 24/04/2024 16:29, Xilin Wu via B4 Relay wrote: From: Junhao Xie Add a new driver for the SI-EN SN3112 12-channel 8-bit PWM LED controller. Signed-off-by: Junhao Xie --- drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sn3112.c | 336

Re: [PATCH v8 1/7] x86/vmware: Move common macros to vmware.h

2024-04-24 Thread Borislav Petkov
On Mon, Apr 22, 2024 at 03:56:50PM -0700, Alexey Makhalov wrote: > Move VMware hypercall macros to vmware.h. This is a prerequisite for > the introduction of vmware_hypercall API. No functional changes besides > exporting vmware_hypercall_mode symbol. Well, I see more. So code movement patches

[PATCH][next] drm/amd/display: Fix spelling various spelling mistakes

2024-04-24 Thread Colin Ian King
There are various spelling mistakes in dml2_printf messages, fix them. Signed-off-by: Colin Ian King --- .../dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 6 +++--- .../display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c | 6 +++--- 2 files changed, 6 insertions(+), 6

Re: [PATCH 06/23] drm/xe/svm: Introduce a helper to build sg table from hmm range

2024-04-24 Thread Matthew Brost
On Wed, Apr 24, 2024 at 10:57:54AM -0300, Jason Gunthorpe wrote: > On Wed, Apr 24, 2024 at 02:31:36AM +, Matthew Brost wrote: > > > AMD seems to register notifiers on demand for parts of the address space > > [1], I think Nvidia's open source driver does this too (can look this up > > if

[RFC PATCH 03/18] drm/ttm: Implement BO eviction tracking

2024-04-24 Thread Friedrich Vock
For each buffer object, remember evictions and try undoing them if memory pressure gets lower again. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 28 +++- drivers/gpu/drm/ttm/ttm_bo_util.c | 3 +++ 2 files changed, 30 insertions(+), 1

[RFC PATCH 14/18] drm/ttm: Consider BOs placed in non-favorite locations evicted

2024-04-24 Thread Friedrich Vock
If we didn't get the favorite placement because it was full, we should try moving it into the favorite placement once there is space. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git

[RFC PATCH 18/18] drm/amdgpu: Bump minor version

2024-04-24 Thread Friedrich Vock
Indicates support for EVICTED_VRAM queries and AMDGPU_GEM_OP_SET_PRIORITY Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

[RFC PATCH 01/18] drm/ttm: Add tracking for evicted memory

2024-04-24 Thread Friedrich Vock
These utilities will be used to keep track of what buffers have been evicted from any particular place, to try and decide when to try undoing the eviction. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_device.c | 1 + drivers/gpu/drm/ttm/ttm_resource.c | 14 ++

[RFC PATCH 00/18] TTM interface for managing VRAM oversubscription

2024-04-24 Thread Friedrich Vock
Hi everyone, recently I've been looking into remedies for apps (in particular, newer games) that experience significant performance loss when they start to hit VRAM limits, especially on older or lower-end cards that struggle to fit both desktop apps and all the game data into VRAM at once. The

[RFC PATCH 15/18] drm/amdgpu: Set a default priority for user/kernel BOs

2024-04-24 Thread Friedrich Vock
Reserve the highest priority for the kernel, and choose a balanced value as userspace default. Userspace is intended to be able to modify these later to mark buffers as important/unimportant. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 1 +

[RFC PATCH 07/18] drm/amdgpu: Add TTM uneviction control functions

2024-04-24 Thread Friedrich Vock
Try unevicting only VRAM/GTT BOs. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 50 + 1 file changed, 50 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index

[RFC PATCH 04/18] drm/ttm: Add driver funcs for uneviction control

2024-04-24 Thread Friedrich Vock
Provides fine-grained control for drivers over which buffers should be considered when attempting to undo evictions. Signed-off-by: Friedrich Vock --- include/drm/ttm/ttm_device.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/drm/ttm/ttm_device.h

[RFC PATCH 08/18] drm/amdgpu: Don't try moving BOs to preferred domain before submit

2024-04-24 Thread Friedrich Vock
TTM now takes care of moving buffers to the best possible domain. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 - drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 191 + drivers/gpu/drm/amd/amdgpu/amdgpu_cs.h | 4 -

[RFC PATCH 09/18] drm/amdgpu: Don't mark VRAM as a busy placement for VRAM|GTT resources

2024-04-24 Thread Friedrich Vock
We will never try evicting things from VRAM for these resources anyway. This affects TTM buffer uneviction logic, which would otherwise try to move these buffers into VRAM (clashing with VRAM-only allocations). Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 13

[RFC PATCH 02/18] drm/ttm: Add per-BO eviction tracking

2024-04-24 Thread Friedrich Vock
Make each buffer object aware of whether it has been evicted or not. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 1 + include/drm/ttm/ttm_bo.h | 11 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c

[RFC PATCH 05/18] drm/ttm: Add option to evict no BOs in operation

2024-04-24 Thread Friedrich Vock
When undoing evictions because of decreased memory pressure, it makes no sense to try evicting other buffers. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 2 ++ include/drm/ttm/ttm_bo.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c

[RFC PATCH 06/18] drm/ttm: Add public buffer eviction/uneviction functions

2024-04-24 Thread Friedrich Vock
For now, they are only used internally inside TTM, but this will change with the introduction of dynamic buffer priorities. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 168 ++- include/drm/ttm/ttm_bo.h | 6 ++ 2 files changed, 172

[RFC PATCH 12/18] drm/ttm: Do not evict BOs with higher priority

2024-04-24 Thread Friedrich Vock
This makes buffer eviction significantly more stable by avoiding ping-ponging caused by low-priority buffers evicting high-priority buffers and vice versa. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 9 +++-- drivers/gpu/drm/ttm/ttm_resource.c | 5 +++--

[RFC PATCH 13/18] drm/ttm: Implement ttm_bo_update_priority

2024-04-24 Thread Friedrich Vock
Used to dynamically adjust priorities of buffers at runtime, to react to changes in memory pressure/usage patterns. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/ttm/ttm_bo.c | 17 + include/drm/ttm/ttm_bo.h | 2 ++ 2 files changed, 19 insertions(+) diff --git

[RFC PATCH 10/18] drm/amdgpu: Don't add GTT to initial domains after failing to allocate VRAM

2024-04-24 Thread Friedrich Vock
This adds GTT to the "preferred domains" of this buffer object, which will also prevent any attempts at moving the buffer back to VRAM if there is space. If VRAM is full, GTT will already be chosen as a fallback. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c| 4

Re: [RFC PATCH net-next v8 04/14] netdev: support binding dma-buf to netdevice

2024-04-24 Thread David Wei
On 2024-04-02 5:20 pm, Mina Almasry wrote: > Add a netdev_dmabuf_binding struct which represents the > dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to > rx queues on the netdevice. On the binding, the dma_buf_attach > & dma_buf_map_attachment will occur. The entries in the

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Dmitry Baryshkov
On Wed, 24 Apr 2024 at 19:45, Andy Shevchenko wrote: > > On Wed, Apr 24, 2024 at 07:34:54PM +0300, Dmitry Baryshkov wrote: > > On Wed, Apr 24, 2024 at 05:52:03PM +0300, Andy Shevchenko wrote: > > > On Wed, Apr 24, 2024 at 04:34:39PM +0300, Dmitry Baryshkov wrote: > > > > On Wed, 24 Apr 2024 at

Re: [PATCH v2] software node: Implement device_get_match_data fwnode callback

2024-04-24 Thread Andy Shevchenko
On Wed, Apr 24, 2024 at 07:34:54PM +0300, Dmitry Baryshkov wrote: > On Wed, Apr 24, 2024 at 05:52:03PM +0300, Andy Shevchenko wrote: > > On Wed, Apr 24, 2024 at 04:34:39PM +0300, Dmitry Baryshkov wrote: > > > On Wed, 24 Apr 2024 at 16:11, Andy Shevchenko > > > wrote: > > > > On Wed, Apr 24, 2024

Re: [PATCH 06/23] drm/xe/svm: Introduce a helper to build sg table from hmm range

2024-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2024 at 04:56:57PM +, Matthew Brost wrote: > > What "meta data" is there for a SVA mapping? The entire page table is > > an SVA. > > If we have allocated memory for GPU page tables in the range, This is encoded directly in the radix tree. > if range > has been invalidated,

[PATCH] drm/amd/display: Avoid -Wenum-float-conversion in add_margin_and_round_to_dfs_grainularity()

2024-04-24 Thread Nathan Chancellor
f (divider < DFS_DIVIDER_RANGE_2_START) { --- base-commit: d60dc4dd72412d5d9566fdf391e4202b05f88912 change-id: 20240424-amdgpu-display-dcn401-enum-float-conversion-c09cc1826ea2 Best regards, -- Nathan Chancellor

Re: [PATCH v3 1/7] dt-bindings: display: panel: Add himax hx83102 panel bindings

2024-04-24 Thread Conor Dooley
On Wed, Apr 24, 2024 at 10:30:04AM +0800, Cong Yang wrote: > In V1, discussed with Doug and Linus [1], we need break out as separate > driver for the himax83102-j02 controller. Beacuse "starry,himax83102-j02" > and in this series "BOE nv110wum-l60" "IVO t109nw41" panels use same > controller, they

[RFC PATCH 11/18] drm/ttm: Bump BO priority count

2024-04-24 Thread Friedrich Vock
For adjustable priorities by userspace, it is nice to have a bit more granularity. Signed-off-by: Friedrich Vock --- include/drm/ttm/ttm_resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h index

[RFC PATCH 16/18] drm/amdgpu: Implement SET_PRIORITY GEM op

2024-04-24 Thread Friedrich Vock
Used by userspace to adjust buffer priorities in response to changes in application demand and memory pressure. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 20 include/uapi/drm/amdgpu_drm.h | 1 + 2 files changed, 21 insertions(+)

[RFC PATCH 17/18] drm/amdgpu: Implement EVICTED_VRAM query

2024-04-24 Thread Friedrich Vock
Used by userspace to gauge the severity of memory overcommit and make prioritization decisions based on it. Used by userspace to gauge the severity of memory overcommit and make prioritization decisions based on it. Signed-off-by: Friedrich Vock --- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3

Re: [PATCH 02/10] pwm: Add SI-EN SN3112 PWM support

2024-04-24 Thread Konrad Dybcio
On 4/24/24 17:29, Xilin Wu via B4 Relay wrote: From: Junhao Xie Add a new driver for the SI-EN SN3112 12-channel 8-bit PWM LED controller. Signed-off-by: Junhao Xie --- [...] +static int sn3112_set_en_reg(struct sn3112 *priv, unsigned int channel, +bool

Re: [PATCH v8 0/6] drm/{i915,xe}: Convert fbdev to DRM client

2024-04-24 Thread Lucas De Marchi
On Tue, Apr 09, 2024 at 10:04:22AM GMT, Thomas Zimmermann wrote: (was: drm/i915: Convert fbdev to DRM client) Convert i915's fbdev code to struct drm_client. Replaces the current ad-hoc integration. The conversion includes a number of cleanups. Also update the xe driver accordingly. As with

[PATCH 04/10] drm/panel: Add driver for Synaptics TD4328 LCD panel

2024-04-24 Thread Xilin Wu via B4 Relay
From: Xilin Wu Add support for the 1920x1080 LCD panel driven by the Synaptics TD4328 IC, as found on AYN Odin 2. Co-developed-by: Junhao Xie Signed-off-by: Junhao Xie Signed-off-by: Xilin Wu --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile

[PATCH 02/10] pwm: Add SI-EN SN3112 PWM support

2024-04-24 Thread Xilin Wu via B4 Relay
From: Junhao Xie Add a new driver for the SI-EN SN3112 12-channel 8-bit PWM LED controller. Signed-off-by: Junhao Xie --- drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sn3112.c | 336 +++ 3 files changed, 347

[PATCH v3 0/6] Link off between frames for edp

2024-04-24 Thread Animesh Manna
Link Off Between Active Frames (LOBF) allows an eDP link to be turned Off and On durning long VBLANK durations without enabling any of the PSR/PSR2/PR modes of operation. Bspec: 71477 Note: These patches are not tested, sending early for review feedback. Signed-off-by: Animesh Manna Animesh

  1   2   >