Re: [RFC PATCH 19/30] vfio/pci: Add TSM TDI bind/unbind IOCTLs for TEE-IO support

2025-06-01 Thread Aneesh Kumar K . V
Xu Yilun writes: > Add new IOCTLs to do TSM based TDI bind/unbind. These IOCTLs are > expected to be called by userspace when CoCo VM issues TDI bind/unbind > command to VMM. Specifically for TDX Connect, these commands are some > secure Hypervisor call named GHCI (Guest-Hypervisor Communication

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-01 Thread Krzysztof Kozlowski
On 30/05/2025 09:55, Geert Uytterhoeven wrote: > Hi Jayesh, > > CC devicetree > > On Fri, 30 May 2025 at 04:54, Jayesh Choudhary wrote: >> On 29/05/25 16:34, Jayesh Choudhary wrote: >>> By default, HPD was disabled on SN65DSI86 bridge. When the driver was >>> added (commit "a095f15c00e27"), the

[syzbot] [dri?] possible deadlock in drm_mode_obj_get_properties_ioctl (2)

2025-06-01 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d7fa1af5b33e 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=126e448258 kernel confi

[PATCH RESEND v2] drm/vc4: fix infinite EPROBE_DEFER loop

2025-06-01 Thread Gabriel Dalimonte
`vc4_hdmi_audio_init` calls `devm_snd_dmaengine_pcm_register` which may return EPROBE_DEFER. Calling `drm_connector_hdmi_audio_init` adds a child device. The driver model docs[1] state that adding a child device prior to returning EPROBE_DEFER may result in an infinite loop. [1] https://www.kernel

[PATCH v6 11/20] soc: mediatek: mtk-cmdq: Add mminfra_offset adjustment for DRAM addresses

2025-06-01 Thread Jason-JH Lin
Since GCE has been moved to MMINFRA in MT8196, all transactions from MMINFRA to DRAM will have their addresses adjusted by subtracting a mminfra_offset. Therefore, the CMDQ helper driver needs to get the mminfra_offset value of the SoC from cmdq_mbox_priv of cmdq_pkt and then add it to the DRAM ad

Re: [PATCH v3 0/8] Add TH1520 GPU support with power sequencing

2025-06-01 Thread Drew Fustini
On Fri, May 30, 2025 at 12:23:47AM +0200, Michal Wilczynski wrote: > This patch series introduces support for the Imagination IMG BXM-4-64 > GPU found on the T-HEAD TH1520 SoC. A key aspect of this support is > managing the GPU's complex power-up and power-down sequence, which > involves multiple c

[PATCH AUTOSEL 6.15 079/110] drm/panel: simple: Add POWERTIP PH128800T004-ZZA01 panel entry

2025-06-01 Thread Sasha Levin
From: Antonin Godard [ Upstream commit 6374a1005f20c1c2f7bbcc1bc735c2be4910a685 ] Add support for the POWERTIP PH128800T004-ZZA01 10.1" (1280x800) LCD-TFT panel. Its panel description is very much like the POWERTIP PH128800T006-ZHC01 configured below this one, only its timings are different. Si

[PATCH AUTOSEL 6.14 009/102] drm/amd/display: DCN32 null data check

2025-06-01 Thread Sasha Levin
From: Yihan Zhu [ Upstream commit c9646e5a7e01c3ede286ec5edd4fcb2e1e80261d ] [WHY & HOW] Avoid null curve data structure used in the cm block for the potential issue. Reviewed-by: Charlene Liu Signed-off-by: Yihan Zhu Signed-off-by: Zaeem Mohamed Tested-by: Mark Broadworth Signed-off-by: Al

[PATCH AUTOSEL 6.14 003/102] drm/amdgpu/gfx6: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 8307ebc15c1ea98a8a0b7837af1faa6c01514577 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Now let me understand what the bug is.

[PATCH AUTOSEL 6.14 005/102] drm/rockchip: inno-hdmi: Fix video timing HSYNC/VSYNC polarity setting for rk3036

2025-06-01 Thread Sasha Levin
From: Andy Yan [ Upstream commit ad10b82c2bcac7f87ac6eaecfca33378b43425ee ] The HSYNC/VSYNC polarity of rk3036 HDMI are controlled by GRF. Without the polarity configuration in GRF, it can be observed from the HDMI protocol analyzer that the H/V front/back timing output by RK3036 HDMI are curren

[PATCH AUTOSEL 6.14 001/102] drm/amd/display: disable DPP RCG before DPP CLK enable

2025-06-01 Thread Sasha Levin
From: Charlene Liu [ Upstream commit 1bcd679209420305a86833bc357d50021909edaf ] [why] DPP CLK enable needs to disable DPPCLK RCG first. The DPPCLK_en in dccg should always be enabled when the corresponding pipe is enabled. Reviewed-by: Hansen Dsouza Signed-off-by: Charlene Liu Signed-off-by:

[PATCH AUTOSEL 6.14 002/102] drm/bridge: select DRM_KMS_HELPER for AUX_BRIDGE

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit b12fa5e76e1463fc5a196f2717040e4564e184b6 ] The aux bridge uses devm_drm_of_get_bridge() from the panel bridge (and correctly selects DRM_PANEL_BRIDGE). However panel bridge is not a separate module, it is compiled into the drm_kms_helper.o. Select DRM_KMS

[PATCH AUTOSEL 6.15 066/110] drm/amd/display: Restructure DMI quirks

2025-06-01 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit de6485e3df24170d71706d6f2c55a496443c3803 ] [Why] DMI quirks are relatively big code that makes amdgpu_dm 200 lines larger. [How] Move DMI quirks into a dedicated source file and make all quirks variables for `struct amdgpu_display_manager`. Reviewed-by

[PATCH AUTOSEL 6.15 076/110] drm/amdgpu: Add indirect L1_TLB_CNTL reg programming for VFs

2025-06-01 Thread Sasha Levin
From: Victor Skvortsov [ Upstream commit 0c6e39ce6da20104900b11bad64464a12fb47320 ] VFs on some IP versions are unable to access this register directly. This register must be programmed before PSP ring is setup, so use PSP VF mailbox directly. PSP will broadcast the register value to all VF ass

[PATCH AUTOSEL 6.15 068/110] drm/msm/dpu: don't select single flush for active CTL blocks

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit e93eee524bb78f3ee4b78654d0083382f98b3d23 ] In case of ACTIVE CTLs, a single CTL is being used for flushing all INTF blocks. Don't skip programming the CTL on those targets. Tested-by: Neil Armstrong # on SM8550-QRD Signed-off-by: Dmitry Baryshkov Patch

[PATCH AUTOSEL 6.15 061/110] drm/amdgpu/gfx9: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit a4a4c0ae6742ec7d6bf1548d2c6828de440814a0 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Now I'll analyze the specific code cha

[PATCH AUTOSEL 6.14 010/102] drm/xe: Fix CFI violation when accessing sysfs files

2025-06-01 Thread Sasha Levin
From: Jeevaka Prabu Badrappan [ Upstream commit 4ea512714c42c69828b4a2647d206bf404043ad5 ] When an attribute group is created with sysfs_create_group() or sysfs_create_files() the ->sysfs_ops() callback is set to kobj_sysfs_ops, which sets the ->show() callback to kobj_attr_show(). kobj_attr_sho

[PATCH AUTOSEL 6.14 006/102] drm/dp: add option to disable zero sized address only transactions.

2025-06-01 Thread Sasha Levin
From: Dave Airlie [ Upstream commit f0ddbb1eed1898286d2bd99fd6ab64ca9700d267 ] Some older NVIDIA and some newer NVIDIA hardware/firmware seems to have issues with address only transactions (firmware rejects them). Add an option to the core drm dp to avoid address only transactions, This just pu

[PATCH AUTOSEL 6.14 011/102] drm/bridge: analogix_dp: Add irq flag IRQF_NO_AUTOEN instead of calling disable_irq()

2025-06-01 Thread Sasha Levin
From: Damon Ding [ Upstream commit efab13e7d13a641a22c7508cde6e1a5285161944 ] The IRQF_NO_AUTOEN can be used for the drivers that don't want interrupts to be enabled automatically via devm_request_threaded_irq(). Using this flag can provide be more robust compared to the way of calling disable_i

[PATCH AUTOSEL 6.14 013/102] drm/panel/sharp-ls043t1le01: Use _multi variants

2025-06-01 Thread Sasha Levin
From: Anusha Srivatsa [ Upstream commit 20e8219205145e1af3b98b6a0a3cc59568116a05 ] Move away from using deprecated API and use _multi variants if available. Use mipi_dsi_msleep() and mipi_dsi_usleep_range() instead of msleep() and usleep_range() respectively. Used Coccinelle to find the _multi

[PATCH AUTOSEL 6.14 008/102] drm/amdgpu: Fix API status offset for MES queue reset

2025-06-01 Thread Sasha Levin
From: "Jesse.Zhang" [ Upstream commit ad7c088e31f026d71fe87fd09473fafb7d6ed006 ] The mes_v11_0_reset_hw_queue and mes_v12_0_reset_hw_queue functions were using the wrong union type (MESAPI__REMOVE_QUEUE) when getting the offset for api_status. Since these functions handle queue reset operations,

[PATCH AUTOSEL 6.14 018/102] drm/bridge: anx7625: change the gpiod_set_value API

2025-06-01 Thread Sasha Levin
From: Ayushi Makhija [ Upstream commit 50935044e58e563cdcfd556d62f27bc8744dd64e ] Use gpiod_set_value_cansleep() instead of gpiod_set_value() to fix the below call trace in the boot log: [5.690534] Call trace: [5.690536] gpiod_set_value+0x40/0xa4 [5.690540] anx7625_runtime_pm_resu

[PATCH AUTOSEL 6.14 015/102] drm/bridge: anx7625: enable HPD interrupts

2025-06-01 Thread Sasha Levin
From: Ayushi Makhija [ Upstream commit ca8a78cdceb48ad3b753f836068611265840ef22 ] When the device enters the suspend state, it prevents HPD interrupts from occurring. To address this, implement .hpd_enable() and .hpd_disable() callbacks functions of the drm_bridge. Signed-off-by: Ayushi Makhija

[PATCH AUTOSEL 6.14 023/102] drm/nouveau: fix hibernate on disabled GPU

2025-06-01 Thread Sasha Levin
From: Christoph Rudorff [ Upstream commit 4c4d9b7b6c6e676eca22585139aba5f03de74b90 ] Hibernate bricks the machine if a discrete GPU was disabled via echo IGD > /sys/kernel/debug/vgaswitcheroo/switch The freeze and thaw handler lacks checking the GPU power state, as suspend and resume do. This

[PATCH AUTOSEL 6.14 025/102] drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1

2025-06-01 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 7e40f64896e8e3dca471e287672db5ace12ea0be ] [Why] If the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated then they can lead to a divide by zero in downstream callers like CalculateVMAndRowBytes() [How] Initialize dummy value to a value

[PATCH AUTOSEL 6.14 020/102] drm/amdkfd: Drop workaround for GC v9.4.3 revID 0

2025-06-01 Thread Sasha Levin
From: Apurv Mishra [ Upstream commit daafa303d19f5522e4c24fbf5c1c981a16df2c2f ] Remove workaround code for the early engineering samples GC v9.4.3 SOCs with revID 0 Reviewed-by: Amber Lin Signed-off-by: Apurv Mishra Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Perfect! Now I

[PATCH AUTOSEL 6.14 017/102] drm/panthor: Don't update MMU_INT_MASK in panthor_mmu_irq_handler()

2025-06-01 Thread Sasha Levin
From: Boris Brezillon [ Upstream commit 6c4a3fa26799785c1873aacabcfd9b2d27e8dc97 ] Interrupts are automatically unmasked in panthor_mmu_irq_threaded_handler() when the handler returns. Unmasking prematurely might generate spurious interrupts if the IRQ line is shared. Changes in v2: - New patch

[PATCH AUTOSEL 6.14 037/102] drm: panel-orientation-quirks: Add ZOTAC Gaming Zone

2025-06-01 Thread Sasha Levin
From: Vicki Pfau [ Upstream commit 96c85e428ebaeacd2c640eba075479ab92072ccd ] Add a panel orientation quirk for the ZOTAC Gaming Zone handheld gaming device. Signed-off-by: Vicki Pfau Reviewed-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20250313211643.860786-2...@en

[PATCH AUTOSEL 6.14 033/102] drm/msm/a6xx: Increase HFI response timeout

2025-06-01 Thread Sasha Levin
From: Akhil P Oommen [ Upstream commit 5f02f5e78ec9688e29b6857813185b1181796abe ] When ACD feature is enabled, it triggers some internal calibrations which result in a pretty long delay during the first HFI perf vote. So, increase the HFI response timeout to match the downstream driver. Signed-

[PATCH AUTOSEL 6.14 040/102] drm/amd/display: fix zero value for APU watermark_c

2025-06-01 Thread Sasha Levin
From: Charlene Liu [ Upstream commit d5a7fdc88a2d64242d959942cbd0e1499ebb9806 ] [why] the guard of is_apu not in sync, caused no watermark_c output. Reviewed-by: Ovidiu Bunea Signed-off-by: Charlene Liu Signed-off-by: Aurabindo Pillai Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher S

[PATCH AUTOSEL 6.14 026/102] drm/nouveau/gsp: fix rm shutdown wait condition

2025-06-01 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 7904bcdcf6b56602a049ed2b47282db63671fa99 ] Though the initial upstreamed GSP-RM version in nouveau was 535.113.01, the code was developed against earlier versions. 535.42.02 modified the mailbox value used by GSP-RM to signal shutdown has completed, which was

[PATCH AUTOSEL 6.14 021/102] drm/amdgpu/gfx11: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit a9a8bccaa3ba64d509cf7df387cf0b5e1cd06499 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.14 041/102] drm/ttm/tests: fix incorrect assert in ttm_bo_unreserve_bulk()

2025-06-01 Thread Sasha Levin
From: Qasim Ijaz [ Upstream commit 878516a9e62cd220379e511d43dcf58df3a6ca9f ] In the ttm_bo_unreserve_bulk() test function, resv is allocated using kunit_kzalloc(), but the subsequent assertion mistakenly verifies the ttm_dev pointer instead of the resv pointer. Fix the assertion to properly ve

[PATCH AUTOSEL 6.14 036/102] drm/amdgpu/gfx10: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 683308af030cd9b8d3f1de5cbc1ee51788878feb ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.14 046/102] drm/xe/vf: Fix guc_info debugfs for VFs

2025-06-01 Thread Sasha Levin
From: Daniele Ceraolo Spurio [ Upstream commit dba7d17d50b4488c697e991d18a0e55669d9fa59 ] The guc_info debugfs attempts to read a bunch of registers that the VFs doesn't have access to, so fix it by skipping the reads. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4775 Signed-of

[PATCH AUTOSEL 6.14 047/102] drm/amd/display: Correct SSC enable detection for DCN351

2025-06-01 Thread Sasha Levin
From: Kevin Gao [ Upstream commit d01a7306e1bec9c02268793f58144e3e42695bf0 ] [Why] Due to very small clock register delta between DCN35 and DCN351, clock spread is being checked on the wrong register for DCN351, causing the display driver to believe that DPREFCLK downspread to be disabled when i

[PATCH AUTOSEL 6.14 031/102] drm/amd/display: Skip to enable dsc if it has been off

2025-06-01 Thread Sasha Levin
From: Paul Hsieh [ Upstream commit 8b8a602c985e99074fa1d5233cd224b7bcfb9df2 ] [Why] It makes DSC enable when we commit the stream which need keep power off.And then it will skip to disable DSC if pipe reset at this situation as power has been off. It may cause the DSC unexpected enable on the pi

[PATCH AUTOSEL 6.14 051/102] drm/amdgpu: fix MES GFX mask

2025-06-01 Thread Sasha Levin
From: Arvind Yadav [ Upstream commit 9d3afcb7b9f950b9b7c58ceeeb9e71f3476e69ed ] Current MES GFX mask prevents FW to enable oversubscription. This patch does the following: - Fixes the mask values and adds a description for the same - Removes the central mask setup and makes it IP specific, as it

[PATCH AUTOSEL 6.14 042/102] drm/amdgpu/gfx7: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit be7652c23d833d1ab2c67b16e173b1a4e69d1ae6 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.14 056/102] drm/amd/display: disable EASF narrow filter sharpening

2025-06-01 Thread Sasha Levin
From: Samson Tam [ Upstream commit c8d7e0be8183f4375a5cf5c3efd0c678129ea4de ] [Why & How] Default should be 1 to disable EASF narrow filter sharpening. Reviewed-by: Alvin Lee Signed-off-by: Samson Tam Signed-off-by: Ray Wu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by

[PATCH AUTOSEL 6.14 055/102] drm/amdgpu/gfx8: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit c8b8d7a4f1c5cdfbd61d75302fb3e3cdefb1a7ab ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.14 057/102] drm/amdgpu/gfx9: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit a4a4c0ae6742ec7d6bf1548d2c6828de440814a0 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Now I'll analyze the specific code cha

[PATCH AUTOSEL 6.14 070/102] drm/amdgpu: Add indirect L1_TLB_CNTL reg programming for VFs

2025-06-01 Thread Sasha Levin
From: Victor Skvortsov [ Upstream commit 0c6e39ce6da20104900b11bad64464a12fb47320 ] VFs on some IP versions are unable to access this register directly. This register must be programmed before PSP ring is setup, so use PSP VF mailbox directly. PSP will broadcast the register value to all VF ass

[PATCH AUTOSEL 6.14 071/102] drm/xe/uc: Remove static from loop variable

2025-06-01 Thread Sasha Levin
From: Lucas De Marchi [ Upstream commit 75584c8213d341ddd5b7c72abf822e62f4b3ab27 ] The `entries` variable is used to loop through the array - it's supposed to be const, but not static. Reviewed-by: John Harrison Link: https://patchwork.freedesktop.org/patch/msgid/20250307-xe-per-gt-fw-v1-1-45

[PATCH AUTOSEL 6.14 063/102] drm/msm/dpu: don't select single flush for active CTL blocks

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit e93eee524bb78f3ee4b78654d0083382f98b3d23 ] In case of ACTIVE CTLs, a single CTL is being used for flushing all INTF blocks. Don't skip programming the CTL on those targets. Tested-by: Neil Armstrong # on SM8550-QRD Signed-off-by: Dmitry Baryshkov Patch

[PATCH AUTOSEL 6.14 058/102] drm/amd/display: Fix VUpdate offset calculations for dcn401

2025-06-01 Thread Sasha Levin
From: Dillon Varone [ Upstream commit fe45e2af4a22e569b35b7f45eb9f040f6fbef94f ] [WHY&HOW] DCN401 uses a different structure to store the VStartup offset used to calculate the VUpdate position, so adjust the calculations to use this value. Reviewed-by: Aric Cyr Signed-off-by: Dillon Varone Si

ttm vs aarch64 mappings

2025-06-01 Thread Dave Airlie
Hey, I've been playing a bit with nouveau on aarch64, and I noticed ttm translates ttm_uncached into pgprot_noncached which uses MT_DEVICE_nGnRnE. This is of course a device mapping which isn't appropriate for memory. For main memory we should be using pgprot_dmacoherent which translates to MT_NO

[PATCH AUTOSEL 6.15 010/110] drm/xe: Fix CFI violation when accessing sysfs files

2025-06-01 Thread Sasha Levin
From: Jeevaka Prabu Badrappan [ Upstream commit 4ea512714c42c69828b4a2647d206bf404043ad5 ] When an attribute group is created with sysfs_create_group() or sysfs_create_files() the ->sysfs_ops() callback is set to kobj_sysfs_ops, which sets the ->show() callback to kobj_attr_show(). kobj_attr_sho

[PATCH AUTOSEL 6.15 009/110] drm/amd/display: DCN32 null data check

2025-06-01 Thread Sasha Levin
From: Yihan Zhu [ Upstream commit c9646e5a7e01c3ede286ec5edd4fcb2e1e80261d ] [WHY & HOW] Avoid null curve data structure used in the cm block for the potential issue. Reviewed-by: Charlene Liu Signed-off-by: Yihan Zhu Signed-off-by: Zaeem Mohamed Tested-by: Mark Broadworth Signed-off-by: Al

[PATCH AUTOSEL 6.15 017/110] drm/panthor: Don't update MMU_INT_MASK in panthor_mmu_irq_handler()

2025-06-01 Thread Sasha Levin
From: Boris Brezillon [ Upstream commit 6c4a3fa26799785c1873aacabcfd9b2d27e8dc97 ] Interrupts are automatically unmasked in panthor_mmu_irq_threaded_handler() when the handler returns. Unmasking prematurely might generate spurious interrupts if the IRQ line is shared. Changes in v2: - New patch

[PATCH AUTOSEL 6.15 015/110] drm/bridge: anx7625: enable HPD interrupts

2025-06-01 Thread Sasha Levin
From: Ayushi Makhija [ Upstream commit ca8a78cdceb48ad3b753f836068611265840ef22 ] When the device enters the suspend state, it prevents HPD interrupts from occurring. To address this, implement .hpd_enable() and .hpd_disable() callbacks functions of the drm_bridge. Signed-off-by: Ayushi Makhija

[PATCH AUTOSEL 6.15 003/110] drm/amdgpu/gfx6: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 8307ebc15c1ea98a8a0b7837af1faa6c01514577 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Now let me understand what the bug is.

[PATCH AUTOSEL 6.15 006/110] drm/dp: add option to disable zero sized address only transactions.

2025-06-01 Thread Sasha Levin
From: Dave Airlie [ Upstream commit f0ddbb1eed1898286d2bd99fd6ab64ca9700d267 ] Some older NVIDIA and some newer NVIDIA hardware/firmware seems to have issues with address only transactions (firmware rejects them). Add an option to the core drm dp to avoid address only transactions, This just pu

[PATCH AUTOSEL 6.15 002/110] drm/bridge: select DRM_KMS_HELPER for AUX_BRIDGE

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit b12fa5e76e1463fc5a196f2717040e4564e184b6 ] The aux bridge uses devm_drm_of_get_bridge() from the panel bridge (and correctly selects DRM_PANEL_BRIDGE). However panel bridge is not a separate module, it is compiled into the drm_kms_helper.o. Select DRM_KMS

[PATCH AUTOSEL 6.15 008/110] drm/amdgpu: Fix API status offset for MES queue reset

2025-06-01 Thread Sasha Levin
From: "Jesse.Zhang" [ Upstream commit ad7c088e31f026d71fe87fd09473fafb7d6ed006 ] The mes_v11_0_reset_hw_queue and mes_v12_0_reset_hw_queue functions were using the wrong union type (MESAPI__REMOVE_QUEUE) when getting the offset for api_status. Since these functions handle queue reset operations,

[PATCH AUTOSEL 6.15 013/110] drm/panel/sharp-ls043t1le01: Use _multi variants

2025-06-01 Thread Sasha Levin
From: Anusha Srivatsa [ Upstream commit 20e8219205145e1af3b98b6a0a3cc59568116a05 ] Move away from using deprecated API and use _multi variants if available. Use mipi_dsi_msleep() and mipi_dsi_usleep_range() instead of msleep() and usleep_range() respectively. Used Coccinelle to find the _multi

[PATCH AUTOSEL 6.15 035/110] drm/amd/display: Do Not Consider DSC if Valid Config Not Found

2025-06-01 Thread Sasha Levin
From: Fangzhi Zuo [ Upstream commit 146a4429b5674b7520a96aea34233949731c6086 ] [why] In the mode validation, mst dsc is considered for bw calculation after common dsc config is determined. Currently it considered common dsc config is found if max and min target bpp are non zero which is not accu

[PATCH AUTOSEL 6.15 031/110] drm/amd/display: Skip to enable dsc if it has been off

2025-06-01 Thread Sasha Levin
From: Paul Hsieh [ Upstream commit 8b8a602c985e99074fa1d5233cd224b7bcfb9df2 ] [Why] It makes DSC enable when we commit the stream which need keep power off.And then it will skip to disable DSC if pipe reset at this situation as power has been off. It may cause the DSC unexpected enable on the pi

[PATCH AUTOSEL 6.15 029/110] drm/amd/display: Add NULL pointer checks in dm_force_atomic_commit()

2025-06-01 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 3f397cd203f247879c2f1a061e90d4c8d23655de ] This commit updates the dm_force_atomic_commit function to replace the usage of PTR_ERR_OR_ZERO with IS_ERR for checking error states after retrieving the Connector (drm_atomic_get_connector_state), CRTC (drm

[PATCH AUTOSEL 6.15 027/110] drm/msm/hdmi: add runtime PM calls to DDC transfer function

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit 531b4e2c206e5f7dead04d9da84dfa693ac57481 ] We must be sure that the HDMI controller is powered on, while performing the DDC transfer. Add corresponding runtime PM calls to msm_hdmi_i2c_xfer(). Reviewed-by: Jessica Zhang Signed-off-by: Dmitry Baryshkov

[PATCH AUTOSEL 6.15 025/110] drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1

2025-06-01 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 7e40f64896e8e3dca471e287672db5ace12ea0be ] [Why] If the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated then they can lead to a divide by zero in downstream callers like CalculateVMAndRowBytes() [How] Initialize dummy value to a value

[PATCH AUTOSEL 6.15 011/110] drm/bridge: analogix_dp: Add irq flag IRQF_NO_AUTOEN instead of calling disable_irq()

2025-06-01 Thread Sasha Levin
From: Damon Ding [ Upstream commit efab13e7d13a641a22c7508cde6e1a5285161944 ] The IRQF_NO_AUTOEN can be used for the drivers that don't want interrupts to be enabled automatically via devm_request_threaded_irq(). Using this flag can provide be more robust compared to the way of calling disable_i

[PATCH AUTOSEL 6.15 020/110] drm/amdkfd: Drop workaround for GC v9.4.3 revID 0

2025-06-01 Thread Sasha Levin
From: Apurv Mishra [ Upstream commit daafa303d19f5522e4c24fbf5c1c981a16df2c2f ] Remove workaround code for the early engineering samples GC v9.4.3 SOCs with revID 0 Reviewed-by: Amber Lin Signed-off-by: Apurv Mishra Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Perfect! Now I

[PATCH AUTOSEL 6.15 023/110] drm/nouveau: fix hibernate on disabled GPU

2025-06-01 Thread Sasha Levin
From: Christoph Rudorff [ Upstream commit 4c4d9b7b6c6e676eca22585139aba5f03de74b90 ] Hibernate bricks the machine if a discrete GPU was disabled via echo IGD > /sys/kernel/debug/vgaswitcheroo/switch The freeze and thaw handler lacks checking the GPU power state, as suspend and resume do. This

[PATCH AUTOSEL 6.15 021/110] drm/amdgpu/gfx11: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit a9a8bccaa3ba64d509cf7df387cf0b5e1cd06499 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.15 038/110] drm: panel-orientation-quirks: Add ZOTAC Gaming Zone

2025-06-01 Thread Sasha Levin
From: Vicki Pfau [ Upstream commit 96c85e428ebaeacd2c640eba075479ab92072ccd ] Add a panel orientation quirk for the ZOTAC Gaming Zone handheld gaming device. Signed-off-by: Vicki Pfau Reviewed-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20250313211643.860786-2...@en

[PATCH AUTOSEL 6.15 018/110] drm/bridge: anx7625: change the gpiod_set_value API

2025-06-01 Thread Sasha Levin
From: Ayushi Makhija [ Upstream commit 50935044e58e563cdcfd556d62f27bc8744dd64e ] Use gpiod_set_value_cansleep() instead of gpiod_set_value() to fix the below call trace in the boot log: [5.690534] Call trace: [5.690536] gpiod_set_value+0x40/0xa4 [5.690540] anx7625_runtime_pm_resu

[PATCH AUTOSEL 6.15 056/110] drm/amdgpu: Disallow partition query during reset

2025-06-01 Thread Sasha Levin
From: Lijo Lazar [ Upstream commit 75f138db48c5c493f0ac198c2579d52fc6a4c4a0 ] Reject queries to get current partition modes during reset. Also, don't accept sysfs interface requests to switch compute partition mode while in reset. Signed-off-by: Lijo Lazar Reviewed-by: Hawking Zhang Reviewed-

[PATCH AUTOSEL 6.15 051/110] drm/amd/display: Fix Vertical Interrupt definitions for dcn32, dcn401

2025-06-01 Thread Sasha Levin
From: Dillon Varone [ Upstream commit e8cc149ed906a371a5962ff8065393bae28165c9 ] [WHY&HOW] - VUPDATE_NO_LOCK should be used in place of VUPDATE always - Add VERTICAL_INTERRUPT1 and VERTICAL_INTERRUPT2 definitions Reviewed-by: Aric Cyr Signed-off-by: Dillon Varone Signed-off-by: Fangzhi Zuo T

[PATCH AUTOSEL 6.15 043/110] drm/amdgpu/gfx7: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit be7652c23d833d1ab2c67b16e173b1a4e69d1ae6 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.15 044/110] drm/xe: Use copy_from_user() instead of __copy_from_user()

2025-06-01 Thread Sasha Levin
From: Harish Chegondi [ Upstream commit aef87a5fdb5117eafb498ac4fc25e9f26f630f45 ] copy_from_user() has more checks and is more safer than __copy_from_user() Suggested-by: Kees Cook Signed-off-by: Harish Chegondi Reviewed-by: Matthew Brost Reviewed-by: Ashutosh Dixit Signed-off-by: Ashutosh

[PATCH AUTOSEL 6.15 042/110] drm/ttm/tests: fix incorrect assert in ttm_bo_unreserve_bulk()

2025-06-01 Thread Sasha Levin
From: Qasim Ijaz [ Upstream commit 878516a9e62cd220379e511d43dcf58df3a6ca9f ] In the ttm_bo_unreserve_bulk() test function, resv is allocated using kunit_kzalloc(), but the subsequent assertion mistakenly verifies the ttm_dev pointer instead of the resv pointer. Fix the assertion to properly ve

[PATCH AUTOSEL 6.15 055/110] drm/amdgpu: fix MES GFX mask

2025-06-01 Thread Sasha Levin
From: Arvind Yadav [ Upstream commit 9d3afcb7b9f950b9b7c58ceeeb9e71f3476e69ed ] Current MES GFX mask prevents FW to enable oversubscription. This patch does the following: - Fixes the mask values and adds a description for the same - Removes the central mask setup and makes it IP specific, as it

[PATCH AUTOSEL 6.15 037/110] drm/amdgpu/gfx10: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 683308af030cd9b8d3f1de5cbc1ee51788878feb ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.15 049/110] drm/amd/display: Update IPS sequential_ono requirement checks

2025-06-01 Thread Sasha Levin
From: Ovidiu Bunea [ Upstream commit b4db797117ceba88ba405a080811369418104304 ] [why & how] ASICs that require special RCG/PG programming are determined based on hw_internal_rev. Update these checks to properly include all such ASICs. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Ovidiu Bune

[PATCH AUTOSEL 6.15 041/110] drm/amd/display: fix zero value for APU watermark_c

2025-06-01 Thread Sasha Levin
From: Charlene Liu [ Upstream commit d5a7fdc88a2d64242d959942cbd0e1499ebb9806 ] [why] the guard of is_apu not in sync, caused no watermark_c output. Reviewed-by: Ovidiu Bunea Signed-off-by: Charlene Liu Signed-off-by: Aurabindo Pillai Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher S

[PATCH AUTOSEL 6.15 064/110] drm/amd/pm: Reset SMU v13.0.x custom settings

2025-06-01 Thread Sasha Levin
From: Lijo Lazar [ Upstream commit 923406e74ec66364b829b7f8b6b67d46200567a6 ] On SMU v13.0.2 and SMU v13.0.6 variants user may choose custom min/max clocks in manual perf mode. Those custom min/max values need to be reset once user switches to auto or restores default settings. Otherwise, they m

[PATCH AUTOSEL 6.15 059/110] drm/amdgpu/gfx8: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit c8b8d7a4f1c5cdfbd61d75302fb3e3cdefb1a7ab ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.15 075/110] drm/rockchip: vop2: Make overlay layer select register configuration take effect by vsync

2025-06-01 Thread Sasha Levin
From: Andy Yan [ Upstream commit c5996e4ab109c8bb5541453b20647eaaf9350f41 ] Because the layer/window enable/disable is take effect by vsync, if the overlay configuration of these layers does not follow vsync and takes effect immediately instead, when multiple layers are dynamically enable/disabl

[PATCH AUTOSEL 6.15 069/110] drm/amdkfd: Set SDMA_RLCx_IB_CNTL/SWITCH_INSIDE_IB

2025-06-01 Thread Sasha Levin
From: Amber Lin [ Upstream commit ab9fcc6362e0699fc1150aa1d8503c40fce2c1e1 ] When submitting MQD to CP, set SDMA_RLCx_IB_CNTL/SWITCH_INSIDE_IB bit so it'll allow SDMA preemption if there is a massive command buffer of long-running SDMA commands. Signed-off-by: Amber Lin Acked-by: Alex Deucher

[PATCH AUTOSEL 6.1 33/58] drm/msm/dpu: don't select single flush for active CTL blocks

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit e93eee524bb78f3ee4b78654d0083382f98b3d23 ] In case of ACTIVE CTLs, a single CTL is being used for flushing all INTF blocks. Don't skip programming the CTL on those targets. Tested-by: Neil Armstrong # on SM8550-QRD Signed-off-by: Dmitry Baryshkov Patch

[PATCH AUTOSEL 6.12 57/93] drm/msm/dpu: don't select single flush for active CTL blocks

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit e93eee524bb78f3ee4b78654d0083382f98b3d23 ] In case of ACTIVE CTLs, a single CTL is being used for flushing all INTF blocks. Don't skip programming the CTL on those targets. Tested-by: Neil Armstrong # on SM8550-QRD Signed-off-by: Dmitry Baryshkov Patch

[PATCH AUTOSEL 5.4 03/22] drm/bridge: analogix_dp: Add irq flag IRQF_NO_AUTOEN instead of calling disable_irq()

2025-06-01 Thread Sasha Levin
From: Damon Ding [ Upstream commit efab13e7d13a641a22c7508cde6e1a5285161944 ] The IRQF_NO_AUTOEN can be used for the drivers that don't want interrupts to be enabled automatically via devm_request_threaded_irq(). Using this flag can provide be more robust compared to the way of calling disable_i

[PATCH AUTOSEL 6.6 05/66] drm/amd/display: DCN32 null data check

2025-06-01 Thread Sasha Levin
From: Yihan Zhu [ Upstream commit c9646e5a7e01c3ede286ec5edd4fcb2e1e80261d ] [WHY & HOW] Avoid null curve data structure used in the cm block for the potential issue. Reviewed-by: Charlene Liu Signed-off-by: Yihan Zhu Signed-off-by: Zaeem Mohamed Tested-by: Mark Broadworth Signed-off-by: Al

[PATCH AUTOSEL 6.6 13/66] drm/msm/hdmi: add runtime PM calls to DDC transfer function

2025-06-01 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit 531b4e2c206e5f7dead04d9da84dfa693ac57481 ] We must be sure that the HDMI controller is powered on, while performing the DDC transfer. Add corresponding runtime PM calls to msm_hdmi_i2c_xfer(). Reviewed-by: Jessica Zhang Signed-off-by: Dmitry Baryshkov

[PATCH AUTOSEL 6.6 19/66] drm/amd/display: Do Not Consider DSC if Valid Config Not Found

2025-06-01 Thread Sasha Levin
From: Fangzhi Zuo [ Upstream commit 146a4429b5674b7520a96aea34233949731c6086 ] [why] In the mode validation, mst dsc is considered for bw calculation after common dsc config is determined. Currently it considered common dsc config is found if max and min target bpp are non zero which is not accu

[PATCH AUTOSEL 6.6 18/66] drm/msm/a6xx: Increase HFI response timeout

2025-06-01 Thread Sasha Levin
From: Akhil P Oommen [ Upstream commit 5f02f5e78ec9688e29b6857813185b1181796abe ] When ACD feature is enabled, it triggers some internal calibrations which result in a pretty long delay during the first HFI perf vote. So, increase the HFI response timeout to match the downstream driver. Signed-

[PATCH AUTOSEL 6.6 25/66] drm/amdgpu/gfx7: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit be7652c23d833d1ab2c67b16e173b1a4e69d1ae6 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.6 17/66] drm/amd/display: Skip to enable dsc if it has been off

2025-06-01 Thread Sasha Levin
From: Paul Hsieh [ Upstream commit 8b8a602c985e99074fa1d5233cd224b7bcfb9df2 ] [Why] It makes DSC enable when we commit the stream which need keep power off.And then it will skip to disable DSC if pipe reset at this situation as power has been off. It may cause the DSC unexpected enable on the pi

[PATCH AUTOSEL 6.6 22/66] drm: panel-orientation-quirks: Add ZOTAC Gaming Zone

2025-06-01 Thread Sasha Levin
From: Vicki Pfau [ Upstream commit 96c85e428ebaeacd2c640eba075479ab92072ccd ] Add a panel orientation quirk for the ZOTAC Gaming Zone handheld gaming device. Signed-off-by: Vicki Pfau Reviewed-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20250313211643.860786-2...@en

[PATCH AUTOSEL 6.6 21/66] drm/amdgpu/gfx10: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 683308af030cd9b8d3f1de5cbc1ee51788878feb ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.6 01/66] drm/amdgpu/gfx6: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 8307ebc15c1ea98a8a0b7837af1faa6c01514577 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Now let me understand what the bug is.

[PATCH AUTOSEL 6.6 10/66] drm/bridge: anx7625: change the gpiod_set_value API

2025-06-01 Thread Sasha Levin
From: Ayushi Makhija [ Upstream commit 50935044e58e563cdcfd556d62f27bc8744dd64e ] Use gpiod_set_value_cansleep() instead of gpiod_set_value() to fix the below call trace in the boot log: [5.690534] Call trace: [5.690536] gpiod_set_value+0x40/0xa4 [5.690540] anx7625_runtime_pm_resu

[PATCH AUTOSEL 6.6 15/66] drm/amd/display: Add NULL pointer checks in dm_force_atomic_commit()

2025-06-01 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 3f397cd203f247879c2f1a061e90d4c8d23655de ] This commit updates the dm_force_atomic_commit function to replace the usage of PTR_ERR_OR_ZERO with IS_ERR for checking error states after retrieving the Connector (drm_atomic_get_connector_state), CRTC (drm

[PATCH AUTOSEL 6.6 11/66] drm/amdgpu/gfx11: fix CSIB handling

2025-06-01 Thread Sasha Levin
From: Alex Deucher [ Upstream commit a9a8bccaa3ba64d509cf7df387cf0b5e1cd06499 ] We shouldn't return after the last section. We need to update the rest of the CSIB. Reviewed-by: Rodrigo Siqueira Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- **YES** This commit should be backport

[PATCH AUTOSEL 6.6 06/66] drm/bridge: analogix_dp: Add irq flag IRQF_NO_AUTOEN instead of calling disable_irq()

2025-06-01 Thread Sasha Levin
From: Damon Ding [ Upstream commit efab13e7d13a641a22c7508cde6e1a5285161944 ] The IRQF_NO_AUTOEN can be used for the drivers that don't want interrupts to be enabled automatically via devm_request_threaded_irq(). Using this flag can provide be more robust compared to the way of calling disable_i

[PATCH AUTOSEL 6.14 073/102] drm/panel: simple: Add POWERTIP PH128800T004-ZZA01 panel entry

2025-06-01 Thread Sasha Levin
From: Antonin Godard [ Upstream commit 6374a1005f20c1c2f7bbcc1bc735c2be4910a685 ] Add support for the POWERTIP PH128800T004-ZZA01 10.1" (1280x800) LCD-TFT panel. Its panel description is very much like the POWERTIP PH128800T006-ZHC01 configured below this one, only its timings are different. Si

[PATCH AUTOSEL 6.14 061/102] drm/amd/display: Restructure DMI quirks

2025-06-01 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit de6485e3df24170d71706d6f2c55a496443c3803 ] [Why] DMI quirks are relatively big code that makes amdgpu_dm 200 lines larger. [How] Move DMI quirks into a dedicated source file and make all quirks variables for `struct amdgpu_display_manager`. Reviewed-by

[PATCH AUTOSEL 6.14 029/102] drm/amd/display: Add NULL pointer checks in dm_force_atomic_commit()

2025-06-01 Thread Sasha Levin
From: Srinivasan Shanmugam [ Upstream commit 3f397cd203f247879c2f1a061e90d4c8d23655de ] This commit updates the dm_force_atomic_commit function to replace the usage of PTR_ERR_OR_ZERO with IS_ERR for checking error states after retrieving the Connector (drm_atomic_get_connector_state), CRTC (drm

[PATCH AUTOSEL 6.14 064/102] drm/amdkfd: Set SDMA_RLCx_IB_CNTL/SWITCH_INSIDE_IB

2025-06-01 Thread Sasha Levin
From: Amber Lin [ Upstream commit ab9fcc6362e0699fc1150aa1d8503c40fce2c1e1 ] When submitting MQD to CP, set SDMA_RLCx_IB_CNTL/SWITCH_INSIDE_IB bit so it'll allow SDMA preemption if there is a massive command buffer of long-running SDMA commands. Signed-off-by: Amber Lin Acked-by: Alex Deucher

  1   2   3   >