Re: [PATCH 5/8] drm/amdkfd: Use PASID manager from KGD

2017-09-16 Thread Oded Gabbay
On Wed, Sep 13, 2017 at 2:05 AM, Felix Kuehling wrote: > Signed-off-by: Felix Kuehling > --- > drivers/gpu/drm/amd/amdkfd/kfd_module.c | 6 --- > drivers/gpu/drm/amd/amdkfd/kfd_pasid.c | 90 > ++--- > 2 files changed, 38 insertions(+), 58 deletions(-) > > diff --gi

Re: [PATCH 4/8] drm/amdkfd: Separate doorbell allocation from PASID

2017-09-16 Thread Oded Gabbay
On Wed, Sep 13, 2017 at 2:05 AM, Felix Kuehling wrote: > PASID management is moving into KGD. Limiting the PASID range to the > number of doorbell pages is no longer practical. > > Signed-off-by: Felix Kuehling > --- > drivers/gpu/drm/amd/amdkfd/kfd_device.c | 7 - > drivers/gpu/drm/amd/a

Re: [PATCH 3/8] drm/radeon: Add PASID manager for KFD

2017-09-16 Thread Oded Gabbay
On Wed, Sep 13, 2017 at 2:05 AM, Felix Kuehling wrote: > Signed-off-by: Felix Kuehling > --- > drivers/gpu/drm/radeon/radeon_kfd.c | 31 +++ > 1 file changed, 31 insertions(+) > > diff --git a/drivers/gpu/drm/radeon/radeon_kfd.c > b/drivers/gpu/drm/radeon/radeon_kfd.

Re: [PATCH 2/8] drm/amdgpu: Add PASID management

2017-09-16 Thread Oded Gabbay
On Wed, Sep 13, 2017 at 2:05 AM, Felix Kuehling wrote: > Allows assigning a PASID to a VM for identifying VMs involved in page > faults. The global PASID manager is also exported in the KFD > interface so that AMDGPU and KFD can share the PASID space. > > PASIDs of different sizes can be requested

Re: [PATCH] drm/amdgpu: Fix a bug in amdgpu_fill_buffer()

2017-09-16 Thread Christian König
Am 16.09.2017 um 01:18 schrieb Yong Zhao: When max_bytes is not 8 bytes aligned and bo size is larger than max_bytes, the last 8 bytes in a ttm node may be left unchanged. For example, on pre SDMA 4.0, max_bytes = 0x1f, and the bo size is 0x20, the problem will happen. This commit fixed t

Re: [PATCH] drm/radeon: properly initialize r600_audio_status() data

2017-09-16 Thread Christian König
Am 15.09.2017 um 22:06 schrieb Arnd Bergmann: The structure returned from r600_audio_status() is only partially initialized, and older gcc versions (4.3 and 4.4) warn about this: drivers/gpu/drm/radeon/r600_hdmi.c: In function 'r600_audio_status': drivers/gpu/drm/radeon/r600_hdmi.c:108: error: '

Re: [PATCH] drm/radeon: disable hard reset in hibernate for APUs

2017-09-16 Thread Christian König
Am 15.09.2017 um 20:22 schrieb Alex Deucher: Fixes a hibernation regression on APUs. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=191571 Fixes: 274ad65c9d02bdc (drm/radeon: hard reset r600 and newer GPU when hibernating.) Signed-off-by: Alex Deucher Acked-by: Christian König Cc: sta..