Joerg Roedel
146a6917fc
AMD IOMMU: add stats counter for unmap_single requests
...
Impact: see number of unmap_single requests in debugfs
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:59 +01:00
Joerg Roedel
0f2a86f200
AMD IOMMU: add stats counter for map_single requests
...
Impact: see number of map_single requests in debugfs
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:59 +01:00
Joerg Roedel
da49f6df72
AMD IOMMU: add stats counter for completion wait events
...
Impact: see number of completion wait events in debugfs
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:58 +01:00
Joerg Roedel
7f26508bbb
AMD IOMMU: add init code for statistic collection
...
Impact: create a new debugfs directory
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:58 +01:00
Joerg Roedel
edcb34da25
AMD IOMMU: use calc_devid in prealloc_protection_domains
...
Impact: cleanup
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:57 +01:00
Joerg Roedel
0cfd7aa90b
AMD IOMMU: convert iommu->need_sync to bool
...
Impact: use bool instead of int for iommu->need_sync
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:57 +01:00
Joerg Roedel
ab89672286
AMD IOMMU: use dev_name instead of self-build print_devid
...
Impact: use generic dev_name instead of own function
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
1ac4cbbc5e
AMD IOMMU: allocate a new protection for hotplugged devices
...
Impact: also hotplug devices benefit from device isolation
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
e2dc14a2a6
AMD IOMMU: add a domain flag for default domains
...
Impact: adds a new protection domain flag
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
26961efe0d
AMD IOMMU: register functions for the IOMMU API
...
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
645c4c8d72
AMD IOMMU: add domain address lookup function for IOMMU API
...
Impact: add a generic function to lockup addresses in protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
eb74ff6cc0
AMD IOMMU: add domain unmap function for IOMMU API
...
Impact: add a generic function to unmap pages into protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
c6229ca649
AMD IOMMU: add domain map function for IOMMU API
...
Impact: add a generic function to map pages into protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
01106066a6
AMD IOMMU: add device attach function for IOMMU API
...
Impact: add a generic function to attach devices to protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:56 +01:00
Joerg Roedel
684f288884
AMD IOMMU: add device detach function for IOMMU API
...
Impact: add a generic function to detach devices from protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:55 +01:00
Joerg Roedel
98383fc301
AMD IOMMU: add domain destroy function for IOMMU API
...
Impact: add a generic function for releasing protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:55 +01:00
Joerg Roedel
c156e347d6
AMD IOMMU: add domain init function for IOMMU API
...
Impact: add a generic function for allocation protection domains
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:55 +01:00
Joerg Roedel
6d98cd8043
AMD IOMMU: add domain cleanup helper function
...
Impact: add a function to remove all devices from a domain
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:55 +01:00
Joerg Roedel
e275a2a0fc
AMD IOMMU: add device notifier callback
...
Impact: inform IOMMU about state change of a device in the driver core
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:55 +01:00
Joerg Roedel
355bf553ed
AMD IOMMU: add device detach helper functions
...
Impact: add helper functions to detach a device from a domain
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:55 +01:00
Joerg Roedel
f1179dc005
AMD IOMMU: rename set_device_domain function
...
Impact: rename set_device_domain() to attach_device()
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:54 +01:00
Joerg Roedel
863c74ebd0
AMD IOMMU: add device reference counting for protection domains
...
Impact: know how many devices are assigned to a domain
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:54 +01:00
Joerg Roedel
5b28df6f43
AMD IOMMU: add checks for dma_ops domain to dma_ops functions
...
Impact: detect when a driver uses a device assigned otherwise
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:54 +01:00
Joerg Roedel
9fdb19d64c
AMD IOMMU: add protection domain flags
...
Imapct: add a new struct member to 'struct protection_domain'
When using protection domains for dma_ops and KVM its better to know for
which subsystem it was allocated. Add a flags member to struct
protection domain for that purpose.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:54 +01:00
Joerg Roedel
43f4960983
AMD IOMMU: add iommu_flush_domain function
...
Impact: add a function to flush a domain id on every IOMMU
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com >
2009-01-03 14:11:54 +01:00