Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4576864pxb; Tue, 31 Aug 2021 08:19:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1/k5O8Tb2PqryIhhAGzs3nW0WsR2Mz2vIMYW3zEBvkHsU+4Woo/KCIp+gX9rdST0kHl0y X-Received: by 2002:a05:6402:190f:: with SMTP id e15mr29972238edz.171.1630423195806; Tue, 31 Aug 2021 08:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630423195; cv=none; d=google.com; s=arc-20160816; b=BSVU4oHZ3MV5aWcxGQV2PjLFm8Y+xikC1GegpccB6aTJXW8n/526ftuHBTIv7pwb3m NRxfD4uuExG19mjvKMVA3NpxbiKet0hTfvQFfutCRBZgvPryfymrATuy7sSzW2ALXLHi kefNRqYyL9oPoKKYnbr3S4nDmf38BHvr7HthlTRXey+E5tze8VdWDT2yMaR+/QIox/Ml Xho6IINGswNntbF/bWX0gUIPU3THhC9ZrhZvyDS4O5X2AZmT0ko0w87ccoJjHPP/7Blz Cnt2hFczaZouXTS7k0E8giQS85jY0l9nZxaRVWBjQAxH7nGI1BlXz2xwjRROYmFkSEy4 agog== 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=XslhMKW34mVTSAMwuh6TY+7jhzyMAVt7+aA+EKoJPDw=; b=QkmRsAol/BsjhczPzNPFuyqrtxPmE+QFU7JWtSaQn0kM1I+jIfXrS76CbMwJxKqRTM C/u7hNs4tlBGdNucC48Uj/TPieql20bI8pLykLNdERh9No2S+bnih2aQqLeF7wsLq0H9 ZtSRP8Yw3QyDWxLWU2IZrenNDOFDPr0KC9iEN3MUuyaRD/nu04vidXHex+hNYhBW/sJL JGRo6FT1JDOvlH4bbcHsBEvXbJX2ns/7sWGkH4ZrUw1tv9Z3vaCc5zeFpFjOXzLnF5it o9UAmKL0TquB38eC/qQIzlZCVx64zLFqgi6ZnBVVc4aikMOeZ+GTIv206e2lfgIt82HR fFQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeyrkZc+; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si11201346edd.28.2021.08.31.08.19.29; Tue, 31 Aug 2021 08:19:55 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=OeyrkZc+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238058AbhHaPSr (ORCPT + 99 others); Tue, 31 Aug 2021 11:18:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:59810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233369AbhHaPSr (ORCPT ); Tue, 31 Aug 2021 11:18:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5432360724; Tue, 31 Aug 2021 15:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630423071; bh=Gze4tbWximZZAQoREaDEMclW35VaWPdDTv5B4j6qHX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OeyrkZc+CBDZ1kqmQ9WpxRHA7iBGHgRCtg6iJhsdEAhaiG4ZStFXL2Mm7pDluNsMW gXi28iVYXOjEXS6s7DOi5h5kKTD/9rtqErELDvWJeFP4UPF8ork8X80pXNeYQherK0 fBJ4Q0fnA8wPw5gk+eSwWOzoiERQJ0ajAU2SnFwkXBUE268P0zkU0ktzj2X9dO9w2b zZKGAIdeyAcEQYoua1Ivq2uteKDRRhzi8E9eou4/LhVp0G7tVUBJGr6X62tNOHv+vQ gsk4f71fg6bpdbge4+rkUO5SPdD65cUbgo9yQBI6qS58/xse/Q1Huo+ts5ZUxZ6mIN w6QIz/QPOaUPA== Date: Tue, 31 Aug 2021 16:17:47 +0100 From: Will Deacon To: Claire Chang Cc: hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, konrad.wilk@oracle.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux@roeck-us.net Subject: Re: [PATCH] swiotlb: use depends on for DMA_RESTRICTED_POOL Message-ID: <20210831151746.GB32001@willie-the-truck> References: <20210827034802.1065294-1-tientzu@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210827034802.1065294-1-tientzu@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 27, 2021 at 11:48:02AM +0800, Claire Chang wrote: > Use depends on instead of select for DMA_RESTRICTED_POOL; otherwise it > will make SWIOTLB user configurable and cause compile errors for some > arch (e.g. mips). > > Fixes: 0b84e4f8b793 ("swiotlb: Add restricted DMA pool initialization") > Reported-by: Guenter Roeck > Signed-off-by: Claire Chang > --- > kernel/dma/Kconfig | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig > index fd4db714d86b..1b02179758cb 100644 > --- a/kernel/dma/Kconfig > +++ b/kernel/dma/Kconfig > @@ -82,8 +82,7 @@ config SWIOTLB > > config DMA_RESTRICTED_POOL > bool "DMA Restricted Pool" > - depends on OF && OF_RESERVED_MEM > - select SWIOTLB > + depends on OF && OF_RESERVED_MEM && SWIOTLB > help > This enables support for restricted DMA pools which provide a level of > DMA memory protection on systems with limited hardware protection Acked-by: Will Deacon Will