From: Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
To: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>
Cc: Ohad Ben-Cohen <ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org>,
James <angweiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: Using OMAP3 ISP live display and snapshot sample applications
Date: Thu, 23 Feb 2012 17:38:32 +0100 [thread overview]
Message-ID: <2017729.C83vkrQlqN@avalon> (raw)
In-Reply-To: <13567544.qv9HnVLVXR@avalon>
Hi Joerg and Ohad,
Ping ? I've discussed this with Ohad last week, and we agreed that there was
indeed an issue with the IOMMU subsystem and/or the OMAP3 IOMMU driver. Could
you please have a look at my explanation below ?
On Thursday 16 February 2012 07:46:58 Laurent Pinchart wrote:
> On Tuesday 14 February 2012 11:44:37 Joerg Roedel wrote:
> > On Mon, Feb 13, 2012 at 09:28:30AM +0800, James wrote:
> > > >> @@ -28,6 +28,7 @@ obj-$(CONFIG_XEN) += xen/
> > > >>
> > > >> # regulators early, since some subsystems rely on them to initialize
> > > >> obj-$(CONFIG_REGULATOR) += regulator/
> > > >>
> > > >> +obj-$(CONFIG_IOMMU_SUPPORT) += iommu/
> > > >>
> > > >> # tty/ comes before char/ so that the VT console is the boot-time
> > > >> # default.
> > > >>
> > > >> @@ -125,7 +126,6 @@ obj-y += clk/
> > > >>
> > > >> obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
> > > >> obj-$(CONFIG_NFC) += nfc/
> > > >>
> > > >> -obj-$(CONFIG_IOMMU_SUPPORT) += iommu/
> > > >>
> > > >> # Virtualization drivers
> > > >> obj-$(CONFIG_VIRT_DRIVERS) += virt/
> >
> > I don't see how this patch solves a problem like below.
> >
> > > [ 3.663269] Unable to handle kernel NULL pointer dereference at
> > > virtual
> > > address 00000058
>
> [snip]
>
> > > [<c03eeac4>] (klist_next+0x10/0xb4) from [<c024deb8>]
> > > (next_device+0x8/0x14)
> > > [<c024deb8>] (next_device+0x8/0x14) from [<c024df28>]
> > > (driver_find_device+0x64/0x7c)
> > > [<c024df28>] (driver_find_device+0x64/0x7c) from [<c02e9578>]
> > > (isp_probe+0x228/0xa34)
>
> [snip]
>
> > This looks more like data corruption or something. But this is definitly
> > not caused by some random order in the Makefile.
> > Please debug this issue down to the real cause. Bisecting may help here.
>
> There's actually a line missing from the backtrace for some reason.
>
> isp_probe() calls iommu_attach_device(), which ends up calling
> omap_iommu_attach(). That function then calls driver_find_device(), passing
> it omap_iommu_driver.driver as its first argument. However, as the OMAP3
> ISP driver is linked in the kernel before the OMAP3 IOMMU driver,
> omap_iommu_init() has not be called yet by this time.
> omap_iommu_driver.driver is thus uninitialized, and klist iteration oopses
> as the linked list head is NULL.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2012-02-23 16:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAOy7-nNSu2v9VS9Bh5O5StvEAvoxA4DqN7KdSGfZZSje1_Fgnw@mail.gmail.com>
[not found] ` <201201111041.06017.laurent.pinchart@ideasonboard.com>
[not found] ` <CAOy7-nOrTESdfG+_njJgcVUAiLuks_21=GFMBK-2b5mK9UJwpg@mail.gmail.com>
[not found] ` <CAOy7-nOrTESdfG+_njJgcVUAiLuks_21=GFMBK-2b5mK9UJwpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-09 7:25 ` Using OMAP3 ISP live display and snapshot sample applications Laurent Pinchart
2012-02-10 8:26 ` Ohad Ben-Cohen
2012-02-10 15:10 ` Joerg Roedel
[not found] ` <CAOy7-nNgduFBqYMpLEaTPQ9VQwZ0Z29SzcAoGC6uRWGAPM3_JA@mail.gmail.com>
[not found] ` <CAOy7-nNgduFBqYMpLEaTPQ9VQwZ0Z29SzcAoGC6uRWGAPM3_JA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-14 10:44 ` Joerg Roedel
[not found] ` <20120214104436.GU22598-5C7GfCeVMHo@public.gmane.org>
2012-02-16 6:46 ` Laurent Pinchart
2012-02-23 16:38 ` Laurent Pinchart [this message]
2012-02-23 16:59 ` Ohad Ben-Cohen
[not found] ` <CAK=Wgbbq_7fmtRxSN+ZSY6X0opPMfR3QLNkBmWxZdXf_91wk5A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-23 17:01 ` Ohad Ben-Cohen
[not found] ` <CAK=WgbY5V=ZxVf2xisWuQbVwFyth9rQ8WaXiMkpjUHnMyyCSvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-24 11:01 ` Joerg Roedel
[not found] ` <20120224110137.GF2454-5C7GfCeVMHo@public.gmane.org>
2012-02-26 10:20 ` Ohad Ben-Cohen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2017729.C83vkrQlqN@avalon \
--to=laurent.pinchart-rylnwiuwjnjg/c1bvhzhaw@public.gmane.org \
--cc=angweiyang-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=joerg.roedel-5C7GfCeVMHo@public.gmane.org \
--cc=ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox