linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] iommu: Prevent oops in iommu_get() and while arch_iommu is in use
@ 2011-03-25 15:17 Sakari Ailus
  2011-03-25 15:17 ` [PATCH 1/4] omap iommu: Check existence of arch_iommu Sakari Ailus
                   ` (4 more replies)
  0 siblings, 5 replies; 27+ messages in thread
From: Sakari Ailus @ 2011-03-25 15:17 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org, Doyu Hiroshi (Nokia-D/Helsinki),
	Laurent Pinchart, Cohen

Hi,

[Resend: the patches were accidentally sent to linux-media instead.
Apologies.]

This patchset is aimed to fix a problem in arch_iommu implementation
references. When an actual arch_iommu implementation is not loaded while
iommu_get() is being called results to a kernel oops, as well as
removing an arch_iommu implementation which is in use.

This patchset fixes both issues.

The patchset assumes the arch_iommu is uninstalled at module unload
time. Is this an acceptable requirement?

Serialisation of the access to arch_iommu is done using mutex called
arch_iommu_mutex.

module_put() doesn't need to have the arch_iommu_mutex since when this
gets called there won't be any users on the arch_iommu anyway.

Comments are welcome. :-)

Cheers,

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

^ permalink raw reply	[flat|nested] 27+ messages in thread
* [PATCH 0/4] iommu: Prevent oops in iommu_get() and while arch_iommu is in use
@ 2011-03-25 15:13 Sakari Ailus
  2011-03-25 19:37 ` Ramirez Luna, Omar
  0 siblings, 1 reply; 27+ messages in thread
From: Sakari Ailus @ 2011-03-25 15:13 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org, Doyu Hiroshi (Nokia-D/Helsinki),
	Laurent Pinchart, Cohen

Hi,

This patchset is aimed to fix a problem in arch_iommu implementation
references. When an actual arch_iommu implementation is not loaded while
iommu_get() is being called results to a kernel oops, as well as
removing an arch_iommu implementation which is in use.

This patchset fixes both issues.

The patchset assumes the arch_iommu is uninstalled at module unload
time. Is this an acceptable requirement?

Serialisation of the access to arch_iommu is done using mutex called
arch_iommu_mutex.

module_put() doesn't need to have the arch_iommu_mutex since when this
gets called there won't be any users on the arch_iommu anyway.

Comments are welcome. :-)

Cheers,

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2011-09-26 16:19 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 15:17 [PATCH 0/4] iommu: Prevent oops in iommu_get() and while arch_iommu is in use Sakari Ailus
2011-03-25 15:17 ` [PATCH 1/4] omap iommu: Check existence of arch_iommu Sakari Ailus
2011-03-25 15:18 ` [PATCH 2/4] omap iommu: Add module information to struct iommu_functions Sakari Ailus
2011-03-25 15:18 ` [PATCH 3/4] omap2 iommu: Set module information in omap2_iommu_ops Sakari Ailus
2011-03-25 15:18 ` [PATCH 4/4] omap iommu: Prevent iommu implementations from being unloaded while in use Sakari Ailus
2011-03-25 15:44 ` [PATCH 0/4] iommu: Prevent oops in iommu_get() and while arch_iommu is " David Cohen
  -- strict thread matches above, loose matches on Subject: below --
2011-03-25 15:13 Sakari Ailus
2011-03-25 19:37 ` Ramirez Luna, Omar
2011-03-27 17:27   ` Sakari Ailus
2011-03-28  1:42     ` Ramirez Luna, Omar
2011-03-28  9:20       ` David Cohen
2011-03-29 15:44       ` Laurent Pinchart
2011-03-28  9:02     ` David Cohen
2011-03-29 15:32   ` Laurent Pinchart
2011-03-30  8:16     ` Sakari Ailus
2011-03-30  9:37       ` Laurent Pinchart
2011-03-30 13:50         ` Sakari Ailus
2011-03-30 13:56           ` Laurent Pinchart
2011-03-30 15:50             ` David Cohen
2011-04-04 14:05               ` Laurent Pinchart
2011-04-05  9:03                 ` Sakari Ailus
2011-04-05 11:23                   ` Laurent Pinchart
2011-04-05 11:54                     ` David Cohen
2011-04-06  8:55                       ` Laurent Pinchart
2011-04-05 15:20                     ` Sakari Ailus
2011-09-24 13:44     ` Steve Sakoman
2011-09-26 16:19       ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).