iommu.c (c7d311247b1b03906bc54d578db53f0bc2112674) iommu.c (56fb79514c52947107001ff9313870d76c4c8008)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2007-2010 Advanced Micro Devices, Inc.
4 * Author: Joerg Roedel <jroedel@suse.de>
5 * Leo Duran <leo.duran@amd.com>
6 */
7
8#define pr_fmt(fmt) "AMD-Vi: " fmt

--- 1593 unchanged lines hidden (view full) ---

1602static void clear_dte_entry(struct amd_iommu *iommu, u16 devid)
1603{
1604 struct dev_table_entry *dev_table = get_dev_table(iommu);
1605
1606 /* remove entry from the device table seen by the hardware */
1607 dev_table[devid].data[0] = DTE_FLAG_V | DTE_FLAG_TV;
1608 dev_table[devid].data[1] &= DTE_FLAG_MASK;
1609
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2007-2010 Advanced Micro Devices, Inc.
4 * Author: Joerg Roedel <jroedel@suse.de>
5 * Leo Duran <leo.duran@amd.com>
6 */
7
8#define pr_fmt(fmt) "AMD-Vi: " fmt

--- 1593 unchanged lines hidden (view full) ---

1602static void clear_dte_entry(struct amd_iommu *iommu, u16 devid)
1603{
1604 struct dev_table_entry *dev_table = get_dev_table(iommu);
1605
1606 /* remove entry from the device table seen by the hardware */
1607 dev_table[devid].data[0] = DTE_FLAG_V | DTE_FLAG_TV;
1608 dev_table[devid].data[1] &= DTE_FLAG_MASK;
1609
1610 amd_iommu_apply_erratum_63(devid);
1610 amd_iommu_apply_erratum_63(iommu, devid);
1611}
1612
1613static void do_attach(struct iommu_dev_data *dev_data,
1614 struct protection_domain *domain)
1615{
1616 struct amd_iommu *iommu;
1617 bool ats;
1618

--- 2043 unchanged lines hidden ---
1611}
1612
1613static void do_attach(struct iommu_dev_data *dev_data,
1614 struct protection_domain *domain)
1615{
1616 struct amd_iommu *iommu;
1617 bool ats;
1618

--- 2043 unchanged lines hidden ---