From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95CEEC433E2 for ; Wed, 16 Sep 2020 06:15:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B5B0208E4 for ; Wed, 16 Sep 2020 06:15:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JrKtJZ5P" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B5B0208E4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SbdgbkB34GIWYV0jrTtt2nDnIPc8ZYwwK9D3Hn5ppc0=; b=JrKtJZ5P3Yi5YIak+EUCaF2iJ ila926szBF5H9CgLMyTJ7r8/Xmq5Jjyudf9qmV/NeqiqjmnZ2of/KrvqZfyAcYv0Ms461IyjZG6HK pLi+PT4h7vHnB3Mg1cqtpwi0Z1Yqa0h7+Ip+41wmutXBnDna5aT1UgZTtziDYCcVDNvbzfyhZL7/d FI1MxKyIFTfxqQZ2HbqJVKAUzUB9KgPG+0uUU9Oc7H0YAdSfVcsVIyO3G/0bgxTKMTEEYRvo2MNey KkIuI8qv8dZkMHWGoxkYnY9xOhdqmQgCf4977WMQQ01dq7JBzEcyG+KGpT8h5tqxsNH4PlkVYi9UK +NqewBY/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIQhh-0004go-7l; Wed, 16 Sep 2020 06:14:05 +0000 Received: from verein.lst.de ([213.95.11.211]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIQhe-0004g9-Bq for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 06:14:03 +0000 Received: by verein.lst.de (Postfix, from userid 2407) id 3122868B05; Wed, 16 Sep 2020 08:13:59 +0200 (CEST) Date: Wed, 16 Sep 2020 08:13:59 +0200 From: Christoph Hellwig To: Mathieu Poirier Subject: Re: [PATCH 6/6] dma-mapping: introduce DMA range map, supplanting dma_pfn_offset Message-ID: <20200916061359.GA8424@lst.de> References: <20200914073343.1579578-1-hch@lst.de> <20200914073343.1579578-7-hch@lst.de> <20200914230147.GA3251212@xps15> <20200915054122.GA18079@lst.de> <20200915195501.GA3666944@xps15> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200915195501.GA3666944@xps15> User-Agent: Mutt/1.5.17 (2007-11-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200916_021402_556082_4AE21FF3 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-sh@vger.kernel.org, linux-pci@vger.kernel.org, linux-remoteproc@vger.kernel.org, Bjorn Andersson , Frank Rowand , Christoph Hellwig , Florian Fainelli , Russell King , linux-acpi@vger.kernel.org, loic.pallardy.st.com@lst.de, Ohad Ben-Cohen , devicetree@vger.kernel.org, Rob Herring , Santosh Shilimkar , Nathan Chancellor , linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, arnaud.pouliquen@st.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Jim Quinlan , Robin Murphy Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 15, 2020 at 01:55:01PM -0600, Mathieu Poirier wrote: > That did the trick - the stm32 platform driver's probe() function completes and > the remote processor is operatinal. > > That being said the value returned by function dma_to_pfn() > is 0x137fff in the original code and 0xfffff with your patches applied. Yes, that is intentional. The old code just applied the range and got an out of range offset, the new one reports the max offset. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel