[PATCH 6/6] drm/debugfs: Make the show callback pass the pointer to the right object

2023-01-16 Thread Maíra Canal
Currently, the drivers need to access the struct drm_debugfs_entry to get the proper device on the show callback. There is no need for such thing, as you can wrap the show callback in order to provide to the driver the proper parameters: the struct seq_file, the struct drm_device and the

[PATCH 4/6] drm/debugfs: Create wrapper to register debugfs

2023-01-16 Thread Maíra Canal
Create a helper to encapsulate the code that creates a new debugfs files from a linked list related to an object. Moreover, the helper also provides more flexibily on the type of the object. Signed-off-by: Maíra Canal --- drivers/gpu/drm/drm_debugfs.c | 25 + 1 file

[PATCH 5/6] drm/debugfs: Make the struct drm_debugfs_entry independent of DRM device

2023-01-16 Thread Maíra Canal
In order to turn the API more expansible to other DRM objects, such as the struct drm_connector, make the struct drm_debugfs_entry hold a void pointer and cast the void pointer to the struct drm_device when needed. Signed-off-by: Maíra Canal --- drivers/gpu/drm/drm_debugfs.c | 2 +-

[PATCH 0/6] drm/debugfs: Make the debugfs structure more generic

2023-01-16 Thread Maíra Canal
This series is the first step to introduce a debugfs structure to KMS objects and it is inspired by the feedback provided in [1]. Thanks, Jani and Daniel for all the feedback provided! This first step is making the current API more generic and preparing it to receive the KMS objects in the

[PATCH 3/6] drm/debugfs: Create wrapper to add files to debugfs list

2023-01-16 Thread Maíra Canal
Create a helper to encapsulate the code that adds a new debugfs file to a linked list related to a object. Moreover, the helper also provides more flexibily, as the parameter is a struct drm_debugfs_list. Signed-off-by: Maíra Canal --- drivers/gpu/drm/drm_debugfs.c | 11 --- 1 file

[PATCH 2/6] drm/debugfs: Make drm_device use the struct drm_debugfs_list

2023-01-16 Thread Maíra Canal
The struct drm_debugfs_list encapsulates all the debugfs-related objects, so that they can be initialized and destroyed with two helpers. Therefore, make the struct drm_device use the struct drm_debugfs_list instead of instantiating the debugfs list and mutex separated. Signed-off-by: Maíra Canal

[PATCH 1/6] drm/debugfs: Introduce wrapper for debugfs list

2023-01-16 Thread Maíra Canal
Introduce a struct wrapper for all the debugfs-related stuff: the list of debugfs files and the mutex that protects it. This will make it easier to initialize all the debugfs list in a DRM object and will create a good abstraction for a possible implementation of the debugfs infrastructure for KMS

Re: [PATCH RFC 0/4] drm/panfrost: Expose memory usage stats through fdinfo

2023-01-16 Thread Steven Price
On 04/01/2023 13:03, Boris Brezillon wrote: > Hello, > > Here's an attempt at exposing some memory usage stats through fdinfo, > which recently proved useful in debugging a memory leak. Not entirely > sure the name I chose are accurate, so feel free to propose > alternatives, and let me know if

[PATCH] drm/msm/dpu: sc7180: add missing WB2 clock control

2023-01-16 Thread Dmitry Baryshkov
Add missing DPU_CLK_CTRL_WB2 to sc7180_mdp clocks array. Fixes: 51e4d60e6ba5 ("drm/msm/dpu: add writeback support for sc7180") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 3/6] drm/debugfs: Create wrapper to add files to debugfs list

2023-01-16 Thread Jani Nikula
On Mon, 16 Jan 2023, Maíra Canal wrote: > Create a helper to encapsulate the code that adds a new debugfs file to > a linked list related to a object. Moreover, the helper also provides > more flexibily, as the parameter is a struct drm_debugfs_list. > > Signed-off-by: Maíra Canal > --- >

[PATCH] dt-bindings: msm/dsi: Don't require vdds-supply on 7nm PHY

2023-01-16 Thread Konrad Dybcio
On some SoCs (hello SM6375) vdds-supply is not wired to any smd-rpm or rpmh regulator, but instead powered by the VDD_MX/mx.lvl line, which is voted for in the DSI ctrl node. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 1 - 1 file changed, 1

Re: [PATCH] drm/ttm: Include to fix MIPS build

2023-01-16 Thread Thomas Zimmermann
I'd add a Fixes tag, but don't know the commit when this was introduced. Am 16.01.23 um 13:10 schrieb Thomas Zimmermann: On MIPS, vmap() and vunmap() are undeclared in ttm_bo_util.c. An error message is shown below. CC drivers/gpu/drm/ttm/ttm_bo_util.o

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Allow error capture without a request

2023-01-16 Thread Tvrtko Ursulin
On 13/01/2023 17:46, Hellstrom, Thomas wrote: On Fri, 2023-01-13 at 09:51 +, Tvrtko Ursulin wrote: On 12/01/2023 20:40, John Harrison wrote: On 1/12/2023 02:01, Tvrtko Ursulin wrote: On 12/01/2023 02:53, john.c.harri...@intel.com wrote: From: John Harrison There was a report of

Re: remove arch/sh

2023-01-16 Thread John Paul Adrian Glaubitz
Hello Christoph! On 1/16/23 08:13, Christoph Hellwig wrote: On Fri, Jan 13, 2023 at 09:09:52AM +0100, John Paul Adrian Glaubitz wrote: I'm still maintaining and using this port in Debian. It's a bit disappointing that people keep hammering on it. It works fine for me. What platforms do you

Re: linux-next: manual merge of the fbdev tree with the drm-misc tree

2023-01-16 Thread Helge Deller
On 1/16/23 01:54, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the fbdev tree got a conflict in: include/linux/fb.h between commit: 5b6373de4351 ("drm/fbdev: Remove aperture handling and FBINFO_MISC_FIRMWARE") from the drm-misc tree and commit: 72ac3535c2c5 ("fbdev:

[PATCH libdrm] vbltest: add option to use high pipe

2023-01-16 Thread Hoegeun Kwon
Add option to use high pipe. Signed-off-by: Hoegeun Kwon --- tests/vbltest/vbltest.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c index 1c2b519eec4a..1be77b81c560 100644 --- a/tests/vbltest/vbltest.c +++

[PATCH -resend] drm/nouveau/kms/nv50- (gcc13): fix nv50_wndw_new_ prototype

2023-01-16 Thread Jiri Slaby (SUSE)
gcc-13 warns about mismatching types for enums. That revealed switched arguments of nv50_wndw_new_(): drivers/gpu/drm/nouveau/dispnv50/wndw.c:696:1: error: conflicting types for 'nv50_wndw_new_' due to enum/integer mismatch; have 'int(const struct nv50_wndw_func *, struct drm_device *, enum

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Unwind hugepages to drop wakeref on error

2023-01-16 Thread Andrzej Hajda
On 13.01.2023 12:49, Nirmoy Das wrote: From: Chris Wilson Make sure that upon error after we have acquired the wakeref we do release it again. Signed-off-by: Chris Wilson Signed-off-by: Nirmoy Das Reviewed-by: Andrzej Hajda Regards Andrzej ---

[PATCH 2/2] drm/msm/dsi: Add phy configuration for SM6375

2023-01-16 Thread Konrad Dybcio
From: Konrad Dybcio SM6375 uses a boring standard 7nm PHY. Add a configuration entry for it. Signed-off-by: Konrad Dybcio --- Depends on [1] to work properly, but won't hurt for it to land separately.. [1]

[PATCH 1/2] dt-bindings: display/msm: Add SM6375 DSI PHY

2023-01-16 Thread Konrad Dybcio
SM6375 has a single 7nm DSI PHY. Document it. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml

Re: [PATCH 2/2] drm/msm/dsi: Add phy configuration for SM6375

2023-01-16 Thread Dmitry Baryshkov
On Mon, 16 Jan 2023 at 13:42, Konrad Dybcio wrote: > > > > On 16.01.2023 12:40, Konrad Dybcio wrote: > > From: Konrad Dybcio > > > > SM6375 uses a boring standard 7nm PHY. Add a configuration entry for it. > > > > Signed-off-by: Konrad Dybcio > > --- > Signed-off-by: Konrad Dybcio > > Sorry,

Re: [PATCH v8 1/4] drm: of: Add drm_of_get_dsi_bus helper function

2023-01-16 Thread Linus Walleij
On Wed, Jan 11, 2023 at 4:01 AM kernel test robot wrote: >126 static inline int >127 drm_of_get_data_lanes_count_ep(const struct device_node *port, >128 int port_reg, int reg, >129 const unsigned int min, >130

[PATCH 00/22] drm: Remove includes for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
A lot of source files include drm_crtc_helper.h for its contained include statements. This leads to excessive compile-time dependencies. Where possible, remove the include statements for drm_crtc_helper.h and include the required source files directly. Also remove the include statements from

Re: [PATCH 2/6] drm/debugfs: Make drm_device use the struct drm_debugfs_list

2023-01-16 Thread Jani Nikula
On Mon, 16 Jan 2023, Maíra Canal wrote: > The struct drm_debugfs_list encapsulates all the debugfs-related > objects, so that they can be initialized and destroyed with two helpers. > Therefore, make the struct drm_device use the struct drm_debugfs_list > instead of instantiating the debugfs list

[PATCH v2 1/2] dt-bindings: display: bridge: Add GPIO display mux binding

2023-01-16 Thread Pin-yen Lin
From: Nicolas Boichat Add bindings for Generic GPIO mux driver. Signed-off-by: Nicolas Boichat Signed-off-by: Pin-yen Lin --- Changes in v2: - Referenced existing dt-binding schemas from graph.yaml - Added ddc-i2c-bus into the bindings .../bindings/display/bridge/gpio-mux.yaml | 95

[PATCH v2 2/2] drm: bridge: Generic GPIO mux driver

2023-01-16 Thread Pin-yen Lin
From: Nicolas Boichat This driver supports single input, 2 output display mux (e.g. HDMI mux), that provide its status via a GPIO. Signed-off-by: Nicolas Boichat Signed-off-by: Pin-yen Lin --- Laurent in v1 pointed out that the driver doesn't support panels as a downstream. IIUC this can be

Re: [PATCH 1/2] drm/ttm: Check ttm_debugfs_root before creating files under it

2023-01-16 Thread Christian König
Am 16.01.23 um 03:44 schrieb Ma, Jun: On 1/13/2023 5:37 PM, Christian König wrote: Am 13.01.23 um 06:34 schrieb Ma Jun: Check the ttm_debugfs_root before creating files under it. If the ttm_debugfs_root is NULL, all the files created for ttm/ will be placed in the /sys/kerne/debug/ but not

[PATCH v2 0/2] Add generic-display-mux driver and bindings

2023-01-16 Thread Pin-yen Lin
This is the v2 the mux driver part of v1. This series is developed for and tested on MT8173 board, whose layout looks like: /-- anx7688 -- MT8173 HDMI bridge -- GPIO mux \-- native HDMI v1:

Re: [PATCH -resend] drm/nouveau/kms/nv50- (gcc13): fix nv50_wndw_new_ prototype

2023-01-16 Thread Karol Herbst
On Mon, Jan 16, 2023 at 11:07 AM Jiri Slaby (SUSE) wrote: > > gcc-13 warns about mismatching types for enums. That revealed switched > arguments of nv50_wndw_new_(): > drivers/gpu/drm/nouveau/dispnv50/wndw.c:696:1: error: conflicting types for > 'nv50_wndw_new_' due to enum/integer mismatch;

Re: [PATCH 1/6] drm/amdgpu: Generalize KFD dmabuf import

2023-01-16 Thread Christian König
[SNIP] When the BO is imported into the same GPU, you get a reference to the same BO, so the imported BO has the same mmap_offset as the original BO. When the BO is imported into a different GPU, it is a new BO with a new mmap_offset. That won't work. I don't think this is incorrect.

Re: [PATCH 2/2] drm/msm/dsi: Add phy configuration for SM6375

2023-01-16 Thread Konrad Dybcio
On 16.01.2023 12:40, Konrad Dybcio wrote: > From: Konrad Dybcio > > SM6375 uses a boring standard 7nm PHY. Add a configuration entry for it. > > Signed-off-by: Konrad Dybcio > --- Signed-off-by: Konrad Dybcio Sorry, bit messy revisiting old patches before the email change.. Konrad >

Re: [PATCH RFC 0/4] drm/panfrost: Expose memory usage stats through fdinfo

2023-01-16 Thread Steven Price
On 16/01/2023 11:05, Boris Brezillon wrote: > Hi Steven, > > On Mon, 16 Jan 2023 10:30:21 + > Steven Price wrote: > >> On 04/01/2023 13:03, Boris Brezillon wrote: >>> Hello, >>> >>> Here's an attempt at exposing some memory usage stats through fdinfo, >>> which recently proved useful in

Re: [Intel-gfx] [PATCH 1/4] drm/i915/gt: Remove platform comments from workarounds

2023-01-16 Thread Tvrtko Ursulin
On 12/01/2023 21:42, Lucas De Marchi wrote: On Thu, Jan 05, 2023 at 01:35:52PM +, Tvrtko Ursulin wrote: Okay to sum it up below with some final notes.. On 04/01/2023 19:34, Matt Roper wrote: On Wed, Jan 04, 2023 at 09:58:13AM +, Tvrtko Ursulin wrote: On 23/12/2022 18:28, Lucas De

[PATCH 03/22] drm/amdgpu: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 01/22] drm/amdgpu: Fix coding style

2023-01-16 Thread Thomas Zimmermann
Align a closing brace and remove trailing whitespaces. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 07/22] drm/bridge: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 12/22] drm/logicvc: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 13/22] drm/nouveau: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 02/22] drm: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several DRM core and helper source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. The header file, drm_fixed.h,

[PATCH 08/22] drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 06/22] drm/ast: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 04/22] drm/arm/komeda: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 05/22] drm/aspeed: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 22/22] drm/crtc-helper: Remove most include statements from drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Remove most include statements from crm_crtc_helper.h and forward- declare the contained types in drm_crtc_helper.h. Only keep for the definition of 'bool'. Suggested-by: Sam Ravnborg Signed-off-by: Thomas Zimmermann --- include/drm/drm_crtc_helper.h | 14 +- 1 file changed, 9

[PATCH 18/22] drm/sun4i: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 11/22] drm/kmb: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 19/22] drm/tidss: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 09/22] drm/i2c/ch7006: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 10/22] drm/ingenic: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[Bug 216920] Running IDE eventually leads to BUG: kernel NULL pointer dereference

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

Re: [PATCH v3 5/6] ARM: dts: renesas: Use new media bus type macros

2023-01-16 Thread Geert Uytterhoeven
Hi Laurent, On Mon, Jan 16, 2023 at 11:49 AM Laurent Pinchart wrote: > On Mon, Jan 16, 2023 at 11:44:13AM +0100, Geert Uytterhoeven wrote: > > On Mon, Jan 16, 2023 at 11:38 AM Laurent Pinchart wrote: > > > On Mon, Jan 16, 2023 at 11:24:10AM +0100, Geert Uytterhoeven wrote: > > > > On Sat, Jan

[PATCH v3 1/3] drm/i915: Allow switching away via vga-switcheroo if uninitialized

2023-01-16 Thread Thomas Zimmermann
Always allow switching away via vga-switcheroo if the display is uninitalized. Instead prevent switching to i915 if the device has not been initialized. This issue was introduced by commit 5df7bd130818 ("drm/i915: skip display initialization when there is no display") protected, which protects

[PATCH v3 3/3] drm: Call vga_switcheroo_process_delayed_switch() in drm_lastclose

2023-01-16 Thread Thomas Zimmermann
Several lastclose helpers call vga_switcheroo_process_delayed_switch(). It's better to call the helper from drm_lastclose() after the kernel client's screen has been restored. This way, all drivers can benefit without having to implement their own lastclose helper. For drivers without

[PATCH v3 2/3] drm/fb-helper: Set framebuffer for vga-switcheroo clients

2023-01-16 Thread Thomas Zimmermann
Set the framebuffer info for drivers that support VGA switcheroo. Only affects the amdgpu and nouveau drivers, which use VGA switcheroo and generic fbdev emulation. For other drivers, this does nothing. This fixes a potential regression in the console code. Both, amdgpu and nouveau, invoked

[PATCH v3 0/3] drm/{amdgpu, i915, nouveau, radeon}: Fix fbdev and vga-switcheroo

2023-01-16 Thread Thomas Zimmermann
(was: drm: Generic fbdev and vga-switcheroo) This patchset fixes how fbdev helpers interact with vga-switcheroo. The first two patches are bug fixes for the existing code. The third patch cleans up the drivers. Patch 1 fixes i915 to do the correct thing if the device has not been initialized

Re: [REGRESSION] GM20B probe fails after commit 2541626cfb79

2023-01-16 Thread Diogo Ivo
On Mon, Jan 16, 2023 at 07:45:05AM +1000, David Airlie wrote: > On Thu, Dec 29, 2022 at 12:58 AM Diogo Ivo > wrote: > As a quick check can you try changing > > drivers/gpu/drm/nouveau/nvkm/core/firmware.c:nvkm_firmware_mem_target > from NVKM_MEM_TARGET_HOST to NVKM_MEM_TARGET_NCOH ? Hello!

Re: [PATCH v10 1/9] device property: Add remote endpoint to devcon matcher

2023-01-16 Thread Sakari Ailus
Hi Prashant, On Thu, Jan 12, 2023 at 02:31:45PM -0800, Prashant Malani wrote: > HI Sakari, > > On Thu, Jan 12, 2023 at 5:32 AM Sakari Ailus > wrote: > > > > Hi Pin-yen, > > > > On Thu, Jan 12, 2023 at 12:20:56PM +0800, Pin-yen Lin wrote: > > > From: Prashant Malani > > > + /* > > >

[Bug 216920] Running IDE eventually leads to BUG: kernel NULL pointer dereference

2023-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216920 --- Comment #2 from Artem S. Tashkinov (a...@gmx.com) --- Sorry, wrong URL, https://gitlab.freedesktop.org/drm/amd/-/issues -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of

Re: [PATCH v4] arch: rename all internal names __xchg to __arch_xchg

2023-01-16 Thread Geert Uytterhoeven
On Thu, Jan 5, 2023 at 10:54 AM Andrzej Hajda wrote: > __xchg will be used for non-atomic xchg macro. > > Signed-off-by: Andrzej Hajda > Reviewed-by: Arnd Bergmann > --- > v2: squashed all arch patches into one > v3: fixed alpha/xchg_local, thx to l...@intel.com > v4: adjusted indentation

[PATCH -resend] drm/nouveau/kms/nv50- (gcc13): fix nv50_wndw_new_ prototype

2023-01-16 Thread Jiri Slaby (SUSE)
gcc-13 warns about mismatching types for enums. That revealed switched arguments of nv50_wndw_new_(): drivers/gpu/drm/nouveau/dispnv50/wndw.c:696:1: error: conflicting types for 'nv50_wndw_new_' due to enum/integer mismatch; have 'int(const struct nv50_wndw_func *, struct drm_device *, enum

Re: [PATCH v3 5/6] ARM: dts: renesas: Use new media bus type macros

2023-01-16 Thread Geert Uytterhoeven
Hi Laurent, On Mon, Jan 16, 2023 at 11:38 AM Laurent Pinchart wrote: > On Mon, Jan 16, 2023 at 11:24:10AM +0100, Geert Uytterhoeven wrote: > > On Sat, Jan 14, 2023 at 4:26 PM Laurent Pinchart wrote: > > > Geert, could you please take this in your tree for v6.3 ? The two > > > patches that the DT

Re: [PATCH 2/2] drm/ttm: Use debugfs_remove_recursive to remove ttm directory

2023-01-16 Thread Christian König
Am 16.01.23 um 03:44 schrieb Ma, Jun: On 1/13/2023 5:38 PM, Christian König wrote: Am 13.01.23 um 06:34 schrieb Ma Jun: Use debugfs_remove_recursive to remove the /sys/kernel/debug/ttm directory for better compatibility. Becuase debugfs_remove fails on older kernel. Again NAK for upstreaming.

Re: [PATCH 2/2] drm/msm/dsi: Add phy configuration for SM6375

2023-01-16 Thread Konrad Dybcio
On 16.01.2023 12:47, Dmitry Baryshkov wrote: > On Mon, 16 Jan 2023 at 13:42, Konrad Dybcio wrote: >> >> >> >> On 16.01.2023 12:40, Konrad Dybcio wrote: >>> From: Konrad Dybcio >>> >>> SM6375 uses a boring standard 7nm PHY. Add a configuration entry for it. >>> >>> Signed-off-by: Konrad Dybcio

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Allow error capture without a request

2023-01-16 Thread Tvrtko Ursulin
On 13/01/2023 21:29, John Harrison wrote: On 1/13/2023 09:46, Hellstrom, Thomas wrote: On Fri, 2023-01-13 at 09:51 +, Tvrtko Ursulin wrote: On 12/01/2023 20:40, John Harrison wrote: On 1/12/2023 02:01, Tvrtko Ursulin wrote: On 12/01/2023 02:53, john.c.harri...@intel.com wrote: [snip]

[PATCH 0/3] drm/i915: Use designated initializers for struct pci_device_id init

2023-01-16 Thread Jani Nikula
Use designated initializers for struct pci_device_id init. Jani Nikula (3): drm/i915/pciids: add common INTEL_VGA_DEVICE_INIT macro drm/i915/pciids: use designated initializers for struct pci_device_id drm/i915: define INTEL_VGA_DEVICE_INIT() for subplatform init

[PATCH 3/3] drm/i915: define INTEL_VGA_DEVICE_INIT() for subplatform init

2023-01-16 Thread Jani Nikula
Redefine INTEL_VGA_DEVICE_INIT() instead of INTEL_VGA_DEVICE() for subplatform init. This is only for completeness as we don't use subplatforms for Quanta devices. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_device_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 1/3] drm/i915/pciids: add common INTEL_VGA_DEVICE_INIT macro

2023-01-16 Thread Jani Nikula
Add a shared abstraction for the INTEL_VGA_DEVICE() and INTEL_QUANTA_VGA_DEVICE() initializers to help follow-up changes. Sprinkle in some underscores and parenthesis to be safe. Signed-off-by: Jani Nikula --- include/drm/i915_pciids.h | 23 --- 1 file changed, 12

[PATCH 2/3] drm/i915/pciids: use designated initializers for struct pci_device_id

2023-01-16 Thread Jani Nikula
Use designated initializers for struct pci_device_id in kernel to avoid the dependency on struct pci_device_id remaining unchanged. Recently, commit 343b7258687e ("PCI: Add 'override_only' field to struct pci_device_id") added a new member leading to warnings about missing field initializers. Any

Re: [PATCH v3 5/6] ARM: dts: renesas: Use new media bus type macros

2023-01-16 Thread Geert Uytterhoeven
Hi Laurent, CC linux-renesas-soc On Sat, Jan 14, 2023 at 4:26 PM Laurent Pinchart wrote: > Geert, could you please take this in your tree for v6.3 ? The two > patches that the DT changes depend on have been merged in v6.2. Thank you, I had missed these. > On Thu, Jun 16, 2022 at 01:14:09AM

Re: [PATCH RFC 0/4] drm/panfrost: Expose memory usage stats through fdinfo

2023-01-16 Thread Boris Brezillon
Hi Steven, On Mon, 16 Jan 2023 10:30:21 + Steven Price wrote: > On 04/01/2023 13:03, Boris Brezillon wrote: > > Hello, > > > > Here's an attempt at exposing some memory usage stats through fdinfo, > > which recently proved useful in debugging a memory leak. Not entirely > > sure the name I

[PATCH] drm/ttm: Include to fix MIPS build

2023-01-16 Thread Thomas Zimmermann
On MIPS, vmap() and vunmap() are undeclared in ttm_bo_util.c. An error message is shown below. CC drivers/gpu/drm/ttm/ttm_bo_util.o ../drivers/gpu/drm/ttm/ttm_bo_util.c: In function 'ttm_bo_kmap_ttm': ../drivers/gpu/drm/ttm/ttm_bo_util.c:364:32: error: implicit declaration of function

[PATCH 14/22] drm/radeon: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 15/22] drm/rockchip: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 16/22] drm/shmobile: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 21/22] drm/vboxvideo: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 20/22] drm/udl: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

[PATCH 17/22] drm/sprd: Remove unnecessary include statements for drm_crtc_helper.h

2023-01-16 Thread Thomas Zimmermann
Several source files include drm_crtc_helper.h without needing it or only to get its transitive include statements; leading to unnecessary compile-time dependencies. Directly include required headers and drop drm_crtc_helper.h where possible. Signed-off-by: Thomas Zimmermann ---

Re: [PATCH v3 5/6] ARM: dts: renesas: Use new media bus type macros

2023-01-16 Thread Laurent Pinchart
On Mon, Jan 16, 2023 at 11:44:13AM +0100, Geert Uytterhoeven wrote: > On Mon, Jan 16, 2023 at 11:38 AM Laurent Pinchart wrote: > > On Mon, Jan 16, 2023 at 11:24:10AM +0100, Geert Uytterhoeven wrote: > > > On Sat, Jan 14, 2023 at 4:26 PM Laurent Pinchart wrote: > > > > Geert, could you please take

Re: [Intel-gfx] [PATCH 3/4] drm/i915/guc: Look for a guilty context when an engine reset fails

2023-01-16 Thread Tvrtko Ursulin
On 14/01/2023 01:27, John Harrison wrote: On 1/13/2023 01:22, Tvrtko Ursulin wrote: On 12/01/2023 20:59, John Harrison wrote: On 1/12/2023 02:15, Tvrtko Ursulin wrote: On 12/01/2023 02:53, john.c.harri...@intel.com wrote: From: John Harrison Engine resets are supposed to never fail. But

Re: [PATCH] dt-bindings: msm/dsi: Don't require vdds-supply on 7nm PHY

2023-01-16 Thread Dmitry Baryshkov
On Mon, 16 Jan 2023 at 13:51, Konrad Dybcio wrote: > > On some SoCs (hello SM6375) vdds-supply is not wired to any smd-rpm > or rpmh regulator, but instead powered by the VDD_MX/mx.lvl line, > which is voted for in the DSI ctrl node. I think we should have an explicit `if compatible then

Re: [RFC PATCH 0/4] dt-bindings: Introduce dual-link panels & panel-vendors

2023-01-16 Thread Laurent Pinchart
Hi Aradhya, On Tue, Jan 03, 2023 at 12:16:11PM +0530, Aradhya Bhatia wrote: > Hi all, > > Microtips Technology Solutions USA, and Lincoln Technology Solutions are > 2 display panel vendors, and the first 2 patches add their vendor > prefixes. > > The fourth patch, simply introduces the new

Re: [PATCH v3 5/6] ARM: dts: renesas: Use new media bus type macros

2023-01-16 Thread Laurent Pinchart
Hi Geert, On Mon, Jan 16, 2023 at 11:24:10AM +0100, Geert Uytterhoeven wrote: > On Sat, Jan 14, 2023 at 4:26 PM Laurent Pinchart wrote: > > Geert, could you please take this in your tree for v6.3 ? The two > > patches that the DT changes depend on have been merged in v6.2. > > Thank you, I had

Re: [PATCH] dt-bindings: msm/dsi: Don't require vdds-supply on 7nm PHY

2023-01-16 Thread Krzysztof Kozlowski
On 16/01/2023 12:51, Konrad Dybcio wrote: > On some SoCs (hello SM6375) vdds-supply is not wired to any smd-rpm > or rpmh regulator, but instead powered by the VDD_MX/mx.lvl line, > which is voted for in the DSI ctrl node. > > Signed-off-by: Konrad Dybcio > --- Acked-by: Krzysztof Kozlowski

Re: [PATCH 1/6] drm/amdgpu: Generalize KFD dmabuf import

2023-01-16 Thread Felix Kuehling
Am 2023-01-16 um 06:42 schrieb Christian König: [SNIP] When the BO is imported into the same GPU, you get a reference to the same BO, so the imported BO has the same mmap_offset as the original BO. When the BO is imported into a different GPU, it is a new BO with a new mmap_offset. That

[Bug 216917] hibernation regression since 6.0.18 (Ryzen-5650U incl. Radeon GPU)

2023-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216917 --- Comment #15 from Rainer Fiebig (j...@mailbox.org) --- (In reply to Mario Limonciello (AMD) from comment #13) > Can we please confirm it's actually broken in 5.15.y before going through > that effort? I have tested this with 5.15.87/88. Error

Re: [RESEND][PATCH] drm/nouveau/fb/ga102: Replace zero-length array of trailing structs with flex-array

2023-01-16 Thread Karol Herbst
On Mon, Jan 16, 2023 at 5:24 PM Karol Herbst wrote: > > On Wed, Jan 4, 2023 at 1:52 AM Gustavo A. R. Silva > wrote: > > > > On Tue, Jan 03, 2023 at 03:48:36PM -0800, Kees Cook wrote: > > > Zero-length arrays are deprecated[1] and are being replaced with > > > flexible array members in support of

[Bug 216917] hibernation regression since 6.0.18 (Ryzen-5650U incl. Radeon GPU)

2023-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216917 --- Comment #17 from Rainer Fiebig (j...@mailbox.org) --- (In reply to Alex Deucher from comment #16) > (In reply to Rainer Fiebig from comment #15) > > (In reply to Mario Limonciello (AMD) from comment #13) > > > Can we please confirm it's

[pull] drm/msm: drm-msm-fixes-2023-01-16 for v6.3-rc5

2023-01-16 Thread Rob Clark
Hi Dave, A couple more fixes for the v6.3 cycle, which were meant to be part of the previous fixes pull, but I fumbled at git when applying the tag. The following changes since commit f4a75b5933c998e60fd812a7680e0971eb1c7cee: drm/msm/a6xx: Avoid gx gbit halt during rpm suspend (2023-01-05

Re: [PATCH 3/3] drm/msm/dpu: simplify blend configuration

2023-01-16 Thread Neil Armstrong
On 16/01/2023 07:33, Dmitry Baryshkov wrote: Rewrite dpu_hw_ctl_setup_blendstage() to use static data configuration rather than using a switch-case. This simplifies adding support for new pipes. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 156

Re: [PATCH 2/3] drm/msm/dpu: simplify ctl_setup_blendstage calculation

2023-01-16 Thread Neil Armstrong
On 16/01/2023 07:33, Dmitry Baryshkov wrote: Extract the common expression in the dpu_hw_ctl_setup_blendstage() function. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git

[Bug 216917] hibernation regression since 6.0.18 (Ryzen-5650U incl. Radeon GPU)

2023-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216917 Mario Limonciello (AMD) (mario.limoncie...@amd.com) changed: What|Removed |Added Status|REOPENED

Re: Barco MXRT-5600 branded W5100 with PCI ID 664d

2023-01-16 Thread Alex Deucher
On Sun, Jan 15, 2023 at 11:49 AM Matthias Reichl wrote: > > I noticed some of the used HP Z240 workstations I recently bought had a > Barco MXRT-5600 branded FirePro W5100 card installed - some others came with > an unbranded W5100 (with the standard 6449 PCI ID). > > Except for a large Barco

[Bug 216917] hibernation regression since 6.0.18 (Ryzen-5650U incl. Radeon GPU)

2023-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216917 --- Comment #13 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) --- Can we please confirm it's actually broken in 5.15.y before going through that effort? -- You may reply to this email to add a comment. You are receiving this mail

[Bug 216917] hibernation regression since 6.0.18 (Ryzen-5650U incl. Radeon GPU)

2023-01-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216917 --- Comment #16 from Alex Deucher (alexdeuc...@gmail.com) --- (In reply to Rainer Fiebig from comment #15) > (In reply to Mario Limonciello (AMD) from comment #13) > > Can we please confirm it's actually broken in 5.15.y before going through > >

Re: [PATCH v7 1/4] dt-bindings: msm: dsi-controller-main: Add compatible strings for every current SoC

2023-01-16 Thread Rob Herring
On Mon, 16 Jan 2023 15:21:25 +, Bryan O'Donoghue wrote: > Currently we do not differentiate between the various users of the > qcom,mdss-dsi-ctrl. The driver is flexible enough to operate from one > compatible string but, the hardware does have some significant differences > in the number of

Re: [PATCH] drm/amd/display: use swap() helper macro in bios_parser

2023-01-16 Thread Alex Deucher
Applied. Thanks! On Sun, Jan 15, 2023 at 4:26 AM Deepak R Varma wrote: > > Use swap() helper macro instead of open coded swap instructions. The > change also facilitates code cleanup and realignment for improved > readability. Issue identified using swap.cocci Coccinelle semantic > patch

Re: [PATCH] drm/i915/selftests: Unwind hugepages to drop wakeref on error

2023-01-16 Thread Andi Shyti
Hi Nirmoy, On Fri, Jan 13, 2023 at 01:00:53PM +0100, Nirmoy Das wrote: > From: Chris Wilson > > Make sure that upon error after we have acquired the wakeref we do > release it again. > > Fixes: 027c38b4121e ("drm/i915/selftests: Grab the runtime pm in shrink_thp") > Reviewed-by: Matthew Auld

Re: [PATCH 1/3] drm/msm/dpu: fix blend setup for DMA4 and DMA5 layers

2023-01-16 Thread Neil Armstrong
On 16/01/2023 07:33, Dmitry Baryshkov wrote: SM8550 uses new register to map SSPP_DMA4 and SSPP_DMA5 units to blend stages. Add proper support for this register to allow using these two planes for image processing. Fixes: efcd0107727c ("drm/msm/dpu: add support for SM8550") Cc: Neil Armstrong

Re: [RESEND][PATCH] drm/nouveau/fb/ga102: Replace zero-length array of trailing structs with flex-array

2023-01-16 Thread Karol Herbst
On Wed, Jan 4, 2023 at 1:52 AM Gustavo A. R. Silva wrote: > > On Tue, Jan 03, 2023 at 03:48:36PM -0800, Kees Cook wrote: > > Zero-length arrays are deprecated[1] and are being replaced with > > flexible array members in support of the ongoing efforts to tighten the > > FORTIFY_SOURCE routines on

Re: nvkm_devinit_func.disable() to be made void

2023-01-16 Thread Deepak R Varma
On Sat, Jan 14, 2023 at 08:10:43PM +0530, Deepak R Varma wrote: > Hello, > It appears that the callback function disable() of struct nvkm_devinit_func > does > not need return U64 and can be transformed to be a void. This will impact a > few > drivers that have currently implementation of this

  1   2   >