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
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu