-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add pcie-32bit-dma overlay
In order to accommodate full PCI DMA access to memory on newer BCM2711 revisions, we're forced to map PCIe's view of physical memory with an offset. This offset makes DMA addressing dependent on having 64bit support on the PCI device's side. Which isn't always the case. In order to mitigate this, introduce the pcie-32bit-dma overlay which will forbid firmware from updating the default inbound memory window. The default setting, albeit limited to accessing the lower 3GB of memory, will allow for 32bit DMA addresses at the expense of having to bounce buffers. Link: #4197 Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,10 @@ | |
deprecated = "use gpio-ir"; | ||
}; | ||
|
||
pcie-32bit-dma { | ||
bcm2711; | ||
}; | ||
|
||
pi3-act-led { | ||
renamed = "act-led"; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* pcie-32bit-dma-overlay.dts | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2711"; | ||
|
||
fragment@0 { | ||
target-path = "/aliases"; | ||
__overlay__ { | ||
pcie0 = ""; | ||
}; | ||
}; | ||
|
||
}; |