- Jan 08, 2020
-
-
Patrick Daly authored
Add another method of finding iommu domains. This approach does not require any specific debug kconfig options to be enabled. However, it will not be able to locate non-active iommu domains. Change-Id: I84dfde76ae78ccc7cb9aa04eb7535773b9918d08
-
Patrick Daly authored
There are several different methods to find all iommu domains. Reorganaize them into different functions. Stop treating iommu_debug_attachments as a pointer (since it is not a pointer but a struct list_head), by replacing: list_head_attachments = ramdump.read_pointer( 'iommu_debug_attachments') list_head_arm_addr = self.ramdump.read_structure_field( list_head_attachments, 'struct list_head', 'prev') with: list_head_attachments = ramdump.address_of( 'iommu_debug_attachments') Change-Id: I096ba602cf374229a0c2d1090899b91e04852885
-
- Mar 22, 2018
-
-
Ankur Bansal authored
'struct iommu_device' is renamed to 'struct group_device' in kernel 4.14. Change-Id: Ie1f8e25a5865b507de8270a2aee4aa6efc98660d
-
- Feb 16, 2018
-
-
Patrick Daly authored
New kernel versions have altered the definition of 'struct arm_lpae_io_pgtable'. Get the required values from 'struct io_pgtable_cfg' instead. Change-Id: Idf91c0efdddb58cdb0130d8a97e4757d05925850
-
- Jan 24, 2018
-
-
Patrick Daly authored
Fast map uses a different io-pgtable implementation. Detect this and use fast-map data structures instead where required. Change-Id: I2d2cdbd2427aea4ffa4896bbc63b6d57c9c66f32
-
- Jul 13, 2017
-
-
Sudarshan Rajagopalan authored
The struct 'iommu_debug_attachment' no longer contains the field 'dev'. Use appropriate fields to get the required job done. Change-Id: I794e0d507101c6cd131da97f31b18f319125eca0
-
- Sep 06, 2016
-
-
Shiraz Hashim authored
Presently, we can have combination of legacy msm_iommu or arm-smmu driver managed iommu domain. Further the page table format also may differ in these respective managed domains. While with arm-smmu driver, we only use armv8 page table format, with legacy msm_iommu driver we can support both armv7s and armv8 format page tables. Refactor the code to distinguish respective domain as to what pagetable format it supports and accordingly call corresponding page table parser. Change-Id: I71479dc70d93124603f6bd5403296efa4e6dfdeb
-
- Jun 29, 2016
-
-
Liam Mark authored
Ensure we don't try to parse the page tables for an arm_smmu_domain where the pgtbl_ops is NULL. CRs-Fixed: 1034128 Change-Id: If9e63e27a052ed45ad3c187983311acdc3376579
-
Liam Mark authored
The arm_smmu_domain is no longer stored in the iommu_domain priv field, from kernel version 4.1 the arm_smmu_domain is a container of iommu_domain. Add support for this configuration. CRs-Fixed: 1034128 Change-Id: I949ec4a24a7dedc394aedc3e6e30e64f34ca3715
-
- Apr 28, 2016
-
-
Susheel Khiani authored
Some clients can generate 48/49 bit virtual address. Enhance ramdump parser to add support for this page table format. Change-Id: I46d803e7fcecadc73e0ccca3422d586c00ecc610
-
- Sep 09, 2014
-
-
Mitchel Humpherys authored
The `RamParse.read_word' function reads a different number of bits depending on the architecture (it reads 32 bits on ARM and 64 bits on ARM64). We were relying on it to only read 32 bits in a few places, so things were broken on ARM64. Fix this by using explicitly-sized reads where appropriate. Change-Id: Id717787c4e7df344964387d245b732d9fffb1397
-
- Apr 23, 2014
-
-
Mitchel Humpherys authored
It's not always useful to pass extra data to the list walker function. For example, if the list walker function is a class method, state can be passed around by simply modifying class instance variables. Update `ListWalker.walk' to accept extra arguments optionally, not require them. Change-Id: I433f1e34db5c143c838f0eb2ed7f58203712ccb3
-
- Apr 21, 2014
-
-
Mitchel Humpherys authored
The IOMMU parser currently only supports short-descriptor format page tables but hardware supports long-descriptor format page tables. Add support for the long-descriptor format. Most of the existing LPAE MMU code can be re-used for this, although it must be refactored a bit. Change-Id: I464d7edeb8818c0be9de1e1a8224bc9b478eac37
-
- Apr 16, 2014
-
-
Mitchel Humpherys authored
The Iommu domain parsing code is common across different Iommu page table types (normal vs LPAE). Pull this code out so that it can be easily re-used later when LPAE page table support is added. Change-Id: Ifc39c12428a9c090f8197d997ddd293e0ae1f0b1
-