[PATCH] drm/amdgpu: Fix an oops with GTT | VRAM allocation

2022-12-10 Thread Luben Tuikov
Fix a kernel oops in amdgpu_bo_validate_size() when we allow allocation with GTT | VRAM domains set. The problem is that we try to dereference a non-existing TTM resource manager of the wanted type, GTT. In this allocation both GTT and VRAM are set. The call takes place in amdgpu_ttm_reserve_tmr()

Re: [PATCH 1/4] drm/amdgpu: Introduce gfx software ring (v9)

2022-12-10 Thread Michel Dänzer
On 11/29/22 08:10, jiadong@amd.com wrote: > From: "Jiadong.Zhu" > > The software ring is created to support priority context while there is only > one hardware queue for gfx. > > Every software ring has its fence driver and could be used as an ordinary ring > for the GPU scheduler. > Multipl

Re: [PATCH 1/9] drm/amdgpu: generally allow over-commit during BO allocation

2022-12-10 Thread Christian König
Am 10.12.22 um 07:15 schrieb Felix Kuehling: On 2022-11-25 05:21, Christian König wrote: We already fallback to a dummy BO with no backing store when we allocate GDS,GWS and OA resources and to GTT when we allocate VRAM. Drop all those workarounds and generalize this for GTT as well. This fixes

Re: Screen corruption using radeon kernel driver

2022-12-10 Thread Mikhail Krylov
On Wed, Nov 30, 2022 at 11:07:32AM -0500, Alex Deucher wrote: > On Wed, Nov 30, 2022 at 10:42 AM Robin Murphy wrote: > > > > On 2022-11-30 14:28, Alex Deucher wrote: > > > On Wed, Nov 30, 2022 at 7:54 AM Robin Murphy wrote: > > >> > > >> On 2022-11-29 17:11, Mikhail Krylov wrote: > > >>> On Tue,

Re: [PATCH 1/9] drm/amdgpu: generally allow over-commit during BO allocation

2022-12-10 Thread Felix Kuehling
Am 2022-12-10 um 09:12 schrieb Christian König: Am 10.12.22 um 07:15 schrieb Felix Kuehling: On 2022-11-25 05:21, Christian König wrote: We already fallback to a dummy BO with no backing store when we allocate GDS,GWS and OA resources and to GTT when we allocate VRAM. Drop all those workaround

Re: Screen corruption using radeon kernel driver

2022-12-10 Thread Luben Tuikov
On 2022-12-10 10:32, Mikhail Krylov wrote: > On Wed, Nov 30, 2022 at 11:07:32AM -0500, Alex Deucher wrote: >> On Wed, Nov 30, 2022 at 10:42 AM Robin Murphy wrote: >>> >>> On 2022-11-30 14:28, Alex Deucher wrote: On Wed, Nov 30, 2022 at 7:54 AM Robin Murphy wrote: > > On 2022-11-29 17