lkml.org 
[lkml]   [2015]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/10] iommu/amd: copy old dev tables and do not touch dev tables
On Thu, Sep 24, 2015 at 02:37:33PM +0800, Baoquan He wrote:
> + if ( !translation_pre_enabled() ) {
> + iommu_disable(iommu);
> + iommu_init_flags(iommu);
> + iommu_set_device_table(iommu);
> + iommu_enable_command_buffer(iommu);
> + iommu_enable_event_buffer(iommu);
> + iommu_set_exclusion_range(iommu);
> + iommu_enable(iommu);
> + iommu_flush_all_caches(iommu);
> + } else {
> + copy_dev_tables();
> + copy_command_buffer();
> + copy_event_buffer();
> + }

Hmm, this leaves the old device-table in place and removes flushing the
iommu-caches in kdump kernel, right?


Joerg



\
 
 \ /
  Last update: 2015-09-29 18:21    [W:0.121 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site