[PATCH 2/2] drm/amdgpu/umsch: reinitialize write pointer in hw init

2024-03-24 Thread Lang Yu
Otherwise the old one will be used during GPU reset. That's not expected. Signed-off-by: Lang Yu --- drivers/gpu/drm/amd/amdgpu/umsch_mm_v4_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/umsch_mm_v4_0.c b/drivers/gpu/drm/amd/amdgpu/umsch_mm_v4_0.c index 843

[PATCH 1/2] drm/amdgpu: use CPU to update VM during GPU reset

2024-03-24 Thread Lang Yu
drm sched is stopped and SDMA mode is not available, while CPU mode worked well in such a case. Use case, amdgpu_do_asic_reset amdgpu_device_ip_late_init umsch_mm_late_init umsch_mm_test amdgpu_vm_init Signed-off-by: Lang Yu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++-- 1 file changed, 2

Re: [PATCH] drm/amdgpu: fix deadlock while reading mqd from debugfs

2024-03-24 Thread Alex Deucher
On Sat, Mar 23, 2024 at 4:47 PM Sharma, Shashank wrote: > > > On 23/03/2024 15:52, Johannes Weiner wrote: > > On Thu, Mar 14, 2024 at 01:09:57PM -0400, Johannes Weiner wrote: > >> Hello, > >> > >> On Fri, Mar 08, 2024 at 12:32:33PM +0100, Christian König wrote: > >>> Am 07.03.24 um 23:07 schrieb J

Re: [PATCH] drm/amdgpu: fix deadlock while reading mqd from debugfs

2024-03-24 Thread Johannes Weiner
On Thu, Mar 14, 2024 at 01:09:57PM -0400, Johannes Weiner wrote: > Hello, > > On Fri, Mar 08, 2024 at 12:32:33PM +0100, Christian König wrote: > > Am 07.03.24 um 23:07 schrieb Johannes Weiner: > > > Lastly I went with an open loop instead of a memcpy() as I wasn't > > > sure if that memory is safe

Re: [PATCH] drm/amdgpu: always force full reset for SOC21

2024-03-24 Thread Friedrich Vock
On 24.03.24 01:52, Alex Deucher wrote: There are cases where soft reset seems to succeed, but does not, so always use mode1/2 for now. Does "for now" mean that a proper fix is being worked on/will appear later? Immediately falling back to full resets is a really bad experience, and it's especi