From patchwork Fri Nov 21 16:26:01 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 10041 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 63435DDDEF for ; Sat, 22 Nov 2008 03:26:39 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756384AbYKUQ0f (ORCPT ); Fri, 21 Nov 2008 11:26:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756351AbYKUQ0f (ORCPT ); Fri, 21 Nov 2008 11:26:35 -0500 Received: from outbound-va3.frontbridge.com ([216.32.180.16]:3511 "EHLO VA3EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755569AbYKUQ0a (ORCPT ); Fri, 21 Nov 2008 11:26:30 -0500 Received: from mail34-va3-R.bigfish.com (10.7.14.251) by VA3EHSOBE004.bigfish.com (10.7.40.24) with Microsoft SMTP Server id 8.1.291.1; Fri, 21 Nov 2008 16:26:30 +0000 Received: from mail34-va3 (localhost.localdomain [127.0.0.1]) by mail34-va3-R.bigfish.com (Postfix) with ESMTP id 990C6EB02F8; Fri, 21 Nov 2008 16:26:29 +0000 (UTC) X-BigFish: VPS3(zzzzzzz32i43j65h) X-Spam-TCS-SCL: 4:0 X-FB-SS: 5, Received: by mail34-va3 (MessageSwitch) id 1227284788263445_8474; Fri, 21 Nov 2008 16:26:28 +0000 (UCT) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail34-va3.bigfish.com (Postfix) with ESMTP id 15DC4D004D; Fri, 21 Nov 2008 16:26:28 +0000 (UTC) Received: from svlb1twp02.amd.com ([139.95.250.35]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id mALGQJUV014083; Fri, 21 Nov 2008 08:26:22 -0800 X-WSS-ID: 0KAOYZJ-04-Y1B-01 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 296B01103BD; Fri, 21 Nov 2008 08:26:07 -0800 (PST) Received: from SSVLEXMB1.amd.com ([139.95.53.181]) by SSVLEXBH1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Nov 2008 08:26:13 -0800 Received: from SF36EXMB1.amd.com ([172.19.4.24]) by SSVLEXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Nov 2008 08:26:13 -0800 Received: from lemmy.localdomain ([165.204.77.10]) by SF36EXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Nov 2008 17:26:10 +0100 Received: by lemmy.localdomain (Postfix, from userid 41430) id 67F0153C44; Fri, 21 Nov 2008 17:26:10 +0100 (CET) From: Joerg Roedel To: Ingo Molnar , Thomas Gleixner CC: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, iommu@lists.linux-foundation.org, Joerg Roedel Subject: [PATCH 01/10] x86: add Kconfig entry for DMA-API debugging Date: Fri, 21 Nov 2008 17:26:01 +0100 Message-ID: <1227284770-19215-2-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.5.6.4 In-Reply-To: <1227284770-19215-1-git-send-email-joerg.roedel@amd.com> References: <1227284770-19215-1-git-send-email-joerg.roedel@amd.com> X-OriginalArrivalTime: 21 Nov 2008 16:26:10.0459 (UTC) FILETIME=[DD0F06B0:01C94BF5] MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Impact: adds a new Kconfig option Signed-off-by: Joerg Roedel --- arch/x86/Kconfig.debug | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 2a3dfbd..d4fafd5 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -162,6 +162,18 @@ config DOUBLEFAULT option saves about 4k and might cause you much additional grey hair. +config DMA_API_DEBUG + default n + bool "Enable debugging of DMA-API usage" + depends on X86 + help + Enable this option to debug the use of the DMA API by device drivers. + With this option you will be able to detect common bugs in device + drivers like double-freeing of DMA mappings or freeing mappings that + were never allocated. + This option causes a performance degredation. Use only if you want to + debug device drivers. If unsure, say N. + config IOMMU_DEBUG bool "Enable IOMMU debugging" depends on GART_IOMMU && DEBUG_KERNEL