Re: [PATCH] drm/amdgpu: Check BO's requested pinning domains against its preferred_domains

2022-07-12 Thread Alex Deucher
On Tue, Jul 12, 2022 at 3:28 AM Christian König wrote: > > Am 12.07.22 um 00:44 schrieb sunpeng...@amd.com: > > From: Leo Li > > > > When pinning a buffer, we should check to see if there are any > > additional restrictions imposed by bo->preferred_domains. This will > > prevent the BO from being

Re: [PATCH] drm/amdgpu: Check BO's requested pinning domains against its preferred_domains

2022-07-12 Thread Christian König
Am 12.07.22 um 00:44 schrieb sunpeng...@amd.com: From: Leo Li When pinning a buffer, we should check to see if there are any additional restrictions imposed by bo->preferred_domains. This will prevent the BO from being moved to an invalid domain when pinning. For example, this can happen if th

[PATCH] drm/amdgpu: Check BO's requested pinning domains against its preferred_domains

2022-07-11 Thread sunpeng.li
From: Leo Li When pinning a buffer, we should check to see if there are any additional restrictions imposed by bo->preferred_domains. This will prevent the BO from being moved to an invalid domain when pinning. For example, this can happen if the user requests to create a BO in GTT domain for di