Commit dfaff554 authored by Daniel Krebs's avatar Daniel Krebs

gpu: add warning about hardcoded PCI slot of FPGA

parent 15017d64
Pipeline #74818 failed with stages
in 1 minute and 46 seconds
......@@ -273,6 +273,10 @@ bool Gpu::makeAccessibleToPCIeAndVA(const MemoryBlock& mem)
// retrieve bus address
static constexpr size_t maxDmaAddresses = 1 << 10;
uint64_t addr[maxDmaAddresses];
// WARNING: PCI slot of FPGA hardcoded here! In the end this is fed into the
// Nvidia kernel module and god knows what happens if we provide
// an invalid pci dev here. At least there is no documention. The
// BAR address should not be any different, but ... ?!
ret = gdr_map_dma(pImpl->gdr, mh, 3, 0, 0, addr, maxDmaAddresses);
for(int i = 0; i < ret; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment