aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2015-11-11 17:07:51 +0900
committerBen Skeggs <bskeggs@redhat.com>2016-01-11 11:17:40 +1000
commitb306712d924af4dd63e44a08eb78c779e2d04154 (patch)
treee61d2938d8ed2fd20e60a90e37595c80c9906e36 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentdrm/nouveau/instmem/gk20a: fix race conditions (diff)
downloadwireguard-linux-b306712d924af4dd63e44a08eb78c779e2d04154.tar.xz
wireguard-linux-b306712d924af4dd63e44a08eb78c779e2d04154.zip
drm/nouveau/instmem/gk20a: use DMA API CPU mapping
Commit 69c4938249fb ("drm/nouveau/instmem/gk20a: use direct CPU access") tried to be smart while using the DMA-API by managing the CPU mappings of buffers allocated with the DMA-API by itself. In doing so, it relied on dma_to_phys() which is an architecture-private function not available everywhere. This broke the build on several architectures. Since there is no reliable and portable way to obtain the physical address of a DMA-API buffer, stop trying to be smart and just use the CPU mapping that the DMA-API can provide. This means that buffers will be CPU-mapped for all their life as opposed to when we need them, but anyway using the DMA-API here is a fallback for when no IOMMU is available so we should not expect optimal behavior. This makes the IOMMU and DMA-API implementations of instmem diverge enough that we should maybe put them into separate files... Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions