Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp127090pxk; Tue, 15 Sep 2020 23:17:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUQKeD5Lr7+FP1Ky0KL89xRq24cgQNXWemnFuVkSuxV14aEWWfyUNwy4EuWoK1axX5NoVx X-Received: by 2002:a17:906:3ca2:: with SMTP id b2mr24429595ejh.460.1600237021937; Tue, 15 Sep 2020 23:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600237021; cv=none; d=google.com; s=arc-20160816; b=UAyupy+6rHx/N02sM2SKPizgHEN9AexBvrxhZ08akvo9RjGCdX4mtDEiACIto+3fDU 6C5+EkjxckdbIWvzcfP9aE1kA5veLJOkISkip660uaVU7Vjn7/cWvMC58HpeOv42hKFH AI2QTmD/9s4tFipb/aj2eKn2AcQqvgV0uH0G+ffN9xuzXaxUD8AWkRtKpO45RMpXqxzb e3x/32mo7xuKULqmTnddnRJU0yZNmGYlKu4q0iT0RkSpBWpMsboItX550HvL3ttz++FF nY+n9K5oGPEfkIHLqmCFJxxB7p3n+aqo9yAf9k6RHmYS/LscptdpxqczayDq7RqKNYUG DIFg== 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=aSSuPLA2NRh2ok2EnqjAxeN64e/IGYorw8/JOhfuacY=; b=Fz+O0FQfFe5dO2IyhawJWMPsngC12Z9RC0Rkd1WC8SgCmNE9igEn8+Cispkt0/vOUG 3aA8D4fhHTzANaGsyGT9vLclIg2Pz/mTbrLRHaOOMoAVChrR3FBrCT29wxABGhjYMfN1 xj4GVecoJJPX4rGbiNWEtNAUl1rJD3uhdq5H1clHM4dJ+t16c7UfIZ6i3ZL542DrPWsb 5nY4qnCDnXHZJdMtRj9Rlhf5rUWnr76a2gLGa2JaiM0Z0UuDDlGxDrUFfgInRdKcUclc EvunEWy0hpGkMhVXlxM9tjBJAIw/t8s0/vsdbvhbxcjBoSomZaRCE4qKrg/GgpGBDAC0 utVw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si12183570edc.112.2020.09.15.23.16.39; Tue, 15 Sep 2020 23:17:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbgIPGOF (ORCPT + 99 others); Wed, 16 Sep 2020 02:14:05 -0400 Received: from verein.lst.de ([213.95.11.211]:51030 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbgIPGOD (ORCPT ); Wed, 16 Sep 2020 02:14:03 -0400 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 Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, Russell King , Santosh Shilimkar , Greg Kroah-Hartman , Jim Quinlan , Nathan Chancellor , Florian Fainelli , Robin Murphy , Rob Herring , Frank Rowand , Ohad Ben-Cohen , Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, arnaud.pouliquen@st.com, loic.pallardy.st.com@lst.de 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915195501.GA3666944@xps15> 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 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.