Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp492599pxu; Thu, 7 Jan 2021 10:02:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPaw3GgAyuJvW9EnUjcP243/COt/HgL4HzIB4XmwqVYx2XCRQoaGp9LSXMf40It+mqV5kg X-Received: by 2002:a17:906:134f:: with SMTP id x15mr7231812ejb.278.1610042520158; Thu, 07 Jan 2021 10:02:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610042520; cv=none; d=google.com; s=arc-20160816; b=w9I0R7G5pvgLxKnfsXutEgfkYi9iXqH33r6YRf2uA890cDBtWWVgHmoBgZMHpYHvte 1beO7CrOC9N1u33imS6t1bat4AKboUXBQH4dEoN0qclzygCJOCxnoDyVJJRypkxTMu6b x9TcAC0/qJT7jGg8p2st4a97KJOl1/QJwWTFag7sv1yh6+mmjtxa8D1HOdqqTiHLc/Wu IWPnP0KcX5FZuSiC2SGRYyNgVkzO2n5gFGKA64e7w1W/6aCct1TyEaSeE5FYrbTdocPc rW/rSJyaw8PGENY0OlosxTfdUqT5TruYK6L2KelJ+LiTgJVzOWfYgsjG8iIl5I8zFid0 Gmmw== 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 :dkim-signature; bh=kvAvwbOOeMZscVufplocdrmX5bmXMbY8zl2FvlMlnz0=; b=r01mLuQHTZvjWbfozTbbmZNpklkaPvn7De8tsW0PuesGkitDcd33kUbCVKr56M4TSY /6SYP+FOkZFZUOW6vzqi8LKoGLXS2k1nSQJHtfNX6+t1lGEscSbt7gY7BqstoGTXqFi3 P/d4dMY5N5M20/ud0W7+/EfddNlknP0uEBKCXAF9gW736Y3tuP36+J9vpzwreli63B/n MTNIIRfC/Wg2CGA200vIdfY1Mz7Yc0+rlOUn569c7JxU7BtQCEuXeRY3mU7pyOO1K51R 2L2VBVH9TQuf7+p8Ujg2uktBbmjAypjaPdt+nv8l07BDOC4BRZ9A7KPYyK5N4BSSnGXc 7V4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=c2pjUMyO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nt21si2392054ejb.739.2021.01.07.10.01.36; Thu, 07 Jan 2021 10:02:00 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=c2pjUMyO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbhAGR7w (ORCPT + 99 others); Thu, 7 Jan 2021 12:59:52 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:43182 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbhAGR7v (ORCPT ); Thu, 7 Jan 2021 12:59:51 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 107HsvN8089524; Thu, 7 Jan 2021 17:58:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=kvAvwbOOeMZscVufplocdrmX5bmXMbY8zl2FvlMlnz0=; b=c2pjUMyOuFSlsI0qTgNl9X2BTN0fwdZV5CjgZLw/fK5pJGjqgudnCOrZXdgkYHh00CxF LiFA0a++EWjmEAnNdlWfNpXXZz6ITazKwFJmmLt90OS5obpTmGor0Edc3an16aV6cPrq BuZjy4lLXobdVm82Y4aeL6YU21ZsSRHrYPmEkl7OXFIOkrzzFmym3rhxU7m0zFdXRJ9J 7G3IFUyGpFK3HKmg0T9vQqyw4vf9WJsuWCiEWBtSqE/lg7w8qHbcX6uwbYJqRhlTzP3U r9MbFlxO7AMNgXzkKQ9sIxqWZq9w0c4dYQTdzU1G7jk7cpsQeLvms3CnkhfW0q8cELG1 lg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 35wcuxwy8k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 07 Jan 2021 17:58:15 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 107HuSg5055718; Thu, 7 Jan 2021 17:58:14 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 35w3qu1hjs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 07 Jan 2021 17:58:14 +0000 Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 107Hvwcu012048; Thu, 7 Jan 2021 17:57:58 GMT Received: from char.us.oracle.com (/10.152.32.25) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 07 Jan 2021 17:57:43 +0000 Received: by char.us.oracle.com (Postfix, from userid 1000) id DE3C86A00C3; Thu, 7 Jan 2021 12:57:40 -0500 (EST) Date: Thu, 7 Jan 2021 12:57:40 -0500 From: Konrad Rzeszutek Wilk To: Claire Chang Cc: Rob Herring , mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , will@kernel.org, Frank Rowand , boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, Christoph Hellwig , Marek Szyprowski , Robin Murphy , grant.likely@arm.com, xypron.glpk@gmx.de, Thierry Reding , mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, Greg KH , Saravana Kannan , rafael.j.wysocki@intel.com, heikki.krogerus@linux.intel.com, Andy Shevchenko , rdunlap@infradead.org, dan.j.williams@intel.com, Bartosz Golaszewski , linux-devicetree , lkml , linuxppc-dev@lists.ozlabs.org, "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , xen-devel@lists.xenproject.org, Tomasz Figa , Nicolas Boichat Subject: Re: [RFC PATCH v3 2/6] swiotlb: Add restricted DMA pool Message-ID: <20210107175740.GA16519@char.us.oracle.com> References: <20210106034124.30560-1-tientzu@chromium.org> <20210106034124.30560-3-tientzu@chromium.org> <20210106185241.GA109735@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9857 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxscore=0 spamscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101070105 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9857 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 clxscore=1015 spamscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101070105 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 08, 2021 at 01:39:18AM +0800, Claire Chang wrote: > Hi Greg and Konrad, > > This change is intended to be non-arch specific. Any arch that lacks DMA access > control and has devices not behind an IOMMU can make use of it. Could you share > why you think this should be arch specific? The idea behind non-arch specific code is it to be generic. The devicetree is specific to PowerPC, Sparc, and ARM, and not to x86 - hence it should be in arch specific code. > > Thanks!