Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4646585iob; Sun, 8 May 2022 20:29:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt2D3J/TZiJ6AIOmmezX2eLrsikUOz4U/dSmdGTXmOJ3xMT888D5tz79qQXd7Em+AmaJ2y X-Received: by 2002:a17:902:a417:b0:158:ed2c:3740 with SMTP id p23-20020a170902a41700b00158ed2c3740mr14170871plq.121.1652066944558; Sun, 08 May 2022 20:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652066944; cv=none; d=google.com; s=arc-20160816; b=LdZ0KUvkD796zAeMNhlfOiQd5IbnClMhjy9U48Nyx08d0qdQeXtaM1G0CeEyCNHRuk dH12DNtut7fdndYNPkb+oTm8OPfHTUKAYp3pYWDgRvo4JcqxWnka51O6vEpFiNzb5Rra dKsZYFf8MZIZEtR1RmoQAdATAJcMTkyg3WdBJQ4gy537enbC5/7DQtH0oeHK6y2oxTn8 5jD7+EQibByY4brcvJZV2wYs9/eQUvPUWsqPY+6hvtWypSFeR9WUYzfA6PFuO+4eALFF cYY+cjBc7v6iygfeKIoighYnLHL1BW5pyV9lG4HmMJ2Wa8Yva3Z64RDQ141DFNP26E3U 3MfA== 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=ewrdhSA1OeI6uMUDf8MZe1HUIeKnjwKcGbgWawWsNxw=; b=YYpqq65Ybw5KhKDA1vkH/vf9RKCrUIMU2XCvbSiAWIVgt6CZEA/IvsHQd5Y865kRGX rUE/YceMw9qkg8aM5CJX+a1tg0MKhqS1T5gGpQPRZQAfUgX49g6PPfRTWMfFnbmp3Zd3 CQ4ho9pG7r36cNE1VH1lgjBjfdqHsVnfD6S4pf1JmBS0U3UVYCOOVgY2WQ2ftjrt3W1B /iZpLVQEoAR/LHanyusTPypSS7oZAv9iq8XrqQBAO6RuHng2MgymwL930rYRZKYCUgJ1 Tw18VEOX0i1dckFLkdUAmzIChef7JbZNjxjgAthK5siTdKByhrMH3LfcdpQuuTJyQtIu jBeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i2-20020a63a842000000b003c65dec6e67si7837744pgp.288.2022.05.08.20.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9350A59314; Sun, 8 May 2022 20:28:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392569AbiEFNcj convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 May 2022 09:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392538AbiEFNcb (ORCPT ); Fri, 6 May 2022 09:32:31 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2468F15A36 for ; Fri, 6 May 2022 06:28:46 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-216-O2D6viKlNf-4TslEv6Mr8Q-1; Fri, 06 May 2022 14:28:44 +0100 X-MC-Unique: O2D6viKlNf-4TslEv6Mr8Q-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.32; Fri, 6 May 2022 14:28:42 +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.033; Fri, 6 May 2022 14:28:42 +0100 From: David Laight To: "'Maciej W. Rozycki'" CC: Arnd Bergmann , Rich Felker , "open list:IA64 (Itanium) PLATFORM" , "open list:SUPERH" , Catalin Marinas , Dave Hansen , "open list:MIPS" , "James E.J. Bottomley" , "open list:SPARC + UltraSPARC (sparc/sparc64)" , "open list:RISC-V ARCHITECTURE" , Will Deacon , linux-arch , Yoshinori Sato , Helge Deller , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Russell King , Ingo Molnar , Geert Uytterhoeven , linux-pci , Bjorn Helgaas , Matt Turner , Albert Ou , Arnd Bergmann , Niklas Schnelle , "open list:M68K ARCHITECTURE" , Ivan Kokshaysky , Paul Walmsley , "Thomas Gleixner" , "moderated list:ARM PORT" , Richard Henderson , Michal Simek , Thomas Bogendoerfer , "open list:PARISC ARCHITECTURE" , Greg Kroah-Hartman , Linux Kernel Mailing List , Palmer Dabbelt , "open list:ALPHA PORT" , Borislav Petkov , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , "David S. Miller" Subject: RE: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary Thread-Topic: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary Thread-Index: AQHYYUSwX3QwDKjE7kKG/gGNt1cnA60Rx6Pg///7pACAABHIsA== Date: Fri, 6 May 2022 13:28:42 +0000 Message-ID: <3669a28a055344a792b51439c953fd30@AcuMS.aculab.com> References: <20220505161028.GA492600@bhelgaas> <5239892986c94239a122ab2f7a18a7a5@AcuMS.aculab.com> In-Reply-To: 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maciej W. Rozycki > Sent: 06 May 2022 14:15 > On Fri, 6 May 2022, David Laight wrote: > > > > The PCI configuration space was retrofitted into x86 systems (and is > > > accessed in an awkward manner with them), but with a new design such a > > > clean approach is most welcome IMHO. Thank you for your explanation. > > > > Actually I think x86 was the initial system for PCI. > > The PCI config space 'mess' is all about trying to make > > something that wouldn't break existing memory maps. > > It was retrofitted in that x86 systems already existed for ~15 years when > PCI came into picture. Therefore the makers of the CPU ISA couldn't have > envisaged the need for config access instructions like they did for memory > and port access. Rev 2.0 of the PCI spec (1993) defines two mechanisms for config cycles. #2 is probably the first one and maps all of PCI config space into 4k of IO space (PCI bridges aren't supported). #1 requires a pair of accesses (and SMP locking). Neither is really horrid. For horrid try the ISApnp interface. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)