Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp905937pxb; Thu, 15 Apr 2021 09:11:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+KTwjNioxDbVI6O1mRbFJGhfr3V3/N62/RIIGrcG//ZPJOXPuEPgowAlRExWVxb2wu0XU X-Received: by 2002:aa7:90d3:0:b029:241:21a1:6ffb with SMTP id k19-20020aa790d30000b029024121a16ffbmr3732140pfk.43.1618503087541; Thu, 15 Apr 2021 09:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618503087; cv=none; d=google.com; s=arc-20160816; b=fJzkM5IHjatjtOq6ZS3ZneT+56g1PIPdJpGfko1jFkKuZVkf9yXYR6HHvGebPEpOSE Mk/5PnwXCkPOAq1NtSDiqeICL5yWsNYqEjeNjXU3ahYSPnoGdEIFhw2DFAMtkecO5gKJ dhKQB1Pl4zlISbeJY2gUQBFr8MUCA/Ot5UeLa1fpxeTp+53i37mjb2N90GV0vgCoes4s 0sp93wKWGHetf9GaJHTlaNpzFR96pdqIojKT+xp+CggEKyxaBGniyOte8Er90teAtQn1 qMDeD9DudvOFVxBWRmiqQqHVIAaIu5gYrXQaLF752ikwVlDNYHwA31FOdgzTTuKSKEts ymxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=+YMdNGt5wrBv2cUEN3/arBeJz9YCcZpn2Udl8biuDFg=; b=WG0t+mipDE4VBfVdt0zcUrQ+cagTiV3n6kb0tDzCbFIbTwtLboZUGsFGIQc1aCAs9n RdDtNGwtTYVKC3EsuDSg2VObZ+yWvSF0gvtjiz2jK415gYKkaHUlNTM8jUBvbKNLFsk3 wAGaB5ArpQBrvRZEO7sASkJaAJHx9hqAPtNiYVNJ4wJzbMfdByCWfoWDjYkKSYvKP/1N qDHBM3T/CX9wUxmv0et3vv/K8bBru0skbukCgZaloGrer1L3RlsODNhXyEysGCtWIKiH RfKBsnjqZeQqI63Uby4tfdXcCDuIvLYhsVCwlWLsbtjyIkmznRunQa4mkApF+uAWUrzn 999w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si3703911pfy.195.2021.04.15.09.11.13; Thu, 15 Apr 2021 09:11: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233914AbhDOQLB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 15 Apr 2021 12:11:01 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:54361 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234136AbhDOQLA (ORCPT ); Thu, 15 Apr 2021 12:11:00 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-51-HfpTzEDNMauzyMEgPNRP_g-1; Thu, 15 Apr 2021 17:10:34 +0100 X-MC-Unique: HfpTzEDNMauzyMEgPNRP_g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Apr 2021 17:10:33 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.012; Thu, 15 Apr 2021 17:10:33 +0100 From: David Laight To: 'Niklas Schnelle' , Arnd Bergmann CC: Nathan Chancellor , Nick Desaulniers , "clang-built-linux@googlegroups.com" , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-s390@vger.kernel.org" Subject: RE: [PATCH v2 1/2] sparc: explicitly set PCI_IOBASE to 0 Thread-Topic: [PATCH v2 1/2] sparc: explicitly set PCI_IOBASE to 0 Thread-Index: AQHXMfQU/v+fCAtEaUGryS2VPWnQoKq1vegA Date: Thu, 15 Apr 2021 16:10:33 +0000 Message-ID: References: <20210415123700.3030728-1-schnelle@linux.ibm.com> <20210415123700.3030728-2-schnelle@linux.ibm.com> In-Reply-To: <20210415123700.3030728-2-schnelle@linux.ibm.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Schnelle > Sent: 15 April 2021 13:37 > > Instead of relying on the fallback in asm-generic/io.h which sets > PCI_IOBASE 0 if it is not defined set it explicitly. > > Link: https://lore.kernel.org/lkml/CAK8P3a3PK9zyeP4ymELtc2ZYnymECoACiigw9Za+pvSJpCk5=g@mail.gmail.com/ > Signed-off-by: Niklas Schnelle > --- > arch/sparc/include/asm/io.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/sparc/include/asm/io.h b/arch/sparc/include/asm/io.h > index 2eefa526b38f..100992ba1317 100644 > --- a/arch/sparc/include/asm/io.h > +++ b/arch/sparc/include/asm/io.h > @@ -1,6 +1,10 @@ > /* SPDX-License-Identifier: GPL-2.0 */ > #ifndef ___ASM_SPARC_IO_H > #define ___ASM_SPARC_IO_H > + > +/* On LEON I/O Space is accessed through low iomem */ > +#define PCI_IOBASE ((void __iomem *)0) > + > #if defined(__sparc__) && defined(__arch64__) > #include > #else > -- > 2.25.1 Not sure the comment is informative enough. Maybe something like: /* * On LEON PCI addresses below 64k are converted to IO accesses. * io_remap_xxx() (whatever is it called) returns a kernel virtual * address in the PCI window so inb() doesn't need to add an offset. */ That'll save the next person doing a lot of digging. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)