Re: [PATCH 6/9] drm/udl: Return error if vendor descriptor is too short

2025-04-03 Thread Thomas Zimmermann
Hi Am 02.04.25 um 15:16 schrieb Patrik Jakobsson: On Tue, Apr 1, 2025 at 6:23 PM Thomas Zimmermann wrote: There need to be least 5 bytes in the vendor descriptor. Return an error otherwise. Also change the branching to early-out on the error. Adjust indention of the rest of the parser function

Re: [PATCH v20 09/10] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin

2025-04-03 Thread Thomas Zimmermann
Hi Am 02.04.25 um 15:21 schrieb Boris Brezillon: On Wed, 2 Apr 2025 15:58:55 +0300 Dmitry Osipenko wrote: On 4/2/25 15:47, Thomas Zimmermann wrote: Hi Am 22.03.25 um 22:26 schrieb Dmitry Osipenko: The vmapped pages shall be pinned in memory and previously get/ put_pages() were implicitly h

Re: [PATCH RFC drm-next 0/1] Add support for drm_panic

2025-04-03 Thread Thomas Zimmermann
Hi Am 02.04.25 um 15:52 schrieb Ryosuke Yasuoka: On Wed, Apr 2, 2025 at 6:45 PM Thomas Zimmermann wrote: Hi Am 02.04.25 um 10:43 schrieb Ryosuke Yasuoka: This patch adds drm_panic support for hyperv-drm driver. This function works but it's still needed to brush up. Let me hear your opinions.

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-03 Thread Christian König
Am 03.04.25 um 08:07 schrieb Dave Airlie: > On Tue, 1 Apr 2025 at 21:03, Christian König wrote: >> Am 31.03.25 um 22:43 schrieb Dave Airlie: >>> On Tue, 11 Mar 2025 at 00:26, Maxime Ripard wrote: Hi, On Mon, Mar 10, 2025 at 03:16:53PM +0100, Christian König wrote: > [Adding Ben

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-03 Thread Simona Vetter
On Mon, Mar 10, 2025 at 01:06:06PM +0100, Maxime Ripard wrote: > Hi, > > Here's preliminary work to enable dmem tracking for heavy users of DMA > allocations on behalf of userspace: v4l2, DRM, and dma-buf heaps. > > It's not really meant for inclusion at the moment, because I really > don't like

Re: [PATCH v20 09/10] drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin

2025-04-03 Thread Boris Brezillon
On Thu, 3 Apr 2025 09:20:00 +0200 Thomas Zimmermann wrote: > Hi > > Am 02.04.25 um 15:21 schrieb Boris Brezillon: > > On Wed, 2 Apr 2025 15:58:55 +0300 > > Dmitry Osipenko wrote: > > > >> On 4/2/25 15:47, Thomas Zimmermann wrote: > >>> Hi > >>> > >>> Am 22.03.25 um 22:26 schrieb Dmitry Osip

[PATCH] drm/rockchip: vop: Fix noise on resolutions >2560

2025-04-03 Thread Konstantin Shabanov
Disable AFBC for resolutions bigger than 2560x1600 as RK3399 doesn't support them. >From the datasheet[1] ("1.2.10 Video IN/OUT", "Display Interface", p. 17): Support AFBC function co-operation with GPU * support 2560x1600 UI Tested on RockPro64 (rk3399). Closes: https://gitlab.freedesktop

Re: [PATCH] drm/i915/huc: Fix fence not released on early probe errors

2025-04-03 Thread Daniele Ceraolo Spurio
On 4/2/2025 10:20 AM, Janusz Krzysztofik wrote: HuC delayed loading fence, introduced with commit 27536e03271da ("drm/i915/huc: track delayed HuC load with a fence"), is registered with object tracker early on driver probe but unregistered only from driver remove, which is not called on early

Re: [PATCH v2 1/2] dma-buf: heaps: system: Remove global variable

2025-04-03 Thread Maxime Ripard
On Tue, Apr 01, 2025 at 05:28:43PM +0200, Christian König wrote: > > > Am 01.04.25 um 17:12 schrieb Maxime Ripard: > > The system heap has been using its struct dma_heap pointer but wasn't > > using it anywhere. > > > > Since we'll need additional parameters to attach to that heap type, > > let's

[PATCH v3 0/9] Add support for RK3588 DisplayPort Controller

2025-04-03 Thread Andy Yan
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 * Main Link: 1/2/4 lanes * Main Link Support 1.62Gbps, 2.7Gbps, 5.4Gbps and 8.1Gbps * AUX channel 1Mbps

Re: [PATCH v2 2/2] drm: renesas: Extend RZ/G2L supported KMS formats

2025-04-03 Thread Tommaso Merciai
Hi Biju, Kieran, Thank you for the patch. On Sun, Mar 30, 2025 at 11:23:53AM +0100, Biju Das wrote: > From: Kieran Bingham > > The RZ/G2L driver utilises the VSPD to read data from input sources. > > The rzg2l_du_kms component lists a restricted subset of the capabilities > of the VSPD which p

Re: [PATCH v7 2/6] PCI: Add a helper to convert between VF BAR number and IOV resource

2025-04-03 Thread Ilpo Järvinen
On Wed, 2 Apr 2025, Michał Winiarski wrote: > There are multiple places where conversions between IOV resources and > corresponding VF BAR numbers are done. > > Extract the logic to pci_resource_num_from_vf_bar() and > pci_resource_num_to_vf_bar() helpers. > > Suggested-by: Ilpo Järvinen > Sign

[PATCH 4/7] drm/bridge: analogic_dp: drop panel_lock

2025-04-03 Thread Dmitry Baryshkov
The analogix_dp_prepare_panel() function is called from bridge's atomic_pre_enable() and atomic_post_disable() callbacks, which can not happen simultaneously. Drop the useless mutex. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 - drivers/gpu/drm

Re: [PATCH v1 2/3] drm/ci: check-patch: unshallow repository before fetching

2025-04-03 Thread Vignesh Raman
Hi Daniel, On 28/03/25 17:40, Vignesh Raman wrote: Hi Daniel, On 28/03/25 17:05, Daniel Stone wrote: Hi Vignesh, On Fri, 28 Mar 2025 at 11:03, Vignesh Raman wrote: Ensure the repository is not shallow before fetching branches in check-patch job. This prevents issues where git merge-base fa

Re: [PATCH v2 0/4] kbuild: resurrect generic header check facility

2025-04-03 Thread Masahiro Yamada
On Wed, Apr 2, 2025 at 9:47 PM Jani Nikula wrote: > > Another go at hiding the turds. > > In v1 [1] I hid the build artifacts under .hdrtest subdirectories, one in each > $(obj) directory, but the feedback from Linus [2] was to have one top level > directory for this. > > This is not possible with

Re: [PATCH v2 09/30] panel/ilitek-ili9806e: Use refcounted allocation in place of devm_kzalloc()

2025-04-03 Thread Michael Walle
Move to using the new API devm_drm_panel_alloc() to allocate the panel. Signed-off-by: Anusha Srivatsa Reviewed-by: Michael Walle -michael

Re: [PATCH v2 7/7] drm/xe/pt: unify xe_pt_svm_pre_commit with userptr

2025-04-03 Thread Matthew Brost
On Fri, Mar 28, 2025 at 06:10:36PM +, Matthew Auld wrote: > We now use the same notifier lock for SVM and userptr, with that we can > combine xe_pt_userptr_pre_commit and xe_pt_svm_pre_commit. > > Suggested-by: Matthew Brost > Signed-off-by: Matthew Auld > Cc: Himal Prasad Ghimiray > Cc: Th

[PATCH v3 41/54] drm-dyndbg: add DRM_CLASSMAP_USE to simpledrm

2025-04-03 Thread Jim Cromie
tiny/simpledrm has 3 DRM_UT_DRIVER debugs, make them controllable when CONFIG_DRM_USE_DYNAMIC_DEBUG=y by telling dyndbg that the module has class'd debugs. Signed-off-by: Jim Cromie --- drivers/gpu/drm/tiny/simpledrm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tiny/si

[PATCH RESEND v12 2/5] drm/plane: modify create_in_formats to acommodate async

2025-04-03 Thread Arun R Murthy
create_in_formats creates the list of supported format/modifiers for synchronous flips, modify the same function so as to take the format_mod_supported as argument and create list of format/modifier for async as well. v5: create_in_formats can return -ve value in failure case, correct the if condi

[PATCH RESEND v12 1/5] drm/plane: Add new plane property IN_FORMATS_ASYNC

2025-04-03 Thread Arun R Murthy
There exists a property IN_FORMATS which exposes the plane supported modifiers/formats to the user. In some platforms when asynchronous flip are used all of modifiers/formats mentioned in IN_FORMATS are not supported. This patch adds a new plane property IN_FORMATS_ASYNC to expose the async flip su

[PATCH RESEND v12 5/5] drm/i915/display: Indexed 8bit format does not support async flip

2025-04-03 Thread Arun R Murthy
Async flip is not supported with Indexed 8 bit format as it depends on LUT and can't be updated atomically. Note: This may change the alignment for C8 framebuffers on some platforms. Signed-off-by: Arun R Murthy Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_atomic_plane.c |

[PATCH RESEND v12 4/5] drm/i915/display: Add i915 hook for format_mod_supported_async

2025-04-03 Thread Arun R Murthy
Hook up the newly added plane function pointer format_mod_supported_async to populate the modifiers/formats supported by asynchronous flips. v5: Correct the if condition for modifier support check (Chaitanya) v6: Replace uint32_t/uint64_t with u32/u64 (Jani) v7: Move plannar check from intel_async

[PULL] drm-misc-next-fixes

2025-04-03 Thread Thomas Zimmermann
Hi Dave, Sima, this is the final PR for this release cycle's drm-misc-next-fixes. Best regards Thomas drm-misc-next-fixes-2025-04-04: Short summary of fixes pull: bridge: - tda998x: Select CONFIG_DRM_KMS_HELPER The following changes since commit ee20c69c789b6cb2179a535cf440d72b98f4a134: drm:

[PATCH RESEND v12 3/5] drm/i915/display: Acomodate format check in intel_plane_can_async_flip()

2025-04-03 Thread Arun R Murthy
The function intel_plane_can_async_flip() checks for async supported modifier, add format support check also in the same function. Note: on ADL the surface base addr is required to be 16k aligned and if not might generate DMAR and GGTT faults leading to glitches. This patch changes the 16k alignme

Re: [PATCH v2 1/2] drm/virtio: introduce the HOST_PAGE_SIZE feature

2025-04-03 Thread Dmitry Osipenko
On 4/2/25 20:55, Dmitry Osipenko wrote: > On 4/2/25 20:46, Sergio Lopez wrote: >> diff --git a/include/uapi/linux/virtio_gpu.h >> b/include/uapi/linux/virtio_gpu.h >> index >> bf2c9cabd20793e3851e749baadf210341445501..adc264df4e458e9c754936c3015c069e5ee6b899 >> 100644 >> --- a/include/uapi/linux

Re: [PATCH v16 3/5] drm/xe/uapi: Define drm_xe_vm_get_property

2025-04-03 Thread ivan.briano
On Thu, Apr 03, 2025 at 09:24:47AM -0700, Cavitt, Jonathan wrote: > -Original Message- > From: Briano, Ivan > Sent: Wednesday, April 2, 2025 4:22 PM > To: Cavitt, Jonathan > Cc: intel...@lists.freedesktop.org; Gupta, saurabhg > ; Zuo, Alex ; > joonas.lahti...@linux.intel.com; Brost, Ma

Re: [PATCH v2][next] drm/nouveau: disp: Avoid -Wflex-array-member-not-at-end warning

2025-04-03 Thread Danilo Krummrich
On Wed, Apr 02, 2025 at 03:58:59PM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of > a flexible structure where the size of the flexi

Re: [PATCH v3 00/16] Introduce and use generic parity16/32/64 helper

2025-04-03 Thread Kuan-Wei Chiu
On Thu, Apr 03, 2025 at 12:14:04PM -0400, Yury Norov wrote: > On Thu, Apr 03, 2025 at 10:39:03PM +0800, Kuan-Wei Chiu wrote: > > On Tue, Mar 25, 2025 at 12:43:25PM -0700, H. Peter Anvin wrote: > > > On 3/23/25 08:16, Kuan-Wei Chiu wrote: > > > > > > > > Interface 3: Multiple Functions > > > > Desc

[PATCH AUTOSEL 5.15 03/12] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.6 09/23] drm/bridge: panel: forbid initializing a panel with unknown connector type

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit b296955b3a740ecc8b3b08e34fd64f1ceabb8fb4 ] Having an DRM_MODE_CONNECTOR_Unknown connector type is considered bad, and drm_panel_bridge_add_typed() and derivatives are deprecated for this. drm_panel_init() won't prevent initializing a panel with a DRM_MODE_C

[PATCH AUTOSEL 6.12 19/33] drm/xe/xelp: Move Wa_16011163337 from tunings to workarounds

2025-04-03 Thread Sasha Levin
From: Tvrtko Ursulin [ Upstream commit d9b5d83c5a4d720af6ddbefe2825c78f0325a3fd ] Workaround database specifies 16011163337 as a workaround so lets move it there. Signed-off-by: Tvrtko Ursulin Cc: Lucas De Marchi Cc: Matt Roper Cc: Gustavo Sousa Reviewed-by: Lucas De Marchi Link: https://

[PATCH AUTOSEL 6.12 23/33] drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

2025-04-03 Thread Sasha Levin
From: Wentao Liang [ Upstream commit 1435e895d4fc967d64e9f5bf81e992ac32f5ac76 ] Add error handling to propagate amdgpu_cgs_create_device() failures to the caller. When amdgpu_cgs_create_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change erro

[PATCH v3 4/4] tests/intel/xe_vm: Test DRM_IOCTL_XE_VM_GET_PROPERTY fault reporting

2025-04-03 Thread Jonathan Cavitt
Add a test to xe_vm that determines if pagefaults are correctly tracked and reported by the DRM_IOCTL_XE_VM_GET_PROPERTY. Signed-off-by: Jonathan Cavitt Suggested-by: Jianxun Zhang Suggested-by: Stuart Summers --- tests/intel/xe_vm.c | 159 +++- 1 file c

[PATCH v3 2/4] lib/xe/xe_ioctl: Add xe_vm_get_property helper function

2025-04-03 Thread Jonathan Cavitt
Add a helper function, xe_vm_get_property, that calls the drm_xe_vm_get_property ioctl. Since the ioctl behaves similarly to an xe_query in that it needs to be called once to get the size of the return data and again to save the data, the helper function takes the ioctl structure as a parameter.

[PATCH AUTOSEL 6.14 06/44] drm/xe/pf: Don't send BEGIN_ID if VF has no context/doorbells

2025-04-03 Thread Sasha Levin
From: Michal Wajdeczko [ Upstream commit 21ccac0e22aaf27b767f9de4bf573e7c47f619c8 ] It turned out that GuC validates VF configuration immediately after receiving "some" set of configuration KLVs and complains if one of the critical, from GuC understanding, resource is left unprovisioned, even if

[PATCH AUTOSEL 6.14 04/44] drm/xe/bmg: Add new PCI IDs

2025-04-03 Thread Sasha Levin
From: Shekhar Chauhan [ Upstream commit fa8ffaae1b15236b8afb0fbbc04117ff7c900a83 ] Add 3 new PCI IDs for BMG. v2: Fix typo -> Replace '.' with ',' Signed-off-by: Shekhar Chauhan Reviewed-by: Clint Taylor Link: https://patchwork.freedesktop.org/patch/msgid/20250128162015.3288675-1-shekhar.ch

[PATCH AUTOSEL 6.14 08/44] drm/amd/display: Update Cursor request mode to the beginning prefetch always

2025-04-03 Thread Sasha Levin
From: Zhikai Zhai [ Upstream commit 4a4077b4b63a8404efd6d37fc2926f03fb25bace ] [Why] The double buffer cursor registers is updated by the cursor vupdate event. There is a gap between vupdate and cursor data fetch if cursor fetch data reletive to cursor position. Cursor corruption will happen if

[PATCH AUTOSEL 6.14 09/44] drm/amd/display: Guard Possible Null Pointer Dereference

2025-04-03 Thread Sasha Levin
From: Sung Lee [ Upstream commit c87d202692de34ee71d1fd4679a549a29095658a ] [WHY] In some situations, dc->res_pool may be null. [HOW] Check if pointer is null before dereference. Reviewed-by: Joshua Aberback Signed-off-by: Sung Lee Signed-off-by: Zaeem Mohamed Tested-by: Daniel Wheeler Sig

[PATCH AUTOSEL 6.14 02/44] drm/virtio: Set missing bo->attached flag

2025-04-03 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit ffda6454267d0b870f3a09945a7ce88137b914a6 ] VirtIO-GPU driver now supports detachment of shmem BOs from host, but doing it only for imported dma-bufs. Mark all shmem BOs as attached, not just dma-bufs. This is a minor correction since detachment of a non-dm

[PATCH AUTOSEL 6.14 37/44] drm/amdgpu: grab an additional reference on the gang fence v2

2025-04-03 Thread Sasha Levin
From: Christian König [ Upstream commit 0d9a95099dcb05b5f4719c830d15bf4fdcad0dc2 ] We keep the gang submission fence around in adev, make sure that it stays alive. v2: fix memory leak on retry Signed-off-by: Christian König Acked-by: Srinivasan Shanmugam Signed-off-by: Alex Deucher Signed-o

[PATCH AUTOSEL 6.13 05/37] drm/amd/display: Update Cursor request mode to the beginning prefetch always

2025-04-03 Thread Sasha Levin
From: Zhikai Zhai [ Upstream commit 4a4077b4b63a8404efd6d37fc2926f03fb25bace ] [Why] The double buffer cursor registers is updated by the cursor vupdate event. There is a gap between vupdate and cursor data fetch if cursor fetch data reletive to cursor position. Cursor corruption will happen if

[PATCH AUTOSEL 6.14 31/44] drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

2025-04-03 Thread Sasha Levin
From: Wentao Liang [ Upstream commit 1435e895d4fc967d64e9f5bf81e992ac32f5ac76 ] Add error handling to propagate amdgpu_cgs_create_device() failures to the caller. When amdgpu_cgs_create_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change erro

[PATCH AUTOSEL 6.13 06/37] drm/amd/display: add workaround flag to link to force FFE preset

2025-04-03 Thread Sasha Levin
From: Brendan Tam [ Upstream commit 51d1b338541dea83fec8e6f95d3e46fa469a73a8 ] [Why] There have been instances of some monitors being unable to link train on their reported link speed using their selected FFE preset. If a different FFE preset is found that has a higher rate of success during lin

[PATCH AUTOSEL 6.13 02/37] drm/xe/bmg: Add new PCI IDs

2025-04-03 Thread Sasha Levin
From: Shekhar Chauhan [ Upstream commit fa8ffaae1b15236b8afb0fbbc04117ff7c900a83 ] Add 3 new PCI IDs for BMG. v2: Fix typo -> Replace '.' with ',' Signed-off-by: Shekhar Chauhan Reviewed-by: Clint Taylor Link: https://patchwork.freedesktop.org/patch/msgid/20250128162015.3288675-1-shekhar.ch

[PATCH AUTOSEL 6.13 01/37] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

[PATCH AUTOSEL 6.14 27/44] drm/mediatek: mtk_dpi: Move the input_2p_en bit to platform data

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit c90876a695dd83e76680b88b40067275a5982811 ] In preparation for adding support for MT8195's HDMI reserved DPI instance, move the input_2p_en bit for DP_INTF to platform data. While at it, remove the input_2pixel member from platform data as havin

[PATCH AUTOSEL 6.14 28/44] drm/mediatek: mtk_dpi: Explicitly manage TVD clock in power on/off

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit 473c33f5ce651365468503c76f33158aaa1c7dd2 ] In preparation for adding support for MT8195's HDMI reserved DPI, add calls to clk_prepare_enable() / clk_disable_unprepare() for the TVD clock: in this particular case, the aforementioned clock is not

[PATCH AUTOSEL 6.14 26/44] drm/xe/xelp: Move Wa_16011163337 from tunings to workarounds

2025-04-03 Thread Sasha Levin
From: Tvrtko Ursulin [ Upstream commit d9b5d83c5a4d720af6ddbefe2825c78f0325a3fd ] Workaround database specifies 16011163337 as a workaround so lets move it there. Signed-off-by: Tvrtko Ursulin Cc: Lucas De Marchi Cc: Matt Roper Cc: Gustavo Sousa Reviewed-by: Lucas De Marchi Link: https://

[PATCH AUTOSEL 6.14 29/44] drm/rockchip: stop passing non struct drm_device to drm_err() and friends

2025-04-03 Thread Sasha Levin
From: Jani Nikula [ Upstream commit abeef1f9eaf9301cc98a6841dab5f72de5c95360 ] The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Convert drm_err(hd

[PATCH AUTOSEL 6.14 23/44] drm/amdkfd: Fix mode1 reset crash issue

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit f0b4440cdc1807bb6ec3dce0d6de81170803569b ] If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal user space to abort the processes. After process abort exit, user queues still use the GPU to access system memory before h/w is reset while KFD

[PATCH AUTOSEL 6.14 24/44] drm/amdkfd: Fix pqm_destroy_queue race with GPU reset

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit 7919b4cad5545ed93778f11881ceee72e4dbed66 ] If GPU in reset, destroy_queue return -EIO, pqm_destroy_queue should delete the queue from process_queue_list and free the resource. Signed-off-by: Philip Yang Reviewed-by: Felix Kuehling Signed-off-by: Alex Deuche

[PATCH AUTOSEL 6.14 12/44] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.14 18/44] drm/bridge: panel: forbid initializing a panel with unknown connector type

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit b296955b3a740ecc8b3b08e34fd64f1ceabb8fb4 ] Having an DRM_MODE_CONNECTOR_Unknown connector type is considered bad, and drm_panel_bridge_add_typed() and derivatives are deprecated for this. drm_panel_init() won't prevent initializing a panel with a DRM_MODE_C

[PATCH AUTOSEL 6.14 15/44] drm: panel-orientation-quirks: Add new quirk for GPD Win 2

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit a860eb9c6ba6cdbf32e3e01a606556e5a90a2931 ] Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by

[PATCH AUTOSEL 6.14 17/44] drm/debugfs: fix printk format for bridge index

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit 72443c730b7a7b5670a921ea928e17b9b99bd934 ] idx is an unsigned int, use %u for printk-style strings. Reviewed-by: Dmitry Baryshkov Signed-off-by: Luca Ceresoli Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20250214-drm-as

[PATCH AUTOSEL 6.14 22/44] drm/amdkfd: clamp queue size to minimum

2025-04-03 Thread Sasha Levin
From: David Yat Sin [ Upstream commit e90711946b53590371ecce32e8fcc381a99d6333 ] If queue size is less than minimum, clamp it to minimum to prevent underflow when writing queue mqd. Signed-off-by: David Yat Sin Reviewed-by: Jay Cornwall Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex

[PATCH AUTOSEL 6.14 25/44] drm/amdkfd: debugfs hang_hws skip GPU with MES

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit fe9d0061c413f8fb8c529b18b592b04170850ded ] debugfs hang_hws is used by GPU reset test with HWS, for MES this crash the kernel with NULL pointer access because dqm->packet_mgr is not setup for MES path. Skip GPU with MES for now, MES hang_hws debugfs interface

[PATCH AUTOSEL 6.13 08/37] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.13 09/37] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 529741c331da1fbf54f86c6ec3a4558b9b0b16dc ] The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to correctly rotate these panels. Signed-off-by:

[PATCH AUTOSEL 6.13 16/37] drm/amd/display: stop DML2 from removing pipes based on planes

2025-04-03 Thread Sasha Levin
From: Mike Katsnelson [ Upstream commit 8adeff83a3b07fa6d0958ed51e1b38ba7469e448 ] [Why] Transitioning from low to high resolutions at high refresh rates caused grey corruption. During the transition state, there is a period where plane size is based on low resultion state and ODM slices are b

[PATCH AUTOSEL 6.13 18/37] drm/amdkfd: clamp queue size to minimum

2025-04-03 Thread Sasha Levin
From: David Yat Sin [ Upstream commit e90711946b53590371ecce32e8fcc381a99d6333 ] If queue size is less than minimum, clamp it to minimum to prevent underflow when writing queue mqd. Signed-off-by: David Yat Sin Reviewed-by: Jay Cornwall Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex

[PATCH AUTOSEL 6.13 20/37] drm/amdkfd: Fix pqm_destroy_queue race with GPU reset

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit 7919b4cad5545ed93778f11881ceee72e4dbed66 ] If GPU in reset, destroy_queue return -EIO, pqm_destroy_queue should delete the queue from process_queue_list and free the resource. Signed-off-by: Philip Yang Reviewed-by: Felix Kuehling Signed-off-by: Alex Deuche

[PATCH AUTOSEL 6.13 21/37] drm/amdkfd: debugfs hang_hws skip GPU with MES

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit fe9d0061c413f8fb8c529b18b592b04170850ded ] debugfs hang_hws is used by GPU reset test with HWS, for MES this crash the kernel with NULL pointer access because dqm->packet_mgr is not setup for MES path. Skip GPU with MES for now, MES hang_hws debugfs interface

[PATCH AUTOSEL 6.13 22/37] drm/xe/xelp: Move Wa_16011163337 from tunings to workarounds

2025-04-03 Thread Sasha Levin
From: Tvrtko Ursulin [ Upstream commit d9b5d83c5a4d720af6ddbefe2825c78f0325a3fd ] Workaround database specifies 16011163337 as a workaround so lets move it there. Signed-off-by: Tvrtko Ursulin Cc: Lucas De Marchi Cc: Matt Roper Cc: Gustavo Sousa Reviewed-by: Lucas De Marchi Link: https://

[PATCH AUTOSEL 6.13 07/37] drm/amdgpu: Unlocked unmap only clear page table leaves

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit 23b645231eeffdaf44021debac881d2f26824150 ] SVM migration unmap pages from GPU and then update mapping to GPU to recover page fault. Currently unmap clears the PDE entry for range length >= huge page and free PTB bo, update mapping to alloc new PT bo. There is

[PATCH AUTOSEL 6.13 13/37] drm/debugfs: fix printk format for bridge index

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit 72443c730b7a7b5670a921ea928e17b9b99bd934 ] idx is an unsigned int, use %u for printk-style strings. Reviewed-by: Dmitry Baryshkov Signed-off-by: Luca Ceresoli Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20250214-drm-as

[PATCH AUTOSEL 6.13 14/37] drm/bridge: panel: forbid initializing a panel with unknown connector type

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit b296955b3a740ecc8b3b08e34fd64f1ceabb8fb4 ] Having an DRM_MODE_CONNECTOR_Unknown connector type is considered bad, and drm_panel_bridge_add_typed() and derivatives are deprecated for this. drm_panel_init() won't prevent initializing a panel with a DRM_MODE_C

[PATCH AUTOSEL 6.13 26/37] drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

2025-04-03 Thread Sasha Levin
From: Wentao Liang [ Upstream commit 1435e895d4fc967d64e9f5bf81e992ac32f5ac76 ] Add error handling to propagate amdgpu_cgs_create_device() failures to the caller. When amdgpu_cgs_create_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change erro

[PATCH AUTOSEL 6.12 03/33] drm/xe/vf: Don't try to trigger a full GT reset if VF

2025-04-03 Thread Sasha Levin
From: Michal Wajdeczko [ Upstream commit 45924d306315070d24608fcd89aea85516d6 ] VFs don't have access to the GDRST(0x941c) register that driver uses to reset a GT. Attempt to trigger a reset using debugfs: $ cat /sys/kernel/debug/dri/:00:02.1/gt0/force_reset or due to a hang condition

[PATCH AUTOSEL 6.12 09/33] drm: panel-orientation-quirks: Add new quirk for GPD Win 2

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit a860eb9c6ba6cdbf32e3e01a606556e5a90a2931 ] Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by

[PATCH AUTOSEL 6.12 10/33] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel)

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit b24dcc183583fc360ae0f0899e286a68f46abbd0 ] The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel. The DMI strings are the same as the OneXPlayer, which already has a DMI quirk, but the panel is different. Add a DMI match to correctly rot

[PATCH AUTOSEL 6.12 02/33] drm/xe/bmg: Add new PCI IDs

2025-04-03 Thread Sasha Levin
From: Shekhar Chauhan [ Upstream commit fa8ffaae1b15236b8afb0fbbc04117ff7c900a83 ] Add 3 new PCI IDs for BMG. v2: Fix typo -> Replace '.' with ',' Signed-off-by: Shekhar Chauhan Reviewed-by: Clint Taylor Link: https://patchwork.freedesktop.org/patch/msgid/20250128162015.3288675-1-shekhar.ch

[PATCH AUTOSEL 6.13 23/37] drm/mediatek: mtk_dpi: Move the input_2p_en bit to platform data

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit c90876a695dd83e76680b88b40067275a5982811 ] In preparation for adding support for MT8195's HDMI reserved DPI instance, move the input_2p_en bit for DP_INTF to platform data. While at it, remove the input_2pixel member from platform data as havin

[PATCH AUTOSEL 6.12 01/33] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

[PATCH AUTOSEL 6.13 33/37] fbdev: omapfb: Add 'plane' value check

2025-04-03 Thread Sasha Levin
From: Leonid Arapov [ Upstream commit 3e411827f31db7f938a30a3c7a7599839401ec30 ] Function dispc_ovl_setup is not intended to work with the value OMAP_DSS_WB of the enum parameter plane. The value of this parameter is initialized in dss_init_overlays and in the current state of the code it canno

[PATCH AUTOSEL 6.12 08/33] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 132c89ef8872e602cfb909377815111d121fe8d7 ] The AYANEO Slide uses a 1080x1920 portrait LCD panel. This is the same panel used on the AYANEO Air Plus, but the DMI data is too different to match both with one entry. Add a DMI match to correctly rotate the pane

[PATCH AUTOSEL 6.12 12/33] drm/bridge: panel: forbid initializing a panel with unknown connector type

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit b296955b3a740ecc8b3b08e34fd64f1ceabb8fb4 ] Having an DRM_MODE_CONNECTOR_Unknown connector type is considered bad, and drm_panel_bridge_add_typed() and derivatives are deprecated for this. drm_panel_init() won't prevent initializing a panel with a DRM_MODE_C

[PATCH AUTOSEL 6.12 25/33] drm/amdgpu: Fix the race condition for draining retry fault

2025-04-03 Thread Sasha Levin
From: Emily Deng [ Upstream commit f844732e3ad9c4b78df7436232949b8d2096d1a6 ] Issue: In the scenario where svm_range_restore_pages is called, but svm->checkpoint_ts has not been set and the retry fault has not been drained, svm_range_unmap_from_cpu is triggered and calls svm_range_free. Meanwhil

[PATCH AUTOSEL 6.12 17/33] drm/amdkfd: Fix pqm_destroy_queue race with GPU reset

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit 7919b4cad5545ed93778f11881ceee72e4dbed66 ] If GPU in reset, destroy_queue return -EIO, pqm_destroy_queue should delete the queue from process_queue_list and free the resource. Signed-off-by: Philip Yang Reviewed-by: Felix Kuehling Signed-off-by: Alex Deuche

[PATCH AUTOSEL 6.6 05/23] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 529741c331da1fbf54f86c6ec3a4558b9b0b16dc ] The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to correctly rotate these panels. Signed-off-by:

[PATCH AUTOSEL 6.12 18/33] drm/amdkfd: debugfs hang_hws skip GPU with MES

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit fe9d0061c413f8fb8c529b18b592b04170850ded ] debugfs hang_hws is used by GPU reset test with HWS, for MES this crash the kernel with NULL pointer access because dqm->packet_mgr is not setup for MES path. Skip GPU with MES for now, MES hang_hws debugfs interface

[PATCH AUTOSEL 6.6 06/23] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 132c89ef8872e602cfb909377815111d121fe8d7 ] The AYANEO Slide uses a 1080x1920 portrait LCD panel. This is the same panel used on the AYANEO Air Plus, but the DMI data is too different to match both with one entry. Add a DMI match to correctly rotate the pane

[PATCH AUTOSEL 6.12 06/33] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.1 06/20] drm: panel-orientation-quirks: Add new quirk for GPD Win 2

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit a860eb9c6ba6cdbf32e3e01a606556e5a90a2931 ] Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by

[PATCH AUTOSEL 6.6 04/23] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.6 12/23] drm/amdkfd: Fix mode1 reset crash issue

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit f0b4440cdc1807bb6ec3dce0d6de81170803569b ] If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal user space to abort the processes. After process abort exit, user queues still use the GPU to access system memory before h/w is reset while KFD

[PATCH AUTOSEL 6.6 14/23] drm/amdkfd: debugfs hang_hws skip GPU with MES

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit fe9d0061c413f8fb8c529b18b592b04170850ded ] debugfs hang_hws is used by GPU reset test with HWS, for MES this crash the kernel with NULL pointer access because dqm->packet_mgr is not setup for MES path. Skip GPU with MES for now, MES hang_hws debugfs interface

[PATCH AUTOSEL 6.6 17/23] drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

2025-04-03 Thread Sasha Levin
From: Wentao Liang [ Upstream commit 1435e895d4fc967d64e9f5bf81e992ac32f5ac76 ] Add error handling to propagate amdgpu_cgs_create_device() failures to the caller. When amdgpu_cgs_create_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change erro

[PATCH AUTOSEL 6.6 15/23] drm/mediatek: mtk_dpi: Move the input_2p_en bit to platform data

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit c90876a695dd83e76680b88b40067275a5982811 ] In preparation for adding support for MT8195's HDMI reserved DPI instance, move the input_2p_en bit for DP_INTF to platform data. While at it, remove the input_2pixel member from platform data as havin

[PATCH AUTOSEL 6.1 05/20] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit 132c89ef8872e602cfb909377815111d121fe8d7 ] The AYANEO Slide uses a 1080x1920 portrait LCD panel. This is the same panel used on the AYANEO Air Plus, but the DMI data is too different to match both with one entry. Add a DMI match to correctly rotate the pane

[PATCH AUTOSEL 6.1 11/20] drm/amdkfd: Fix mode1 reset crash issue

2025-04-03 Thread Sasha Levin
From: Philip Yang [ Upstream commit f0b4440cdc1807bb6ec3dce0d6de81170803569b ] If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal user space to abort the processes. After process abort exit, user queues still use the GPU to access system memory before h/w is reset while KFD

[PATCH AUTOSEL 6.6 19/23] drm/amdgpu: grab an additional reference on the gang fence v2

2025-04-03 Thread Sasha Levin
From: Christian König [ Upstream commit 0d9a95099dcb05b5f4719c830d15bf4fdcad0dc2 ] We keep the gang submission fence around in adev, make sure that it stays alive. v2: fix memory leak on retry Signed-off-by: Christian König Acked-by: Srinivasan Shanmugam Signed-off-by: Alex Deucher Signed-o

[PATCH AUTOSEL 6.6 08/23] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel)

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit b24dcc183583fc360ae0f0899e286a68f46abbd0 ] The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel. The DMI strings are the same as the OneXPlayer, which already has a DMI quirk, but the panel is different. Add a DMI match to correctly rot

[PATCH AUTOSEL 6.1 03/20] drm: panel-orientation-quirks: Add support for AYANEO 2S

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit eb8f1e3e8ee10cff591d4a47437dfd34d850d454 ] AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by:

[PATCH AUTOSEL 6.1 01/20] drm: allow encoder mode_set even when connectors change for crtc

2025-04-03 Thread Sasha Levin
From: Abhinav Kumar [ Upstream commit 7e182cb4f5567f53417b762ec0d679f0b6f0039d ] In certain use-cases, a CRTC could switch between two encoders and because the mode being programmed on the CRTC remains the same during this switch, the CRTC's mode_changed remains false. In such cases, the encoder

[PATCH AUTOSEL 5.15 04/12] drm: panel-orientation-quirks: Add new quirk for GPD Win 2

2025-04-03 Thread Sasha Levin
From: Andrew Wyatt [ Upstream commit a860eb9c6ba6cdbf32e3e01a606556e5a90a2931 ] Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by

[PATCH AUTOSEL 5.15 02/12] drm/amd/display: Update Cursor request mode to the beginning prefetch always

2025-04-03 Thread Sasha Levin
From: Zhikai Zhai [ Upstream commit 4a4077b4b63a8404efd6d37fc2926f03fb25bace ] [Why] The double buffer cursor registers is updated by the cursor vupdate event. There is a gap between vupdate and cursor data fetch if cursor fetch data reletive to cursor position. Cursor corruption will happen if

[PATCH AUTOSEL 5.15 05/12] drm/bridge: panel: forbid initializing a panel with unknown connector type

2025-04-03 Thread Sasha Levin
From: Luca Ceresoli [ Upstream commit b296955b3a740ecc8b3b08e34fd64f1ceabb8fb4 ] Having an DRM_MODE_CONNECTOR_Unknown connector type is considered bad, and drm_panel_bridge_add_typed() and derivatives are deprecated for this. drm_panel_init() won't prevent initializing a panel with a DRM_MODE_C

[PATCH AUTOSEL 5.15 07/12] drm/amdkfd: clamp queue size to minimum

2025-04-03 Thread Sasha Levin
From: David Yat Sin [ Upstream commit e90711946b53590371ecce32e8fcc381a99d6333 ] If queue size is less than minimum, clamp it to minimum to prevent underflow when writing queue mqd. Signed-off-by: David Yat Sin Reviewed-by: Jay Cornwall Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex

[PATCH AUTOSEL 6.1 13/20] drm/mediatek: mtk_dpi: Move the input_2p_en bit to platform data

2025-04-03 Thread Sasha Levin
From: AngeloGioacchino Del Regno [ Upstream commit c90876a695dd83e76680b88b40067275a5982811 ] In preparation for adding support for MT8195's HDMI reserved DPI instance, move the input_2p_en bit for DP_INTF to platform data. While at it, remove the input_2pixel member from platform data as havin

  1   2   3   >