[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081107125011M.fujita.tomonori@lab.ntt.co.jp>
Date: Fri, 7 Nov 2008 12:49:54 +0900
From: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>
To: shehjart@....unsw.edu.au
Cc: fujita.tomonori@....ntt.co.jp, akpm@...ux-foundation.org,
tony.luck@...el.com, linux-kernel@...r.kernel.org,
linux-parisc@...r.kernel.org
Subject: Re: Panic in multiple kernels: IA64 SBA IOMMU: Culprit commit on
Mar 28, 2008
On Thu, 06 Nov 2008 14:06:09 +1100
Shehjar Tikoo <shehjart@....unsw.edu.au> wrote:
> FUJITA Tomonori wrote:
> > Sorry for the delay.
> >
> > CC'ed linux-parisc since the same problem could happen to parisc.
> >
> > On Tue, 04 Nov 2008 10:23:58 +1100
> > Shehjar Tikoo <shehjart@....unsw.edu.au> wrote:
> >
> >> I've been observing kernel panics for the past week on
> >> kernel versions 2.6.26, 2.6.27 but not on 2.6.24 and 2.6.25.
> >>
> >> The panic message says:
> >>
> >> arch/ia64/hp/common/sba_iommu.c: I/O MMU is out of mapping resources
> >>
> >> Using git-bisect, I've zeroed in on the commit that introduced this.
> >> Please see the attached file for the commit.
> >>
> >> The workload consists of 2 tests:
> >> 1. Single fio process writing a 1 TB file.
> >> 2. 15 fio processes writing 15GB files each.
> >>
> >> The panic happens on both workloads. There is no stack trace after
> >> the above message.
> >>
> >> Other info:
> >> System is HP RX6600(16Gb RAM, 16 processors w/ dual cores and HT)
> >> 20 SATA disks under software RAID0 with 6 TB capacity.
> >> Silicon Image 3124 controller.
> >> File system is XFS.
> >>
> >> I'd much appreciate some help in fixing this because this panic has
> >> basically stalled my own work. I'd be willing to run more tests on my
> >> setup to test any patches that possibly fix this issue.
> >
> > This patch modified the sba IOMMU driver to support LLDs' segment
> > boundary limits properly.
> >
> > ATA hardware has poor segment boundary limit, 64KB. In addition, sba
> > IOMMU driver uses size-aligned allocation algorithm. It means that
> > it's difficult for the IOMMU driver to find an appropriate I/O address
> > space. I think that you hit the allocation failure due to this problem
> > (of course, it's possible that my change breaks the IOMMU driver but I
> > can't find a problem so far).
> >
> > To make matters worse, sba IOMMU driver panic when the allocation
> > fails. IIRC, only IA64 and parisc IOMMU drivers panic by default in
> > the case of the allocation failure. I think that we need to change
> > them to handle the failure properly.
> >
> > Can you try this? I've not fixed map_single failure yet but I think
> > that you hit the failure allocation in map_sg path.
> >
>
> On 2.6.27, this patch seems to prevent the panic from happening for
> both the tests I had described earlier.
Thanks!
> Do you need more info to
> validate this? I will be running more tests with this patch over
> the next few days, so we'll find out anyway.
Can you check if data corruption doesn't happen during the tests?
Tony, changing the sba IOMMU driver to return an error instead of
panic in the case of allocation failure is fine with you?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists