Repository navigation
Commit a8eb92d
Christoph Hellwig
arc: fix arc_dma_{map,unmap}_page
These functions should perform the same cache synchronoization as calling
arc_dma_sync_single_for_{cpu,device} in addition to doing any required
address translation or mapping [1]. Ensure they actually do that by calling
arc_dma_sync_single_for_{cpu,device} instead of passing the dir argument
along to _dma_cache_sync.
The now unused _dma_cache_sync function is removed as well.
[1] in fact various drivers rely on that by passing DMA_ATTR_SKIP_CPU_SYNC
to the map/unmap routines and doing the cache synchronization manually.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>1 parent b591741 commit a8eb92d
1 file changed
Lines changed: 2 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 133 | | |
157 | 134 | | |
158 | 135 | | |
| |||
185 | 162 | | |
186 | 163 | | |
187 | 164 | | |
188 | | - | |
| 165 | + | |
189 | 166 | | |
190 | 167 | | |
191 | 168 | | |
| |||
205 | 182 | | |
206 | 183 | | |
207 | 184 | | |
208 | | - | |
| 185 | + | |
209 | 186 | | |
210 | 187 | | |
211 | 188 | | |
| |||
0 commit comments