From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH 03/10] x86: add initialization code for DMA-API debugging Date: Sun, 23 Nov 2008 14:04:19 +0100 Message-ID: <20081123130419.GA570@elte.hu> References: <1227284770-19215-1-git-send-email-joerg.roedel@amd.com> <1227284770-19215-4-git-send-email-joerg.roedel@amd.com> <20081121174348.GB4336@elte.hu> <20081122094807.GK29705@8bytes.org> <20081123112818.GC29663@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Joerg Roedel , netdev@vger.kernel.org, Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org To: Joerg Roedel Return-path: Received: from mx3.mail.elte.hu ([157.181.1.138]:56699 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756970AbYKWNEe (ORCPT ); Sun, 23 Nov 2008 08:04:34 -0500 Content-Disposition: inline In-Reply-To: <20081123112818.GC29663@elte.hu> Sender: netdev-owner@vger.kernel.org List-ID: Another generic suggestion: Why not just replace dma_ops with a debug version? That way it could be a runtime feature based off the already existing DMA op callbacks, without any extra overhead. I'd prefer such a solution much more with an x86 architecture maintainer hat on, because this way distributions could enable this debug feature (with the facility being off by default) without worrying about the wrapping overhead. This would basically be a special variant of stacked DMA ops support. Ingo