linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Bug fix for VFIO EEH
@ 2014-07-15  7:00 Gavin Shan
  2014-07-15  7:00 ` [PATCH 1/2] powerpc/powernv: Fix IOMMU table for VFIO dev Gavin Shan
  2014-07-15  7:00 ` [PATCH 2/2] powerpc/eeh: Fetch IOMMU table in reliable way Gavin Shan
  0 siblings, 2 replies; 3+ messages in thread
From: Gavin Shan @ 2014-07-15  7:00 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Gavin Shan

Those 2 patches are bug fix for VFIO EEH support, which isn't merged yet though
all reviewers gave their ack. So I'm sending this to avoid revert or something
like that.

The problem is that dma_offset/iommu_table_base
are sharing same memory location. When disabling bypass mode, we missed to restore
iommu_table_base. EEH is utilizing that to translate IOMMU group ID to PE. The
patches fix the issue.

Another issue is that we're searching all online PCI devices for translating
IOMMU group ID to PE. That's incorrect since we're uncertain that one speicific
device (except those in current IOMMU group) is running in bypassed mode or
not. So we should have search current IOMMU group.

It should be applied on top of unmerged VFIO EEH support patchset:

http://patchwork.ozlabs.org/patch/357665/

Gavin Shan (2):
  powerpc/powernv: Fix IOMMU table for VFIO dev
  powerpc/eeh: Fetch IOMMU table in reliable way

 arch/powerpc/kernel/eeh.c                 | 33 ++++++++++++++++++++-----------
 arch/powerpc/platforms/powernv/pci-ioda.c | 30 +++++++++++++++++++---------
 2 files changed, 43 insertions(+), 20 deletions(-)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-15  7:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  7:00 [PATCH 0/2] Bug fix for VFIO EEH Gavin Shan
2014-07-15  7:00 ` [PATCH 1/2] powerpc/powernv: Fix IOMMU table for VFIO dev Gavin Shan
2014-07-15  7:00 ` [PATCH 2/2] powerpc/eeh: Fetch IOMMU table in reliable way Gavin Shan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).