Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1703934
| From | Joerg Roedel <jroedel@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v9 11/13] iommu/amd: Don't copy GCR3 table root pointer |
| Date | 2017-08-04 14:30 +0200 |
| Message-ID | <uaJTQ-6TP-21@gated-at.bofh.it> (permalink) |
| References | <u9DGO-3pR-9@gated-at.bofh.it> <u9DGP-3pR-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 01, 2017 at 07:37:27PM +0800, Baoquan He wrote:
> @@ -908,6 +911,14 @@ static int copy_device_table(void)
> old_dev_tbl_cpy[devid].data[1]
> = old_devtb[devid].data[1];
> __set_bit(dom_id, amd_iommu_pd_alloc_bitmap);
> + /* If gcr3 table existed, mask it out */
> + if (old_devtb[devid].data[0] & DTE_FLAG_GV) {
> + tmp = DTE_GCR3_VAL_B(~0ULL) << DTE_GCR3_SHIFT_B;
> + tmp |= DTE_GCR3_VAL_C(~0ULL) << DTE_GCR3_SHIFT_C;
> + old_dev_tbl_cpy[devid].data[1] &= ~tmp;
> + tmp = DTE_GCR3_VAL_A(~0ULL) << DTE_GCR3_SHIFT_A;
> + old_dev_tbl_cpy[devid].data[0] &= ~tmp;
You also need to clear the DTE_FLAG_GV bit.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v9 11/13] iommu/amd: Don't copy GCR3 table root pointer Baoquan He <bhe@redhat.com> - 2017-08-01 13:40 +0200 Re: [PATCH v9 11/13] iommu/amd: Don't copy GCR3 table root pointer Joerg Roedel <jroedel@suse.de> - 2017-08-04 14:30 +0200
csiph-web