Commit 19c8372
committed
Pull up following revision(s) (requested by skrll in ticket #38):
sys/arch/riscv/riscv/bus_dma.c: revision 1.11
risc-v: Adjust barriers issued in bus_dmamap_sync for the coherent case.
PR/59653
This change adjusts the memory barriers issued by bus_dmamap_sync for
the coherent case. In the non-coherent case the CPU cache operations
are expected to provide any, and all required barriers.
These barriers are emitted after bouncing for PREWRITE and before
bouncing for POSTREAD.
Net change:
op old new
--------------------- ---------------------- --------------
PREREAD none fence rw,ow
PREWRITE fence iorw,iorw fence rw,ow
PREREAD|PREWRITE fence iorw,iorw fence w,ow
POSTREAD fence iorw,iorw fence ir,r
POSTWRITE none none
POSTREAD|POSTWRITE fence iorw,iorw fence ir,r1 parent 6588087 commit 19c8372
1 file changed
+49
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | | - | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
1170 | 1211 | | |
1171 | 1212 | | |
1172 | 1213 | | |
| 1214 | + | |
1173 | 1215 | | |
1174 | 1216 | | |
1175 | 1217 | | |
1176 | 1218 | | |
| 1219 | + | |
1177 | 1220 | | |
1178 | 1221 | | |
1179 | 1222 | | |
1180 | 1223 | | |
| 1224 | + | |
1181 | 1225 | | |
1182 | 1226 | | |
1183 | 1227 | | |
1184 | 1228 | | |
| 1229 | + | |
1185 | 1230 | | |
1186 | 1231 | | |
1187 | 1232 | | |
1188 | 1233 | | |
| 1234 | + | |
1189 | 1235 | | |
1190 | 1236 | | |
1191 | 1237 | | |
1192 | 1238 | | |
1193 | 1239 | | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | 1240 | | |
1202 | 1241 | | |
1203 | 1242 | | |
| |||
0 commit comments