Re: [PATCH v4 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
On Fri, 06 Jan 2023 06:43:35 +0530, kernel test robot wrote > Hi Siddh, > > Thank you for the patch! Perhaps something to improve: Yes, I sent the rectification as a reply to this patch. [1] Reviewers may please take note. Thanks, Siddh [1]

Re: [PATCH] drm/msm: Set preferred depth.

2023-01-05 Thread Dmitry Baryshkov
On 06/01/2023 09:16, Steev Klimaszewski wrote: As of commit 37c90d589dc0 ("drm/fb-helper: Fix single-probe color-format selection"), if no supported color formats are found, it tries to use the driver provided default, which msm didn't have set and leads to the following output: msm_dpu

[PATCH] drm/msm: Set preferred depth.

2023-01-05 Thread Steev Klimaszewski
As of commit 37c90d589dc0 ("drm/fb-helper: Fix single-probe color-format selection"), if no supported color formats are found, it tries to use the driver provided default, which msm didn't have set and leads to the following output: msm_dpu ae01000.display-controller: [drm] bpp/depth value of

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Thomas Zimmermann
Hi Am 05.01.23 um 19:22 schrieb Daniel Vetter: On Thu, 5 Jan 2023 at 18:48, Maíra Canal wrote: On 1/5/23 12:26, Daniel Vetter wrote: On Tue, Jan 03, 2023 at 09:53:23AM -0300, Maíra Canal wrote: Currently, drm_gem_fb_create() doesn't check if the pixel format is supported, which can lead to

Re: [PATCH 1/2] drm/atomic: Allow vblank-enabled + self-refresh "disable"

2023-01-05 Thread Greg KH
On Thu, Jan 05, 2023 at 05:40:17PM -0800, Brian Norris wrote: > The self-refresh helper framework overloads "disable" to sometimes mean > "go into self-refresh mode," and this mode activates automatically > (e.g., after some period of unchanging display output). In such cases, > the display pipe

[PATCH v14 6/6] MAINTAINERS: add maintainer for i.MX8qxp DPU DRM driver

2023-01-05 Thread Liu Ying
Add myself as the maintainer of the i.MX8qxp DPU DRM driver. Acked-by: Laurentiu Palcu Signed-off-by: Liu Ying --- v11->v14: * No change. v10->v11: * Rebase upon v6.0-rc1. v9->v10: * Add Laurentiu's A-b tag. v1->v9: * No change. MAINTAINERS | 9 + 1 file changed, 9 insertions(+)

[PATCH v14 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state

2023-01-05 Thread Liu Ying
Artificially use 'plane' and 'old_plane_state' to avoid 'not used' warning. The precedent has already been set by other macros in the same file. Acked-by: Daniel Vetter Signed-off-by: Liu Ying --- v6->v14: * No change. v5->v6: * Fix commit message typo - s/Artifically/Artificially/ v4->v5: *

[PATCH v14 2/6] dt-bindings: display: imx: Add i.MX8qxp/qm PRG binding

2023-01-05 Thread Liu Ying
This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Gasket. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v4->v14: * No change. v3->v4: * Improve compatible property by using enum instead of oneOf+const. (Rob) * Add Rob's R-b tag. v2->v3: * No change. v1->v2: * Use new

[PATCH v14 3/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPR channel binding

2023-01-05 Thread Liu Ying
This patch adds bindings for i.MX8qxp/qm Display Prefetch Resolve Channel. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v10->v14: * No change. v9->v10: * Add Rob's R-b tag. v8->v9: * Reference 'interrupts-extended' schema instead of 'interrupts' to require an additional

[PATCH v14 1/6] dt-bindings: display: imx: Add i.MX8qxp/qm DPU binding

2023-01-05 Thread Liu Ying
This patch adds bindings for i.MX8qxp/qm Display Processing Unit. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v7->v14: * No change. v6->v7: * Add Rob's R-b tag back. v5->v6: * Use graph schema. So, drop Rob's R-b tag as review is needed. v4->v5: * No change. v3->v4: * Improve

[PATCH v14 0/6] drm/imx: Introduce i.MX8qm/qxp DPU DRM

2023-01-05 Thread Liu Ying
Hi, This is the v14 series to introduce i.MX8qm/qxp Display Processing Unit(DPU) DRM support. DPU is comprised of a blit engine for 2D graphics, a display controller and a command sequencer. Outside of DPU, optional prefetch engines can fetch data from memory prior to some DPU fetchunits of

Re: [RFC PATCH v3 0/3] Support for Solid Fill Planes

2023-01-05 Thread Dmitry Baryshkov
On Fri, 6 Jan 2023 at 02:38, Jessica Zhang wrote: > > > > On 1/5/2023 3:33 AM, Daniel Vetter wrote: > > On Wed, Jan 04, 2023 at 03:40:33PM -0800, Jessica Zhang wrote: > >> Introduce and add support for a solid_fill property. When the solid_fill > >> property is set, and the framebuffer is set to

Re: [PATCH v7 20/45] drm/amd: Parse both v1 and v2 TA microcode headers using same function

2023-01-05 Thread Lazar, Lijo
On 1/5/2023 10:31 PM, Mario Limonciello wrote: Several IP versions duplicate code and can't use the common helpers. Move this code into a single function so that the helpers can be used. Signed-off-by: Mario Limonciello --- v6->v7: * Drop tags * Only set

[PATCH 2/2] drm/panel: boe-tv101wum-nl6: Reduce lcm_reset to send initial code time

2023-01-05 Thread xinlei.lee
From: Xinlei Lee Since the panel spec stipulates that the time from lcm_reset to DSI to send the initial code should be greater than 6ms and less than 40ms, so reduce the delay before sending the initial code and avoid panel exceptions. Fixes: a869b9db7adf ("drm/panel: support for boe

[PATCH 0/2]Reduce lcm_reset to DSI LP11 send cmd time

2023-01-05 Thread xinlei.lee
From: Xinlei Lee The panel spec stipulates that after lcm_reset is pulled high, cmd should be sent to initialize the panel. Within the allowable range of the DSI spec, this time needs to be reduced to avoid panel exceptions. Xinlei Lee (2): drm/mediatek: dsi: Reduce the time of dsi from LP11

[PATCH 1/2] drm/mediatek: dsi: Reduce the time of dsi from LP11 to sending cmd

2023-01-05 Thread xinlei.lee
From: Xinlei Lee According to Figure 16 Turnaround Procedure on page 36 in [1], you can see the status of LP-00 -> LP10 -> LP11. This state can correspond to the state of DSI from LP00 -> LP11 in mtk_dsi_lane_ready function in mtk_dsi.c. LP-00 -> LP10 -> LP11 takes about 2*TLPX time (refer to

[PATCH] drm/panel: boe-tv101wum-nl6: Ensure DSI writes succeed during disable

2023-01-05 Thread Stephen Boyd
The unprepare sequence has started to fail after moving to panel bridge code in the msm drm driver (commit 007ac0262b0d ("drm/msm/dsi: switch to DRM_PANEL_BRIDGE")). You'll see messages like this in the kernel logs: panel-boe-tv101wum-nl6 ae94000.dsi.0: failed to set panel off: -22 This is

[PATCH] drm/msm/dsi: Add missing check for alloc_ordered_workqueue

2023-01-05 Thread Jiasheng Jiang
Add check for the return value of alloc_ordered_workqueue as it may return NULL pointer and cause NULL pointer dereference. Moreover, change the "return ret" into "goto fail" in order to be consistent with the others. Fixes: a689554ba6ed ("drm/msm: Initial add DSI connector support") Fixes:

[PATCH] drm/msm/hdmi: Add missing check for alloc_ordered_workqueue

2023-01-05 Thread Jiasheng Jiang
Add check for the return value of alloc_ordered_workqueue as it may return NULL pointer and cause NULL pointer dereference in `hdmi_hdcp.c` and `hdmi_hpd.c`. Fixes: c6a57a50ad56 ("drm/msm/hdmi: add hdmi hdcp support (V3)") Signed-off-by: Jiasheng Jiang --- drivers/gpu/drm/msm/hdmi/hdmi.c | 4

Re: renesas/master bisection: igt-kms-rockchip.kms_vblank.pipe-A-wait-forked on rk3399-gru-kevin

2023-01-05 Thread Brian Norris
On Thu, Jan 05, 2023 at 04:59:55PM -0800, Brian Norris wrote: > On Wed, Jan 04, 2023 at 10:11:46AM +0100, Michel Dänzer wrote: > > On 1/4/23 03:11, Brian Norris wrote: > > > On Tue, Jan 03, 2023 at 07:04:00PM +0100, Michel Dänzer wrote: > > >> On 12/21/22 23:02, Brian Norris wrote: > > >>> 3.

[PATCH 2/2] drm/rockchip: vop: Leave vblank enabled in self-refresh

2023-01-05 Thread Brian Norris
If we disable vblank when entering self-refresh, vblank APIs (like DRM_IOCTL_WAIT_VBLANK) no longer work. But user space is not aware when we enter self-refresh, so this appears to be an API violation -- that DRM_IOCTL_WAIT_VBLANK fails with EINVAL whenever the display is idle and enters

[PATCH 1/2] drm/atomic: Allow vblank-enabled + self-refresh "disable"

2023-01-05 Thread Brian Norris
The self-refresh helper framework overloads "disable" to sometimes mean "go into self-refresh mode," and this mode activates automatically (e.g., after some period of unchanging display output). In such cases, the display pipe is still considered "on", and user-space is not aware that we went into

[PATCH] drm/msm: Add missing check and destroy for alloc_ordered_workqueue

2023-01-05 Thread Jiasheng Jiang
Add check for the return value of alloc_ordered_workqueue as it may return NULL pointer. Moreover, use the destroy_workqueue in the later fails in order to avoid memory leak. Fixes: c8afe684c95c ("drm/msm: basic KMS driver for snapdragon") Signed-off-by: Jiasheng Jiang ---

[PATCH -next] drm/amdgpu: clean up some inconsistent indentings

2023-01-05 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:65 amdgpu_gem_fault() warn: inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3639 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: renesas/master bisection: igt-kms-rockchip.kms_vblank.pipe-A-wait-forked on rk3399-gru-kevin

2023-01-05 Thread Brian Norris
On Wed, Jan 04, 2023 at 10:11:46AM +0100, Michel Dänzer wrote: > On 1/4/23 03:11, Brian Norris wrote: > > On Tue, Jan 03, 2023 at 07:04:00PM +0100, Michel Dänzer wrote: > >> On 12/21/22 23:02, Brian Norris wrote: > > > >>> 3. leave vblank enabled even in the presence of PSR > > > > I'm leaning

Re: [RFC PATCH v3 0/3] Support for Solid Fill Planes

2023-01-05 Thread Jessica Zhang
On 1/5/2023 3:33 AM, Daniel Vetter wrote: On Wed, Jan 04, 2023 at 03:40:33PM -0800, Jessica Zhang wrote: Introduce and add support for a solid_fill property. When the solid_fill property is set, and the framebuffer is set to NULL, memory fetch will be disabled. In addition, loosen the NULL

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Consolidate TLB invalidation flow

2023-01-05 Thread Matt Roper
On Thu, Jan 05, 2023 at 01:06:37PM +, Tvrtko Ursulin wrote: > > On 04/01/2023 17:41, Matt Roper wrote: > > On Wed, Jan 04, 2023 at 10:08:29AM +, Tvrtko Ursulin wrote: > > > > > > On 03/01/2023 19:57, Matt Roper wrote: > > > > On Mon, Dec 19, 2022 at 05:10:02PM +0100, Andrzej Hajda wrote:

linux-next: duplicate patches in the amdgpu tree

2023-01-05 Thread Stephen Rothwell
Hi all, The following commits are also in the drm-fixes tree as a different commits (but the same patches): 878a3c004c0e ("drm/amd/display: Uninitialized variables causing 4k60 UCLK to stay at DPM1 and not DPM0") 4243c84aa082 ("Revert "drm/amd/display: Enable Freesync Video Mode by

linux-next: manual merge of the drm-misc tree with Linus' tree

2023-01-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/tests/drm_format_helper_test.c between commit: a52a5451f43b ("kunit: Use KUNIT_EXPECT_MEMEQ macro") from Linus' tree and commits: f21d62c9ce3d ("drm/format-helper: Store RGB565 in little-endian

Re: [PATCH 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
Comments say macros DRM_DEBUG_* are deprecated in favor of drm_dbg_*(NULL, ...), but they have broken support for it, as the macro will result in `(NULL) ? (NULL)->dev : NULL`. Thus, fix them by separating logic to get dev ptr in a new function, which will return the dev ptr if arg is not NULL.

[PATCH v4 09/10] drm/drm_blend: Remove usage of deprecated DRM_DEBUG_ATOMIC

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_ATOMIC is deprecated in favor of drm_dbg_atomic(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_blend.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_blend.c

[PATCH v4 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
Comments say macros DRM_DEBUG_* are deprecated in favor of drm_dbg_*(NULL, ...), but they have broken support for it, as the macro will result in `(NULL) ? (NULL)->dev : NULL`. Thus, fix them by separating logic to get dev ptr in a new function, which will return the dev ptr if arg is not NULL.

[PATCH v4 07/10] drm: Remove usage of deprecated DRM_DEBUG_KMS

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_KMS is deprecated in favor of drm_dbg_kms(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 112 ++--- drivers/gpu/drm/drm_color_mgmt.c | 4 +- drivers/gpu/drm/drm_connector.c| 21 ++---

[PATCH v4 02/10] drm: Remove usage of deprecated DRM_INFO

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_INFO is deprecated in favor of drm_info(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_connector.c | 7 --- drivers/gpu/drm/drm_drv.c| 2 +- drivers/gpu/drm/drm_pci.c| 2 +- 4 files

[PATCH v4 10/10] drm/drm_lease: Remove usage of deprecated DRM_DEBUG_LEASE

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_LEASE is deprecated in favor of drm_dbg_lease(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_lease.c | 64 - 1 file changed, 34 insertions(+), 30 deletions(-) diff --git

[PATCH v4 04/10] drm: Remove usage of deprecated DRM_ERROR

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_ERROR is deprecated in favor of drm_err(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_bridge.c | 8 drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_client_modeset.c | 4 ++-- drivers/gpu/drm/drm_context.c| 4

[PATCH v4 03/10] drm: Remove usage of deprecated DRM_NOTE

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_NOTE is deprecated in favor of drm_notice(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_displayid.c | 2 +- drivers/gpu/drm/drm_kms_helper_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_displayid.c

[PATCH v4 00/10] drm: Remove usage of deprecated DRM_* macros

2023-01-05 Thread Siddh Raman Pant
This patchset aims to remove usages of deprecated DRM_* macros from the files residing in drivers/gpu/drm root. In process, I found out that NULL as first argument of drm_dbg_* wasn't working, but it was listed as the alternative in deprecation comment, so I fixed that before removing usages of

[PATCH v4 06/10] drm: Remove usage of deprecated DRM_DEBUG_DRIVER

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +- include/drm/drm_print.h

[PATCH v4 05/10] drm: Remove usage of deprecated DRM_DEBUG

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG is deprecated in favor of drm_dbg_core(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_agpsupport.c | 4 +- drivers/gpu/drm/drm_bufs.c| 114 +++--- drivers/gpu/drm/drm_context.c | 14 ++-- drivers/gpu/drm/drm_dma.c

[PATCH v4 08/10] drm: Remove usage of deprecated DRM_DEBUG_PRIME

2023-01-05 Thread Siddh Raman Pant
drm_print.h says DRM_DEBUG_PRIME is deprecated in favor of drm_dbg_prime(). Signed-off-by: Siddh Raman Pant Reviewed-by: Simon Ser --- drivers/gpu/drm/drm_gem_dma_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v4] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Hamza Mahfooz
Currently, there are issues with enabling PSR-SU + DSC. This stems from the fact that DSC imposes a slice height on transmitted video data and we are not conforming to that slice height in PSR-SU regions. So, pass slice_height into su_y_granularity to feed the DSC slice height into PSR-SU code.

linux-next: duplicate patches in the drm-misc tree

2023-01-05 Thread Stephen Rothwell
Hi all, The following commits also exist in Linus Torvald's tree as different commits (but the same patches): a189b2ee938f ("fbdev: Make fb_modesetting_disabled() static inline") 7aa3d63e1ad5 ("Revert "drm/fb-helper: Remove damage worker"") 8b83e1a45538 ("Revert "drm/fb-helper: Schedule

Re: [PATCH v3] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Harry Wentland
On 1/5/23 15:33, Hamza Mahfooz wrote: > Currently, there are issues with enabling PSR-SU + DSC. This stems from > the fact that DSC imposes a slice height on transmitted video data and > we are not conforming to that slice height in PSR-SU regions. So, pass > slice_height into su_y_granularity to

Re: [Intel-gfx] [RFC PATCH 04/20] drm/sched: Convert drm scheduler to use a work queue rather than kthread

2023-01-05 Thread Matthew Brost
On Tue, Jan 03, 2023 at 01:02:15PM +, Tvrtko Ursulin wrote: > > On 02/01/2023 07:30, Boris Brezillon wrote: > > On Fri, 30 Dec 2022 12:55:08 +0100 > > Boris Brezillon wrote: > > > > > On Fri, 30 Dec 2022 11:20:42 +0100 > > > Boris Brezillon wrote: > > > > > > > Hello Matthew, > > > > > >

Re: [PATCH] drm/vkms: Add a DRM render node to vkms

2023-01-05 Thread 吴涛@Eng
Hi Daniel, May I know what's the requirement for adding render node support to a "gpu"? Why we just export render node for every drm devices? I read document here https://www.kernel.org/doc/html/v4.8/gpu/drm-uapi.html#render-nodes and it seems render node allow multiple unprivileged clients to

Re: [PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Harry Wentland
On 1/5/23 15:12, Leo Li wrote: > > > > On 1/5/23 15:07, Hamza Mahfooz wrote: >> On 1/5/23 13:29, Harry Wentland wrote: >>> >>> >>> On 1/5/23 12:38, Hamza Mahfooz wrote: Currently, there are issues with enabling PSR-SU + DSC. This stems from the fact that DSC imposes a slice height

Re: [Intel-gfx] [RFC PATCH 00/20] Initial Xe driver submission

2023-01-05 Thread Matthew Brost
On Tue, Jan 03, 2023 at 12:21:08PM +, Tvrtko Ursulin wrote: > > On 22/12/2022 22:21, Matthew Brost wrote: > > Hello, > > > > This is a submission for Xe, a new driver for Intel GPUs that supports both > > integrated and discrete platforms starting with Tiger Lake (first platform > > with >

Re: Try to address the DMA-buf coherency problem

2023-01-05 Thread Sebastian Wick
On Fri, Dec 9, 2022 at 11:28 AM Christian König wrote: > > Am 09.12.22 um 09:26 schrieb Tomasz Figa: > > [SNIP] > > Although I think the most common case on mainstream Linux today is > > properly allocating for device X (e.g. V4L2 video decoder or DRM-based > > GPU) and hoping that other devices

[PATCH v3] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Hamza Mahfooz
Currently, there are issues with enabling PSR-SU + DSC. This stems from the fact that DSC imposes a slice height on transmitted video data and we are not conforming to that slice height in PSR-SU regions. So, pass slice_height into su_y_granularity to feed the DSC slice height into PSR-SU code.

Re: [PATCH] drm/drv: Make use of local variable driver in drm_dev_register()

2023-01-05 Thread Uwe Kleine-König
Hello Daniel, On Thu, Jan 05, 2023 at 03:33:13PM +0100, Daniel Vetter wrote: > On Tue, Dec 20, 2022 at 08:24:18AM +0100, Thomas Zimmermann wrote: > > Hi > > > > Am 19.12.22 um 19:31 schrieb Uwe Kleine-König: > > > There is a local variable that contains dev->driver. Make use of it > > > instead

Re: [PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Leo Li
On 1/5/23 15:07, Hamza Mahfooz wrote: On 1/5/23 13:29, Harry Wentland wrote: On 1/5/23 12:38, Hamza Mahfooz wrote: Currently, there are issues with enabling PSR-SU + DSC. This stems from the fact that DSC imposes a slice height on transmitted video data and we are not conforming to that

Re: [PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Hamza Mahfooz
On 1/5/23 13:29, Harry Wentland wrote: On 1/5/23 12:38, Hamza Mahfooz wrote: Currently, there are issues with enabling PSR-SU + DSC. This stems from the fact that DSC imposes a slice height on transmitted video data and we are not conforming to that slice height in PSR-SU regions. So, pass

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Simon Ser
To be honest, your suggestion to put the check inside framebuffer_check() sounds like a better idea: we wouldn't even hit any driver-specific code-path when the check fails. Daniel, do you think there'd be an issue with this approach?

[PULL] drm-intel-fixes

2023-01-05 Thread Rodrigo Vivi
Hi Dave and Daniel, Only GVT related fixes for this round. I have another fix queued for i915_vma_unbind_async from Nirmoy that will target stable 5.18, but I figured it out late so I didn't run CI on that yet. So I'm holding this for now. Maybe and extra PR tomorrow or it will wait for the next

Re: [RFC PATCH 04/20] drm/sched: Convert drm scheduler to use a work queue rather than kthread

2023-01-05 Thread Matthew Brost
On Mon, Jan 02, 2023 at 08:30:19AM +0100, Boris Brezillon wrote: > On Fri, 30 Dec 2022 12:55:08 +0100 > Boris Brezillon wrote: > > > On Fri, 30 Dec 2022 11:20:42 +0100 > > Boris Brezillon wrote: > > > > > Hello Matthew, > > > > > > On Thu, 22 Dec 2022 14:21:11 -0800 > > > Matthew Brost

[PATCH 1/2] drm/debugfs: use octal permissions instead of symbolic permissions

2023-01-05 Thread Maíra Canal
Currently, debugfs functions are using symbolic macros as permission bits, but checkpatch reinforces permission bits in the octal form, as they are more readable and easier to understand [1]. Therefore, use octal permission bits in all debugfs functions. [1]

[PATCH 2/2] drm/debugfs: add descriptions to struct parameters

2023-01-05 Thread Maíra Canal
The structs drm_debugfs_info and drm_debugfs_entry don't have descriptions for their parameters, which is causing the following warnings: include/drm/drm_debugfs.h:93: warning: Function parameter or member 'name' not described in 'drm_debugfs_info' include/drm/drm_debugfs.h:93: warning: Function

Re: [GIT PULL - v2] fbdev fixes for v6.2-rc3

2023-01-05 Thread pr-tracker-bot
The pull request you sent on Thu, 5 Jan 2023 12:11:54 +0100: > http://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git > tags/fbdev-for-6.2-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5e9af4b42660b2a8db067db8ff03db8a268d6a95 Thank you! --

[PATCH] fbdev: Replace 0-length array with flexible array

2023-01-05 Thread Kees Cook
Zero-length arrays are deprecated[1]. Replace struct aperture's "ranges" 0-length array with a flexible array. (How is the size of this array verified?) Detected with GCC 13, using -fstrict-flex-arrays=3: samples/vfio-mdev/mdpy-fb.c: In function 'mdpy_fb_probe':

Re: [PATCH -next] drm/amd/display: Remove redundant assignment to variable dc

2023-01-05 Thread Harry Wentland
On 12/16/22 05:23, Yi Yang wrote: > Smatch report warning as follows: > > Line 53679: drivers/gpu/drm/amd/display/dc/core/dc_stream.c:402 > dc_stream_set_cursor_position() warn: variable dereferenced before > check 'stream' > > The value of 'dc' has been assigned after check whether 'stream' is

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Maíra Canal
On 1/5/23 15:54, Simon Ser wrote: On Thursday, January 5th, 2023 at 19:48, Maíra Canal wrote: On 1/5/23 15:36, Simon Ser wrote: On Thursday, January 5th, 2023 at 19:30, Maíra Canal mca...@igalia.com wrote: I think to really make sure we have consensus it'd be good to extend this to a

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Simon Ser
On Thursday, January 5th, 2023 at 19:48, Maíra Canal wrote: > On 1/5/23 15:36, Simon Ser wrote: > > > On Thursday, January 5th, 2023 at 19:30, Maíra Canal mca...@igalia.com > > wrote: > > > > > > > > I think to really make sure we have consensus it'd be good to > > > > > > extend this > > >

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Maíra Canal
On 1/5/23 15:36, Simon Ser wrote: On Thursday, January 5th, 2023 at 19:30, Maíra Canal wrote: I think to really make sure we have consensus it'd be good to extend this to a series which removes all the callers to drm_any_plane_has_format() from the various drivers, and then unexports that

Re: [PATCH v4 3/7] accel/ivpu: Add GEM buffer object management

2023-01-05 Thread Andrew Davis
On 12/8/22 5:07 AM, Jacek Lawrynowicz wrote: Adds four types of GEM-based BOs for the VPU: - shmem - userptr Do you have some specific need for userptr that would not be covered by prime import + heaps? I'm just trying to get a feel for the typical use-cases for these. Andrew -

Re: [PATCH] drm/vkms: introduce prepare_fb and cleanup_fb functions

2023-01-05 Thread Melissa Wen
On 01/05, Maíra Canal wrote: > With commit 359c6649cd9a ("drm/gem: Implement shadow-plane {begin, > end}_fb_access with vmap"), the behavior of the shadow-plane helpers > changed and the vunmap is now performed at the end of > the current pageflip, instead of the end of the following pageflip. >

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Simon Ser
On Thursday, January 5th, 2023 at 19:30, Maíra Canal wrote: > > > > I think to really make sure we have consensus it'd be good to extend > > > > this > > > > to a series which removes all the callers to drm_any_plane_has_format() > > > > from the various drivers, and then unexports that helper.

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Maíra Canal
On 1/5/23 15:22, Daniel Vetter wrote: On Thu, 5 Jan 2023 at 18:48, Maíra Canal wrote: On 1/5/23 12:26, Daniel Vetter wrote: On Tue, Jan 03, 2023 at 09:53:23AM -0300, Maíra Canal wrote: Currently, drm_gem_fb_create() doesn't check if the pixel format is supported, which can lead to the

Re: [PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Harry Wentland
On 1/5/23 12:38, Hamza Mahfooz wrote: > Currently, there are issues with enabling PSR-SU + DSC. This stems from > the fact that DSC imposes a slice height on transmitted video data and > we are not conforming to that slice height in PSR-SU regions. So, pass > slice_height into su_y_granularity

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Daniel Vetter
On Thu, 5 Jan 2023 at 18:48, Maíra Canal wrote: > > On 1/5/23 12:26, Daniel Vetter wrote: > > On Tue, Jan 03, 2023 at 09:53:23AM -0300, Maíra Canal wrote: > >> Currently, drm_gem_fb_create() doesn't check if the pixel format is > >> supported, which can lead to the acceptance of invalid pixel

Re: [PATCH] drm/gem: Check for valid formats

2023-01-05 Thread Maíra Canal
On 1/5/23 12:26, Daniel Vetter wrote: On Tue, Jan 03, 2023 at 09:53:23AM -0300, Maíra Canal wrote: Currently, drm_gem_fb_create() doesn't check if the pixel format is supported, which can lead to the acceptance of invalid pixel formats e.g. the acceptance of invalid modifiers. Therefore, add a

Re: [PATCH v4 1/7] accel/ivpu: Introduce a new DRM driver for Intel VPU

2023-01-05 Thread Oded Gabbay
On Thu, Jan 5, 2023 at 6:25 PM Jeffrey Hugo wrote: > > On 1/5/2023 5:57 AM, Daniel Vetter wrote: > > On Thu, Dec 08, 2022 at 12:07:27PM +0100, Jacek Lawrynowicz wrote: > >> +static const struct drm_driver driver = { > >> +.driver_features = DRIVER_GEM | DRIVER_COMPUTE_ACCEL, > > > > So I was

[PATCH v2] drm/amd/display: fix PSR-SU/DSC interoperability support

2023-01-05 Thread Hamza Mahfooz
Currently, there are issues with enabling PSR-SU + DSC. This stems from the fact that DSC imposes a slice height on transmitted video data and we are not conforming to that slice height in PSR-SU regions. So, pass slice_height into su_y_granularity to feed the DSC slice height into PSR-SU code.

Re: [PATCH v7 00/45] Recover from failure to probe GPU

2023-01-05 Thread Alex Deucher
On Thu, Jan 5, 2023 at 12:02 PM Mario Limonciello wrote: > > One of the first thing that KMS drivers do during initialization is > destroy the system firmware framebuffer by means of > `drm_aperture_remove_conflicting_pci_framebuffers` > > This means that if for any reason the GPU failed to probe

Re: [PATCH v6 42/45] drm/amd: Use `amdgpu_ucode_*` helpers for DMCU

2023-01-05 Thread Harry Wentland
On 1/4/23 22:43, Mario Limonciello wrote: > The `amdgpu_ucode_request` helper will ensure that the return code for > missing firmware is -ENODEV so that early_init can fail. > > The `amdgpu_ucode_release` helper is for symmetry on unloading. > > Reviewed-by: Alex Deucher > Signed-off-by:

Re: [PATCH v6 25/45] drm/amd: Use `amdgpu_ucode_release` helper for DMUB

2023-01-05 Thread Harry Wentland
On 1/4/23 22:42, Mario Limonciello wrote: > The `amdgpu_ucode_release` helper is for symmetry on unloading. > > Reviewed-by: Alex Deucher > Signed-off-by: Mario Limonciello Reviewed-by: Harry Wentland Harry > --- > v5->v6: > * Adjust for amdgpu_ucode_release argument change > --- >

[PATCH v7 37/45] drm/amd: Use `amdgpu_ucode_*` helpers for SDMA on CIK

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 43/45] drm/amd: Use `amdgpu_ucode_release` helper for powerplay

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_release` helper is replacing all calls to release_firmware. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: * Adjust for amdgpu_ucode_release argument change --- drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 3 +-- 1 file

[PATCH v7 45/45] drm/amd: make amdgpu_ucode_validate static

2023-01-05 Thread Mario Limonciello
No consumers outside of amdgpu_ucode.c use amdgpu_ucode_validate anymore, so make the function static. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 1 - 2

[PATCH v7 42/45] drm/amd: Use `amdgpu_ucode_*` helpers for DMCU

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello ---

[PATCH v7 40/45] drm/amd: Use `amdgpu_ucode_*` helpers for CGS

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 41/45] drm/amd: Use `amdgpu_ucode_*` helpers for GPU info bin

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 38/45] drm/amd: Use `amdgpu_ucode_*` helpers for UVD

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 44/45] drm/amd: Use `amdgpu_ucode_release` helper for si

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_release` helper is replacing all calls to release_firmware. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: * Adjust for amdgpu_ucode_release argument change --- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 11 ++- 1

[PATCH v7 32/45] drm/amd: Use `amdgpu_ucode_*` helpers for GMC6

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 24/45] drm/amd/display: Load DMUB microcode during early_init

2023-01-05 Thread Mario Limonciello
If DMUB is required for an ASIC, ensure that the microcode is available and validates during early_init. Any failures will cause the driver to fail to probe before the firmware framebuffer has been removed. Reviewed-by: Alex Deucher Reviewed-by: Harry Wentland Reviewed-by: Lijo Lazar

[PATCH v7 35/45] drm/amd: Use `amdgpu_ucode_*` helpers for SDMA2.4

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 18/45] drm/amd: Use `amdgpu_ucode_*` helpers for GFX11

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper will provide symmetery on unload. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 39/45] drm/amd: Use `amdgpu_ucode_*` helpers for VCE

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 27/45] drm/amd: Load SMU microcode during early_init

2023-01-05 Thread Mario Limonciello
This will ensure that the microcode is available before the firmware framebuffer has been destroyed. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 12 +--- 1 file changed, 5 insertions(+), 7

[PATCH v7 36/45] drm/amd: Use `amdgpu_ucode_*` helpers for SDMA3.0

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 28/45] drm/amd: Optimize SRIOV switch/case for PSP microcode load

2023-01-05 Thread Mario Limonciello
Now that IP version decoding is used, a number of case statements can be combined. Reviewed-by: Alex Deucher Reviewed-by: Christian König Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 8 +--- 1 file changed, 1 insertion(+), 7

[PATCH v7 34/45] drm/amd: Use `amdgpu_ucode_*` helpers for GMC8

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 33/45] drm/amd: Use `amdgpu_ucode_*` helpers for GMC7

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 23/45] drm/amd: Use `amdgpu_ucode_*` helpers for PSP

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 20/45] drm/amd: Parse both v1 and v2 TA microcode headers using same function

2023-01-05 Thread Mario Limonciello
Several IP versions duplicate code and can't use the common helpers. Move this code into a single function so that the helpers can be used. Signed-off-by: Mario Limonciello --- v6->v7: * Drop tags * Only set adev->psp.securedisplay_context.context on PSPv12 Renoir and PSP v10 which matches

[PATCH v7 22/45] drm/amd: Load PSP microcode during early_init

2023-01-05 Thread Mario Limonciello
Simplifies the code so that all PSP versions will get the firmware name from `amdgpu_ucode_ip_version_decode` and then use this filename to load microcode as part of the early_init process. Any failures will cause the driver to fail to probe before the firmware framebuffer has been removed.

[PATCH v7 29/45] drm/amd: Use `amdgpu_ucode_*` helpers for GFX6

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 30/45] drm/amd: Use `amdgpu_ucode_*` helpers for GFX7

2023-01-05 Thread Mario Limonciello
The `amdgpu_ucode_request` helper will ensure that the return code for missing firmware is -ENODEV so that early_init can fail. The `amdgpu_ucode_release` helper is for symmetry on unloading. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- v5->v6: *

[PATCH v7 21/45] drm/amd: Avoid BUG() for case of SRIOV missing IP version

2023-01-05 Thread Mario Limonciello
No need to crash the kernel. AMDGPU will now fail to probe. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

  1   2   3   >