From: Cliff Wickman <cpw@sgi.com>
To: linux-kernel@vger.kernel.org
Cc: ashok.raj@intel.com, shaohua.li@intel.com,
anil.s.keshavamurthy@intel.com, fenghua.yu@intel.com
Subject: intel-iommu.c bug
Date: Fri, 17 Dec 2010 09:03:19 -0600 [thread overview]
Message-ID: <E1PTbq3-00083L-Sp@eag09.americas.sgi.com> (raw)
This bug was reported by Mike Habeck <habeck@sgi.com>.
The test system was an SGI Altix UV. These are Mike's words:
It appears there is a bug in the iommu code that when 'forcedac' isn't used
the nvidia driver is handed back a 44bit dma address even though it's
dma_mask is set to 40bits.
I added some debug to the intel_iommu code and I see:
intel_map_sg(): dma_addr_t=0xf81fffff000, pdev->dma_mask=0xffffffffff
Note the dma_addr_t being handed back is 44bits even though the mask is 40bits.
This results in the nvidia card generating a bad dma (i.e. the nvidia hw is
only capable of generating a 40bit dma address so the upper 4 bits are lost
and that results in the iommu hw detecting a bad dma access):
DRHD: handling fault status reg 2
DMAR:[DMA Read] Request device [36:00.0] fault addr 81fffff000
DMAR:[fault reason 06] PTE Read access is not set
If I boot with 'forcedac' then the dma mask is honored and the dma_addr_t
handed back is 40bits:
intel_map_sg(): dma_addr_t=0xfffffff000, pdev->dma_mask=0xffffffffff
Without forcedac you'd expect these early maps being handed back to be 32bits.
This is the first debug printf (so the first mapping the nvidia device has
requested) so I'd expect it to be 0xfffff000... interesting that is what the
lower 32bits are in this address being handed back... that 0xf81 upper bits
appear to be garbage bits. This might be a hint to help find the bug...
next reply other threads:[~2010-12-17 15:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-17 15:03 Cliff Wickman [this message]
2010-12-17 18:11 ` Raj, Ashok
2010-12-17 18:28 ` Suresh Siddha
2010-12-17 18:45 ` David Woodhouse
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=E1PTbq3-00083L-Sp@eag09.americas.sgi.com \
--to=cpw@sgi.com \
--cc=anil.s.keshavamurthy@intel.com \
--cc=ashok.raj@intel.com \
--cc=fenghua.yu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shaohua.li@intel.com \
/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®