OSDN Git Service

Revert "iommu/vt-d: Avoid duplicated pci dma alias consideration"
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 26 Aug 2019 08:50:56 +0000 (16:50 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 30 Aug 2019 14:26:12 +0000 (16:26 +0200)
commit0ce4a85f4f015d13a6a6b4954f4e8e63cd83f7b1
tree72d8134ccbffcc0d71e9de799a2e5f1189952bd0
parenta55aa89aab90fae7c815b0551b07be37db359d76
Revert "iommu/vt-d: Avoid duplicated pci dma alias consideration"

This reverts commit 557529494d79f3f1fadd486dd18d2de0b19be4da.

Commit 557529494d79f ("iommu/vt-d: Avoid duplicated pci dma alias
consideration") aimed to address a NULL pointer deference issue
happened when a thunderbolt device driver returned unexpectedly.

Unfortunately, this change breaks a previous pci quirk added by
commit cc346a4714a59 ("PCI: Add function 1 DMA alias quirk for
Marvell devices"), as the result, devices like Marvell 88SE9128
SATA controller doesn't work anymore.

We will continue to try to find the real culprit mentioned in
557529494d79f, but for now we should revert it to fix current
breakage.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204627
Cc: Stijn Tintel <stijn@linux-ipv6.be>
Cc: Petr Vandrovec <petr@vandrovec.name>
Reported-by: Stijn Tintel <stijn@linux-ipv6.be>
Reported-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c