All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Baoquan He <bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: About amd-iommu support for kdump kernel
Date: Mon, 21 Sep 2015 15:54:30 +0200	[thread overview]
Message-ID: <20150921135430.GC2173@8bytes.org> (raw)
In-Reply-To: <20150915120606.GD15856-0VdLhd/A9PlfpSRLqpFUpR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>

Hi Baoquan,

On Tue, Sep 15, 2015 at 08:06:06PM +0800, Baoquan He wrote:
> Recently I am free and can try to work out the amd-iommu support for
> kdump kernel. Now I have some plans and draft them into codes and debugging.
> And also there are prlblems. I brief them here, could you please have a
> look and give some suggestions?
> 
> Two parts:
> 
> 1) IO page mapping
>  .> Checking if it's in kdump kernel and previously enabled
>  .> If yes do below operatons:
>  	.> Do not disable amd iommu
> 	.> Copy dev table form old kernel and set the old domain id in amd_iommu_pd_alloc_bitmap
> 	.> Don't call update_domain() to update device table until the first __map_single() is called by device driver init

These operations look good so far, but a problem still remains: The AMD
IOMMU driver uses default domains which get allocated and initialized at
iommu driver initialization time. So there is no clean way yet to defer
device domain initialization to device driver init time.

This needs to be changed before the VT-d driver can be converted to
default domains too.

I'll also have a look into your patch. Maybe I see something that causes
the interrupt to fail.


	Joerg

  parent reply	other threads:[~2015-09-21 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 12:06 About amd-iommu support for kdump kernel Baoquan He
     [not found] ` <20150915120606.GD15856-0VdLhd/A9PlfpSRLqpFUpR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2015-09-16  7:26   ` Baoquan He
2015-09-21 13:54   ` Joerg Roedel [this message]
     [not found]     ` <20150921135430.GC2173-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2015-09-22  3:18       ` Baoquan He
2015-09-22 12:14       ` Baoquan He

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=20150921135430.GC2173@8bytes.org \
    --to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
    --cc=bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@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 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.