[PATCH] iommu/amd: flush IOTLB for specific domains only (v3)

2017-05-22 Thread arindam . nath
From: Arindam Nath <arindam.n...@amd.com> Change History -- v3: - add Fixes and CC tags - add link to Bugzilla v2: changes suggested by Joerg - add flush flag to improve efficiency of flush operation v1: - The idea behind flush queues is to defer the IOTLB flushing for d

[PATCH] iommu/amd: flush IOTLB for specific domains only (v2)

2017-05-19 Thread arindam . nath
From: Arindam Nath <arindam.n...@amd.com> Change History -- v2: changes suggested by Joerg - add flush flag to improve efficiency of flush operation v1: - The idea behind flush queues is to defer the IOTLB flushing for domains for which the mappings are no longer valid. We

[PATCH] iommu/amd: flush IOTLB for specific domains only

2017-03-27 Thread arindam . nath
From: Arindam Nath <arindam.n...@amd.com> The idea behind flush queues is to defer the IOTLB flushing for domains for which the mappings are no longer valid. We add such domains in queue_add(), and when the queue size reaches FLUSH_QUEUE_SIZE, we perform __queue_flush(). Since we have a

[PATCH v2] amdgpu: sync amdgpu_drm.h with the kernel

2017-01-09 Thread Arindam Nath
AMDGPU_INFO_NUM_HANDLES and a new struct drm_amdgpu_info_num_handles to get these values. v2: * Generated using make headers_install. * Generated from linux-stable/master commit a121103c922847ba5010819a3f250f1f7fc84ab8 Suggested-by: Emil Velikov <emil.l.veli...@gmail.com> Signed-off-by: Arinda

[PATCH] amdgpu: get maximum and used UVD handles

2016-12-12 Thread arindam . nath
From: Arindam Nath <arindam.n...@amd.com> User might want to query the maximum number of UVD instances supported by firmware. In addition to that, if there are multiple applications using UVD handles at the same time, he might also want to query the currently used number of handles. For t

[PATCH 1/1] drm/amd/amdgpu: get maximum and used UVD handles (v3)

2016-12-12 Thread arindam . nath
From: Arindam Nath <arindam.n...@amd.com> Change History -- v3: changes suggested by Christian - Add a check for UVD IP block using AMDGPU_HW_IP_UVD query type. - Add a check for asic_type to be less than CHIP_POLARIS10 since starting Polaris, we support unlimited UVD ins