Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1188685rwl; Wed, 5 Apr 2023 13:07:57 -0700 (PDT) X-Google-Smtp-Source: AKy350YX59GNlzuR6t8KVrRd6CSpgi+/HGlRZCPepCMg+wgs3sjZmH3Njvr/3wzbqNJc8JlM/XOe X-Received: by 2002:a17:906:3449:b0:8b1:e791:faef with SMTP id d9-20020a170906344900b008b1e791faefmr3886605ejb.67.1680725277695; Wed, 05 Apr 2023 13:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680725277; cv=none; d=google.com; s=arc-20160816; b=TAqOqK9PMUp55+KFe7+rsMaAIxp+hAxU/wRW3LQC3CX2geTFVIhYz7JdsysFBVNK0I t/K94bUYF4GY5+bhvyKic/Y26btziwgiF4kdWfFAqzoTj4zarp1OidZVmzI/WqGm0F6d ab27Sp/vvziZi4TcTYBMK7cGf0sduIKIfXBr0Fke5mUsw7Cj0hkqzpOztDyBromxevBP IXFyl8tgGl8hv4caG/dUVsonrldZcDL9rkTJz5XCPflCXH7bWohwqrBMwtLiucgyBNiM hkAAiqkxb0ZNWp4VLS/ma24jfx6+K15AACGXcdgICrA8bGrU5A0oPkg8fnHjxMYu4ift zzmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=e+7idCFcOldUdf6Kn1N4qPSHOAd8AGbMfDqGpl68/MY=; b=yHlr0/luOVdELeKXlcpHMZ/3WPOanVBbpsX3mhqM+/SbWbBVJUVv0qmP5a/ezH9X94 HHK5BWe1jVb+3nv4V+jvGCFp++xbstRSCyfC/k5h7NNqA+JiS0WkHxSHEgIMr0XVMX7R 1l8C5DEiFmcAkztgG6VSHwDpKUD7nbQ/kByb0fJBOGnTBlM/xolVgBzi3PLD5Q5Ksm9U eg86YxoXEsuhpUsodUQrvczEdTEzAHDvSIqeZy3sChY84UVWBSOKbRFPz9MYmyflo6VA nfpDs3g2kfAd07WdvXtjz20/ScPlcVndP8495nP1DtgPREyIvQaFwsq62g890gSQ8fjW V2cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023030901 header.b=EcXIoUqg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a1709061dd400b008deaca3a01csi923420ejh.221.2023.04.05.13.07.32; Wed, 05 Apr 2023 13:07:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023030901 header.b=EcXIoUqg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232985AbjDEUGw (ORCPT + 99 others); Wed, 5 Apr 2023 16:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230465AbjDEUGv (ORCPT ); Wed, 5 Apr 2023 16:06:51 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D6F268B; Wed, 5 Apr 2023 13:06:50 -0700 (PDT) Received: from [127.0.0.1] ([73.223.221.228]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 335K0Sot3654908 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 5 Apr 2023 13:00:29 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 335K0Sot3654908 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023030901; t=1680724836; bh=e+7idCFcOldUdf6Kn1N4qPSHOAd8AGbMfDqGpl68/MY=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=EcXIoUqgD3GVk8dx9ASffLO9ApOOB/n4lbb3fej1ORvYHN0/iMb/OoqoAXejO+Zl0 Rw/g8eHLmO+3g1cgp+fB4K8y/Tv66bULY41CG0VNoNe1xXssQzoSffnMPSdWphcYwf ZzGlpNJKo4CsJ2a2nk0pmTpZD0wBYq7o8dQL4gvncAtMrlBPm5aJCuPjVQ630EH6kU RTKT9BP7sk08N3WlXh3R+KcPbOQKrbUAmaN/sN+VsgfhU1MyFvVfA0l5ideAWavhGi 1hSCNrnhuIGoxexs5BAE4C0+dBVdtOYUI9AG6FgCpZuqROhanSelavXMtP8wX3ELEQ 7+LEVmStcCTzw== Date: Wed, 05 Apr 2023 13:00:27 -0700 From: "H. Peter Anvin" To: Niklas Schnelle , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org CC: Greg Kroah-Hartman , Bjorn Helgaas , =?ISO-8859-1?Q?Uwe_Kleine-K=F6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Johannes Berg , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v4=5D_Kconfig=3A_introduce_HAS=5FI?= =?US-ASCII?Q?OPORT_option_and_select_it_as_necessary?= User-Agent: K-9 Mail for Android In-Reply-To: <248a41a536d5a3c9e81e8e865b34c5bf74cd36d4.camel@linux.ibm.com> References: <20230323163354.1454196-1-schnelle@linux.ibm.com> <248a41a536d5a3c9e81e8e865b34c5bf74cd36d4.camel@linux.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, SPF_HELO_PASS,SPF_PASS 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 April 5, 2023 8:12:38 AM PDT, Niklas Schnelle wrote: >On Thu, 2023-03-23 at 17:33 +0100, Niklas Schnelle wrote: >> We introduce a new HAS_IOPORT Kconfig option to indicate support for I/= O >> Port access=2E In a future patch HAS_IOPORT=3Dn will disable compilatio= n of >> the I/O accessor functions inb()/outb() and friends on architectures >> which can not meaningfully support legacy I/O spaces such as s390=2E >>=20 >> The following architectures do not select HAS_IOPORT: >>=20 >> * ARC >> * C-SKY >> * Hexagon >> * Nios II >> * OpenRISC >> * s390 >> * User-Mode Linux >> * Xtensa >>=20 >> All other architectures select HAS_IOPORT at least conditionally=2E >>=20 >> 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=2E >>=20 >> Co-developed-by: Arnd Bergmann >> Signed-off-by: Arnd Bergmann >> Acked-by: Johannes Berg # for ARCH=3Dum >> Acked-by: Geert Uytterhoeven >> Signed-off-by: Niklas Schnelle >> --- >> Note: This patch is the initial patch of a larger series[0]=2E This pat= ch >> introduces the HAS_IOPORT config option while the rest of the series ad= ds >> driver dependencies and the final patch removes inb() / outb() and frie= nds on >> platforms that don't support them=2E=20 >>=20 >> Thus each of the per-subsystem patches is independent from each other b= ut >> depends on this patch while the final patch depends on the whole series= =2E Thus >> splitting this initial patch off allows the per-subsytem HAS_IOPORT dep= endency >> addition be merged separately via different trees without breaking the = build=2E >>=20 >> [0] https://lore=2Ekernel=2Eorg/lkml/20230314121216=2E413434-1-schnelle= @linux=2Eibm=2Ecom/ >>=20 >> Changes since v3: >> - List archs without HAS_IOPORT in commit message (Arnd) >> - Select HAS_IOPORT for LoongArch (Arnd) >> - Use "select HAS_IOPORT if (E)ISA || =2E=2E" instead of a "depends on"= for (E)ISA >> for m68k and parisc >> - Select HAS_IOPORT with config GSC on parisc (Arnd) >> - Drop "depends on HAS_IOPORT" for um's config ISA (Johannes) >> - Drop "depends on HAS_IOPORT" for config ISA on x86 and parisc where i= t is >> always selected (Arnd) >>=20 > >Gentle ping=2E As far as I can tell this hasn't been picked to any tree >sp far but also hasn't seen complains so I'm wondering if I should send >a new version of the combined series of this patch plus the added >HAS_IOPORT dependencies per subsystem or wait until this is picked up=2E > >Thanks, >Niklas > > You need this on a system supporting not just ISA but also PCI=2E Typically on non-x86 architectures this is simply mapped into a memory win= dow=2E