Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp218143iob; Mon, 2 May 2022 17:32:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc8dHq81ldgXd8XrA//M+TYX/Khn3ReI9PcgkXKGTNTx6daqATYcjVDGxUq2e/yhp5ozxh X-Received: by 2002:a17:902:c411:b0:15e:a480:433b with SMTP id k17-20020a170902c41100b0015ea480433bmr7259159plk.91.1651537954725; Mon, 02 May 2022 17:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537954; cv=none; d=google.com; s=arc-20160816; b=YLx7cLaKCbxzSH/hf/djOQzUN0evCzkmdyOEvytbzSPevjSmzwvqDurR2UMHMZMQkg itEnrlFRyaJTlMVs4LueBx1vGYAeSlR/j77IDzN9UJDWBVAWv2aHaMBYAxqk4/5myNIu 1zR9v/hnkjzrr6XKjBXtfeehzCo2lE2bHHFbpS1U++Ma/KNoqligZ55SFxfqCCCe53oX +WHpvbFo9vekXUnen17RIQ6NTz31B0LsTmHAuQakNSOgNmyaLMovH5jJ8e5c/2jrLGWh MG5JmowKyzimzQHQQB7m2Bo/7zSgFZxXJrhmt37psfZc1QX6ltIkCd6YwXINbKXeGZTv mCvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=KgfLtLNwvFMCA2zB3EY5r7vCsF5i5BR8MI0KVfuXMO0=; b=MPB4bXsnTzYED9eXCUGhqEvCw8y+Y3is1HRoN3OT+0PiardWFQH3vjQ6DhMCfBicZw RtEizSIS/qUjz9mTWkvnzKt9NRYm4c7eXSk2ESOsfmJGBKinL2EVgQxEXD71qEAqZffr 02KM5RdxrrJdFMSH3LbP+FGuw7cdbs86fgUDgAFjqELsBS3ODNw9vOLsZ2HdIJgn8gfE 7lNmZD9LZvyTjv0f0ZnryOCnb5A1lrQdSkeNPXVFMTjgf0vX0+C2nh6J0qa1QdRa/Bx5 JilZCM3oLgzF3HIJjg3pAdmCaWkWsb6nrwL6x6ii7FbXvYxGqUB+fvZmEOnK8dl3ckXe td7w== 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t20-20020a63d254000000b0039d300cade6si15065166pgi.679.2022.05.02.17.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:32:34 -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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC737167E9; Mon, 2 May 2022 17:25:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377390AbiEAWoL (ORCPT + 99 others); Sun, 1 May 2022 18:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234297AbiEAWoH (ORCPT ); Sun, 1 May 2022 18:44:07 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 94C3C14023; Sun, 1 May 2022 15:40:40 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2E01592009C; Mon, 2 May 2022 00:40:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 2645D92009B; Sun, 1 May 2022 23:40:39 +0100 (BST) Date: Sun, 1 May 2022 23:40:39 +0100 (BST) From: "Maciej W. Rozycki" To: Niklas Schnelle cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "open list:ALPHA PORT" , "moderated list:ARM PORT" , "open list:IA64 (Itanium) PLATFORM" , "open list:M68K ARCHITECTURE" , "open list:MIPS" , "open list:PARISC ARCHITECTURE" , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , "open list:RISC-V ARCHITECTURE" , "open list:SUPERH" , "open list:SPARC + UltraSPARC (sparc/sparc64)" Subject: Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary In-Reply-To: <20220429135108.2781579-2-schnelle@linux.ibm.com> Message-ID: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-2-schnelle@linux.ibm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 On Fri, 29 Apr 2022, Niklas Schnelle wrote: > We introduce a new HAS_IOPORT Kconfig option to indicate support for > I/O Port access. In a future patch HAS_IOPORT=n will disable compilation > of the I/O accessor functions inb()/outb() and friends on architectures > which can not meaningfully support legacy I/O spaces such as s390 or > where such support is optional. The "depends on" relations on HAS_IOPORT > in drivers as well as ifdefs for HAS_IOPORT specific sections will be > added in subsequent patches on a per subsystem basis. [...] > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index de3b32a507d2..4c55df08d6f1 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -47,6 +47,7 @@ config MIPS > select GENERIC_SMP_IDLE_THREAD > select GENERIC_TIME_VSYSCALL > select GUP_GET_PTE_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT > + select HAS_IOPORT > select HAVE_ARCH_COMPILER_H > select HAVE_ARCH_JUMP_LABEL > select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT NAK, not all MIPS systems have the port I/O space, and we have it already handled via the NO_IOPORT_MAP option. We'll need to have HAS_IOPORT set to !NO_IOPORT_MAP (or vice versa) for the MIPS architecture. Maciej