Linux IOMMU Development
 help / color / mirror / Atom feed
From: Yijing Wang <wangyijing-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: Sathya Perla
	<Sathya.Perla-iH1Dq9VlAzfQT0dZR+AlfA@public.gmane.org>,
	Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
Cc: "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	Subramanian Seetharaman
	<subbu.seetharaman-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>,
	David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
	Jiang Liu <jiang.liu-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Subject: Re: [PATCH v2] iommu/vt-d: Fix broken device issue when using iommu=pt
Date: Mon, 25 Aug 2014 20:47:04 +0800	[thread overview]
Message-ID: <53FB3048.90601@huawei.com> (raw)
In-Reply-To: <8b3c2f14-d454-45f5-87ab-69e1b87f27c9-3RiH6ntJJkP8BX6JNMqfyFjyZtpTMMwT@public.gmane.org>

On 2014/8/25 20:11, Sathya Perla wrote:
>> -----Original Message-----
>> From: Yijing Wang [mailto:wangyijing-hv44wF8Li93QT0dZR+AlfA@public.gmane.org]
>>
>> On 2014/8/25 17:32, Sathya Perla wrote:
>>>> -----Original Message-----
>>>> From: Joerg Roedel [mailto:joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org]
>>>>
>>>> [Adding the Emulex driver developers to Cc for some input on the device,
>>>>  and why it might use wrong request ids]
>>>>
>>>> On Mon, Aug 25, 2014 at 02:44:59PM +0800, Yijing Wang wrote:
>>>>> We found some strange devices in HP C7000 and Huawei Storage Server.
>>>> These
>>>>> devices can not be enumerated by OS, but they still did DMA read/write
>>>>> without OS management. Because iommu will not create the DMA
>>>> mapping for
>>>>> these devices, the DMA read/write will be blocked by iommu hardware.
> ...
>>>>> Eg.
>>>>> in HP C7000:
>>>>>  \-[0000:00]-+-00.0  Intel Corporation Xeon E5/Core i7 DMI2
>>>>>              +-01.0-[11]--
>>>>> 			 +-01.1-[02]--
>>>>> 			 +-02.0-[04]--+-00.0  Emulex Corporation OneConnect
>>>> 10Gb NIC (be3)
>>>>> 	         |            +-00.1  Emulex Corporation OneConnect 10Gb NIC (be3)
>>>>> 	         |            +-00.2  Emulex Corporation OneConnect 10Gb iSCSI
>>>> Initiator (be3)
>>>>> 	         |            \-00.3  Emulex Corporation OneConnect 10Gb iSCSI
>>>> Initiator (be3)
>>>>> 	         +-02.1-[12]--
>>>>> Kernel only found four devices in bus 0x04, but we found following DMA
>>>> errors in dmesg.
>>>>>
>>>>> [ 1438.477262] DRHD: handling fault status reg 402
>>>>> [ 1438.498278] DMAR:[DMA Write] Request device [04:00.4] fault addr
>>>> bdf70000
>>>>> [ 1438.498280] DMAR:[fault reason 02] Present bit in context entry is
>> clear
>>>>> [ 1438.566458] DMAR:[DMA Write] Request device [04:00.5] fault addr
>>>> bdf70000
>>>>> [ 1438.566460] DMAR:[fault reason 02] Present bit in context entry is
>> clear
>>>>> [ 1438.635211] DMAR:[DMA Write] Request device [04:00.6] fault addr
>>>> bdf70000
>>>>> [ 1438.635213] DMAR:[fault reason 02] Present bit in context entry is
>> clear
>>>>> [ 1438.703849] DMAR:[DMA Write] Request device [04:00.7] fault addr
>>>> bdf70000
>>>>> [ 1438.703851] DMAR:[fault reason 02] Present bit in context entry is
>> clear
> 
> Hi Wang, from the kernel log I can see that the faulting address 0xbdf70000 falls in the
> RMRR range the BIOS requested:
> [    0.111343] DMAR: RMRR base: 0x000000bdf6f000 end: 0x000000bdf7efff
> 
> An identity map is being setup for the visible functions, but not for the "invisible"
> functions:
> [    2.695951] IOMMU: Setting identity map for device 0000:04:00.0 [0xbdf6e000 - 0xbdf6efff]
> [    2.698637] IOMMU: Setting identity map for device 0000:04:00.1 [0xbdf6e000 - 0xbdf6efff]
> [    2.702551] IOMMU: Setting identity map for device 0000:04:00.2 [0xbdf6e000 - 0xbdf6efff]
> [    2.705134] IOMMU: Setting identity map for device 0000:04:00.3 [0xbdf6e000 - 0xbdf6efff]
> 
> I'm going to follow-up with our FW folks as to why functions 04.00.4-7 are invisible
> but yet are trying to access the RMRR memory region.
> 
> Could you also please send the me the FW version (output of "ethtool -i eth0")

Hi Sathya, thanks for your help. FW version is 4.6.247.5   driver version is 4.4.161.0s

Thanks!
Yijing.

> 
> thanks,
> -Sathya
> 
> .
> 


-- 
Thanks!
Yijing

  parent reply	other threads:[~2014-08-25 12:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-25  6:44 [PATCH v2] iommu/vt-d: Fix broken device issue when using iommu=pt Yijing Wang
     [not found] ` <1408949099-18677-1-git-send-email-wangyijing-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-08-25  6:58   ` Bharat.Bhushan-KZfg59tc24xl57MIdRCFDg
     [not found]     ` <8121916dfcae4c4a9d71377081c082fc-GeMU99Gfrru4FpqPz9FowuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-08-25  7:13       ` Yijing Wang
2014-08-25  9:15   ` Joerg Roedel
     [not found]     ` <20140825091531.GG16329-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2014-08-25  9:32       ` Sathya Perla
     [not found]         ` <8dada92a-19af-4b77-b917-f2d97291abbe-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2014-08-25 11:16           ` Yijing Wang
     [not found]             ` <53FB1B09.5070209-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-08-25 12:11               ` Sathya Perla
     [not found]                 ` <8b3c2f14-d454-45f5-87ab-69e1b87f27c9-3RiH6ntJJkP8BX6JNMqfyFjyZtpTMMwT@public.gmane.org>
2014-08-25 12:47                   ` Yijing Wang [this message]
     [not found]                     ` <ff926f1d-b899-4245-93bf-3aa1b593ad7e@CMEXHTCAS1.ad.emulex.com>
     [not found]                       ` <ff926f1d-b899-4245-93bf-3aa1b593ad7e-3RiH6ntJJkP8BX6JNMqfyFjyZtpTMMwT@public.gmane.org>
2014-09-05  1:11                         ` Yijing Wang
2014-08-25 15:04                   ` David Woodhouse
     [not found]                     ` <1408979059.29915.0.camel-W2I5cNIroUsVm/YvaOjsyQ@public.gmane.org>
2014-08-26  1:51                       ` Yijing Wang
     [not found]                         ` <53FBE82B.2080105-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2014-08-28 16:42                           ` Linda Knippers
2014-08-26  2:03       ` Yijing Wang

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=53FB3048.90601@huawei.com \
    --to=wangyijing-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=Sathya.Perla-iH1Dq9VlAzfQT0dZR+AlfA@public.gmane.org \
    --cc=dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=jiang.liu-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
    --cc=subbu.seetharaman-laKkSmNT4hbQT0dZR+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