Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3662606pxu; Sun, 11 Oct 2020 19:17:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCSwlocT1QKUpjOCPLQFbx8rNgUMlmCtxYgu3sGenghDmbIkCGsZaMCFWHiEHzglev7VaJ X-Received: by 2002:a50:cf8a:: with SMTP id h10mr11991249edk.43.1602469047181; Sun, 11 Oct 2020 19:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602469047; cv=none; d=google.com; s=arc-20160816; b=xfNiv/F6tR98jVPrRrkeSsKzdnctGu/I0bbc2Sjea+tlxjgZVaPmSZWjvm5Jvl13oP Y+iSMH1E59xAbCJ7ehIDVaZsAKODbu6y3PbRo7fQo1WHuDrb7SMl7ZwFEfwxyC64UvpQ FWWfgN+W5y0QeRkyn+JUu2e82aRTRg19iBMmdnBEcrT/YA21UUY19ZTdmtCt4xLqGXPI kiR/Y0neM8oOfUBnFJTLTMeT+TDa6oV6OMYUeFBWY/f3THZDeR9qmFaBQhYu3/mv34cE PUOvOMRtP52u5SC1V+nevBqR6jVgbNYGzUVhrrd24n/9Dplq0RV6fk1DJa5gcE66gn/O k1zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w6kPzjUwV48C4wvHgsl3DA4BvdGnWqy7kobVRdbhSlk=; b=l4/8Ap0A3FkpebghiO91xPlnH1OBgloR5uTVV3bOH5MHTR9ILAm/n0lcFf52KAZUGc 25ZiK+neeHyXFMnD2Dv6xxbkJ5TH/2iihP9va8LoSctwi1mLTGsaL7/YbeJz3ni/4gb0 /TBlH2eYPUJA6xVP7mNf1AO/zSe/2gIOeDKhobVY2+f+eQAuBbpN3ri24qsHNqsXcRbr lZHOZzoXrTfpxEQ3PzQOQmnyi7msxkFvJmYsyOGeQCy/HO2US8n4diVcqZXkb2r9QJRq RVRSmZyM46gA5WhK1/nt/XLvpvt0wYx48jQk363vRlTzpwsQpOl2Z4d/WrJQms64dmN8 CTgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=VI1DNBdu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si14343342edc.210.2020.10.11.19.17.04; Sun, 11 Oct 2020 19:17:27 -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=@broadcom.com header.s=google header.b=VI1DNBdu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729168AbgJKUgg (ORCPT + 99 others); Sun, 11 Oct 2020 16:36:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729100AbgJKUgf (ORCPT ); Sun, 11 Oct 2020 16:36:35 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4B8C0613CE for ; Sun, 11 Oct 2020 13:36:35 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id h5so6673570wrv.7 for ; Sun, 11 Oct 2020 13:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w6kPzjUwV48C4wvHgsl3DA4BvdGnWqy7kobVRdbhSlk=; b=VI1DNBdu4z3hXqOd9t56tRc+rIzO69BfQuH7Psg1+9Y43n0uHOCWuNxmn74c5mNxuQ YZQeMowKIMMnemk2nIoltClw8yOOtZ5iOd3H1pGwLA/5AHNV5XIdUHoKTroJMaTwuxjm QqnVP7vzdZjfQJj3742xVRUb+bInYtBfMB66g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w6kPzjUwV48C4wvHgsl3DA4BvdGnWqy7kobVRdbhSlk=; b=rhUrWN5WdaRK6sHszYaP2nxXIXvNB9SIPL4V+C8IeqquIsoXlSyGqNAVDegohcNLpM ss9T5oNty0Ph2//4o9lqzVOz8Gi3h1Alx0VqhXf4tglrqfvOIs5yO1lCC8yeb+QrdaON jX4ukEyN0YoqI1mgDLkb7IpjuUBYdcbGeh+SpI7MntDYMmqitajwtOQ7u60KWVEPf6+3 KF8Chk5WjLEts5O84LQw+kldYN9OqPLXoSlXuooLJfC+EiY+5/N0X5qA+yMShxtjxIfX qWoe1O5hwNAp9lAC6fGvMgrOHsgiBypFhA4M7t6/tVvHpF4UPuLDVtVKIEuBqoVhP/IF yQdg== X-Gm-Message-State: AOAM5307x328Si+WUeuMT793tNnTw0QiHtkescg2DC6uDItxjj8TnTH0 uI3V9/X8r/Xt44Sx+c/5El+iMIM1Y0C6GyZg/Zfh9A== X-Received: by 2002:adf:ea4d:: with SMTP id j13mr3714971wrn.345.1602448593669; Sun, 11 Oct 2020 13:36:33 -0700 (PDT) MIME-Version: 1.0 References: <20200924090349.GF27174@8bytes.org> <20200924092546.GJ27174@8bytes.org> <20200924095629.GL27174@8bytes.org> <20201011055258.22337d66@canb.auug.org.au> In-Reply-To: <20201011055258.22337d66@canb.auug.org.au> From: Jim Quinlan Date: Sun, 11 Oct 2020 16:36:22 -0400 Message-ID: Subject: Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables To: Stephen Rothwell Cc: Naresh Kamboju , Joerg Roedel , Robin Murphy , Poonam Aggrwal , Rob Herring , Joerg Roedel , Arnd Bergmann , Richard Weinberger , open list , lkft-triage@lists.linaro.org, Linux-Next Mailing List , linux-mtd@lists.infradead.org, Miquel Raynal , Suram Suram , masonccyang@mxic.com.tw, Will Deacon , "Z.Q. Hou" , Christoph Hellwig , Florian Fainelli Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000037e69d05b16b238f" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000037e69d05b16b238f Content-Type: text/plain; charset="UTF-8" On Sat, Oct 10, 2020 at 2:53 PM Stephen Rothwell wrote: > > Hi Naresh, > > Just adding Christoph and Jim to cc] > > On Fri, 9 Oct 2020 19:26:24 +0530 Naresh Kamboju wrote: > > > > On Fri, 9 Oct 2020 at 19:24, Naresh Kamboju wrote: > > > > > > > > > > > > On Thu, 24 Sep 2020 at 15:26, Joerg Roedel wrote: > > > > > > > > On Thu, Sep 24, 2020 at 10:36:47AM +0100, Robin Murphy wrote: > > > > > Yes, the issue was introduced by one of the changes in "dma-mapping: > > > > > introduce DMA range map, supplanting dma_pfn_offset", so it only existed in > > > > > the dma-mapping/for-next branch anyway. > > > > > > > FYI, > > The reported problem still exists on 5.9.0-rc8-next-20201009. > > > > [ 1.843814] Driver must set ecc.strength when using hardware ECC > > [ 1.849847] WARNING: CPU: 4 PID: 1 at > > drivers/mtd/nand/raw/nand_base.c:5687 nand_scan_with_ids+0x1450/0x1470 > > [ 1.859676] Modules linked in: > > [ 1.862730] CPU: 4 PID: 1 Comm: swapper/0 Not tainted > > 5.9.0-rc8-next-20201009 #1 > > [ 1.870125] Hardware name: Freescale Layerscape 2088A RDB Board (DT) > > [ 1.876478] pstate: 40000005 (nZcv daif -PAN -UAO -TCO BTYPE=--) > > [ 1.882483] pc : nand_scan_with_ids+0x1450/0x1470 > > [ 1.887183] lr : nand_scan_with_ids+0x1450/0x1470 Hi, I'm having a hard time coming up with a theory regarding how a commit concerning DMA offsets can affect the operation of a NAND driver that appears not to use DMA or the dma-ranges property. Does anyone else have some ideas, or is there perhaps someone familiar with this test configuration that I can correspond with to get to the bottom of the warning? Thanks, Jim Quinlan Broadcom STB > > > > full test log, > > https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20201009/testrun/3284876/suite/linux-log-parser/test/check-kernel-warning-92014/log > > > > > > > > > > Okay, alright then. > > > > > > > > - Naresh > > -- > Cheers, > Stephen Rothwell --00000000000037e69d05b16b238f Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQQwYJKoZIhvcNAQcCoIIQNDCCEDACAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2YMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEAxMqR2xvYmFsU2lnbiBQZXJzb25h bFNpZ24gMiBDQSAtIFNIQTI1NiAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA tpZok2X9LAHsYqMNVL+Ly6RDkaKar7GD8rVtb9nw6tzPFnvXGeOEA4X5xh9wjx9sScVpGR5wkTg1 fgJIXTlrGESmaqXIdPRd9YQ+Yx9xRIIIPu3Jp/bpbiZBKY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