Alex Sierra c83dee9b63 drm/amdkfd: add SPM support for SVM
When CPU is connected throug XGMI, it has coherent access to VRAM
resource.  In this case that resource is taken from a table in the device
gmc aperture base.  This resource is used along with the device type,
which could be DEVICE_PRIVATE or DEVICE_COHERENT to create the device page
map region.

Also, MIGRATE_VMA_SELECT_DEVICE_COHERENT flag is selected for coherent
type case during migration to device.

Link: https://lkml.kernel.org/r/20220715150521.18165-8-alex.sierra@amd.com
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-07-17 17:14:28 -07:00
..
2022-07-17 17:14:28 -07:00
2022-03-28 12:41:28 -07:00
2022-06-09 10:27:49 +02:00
2022-05-25 16:18:27 -07:00
2022-04-25 11:17:45 +02:00
2022-02-07 16:35:35 -08:00
2022-02-25 05:50:18 +10:00
2022-05-06 17:26:01 +10:00
2022-05-25 16:18:27 -07:00
2021-10-28 14:59:38 +10:00
2022-04-25 11:17:45 +02:00
2022-03-28 12:41:28 -07:00
2022-04-07 11:31:52 +02:00
2022-05-13 13:14:34 +10:00
2022-04-25 10:18:52 +03:00
2022-02-07 16:35:35 -08:00
2022-02-25 05:50:18 +10:00
2022-03-16 09:36:13 +01:00
2022-03-24 16:19:43 -07:00
2022-02-07 16:35:35 -08:00
2022-05-04 14:09:34 +02:00
2022-04-12 09:27:20 +03:00
2022-02-28 14:57:14 +10:00
2022-04-07 12:53:53 +02:00
2021-11-30 09:41:28 +01:00
2021-11-30 09:41:28 +01:00
2022-02-07 16:35:35 -08:00
2022-02-25 05:50:18 +10:00
2022-04-12 09:27:20 +03:00