Re: [PATCH v15 00/16] drm: Add Samsung MIPI DSIM bridge

2023-03-06 Thread Jagan Teki
Hi Marek, On Tue, Mar 7, 2023 at 4:11 AM Marek Szyprowski wrote: > > Dear Jagan, > > On 06.03.2023 18:24, Jagan Teki wrote: > > On Mon, Mar 6, 2023 at 4:32 PM Marek Szyprowski > > wrote: > >> On 04.03.2023 19:59, Jagan Teki wrote: > >>> On Sat, Mar 4, 2023 at 3:56 AM Marek Szyprowski > >>>

Re: [Intel-gfx] [PATCH v3 0/2] Fix error propagation amongst request

2023-03-06 Thread Gwan-gyeong Mun
Hi Andi, After applying these two patches, deadlock is being detected in the call stack below. Please review whether the patch to update the intel_context_migrate_copy() part affected the deadlock.

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Set I915_BO_ALLOC_USER for framebuffer

2023-03-06 Thread Das, Nirmoy
On 3/6/2023 6:30 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 05:22:19PM +0100, Das, Nirmoy wrote: On 3/6/2023 3:21 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:48AM +0100, Nirmoy Das wrote: Framebuffer is exposed to userspace so set I915_BO_ALLOC_USER flag for it. This also

[Bug 217110] GPU Lockup on Radeon Pitcairn - VAAPI related

2023-03-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217110 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 217141] [amdgpu] ring gfx_0.0.0 timeout steam deck AMD APU

2023-03-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=217141 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH v6 32/57] nouveau: adapt NV_DEBUG, NV_ATOMIC to use DRM.debug

2023-03-06 Thread jim . cromie
On Mon, Mar 6, 2023 at 11:50 AM Timur Tabi wrote: > > On Sun, Sep 4, 2022 at 4:48 PM Jim Cromie wrote: > > > > These 2 macros used drm_debug_enabled() on DRM_UT_{DRIVER,ATOMIC} > > respectively, replace those with drm_dbg_##cat invocations. > > > > this results in new class'd prdbg callsites: >

[PATCH] accel: Link to compute accelerator subsystem intro

2023-03-06 Thread Bagas Sanjaya
Commit 2c204f3d53218d ("accel: add dedicated minor for accelerator devices") adds link to accelerator nodes section of DRM internals doc (Documentation/gpu/drm-internals.rst), but the target doesn't exist. Instead, there is only an introduction doc for computer accelerator subsytem. Link to that

Re: [PATCH v3] dma-buf: cma_heap: Check for device max segment size when attaching

2023-03-06 Thread John Stultz
On Mon, Mar 6, 2023 at 8:52 AM Andrew Davis wrote: > > Although there is usually not such a limitation (and when there is it is > often only because the driver forgot to change the super small default), > it is still correct here to break scatterlist element into chunks of >

[PATCH v2 2/2] media: Adjust column width for pdfdocs

2023-03-06 Thread Akira Yokosawa
The column width specifiers added in commit 8d0e3fc61abd ("media: Add 2-10-10-10 RGB formats") don't suffice for column 1 and too wide for column 2. Adjust them to get a good looking table. Fixes: 8d0e3fc61abd ("media: Add 2-10-10-10 RGB formats") Cc: Tomi Valkeinen Signed-off-by: Akira

[PATCH v2 1/2] media: Fix building pdfdocs

2023-03-06 Thread Akira Yokosawa
From: Tomi Valkeinen Commit 8d0e3fc61abd ("media: Add 2-10-10-10 RGB formats") added documentation for a few new RGB formats. The table has column-width specifiers for 34 columns used in pdfdocs build. However, the new table has a couple of rows with 35 columns which confused Sphinx's latex

Re: [PATCH 97/99] fbdev/vt8623fb: Duplicate video-mode option string

2023-03-06 Thread kernel test robot
Hi Thomas, I love your patch! Yet something to improve: [auto build test ERROR on drm-misc/drm-misc-next] [cannot apply to deller-parisc/for-next staging/staging-testing staging/staging-next staging/staging-linus linus/master v6.3-rc1 next-20230306] [If your patch is applied to the wrong git

Re: [PATCH RESEND] drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks

2023-03-06 Thread Lyude Paul
Reviewed-by: Lyude Paul Will push upstream in a moment On Thu, 2023-03-02 at 01:05 +0530, Deepak R Varma wrote: > According to Documentation/filesystems/sysfs.rst, the show() callback > function of kobject attributes should strictly use sysfs_emit() instead > of sprintf() family functions. So,

Re: [Intel-gfx] [PATCH 3/3] drm/i915/dg1: Move Wa_1806527549 to the right function

2023-03-06 Thread Lucas De Marchi
On Mon, Mar 06, 2023 at 03:17:50PM -0800, Matt Roper wrote: On Mon, Mar 06, 2023 at 12:49:54PM -0800, Lucas De Marchi wrote: dg1_ctx_workarounds_init() is DG1-only, while gen12_ctx_workarounds_init() is shared with other platforms. Move the workaround to the former so there is no additional

Re: [Intel-gfx] [PATCH 3/3] drm/i915/dg1: Move Wa_1806527549 to the right function

2023-03-06 Thread Matt Roper
On Mon, Mar 06, 2023 at 12:49:54PM -0800, Lucas De Marchi wrote: > dg1_ctx_workarounds_init() is DG1-only, while > gen12_ctx_workarounds_init() is shared with other platforms. Move the > workaround to the former so there is no additional platform check > needed. > > Signed-off-by: Lucas De Marchi

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Move DG2 tuning to the right function

2023-03-06 Thread Matt Roper
On Mon, Mar 06, 2023 at 12:49:53PM -0800, Lucas De Marchi wrote: > Use gt_tuning_settings() for the recommended tunings rather than the one > for workarounds. > > Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper > --- > drivers/gpu/drm/i915/gt/intel_workarounds.c | 11 +++ > 1

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Remove redundant check for DG1

2023-03-06 Thread Matt Roper
On Mon, Mar 06, 2023 at 12:49:52PM -0800, Lucas De Marchi wrote: > dg1_gt_workarounds_init() is only ever called for DG1, so there is no > point checking it again. > > Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper > --- > drivers/gpu/drm/i915/gt/intel_workarounds.c | 12 +++-

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

2023-03-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_driver.c between commit: 2293a73ad4f3 ("drm/i915: Remove unused variable") from Linus' tree and commit: e5e43d3363d7 ("drm/i915/display: Pass drm_i915_private as param to i915 funcs")

Re: [PATCH v15 00/16] drm: Add Samsung MIPI DSIM bridge

2023-03-06 Thread Marek Szyprowski
Dear Jagan, On 06.03.2023 18:24, Jagan Teki wrote: > On Mon, Mar 6, 2023 at 4:32 PM Marek Szyprowski > wrote: >> On 04.03.2023 19:59, Jagan Teki wrote: >>> On Sat, Mar 4, 2023 at 3:56 AM Marek Szyprowski >>> wrote: On 03.03.2023 15:51, Jagan Teki wrote: > This series supports common

Re: [PATCH 01/99] lib: Add option iterator

2023-03-06 Thread Randy Dunlap
Hi, On 3/6/23 07:58, Thomas Zimmermann wrote: > Add struct option_iter and helpers that walk over individual options > of an option string. Add documentation. > > Kernel parameters often have the format of > > param=opt1,opt2:val,opt3 > > where the option string contains a number of

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915/guc: Fix missing return code checks in submission init

2023-03-06 Thread Ceraolo Spurio, Daniele
On 2/17/2023 2:33 PM, john.c.harri...@intel.com wrote: From: John Harrison The CI results for the 'fast request' patch set (enables error return codes for fire-and-forget H2G messages) hit an issue with the KMD sending context submission requests on an invalid context. That was caused by a

Re: [PATCH 00/22] drm/dma-helper: Add dedicated fbdev emulation

2023-03-06 Thread Linus Walleij
On Wed, Mar 1, 2023 at 4:31 PM Thomas Zimmermann wrote: > Add fbdev emulation that is optimized for DMA helpers, as used by most > drivers. It operates directly on GEM DMA buffers in system memory. > Memory pages are mmap'ed directly to userspace. No implicit shadow > buffers need to be

Re: [PATCH 20/22] drm/tve200: Use GEM DMA fbdev emulation

2023-03-06 Thread Linus Walleij
On Wed, Mar 1, 2023 at 4:31 PM Thomas Zimmermann wrote: > Use the fbdev emulation that is optimized for DMA helpers. Avoids > possible shadow buffering and makes the code simpler. > > Signed-off-by: Thomas Zimmermann That sounds neat: Acked-by: Linus Walleij Yours, Linus Walleij

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915/guc: Improve clean up of busyness stats worker

2023-03-06 Thread Ceraolo Spurio, Daniele
On 2/17/2023 2:33 PM, john.c.harri...@intel.com wrote: From: John Harrison The stats worker thread management was mis-matched between enable/disable call sites. Fix those up. Also, abstract the cancel/enable code into a helper function rather than replicating in multiple places. v2: Rename

[PATCH v3 7/8] accel/qaic: Add qaic driver to the build system

2023-03-06 Thread Jeffrey Hugo
Now that we have all the components of a minimum QAIC which can boot and run an AIC100 device, add the infrastructure that allows the QAIC driver to be built. Signed-off-by: Jeffrey Hugo Reviewed-by: Carl Vanderlip Reviewed-by: Pranjal Ramajor Asha Kanojiya --- drivers/accel/Kconfig |

[PATCH v3 6/8] accel/qaic: Add mhi_qaic_cntl

2023-03-06 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Some of the MHI channels for an AIC100 device need to be routed to userspace so that userspace can communicate directly with QSM. The MHI bus does not support this, and while the WWAN subsystem does (for the same reasons), AIC100 is not a WWAN device. Also,

[PATCH v3 1/8] accel/qaic: Add documentation for AIC100 accelerator driver

2023-03-06 Thread Jeffrey Hugo
The Qualcomm Cloud AI 100 (AIC100) device is an Artificial Intelligence accelerator PCIe card. It contains a number of components both in the SoC and on the card which facilitate running workloads: QSM: management processor NSPs: workload compute units DMA Bridge: dedicated data mover for the

[PATCH v3 8/8] MAINTAINERS: Add entry for QAIC driver

2023-03-06 Thread Jeffrey Hugo
Add MAINTAINERS entry for the Qualcomm Cloud AI 100 driver. Signed-off-by: Jeffrey Hugo Reviewed-by: Carl Vanderlip Reviewed-by: Pranjal Ramajor Asha Kanojiya --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b0db911..feb2974 100644

[PATCH v3 5/8] accel/qaic: Add datapath

2023-03-06 Thread Jeffrey Hugo
Add the datapath component that manages BOs and submits them to running workloads on the qaic device via the dma_bridge hardware. This allows QAIC clients to interact with their workloads (run inferences) via the following ioctls along with mmap(): DRM_IOCTL_QAIC_CREATE_BO DRM_IOCTL_QAIC_MMAP_BO

[PATCH v3 4/8] accel/qaic: Add control path

2023-03-06 Thread Jeffrey Hugo
Add the control path component that talks to the management processor (QSM) to load workloads onto the AIC100 device. This implements the KMD portion of the NNC protocol over the QAIC_CONTROL MHI channel and the DRM_IOCTL_QAIC_MANAGE IOCTL to userspace. With this functionality, QAIC clients are

[PATCH v3 2/8] accel/qaic: Add uapi and core driver file

2023-03-06 Thread Jeffrey Hugo
Add the QAIC driver uapi file and core driver file that binds to the PCIe device. The core driver file also creates the accel device and manages all the interconnections between the different parts of the driver. The driver can be built as a module. If so, it will be called "qaic.ko".

[PATCH v3 0/8] QAIC accel driver

2023-03-06 Thread Jeffrey Hugo
This series introduces a driver under the accel subsystem (QAIC - Qualcomm AIC) for the Qualcomm Cloud AI 100 product (AIC100). AIC100 is a PCIe adapter card that hosts a dedicated machine learning inference accelerator. Depends on "accel: Build sub-directories based on config options" found at

[PATCH v3 3/8] accel/qaic: Add MHI controller

2023-03-06 Thread Jeffrey Hugo
An AIC100 device contains a MHI interface with a number of different channels for controlling different aspects of the device. The MHI controller works with the MHI bus to enable and drive that interface. AIC100 uses the BHI protocol in PBL to load SBL. The MHI controller expects the SBL to be

Re: [PATCH v3] drm/virtio: Fix handling CONFIG_DRM_VIRTIO_GPU_KMS option

2023-03-06 Thread Emil Velikov
On 2023/03/06, Dmitry Osipenko wrote: > On 3/6/23 19:39, Dmitry Osipenko wrote: > > VirtIO-GPU got a new config option for disabling KMS. There were two > > problems left unnoticed during review when the new option was added: > > > > 1. The IS_ENABLED(CONFIG_DRM_VIRTIO_GPU_KMS) check in the code

Re: [PATCH 08/99] fbdev/arkfb: Duplicate video-mode option string

2023-03-06 Thread kernel test robot
Hi Thomas, I love your patch! Yet something to improve: [auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on linus/master v6.3-rc1 next-20230306] [cannot apply to deller-parisc/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [Intel-gfx] [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Ville Syrjälä
On Mon, Mar 06, 2023 at 09:23:50PM +0100, Maarten Lankhorst wrote: > Hey, > > On 2023-03-06 16:23, Souza, Jose wrote: > > On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: > >> As a fallback if we decide not to merge the frontbuffer tracking, allow > >> i915 to keep its own

[PATCH 3/3] drm/i915/dg1: Move Wa_1806527549 to the right function

2023-03-06 Thread Lucas De Marchi
dg1_ctx_workarounds_init() is DG1-only, while gen12_ctx_workarounds_init() is shared with other platforms. Move the workaround to the former so there is no additional platform check needed. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 9 +++-- 1 file

[PATCH 1/3] drm/i915: Remove redundant check for DG1

2023-03-06 Thread Lucas De Marchi
dg1_gt_workarounds_init() is only ever called for DG1, so there is no point checking it again. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

[PATCH 2/3] drm/i915: Move DG2 tuning to the right function

2023-03-06 Thread Lucas De Marchi
Use gt_tuning_settings() for the recommended tunings rather than the one for workarounds. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/gt/intel_workarounds.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c

Re: [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Maarten Lankhorst
Hey, On 2023-03-06 16:23, Souza, Jose wrote: On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: As a fallback if we decide not to merge the frontbuffer tracking, allow i915 to keep its own implementation, and do the right thing in Xe. The frontbuffer tracking for Xe is still done

Re: [PATCH v2 RESEND] drm/amdgpu: register a vga_switcheroo client for MacBooks with apple-gmux

2023-03-06 Thread Alex Deucher
Applied. Thanks! Alex On Fri, Mar 3, 2023 at 6:35 AM Orlando Chamberlain wrote: > > Commit 3840c5bcc245 ("drm/amdgpu: disentangle runtime pm and > vga_switcheroo") made amdgpu only register a vga_switcheroo client for > GPU's with PX, however AMD GPUs in dual gpu Apple Macbooks do need to >

Re: [PATCH 22/99] fbdev/fsl-diu-fb: Duplicate video-mode option string

2023-03-06 Thread Timur Tabi
On Mon, Mar 6, 2023 at 10:01 AM Thomas Zimmermann wrote: > > Assume that the driver does not own the option string or its substrings > and hence duplicate the option string for the video mode. The driver only > parses the option string once as part of module initialization, so use > a static

[PATCH v3] dt-bindings: display: mediatek: Fix the duplicated fallback

2023-03-06 Thread Alexandre Mergnat
dri-devel@lists.freedesktop.org Cc: linux-media...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org --- Changes in v3: - Re-order compatible. - Link to v2: https://lore.kernel.org/r/20230306-ccorr-binding-fix-v2-0-4822939a8...@ba

[PATCH] Fixes dt-bindings: display: mediatek: Fix the fallback for mediatek,mt8186-disp-ccorr

2023-03-06 Thread Alexandre Mergnat
disp-ccorr - const: mediatek,mt8192-disp-ccorr --- base-commit: add072536971d7ce891fde3cdbf68c55e7cfa95a change-id: 20230306-ccorr-binding-fix-718c6d725088 Best regards, -- Alexandre Mergnat

[PATCH] drm/amd/display: remove an unnecessary NULL check

2023-03-06 Thread Danila Chernetsov
The 'pipe' can't be NULL because it points to an element of array. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixed: 7cf2c840c6b5 (drm/amd/display: Commit validation set from state) Signed-off-by: Danila Chernetsov --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1

[regression] RPI4B drm vc4: no crtc or sizes since 5.17 (works in 5.16; and still broken in at least 6.1)

2023-03-06 Thread AL13N
Hi, I have a RPI4B connected on 2nd HDMI port (furthest away from power) to a 4K TV, which works until 5.16, from 5.17 there is no X (or plymouth), the cause of no X is that EDID gives nothing, and in the journal; there is "Cannot find any crct or sizes". Only the kernel is changed for this.

[PATCH v2] dt-bindings: display: mediatek: Fix the duplicated fallback

2023-03-06 Thread Alexandre Mergnat
dri-devel@lists.freedesktop.org Cc: linux-media...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-ker...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org --- Changes in v2: - Fix commit title. - Link to v1: https://lore.kernel.org/r/20230306-ccorr-binding-fix-v1-0-177d81d60...@ba

Re: [PATCH 29/99] fbdev/grvga: Parse option string with struct option_iter

2023-03-06 Thread kernel test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on staging/staging-testing staging/staging-next staging/staging-linus linus/master v6.3-rc1 next-20230306] [cannot apply to deller-parisc/for-next] [If your

Re: [PATCH] drm/amd/display: change several dcn30 variables storage-class-specifier to static

2023-03-06 Thread Alex Deucher
Applied. Thanks! Alex On Sun, Mar 5, 2023 at 7:52 AM Tom Rix wrote: > > smatch reports these similar problems in dcn30 > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_dwb.c:223:25: > warning: symbol 'dcn30_dwbc_funcs' was not declared. Should it be static? >

Re: [PATCH] drm/amd/display: change several dcn20 variables storage-class-specifier to static

2023-03-06 Thread Alex Deucher
Applied. Thanks! Alex On Sat, Mar 4, 2023 at 11:22 AM Tom Rix wrote: > > smatch reports these similar problems in dcn20 > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_dsc.c:53:24: > warning: symbol 'dcn20_dsc_funcs' was not declared. Should it be static? >

Re: [PATCH] drm/amd/display: change several dcn201 variables storage-class-specifier to static

2023-03-06 Thread Alex Deucher
Applied. Thanks! Alex On Sat, Mar 4, 2023 at 10:26 AM Tom Rix wrote: > > smatch reports these similar problems in dcn201 > drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:165:22: > warning: symbol 'dcn201_funcs' was not declared. Should it be static? >

Re: [Intel-xe] [PATCH] drm/xe/display: Do not use i915 frontbuffer tracking implementation

2023-03-06 Thread Rodrigo Vivi
On Mon, Mar 06, 2023 at 03:23:08PM +, Souza, Jose wrote: > On Mon, 2023-03-06 at 15:16 +0100, Maarten Lankhorst wrote: > > As a fallback if we decide not to merge the frontbuffer tracking, allow > > i915 to keep its own implementation, and do the right thing in Xe. > > > > The frontbuffer

Re: IMX8MM: assign panel to mipi_dsi in a device tree

2023-03-06 Thread Patrick Boettcher
On Mon, 6 Mar 2023 09:43:22 +0100 Frieder Schrempf wrote: >This is the NXP vendor kernel which differs a lot from mainline, >especially in the graphics/display area. You probably won't get much >support from this list as most people here (including me) would advise >against using the vendor

Re: [PATCH] dt-bindings: yamllint: Require a space after a comment '#'

2023-03-06 Thread Stephen Boyd
Quoting Rob Herring (2023-03-03 13:42:23) > Enable yamllint to check the prefered commenting style of requiring a > space after a comment character '#'. Fix the cases in the tree which > have a warning with this enabled. Most cases just need a space after the > '#'. A couple of cases with comments

Re: [PATCH 10/99] fbdev/atafb: Parse option string with struct option_iter

2023-03-06 Thread kernel test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on staging/staging-testing staging/staging-next staging/staging-linus linus/master v6.3-rc1 next-20230306] [cannot apply to deller-parisc/for-next] [If your

Re: [PATCH v6 32/57] nouveau: adapt NV_DEBUG, NV_ATOMIC to use DRM.debug

2023-03-06 Thread Timur Tabi
On Sun, Sep 4, 2022 at 4:48 PM Jim Cromie wrote: > > These 2 macros used drm_debug_enabled() on DRM_UT_{DRIVER,ATOMIC} > respectively, replace those with drm_dbg_##cat invocations. > > this results in new class'd prdbg callsites: > > :#> grep nouveau /proc/dynamic_debug/control | grep class | wc

Re: [PATCH 07/99] fbdev/amifb: Parse option string with struct option_iter

2023-03-06 Thread kernel test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on staging/staging-testing staging/staging-next staging/staging-linus linus/master v6.3-rc1 next-20230306] [cannot apply to deller-parisc/for-next] [If your

Re: [PATCH v3] drm/virtio: Fix handling CONFIG_DRM_VIRTIO_GPU_KMS option

2023-03-06 Thread Dmitry Osipenko
On 3/6/23 19:39, Dmitry Osipenko wrote: > VirtIO-GPU got a new config option for disabling KMS. There were two > problems left unnoticed during review when the new option was added: > > 1. The IS_ENABLED(CONFIG_DRM_VIRTIO_GPU_KMS) check in the code was > inverted, hence KMS was disabled when it

Re: [PATCH v14 00/14] Add PSR support for eDP

2023-03-06 Thread Doug Anderson
Hi, On Thu, Mar 2, 2023 at 8:33 AM Vinod Polimera wrote: > > Changes in v2: > - Use dp bridge to set psr entry/exit instead of dpu_enocder. > - Don't modify whitespaces. > - Set self refresh aware from atomic_check. > - Set self refresh aware only if psr is supported. > - Provide a

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Set I915_BO_ALLOC_USER for framebuffer

2023-03-06 Thread Ville Syrjälä
On Mon, Mar 06, 2023 at 05:22:19PM +0100, Das, Nirmoy wrote: > > On 3/6/2023 3:21 PM, Ville Syrjälä wrote: > > On Mon, Mar 06, 2023 at 11:28:48AM +0100, Nirmoy Das wrote: > >> Framebuffer is exposed to userspace so set I915_BO_ALLOC_USER > >> flag for it. This also make sure that ttm allocates

Re: [PATCH v15 00/16] drm: Add Samsung MIPI DSIM bridge

2023-03-06 Thread Jagan Teki
Hi Marek, On Mon, Mar 6, 2023 at 4:32 PM Marek Szyprowski wrote: > > Hi Jagan, > > On 04.03.2023 19:59, Jagan Teki wrote: > > On Sat, Mar 4, 2023 at 3:56 AM Marek Szyprowski > > wrote: > >> On 03.03.2023 15:51, Jagan Teki wrote: > >>> This series supports common bridge support for Samsung MIPI

RE: [PATCH 09/22] drm/kmb: Use GEM DMA fbdev emulation

2023-03-06 Thread Chrisanthus, Anitha
Acked-by: Anitha Chrisanthus > -Original Message- > From: Thomas Zimmermann > Sent: Wednesday, March 1, 2023 7:31 AM > To: javi...@redhat.com; maarten.lankho...@linux.intel.com; > mrip...@kernel.org; airl...@gmail.com; dan...@ffwll.ch; and...@aj.id.au; > laurentiu.pa...@oss.nxp.com;

[PATCH v3] dma-buf: cma_heap: Check for device max segment size when attaching

2023-03-06 Thread Andrew Davis
Although there is usually not such a limitation (and when there is it is often only because the driver forgot to change the super small default), it is still correct here to break scatterlist element into chunks of dma_max_mapping_size(). This might cause some issues for users with misbehaving

[PATCH v3] drm/virtio: Fix handling CONFIG_DRM_VIRTIO_GPU_KMS option

2023-03-06 Thread Dmitry Osipenko
VirtIO-GPU got a new config option for disabling KMS. There were two problems left unnoticed during review when the new option was added: 1. The IS_ENABLED(CONFIG_DRM_VIRTIO_GPU_KMS) check in the code was inverted, hence KMS was disabled when it should be enabled and vice versa. 2. The disabled

[PATCH v4 10/10] drm/i915/gt: Hold a wakeref for the active VM

2023-03-06 Thread Andrzej Hajda
From: Chris Wilson There may be a disconnect between the GT used by the engine and the GT used for the VM, requiring us to hold a wakeref on both while the GPU is active with this request. Signed-off-by: Chris Wilson Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/intel_context.h

[PATCH v4 09/10] drm/i915: replace Intel internal tracker with kernel core ref_tracker

2023-03-06 Thread Andrzej Hajda
Beside reusing existing code, the main advantage of ref_tracker is tracking per instance of wakeref. It allows also to catch double put. On the other side we lose information about the first acquire and the last release, but the advantages outweigh it. v2: Call ref_tracker_dir_exit() only at

[PATCH v4 08/10] drm/i915: Correct type of wakeref variable

2023-03-06 Thread Andrzej Hajda
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c

[PATCH v4 07/10] drm/i915: Track leaked gt->wakerefs

2023-03-06 Thread Andrzej Hajda
From: Chris Wilson Track every intel_gt_pm_get() until its corresponding release in intel_gt_pm_put() by returning a cookie to the caller for acquire that must be passed by on rleased. When there is an imbalance, we can see who either tried to free a stale wakeref, or who forgot to free theirs.

[PATCH v4 05/10] drm/i915: Separate wakeref tracking types from rpm

2023-03-06 Thread Andrzej Hajda
These structs will be used by other subsystems. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/intel_runtime_pm.c | 14 +++--- drivers/gpu/drm/i915/intel_runtime_pm.h | 10 +- drivers/gpu/drm/i915/intel_wakeref.h | 4 ++--

[PATCH v4 06/10] drm/i915: Separate wakeref tracking

2023-03-06 Thread Andrzej Hajda
From: Chris Wilson Extract the callstack tracking of intel_runtime_pm.c into its own utility so that that we can reuse it for other online debugging of scoped wakerefs. Signed-off-by: Chris Wilson Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/Kconfig.debug | 9 ++

[PATCH v4 04/10] lib/ref_tracker: remove warnings in case of allocation failure

2023-03-06 Thread Andrzej Hajda
Library can handle allocation failures. To avoid allocation warnings __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been replaced with GFP_NOWAIT in case of stack allocation on tracker free call. Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 5 +++-- 1 file changed, 3

[PATCH v4 03/10] lib/ref_tracker: add printing to memory buffer

2023-03-06 Thread Andrzej Hajda
In case one wants to show stats via debugfs. Signed-off-by: Andrzej Hajda --- include/linux/ref_tracker.h | 8 +++ lib/ref_tracker.c | 56 ++--- 2 files changed, 56 insertions(+), 8 deletions(-) diff --git a/include/linux/ref_tracker.h

[PATCH v4 02/10] lib/ref_tracker: __ref_tracker_dir_print improve printing

2023-03-06 Thread Andrzej Hajda
To improve readability of ref_tracker printing following changes have been performed: - reports are printed per stack_handle - log is more compact, - added display name for ref_tracker_dir, - stack trace is printed indented, in the same printk call, - total number of references is printed every

[PATCH v4 01/10] lib/ref_tracker: add unlocked leak print helper

2023-03-06 Thread Andrzej Hajda
To have reliable detection of leaks, caller must be able to check under the same lock both: tracked counter and the leaks. dir.lock is natural candidate for such lock and unlocked print helper can be called with this lock taken. As a bonus we can reuse this helper in ref_tracker_dir_exit.

[PATCH v4 00/10] drm/i915: use ref_tracker library for tracking wakerefs

2023-03-06 Thread Andrzej Hajda
This is revived patchset improving ref_tracker library and converting i915 internal tracker to ref_tracker. The old thread ended without consensus about small kernel allocations, which are performed under spinlock. I have tried to solve the problem by splitting the calls, but it results in

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Set I915_BO_ALLOC_USER for framebuffer

2023-03-06 Thread Das, Nirmoy
On 3/6/2023 3:21 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:48AM +0100, Nirmoy Das wrote: Framebuffer is exposed to userspace so set I915_BO_ALLOC_USER flag for it. This also make sure that ttm allocates offset for lmem objects. I have no idea what that means. Sorry for poor

Re: [PATCH 11/99] fbdev/aty: Duplicate video-mode option string

2023-03-06 Thread Geert Uytterhoeven
Hi Thomas, Thanks for your patch! On Mon, Mar 6, 2023 at 5:00 PM Thomas Zimmermann wrote: > Assume that the driver does not own the option string or its substrings > and hence duplicate the option string for the video mode. The driver only > parses the option string once as part of module

Re: [PATCH 2/3] drm/i915: Add a helper func for gem obj mmap

2023-03-06 Thread Das, Nirmoy
On 3/6/2023 3:26 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:49AM +0100, Nirmoy Das wrote: Move gem obj mmap code to i915_gem_object_mmap() so that this can be used by others. Signed-off-by: Nirmoy Das --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 20 ++---

Re: [PATCH] amdgpu: Avoid building on UML

2023-03-06 Thread Felix Kuehling
Looks like this patch got lost over the holidays. Alex, are you OK with applying this patch? Or are people looking for a more general solution to not build HW drivers for UML? FWIW: Acked-by: Felix Kuehling Am 2023-01-12 um 23:30 schrieb Peter Foley: The amdgpu driver tries to use fields

[PATCH 57/99] fbdev/pm2fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees

[PATCH 92/99] fbdev/vesafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 96/99] fbdev/viafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 56/99] fbdev/platinumfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 16/99] fbdev/cirrusfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 99/99] fbdev: Constify option strings

2023-03-06 Thread Thomas Zimmermann
Return the option string as const char* from fb_get_options() to enforce fbdev's ownership of the memory region. Also avoids memory allocation within fb_get_options(). Callers that have to modify the option string must create their own copy. As most drivers use struct option_iter, this already

[PATCH 87/99] fbdev/uvesafb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees

[PATCH 74/99] fbdev/skeletonfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 72/99] fbdev/sisfb: Constify mode string

2023-03-06 Thread Thomas Zimmermann
Constify the intenal video-mode string that is passed around among functions. The caller owns the memory and callees do not modify its content. This change will later allow to constify the option string. No functional changes. Signed-off-by: Thomas Zimmermann ---

[PATCH 71/99] fbdev/savagefb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 88/99] fbdev/uvesafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 64/99] fbdev/pvr2fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 62/99] fbdev/ps3fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 89/99] fbdev/valkyriefb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/valkyriefb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/video/fbdev/valkyriefb.c b/drivers/video/fbdev/valkyriefb.c index 1007023a5e88..b166b7cfe0e5

[PATCH 60/99] fbdev/pm3fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 77/99] fbdev/sstfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 27/99] fbdev/geode: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 55/99] fbdev/platinumfb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/platinumfb.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/video/fbdev/platinumfb.c b/drivers/video/fbdev/platinumfb.c index

[PATCH 54/99] fbdev/omapfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 38/99] fbdev/intelfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 23/99] fbdev/fsl-diu-fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

[PATCH 98/99] staging/sm750fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions

  1   2   3   >