Searched hist:"77 ca23323594589ac8cba1c8d59bfe7e85d3cb8b" (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/remoteproc/ |
H A D | remoteproc_core.c | diff 77ca23323594589ac8cba1c8d59bfe7e85d3cb8b Mon May 21 19:20:05 CEST 2012 Ohad Ben-Cohen <ohad@wizery.com> iommu/core: pass a user-provided token to fault handlers
Sometimes a single IOMMU user may have to deal with several different IOMMU devices (e.g. remoteproc).
When an IOMMU fault happens, such users have to regain their context in order to deal with the fault.
Users can't use the private fields of neither the iommu_domain nor the IOMMU device, because those are already used by the IOMMU core and low level driver (respectively).
This patch just simply allows users to pass a private token (most notably their own context pointer) to iommu_set_fault_handler(), and then makes sure it is provided back to the users whenever an IOMMU fault happens.
The patch also adopts remoteproc to the new fault handling interface, but the real functionality using this (recovery of remote processors) will only be added later in a subsequent patch set.
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
|
/linux/include/linux/ |
H A D | iommu.h | diff 77ca23323594589ac8cba1c8d59bfe7e85d3cb8b Mon May 21 19:20:05 CEST 2012 Ohad Ben-Cohen <ohad@wizery.com> iommu/core: pass a user-provided token to fault handlers
Sometimes a single IOMMU user may have to deal with several different IOMMU devices (e.g. remoteproc).
When an IOMMU fault happens, such users have to regain their context in order to deal with the fault.
Users can't use the private fields of neither the iommu_domain nor the IOMMU device, because those are already used by the IOMMU core and low level driver (respectively).
This patch just simply allows users to pass a private token (most notably their own context pointer) to iommu_set_fault_handler(), and then makes sure it is provided back to the users whenever an IOMMU fault happens.
The patch also adopts remoteproc to the new fault handling interface, but the real functionality using this (recovery of remote processors) will only be added later in a subsequent patch set.
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
|
/linux/drivers/iommu/ |
H A D | iommu.c | diff 77ca23323594589ac8cba1c8d59bfe7e85d3cb8b Mon May 21 19:20:05 CEST 2012 Ohad Ben-Cohen <ohad@wizery.com> iommu/core: pass a user-provided token to fault handlers
Sometimes a single IOMMU user may have to deal with several different IOMMU devices (e.g. remoteproc).
When an IOMMU fault happens, such users have to regain their context in order to deal with the fault.
Users can't use the private fields of neither the iommu_domain nor the IOMMU device, because those are already used by the IOMMU core and low level driver (respectively).
This patch just simply allows users to pass a private token (most notably their own context pointer) to iommu_set_fault_handler(), and then makes sure it is provided back to the users whenever an IOMMU fault happens.
The patch also adopts remoteproc to the new fault handling interface, but the real functionality using this (recovery of remote processors) will only be added later in a subsequent patch set.
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
|