Commit e93e4a6
iommu/riscv: Disable SADE
In terms of the iommu subystem the SADE/GADE feature "3.4. IOMMU updating
of PTE accessed (A) and dirty (D) updates" is called dirty tracking.
There is no reason to enable HW support for this, and the HW cost
associated with it, unless dirty tracking is actually enabled through
iommufd. It should be a dynamic feature linked to user request.
Further, without implementing the read dirty ops the whole thing is
pointless.
Do not set DC.tc.SADE just because the HW has support for dirty tracking.
Tested-by: Vincent Chen <vincent.chen@sifive.com>
Acked-by: Paul Walmsley <pjw@kernel.org> # arch/riscv
Reviewed-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Tested-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>1 parent e71e001 commit e93e4a6
1 file changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | 813 | | |
815 | 814 | | |
816 | 815 | | |
| |||
1201 | 1200 | | |
1202 | 1201 | | |
1203 | 1202 | | |
1204 | | - | |
1205 | | - | |
1206 | 1203 | | |
1207 | 1204 | | |
1208 | 1205 | | |
| |||
1387 | 1384 | | |
1388 | 1385 | | |
1389 | 1386 | | |
1390 | | - | |
1391 | 1387 | | |
1392 | 1388 | | |
1393 | 1389 | | |
| |||
1512 | 1508 | | |
1513 | 1509 | | |
1514 | 1510 | | |
1515 | | - | |
1516 | | - | |
1517 | 1511 | | |
1518 | 1512 | | |
1519 | 1513 | | |
| |||
0 commit comments