Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp320691pxb; Wed, 13 Jan 2021 04:39:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6oI36jpZmHi3BkYj76K8E+NmaAoh1wr91Gk+saxJ3RtAq6GsShwFd12QR+iNGaEnT8Tei X-Received: by 2002:a17:906:af96:: with SMTP id mj22mr1435864ejb.127.1610541598402; Wed, 13 Jan 2021 04:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610541598; cv=none; d=google.com; s=arc-20160816; b=iTcxRlvH5n9UB99DTqaSETWWDa8v7G06UYv/gycGjHWyZwkhvtJAX4+1VVqiOxWXGF zFeB5miwgwi6DL6D3Zbd0Vu77//xBu6wz0vKgTunhOGBYuODkm4+ztd1P0P1N9cQ5Q03 rHQZ/8dRga/oTHDLzhI+UjT/6E6uEax3L1kv3GlHDeBkRLl0n614j1AlIrLtzTA2bSQa PNolhzu57aZp8yAhnNdC6xxa4ll+6C1cFifIyLa1i1zyVX7k5kcmMb6oL00N1nrW4YSb aMx7em+oN4sx8QQnz9EQy1i7A+bTlW5RZ01Tz9z02Y8lwmiUbCEKhdPxxqS3TQgSq+KI CcPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=I2Fqg5xZ2yJKNedlhjd/6ApTRKqq6W6RXydFQTwBpUs=; b=WZQfSQjE16Qlor8CKYn5qncaDJhuaqRh5x9+FaWoGc6xx4Y173aj2fhh69EMHKqZ6g qMez6b20EHx/X/tgGXWl7qY3nMfveGlxEcMXUtqfc5SUlrjBYCrUe8HAbKb/Po4/0xVw tvy/cc2I7nf0B5rFE5SWcQwZf9APN8Eb54ZrT+y4xR3XiRiw8DGDtqimbho0mALiXjV3 +tu0FriFoFORojle4VTd42F1sXxuiGuGgmOO8tkb41Rspalz5aceQmmMs2O4iViEiGF4 B3Xm739LIg1RHE0PYnDJC2pbEztjR3Ymw0Bu+uskyqMIvGbKWvth9hwiWnxDIPZO5EsM Pidw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si672027edo.56.2021.01.13.04.39.34; Wed, 13 Jan 2021 04:39:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbhAMMiI (ORCPT + 99 others); Wed, 13 Jan 2021 07:38:08 -0500 Received: from verein.lst.de ([213.95.11.211]:59971 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726459AbhAMMiI (ORCPT ); Wed, 13 Jan 2021 07:38:08 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id B5B9868AFE; Wed, 13 Jan 2021 13:37:21 +0100 (CET) Date: Wed, 13 Jan 2021 13:37:21 +0100 From: Christoph Hellwig To: Greg KH Cc: Christoph Hellwig , Claire Chang , robh+dt@kernel.org, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, joro@8bytes.org, will@kernel.org, frowand.list@gmail.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, m.szyprowski@samsung.com, robin.murphy@arm.com, grant.likely@arm.com, xypron.glpk@gmx.de, treding@nvidia.com, mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, saravanak@google.com, rafael.j.wysocki@intel.com, heikki.krogerus@linux.intel.com, andriy.shevchenko@linux.intel.com, rdunlap@infradead.org, dan.j.williams@intel.com, bgolaszewski@baylibre.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, xen-devel@lists.xenproject.org, tfiga@chromium.org, drinkcat@chromium.org Subject: Re: [RFC PATCH v3 2/6] swiotlb: Add restricted DMA pool Message-ID: <20210113123721.GA1098@lst.de> References: <20210106034124.30560-1-tientzu@chromium.org> <20210106034124.30560-3-tientzu@chromium.org> <20210113115126.GB29376@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 01:29:05PM +0100, Greg KH wrote: > > > Why does this have to be added here? Shouldn't the platform-specific > > > code handle it instead? > > > > The whole code added here is pretty generic. What we need to eventually > > do, though is to add a separate dma_device instead of adding more and more > > bloat to struct device. > > I have no objections for that happening! I'm pretty sure you agreed to it before in fact. Now someone just needs to find the time to do this heavy lifting, where "someone" probably means me.