[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120222122002.f4932e08.akpm@linux-foundation.org>
Date: Wed, 22 Feb 2012 12:20:02 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Mike Travis <travis@....com>
Cc: Ingo Molnar <mingo@...e.hu>, Jack Steiner <steiner@....com>,
x86@...nel.org, linux-kernel@...r.kernel.org,
Mike Habeck <habeck@....com>
Subject: Re: [PATCH 1/3] x86 PCI: Fix identity mapping for sandy bridge
On Thu, 02 Feb 2012 17:56:51 -0600
Mike Travis <travis@....com> wrote:
> --- linux.orig/drivers/iommu/intel-iommu.c
> +++ linux/drivers/iommu/intel-iommu.c
> @@ -48,8 +48,6 @@
> #define ROOT_SIZE VTD_PAGE_SIZE
> #define CONTEXT_SIZE VTD_PAGE_SIZE
>
> -#define IS_BRIDGE_HOST_DEVICE(pdev) \
> - ((pdev->class >> 8) == PCI_CLASS_BRIDGE_HOST)
> #define IS_GFX_DEVICE(pdev) ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY)
> #define IS_ISA_DEVICE(pdev) ((pdev->class >> 8) == PCI_CLASS_BRIDGE_ISA)
> #define IS_AZALIA(pdev) ((pdev)->vendor == 0x8086 && (pdev)->device == 0x3a3e)
I suppose it would be tiresome to point out what happens when someone
does IS_GFX_DEVICE(pdev + 1).
Macros: Just Don't Do It.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists