All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/8] Fix kdump faults on system with amd iommu
@ 2016-09-15 15:03 ` Baoquan He
  0 siblings, 0 replies; 61+ messages in thread
From: Baoquan He @ 2016-09-15 15:03 UTC (permalink / raw)
  To: joro; +Cc: Baoquan He, kexec, xlpang, linux-kernel, Vincent.Wan, iommu,
	dyoung

This is v5 post. In fact in v3 the solution is correct. Just unluckily 
I got a AMD machine with bnx2 NIC which can't reset itself during driver
init. It made me very unconfident with my understanding about the fix.
Now with below fix the AMD machine with bnx2 NIC can also work well
to dump and there's no IO_PAGE_FAULT seen any more. Now network maintainer
has picked it up.

bnx2: Reset device during driver initialization
https://www.mail-archive.com/netdev@vger.kernel.org/msg127336.html

The principle of the fix is similar to intel iommu. Just defer the assignment
of device to domain to device driver init. But there's difference than
intel iommu. AMD iommu create protection domain and assign device to
domain in iommu driver init stage. So in this patchset I just allow the
assignment of device to domain in software level, but defer updating the
domain info, especially the pte_root to dev table entry to device driver
init stage.


Baoquan He (8):
  iommu/amd: Detect pre enabled translation
  iommu/amd: add early_enable_iommu() wrapper function
  iommu/amd: Define bit fields for DTE particularly
  iommu/amd: Add function copy_dev_tables
  iommu/amd: copy old trans table from old kernel
  iommu/amd: Do not re-enable dev table entries in kdump
  iommu/amd: Don't update domain info to dte entry at iommu init stage
  iommu/amd: Update domain into to dte entry during device driver init

 drivers/iommu/amd_iommu.c       |  49 +++++++++++++--
 drivers/iommu/amd_iommu_init.c  | 135 ++++++++++++++++++++++++++++++++++++----
 drivers/iommu/amd_iommu_proto.h |   1 +
 drivers/iommu/amd_iommu_types.h |  23 +++++--
 4 files changed, 187 insertions(+), 21 deletions(-)

-- 
2.5.5


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2016-09-28 13:02 UTC | newest]

Thread overview: 61+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-15 15:03 [PATCH v5 0/8] Fix kdump faults on system with amd iommu Baoquan He
2016-09-15 15:03 ` Baoquan He
2016-09-15 15:03 ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 1/8] iommu/amd: Detect pre enabled translation Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 2/8] iommu/amd: add early_enable_iommu() wrapper function Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 3/8] iommu/amd: Define bit fields for DTE particularly Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 4/8] iommu/amd: Add function copy_dev_tables Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-20 11:58   ` Joerg Roedel
2016-09-21 10:17     ` Baoquan He
2016-09-21 10:17       ` Baoquan He
2016-09-21 10:17       ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 5/8] iommu/amd: copy old trans table from old kernel Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
     [not found]   ` <1473951806-25511-6-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-09-20 12:40     ` Joerg Roedel
2016-09-20 12:40       ` Joerg Roedel
2016-09-21 10:18       ` Baoquan He
2016-09-21 10:18         ` Baoquan He
2016-09-21 10:18         ` Baoquan He
2016-09-28  1:37       ` Baoquan He
2016-09-28  1:37         ` Baoquan He
2016-09-28  1:37         ` Baoquan He
2016-09-28 13:01         ` Baoquan He
2016-09-28 13:01           ` Baoquan He
2016-09-28 13:01           ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 6/8] iommu/amd: Do not re-enable dev table entries in kdump Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
     [not found]   ` <1473951806-25511-7-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-09-20 12:42     ` Joerg Roedel
2016-09-20 12:42       ` Joerg Roedel
2016-09-21 10:20       ` Baoquan He
2016-09-21 10:20         ` Baoquan He
2016-09-21 10:20         ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 7/8] iommu/amd: Don't update domain info to dte entry at iommu init stage Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
     [not found]   ` <1473951806-25511-8-git-send-email-bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-09-20 12:50     ` Joerg Roedel
2016-09-20 12:50       ` Joerg Roedel
2016-09-21 10:26       ` Baoquan He
2016-09-21 10:26         ` Baoquan He
2016-09-21 13:21         ` Baoquan He
2016-09-21 13:21           ` Baoquan He
2016-09-21 13:21           ` Baoquan He
2016-09-15 15:03 ` [PATCH v5 8/8] iommu/amd: Update domain into to dte entry during device driver init Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-15 15:03   ` Baoquan He
2016-09-20 12:53   ` Joerg Roedel
2016-09-21 10:31     ` Baoquan He
2016-09-21 10:31       ` Baoquan He
2016-09-21 10:31       ` Baoquan He
2016-09-27  1:51     ` Baoquan He
2016-09-27  1:51       ` Baoquan He
2016-09-27  1:51       ` Baoquan He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.