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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 E921AC433DB for ; Wed, 3 Mar 2021 22:15:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 8B20164EE8 for ; Wed, 3 Mar 2021 22:15:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B20164EE8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.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=desiato.20200630; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OhPgE9WBcUNTdW26fdCtOpD1CxqyVZmIdlquX/SQXuw=; b=PNQk2GXV9RhtD8IxTy1WRZLC6 AzNBgavWSRBZ+a773zB1UYJZOjA7FlBwn4mrCZO4Ih7Go7NhXBCun6PebHS95YSOWtYzzsf0uzZ5q Yz+1p2Ktqx2hUrkopecOG11gsqe5GLJJVP1hPh4twTuFqR1iBOJV+PcLUydB/tAYiaMVWR33zRfox lA8SKx6r6M6XS5nyIe/fhBwzyp+cAz5+nMuS6c6769nYmM8/5yubn7M6zWF2obz32dUXXkO+dqmRa Snb2P/qEKxEw0YF6X47dTepG6GMY5ZLvOuEFWUPD3EHKDv9+Eq9C6xPDokwSe/xOUW9iWenmEPrRk 5aNwgxoIg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHZeh-006hyb-49; Wed, 03 Mar 2021 22:07:43 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHTAd-005Kd4-GY for linux-arm-kernel@desiato.infradead.org; Wed, 03 Mar 2021 15:12:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7Aw3M7hmeWFPc1OwO/rMxOtdYgV18Lk1XECbFeEhaCU=; b=AVagHZOvrS8Lh7pYQkksrAXVtI jsXgCG8OS8c0tQuVWtWeklFldyeSXzW7It83a5FgtUWqDgqNeyx3tXSXsga5cK4/ljCKXhf5dP2p+ Yq9Iu5D9VqypUVQX2qZ5xAHfFakjZQ4uxAVopTZidzeym/y8dwC7Hlj4RCCUorubU66Nr+uNRv+B9 BI6JGwZGnnuiANIIcxQLsPvy1qj33jyZh3nvxqRd3e0GUbqJNnB07rRfyM2/oeyT4MnOXhIKm/e/c NWaz/9GmozpxnlQjYU1LwSitfR2hHG18IxzPDQx0sa5HF10tK6h2oe22UXyqpF4TuQCjFABw7GNvT 9dJ4hTcQ==; Received: from mx2.suse.de ([195.135.220.15]) by casper.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lH5i3-00HEjz-L0 for linux-arm-kernel@lists.infradead.org; Tue, 02 Mar 2021 14:09:14 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CE020AFF9; Tue, 2 Mar 2021 14:09:10 +0000 (UTC) Message-ID: <9286657b0e4873eaaaa2208364b310d82bcc0962.camel@suse.de> Subject: Re: [RFC 02/13] driver core: Introduce MMIO configuration From: Nicolas Saenz Julienne To: Robin Murphy , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: f.fainelli@gmail.com, robh+dt@kernel.org, ardb@kernel.org, hch@infradead.org, narmstrong@baylibre.com, dwmw2@infradead.org, linux@armlinux.org.uk, catalin.marinas@arm.com, arnd@arndb.de, will@kernel.org Date: Tue, 02 Mar 2021 15:09:09 +0100 In-Reply-To: <644fd416-ab64-f1cc-ffb0-ea5649e3b600@arm.com> References: <20210226140305.26356-1-nsaenzjulienne@suse.de> <20210226140305.26356-3-nsaenzjulienne@suse.de> <644fd416-ab64-f1cc-ffb0-ea5649e3b600@arm.com> User-Agent: Evolution 3.38.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210302_140914_384676_2B8B6BE7 X-CRM114-Status: GOOD ( 21.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4069001046399591196==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4069001046399591196== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-YvPEsq9SJ5I0lHieQ2Gs" --=-YvPEsq9SJ5I0lHieQ2Gs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Robin, On Tue, 2021-03-02 at 11:29 +0000, Robin Murphy wrote: > On 2021-02-26 14:02, Nicolas Saenz Julienne wrote: > > Some devices might inadvertently sit on buses that don't support 64bit > > MMIO access, and need a mechanism to query these limitations without > > prejudice to other buses in the system (i.e. defaulting to 32bit access > > system wide isn't an option). > >=20 > > Introduce a new bus callback, 'mmio_configure(),' which will take care > > of populating the relevant device properties based on the bus' > > limitations. >=20 > Devil's advocate: there already exist workarounds for 8-bit and/or=20 > 16-bit accesses not working in various places, does it make sense for a= =20 > 64-bit workaround to be so wildly different and disjoint? Can you point out an example of the workarounds? > > Signed-off-by: Nicolas Saenz Julienne > > --- > > =C2=A0=C2=A0arch/Kconfig | 8 ++++++++ > > =C2=A0=C2=A0drivers/base/dd.c | 6 ++++++ > > =C2=A0=C2=A0include/linux/device.h | 3 +++ > > =C2=A0=C2=A0include/linux/device/bus.h | 3 +++ > > =C2=A0=C2=A04 files changed, 20 insertions(+) > >=20 > > diff --git a/arch/Kconfig b/arch/Kconfig > > index 2bb30673d8e6..ba7f246b6b9d 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -1191,6 +1191,14 @@ config ARCH_SPLIT_ARG64 > > =C2=A0=C2=A0config ARCH_HAS_ELFCORE_COMPAT > > =C2=A0=C2=A0 bool > > =C2=A0=C2=A0 > >=20 > > +config ARCH_HAS_64BIT_MMIO_BROKEN > > + bool > > + depends on 64BIT >=20 > As mentioned previously, 32-bit systems may not need the overrides for= =20 > kernel I/O accessors, but they could still need the same workarounds for= =20 > the memory-mapping implications (if this is to be a proper generic=20 > mechanism). I'll keep it in mind. > > + default n > > Tip: it is always redundant to state that. Noted! Regards, Nicolas --=-YvPEsq9SJ5I0lHieQ2Gs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAmA+RwUACgkQlfZmHno8 x/6DTgf/bmj475fZvD7LqvWdKkSnHyka/eRAnSEGswrw97NUvj87NWdWSWuJCy99 jQgfOUReSUE7/2VZHxWg0cHBFM4b6l6s8TQ7QghSA2urv3NhuMFRQgdQ+TgUnu27 goMc9hHjijbWSjwl1RWg/f1Ozs9RkDmBSNpFR8JJduExKkBl9JztrtOKZvsz8bWm qgnw4asNx+UZxLERFj+HhWn7FWGWPZTjUpo0rN2tC3PKz/X3HalAm6j55D6xHWWt ovPa2cTIdWbdGcvZ+MJ7XsI2WlElRFWhLqgtJHLnl5BybmcQAszusKU89zRI2Zfb zd/0Xlgmzk7DuzoQzzi28mtC11XF7A== =a14r -----END PGP SIGNATURE----- --=-YvPEsq9SJ5I0lHieQ2Gs-- --===============4069001046399591196== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4069001046399591196==--