From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754634AbYK0LqA (ORCPT ); Thu, 27 Nov 2008 06:46:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752906AbYK0Lpw (ORCPT ); Thu, 27 Nov 2008 06:45:52 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:43276 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbYK0Lpv (ORCPT ); Thu, 27 Nov 2008 06:45:51 -0500 Date: Thu, 27 Nov 2008 12:45:25 +0100 From: Ingo Molnar To: Joerg Roedel , Jesse Barnes Cc: Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, stable@kernel.org Subject: Re: [PATCH] x86: always define DECLARE_PCI_UNMAP* macros Message-ID: <20081127114525.GC29013@elte.hu> References: <1227210596-1196-1-git-send-email-joerg.roedel@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1227210596-1196-1-git-send-email-joerg.roedel@amd.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Joerg Roedel wrote: > Currently these macros evaluate to a no-op except the kernel is > compiled with GART or Calgary support. But we also need these macros > when we have SWIOTLB, VT-d or AMD IOMMU in the kernel. Since we > always compile at least with SWIOTLB we can define these macros > always. This patch is also for stable backport for the same reason > the SWIOTLB default selection patch is. > > Cc: stable@kernel.org > Signed-off-by: Joerg Roedel > --- > arch/x86/include/asm/pci_64.h | 14 -------------- > 1 files changed, 0 insertions(+), 14 deletions(-) applied to tip/x86/urgent (for v2.6.28), as this is a DMA mapping bugfix for IOMMUs. If the AMD IOMMU is turned on in the .config but CONFIG_GART_IOMMU is off (a rare but possible combo), we'd leak on unmap and crash the box quickly. Jesse, is that path of upstream merge fine with you? Ingo