Re: "iommu/vt-d: Delegate DMA domain to generic iommu" series breaks megaraid_sas

From: Qian Cai
Date: Tue Jun 11 2019 - 10:04:37 EST




> On Jun 10, 2019, at 9:41 PM, Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> wrote:
>
> Ah, good catch!
>
> The device failed to be attached by a DMA domain. Can you please try the
> attached fix patch?

It works fine.

>
> [ 101.885468] pci 0000:06:00.0: DMAR: Device is ineligible for IOMMU
> domain attach due to platform RMRR requirement. Contact your platform
> vendor.
> [ 101.900801] pci 0000:06:00.0: Failed to add to iommu group 23: -1
>
> Best regards,
> Baolu
>
> On 6/10/19 10:54 PM, Qian Cai wrote:
>> On Mon, 2019-06-10 at 09:44 -0400, Qian Cai wrote:
>>> On Sun, 2019-06-09 at 10:43 +0800, Lu Baolu wrote:
>>>> Hi Qian,
>>>>
>>>> I just posted some fix patches. I cc'ed them in your email inbox as
>>>> well. Can you please check whether they happen to fix your issue?
>>>> If not, do you mind posting more debug messages?
>>>
>>> Unfortunately, it does not work. Here is the dmesg.
>>>
>>> https://raw.githubusercontent.com/cailca/tmp/master/dmesg?token=AMC35QKPIZBYUM
>>> FUQKLW4ZC47ZPIK
>> This one should be good to view.
>> https://cailca.github.io/files/dmesg.txt
> <0001-iommu-vt-d-Allow-DMA-domain-attaching-to-rmrr-locked.patch>