From: Luming Yu <luming.yu@gmail.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC patch] return early if all dmar HW unit ignored
Date: Mon, 10 Aug 2009 14:21:48 +0800 [thread overview]
Message-ID: <3877989d0908092321h56afcc7ve9fe39fa68f42a48@mail.gmail.com> (raw)
In-Reply-To: <1249369794.9324.18.camel@macbook.infradead.org>
David,
Sorry for late response.. I tried your patch that terminates dmar
table init if "one
DMAR reported at address xxxxx returns all = ones"
I know BIOS is very likely to do bad things, so I think your patch makes sense.
But I think the following info should look better..
Instead of ending up in parse DMAR table failure right after just one
drhd record,
all 4 are parsed. ( I applied your patch and the patch of this thread,
and changed your patch to set ignored flag)
$ dmesg | grep -i dmar
[ 0.000000] ACPI: DMAR 000000007d2c225f 001A8 (v01 COMPAQ BEARLAKE
00000001 00000000)
[ 0.161030] DMAR:Host address width 36
[ 0.161032] DMAR:DRHD base: 0x000000fed90000 flags: 0x0
[ 0.161045] WARNING: at drivers/pci/dmar.c:640 alloc_iommu+0xfc/0x230()
[ 0.161049] Your BIOS is broken; DMAR reported at address fed90000
returns all = ones!
[ 0.161070] [<ffffffff81819ce9>] dmar_table_init+0x1b1/0x35a
[ 0.161119] DMAR:DRHD base: 0x000000fed91000 flags: 0x0
[ 0.161127] WARNING: at drivers/pci/dmar.c:640 alloc_iommu+0xfc/0x230()
[ 0.161130] Your BIOS is broken; DMAR reported at address fed91000
returns all = ones!
[ 0.161146] [<ffffffff81819ce9>] dmar_table_init+0x1b1/0x35a
[ 0.161183] DMAR:DRHD base: 0x000000fed92000 flags: 0x0
[ 0.161191] WARNING: at drivers/pci/dmar.c:640 alloc_iommu+0xfc/0x230()
[ 0.161194] Your BIOS is broken; DMAR reported at address fed92000
returns all = ones!
[ 0.161210] [<ffffffff81819ce9>] dmar_table_init+0x1b1/0x35a
[ 0.161247] DMAR:DRHD base: 0x000000fed93000 flags: 0x1
[ 0.161255] WARNING: at drivers/pci/dmar.c:640 alloc_iommu+0xfc/0x230()
[ 0.161258] Your BIOS is broken; DMAR reported at address fed93000
returns all = ones!
[ 0.161274] [<ffffffff81819ce9>] dmar_table_init+0x1b1/0x35a
[ 0.161310] DMAR:RMRR base: 0x0000007d600000 end: 0x0000007dffffff
[ 0.161313] DMAR:RMRR base: 0x0000007d2d0000 end: 0x0000007d2d0fff
[ 0.161315] DMAR:RMRR base: 0x0000007d2d1000 end: 0x0000007d2d1fff
[ 0.161318] DMAR:RMRR base: 0x0000007d2d2000 end: 0x0000007d2d2fff
[ 0.161320] DMAR:RMRR base: 0x0000007d2d3000 end: 0x0000007d2d3fff
[ 0.161322] DMAR:RMRR base: 0x0000007d2d5000 end: 0x0000007d2d5fff
[ 0.161325] DMAR:RMRR base: 0x0000007d2d6000 end: 0x0000007d2d6fff
[ 0.161327] DMAR:RMRR base: 0x0000007d2d7000 end: 0x0000007d2d7fff
[ 0.161329] DMAR:No ATSR found
[ 0.161370] IOMMU: all dmar HW unit ignored
But I don't know why I were seeing faults if all dmar units were
ignored? Surely that
shouldn't happen? Will double check and investigate.
Thanks,
Luming
On Tue, Aug 4, 2009 at 3:09 PM, David Woodhouse<dwmw2@infradead.org> wrote:
> On Fri, 2009-07-31 at 16:29 +0800, Luming Yu wrote:
>> Hello list,
>>
>> When debugging an IOMMU problem, I noticed it should be much more safe
>> to return early than late if all remapping HW unit are ignored.
>> To figure out what device causes the iommu problem on my linux box:
>> hp-compaq dc7800, I tried to mark all dmar HW
>> unit ignored,but still got a lot of unxepcted dmar_fault. So I think
>> the proposed patch make sense. The next step is to
>> add a boot option to make dmar HW units selectable enable/disable individually.
>
> Why were you seeing faults if all dmar units were ignored? Surely that
> shouldn't happen?
>
> This patch doesn't make a lot of sense on its own -- can you show what
> you were intending to do as the 'next step'?
>
> --
> David Woodhouse Open Source Technology Centre
> David.Woodhouse@intel.com Intel Corporation
>
>
next prev parent reply other threads:[~2009-08-10 6:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 8:29 Luming Yu
2009-08-04 7:09 ` David Woodhouse
2009-08-10 6:21 ` Luming Yu [this message]
2009-08-10 9:13 ` David Woodhouse
2009-08-10 9:19 ` Luming Yu
2009-08-10 9:22 ` Luming Yu
2009-08-11 2:47 ` Luming Yu
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=3877989d0908092321h56afcc7ve9fe39fa68f42a48@mail.gmail.com \
--to=luming.yu@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®