mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/amdkfd: add gc 9.5.0 support on kfd
Initial support for GC 9.5.0. v2: squash in pqm_clean_queue_resource() fix from Lijo Signed-off-by: Alex Sierra <alex.sierra@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
0ca6d97596
commit
71985559a8
@@ -2127,10 +2127,11 @@ int kfd_process_drain_interrupts(struct kfd_process_device *pdd)
|
||||
irq_drain_fence[3] = pdd->process->pasid;
|
||||
|
||||
/*
|
||||
* For GFX 9.4.3, send the NodeId also in IH cookie DW[3]
|
||||
* For GFX 9.4.3/9.5.0, send the NodeId also in IH cookie DW[3]
|
||||
*/
|
||||
if (KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 4, 3) ||
|
||||
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 4, 4)) {
|
||||
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 4, 4) ||
|
||||
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 5, 0)) {
|
||||
node_id = ffs(pdd->dev->interrupt_bitmap) - 1;
|
||||
irq_drain_fence[3] |= node_id << 16;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user