Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASfpga
VILLASfpga
Commits
dfaff554
Commit
dfaff554
authored
Sep 24, 2018
by
Daniel Krebs
Browse files
gpu: add warning about hardcoded PCI slot of FPGA
parent
15017d64
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gpu/gpu.cpp
View file @
dfaff554
...
...
@@ -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
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment