|
| 1 | +From f0402a7b201aae87ae9504defc46e25148664a06 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Alexey Brodkin < [email protected]> |
| 3 | +Date: Wed, 27 Apr 2016 16:59:50 +0300 |
| 4 | +Subject: [PATCH] ARC: [axs10x] Specify reserved memory for frame buffer |
| 5 | + |
| 6 | +Allocation of a frame buffer memory in a special memory region |
| 7 | +allows bypassing of so-called IO Coherency aperture |
| 8 | +which is typically set as a range 0x8z-0xAz. |
| 9 | + |
| 10 | +I.e. all data traffic to PGU bypasses IO Coherency block |
| 11 | +and saves its bandwidth for other peripherals. |
| 12 | + |
| 13 | +Even though for AXS101 (which sorts ARC770 CPU) IOC is not |
| 14 | +an option for a sake of keeping one DT description for the |
| 15 | +base-board (axs10x_mb.dtsi) we're still defining reserved |
| 16 | +memory location in the very end of DDR. |
| 17 | + |
| 18 | +Signed-off-by: Alexey Brodkin < [email protected]> |
| 19 | +Cc: Vineet Gupta < [email protected]> |
| 20 | + |
| 21 | +--- |
| 22 | + arch/arc/boot/dts/axc001.dtsi | 22 ++++++++++++++++++++-- |
| 23 | + arch/arc/boot/dts/axc003.dtsi | 14 ++++++++++++++ |
| 24 | + arch/arc/boot/dts/axc003_idu.dtsi | 14 ++++++++++++++ |
| 25 | + arch/arc/boot/dts/axs10x_mb.dtsi | 2 +- |
| 26 | + 4 files changed, 49 insertions(+), 3 deletions(-) |
| 27 | + |
| 28 | +diff --git a/arch/arc/boot/dts/axc001.dtsi b/arch/arc/boot/dts/axc001.dtsi |
| 29 | +index 420dcfd..262496a 100644 |
| 30 | +--- a/arch/arc/boot/dts/axc001.dtsi |
| 31 | ++++ b/arch/arc/boot/dts/axc001.dtsi |
| 32 | +@@ -93,8 +93,26 @@ |
| 33 | + memory { |
| 34 | + #address-cells = <1>; |
| 35 | + #size-cells = <1>; |
| 36 | +- ranges = <0x00000000 0x80000000 0x40000000>; |
| 37 | ++ ranges = <0x00000000 0x80000000 0x20000000>; |
| 38 | + device_type = "memory"; |
| 39 | +- reg = <0x80000000 0x20000000>; /* 512MiB */ |
| 40 | ++ reg = <0x80000000 0x1b000000>; /* (512 - 32) MiB */ |
| 41 | ++ }; |
| 42 | ++ |
| 43 | ++ reserved-memory { |
| 44 | ++ #address-cells = <1>; |
| 45 | ++ #size-cells = <1>; |
| 46 | ++ ranges; |
| 47 | ++ /* |
| 48 | ++ * We just move frame buffer area to the very end of |
| 49 | ++ * available DDR. And even though in case of ARC770 there's |
| 50 | ++ * no strict requirement for a frame-buffer to be in any |
| 51 | ++ * particular location it allows us to use the same |
| 52 | ++ * base board's DT node for ARC PGU as for ARc HS38. |
| 53 | ++ */ |
| 54 | ++ frame_buffer: frame_buffer@9e000000 { |
| 55 | ++ compatible = "shared-dma-pool"; |
| 56 | ++ reg = <0x9e000000 0x2000000>; |
| 57 | ++ no-map; |
| 58 | ++ }; |
| 59 | + }; |
| 60 | + }; |
| 61 | +diff --git a/arch/arc/boot/dts/axc003.dtsi b/arch/arc/boot/dts/axc003.dtsi |
| 62 | +index f90fadf..35ece04 100644 |
| 63 | +--- a/arch/arc/boot/dts/axc003.dtsi |
| 64 | ++++ b/arch/arc/boot/dts/axc003.dtsi |
| 65 | +@@ -100,4 +100,18 @@ |
| 66 | + device_type = "memory"; |
| 67 | + reg = <0x80000000 0x20000000>; /* 512MiB */ |
| 68 | + }; |
| 69 | ++ |
| 70 | ++ reserved-memory { |
| 71 | ++ #address-cells = <1>; |
| 72 | ++ #size-cells = <1>; |
| 73 | ++ ranges; |
| 74 | ++ /* |
| 75 | ++ * Move frame buffer out of IOC aperture (0x8z-0xAz). |
| 76 | ++ */ |
| 77 | ++ frame_buffer: frame_buffer@be000000 { |
| 78 | ++ compatible = "shared-dma-pool"; |
| 79 | ++ reg = <0xbe000000 0x2000000>; |
| 80 | ++ no-map; |
| 81 | ++ }; |
| 82 | ++ }; |
| 83 | + }; |
| 84 | +diff --git a/arch/arc/boot/dts/axc003_idu.dtsi b/arch/arc/boot/dts/axc003_idu.dtsi |
| 85 | +index 06a9f29..df9ddb6 100644 |
| 86 | +--- a/arch/arc/boot/dts/axc003_idu.dtsi |
| 87 | ++++ b/arch/arc/boot/dts/axc003_idu.dtsi |
| 88 | +@@ -123,4 +123,18 @@ |
| 89 | + device_type = "memory"; |
| 90 | + reg = <0x80000000 0x20000000>; /* 512MiB */ |
| 91 | + }; |
| 92 | ++ |
| 93 | ++ reserved-memory { |
| 94 | ++ #address-cells = <1>; |
| 95 | ++ #size-cells = <1>; |
| 96 | ++ ranges; |
| 97 | ++ /* |
| 98 | ++ * Move frame buffer out of IOC aperture (0x8z-0xAz). |
| 99 | ++ */ |
| 100 | ++ frame_buffer: frame_buffer@be000000 { |
| 101 | ++ compatible = "shared-dma-pool"; |
| 102 | ++ reg = <0xbe000000 0x2000000>; |
| 103 | ++ no-map; |
| 104 | ++ }; |
| 105 | ++ }; |
| 106 | + }; |
| 107 | +diff --git a/arch/arc/boot/dts/axs10x_mb.dtsi b/arch/arc/boot/dts/axs10x_mb.dtsi |
| 108 | +index 8fee596..c3ecb5e 100644 |
| 109 | +--- a/arch/arc/boot/dts/axs10x_mb.dtsi |
| 110 | ++++ b/arch/arc/boot/dts/axs10x_mb.dtsi |
| 111 | +@@ -275,7 +275,7 @@ |
| 112 | + encoder-slave = <&adv7511>; |
| 113 | + clocks = <&pguclk>; |
| 114 | + clock-names = "pxlclk"; |
| 115 | +- |
| 116 | ++ memory-region = <&frame_buffer>; |
| 117 | + port { |
| 118 | + pgu_output: endpoint { |
| 119 | + remote-endpoint = <&adv7511_input>; |
| 120 | +-- |
| 121 | +2.5.0 |
| 122 | + |
0 commit comments