Commit c191515
committed
drm/amdgpu: Query P2PDMA distance only if CONFIG_HSA_AMD_P2P is defined
CONFIG_HSA_AMD_P2P indicates the requirements that are needed for P2P DMA
Mappings. It is important to note that enabling CONFIG_HSA_AMD_P2P is a
necessary but insufficient condition. It is possible to encounter runtime
errors - e.g. CPU's do not support Inter-CPU transport of PCIe transaction
packets i.e. P2PDMA distance API may return error
Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>1 parent 437f02c commit c191515
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5577 | 5577 | | |
5578 | 5578 | | |
5579 | 5579 | | |
| 5580 | + | |
| 5581 | + | |
| 5582 | + | |
| 5583 | + | |
| 5584 | + | |
| 5585 | + | |
5580 | 5586 | | |
5581 | 5587 | | |
5582 | 5588 | | |
| |||
5587 | 5593 | | |
5588 | 5594 | | |
5589 | 5595 | | |
5590 | | - | |
| 5596 | + | |
5591 | 5597 | | |
5592 | 5598 | | |
5593 | 5599 | | |
| |||
0 commit comments