Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3618209ybh; Mon, 5 Aug 2019 22:24:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmayBA+R+gFf4YljYqKEAo/N50n3AnyEEnFHq4GwXK2RQ2X8wZdiEhDUvKO+hSuxeGHHzL X-Received: by 2002:a62:483:: with SMTP id 125mr1801113pfe.245.1565069061727; Mon, 05 Aug 2019 22:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565069061; cv=none; d=google.com; s=arc-20160816; b=f+x5x7vZFDR8A+6pTCPWM2QyKzB8eMxU3wZYMqKbDCXEqkyzlZemjZps6QpTpziKQt eSLt1Cr0aqB4VkRO+br6A37eWOgFHu79XeKj19/fXJw9zmPwZ9+8QN4TOV+206J4NkrP yeCx0LEU+TFYoc4b2LgU5hDJSrGZQ917Gla1BLv9nEVTEvYC0R/Ffj+MABkssedbsPzN yDCBnk9mPXIjFBO+R3MdRxDgYbr1gi6d6S+5Y6KbVE5jFKgSDsv3gs+bjhWe1zB7FFcP 0jlY+eUmzttpYLxGdUkN9Powq4K0TMg4ZuSJg97l8cLmEN1OUsrfD7M8Y5VrRC1S6whs TZoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=h9sxm88dkLJ7FKWGD3Kq/U0N4QiCQ3QtSyjLi92u9fk=; b=j15CGDti1X0SD8fn5cuo2tTUMnnYriUogmXU5ayfGB523TzVvj/qa5uGrxSm7kwjyi T4dt89oyxGaixSrnrNWuAQfi7EDhQQWLv2u6MtRK6GMXjFq4Mxfou2U9AhQzJzb7rYnY iGHCrwID47TL+S8jtK7aBvQdenAekugF+aIOdO67N47ALRz0g3ZLP346yj6wwBSEzTUv 7eT1mucMVwW2O9CmKsb2bU+6iPyOHWOO2XY6Y9xAqKyKwWDU1m80DHJRCmIgL/YCDvsm U3vLgXvTl2JlryVFgJTLknoAdZrVQQUrXdmsKnjX3JHeKSvEIFMW2bWMGo/X/UhNNWUY 2XvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i32si14004619pje.44.2019.08.05.22.24.06; Mon, 05 Aug 2019 22:24:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731644AbfHFFXa (ORCPT + 99 others); Tue, 6 Aug 2019 01:23:30 -0400 Received: from verein.lst.de ([213.95.11.211]:53115 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731625AbfHFFX3 (ORCPT ); Tue, 6 Aug 2019 01:23:29 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A815768B05; Tue, 6 Aug 2019 07:23:25 +0200 (CEST) Date: Tue, 6 Aug 2019 07:23:25 +0200 From: Christoph Hellwig To: Lucas Stach Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, patchwork-lst@pengutronix.de, Atish Patra Subject: Re: [PATCH] dma-direct: don't truncate dma_required_mask to bus addressing capabilities Message-ID: <20190806052325.GB13409@lst.de> References: <20190805155153.11021-1-l.stach@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190805155153.11021-1-l.stach@pengutronix.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 05:51:53PM +0200, Lucas Stach wrote: > The dma required_mask needs to reflect the actual addressing capabilities > needed to handle the whole system RAM. When truncated down to the bus > addressing capabilities dma_addressing_limited() will incorrectly signal > no limitations for devices which are restricted by the bus_dma_mask. > > Fixes: b4ebe6063204 (dma-direct: implement complete bus_dma_mask handling) > Signed-off-by: Lucas Stach Yeah, this looks sensible. Atish, can you check if this helps on the HiFive board as well?