lkml.org 
[lkml]   [2008]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/22] AMD IOMMU: use calc_devid in prealloc_protection_domains
    Date
    Impact: cleanup

    Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
    ---
    arch/x86/kernel/amd_iommu.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
    index 8363731..0734ae9 100644
    --- a/arch/x86/kernel/amd_iommu.c
    +++ b/arch/x86/kernel/amd_iommu.c
    @@ -1542,7 +1542,7 @@ void prealloc_protection_domains(void)
    u16 devid;

    while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
    - devid = (dev->bus->number << 8) | dev->devfn;
    + devid = calc_devid(dev->bus->number, dev->devfn);
    if (devid > amd_iommu_last_bdf)
    continue;
    devid = amd_iommu_alias_table[devid];
    --
    1.5.6.4



    \
     
     \ /
      Last update: 2008-12-15 15:27    [W:0.028 / U:0.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site