Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1618859
| From | Joerg Roedel <joro@8bytes.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/5] iommu/omap: Permanently keep iommu_dev pointer in arch_data |
| Date | 2017-04-07 16:40 +0200 |
| Message-ID | <ttDdo-8mD-31@gated-at.bofh.it> (permalink) |
| References | <tr3H3-4uB-3@gated-at.bofh.it> <tr3H3-4uB-1@gated-at.bofh.it> <tsgVA-3k5-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Suman,
On Mon, Apr 03, 2017 at 03:35:46PM -0500, Suman Anna wrote:
> > + iommu = platform_get_drvdata(pdev);
> > + if (!iommu) {
> > + of_node_put(np);
> > + return -EINVAL;
> > + }
>
> This change is causing the issues. OMAP IOMMU driver is not probed yet,
> but this gets called during the driver's init function in
> bus_set_iommu() and bus's iommu_ops gets set to NULL. The add_device
> today is used to add the linking to an IOMMU device (currently name
> primarily to support the legacy non-DT mode which is no longer an issue,
> but a dev pointer can be used instead here, and the real enabling is
> done during the domain's attach_dev callback.
Yeah, okay. Solving this problem requires more sophisticated handling in
the iommu core code, which is not implemented yet.
I drop this patch for now and do the device-linking and group-handling
in attach_dev. This makes iommu-groups on omap useless for now, but it
is a start.
Joerg
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 2/5] iommu/omap: Permanently keep iommu_dev pointer in arch_data Joerg Roedel <joro@8bytes.org> - 2017-03-31 14:20 +0200
Re: [PATCH 2/5] iommu/omap: Permanently keep iommu_dev pointer in arch_data Suman Anna <s-anna@ti.com> - 2017-04-03 22:40 +0200
Re: [PATCH 2/5] iommu/omap: Permanently keep iommu_dev pointer in arch_data Joerg Roedel <joro@8bytes.org> - 2017-04-07 16:40 +0200
csiph-web