[PATCH 0/6] Usermode queue fencing synchronization

2023-02-26 Thread Arunpravin Paneer Selvam
This patch series introduces fence drivers for usermode graphics queues synchronization. The idea here is, we insert a hardware fence signal command at the end of user process graphics rendering commands and the creates a fence using the current wptr. On the Otherhand, a process required to

[PATCH 1/6] drm/amdgpu: Implement a new 64bit sequence memory driver

2023-02-26 Thread Arunpravin Paneer Selvam
Developed a new driver which allocates a 64bit memory on each request in sequence order. At the moment, user queue fence memory is the main consumer of this seq64 driver. v2: Worked on review comments from Christian for the following modifications - Move driver name from "semaphore" to

[PATCH 4/6] drm/amdgpu: UAPI headers for userqueue Secure semaphore

2023-02-26 Thread Arunpravin Paneer Selvam
- Add UAPI header support for userqueue Secure semaphore v2: (Christian) - Add bo handles,bo flags and padding fields. - Include value/va in a combined array. Signed-off-by: Alex Deucher Signed-off-by: Arunpravin Paneer Selvam --- .../amd/amdgpu/amdgpu_userqueue_mqd_gfx_v11.c |

[PATCH 5/6] drm/amdgpu: Implement userqueue signal/wait IOCTL functions

2023-02-26 Thread Arunpravin Paneer Selvam
This patch introduces new IOCTL for userqueue secure semaphore. The signal IOCTL called from userspace application creates a drm syncobj and array of bo GEM handles and passed in as parameter to the driver to install the fence into it. The wait IOCTL gets an array of drm syncobjs, finds the

[PATCH 3/6] drm/amdgpu: Add mqd support for the fence address

2023-02-26 Thread Arunpravin Paneer Selvam
- Add a field in struct v11_gfx_mqd for userqueue fence address. - Assign fence gpu VA address to the userqueue mqd fence address fields. v2: Remove the mask and replace with lower_32_bits (Christian) Signed-off-by: Arunpravin Paneer Selvam Reviewed-by: Christian König ---

[PATCH 6/6] drm/amdgpu: Enable userqueue fence interrupt handling support

2023-02-26 Thread Arunpravin Paneer Selvam
- Added support to handle the userqueue protected fence signal hardware interrupt. - Create a hash table which maps va address to the fence driver. Signed-off-by: Arunpravin Paneer Selvam --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH 2/6] drm/amdgpu: Implement a new userqueue fence driver

2023-02-26 Thread Arunpravin Paneer Selvam
Developed a userqueue fence driver for the userqueue process shared BO synchronization. Create a dma fence having write pointer as the seqno and allocate a seq64 memory for each user queue process and feed this memory address into the firmware/hardware, thus the firmware writes the read pointer

[PATCH] drm/amdgpu: fix ttm_bo calltrace warning in psp_hw_fini

2023-02-26 Thread Horatio Zhang
The call trace occurs when the amdgpu is removed after the mode1 reset. During mode1 reset, from suspend to resume, there is no need to reinitialize the ta firmware buffer which caused the bo pin_count increase redundantly. [ 489.885525] Call Trace: [ 489.885525] [ 489.885526]

[PATCH AUTOSEL 5.4 01/15] drm/amd/display: Fix potential null-deref in dm_resume

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 7a7175a2cd84b7874bebbf8e59f134557a34161b ] [Why] Fixing smatch error: dm_resume() error: we previously assumed 'aconnector->dc_link' could be null [How] Check if dc_link null at the beginning of the loop, so further checks can be dropped. Reported-by: kernel

[PATCH AUTOSEL 5.4 04/15] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa

[PATCH AUTOSEL 4.19 01/10] drm/amd/display: Fix potential null-deref in dm_resume

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 7a7175a2cd84b7874bebbf8e59f134557a34161b ] [Why] Fixing smatch error: dm_resume() error: we previously assumed 'aconnector->dc_link' could be null [How] Check if dc_link null at the beginning of the loop, so further checks can be dropped. Reported-by: kernel

[PATCH AUTOSEL 4.19 02/10] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa

[PATCH AUTOSEL 4.14 1/9] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa

[PATCH AUTOSEL 5.10 05/19] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa

[PATCH AUTOSEL 5.15 09/25] drm: amd: display: Fix memory leakage

2023-02-26 Thread Sasha Levin
From: Konstantin Meskhidze [ Upstream commit 6b8701be1f66064ca72733c5f6e13748cdbf8397 ] This commit fixes memory leakage in dc_construct_ctx() function. Signed-off-by: Konstantin Meskhidze Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc.c |

Re: [PATCH 2/2] drm/amdgpu: Synchronize after mapping into a compute VM

2023-02-26 Thread Chen, Xiaogang
On 2/24/2023 5:36 PM, Felix Kuehling wrote: Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. Compute VMs use user mode queues for command submission. They cannot use a CS ioctl to synchronize with pending

RE: [PATCH] drm/amdgpu: fix ttm_bo calltrace warning in psp_hw_fini

2023-02-26 Thread Chen, Guchun
Reviewed-by: Guchun Chen Regards, Guchun -Original Message- From: Horatio Zhang Sent: Monday, February 27, 2023 10:14 AM To: amd-gfx@lists.freedesktop.org Cc: Chen, Guchun ; Xu, Feifei ; Yao, Longlong ; Zhang, Horatio ; Yao, Longlong Subject: [PATCH] drm/amdgpu: fix ttm_bo

[PATCH AUTOSEL 5.10 06/19] drm: amd: display: Fix memory leakage

2023-02-26 Thread Sasha Levin
From: Konstantin Meskhidze [ Upstream commit 6b8701be1f66064ca72733c5f6e13748cdbf8397 ] This commit fixes memory leakage in dc_construct_ctx() function. Signed-off-by: Konstantin Meskhidze Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc.c |

[PATCH AUTOSEL 5.10 01/19] drm/amd/display: Fix potential null-deref in dm_resume

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 7a7175a2cd84b7874bebbf8e59f134557a34161b ] [Why] Fixing smatch error: dm_resume() error: we previously assumed 'aconnector->dc_link' could be null [How] Check if dc_link null at the beginning of the loop, so further checks can be dropped. Reported-by: kernel

RE: [PATCH] drm/amd: use drm_kms_helper_poll_fini in amdgpu_device_suspend to avoid warning

2023-02-26 Thread Chen, Guchun
Hi Bert, I mischecked the code base. After checking the code on linux-next branch after commit " drm/probe_helper: sort out poll_running vs poll_enabled ", I guess below change in drm_probe_helper.c may help: drm_kms_helper_poll_disable() { .. +if (dev->mode_config.poll_enabled) +

[PATCH] drm/amdgpu: Stop clearing kiq position during fini

2023-02-26 Thread Yaoyao Lei
Do not clear kiq position in RLC_CP_SCHEDULER so that CP could perform IDLE-SAVE after VF fini. Otherwise it could cause GFX hang if another Win guest is rendering. Signed-off-by: Yaoyao Lei --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 14 +++--- 1 file changed, 3 insertions(+), 11

[PATCH AUTOSEL 6.2 04/60] drm/amd/display: Revert Reduce delay when sink device not able to ACK 00340h write

2023-02-26 Thread Sasha Levin
From: Ian Chen [ Upstream commit 639f6ad6df7f47db48b59956b469a6917a136afb ] [WHY] It causes regression AMD source will not write DPCD 340. Reviewed-by: Wayne Lin Acked-by: Jasdeep Dhillon Signed-off-by: Ian Chen Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.2 05/60] drm/amd/display: Fix potential null-deref in dm_resume

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 7a7175a2cd84b7874bebbf8e59f134557a34161b ] [Why] Fixing smatch error: dm_resume() error: we previously assumed 'aconnector->dc_link' could be null [How] Check if dc_link null at the beginning of the loop, so further checks can be dropped. Reported-by: kernel

[PATCH AUTOSEL 6.2 03/60] drm/amd/display: Reduce expected sdp bandwidth for dcn321

2023-02-26 Thread Sasha Levin
From: Dillon Varone [ Upstream commit 6b81090d6d4cc0fd818c9ec9dbb6906f921ad396 ] [Description] Modify soc BB to reduce expected sdp bandwidth and align with measurements to fix underflow issues. Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Dillon Varone Signed-off-by: Alex

[PATCH AUTOSEL 6.1 37/58] Revert "drm/amdgpu: TA unload messages are not actually sent to psp when amdgpu is uninstalled"

2023-02-26 Thread Sasha Levin
From: Vitaly Prosyak [ Upstream commit 39934d3ed5725c5e3570ed1b67f612f1ea60ce03 ] This reverts commit fac53471d0ea9693d314aa2df08d62b2e7e3a0f8. The following change: move the drm_dev_unplug call after amdgpu_driver_unload_kms in amdgpu_pci_remove. The reason is the following: amdgpu_pci_remove

[PATCH AUTOSEL 6.1 38/58] drm/amd/display: fix FCLK pstate change underflow

2023-02-26 Thread Sasha Levin
From: Vladimir Stempen [ Upstream commit 972243f973eb0821084e5833d5f7f4ed025f42da ] [Why] Currently we set FCLK p-state change watermark calculated based on dummy p-state latency when UCLK p-state is not supported [How] Calculate FCLK p-state change watermark based on on FCLK pstate change

[PATCH AUTOSEL 6.1 28/58] drm/amd/display: Set hvm_enabled flag for S/G mode

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 40e9f3f067bc6fb47b878f8ba0a9cc7b93abbf49 ] [Why] After enabling S/G on dcn314 a screen corruption may be observed. HostVM flag should be set in S/G mode to be included in DML calculations. [How] In S/G mode gpu_vm_support flag is set. Use its value to init

[PATCH AUTOSEL 6.1 44/58] drm/amd/display: Do not set DRR on pipe commit

2023-02-26 Thread Sasha Levin
From: Wesley Chalmers [ Upstream commit 4f1b5e739dfd1edde33329e3f376733a131fb1ff ] [WHY] Writing to DRR registers such as OTG_V_TOTAL_MIN on the same frame as a pipe commit can cause underflow. [HOW] Defer all DPP adjustment requests till optimized_required is false. Reviewed-by: Jun Lei

[PATCH AUTOSEL 6.2 09/60] drm/amd/display: Defer DIG FIFO disable after VID stream enable

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 2d90a1c054831338d57b39aec4d273cf3e867590 ] [Why] On some monitors we see a brief flash of corruption during the monitor disable sequence caused by FIFO being disabled in the middle of an active DP stream. [How] Wait until DP vid stream is disabled

[PATCH AUTOSEL 6.2 10/60] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa

[PATCH AUTOSEL 6.2 15/60] drm/amd: Avoid ASSERT for some message failures

2023-02-26 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 3e5019ee67760cd61b2a5fd605e1289c2f92d983 ] On DCN314 when resuming from s0i3 an ASSERT is shown indicating that `VBIOSSMC_MSG_SetHardMinDcfclkByFreq` returned `VBIOSSMC_Result_Failed`. This isn't a driver bug; it's a BIOS/configuration bug. To make

[PATCH AUTOSEL 6.2 16/60] drm: amd: display: Fix memory leakage

2023-02-26 Thread Sasha Levin
From: Konstantin Meskhidze [ Upstream commit 6b8701be1f66064ca72733c5f6e13748cdbf8397 ] This commit fixes memory leakage in dc_construct_ctx() function. Signed-off-by: Konstantin Meskhidze Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc.c |

[PATCH AUTOSEL 6.2 11/60] drm/amd: Avoid BUG() for case of SRIOV missing IP version

2023-02-26 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 93fec4f8c158584065134b4d45e875499bf517c8 ] No need to crash the kernel. AMDGPU will now fail to probe. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.2 17/60] drm/amd/display: fix mapping to non-allocated address

2023-02-26 Thread Sasha Levin
From: Brandon Syu [ Upstream commit 9190d4a263264eabf715f5fc1827da45e3fdc247 ] [Why] There is an issue mapping non-allocated location of memory. It would allocate gpio registers from an array out of bounds. [How] Patch correct numbers of bounds for using. Tested-by: Daniel Wheeler

[PATCH AUTOSEL 6.2 12/60] drm/amdkfd: Page aligned memory reserve size

2023-02-26 Thread Sasha Levin
From: Philip Yang [ Upstream commit 0c2dece8fb541ab07b68c3312a1065fa9c927a81 ] Use page aligned size to reserve memory usage because page aligned TTM BO size is used to unreserve memory usage, otherwise no page aligned size causes memory usage accounting unbalanced. Change vram_used definition

[PATCH AUTOSEL 6.2 45/60] drm/amd/display: Do not set DRR on pipe commit

2023-02-26 Thread Sasha Levin
From: Wesley Chalmers [ Upstream commit 4f1b5e739dfd1edde33329e3f376733a131fb1ff ] [WHY] Writing to DRR registers such as OTG_V_TOTAL_MIN on the same frame as a pipe commit can cause underflow. [HOW] Defer all DPP adjustment requests till optimized_required is false. Reviewed-by: Jun Lei

[PATCH AUTOSEL 6.2 38/60] Revert "drm/amdgpu: TA unload messages are not actually sent to psp when amdgpu is uninstalled"

2023-02-26 Thread Sasha Levin
From: Vitaly Prosyak [ Upstream commit 39934d3ed5725c5e3570ed1b67f612f1ea60ce03 ] This reverts commit fac53471d0ea9693d314aa2df08d62b2e7e3a0f8. The following change: move the drm_dev_unplug call after amdgpu_driver_unload_kms in amdgpu_pci_remove. The reason is the following: amdgpu_pci_remove

[PATCH AUTOSEL 6.2 28/60] drm/amd/display: Set hvm_enabled flag for S/G mode

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 40e9f3f067bc6fb47b878f8ba0a9cc7b93abbf49 ] [Why] After enabling S/G on dcn314 a screen corruption may be observed. HostVM flag should be set in S/G mode to be included in DML calculations. [How] In S/G mode gpu_vm_support flag is set. Use its value to init

[PATCH AUTOSEL 6.2 39/60] drm/amd/display: fix FCLK pstate change underflow

2023-02-26 Thread Sasha Levin
From: Vladimir Stempen [ Upstream commit 972243f973eb0821084e5833d5f7f4ed025f42da ] [Why] Currently we set FCLK p-state change watermark calculated based on dummy p-state latency when UCLK p-state is not supported [How] Calculate FCLK p-state change watermark based on on FCLK pstate change

[PATCH AUTOSEL 6.1 52/58] drm/amd/display: Disable HUBP/DPP PG on DCN314 for now

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit b7c67f72408b11b922f23f06c7df0f6743a2e89d ] [Why] The DMCUB implementation required to workaround corruption is not currently stable and may cause intermittent corruption or hangs. [How] Disable PG until the sequence is stable. Reviewed-by: Hansen

[PATCH AUTOSEL 6.1 45/58] drm/amd/display: Do not commit pipe when updating DRR

2023-02-26 Thread Sasha Levin
From: Wesley Chalmers [ Upstream commit 8f0d304d21b351d65e8c434c5399a40231876ba1 ] [WHY] DRR and Pipe cannot be updated on the same frame, or else underflow will occur. Reviewed-by: Jun Lei Acked-by: Qingqing Zhuo Signed-off-by: Wesley Chalmers Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 6.1 49/58] drm/amd/display: Move DCN314 DOMAIN power control to DMCUB

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit e383b12709e32d6494c948422070c2464b637e44 ] [Why] DOMAIN power gating control is now required to be done via firmware due to interlock with other power features. This is to avoid intermittent issues in the LB memories. [How] If the firmware supports

[PATCH AUTOSEL 6.1 50/58] drm/amd/display: Enable P-state validation checks for DCN314

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 37d184b548db0f64d4a878960b2c6988b38a3e7e ] [Why] To align with DCN31 behavior. This helps avoid p-state hangs in the case where underflow does occur. [How] Flip the bit to true. Reviewed-by: Hansen Dsouza Acked-by: Qingqing Zhuo Signed-off-by:

[PATCH AUTOSEL 6.1 17/58] drm/amd/display: fix mapping to non-allocated address

2023-02-26 Thread Sasha Levin
From: Brandon Syu [ Upstream commit 9190d4a263264eabf715f5fc1827da45e3fdc247 ] [Why] There is an issue mapping non-allocated location of memory. It would allocate gpio registers from an array out of bounds. [How] Patch correct numbers of bounds for using. Tested-by: Daniel Wheeler

[PATCH AUTOSEL 6.1 11/58] drm/amd: Avoid BUG() for case of SRIOV missing IP version

2023-02-26 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 93fec4f8c158584065134b4d45e875499bf517c8 ] No need to crash the kernel. AMDGPU will now fail to probe. Reviewed-by: Alex Deucher Reviewed-by: Lijo Lazar Signed-off-by: Mario Limonciello Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.1 12/58] drm/amdkfd: Page aligned memory reserve size

2023-02-26 Thread Sasha Levin
From: Philip Yang [ Upstream commit 0c2dece8fb541ab07b68c3312a1065fa9c927a81 ] Use page aligned size to reserve memory usage because page aligned TTM BO size is used to unreserve memory usage, otherwise no page aligned size causes memory usage accounting unbalanced. Change vram_used definition

[PATCH AUTOSEL 6.1 10/58] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa

[PATCH AUTOSEL 6.1 09/58] drm/amd/display: Defer DIG FIFO disable after VID stream enable

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 2d90a1c054831338d57b39aec4d273cf3e867590 ] [Why] On some monitors we see a brief flash of corruption during the monitor disable sequence caused by FIFO being disabled in the middle of an active DP stream. [How] Wait until DP vid stream is disabled

[PATCH AUTOSEL 6.1 15/58] drm/amd: Avoid ASSERT for some message failures

2023-02-26 Thread Sasha Levin
From: Mario Limonciello [ Upstream commit 3e5019ee67760cd61b2a5fd605e1289c2f92d983 ] On DCN314 when resuming from s0i3 an ASSERT is shown indicating that `VBIOSSMC_MSG_SetHardMinDcfclkByFreq` returned `VBIOSSMC_Result_Failed`. This isn't a driver bug; it's a BIOS/configuration bug. To make

[PATCH AUTOSEL 6.1 16/58] drm: amd: display: Fix memory leakage

2023-02-26 Thread Sasha Levin
From: Konstantin Meskhidze [ Upstream commit 6b8701be1f66064ca72733c5f6e13748cdbf8397 ] This commit fixes memory leakage in dc_construct_ctx() function. Signed-off-by: Konstantin Meskhidze Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc.c |

[PATCH AUTOSEL 6.2 46/60] drm/amd/display: Do not commit pipe when updating DRR

2023-02-26 Thread Sasha Levin
From: Wesley Chalmers [ Upstream commit 8f0d304d21b351d65e8c434c5399a40231876ba1 ] [WHY] DRR and Pipe cannot be updated on the same frame, or else underflow will occur. Reviewed-by: Jun Lei Acked-by: Qingqing Zhuo Signed-off-by: Wesley Chalmers Signed-off-by: Alex Deucher Signed-off-by:

[PATCH AUTOSEL 6.2 50/60] drm/amd/display: Move DCN314 DOMAIN power control to DMCUB

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit e383b12709e32d6494c948422070c2464b637e44 ] [Why] DOMAIN power gating control is now required to be done via firmware due to interlock with other power features. This is to avoid intermittent issues in the LB memories. [How] If the firmware supports

[PATCH AUTOSEL 6.2 53/60] drm/amd/display: Disable HUBP/DPP PG on DCN314 for now

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit b7c67f72408b11b922f23f06c7df0f6743a2e89d ] [Why] The DMCUB implementation required to workaround corruption is not currently stable and may cause intermittent corruption or hangs. [How] Disable PG until the sequence is stable. Reviewed-by: Hansen

[PATCH AUTOSEL 6.2 51/60] drm/amd/display: Enable P-state validation checks for DCN314

2023-02-26 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 37d184b548db0f64d4a878960b2c6988b38a3e7e ] [Why] To align with DCN31 behavior. This helps avoid p-state hangs in the case where underflow does occur. [How] Flip the bit to true. Reviewed-by: Hansen Dsouza Acked-by: Qingqing Zhuo Signed-off-by:

[PATCH AUTOSEL 6.1 04/58] drm/amd/display: Revert Reduce delay when sink device not able to ACK 00340h write

2023-02-26 Thread Sasha Levin
From: Ian Chen [ Upstream commit 639f6ad6df7f47db48b59956b469a6917a136afb ] [WHY] It causes regression AMD source will not write DPCD 340. Reviewed-by: Wayne Lin Acked-by: Jasdeep Dhillon Signed-off-by: Ian Chen Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 6.2 54/60] drm/amd/display: disable SubVP + DRR to prevent underflow

2023-02-26 Thread Sasha Levin
From: Aurabindo Pillai [ Upstream commit 80c6d6804f31451848a3956a70c2bcb1f07cfcb0 ] [Why] Temporarily disable SubVP+DRR since Xorg has an architectural limitation where freesync will not work in a multi monitor configuration. SubVP+DRR requires that freesync be working. Whether OS has variable

[PATCH AUTOSEL 6.1 05/58] drm/amd/display: Fix potential null-deref in dm_resume

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 7a7175a2cd84b7874bebbf8e59f134557a34161b ] [Why] Fixing smatch error: dm_resume() error: we previously assumed 'aconnector->dc_link' could be null [How] Check if dc_link null at the beginning of the loop, so further checks can be dropped. Reported-by: kernel

[PATCH AUTOSEL 6.1 03/58] drm/amd/display: Reduce expected sdp bandwidth for dcn321

2023-02-26 Thread Sasha Levin
From: Dillon Varone [ Upstream commit 6b81090d6d4cc0fd818c9ec9dbb6906f921ad396 ] [Description] Modify soc BB to reduce expected sdp bandwidth and align with measurements to fix underflow issues. Reviewed-by: Jun Lei Acked-by: Jasdeep Dhillon Signed-off-by: Dillon Varone Signed-off-by: Alex

[PATCH AUTOSEL 5.15 01/25] drm/amd/display: Revert Reduce delay when sink device not able to ACK 00340h write

2023-02-26 Thread Sasha Levin
From: Ian Chen [ Upstream commit 639f6ad6df7f47db48b59956b469a6917a136afb ] [WHY] It causes regression AMD source will not write DPCD 340. Reviewed-by: Wayne Lin Acked-by: Jasdeep Dhillon Signed-off-by: Ian Chen Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.15 02/25] drm/amd/display: Fix potential null-deref in dm_resume

2023-02-26 Thread Sasha Levin
From: Roman Li [ Upstream commit 7a7175a2cd84b7874bebbf8e59f134557a34161b ] [Why] Fixing smatch error: dm_resume() error: we previously assumed 'aconnector->dc_link' could be null [How] Check if dc_link null at the beginning of the loop, so further checks can be dropped. Reported-by: kernel

[PATCH AUTOSEL 5.15 06/25] drm/radeon: free iio for atombios when driver shutdown

2023-02-26 Thread Sasha Levin
From: Liwei Song [ Upstream commit 4773fadedca918faec443daaca5e4ea1c0ced144 ] Fix below kmemleak when unload radeon driver: unreferenced object 0x9f8608ede200 (size 512): comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s) hex dump (first 32 bytes): 00 00 00 00 c4 aa