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=-6.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 1AABAC433DB for ; Tue, 9 Mar 2021 15:49:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EED5C6527C for ; Tue, 9 Mar 2021 15:49:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231846AbhCIPsk (ORCPT ); Tue, 9 Mar 2021 10:48:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:51566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbhCIPsb (ORCPT ); Tue, 9 Mar 2021 10:48:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 83B2F6525F; Tue, 9 Mar 2021 15:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615304910; bh=BHEDDhLgphZzaj7IBNRHUe5wpWfdaAtzCDRMEm59Td4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WV8BkwWZHuegaK421aKCzu65nlfF3NR1LiCQEch1R/BhBMgYtEAKwqpqZ0oAa0FKU Vqnu4Lz1RgfkGn+3MfHh1WU1PopTrZjaEjtv68Ryzzkf0H2cJuwcLBomHX4MCrsLNi Lpi1WH1M6jxsHhhih0memdEl5dnmxjx/ffZJGrYTxDeK8DIetC14jnHXQNGbrntNC4 uTU1k+WXl9F4whkRJxEj5pqibQKgz9Q4/T9TcnVILkLUDkWciHGdYl+tkL0x392xml uMblIyAk3vLeG1w/tHr+xlhyHF6qT+PYGYh9Ravu3dih1d3RAnDrIV9imALbVrDSKN W+73kDyiaZI3A== Received: by mail-ed1-f48.google.com with SMTP id dm26so21029195edb.12; Tue, 09 Mar 2021 07:48:30 -0800 (PST) X-Gm-Message-State: AOAM532Z53VYnE0rCbCVfuxALHWJi7FvBYrIkKbiH0Ar1Y81PrScTMbU DKCNeLJkeaH897DPdhciT1bZJxEFIUzZL+wv3w== X-Google-Smtp-Source: ABdhPJxV5XCnS45TAr4+B2+ig1cxhxtG4MMbYqVXoYfVd4hAqlaPl8H/s/yCm4qWvnmTnSV0ZHH3LccBzcWQZpWr2JY= X-Received: by 2002:a05:6402:c88:: with SMTP id cm8mr4880507edb.62.1615304909030; Tue, 09 Mar 2021 07:48:29 -0800 (PST) MIME-Version: 1.0 References: <20210304213902.83903-1-marcan@marcan.st> <20210304213902.83903-13-marcan@marcan.st> <6e4880b3-1fb6-0cbf-c1a5-7a46fd9ccf62@marcan.st> <20210308211306.GA2920998@robh.at.kernel.org> In-Reply-To: From: Rob Herring Date: Tue, 9 Mar 2021 08:48:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT PATCH v3 12/27] of/address: Add infrastructure to declare MMIO as non-posted To: Arnd Bergmann Cc: Hector Martin , linux-arm-kernel , Marc Zyngier , Olof Johansson , Krzysztof Kozlowski , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , Mark Rutland , Andy Shevchenko , Greg Kroah-Hartman , Jonathan Corbet , Catalin Marinas , Christoph Hellwig , "David S. Miller" , DTML , "open list:SERIAL DRIVERS" , Linux Doc Mailing List , linux-samsung-soc , "open list:GENERIC INCLUDE/ASM HEADER FILES" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 8, 2021 at 2:56 PM Arnd Bergmann wrote: > > On Mon, Mar 8, 2021 at 10:14 PM Rob Herring wrote: > > On Mon, Mar 08, 2021 at 09:29:54PM +0100, Arnd Bergmann wrote: > > > On Mon, Mar 8, 2021 at 4:56 PM Rob Herring wrote: > > > > Let's just stick with 'nonposted-mmio', but drop 'posted-mmio'. I'd > > rather know if and when we need 'posted-mmio'. It does need to be added > > to the DT spec[1] and schema[2] though (GH PRs are fine for both). > > I think the reason for having "posted-mmio" is that you cannot properly > define the PCI host controller nodes on the M1 without that: Since > nonposted-mmio applies to all child nodes, this would mean the PCI > memory space gets declared as nonposted by the DT, but the hardware > requires it to be mapped as posted. I don't think so. PCI devices wouldn't use any of the code paths in this patch. They would map their memory space with plain ioremap() which is posted. Rob