Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp353823pxf; Thu, 11 Mar 2021 05:39:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkBFm4mRm4JaX0G3HID4eXza9klYErObkuh5DhrEIlGTCGhzWQQny3loNfC0crEMS3vp3O X-Received: by 2002:a17:906:fcb2:: with SMTP id qw18mr3031939ejb.434.1615469958212; Thu, 11 Mar 2021 05:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615469958; cv=none; d=google.com; s=arc-20160816; b=I6RsQK+fC33s75FBbFQwyStPOdb5H3f+Gpd1gJ6LL9BmijNvFeJob+rLr4QogVDiMN 4fzP2caWsfOVR1tLjLeskTY0hcBj9EDuN4j4ASMMcC2otqxz+cMg7YWH3CMZAZNuoePG Fc96nDL3WJll/7YoWWlreq2ELfN6heMgkjo87wGAMI0LnR0p9nDohBfeGWA6b34QDMaH 1QjN6HqIN6uIk9UfcdHxcDMv8aKDAijplQmgoXB/FV2mmItfdVZKhV6aEullwdGkR6WL oflmhAZvBcjNT7fLq6UTc5IYJlsV/YjeX6DJw5zdhCtROhlU79A9PZZwqqds/ZlKq7vl VwwA== 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=T1fhKp/7+82jFrnaYzUdZgz+WKop4l4tcIhWv6qj9xY=; b=I1bm5+2E7ZAPmUWjFe92E2kODqqHCh0Rg9XwSkuGJXe1db9LeWhq/sjlnKQB54Vz71 gjkv8l3eH7mmq3o995x2+z3vnkcEYWhauP0aYhYJH1QmmO0fK9tp2zJ5j1q+lbLSnXx7 QM+/I3cbCFpLKHdRbA97iOCbV8jEL5788oGQLFP9/FFIa7HqGpODfn90f/5CErA2HqRj XjobBAZLyFuZmwZXIkzikZfNUXuYffe95gSgvF5WfOH/C8b272rssaIqeBm8W5ftCk7k ZHlSXqiYHUw7jQI39SeCiwd3inNybZUa6VAM1vNfbAcWE5MTjZXZIGpvoWx258aw0y6A DHAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UqYI40kp; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd8si1743766ejc.78.2021.03.11.05.38.55; Thu, 11 Mar 2021 05:39:18 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=UqYI40kp; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233634AbhCKNfq (ORCPT + 99 others); Thu, 11 Mar 2021 08:35:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:43020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233603AbhCKNfX (ORCPT ); Thu, 11 Mar 2021 08:35:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C174464FF5; Thu, 11 Mar 2021 13:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615469722; bh=6q4IiXUJWgYscOCHecS9Mt3djdFy8TY6aKd4onYASzw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UqYI40kpdj9pTyDaevY8Rj3aeYiZ42jbr3bj19Mi76nRVXy04kZ924TdIsyUPe5nI kVHCtANhj9MAOhAsi4EcR9R2xtU4MvIMQr7ZTEzzjdilqv+4kCNlORUhtjd8pMR2TR a5HSjhZpsqZyxNzVFKbM1y69DNNfFHM24NsdO67YBiYrU14vwxDLEm6ecS2AiOzBc9 4SaZgpwGtDHuQC9aKCe8UCl1mVfahUsXDBZvkbTfyKbiCpAGeKylgMr9UdZ6gr8xb+ GjGi8i8c01jNVRFO8iKW48+xTZ+NV+BcVcnm/aJ83vcD+4RmlPuxgYInkS79eYQnk7 IxUX0bVdkDD8A== Received: by mail-oi1-f174.google.com with SMTP id u198so18155082oia.4; Thu, 11 Mar 2021 05:35:22 -0800 (PST) X-Gm-Message-State: AOAM532+Ces9QDIaU/LU6w45qWc3ktC+O6h9xmA/qhDkN8dL6z/uTpDG dr3KBk9UwQU3d5GwGf+egq8FbHrimebEd9Ewrps= X-Received: by 2002:aca:5e85:: with SMTP id s127mr6048962oib.67.1615469721794; Thu, 11 Mar 2021 05:35:21 -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> <332c0b9a-dcfd-4c3b-9038-47cbda90eb3f@marcan.st> <7ee4a1ac-9fd4-3eca-853d-d12a16ddbb60@marcan.st> In-Reply-To: <7ee4a1ac-9fd4-3eca-853d-d12a16ddbb60@marcan.st> From: Arnd Bergmann Date: Thu, 11 Mar 2021 14:35:05 +0100 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: Hector Martin Cc: Rob Herring , 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 Thu, Mar 11, 2021 at 1:11 PM Hector Martin wrote: > On 11/03/2021 18.12, Arnd Bergmann wrote: > > On Wed, Mar 10, 2021 at 6:01 PM Rob Herring wrote: > >> On Wed, Mar 10, 2021 at 1:27 AM Hector Martin wrote: > >>> Works for me; then let's just make it non-recursive. > >>> > >>> Do you think we can get rid of the Apple-only optimization if we do > >>> this? It would mean only looking at the parent during address > >>> resolution, not recursing all the way to the top, so presumably the > >>> performance impact would be quite minimal. > > > > Works for me. > > Incidentally, even though it would now be unused, I'd like to keep the > apple,arm-platform compatible at this point; we've already been pretty > close to a use case for it, and I don't want to have to fall back to a > list of SoC compatibles if we ever need another quirk for all Apple ARM > SoCs (or break backwards compat). It doesn't really hurt to have it in > the binding and devicetrees, right? Yes, keeping the compatible string is a good idea regardless. > >> Yeah, that should be fine. I'd keep an IS_ENABLED() config check > >> though. Then I'll also know if anyone else needs this. > > > > Ok, makes sense. > > > > Conceptually, I'd like to then see a check that verifies that the > > property is only set for nodes whose parent also has it set, since > > that is how AXI defines it: A bus can wait for the ack from its > > child node, or it can acknowledge the write to its parent early. > > However, this breaks down as soon as a bus does the early ack: > > all its children by definition use posted writes (as seen by the > > CPU), even if they wait for stores that come from other masters. > > > > Does this make sense to you? > > Makes sense. This shouldn't really be something the kernel concerns > itself with at runtime, just something for the dts linting, right? > > I assume this isn't representable in json-schema, so it would presumably > need some ad-hoc validation code. Agreed, having a check in either dtc or expressed in the json scheme is better than a runtime check. I assume Rob would know how to best add such a check. Arnd