Re: [PATCH v3 0/8] Initial support of MSM8937 and Xiaomi Redmi 3S

2025-02-28 Thread Will Deacon
On Mon, 24 Feb 2025 02:56:15 +0100, Barnabás Czémán wrote: > This patch series add initial support for MSM8937 SoC > and Xiaomi Redmi 3S (land). > > The series is extending the MSM8917 gcc and pinctrl drivers > because they are sibling SoCs. > MSM8937 have 4 more A53 cores and have one more dsi po

Re: [PATCH 2/2] drm/amdgpu: Make use of drm_wedge_app_info

2025-02-28 Thread Raag Jadav
On Fri, Feb 28, 2025 at 06:49:43PM -0300, André Almeida wrote: > Hi Raag, > > On 2/28/25 11:58, Raag Jadav wrote: > > On Fri, Feb 28, 2025 at 09:13:53AM -0300, André Almeida wrote: > > > To notify userspace about which app (if any) made the device get in a > > > wedge state, make use of drm_wedge_

Re: [PATCH 1/2] drm: Create an app info option for wedge events

2025-02-28 Thread Raag Jadav
On Fri, Feb 28, 2025 at 06:54:12PM -0300, André Almeida wrote: > Hi Raag, > > On 2/28/25 11:20, Raag Jadav wrote: > > Cc: Lucas > > > > On Fri, Feb 28, 2025 at 09:13:52AM -0300, André Almeida wrote: > > > When a device get wedged, it might be caused by a guilty application. > > > For userspace, k

Re: [PATCH v2 1/8] drm/client: Constify modes

2025-02-28 Thread kernel test robot
Hi Ville, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-exynos/exynos-drm-next] [also build test WARNING on linus/master v6.14-rc4 next-20250228] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[PATCH v2 3/8] drm/client: Streamline mode selection debugs

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä Get rid of all the redundant debugs and just wait until the end to print which mode (and of which type) we picked. Reviewed-by: Thomas Zimmermann Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_client_modeset.c | 70 +--- 1 file changed, 33 ins

[PATCH v2 2/8] drm/client: Use array notation for function arguments

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä Use the array notation rather that the pointer notation for function arguments. This makes it clear to the reader that we are in fact dealing with an array rather than a single pointer. Functionally the two are equivalent. Reviewed-by: Jani Nikula Reviewed-by: Thomas Zimmerm

Re: [PATCH] drm/i915/gvt: update MAINTAINERS

2025-02-28 Thread Simona Vetter
On Thu, Feb 27, 2025 at 11:38:05AM +0200, Jani Nikula wrote: > Update GVT-g MAINTAINERS entry to reflect the current status of > maintenance and repositories. > > Cc: Dave Airlie > Cc: Joonas Lahtinen > Cc: Rodrigo Vivi > Cc: Simona Vetter > Cc: Tvrtko Ursulin > Cc: Zhenyu Wang > Cc: Zhi Wan

[PATCH v2 7/8] drm/client: Move variables to tighter scope

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä Bunch of variables are only needed inside loops and whatnot. Move them to a tighter scope to make the code less confusing. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_client_modeset.c | 33 +++- 1 file changed, 18 insertions(+), 15 deletions

[PATCH v2 1/8] drm/client: Constify modes

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä The modes used by the client code live on the connectors' mode lists, which are not owned by the client code, and thus it has no business modifying the modes. Mark the modes const to make that fact abundantly clear. Reviewed-by: Jani Nikula Reviewed-by: Thomas Zimmermann Si

Re: [PATCH v2 1/8] drm/client: Constify modes

2025-02-28 Thread kernel test robot
Hi Ville, kernel test robot noticed the following build errors: [auto build test ERROR on drm-exynos/exynos-drm-next] [also build test ERROR on linus/master v6.14-rc4 next-20250228] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

[PATCH v2] drm: panel-backlight-quirks: Add Framework 16 panel

2025-02-28 Thread Mark Dietzer via B4 Relay
x27;B', 'O', 'E', 0x0cb4), + .ident.name = "NE160QDM-NZ6", + .min_brightness = 0, + }, }; static bool drm_panel_min_backlight_quirk_matches(const struct drm_panel_min_backlight_quirk *quirk, --- base-commit: 76544811c850a1f4c055aa182b513b7a8438

[PATCH] drm/gem: fix overflow in calculating DMA GEM size

2025-02-28 Thread Ваторопин Андрей
From: Andrey Vatoropin The IOCTL handler drm_mode_create_dumb receives different parameters from the user, specifically "height", "width" and others. Sanity checks are performed on these parameters. However, these parameters are sent to the ->dumb_create() callback, and during the processing of

Re: [PATCH v2 1/5] rust: fix signature of rust_fmt_argument

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 7:41 AM Alice Ryhl wrote: > > Without this change, the rest of this series will emit the following > error message: > > error[E0308]: `if` and `else` have incompatible types > --> /rust/kernel/print.rs:22:22 >| > 21 | #[export] >| - expected because of thi

Re: [PATCH v4 15/15] drm/bridge: ti-sn65dsi86: Use bridge_state crtc pointer

2025-02-28 Thread Doug Anderson
Hi, On Tue, Feb 25, 2025 at 8:44 AM Maxime Ripard wrote: > > The TI sn65dsi86 driver follows the drm_encoder->crtc pointer that is > deprecated and shouldn't be used by atomic drivers. > > This was due to the fact that we did't have any other alternative to > retrieve the CRTC pointer. Fortunatel

[PATCH] drm/msm/a6xx: Fix a6xx indexed-regs in devcoreduump

2025-02-28 Thread Rob Clark
From: Rob Clark Somehow, possibly as a result of rebase gone badly, setting nr_indexed_regs for pre-a650 a6xx devices lost the setting of nr_indexed_regs, resulting in values getting snapshot, but omitted from the devcoredump. Fixes: e997ae5f45ca ("drm/msm/a6xx: Mostly implement A7xx gpu_state")

Re: [PATCH v2 5/5] panic_qr: use new #[export] macro

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 12:08 PM Alice Ryhl wrote: > > On Fri, Feb 28, 2025 at 4:55 PM Tamir Duberstein wrote: > > > > On Fri, Feb 28, 2025 at 7:41 AM Alice Ryhl wrote: > > > > > > @@ -980,8 +983,12 @@ fn draw_all(&mut self, data: impl Iterator > > u8>) { > > > /// * If `url_len` > 0, remove th

Re: [PATCH v2 3/5] rust: add #[export] macro

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 10:49 AM Miguel Ojeda wrote: > > On Fri, Feb 28, 2025 at 4:41 PM Tamir Duberstein wrote: > > > > This needs an update given Miguel's comments on the cover letter. I > > wonder if the code should also justify the choice (over cbindgen). > > `cbindgen` is a longer term thing

Re: [PATCH v2 2/5] rust: macros: support additional tokens in quote!

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 7:42 AM Alice Ryhl wrote: > > This gives the quote! macro support for the following additional tokens: > > * The = token. > * The _ token. > * Using #my_var with variables of type Ident. > > Additionally, some type annotations are added to allow cases where > groups are emp

Re: [PATCH v2 5/5] panic_qr: use new #[export] macro

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 7:41 AM Alice Ryhl wrote: > > This validates at compile time that the signatures match what is in the > header file. It highlights one annoyance with the compile-time check, > which is that it can only be used with functions marked unsafe. > > If the function is not unsafe,

Re: [PATCH v6 32/32] drm/doc: gpusvm: Add GPU SVM documentation

2025-02-28 Thread Matthew Brost
On Fri, Feb 28, 2025 at 04:53:11PM +1100, Alistair Popple wrote: > On Thu, Feb 27, 2025 at 08:36:35PM -0800, Matthew Brost wrote: > > On Fri, Feb 28, 2025 at 01:34:42PM +1100, Alistair Popple wrote: > > > On Mon, Feb 24, 2025 at 08:43:11PM -0800, Matthew Brost wrote: > > > > Add documentation for a

Re: [PATCH v2 4/5] print: use new #[export] macro for rust_fmt_argument

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 7:41 AM Alice Ryhl wrote: > > This moves the rust_fmt_argument function over to use the new #[export] > macro, which will verify at compile-time that the function signature > matches what is in the header file. > > Reviewed-by: Andreas Hindborg > Signed-off-by: Alice Ryhl

Re: [PATCH v2 3/5] rust: add #[export] macro

2025-02-28 Thread Tamir Duberstein
On Fri, Feb 28, 2025 at 7:40 AM Alice Ryhl wrote: > > Rust has two different tools for generating function declarations to > call across the FFI boundary: > > * bindgen. Generates Rust declarations from a C header. > * cbindgen. Generates C headers from Rust declarations. > > In the kernel, we onl

Re: [PATCH] drm/radeon: Simplify maximum determination in radeon_uvd_calc_upll_dividers()

2025-02-28 Thread Natalie Vock
On 28.02.25 17:36, Markus Elfring wrote: From: Markus Elfring Date: Fri, 28 Feb 2025 17:32:45 +0100 Replace nested max() calls by single max3() call in this function implementation. This issue was transformed by using the Coccinelle software. How about something like "this change was made" o

[PATCH] drm/exynos: fixed a spelling error

2025-02-28 Thread Anindya Sundar Gayen
Corrected a spelling mistake in the exynos_drm_fimd driver to improve code readability. No functional changes were made. Signed-off-by: Anindya Sundar Gayen --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exy

Re: (subset) [PATCH v3 00/15] rockchip: Add rk3562 SoC and evb support

2025-02-28 Thread Heiko Stuebner
On Thu, 27 Feb 2025 19:18:58 +0800, Kever Yang wrote: > This patch set adds rk3562 SoC and its evb support. > > I have split out patches need driver change for different subsystem. > And all the modules with dt-binding document update in this patch set > do not need any driver change. I put them

Re: [PATCH 1/2] drm: Create an app info option for wedge events

2025-02-28 Thread André Almeida
Hi Raag, On 2/28/25 11:20, Raag Jadav wrote: Cc: Lucas On Fri, Feb 28, 2025 at 09:13:52AM -0300, André Almeida wrote: When a device get wedged, it might be caused by a guilty application. For userspace, knowing which app was the cause can be useful for some situations, like for implementing a

Re: [PATCH 2/2] drm/amdgpu: Make use of drm_wedge_app_info

2025-02-28 Thread André Almeida
Hi Raag, On 2/28/25 11:58, Raag Jadav wrote: On Fri, Feb 28, 2025 at 09:13:53AM -0300, André Almeida wrote: To notify userspace about which app (if any) made the device get in a wedge state, make use of drm_wedge_app_info parameter, filling it with the app PID and name. Signed-off-by: André Al

Re: [PATCH v1 1/7] virtio-gpu api: add blob userptr resource

2025-02-28 Thread Demi Marie Obenour
On 2/28/25 12:36 AM, Honglei Huang wrote: > From: Honglei Huang > > Add a new resource for blob resource, called userptr, used for let > host access guest user space memory, to acquire buffer based userptr > feature in virtio GPU. > > - The capset VIRTIO_GPU_CAPSET_HSAKMT used for context init,

Re: [PATCH] drm/atomic: Filter out redundant DPMS calls

2025-02-28 Thread Ville Syrjälä
On Thu, Feb 20, 2025 at 10:53:57AM +0100, Simona Vetter wrote: > On Wed, Feb 19, 2025 at 06:02:39PM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Video players (eg. mpv) do periodic XResetScreenSaver() calls to > > keep the screen on while the video playing. The modesetting ddx > >

[PATCH v2 8/8] drm/client: s/unsigned int i/int i/

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä Replace the 'unsigned int i' footguns with plain old signed int. Avoids accidents if/when someone decides they need to iterate backwards. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_client_modeset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v2 6/8] drm/client: s/new_crtc/crtc/

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä Rename the 'new_crtc' variable to just 'crtc' in drm_client_firmware_config(). We don't call any of the other stuff in here new or old so this feels out of place. v2: Rebase Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_client_modeset.c | 12 ++-- 1 file cha

[PATCH v2 4/8] drm/client: Make copies of modes

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä drm_client_firmware_config() is currently picking up the current mode of the crtc via the legacy crtc->mode, which is not supposed to be used by atomic drivers at all. We can't simply switch over to the proper crtc->state->mode because we drop the crtc->mutex (which protects c

[PATCH v2 0/8] drm/client: Stop using legacy crtc->mode and a bunch of cleanups

2025-02-28 Thread Ville Syrjala
From: Ville Syrjälä The most interesting part is the change to modes[] to solve the lifetime issue so that we can stop using the legacy crtc->mode for atomic drivers. Additionally I included a bunch of cleanups, some of which were inherited from https://patchwork.freedesktop.org/series/132051/

Re: [syzbot] [fbdev?] KASAN: global-out-of-bounds Read in bit_putcs (3)

2025-02-28 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:017f704fbfb1 Merge branch 'for-next/core' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=1212886458

Re: [PATCH 0/6] Add support for RK3588 DisplayPort Controller

2025-02-28 Thread Piotr Oniszczuk
> Wiadomość napisana przez Andy Yan w dniu 23 lut 2025, o > godz. 12:30: > > From: Andy Yan > > > There are two DW DPTX based DisplayPort Controller on rk3588 which > are compliant with the DisplayPort Specification Version 1.4 with > the following features: > > * DisplayPort 1.4a > * Mai

Re: [PATCH 2/2] drm/rockchip: lvds: Hide scary error messages on probe deferral

2025-02-28 Thread Quentin Schulz
Hi Heiko, On 2/28/25 6:45 PM, Heiko Stübner wrote: Am Freitag, 28. Februar 2025, 18:42:32 MEZ schrieb Quentin Schulz: Hi Heiko, On 2/28/25 5:57 PM, Heiko Stuebner wrote: From: Heiko Stuebner Commit 52d11c863ac9 ("drm/rockchip: lvds: do not print scary message when probing defer") already st

Re: [PATCH v3 05/15] dt-bindings: gpu: Add rockchip,rk3562-mali compatible

2025-02-28 Thread Rob Herring (Arm)
On Thu, 27 Feb 2025 19:19:03 +0800, Kever Yang wrote: > The Rockchip RK3562 GPU is ARM Mali-G52, use the same driver with > "arm,mali-bifrost". Extend the binding accordingly to allow > > compatible = "rockchip,rk3562-mali", "arm,mali-bifrost"; > > Signed-off-by: Kever Yang > --- > > Ch

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-28 Thread Jason Gunthorpe
On Fri, Feb 28, 2025 at 11:52:57AM +0100, Simona Vetter wrote: > - Nuke the driver binding manually through sysfs with the unbind files. > - Nuke all userspace that might beholding files and other resources open. > - At this point the module refcount should be zero and you can unload it. > > Exce

Re: [PATCH v2 3/5] rust: add #[export] macro

2025-02-28 Thread Miguel Ojeda
On Fri, Feb 28, 2025 at 4:41 PM Tamir Duberstein wrote: > > This needs an update given Miguel's comments on the cover letter. I > wonder if the code should also justify the choice (over cbindgen). `cbindgen` is a longer term thing and more complex, assuming we use it in the end, so I think it is

Re: [PATCH v3 0/2] Cleanup io.h

2025-02-28 Thread Raag Jadav
On Fri, Feb 28, 2025 at 08:52:51PM +0200, Andy Shevchenko wrote: > On Fri, Feb 28, 2025 at 08:45:26PM +0200, Raag Jadav wrote: > > On Fri, Feb 28, 2025 at 08:42:10PM +0200, Andy Shevchenko wrote: > > > On Fri, Feb 28, 2025 at 08:41:33PM +0200, Andy Shevchenko wrote: > > > > On Fri, Feb 28, 2025 at

Re: [PATCH 4/6] dt-bindings: gpu: v3d: Add SMS to the registers' list

2025-02-28 Thread Conor Dooley
On Wed, Feb 26, 2025 at 04:59:02PM -0300, Maíra Canal wrote: > V3D 7.1 exposes a new register block, called V3D_SMS. As BCM2712 has a > V3D 7.1 core, add a new register item to the list. Similar to the GCA > and bridge register, SMS is optional and should only be added for V3D > 7.1 variants. > >

[PATCH v3 3/6] drm/xe/xe_vm: Add per VM pagefault info

2025-02-28 Thread Jonathan Cavitt
Add additional information to each VM so they can report up to the last 50 seen pagefaults. Only failed pagefaults are saved this way, as successful pagefaults should recover and not need to be reported to userspace. Signed-off-by: Jonathan Cavitt Suggested-by: Matthew Brost --- drivers/gpu/dr

Re: [PATCH v2 2/5] rust: macros: support additional tokens in quote!

2025-02-28 Thread Andreas Hindborg
"Alice Ryhl" writes: > This gives the quote! macro support for the following additional tokens: > > * The = token. > * The _ token. > * Using #my_var with variables of type Ident. > > Additionally, some type annotations are added to allow cases where > groups are empty. For example, quote! does s

Re: [PATCH v2 3/5] rust: add #[export] macro

2025-02-28 Thread Andreas Hindborg
"Alice Ryhl" writes: > Rust has two different tools for generating function declarations to > call across the FFI boundary: > > * bindgen. Generates Rust declarations from a C header. > * cbindgen. Generates C headers from Rust declarations. > > In the kernel, we only use bindgen. This is because

[PATCH v3 4/6] drm/xe/uapi: Define drm_xe_vm_get_property

2025-02-28 Thread Jonathan Cavitt
Add initial declarations for the drm_xe_vm_get_property ioctl. Signed-off-by: Jonathan Cavitt --- include/uapi/drm/xe_drm.h | 63 +++ 1 file changed, 63 insertions(+) diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index 76a462fae05f..38f29

[PATCH v3 0/6] drm/xe/xe_vm: Implement xe_vm_get_property_ioctl

2025-02-28 Thread Jonathan Cavitt
Add additional information to each VM so they can report up to the last 50 seen pagefaults. Only failed pagefaults are saved this way, as successful pagefaults should recover and not need to be reported to userspace. Additionally, add a new ioctl - xe_vm_get_property_ioctl - that allows the user

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-28 Thread Jason Gunthorpe
On Thu, Feb 27, 2025 at 11:40:53PM +0100, Danilo Krummrich wrote: > On Thu, Feb 27, 2025 at 06:00:13PM -0400, Jason Gunthorpe wrote: > > On Thu, Feb 27, 2025 at 01:25:10PM -0800, Boqun Feng wrote: > > > > > > Most of the cases, it should be naturally achieved, because you already > > > bind the ob

Re: [PATCH v3 0/2] Cleanup io.h

2025-02-28 Thread Andy Shevchenko
On Fri, Feb 28, 2025 at 08:45:26PM +0200, Raag Jadav wrote: > On Fri, Feb 28, 2025 at 08:42:10PM +0200, Andy Shevchenko wrote: > > On Fri, Feb 28, 2025 at 08:41:33PM +0200, Andy Shevchenko wrote: > > > On Fri, Feb 28, 2025 at 07:41:55PM +0200, Raag Jadav wrote: > > > > On Fri, Feb 28, 2025 at 06:11

Re: [RFC PATCH 0/3] gpu: nova-core: add basic timer subdevice implementation

2025-02-28 Thread Jason Gunthorpe
On Fri, Feb 28, 2025 at 02:10:39PM +1000, Dave Airlie wrote: > On Fri, 28 Feb 2025 at 09:07, John Hubbard wrote: > > > > On Thu Feb 27, 2025 at 1:42 PM PST, Dave Airlie wrote: > > > On Thu, 27 Feb 2025 at 11:34, John Hubbard wrote: > > >> On Wed Feb 26, 2025 at 5:02 PM PST, Greg KH wrote: > > >>

Re: [PATCH v3 0/2] Cleanup io.h

2025-02-28 Thread Andy Shevchenko
On Fri, Feb 28, 2025 at 07:41:55PM +0200, Raag Jadav wrote: > On Fri, Feb 28, 2025 at 06:11:16PM +0100, Arnd Bergmann wrote: > > On Thu, Feb 27, 2025, at 16:25, Andy Shevchenko wrote: > > > On Thu, Feb 27, 2025 at 12:37:45PM +0530, Raag Jadav wrote: > > >> This series attempts to cleanup io.h with

Re: [PATCH 8/9] drm/panthor: Add i.MX95 support

2025-02-28 Thread Marek Vasut
On 2/28/25 11:21 AM, Alexander Stein wrote: Hi, diff --git a/drivers/gpu/drm/panthor/panthor_gpu.c b/drivers/gpu/drm/panthor/panthor_gpu.c index 0f07ef7d9aea7..2371ab8e50627 100644 --- a/drivers/gpu/drm/panthor/panthor_gpu.c +++ b/drivers/gpu/drm/panthor/panthor_gpu.c @@ -67,6 +67,7 @@ struct

Re: [PATCH 4/9] drm/panthor: Implement optional reset

2025-02-28 Thread Marek Vasut
On 2/28/25 11:06 AM, Alexander Stein wrote: Hi, diff --git a/drivers/gpu/drm/panthor/panthor_device.c b/drivers/gpu/drm/panthor/panthor_device.c index a9da1d1eeb707..51ee9cae94504 100644 --- a/drivers/gpu/drm/panthor/panthor_device.c +++ b/drivers/gpu/drm/panthor/panthor_device.c @@ -64,6 +64,

Re: [PATCH 9/9] arm64: dts: imx95: Describe Mali G310 GPU

2025-02-28 Thread Marek Vasut
On 2/28/25 11:36 AM, Alexander Stein wrote: Hi Marek, Hi, diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index 3af13173de4bd..36bad211e5558 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @

Re: [PATCH 8/9] drm/panthor: Add i.MX95 support

2025-02-28 Thread Marek Vasut
On 2/28/25 11:33 AM, Marco Felsch wrote: On 25-02-27, Marek Vasut wrote: On 2/27/25 9:17 PM, Marco Felsch wrote: [...] diff --git a/drivers/gpu/drm/panthor/panthor_drv.c b/drivers/gpu/drm/panthor/panthor_drv.c index 06fe46e320738..2504a456d45c4 100644 --- a/drivers/gpu/drm/panthor/panthor_dr

Re: [PATCH 6/9] drm/panthor: Reset GPU after L2 cache power off

2025-02-28 Thread Marek Vasut
On 2/28/25 12:06 PM, Liviu Dudau wrote: Hi Marek, Hi, On Thu, Feb 27, 2025 at 05:58:06PM +0100, Marek Vasut wrote: This seems necessary on Freescale i.MX95 Mali G310 to reliably resume from runtime PM suspend. Without this, if only the L2 is powered down on RPM entry, the GPU gets stuck and

Re: [PATCH 9/9] arm64: dts: imx95: Describe Mali G310 GPU

2025-02-28 Thread Marek Vasut
On 2/28/25 11:39 AM, Alexander Stein wrote: Am Donnerstag, 27. Februar 2025, 23:21:22 CET schrieb Frank Li: On Thu, Feb 27, 2025 at 10:34:20PM +0100, Marek Vasut wrote: On 2/27/25 10:27 PM, Frank Li wrote: [...] + gpu: gpu@4d90 { + compatible = "fsl,im

Re: [PATCH 7/9] dt-bindings: gpu: mali-valhall-csf: Document i.MX95 support

2025-02-28 Thread Marek Vasut
On 2/28/25 1:30 PM, Rob Herring wrote: On Thu, Feb 27, 2025 at 05:58:07PM +0100, Marek Vasut wrote: The instance of the GPU populated in Freescale i.MX95 is the Mali G310, document support for this variant. You should combine patch 4 with this one and make resets required for imx95 since you s

[PATCH v3 6/6] drm/xe/xe_vm: Implement xe_vm_get_property_ioctl

2025-02-28 Thread Jonathan Cavitt
Add support for userspace to request a list of observed failed pagefaults from a specified VM. v2: - Only allow querying of failed pagefaults (Matt Brost) Signed-off-by: Jonathan Cavitt Suggested-by: Matthew Brost --- drivers/gpu/drm/xe/xe_device.c | 3 ++ drivers/gpu/drm/xe/xe_vm.c | 79

[PATCH v3 5/6] drm/xe/xe_gt_pagefault: Add address_type field to pagefaults

2025-02-28 Thread Jonathan Cavitt
Add a new field to the xe_pagefault struct, address_type, that tracks the type of fault the pagefault incurred. Signed-off-by: Jonathan Cavitt --- drivers/gpu/drm/xe/xe_gt_pagefault.c | 3 +++ drivers/gpu/drm/xe/xe_gt_pagefault.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/

[PATCH v3 2/6] drm/xe/xe_gt_pagefault: Migrate pagefault struct to header

2025-02-28 Thread Jonathan Cavitt
Migrate the pagefault struct from xe_gt_pagefault.c to the xe_gt_pagefault.h header file, along with the associated enum values. v2: Normalize names for common header (Matt Brost) Signed-off-by: Jonathan Cavitt --- drivers/gpu/drm/xe/xe_gt_pagefault.c | 43 ++-- drivers/

Re: [PATCH] gpu: host1x: Remove unused host1x_debug_dump_syncpts

2025-02-28 Thread Dr. David Alan Gilbert
* Thierry Reding (thierry.red...@gmail.com) wrote: > On Sun, Dec 15, 2024 at 09:47:50PM +, li...@treblig.org wrote: > > From: "Dr. David Alan Gilbert" > > > > host1x_debug_dump_syncpts() has been unused since > > commit f0fb260a0cdb ("gpu: host1x: Implement syncpoint wait using DMA > > fences

[PATCH] drm/sun4i: dsi: Simplify maximum determination in sun6i_dsi_setup_timings()

2025-02-28 Thread Markus Elfring
From: Markus Elfring Date: Fri, 28 Feb 2025 18:25:31 +0100 Reduce nested max() calls by a single max3() call in this function implementation. This issue was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 2 +- 1 file ch

Re: [PATCH 03/10] drm/gem-dma: Use dma_buf from GEM object instance

2025-02-28 Thread Anusha Srivatsa
On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Avoid dereferencing struct drm_gem_object.import_attach for the > imported dma-buf. The dma_buf field in the GEM object instance refers > to the same buffer. Prepares to make import_attach optional. > > Signed-off-by: Thomas Zimmermann

Re: [PATCH 2/2] drm/rockchip: lvds: Hide scary error messages on probe deferral

2025-02-28 Thread Heiko Stübner
Am Freitag, 28. Februar 2025, 18:42:32 MEZ schrieb Quentin Schulz: > Hi Heiko, > > On 2/28/25 5:57 PM, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > Commit 52d11c863ac9 ("drm/rockchip: lvds: do not print scary message when > > probing defer") already started hiding scary messages that a

Re: [PATCH 2/2] drm/rockchip: lvds: Hide scary error messages on probe deferral

2025-02-28 Thread Quentin Schulz
Hi Heiko, On 2/28/25 5:57 PM, Heiko Stuebner wrote: From: Heiko Stuebner Commit 52d11c863ac9 ("drm/rockchip: lvds: do not print scary message when probing defer") already started hiding scary messages that are not relevant if the requested supply just returned EPROBE_DEFER, but there are more

Re: [PATCH v2 5/5] panic_qr: use new #[export] macro

2025-02-28 Thread Alice Ryhl
On Fri, Feb 28, 2025 at 4:55 PM Tamir Duberstein wrote: > > On Fri, Feb 28, 2025 at 7:41 AM Alice Ryhl wrote: > > > > This validates at compile time that the signatures match what is in the > > header file. It highlights one annoyance with the compile-time check, > > which is that it can only be

[pull] amdgpu, amdkfd drm-next-6.15

2025-02-28 Thread Alex Deucher
Hi Dave, Simona, Updates for 6.15. The following changes since commit 3521276ad14fe47ce1c4382749f3c95762629375: drm/amdgpu: update the handle ptr in get_clockgating_state (2025-02-19 15:19:05 -0500) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git ta

Re: [PATCH 1/2] drm/rockchip: lvds: move pclk preparation in with clk_get

2025-02-28 Thread Quentin Schulz
Hi Heiko, On 2/28/25 5:57 PM, Heiko Stuebner wrote: From: Heiko Stuebner The LVDS block needs a separate pclk only on some socs, so currently requests and prepares it in the soc-specific probe function, but common code is required to unprepare it in the error path or on driver remove. While t

Re: [PATCH 05/10] drm/gem-shmem: Use dma_buf from GEM object instance

2025-02-28 Thread Anusha Srivatsa
Reviewed-by: Anusha Srivatsa On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Avoid dereferencing struct drm_gem_object.import_attach for the > imported dma-buf. The dma_buf field in the GEM object instance refers > to the same buffer. Prepares to make import_attach optional. > > Si

Re: [PATCH v3 0/2] Cleanup io.h

2025-02-28 Thread Arnd Bergmann
On Thu, Feb 27, 2025, at 16:25, Andy Shevchenko wrote: > On Thu, Feb 27, 2025 at 12:37:45PM +0530, Raag Jadav wrote: >> This series attempts to cleanup io.h with "include what you use" approach. >> This depends on changes available on immutable tag[1]. >> >> Although this series is too trivial in

Re: [PATCH v2 4/5] print: use new #[export] macro for rust_fmt_argument

2025-02-28 Thread Alice Ryhl
On Fri, Feb 28, 2025 at 4:37 PM Andy Shevchenko wrote: > > On Fri, Feb 28, 2025 at 12:39:33PM +, Alice Ryhl wrote: > > This moves the rust_fmt_argument function over to use the new #[export] > > macro, which will verify at compile-time that the function signature > > matches what is in the hea

Re: [PATCH v2 5/5] panic_qr: use new #[export] macro

2025-02-28 Thread Simona Vetter
On Fri, Feb 28, 2025 at 12:39:34PM +, Alice Ryhl wrote: > This validates at compile time that the signatures match what is in the > header file. It highlights one annoyance with the compile-time check, > which is that it can only be used with functions marked unsafe. > > If the function is not

Re: [PATCH v2 5/5] panic_qr: use new #[export] macro

2025-02-28 Thread Alice Ryhl
On Fri, Feb 28, 2025 at 4:34 PM Andy Shevchenko wrote: > > On Fri, Feb 28, 2025 at 12:39:34PM +, Alice Ryhl wrote: > > This validates at compile time that the signatures match what is in the > > header file. It highlights one annoyance with the compile-time check, > > which is that it can only

[PATCH 2/2] drm/rockchip: lvds: Hide scary error messages on probe deferral

2025-02-28 Thread Heiko Stuebner
From: Heiko Stuebner Commit 52d11c863ac9 ("drm/rockchip: lvds: do not print scary message when probing defer") already started hiding scary messages that are not relevant if the requested supply just returned EPROBE_DEFER, but there are more possible sources - like the phy. So modernize the whol

[PATCH 1/2] drm/rockchip: lvds: move pclk preparation in with clk_get

2025-02-28 Thread Heiko Stuebner
From: Heiko Stuebner The LVDS block needs a separate pclk only on some socs, so currently requests and prepares it in the soc-specific probe function, but common code is required to unprepare it in the error path or on driver remove. While this works because clk_unprepare just does nothing if cl

[PATCH 0/2] drm/rockchip: lvds: probe logging improvements

2025-02-28 Thread Heiko Stuebner
Getting the panel already uses dev_err_probe to stay silent, when the panel just probes later, and the lvds defers. But the phy needed on px30, also has the capability to probe after the lvds. So make the rest of the lvds probe/bind logic also use more modern logging than DRM_DEV_ERR, that is depr

Re: [PATCH v3 1/2] drm/panthor: Replace sleep locks with spinlocks in fdinfo path

2025-02-28 Thread Steven Price
On 27/02/2025 23:16, Adrián Larumbe wrote: > Commit 0590c94c3596 ("drm/panthor: Fix race condition when gathering fdinfo > group samples") introduced an xarray lock to deal with potential > use-after-free errors when accessing groups fdinfo figures. However, this > toggles the kernel's atomic conte

Re: [PATCH] gpu: host1x: Remove unused host1x_debug_dump_syncpts

2025-02-28 Thread Thierry Reding
On Sun, Dec 15, 2024 at 09:47:50PM +, li...@treblig.org wrote: > From: "Dr. David Alan Gilbert" > > host1x_debug_dump_syncpts() has been unused since > commit f0fb260a0cdb ("gpu: host1x: Implement syncpoint wait using DMA > fences") > > Remove it. > > Signed-off-by: Dr. David Alan Gilbert

Re: [PATCH 09/10] drm/mipi-dbi: Test for imported buffers with drm_gem_is_imported()

2025-02-28 Thread Anusha Srivatsa
Reviewed-by: Anusha Srivatsa On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Instead of testing import_attach for imported GEM buffers, invoke > drm_gem_is_imported() to do the test. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_mipi_dbi.c | 2 +- > 1 file chang

Re: [PATCH 07/10] drm/gem-framebuffer: Use dma_buf from GEM object instance

2025-02-28 Thread Anusha Srivatsa
Reviewed-by: Anusha Srivatsa On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Avoid dereferencing struct drm_gem_object.import_attach for the > imported dma-buf. The dma_buf field in the GEM object instance refers > to the same buffer. Prepares to make import_attach optional. > > Si

Re: [PATCH 06/10] drm/gem-framebuffer: Test for imported buffers with drm_gem_is_imported()

2025-02-28 Thread Anusha Srivatsa
Reviewed-by: Anusha Srivatsa On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Instead of testing import_attach for imported GEM buffers, invoke > drm_gem_is_imported() to do the test. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_gem_framebuffer_helper.c | 4 ++--

Re: [PATCH 00/63] Fix CONFIG_DRM_USE_DYNAMIC_DEBUG=y

2025-02-28 Thread Louis Chauvet
Le 20/02/2025 à 10:45, Simona Vetter a écrit : On Thu, Feb 20, 2025 at 09:31:41AM +0100, Greg KH wrote: On Fri, Jan 24, 2025 at 11:45:14PM -0700, Jim Cromie wrote: This series fixes dynamic-debug's support for DRM debug-categories. Classmaps-v1 evaded full review, and got committed in 2 chun

[PATCH] drm: Simplify maximum determination in drm_ioctl()

2025-02-28 Thread Markus Elfring
From: Markus Elfring Date: Fri, 28 Feb 2025 17:18:07 +0100 Replace nested max() calls by single max3() call in this function implementation. This issue was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/drm_ioctl.c | 2 +- 1 file changed, 1 ins

Re: [PATCH 10/10] drm/prime: Use dma_buf from GEM object instance

2025-02-28 Thread Anusha Srivatsa
Reviewed-by: ANusha Srivatsa On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Avoid dereferencing struct drm_gem_object.import_attach for the > imported dma-buf. The dma_buf field in the GEM object instance refers > to the same buffer. Prepares to make import_attach optional. > > Si

Re: [PATCH 0/7] gpu: ipu-v3: Remove unused functions

2025-02-28 Thread Dr. David Alan Gilbert
Hi All, * Dmitry Baryshkov (dmitry.barysh...@linaro.org) wrote: > On Thu, Dec 26, 2024 at 02:27:45AM +, li...@treblig.org wrote: > > From: "Dr. David Alan Gilbert" > > > > Hi, > > This set removes a bunch of functions in ipu-v3 that > > have been unused for a long time (since 2012-2017). >

Re: [PATCH 04/10] drm/gem-shmem: Test for imported buffers with drm_gem_is_imported()

2025-02-28 Thread Anusha Srivatsa
On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Instead of testing import_attach for imported GEM buffers, invoke > drm_gem_is_imported() to do the test. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_gem_shmem_helper.c | 24 > include/drm/

Re: [V7 05/45] drm/colorop: Introduce new drm_colorop mode object

2025-02-28 Thread Harry Wentland
On 2025-02-25 05:05, Louis Chauvet wrote: Le 20/12/2024 à 05:33, Alex Hung a écrit : From: Harry Wentland @@ -249,6 +255,20 @@ void drm_atomic_state_default_clear(struct drm_atomic_state *state)   state->planes[i].new_state = NULL;   } +    for (i = 0; i < config->num_coloro

Re: [PATCH 02/10] drm/gem-dma: Test for imported buffers with drm_gem_is_imported()

2025-02-28 Thread Anusha Srivatsa
On Wed, Feb 26, 2025 at 12:28 PM Thomas Zimmermann wrote: > Instead of testing import_attach for imported GEM buffers, invoke > drm_gem_is_imported() to do the test. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/drm_gem_dma_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCH] gpu: host1x: Remove unused host1x_debug_dump_syncpts

2025-02-28 Thread Dr. David Alan Gilbert
Hi, * Mikko Perttunen (cyn...@kapsi.fi) wrote: > On 12/16/24 6:47 AM, li...@treblig.org wrote: > > From: "Dr. David Alan Gilbert" > > > > host1x_debug_dump_syncpts() has been unused since > > commit f0fb260a0cdb ("gpu: host1x: Implement syncpoint wait using DMA > > fences") > > > > Remove it. >

Re: [PATCH v2 4/5] print: use new #[export] macro for rust_fmt_argument

2025-02-28 Thread Andy Shevchenko
On Fri, Feb 28, 2025 at 12:39:33PM +, Alice Ryhl wrote: > This moves the rust_fmt_argument function over to use the new #[export] > macro, which will verify at compile-time that the function signature > matches what is in the header file. ... > I'm not sure which header file to put this in. A

Re: [PATCH v2 5/5] panic_qr: use new #[export] macro

2025-02-28 Thread Andy Shevchenko
On Fri, Feb 28, 2025 at 12:39:34PM +, Alice Ryhl wrote: > This validates at compile time that the signatures match what is in the > header file. It highlights one annoyance with the compile-time check, > which is that it can only be used with functions marked unsafe. > > If the function is not

Re: [PATCH v2 02/16] drm/vkms: Add and remove VKMS instances via configfs

2025-02-28 Thread Louis Chauvet
Le 25/02/2025 à 18:59, José Expósito a écrit : Allow to create, enable, disable and destroy VKMS instances using configfs. For the moment, it is not possible to add pipeline items, so trying to enable the device will fail printing an informative error to the log. Reviewed-by: Louis Chauvet

[PATCH v2] drm/ci: use shallow clone to avoid timeouts

2025-02-28 Thread Vignesh Raman
The python-artifacts job has a timeout of 10 minutes, which causes build failures as it was unable to clone the repository within the specified limits. Set GIT_DEPTH to 50 to speed up cloning and avoid build failures due to timeouts when fetching the full repository. Signed-off-by: Vignesh Raman

Re: [PATCH 2/2] drm/amdgpu: Make use of drm_wedge_app_info

2025-02-28 Thread Raag Jadav
On Fri, Feb 28, 2025 at 09:13:53AM -0300, André Almeida wrote: > To notify userspace about which app (if any) made the device get in a > wedge state, make use of drm_wedge_app_info parameter, filling it with > the app PID and name. > > Signed-off-by: André Almeida > --- > drivers/gpu/drm/amd/amd

[PATCH 1/2] configfs: Add mechanism to prevent symlink deletion

2025-02-28 Thread Louis Chauvet
Introduce a new mechanism in configfs to prevent the deletion of certain symlink. This is particularly useful in scenarios where userspace should not be allowed to modify the configfs structure under some conditions, such as in VKMS. Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_

Re: [PATCH v2 03/16] drm/vkms: Allow to configure multiple planes via configfs

2025-02-28 Thread Louis Chauvet
Le 25/02/2025 à 18:59, José Expósito a écrit : Create a default subgroup at /config/vkms/planes to allow to create as many planes as required. Reviewed-by: Louis Chauvet Co-developed-by: Louis Chauvet Signed-off-by: Louis Chauvet Signed-off-by: José Expósito --- Documentation/gpu/vkms.r

[PATCH 2/2] configfs: Add mechanism to prevent item/group deletion

2025-02-28 Thread Louis Chauvet
Introduce a new mechanism in configfs to prevent the deletion of certain item/group. This is particularly useful in scenarios where userspace should not be allowed to modify the configfs structure under some conditions, such as in VKMS. Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vk

Re: [PATCH v2 0/6] Support for Adreno 623 GPU

2025-02-28 Thread Rob Herring (Arm)
then make sure dt-schema is up to date: pip3 install dtschema --upgrade New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for 20250228-a623-gpu-support-v2-0-aea654ecc...@quicinc.com: arch/arm64/boot/dts/qcom/qcs8300-ride.dtb: iommu@3da: clock-names:0: '

Re: [PATCH 1/2] drm: Create an app info option for wedge events

2025-02-28 Thread Raag Jadav
Cc: Lucas On Fri, Feb 28, 2025 at 09:13:52AM -0300, André Almeida wrote: > When a device get wedged, it might be caused by a guilty application. > For userspace, knowing which app was the cause can be useful for some > situations, like for implementing a policy, logs or for giving a chance > for t

Re: [PATCH 4/4] drm/msm/dpu: remove DSC feature bit for PINGPONG on SDM630

2025-02-28 Thread Konrad Dybcio
On 28.02.2025 3:40 AM, Dmitry Baryshkov wrote: > The MSM8937 platform doesn't have DSC blocks nor does have it DSC ^ in all patches Konrad

  1   2   3   >