Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45FFBBA30 for ; Mon, 6 Nov 2023 07:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: by verein.lst.de (Postfix, from userid 2407) id 26CC168AA6; Mon, 6 Nov 2023 08:37:58 +0100 (CET) Date: Mon, 6 Nov 2023 08:37:57 +0100 From: Christoph Hellwig To: Jia He Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, nd@arm.com Subject: Re: [PATCH v4 2/2] dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover all system RAM Message-ID: <20231106073757.GB17734@lst.de> References: <20231028102059.66891-1-justin.he@arm.com> <20231028102059.66891-3-justin.he@arm.com> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231028102059.66891-3-justin.he@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Sat, Oct 28, 2023 at 10:20:59AM +0000, Jia He wrote: > + if (likely(!ops)) > + return !dma_direct_all_ram_mapped(dev); > + > + return false; I've turned his around to make it read a little nicer.