[PATCH v3] drm/amd/amdgpu: Update RLC_SPM_MC_CNT by ring wreg

2024-01-12 Thread YuanShang
[Why] RLC_SPM_MC_CNTL can not updated by MMIO since MMIO protection is enabled during runtime in guest machine. [How] Submit command of wreg in amdgpu ring to update RLC_SPM_MC_CNT. Signed-off-by: YuanShang --- drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_v

[linux-next:master] BUILD REGRESSION 8d04a7e2ee3fd6aabb8096b00c64db0d735bc874

2024-01-12 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 8d04a7e2ee3fd6aabb8096b00c64db0d735bc874 Add linux-next specific files for 20240112 Error/Warning: (recently discovered and may have been fixed) WARNING: modpost: vmlinux: section mismatch in

RE: [PATCH 1/2] drm/amdgpu: check PS, WS index

2024-01-12 Thread Deucher, Alexander
[Public] > -Original Message- > From: amd-gfx On Behalf Of > Alexander > Sent: Thursday, January 11, 2024 10:05 AM > To: amd-gfx@lists.freedesktop.org > Cc: Alexander Richards > Subject: [PATCH 1/2] drm/amdgpu: check PS, WS index > > From: Alexander Richards > > Theoretically, it would

[pull] amdgpu, amdkfd drm-fixes-6.8

2024-01-12 Thread Alex Deucher
Hi Dave, Sima, Fixes for 6.8. The following changes since commit e54478fbdad20f2c58d0a4f99d01299ed8e7fe9c: Merge tag 'amd-drm-next-6.8-2024-01-05' of https://gitlab.freedesktop.org/agd5f/linux into drm-next (2024-01-09 09:07:50 +1000) are available in the Git repository at: https://gitla

[PATCH 4/6] drm/amdgpu: remove amdgpu_connector_edid() and stop using edid_blob_ptr

2024-01-12 Thread Jani Nikula
amdgpu_connector_edid() copies the EDID from edid_blob_ptr as a side effect if amdgpu_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using it.

[PATCH 3/6] drm/radeon: remove radeon_connector_edid() and stop using edid_blob_ptr

2024-01-12 Thread Jani Nikula
radeon_connector_edid() copies the EDID from edid_blob_ptr as a side effect if radeon_connector->edid isn't initialized. However, everywhere that the returned EDID is used, the EDID should have been set beforehands. Only the drm EDID code should look at the EDID property, anyway, so stop using it.

[PATCH 2/6] drm/radeon: convert to using is_hdmi and has_audio from display info

2024-01-12 Thread Jani Nikula
Prefer the parsed results for is_hdmi and has_audio in display info over calling drm_detect_hdmi_monitor() and drm_detect_monitor_audio(), respectively. Cc: Alex Deucher Cc: Christian König Cc: Pan, Xinhui Cc: amd-gfx@lists.freedesktop.org Signed-off-by: Jani Nikula --- drivers/gpu/drm/radeon

RE: [PATCH 00/19] DC Patches January 10, 2024

2024-01-12 Thread Wheeler, Daniel
[Public] Hi all, This week this patchset was tested on the following systems: * Lenovo ThinkBook T13s Gen4 with AMD Ryzen 5 6600U * MSI Gaming X Trio RX 6800 * Gigabyte Gaming OC RX 7900 XTX These systems were tested on the following display/connection types: * eD

Re: [PATCH 3/6] drm/amdgpu: prefer snprintf over sprintf

2024-01-12 Thread Alex Deucher
On Wed, Jan 10, 2024 at 12:39 PM Jani Nikula wrote: > > This will trade the W=1 warning -Wformat-overflow to > -Wformat-truncation. This lets us enable -Wformat-overflow subsystem > wide. > > Cc: Alex Deucher > Cc: Christian König > Cc: Pan, Xinhui > Cc: amd-gfx@lists.freedesktop.org > Signed-o

Re: [PATCH 0/3] Update LLVM Phabricator and Bugzilla links

2024-01-12 Thread Alex Deucher
On Tue, Jan 9, 2024 at 5:26 PM Nathan Chancellor wrote: > > This series updates all instances of LLVM Phabricator and Bugzilla links > to point to GitHub commits directly and LLVM's Bugzilla to GitHub issue > shortlinks respectively. > > I split up the Phabricator patch into BPF selftests and the

Re: [PATCH] drm/amdkfd: reserve the BO before validating it

2024-01-12 Thread Francis, David
[AMD Official Use Only - General] On 2024-01-11 11:19, Felix Kuehling wrote: > On 2024-01-11 02:22, Lang Yu wrote: >> Fixes: 410f08516e0f ("drm/amdkfd: Move dma unmapping after TLB flush") >> >> [ 41.708711] WARNING: CPU: 0 PID: 1463 at >> drivers/gpu/drm/ttm/ttm_bo.c:846 ttm_bo_validate+0x146/0

Re: [PATCH 3/6] drm/amdgpu: prefer snprintf over sprintf

2024-01-12 Thread Jani Nikula
.git.jani.nikula%40intel.com > patch subject: [PATCH 3/6] drm/amdgpu: prefer snprintf over sprintf > config: sparc64-allmodconfig > (https://download.01.org/0day-ci/archive/20240112/202401121126.i9vgrvmb-...@intel.com/config) > compiler: sparc64-linux-gcc (GCC) 13.2.0 > reproduce

[bug report] drm/amdgpu: Auto-validate DMABuf imports in compute VMs

2024-01-12 Thread Dan Carpenter
Hello Felix Kuehling, This is a semi-automatic email about new static checker warnings. drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:1480 amdgpu_vm_handle_moved() warn: variable dereferenced before check 'bo_va->base.bo' (see line 1453) drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 1452

[PATCH] drm/amdgpu: fix return value in aca_bank_hwip_is_matched()

2024-01-12 Thread Dan Carpenter
The aca_bank_hwip_is_matched() function is type bool. This error path return -EINVAL which is cast to true, but it should return false instead. Fixes: 22a4fa4709e3 ("drm/amdgpu: implement RAS ACA driver framework") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | 2 +-

Re: [PATCH] drm/amdgpu: Fix the null pointer when load rlc firmware

2024-01-12 Thread Deucher, Alexander
[Public] Acked-by: Alex Deucher From: Ma, Jun Sent: Friday, January 12, 2024 1:26 AM To: amd-gfx@lists.freedesktop.org ; Koenig, Christian ; Deucher, Alexander Cc: Ma, Jun Subject: [PATCH] drm/amdgpu: Fix the null pointer when load rlc firmware If the RLC fi

Failed to create a rescuer kthread for the amdgpu-reset-dev workqueue

2024-01-12 Thread Thomas Perrot
Hello, We are updating the kernel from the 6.1 to the 6.6 and we observe an amdgpu’s regression with Radeon RX580 8GB and SiFive Unmatched: “workqueue: Failed to create a rescuer kthread for wq 'amdgpu-reset- dev': -EINTR [drm:amdgpu_reset_create_reset_domain [amdgpu]] *ERROR* Failed to allocate w

Re: Failed to create a rescuer kthread for the amdgpu-reset-dev workqueue

2024-01-12 Thread Christian König
Well the driver load is interrupted for some reason. Have you set any timeout for modprobe? Regards, Christian. Am 12.01.24 um 09:11 schrieb Thomas Perrot: Hello, We are updating the kernel from the 6.1 to the 6.6 and we observe an amdgpu’s regression with Radeon RX580 8GB and SiFive Unmatche

[PATCH] drm/amdkfd: init drm_client with funcs hook

2024-01-12 Thread Flora Cui
otherwise drm_client_dev_unregister() would try to kfree(&adev->kfd.client). Signed-off-by: Flora Cui --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/am