[PATCH -next] drm/amd/display: check top_pipe_to_program pointer

2021-11-15 Thread Yang Li
Clang static analysis reports this error drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2870:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) { ^ top_pipe_

Re: [PATCH] fbdev: sh7760fb: document fallthrough cases

2021-11-15 Thread Geert Uytterhoeven
On Mon, Nov 15, 2021 at 7:33 AM Randy Dunlap wrote: > Fix fallthrough warnings in sh776fb.c: > > ../drivers/video/fbdev/sh7760fb.c: In function 'sh7760fb_get_color_info': > ../drivers/video/fbdev/sh7760fb.c:138:23: warning: this statement may fall > through [-Wimplicit-fallthrough=] > 138 |

Re: Questions about KMS flip

2021-11-15 Thread Michel Dänzer
On 2021-11-15 07:41, Lang Yu wrote: > On Fri, Nov 12, 2021 at 05:10:27PM +0100, Michel DDDnzer wrote: >> On 2021-11-12 16:03, Christian König wrote: >>> Am 12.11.21 um 15:30 schrieb Michel Dänzer: On 2021-11-12 15:29, Michel Dänzer wrote: > On 2021-11-12 13:47, Christian König wrote: >

[PATCH 00/11] dmaengine: kill off dma_slave_config->slave_id

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann I recently came across some new uses of the 'slave_id' field that I had (almost) removed a few years ago. There are no legitimate uses of this field in the kernel, only a few stale references and two drivers that abuse the field as a side-channel between the dmaengine driver a

[PATCH 01/11] ASoC: dai_dma: remove slave_id field

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann This field is never set, and serves no purpose, so remove it. Signed-off-by: Arnd Bergmann --- include/sound/dmaengine_pcm.h | 2 -- sound/core/pcm_dmaengine.c | 5 ++--- sound/soc/tegra/tegra20_spdif.c | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --

[PATCH 02/11] spi: pic32: stop setting dma_config->slave_id

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann Setting slave_id makes no sense with DT based probing, and should eventually get removed entirely. Address this driver by no longer setting the field here. I could not find which DMA driver is used on PIC32, if it's in the tree at all, but none of the obvious ones even care a

[PATCH 03/11] mmc: bcm2835: stop setting chan_config->slave_id

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann The field is not interpreted by the DMA engine driver, as all the data is passed from devicetree instead. Remove the assignment so the field can eventually be deleted. Signed-off-by: Arnd Bergmann --- drivers/mmc/host/bcm2835.c | 2 -- 1 file changed, 2 deletions(-) diff -

[PATCH 04/11] dmaengine: shdma: remove legacy slave_id parsing

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann The slave device is picked through either devicetree or a filter function, and any remaining out-of-tree drivers would have warned about this usage since 2015. Stop interpreting the field finally so it can be removed from the interface. Signed-off-by: Arnd Bergmann --- dri

[PATCH 05/11] dmaengine: pxa/mmp: stop referencing config->slave_id

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann The last driver referencing the slave_id on Marvell PXA and MMP platforms was the SPI driver, but this stopped doing so a long time ago, so the TODO from the earlier patch can no be removed. Fixes: b729bf34535e ("spi/pxa2xx: Don't use slave_id of dma_slave_config") Fixes: 13b

[PATCH 06/11] dmaengine: sprd: stop referencing config->slave_id

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann It appears that the code that reads the slave_id from the channel config was copied incorrectly from other drivers. Nothing ever sets this field on platforms that use this driver, so remove the reference. Signed-off-by: Arnd Bergmann --- drivers/dma/sprd-dma.c | 3 --- 1 fi

[PATCH 07/11] dmaengine: qcom-adm: stop abusing slave_id config

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann The slave_id was previously used to pick one DMA slave instead of another, but this is now done through the DMA descriptors in device tree. For the qcom_adm driver, the configuration is documented in the DT binding to contain a tuple of device identifier and a "crci" field, b

[PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann The display driver wants to pass a custom flag to the DMA engine driver, which it started doing by using the slave_id field that was traditionally used for a different purpose. As there is no longer a correct use for the slave_id field, it should really be removed, and the re

[PATCH 09/11] dmaengine: tegra20-apb: stop checking config->slave_id

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann Nothing sets the slave_id field any more, so stop accessing it to allow the removal of this field. Signed-off-by: Arnd Bergmann --- drivers/dma/tegra20-apb-dma.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb

[PATCH 10/11] staging: ralink-gdma: stop using slave_id config

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann Picking the connection between a DMA controller and its attached device is done through devicetree using the "dmas" property, which is implemented by the gdma driver, but it also allows overriding the "req" configuration with the slave_id field, as it was done in some linux-2.

[PATCH 11/11] dmaengine: remove slave_id config field

2021-11-15 Thread Arnd Bergmann
From: Arnd Bergmann All references to the slave_id field have been removed, so remove the field as well to prevent new references from creeping in again. Signed-off-by: Arnd Bergmann --- include/linux/dmaengine.h | 4 1 file changed, 4 deletions(-) diff --git a/include/linux/dmaengine.h

Re: [PATCH 04/11] dmaengine: shdma: remove legacy slave_id parsing

2021-11-15 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Mon, Nov 15, 2021 at 09:53:56AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The slave device is picked through either devicetree or a filter > function, and any remaining out-of-tree drivers would have warned > about this usage since 2015. > > Sto

Re: [PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field

2021-11-15 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Mon, Nov 15, 2021 at 09:54:00AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The display driver wants to pass a custom flag to the DMA engine driver, > which it started doing by using the slave_id field that was traditionally > used for a different

Re: [PATCH] drm: pre-fill getfb2 modifier array with INVALID

2021-11-15 Thread Simon Ser
On Thursday, November 11th, 2021 at 13:50, Ville Syrjälä wrote: > On Thu, Nov 11, 2021 at 10:10:54AM +, Simon Ser wrote: > > User-space shouldn't look up the modifier array when the modifier > > flag is missing, but at the moment no docs make this clear (working > > on it). Right now the mod

Re: [PATCH 11/11] dmaengine: remove slave_id config field

2021-11-15 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Mon, Nov 15, 2021 at 09:54:03AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > All references to the slave_id field have been removed, so > remove the field as well to prevent new references from > creeping in again. A rationale to explain why the sl

Re: Questions about KMS flip

2021-11-15 Thread Michel Dänzer
On 2021-11-15 10:04, Lang Yu wrote: > On Mon, Nov 15, 2021 at 09:38:47AM +0100, Michel DDDnzer wrote: >> On 2021-11-15 07:41, Lang Yu wrote: >>> On Fri, Nov 12, 2021 at 05:10:27PM +0100, Michel DDDnzer wrote: On 2021-11-12 16:03, Christian König wrote: > Am 12.11.21 um 15:30 schrieb Michel

[i-g-t 01/14] HAX: Get uapi headers to compile the IGT

2021-11-15 Thread Bhanuprakash Modem
Signed-off-by: Bhanuprakash Modem --- include/drm-uapi/drm.h | 10 ++ include/drm-uapi/drm_mode.h | 28 2 files changed, 38 insertions(+) diff --git a/include/drm-uapi/drm.h b/include/drm-uapi/drm.h index 5e54c3aa4c..9ca3dbe8e5 100644 --- a/include/drm-u

[i-g-t 00/14] Add IGT support for plane color management

2021-11-15 Thread Bhanuprakash Modem
>From the Plane Color Management feature design, userspace can take the smart blending decisions based on hardware supported plane color features to obtain an accurate color profile. These IGT patches extend the existing pipe color management tests to the plane level. Kernel implementation: https

[i-g-t 02/14] lib/igt_kms: Add plane color mgmt properties

2021-11-15 Thread Bhanuprakash Modem
Add support for Plane color management properties. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- lib/igt_kms.c | 5 + lib/igt_kms.h | 5 + 2 files changed, 10 insertions(+) diff --git a/lib/igt_kms.c b/lib/igt_kms.

[i-g-t 04/14] tests/kms_color: New subtests for Plane gamma

2021-11-15 Thread Bhanuprakash Modem
To verify Plane gamma, draw 3 gradient rectangles in red, green and blue, with a maxed out gamma LUT and verify we have the same CRC as drawing solid color rectangles. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- tests/kms

[i-g-t 03/14] kms_color_helper: Add helper functions for plane color mgmt

2021-11-15 Thread Bhanuprakash Modem
Add helper functions to support Plane color management properties. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- tests/kms_color_helper.c | 173 +++ tests/kms_color_helper.h | 29 +++

[i-g-t 05/14] tests/kms_color: New subtests for Plane degamma

2021-11-15 Thread Bhanuprakash Modem
To verify Plane degamma, draw 3 gradient rectangles in red, green and blue, with a maxed out degamma LUT and verify we have the same CRC as drawing solid color rectangles without degamma. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Bhanuprakash M

[i-g-t 07/14] tests/kms_color: New negative tests for plane level color mgmt

2021-11-15 Thread Bhanuprakash Modem
Negative check for: * plane gamma lut sizes * plane degamma lut sizes * plane ctm matrix sizes Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- tests/kms_color.c | 127 ++ 1 file

[i-g-t 06/14] tests/kms_color: New subtests for Plane CTM

2021-11-15 Thread Bhanuprakash Modem
To verify plane CTM, draw 3 rectangles using before colors with the ctm matrix applied and verify the CRC is equal to using after colors with an identify ctm matrix. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- tests/kms_c

[i-g-t 08/14] tests/kms_color_chamelium: New subtests for Plane gamma

2021-11-15 Thread Bhanuprakash Modem
To verify Plane gamma, draw 3 gradient rectangles in red, green and blue, with a maxed out gamma LUT and verify we have the same frame dump as drawing solid color rectangles. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Cc: Kunal Joshi Signed-off-by: Bhanupraka

[i-g-t 09/14] tests/kms_color_chamelium: New subtests for Plane degamma

2021-11-15 Thread Bhanuprakash Modem
To verify Plane degamma, draw 3 gradient rectangles in red, green and blue, with a maxed out degamma LUT and verify we have the same frame dump as drawing solid color rectangles with linear gamma LUT. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Cc: Kunal Joshi

[i-g-t 10/14] tests/kms_color_chamelium: New subtests for Plane CTM

2021-11-15 Thread Bhanuprakash Modem
To verify plane CTM, draw 3 rectangles using before colors with the ctm matrix applied and verify the frame dump is equal to using after colors with an identify ctm matrix. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Cc: Kunal Joshi Signed-off-by: Bhanuprakash

[i-g-t 12/14] kms_color_helper: Add helper functions to support logarithmic gamma mode

2021-11-15 Thread Bhanuprakash Modem
From: Mukunda Pramodh Kumar Add helper functions to support logarithmic gamma mode Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Mukunda Pramodh Kumar Signed-off-by: Bhanuprakash Modem --- tests/kms_color_helper.c | 127 +++

[i-g-t 11/14] lib/igt_kms: Add pipe color mgmt properties

2021-11-15 Thread Bhanuprakash Modem
From: Mukunda Pramodh Kumar Add support for Pipe color management properties. Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Mukunda Pramodh Kumar Signed-off-by: Bhanuprakash Modem --- lib/igt_kms.c | 1 + lib/igt_kms.h | 1 + 2 files changed,

[i-g-t 13/14] tests/kms_color: Extended IGT tests to support logarithmic gamma mode

2021-11-15 Thread Bhanuprakash Modem
From: Mukunda Pramodh Kumar Extended IGT tests to support logarithmic gamma mode on pipe Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Uma Shankar Signed-off-by: Mukunda Pramodh Kumar Signed-off-by: Bhanuprakash Modem --- tests/kms_color.c | 19 +++ 1 fi

[i-g-t 14/14] tests/kms_color_chamelium: Extended IGT tests to support logarithmic gamma mode

2021-11-15 Thread Bhanuprakash Modem
Extended IGT tests to support logarithmic gamma mode on pipe Cc: Harry Wentland Cc: Ville Syrjälä Cc: Juha-Pekka Heikkila Cc: Kunal Joshi Cc: Uma Shankar Signed-off-by: Mukunda Pramodh Kumar Signed-off-by: Bhanuprakash Modem --- tests/kms_color_chamelium.c | 40

Re: (subset) [PATCH] [PATCH v2] drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY

2021-11-15 Thread Maxime Ripard
On Mon, 8 Nov 2021 22:23:51 -0500, Julian Braha wrote: > When PHY_SUN6I_MIPI_DPHY is selected, and RESET_CONTROLLER > is not selected, Kbuild gives the following warning: > > WARNING: unmet direct dependencies detected for PHY_SUN6I_MIPI_DPHY > Depends on [n]: (ARCH_SUNXI [=n] || COMPILE_TEST [=

Re: [PATCH 03/11] mmc: bcm2835: stop setting chan_config->slave_id

2021-11-15 Thread nicolas saenz julienne
On Mon, 2021-11-15 at 09:53 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The field is not interpreted by the DMA engine driver, as all the data > is passed from devicetree instead. Remove the assignment so the field > can eventually be deleted. > > Signed-off-by: Arnd Bergmann > --- R

[Bug 215025] [amdgpu] Thinkpad A275 hangs on shutdown / screen does not turn on after reboot

2021-11-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215025 --- Comment #3 from Bjoern Franke (b...@nord-west.org) --- mainline 5.16rc1 is also affected. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.

[PATCH 0/1] Enable runtime pm autosuspend by default

2021-11-15 Thread Tilak Tangudu
Enable runtime pm autosuspend by default Signed-off-by: Tilak Tangudu Tilak Tangudu (1): drm/i915/rpm: Enable runtime pm autosuspend by default drivers/gpu/drm/i915/intel_runtime_pm.c | 4 1 file changed, 4 insertions(+) -- 2.25.1

[PATCH 1/1] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-15 Thread Tilak Tangudu
Enable runtime pm autosuspend by default. Signed-off-by: Tilak Tangudu --- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index eaf7688f517d..ef75f24288ef 100644 --

Re: [PATCH v6 7/7] drm/mediatek: Add mt8195 DisplayPort driver

2021-11-15 Thread Maxime Ripard
Hi, On Wed, Nov 10, 2021 at 02:06:23PM +0100, Guillaume Ranquet wrote: > From: Markus Schneider-Pargmann > > This patch adds a DisplayPort driver for the Mediatek mt8195 SoC and a > according phy driver mediatek-dp-phy. > > It supports both functional units on the mt8195, the embedded > Display

[Bug 215025] [amdgpu] Thinkpad A275 hangs on shutdown / screen does not turn on after reboot

2021-11-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215025 --- Comment #4 from Bjoern Franke (b...@nord-west.org) --- It seems it is https://gitlab.freedesktop.org/drm/amd/-/issues/1789 -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee o

Re: [PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field

2021-11-15 Thread Arnd Bergmann
On Mon, Nov 15, 2021 at 10:14 AM Laurent Pinchart wrote: > On Mon, Nov 15, 2021 at 09:54:00AM +0100, Arnd Bergmann wrote: > > @@ -1285,11 +1287,13 @@ static int xilinx_dpdma_config(struct dma_chan > > *dchan, > > spin_lock_irqsave(&chan->lock, flags); > > > > /* > > - * Abuse the

Re: [PATCH] drm: change logs to print connectors in the form CONNECTOR:id:name

2021-11-15 Thread Jani Nikula
On Sat, 13 Nov 2021, Claudio Suarez wrote: > The prefered way to log connectors is [CONNECTOR:id:name]. Change it in > drm core programs. > > Suggested-by: Ville Syrjälä > Signed-off-by: Claudio Suarez > --- > drivers/gpu/drm/drm_client_modeset.c | 51 ++-- > drivers/gpu

Re: [PATCH 10/11] staging: ralink-gdma: stop using slave_id config

2021-11-15 Thread Arnd Bergmann
On Mon, Nov 15, 2021 at 10:55 AM Sergio Paracuellos wrote: > On Mon, Nov 15, 2021 at 9:55 AM Arnd Bergmann wrote: > > --- > > drivers/staging/ralink-gdma/ralink-gdma.c | 12 +--- > > 1 file changed, 5 insertions(+), 7 deletions(-) > > This driver has been already deleted from the staging

Re: [PATCH] drm: change logs to print connectors in the form CONNECTOR:id:name

2021-11-15 Thread Jani Nikula
On Sun, 14 Nov 2021, Claudio Suarez wrote: > On Sat, Nov 13, 2021 at 09:39:46PM +0100, Sam Ravnborg wrote: >> Hi Claudio, >> >> On Sat, Nov 13, 2021 at 08:27:30PM +0100, Claudio Suarez wrote: >> > The prefered way to log connectors is [CONNECTOR:id:name]. Change it in >> > drm core programs. >> >

[PATCH] drm/msm/dp: remove deadcode on dpu_encoder_setup

2021-11-15 Thread Jackie Liu
From: Jackie Liu Nobody care about drm_enc on dpu_encoder_setup, cleanup. [...] *** CID 1493979: Possible Control flow issues (DEADCODE) /drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: 2186 in dpu_encoder_setup() 2180 2181return ret; 2182 2183 fail: 2184DPU_ERROR("fai

Re: [PATCH] drm: change logs to print connectors in the form CONNECTOR:id:name

2021-11-15 Thread Simon Ser
On Monday, November 15th, 2021 at 11:22, Jani Nikula wrote: > - Adding drm_dbg_connector() which would take drm_connector as context, > and do drm_dbg_kms() with the above prefix. This wouldn't work great in case multiple connectors/planes/etc are involved, or when drm_dbg_atomic() is used.

[PATCH v2 0/1] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-15 Thread Tilak Tangudu
Enable runtime pm autosuspend by default for all platforms Signed-off-by: Tilak Tangudu Tilak Tangudu (1): drm/i915/rpm: Enable runtime pm autosuspend by default drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.25.1

[PATCH v2 1/1] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-15 Thread Tilak Tangudu
v1: Enable runtime pm autosuspend by default for Gen12 and later versions. v2: Enable runtime pm autosuspend by default for all platforms(Syrjala Ville) Signed-off-by: Tilak Tangudu --- drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/dr

Re: [Intel-gfx] [PATCH] drm/i915/execlists: Weak parallel submission support for execlists

2021-11-15 Thread Tvrtko Ursulin
On 12/11/2021 17:59, Matthew Brost wrote: On Fri, Nov 12, 2021 at 02:13:50PM +, Tvrtko Ursulin wrote: On 11/11/2021 16:49, Matthew Brost wrote: On Mon, Nov 01, 2021 at 10:35:09AM +, Tvrtko Ursulin wrote: On 27/10/2021 21:10, Matthew Brost wrote: On Wed, Oct 27, 2021 at 01:04:49PM

Re: [PATCH] drm: change logs to print connectors in the form CONNECTOR:id:name

2021-11-15 Thread Jani Nikula
On Mon, 15 Nov 2021, Simon Ser wrote: > On Monday, November 15th, 2021 at 11:22, Jani Nikula > wrote: > >> - Adding drm_dbg_connector() which would take drm_connector as context, >> and do drm_dbg_kms() with the above prefix. > > This wouldn't work great in case multiple connectors/planes/etc

Re: [PATCH 01/11] ASoC: dai_dma: remove slave_id field

2021-11-15 Thread Arnd Bergmann
On Mon, Nov 15, 2021 at 11:14 AM Lars-Peter Clausen wrote: > > On 11/15/21 9:53 AM, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > This field is never set, and serves no purpose, so remove it. > > I agree that we should remove it. Its been legacy support code for a > while, but the descript

Re: [PATCH v3 3/6] drm/i915/ttm: Move the i915_gem_obj_copy_ttm() function

2021-11-15 Thread Matthew Auld
On 14/11/2021 11:12, Thomas Hellström wrote: Move the i915_gem_obj_copy_ttm() function to i915_gem_ttm_move.h. This will help keep a number of functions static when introducing async moves. Signed-off-by: Thomas Hellström Reviewed-by: Matthew Auld

Re: [PATCH 01/11] ASoC: dai_dma: remove slave_id field

2021-11-15 Thread Lars-Peter Clausen
On 11/15/21 9:53 AM, Arnd Bergmann wrote: From: Arnd Bergmann This field is never set, and serves no purpose, so remove it. I agree that we should remove it. Its been legacy support code for a while, but the description that there is no user is not right. The tegra20_spdif driver obviously

Re: [PATCH v3 4/6] drm/i915/ttm: Break refcounting loops at device region unref time

2021-11-15 Thread Matthew Auld
On 14/11/2021 11:12, Thomas Hellström wrote: There is an interesting refcounting loop: struct intel_memory_region has a struct ttm_resource_manager, ttm_resource_manager->move may hold a reference to i915_request, i915_request may hold a reference to intel_context, intel_context may hold a refere

Re: [PATCH] drm/i915/dp: Perform 30ms delay after source OUI write

2021-11-15 Thread Jani Nikula
On Fri, 12 Nov 2021, Lyude Paul wrote: > While working on supporting the Intel HDR backlight interface, I noticed > that there's a couple of laptops that will very rarely manage to boot up > without detecting Intel HDR backlight support - even though it's supported > on the system. One example of

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-11-15 Thread Andy Shevchenko
On Tue, Oct 05, 2021 at 02:34:23PM -0700, Lucas De Marchi wrote: > On Mon, Feb 15, 2021 at 04:21:35PM +0200, Andy Shevchenko wrote: > > We have already few similar implementation and a lot of code that can > > benefit > > of the yesno() helper. Consolidate yesno() helpers under string.h hood. >

Re: [RESEND PATCH v2 04/13] backlight: qcom-wled: Fix off-by-one maximum with default num_strings

2021-11-15 Thread Daniel Thompson
On Fri, Nov 12, 2021 at 10:43:37PM +0100, Marijn Suijten wrote: > On 2021-11-12 13:35:03, Marijn Suijten wrote: > > On 2021-11-12 12:08:39, Daniel Thompson wrote: > > > On Fri, Nov 12, 2021 at 01:26:57AM +0100, Marijn Suijten wrote: > > > > When not specifying num-strings in the DT the default is u

[PATCH 0/6] drm/vc4: kms: Misc fixes for HVS commits

2021-11-15 Thread Maxime Ripard
Hi, The conversion to DRM commit helpers (f3c420fe19f8, "drm/vc4: kms: Convert to atomic helpers") introduced a number of issues in corner cases, most of them showing themselves in the form of either a vblank timeout or use-after-free error. These patches should fix most of them, some of them sti

[PATCH 2/6] drm/vc4: kms: Fix return code check

2021-11-15 Thread Maxime Ripard
The HVS global state functions return an error pointer, but in most cases we check if it's NULL, possibly resulting in an invalid pointer dereference. Fixes: 9ec03d7f1ed3 ("drm/vc4: kms: Wait on previous FIFO users before a commit") Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_kms.c

[PATCH 1/6] drm/vc4: kms: Wait for the commit before increasing our clock rate

2021-11-15 Thread Maxime Ripard
Several DRM/KMS atomic commits can run in parallel if they affect different CRTC. These commits share the global HVS state, so we have some code to make sure we run commits in sequence. This synchronization code is one of the first thing that runs in vc4_atomic_commit_tail(). Another constraints w

[PATCH 3/6] drm/vc4: kms: Add missing drm_crtc_commit_put

2021-11-15 Thread Maxime Ripard
Commit 9ec03d7f1ed3 ("drm/vc4: kms: Wait on previous FIFO users before a commit") introduced a global state for the HVS, with each FIFO storing the current CRTC commit so that we can properly synchronize commits. However, the refcounting was off and we thus ended up leaking the drm_crtc_commit str

[PATCH 4/6] drm/vc4: kms: Clear the HVS FIFO commit pointer once done

2021-11-15 Thread Maxime Ripard
Commit 9ec03d7f1ed3 ("drm/vc4: kms: Wait on previous FIFO users before a commit") introduced a wait on the previous commit done on a given HVS FIFO. However, we never cleared that pointer once done. Since drm_crtc_commit_put can free the drm_crtc_commit structure directly if we were the last user,

[PATCH 5/6] drm/vc4: kms: Don't duplicate pending commit

2021-11-15 Thread Maxime Ripard
Our HVS global state, when duplicated, will also copy the pointer to the drm_crtc_commit (and increase the reference count) for each FIFO if the pointer is not NULL. However, our atomic_setup function will overwrite that pointer without putting the reference back leading to a memory leak. Since t

[PATCH 6/6] drm/vc4: kms: Fix previous HVS commit wait

2021-11-15 Thread Maxime Ripard
Our current code is supposed to serialise the commits by waiting for all the drm_crtc_commits associated to the previous HVS state. However, assuming we have two CRTCs running and being configured and we configure each one alternatively, we end up in a situation where we're not waiting at all. In

Re: [BUG] VC4 DRM waiting for flip down makes UI freeze a while with kernel 5.15

2021-11-15 Thread Maxime Ripard
Hi, On Fri, Nov 12, 2021 at 11:22:49AM +0800, Jian-Hong Pan wrote: > Hi, > > I tested Linux mainline kernel 5.15 (aarch64) with enabled VC4 on RPi 4B. I > notice UI freezes a while (about 10 seconds) some times. > > The kernel shows the error message during the time: > > [drm:drm_crtc_commit_wa

Re: [PATCH v1 1/1] drm: Replace kernel.h with the necessary inclusions

2021-11-15 Thread Andy Shevchenko
On Wed, Nov 10, 2021 at 05:39:33PM +0100, Thomas Zimmermann wrote: > Am 10.11.21 um 17:34 schrieb Andy Shevchenko: > > On Wed, Nov 10, 2021 at 3:55 PM Thomas Zimmermann > > wrote: > > > Am 10.11.21 um 11:24 schrieb Andy Shevchenko: ... > > > > +#include > > > > > > I built this patch on a rec

Re: [PATCH] backlight: ili922x: fix kernel-doc warnings & notation

2021-11-15 Thread Daniel Thompson
On Sun, Nov 14, 2021 at 07:39:25PM -0800, Randy Dunlap wrote: > Convert function-like macro comments to kernel-doc notation and > fix other kernel-doc warnings: > > drivers/video/backlight/ili922x.c:85: warning: This comment starts with > '/**', but isn't a kernel-doc comment. Refer > Documentat

Re: [PATCH] dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support

2021-11-15 Thread Christian König
Am 13.11.21 um 07:22 schrieb Jianqun Xu: Add DMA_BUF_IOCTL_SYNC_PARTIAL support for user to sync dma-buf with offset and len. You have not given an use case for this so it is a bit hard to review. And from the existing use cases I don't see why this should be necessary. Even worse from the e

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-11-15 Thread Jani Nikula
On Mon, 15 Nov 2021, Andy Shevchenko wrote: > On Tue, Oct 05, 2021 at 02:34:23PM -0700, Lucas De Marchi wrote: >> On Mon, Feb 15, 2021 at 04:21:35PM +0200, Andy Shevchenko wrote: >> > We have already few similar implementation and a lot of code that can >> > benefit >> > of the yesno() helper. C

Re: [Intel-gfx] [PATCH v2 1/1] drm/i915/rpm: Enable runtime pm autosuspend by default

2021-11-15 Thread Jani Nikula
On Mon, 15 Nov 2021, Tilak Tangudu wrote: The actual commit message with explanations why it will work now and didn't work before go here. Just the changelog will not be enough. BR, Jani. > v1: Enable runtime pm autosuspend by default for Gen12 > and later versions. > > v2: Enable runtime pm a

Re: [PATCH] drm/amd/amdgpu: cleanup the code style a bit

2021-11-15 Thread Christian König
Am 15.11.21 um 08:07 schrieb Bernard Zhao: This change is to cleanup the code style a bit. To be honest I think the old style looked better. It took me a moment to validate this now. What you could to instead is to have goto style error handling which would make this a bit more cleaner I th

Re: [PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field

2021-11-15 Thread Laurent Pinchart
Hi Arnd, On Mon, Nov 15, 2021 at 11:21:30AM +0100, Arnd Bergmann wrote: > On Mon, Nov 15, 2021 at 10:14 AM Laurent Pinchart wrote: > > On Mon, Nov 15, 2021 at 09:54:00AM +0100, Arnd Bergmann wrote: > > > @@ -1285,11 +1287,13 @@ static int xilinx_dpdma_config(struct dma_chan > > > *dchan, > > >

[PATCH 0/3] drm/i915, agp/intel-ggt: clean up includes

2021-11-15 Thread Jani Nikula
Took Andy's patch [1] and expanded on it a bit. BR, Jani. [1] https://patchwork.freedesktop.org/patch/msgid/2020102857.59604-1-andriy.shevche...@linux.intel.com Cc: Andy Shevchenko Andy Shevchenko (1): agp/intel-gtt: Replace kernel.h with the necessary inclusions Jani Nikula (2): dr

[PATCH 1/3] drm/i915: include intel-gtt.h only where needed

2021-11-15 Thread Jani Nikula
Only intel_gt.c and intel_ggtt.c need the interface. Cc: Andy Shevchenko Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 1 + drivers/gpu/drm/i915/gt/intel_gt.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --gi

[PATCH 2/3] agp/intel-gtt: Replace kernel.h with the necessary inclusions

2021-11-15 Thread Jani Nikula
From: Andy Shevchenko When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Andy Shevchenko Signed-off-by: Jani Nikula --- in

[PATCH 3/3] agp/intel-gtt: reduce intel-gtt dependencies more

2021-11-15 Thread Jani Nikula
Don't include stuff on behalf of users if they're not strictly necessary for the header. Cc: Andy Shevchenko Signed-off-by: Jani Nikula --- drivers/char/agp/intel-gtt.c | 1 + drivers/gpu/drm/i915/gt/intel_ggtt.c | 1 + include/drm/intel-gtt.h | 3 +-- 3 files changed, 3 in

Re: [PATCH 0/3] drm/i915, agp/intel-ggt: clean up includes

2021-11-15 Thread Jani Nikula
On Mon, 15 Nov 2021, Jani Nikula wrote: > Took Andy's patch [1] and expanded on it a bit. > > BR, > Jani. > > > [1] > https://patchwork.freedesktop.org/patch/msgid/2020102857.59604-1-andriy.shevche...@linux.intel.com > > Cc: Andy Shevchenko > > Andy Shevchenko (1): > agp/intel-gtt: Replace

[PATCH 1/3] drm/cma-helper: Move driver and file ops to the end of header

2021-11-15 Thread Thomas Zimmermann
Restructure the header file for CMA helpers by moving declarations for driver and file operations to the end of the file. No functional changes. Signed-off-by: Thomas Zimmermann --- include/drm/drm_gem_cma_helper.h | 114 --- 1 file changed, 60 insertions(+), 54 delet

[PATCH 0/3] drm/cma-helper: Clean up public interface

2021-11-15 Thread Thomas Zimmermann
Convert GEM CMA functions to accept struct drm_gem_cma_object, provide small wrappers for GEM object callbacks and update all users. Brings up the interface to the pattern used in SHMEM and VRAM helpers. Converting all GEM object functions to use drm_gem_cma_object enables type checking by the C c

[PATCH 2/3] drm/cma-helper: Export dedicated wrappers for GEM object functions

2021-11-15 Thread Thomas Zimmermann
Wrap GEM CMA functions for struct drm_gem_object_funcs and update all callers. This will allow for an update of the public interfaces of the GEM CMA helper library. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_gem_cma_helper.c | 23 drivers/gpu/drm/rcar-du/rcar_du_kms.c | 1

[PATCH 3/3] drm/cma-helper: Pass GEM CMA object in public interfaces

2021-11-15 Thread Thomas Zimmermann
Change all GEM CMA object functions that receive a GEM object of type struct drm_gem_object to expect an object of type struct drm_gem_cma_object instead. This change reduces the number of upcasts from struct drm_gem_object by moving them into callers. The C compiler can now verify that the GEM CM

答复: [PATCH] drm/amd/amdgpu: cleanup the code style a bit

2021-11-15 Thread 赵军奎
-邮件原件- 发件人: bern...@vivo.com 代表 Christian K?nig 发送时间: 2021年11月15日 19:49 收件人: 赵军奎 ; Alex Deucher ; Christian König ; Pan, Xinhui ; David Airlie ; Daniel Vetter ; Jingwen Chen ; Candice Li ; John Clements ; Monk liu ; Peng Ju Zhou ; Jiawei Gu ; Bokun Zhang ; Zhigang Luo ; Lee Jones ;

Re: Questions about KMS flip

2021-11-15 Thread Michel Dänzer
On 2021-11-15 12:31, Lang Yu wrote: > On Mon, Nov 15, 2021 at 10:49:39AM +0100, Michel DDDnzer wrote: >> On 2021-11-15 10:04, Lang Yu wrote: >>> On Mon, Nov 15, 2021 at 09:38:47AM +0100, Michel DDDnzer wrote: On 2021-11-15 07:41, Lang Yu wrote: > On Fri, Nov 12, 2021 at 05:10:27PM +0100, M

[PATCH v2] drm/amd/amdgpu: cleanup the code style a bit

2021-11-15 Thread Bernard Zhao
This change is to cleanup the code style a bit. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

Re: [PATCH] drm: document DRM_IOCTL_MODE_GETFB2

2021-11-15 Thread Simon Ser
On Thursday, November 11th, 2021 at 12:50, Daniel Stone wrote: > In fairness it is perfectly clear, it's just that I never considered > calling it without master/admin because why would you ever do that? FWIW, drm_info does it to display the current buffers metadata. Pretty useful when debuggin

Re: [PATCH 01/11] ASoC: dai_dma: remove slave_id field

2021-11-15 Thread Lars-Peter Clausen
On 11/15/21 11:42 AM, Arnd Bergmann wrote: On Mon, Nov 15, 2021 at 11:14 AM Lars-Peter Clausen wrote: On 11/15/21 9:53 AM, Arnd Bergmann wrote: From: Arnd Bergmann This field is never set, and serves no purpose, so remove it. I agree that we should remove it. Its been legacy support code fo

Re: [PATCH 02/13] drm/connector: Add helper to check if a mode requires scrambling

2021-11-15 Thread Maxime Ripard
On Mon, Nov 08, 2021 at 07:55:00PM +0200, Ville Syrjälä wrote: > On Mon, Nov 08, 2021 at 04:58:34PM +0100, Maxime Ripard wrote: > > On Fri, Nov 05, 2021 at 08:14:04PM +0200, Ville Syrjälä wrote: > > > On Fri, Nov 05, 2021 at 07:02:30PM +0100, Daniel Vetter wrote: > > > > On Thu, Nov 04, 2021 at 05:

Re: [PATCH v3 2/6] drm/i915: Add support for asynchronous moving fence waiting

2021-11-15 Thread Matthew Auld
On 14/11/2021 11:12, Thomas Hellström wrote: From: Maarten Lankhorst For now, we will only allow async migration when TTM is used, so the paths we care about are related to TTM. The mmap path is handled by having the fence in ttm_bo->moving, when pinning, the binding only becomes available aft

Re: [PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field

2021-11-15 Thread Arnd Bergmann
On Mon, Nov 15, 2021 at 12:49 PM Laurent Pinchart wrote: > On Mon, Nov 15, 2021 at 11:21:30AM +0100, Arnd Bergmann wrote: > > On Mon, Nov 15, 2021 at 10:14 AM Laurent Pinchart wrote: > > > On Mon, Nov 15, 2021 at 09:54:00AM +0100, Arnd Bergmann wrote: > > > > @@ -1285,11 +1287,13 @@ static int xil

Re: [PATCH v3 1/6] drm/i915: Add functions to set/get moving fence

2021-11-15 Thread Matthew Auld
On 14/11/2021 11:12, Thomas Hellström wrote: From: Maarten Lankhorst We want to get rid of i915_vma tracking to simplify the code and lifetimes. Add a way to set/put the moving fence, in preparation for removing the tracking. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/gem/i91

Re: [PATCH v3 2/6] drm/i915: Add support for asynchronous moving fence waiting

2021-11-15 Thread Thomas Hellström
On 11/15/21 13:36, Matthew Auld wrote: On 14/11/2021 11:12, Thomas Hellström wrote: From: Maarten Lankhorst For now, we will only allow async migration when TTM is used, so the paths we care about are related to TTM. The mmap path is handled by having the fence in ttm_bo->moving, when pinni

Re: [PATCH v3 1/6] drm/i915: Add functions to set/get moving fence

2021-11-15 Thread Thomas Hellström
On 11/15/21 13:39, Matthew Auld wrote: On 14/11/2021 11:12, Thomas Hellström wrote: From: Maarten Lankhorst We want to get rid of i915_vma tracking to simplify the code and lifetimes. Add a way to set/put the moving fence, in preparation for removing the tracking. Signed-off-by: Maarten Lan

[PATCH 0/3] drm: Make DRM hashtable legacy

2021-11-15 Thread Thomas Zimmermann
Clean up the last non-legacy users of DRM's hashtable code and put the code behind CONFIG_DRM_LEGACY. TTM only includes the header file, but does not use the hashtable. The vmwgfx driver uses the hashtable internally. Copy the DRM code into the driver. A later patchset should probably update vmwgf

[PATCH 2/3] drm/vmwgfx: Copy DRM hash-table code into driver

2021-11-15 Thread Thomas Zimmermann
Besides some legacy code, vmwgfx is the only user of DRM's hash- table implementation. Copy the code into the driver, so that the core code can be retired. No functional changes. However, the real solution for vmwgfx is to use Linux' generic hash-table functions. Signed-off-by: Thomas Zimmermann

[PATCH 1/3] drm/ttm: Don't include drm_hashtab.h

2021-11-15 Thread Thomas Zimmermann
Remove the include statement for drm_hashtab.h. It's not required by TTM. Signed-off-by: Thomas Zimmermann --- include/drm/ttm/ttm_bo_api.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index cd785cfa3123..c17b2df9178b 100644 --- a

[PATCH 3/3] drm: Declare hashtable as legacy

2021-11-15 Thread Thomas Zimmermann
The DRM hashtable code is only used by internal functions for legacy UMS drivers. Move the implementation behind CONFIG_DRM_LEGACY and the declarations into legacy header files. Unexport the symbols. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/Makefile | 6 +-- drivers/gpu/drm/drm

Re: [PATCH 08/11] dmaengine: xilinx_dpdma: stop using slave_id field

2021-11-15 Thread Laurent Pinchart
Hi Arnd, On Mon, Nov 15, 2021 at 01:38:07PM +0100, Arnd Bergmann wrote: > On Mon, Nov 15, 2021 at 12:49 PM Laurent Pinchart wrote: > > On Mon, Nov 15, 2021 at 11:21:30AM +0100, Arnd Bergmann wrote: > > > On Mon, Nov 15, 2021 at 10:14 AM Laurent Pinchart wrote: > > > > On Mon, Nov 15, 2021 at 09:54

Re: [PATCH 03/11] mmc: bcm2835: stop setting chan_config->slave_id

2021-11-15 Thread Ulf Hansson
On Mon, 15 Nov 2021 at 09:55, Arnd Bergmann wrote: > > From: Arnd Bergmann > > The field is not interpreted by the DMA engine driver, as all the data > is passed from devicetree instead. Remove the assignment so the field > can eventually be deleted. > > Signed-off-by: Arnd Bergmann Acked-by: U

  1   2   3   >