Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp834091rwl; Wed, 5 Apr 2023 08:17:37 -0700 (PDT) X-Google-Smtp-Source: AKy350bWjL9gkf1vcbj6YCYqehysZvavTPX+2gXMhHBIf8UfvavG9MjXzsHtRuUrtsaZkMq3pLdQ X-Received: by 2002:a17:902:ced2:b0:19d:ee88:b4d7 with SMTP id d18-20020a170902ced200b0019dee88b4d7mr7662180plg.25.1680707857374; Wed, 05 Apr 2023 08:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680707857; cv=none; d=google.com; s=arc-20160816; b=FnDDu97ID8YPMfsSAjUnc3exKHyanO5r3D7bzGQc5sfl+9GMLWBnN3n4u6c1c89C0A ubHunPT7WDm2d68UlAXCgB7VFsVwLxhwuUlwtNn2l+ymOMINnYUyJ+SqfHJTY0ficPc0 Vi50jmnfaWwtdv858eQXvpXfwI/VBEO8IxzpJ2gnT1oPjmY8kQvo6IhKwOuGE74N1j1K KzdDc+Nu+nVhCSFdlUhQM2oy2wWYJ0uh53sj3f5i9sOhG71Gf5aHyb9v/ITWcju1vBp1 FPq+MUaRo8ga4CfGhO35xOdF1Ba4CYEPbi35wuPPG73yqJtqPs9gsxKMc6wJ/7ifwORc Bn1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=EP7H/BG3XCUIVobBKkorHkQj2TA2B5DpLLQdBFgYKS4=; b=IsPFZ+oAbMqpyOw68YLbUXlpMR8/r6WBmKUTspxguTa4NsdqWLP8QAOZxKeXEQIGFE r9vKFxIxM6H8U/4LKZ7oJPieZe6uueqC3c2N18gLEBTXbZdwOL0M7qp7AQxYNIMTPWIy knOA5NO9IS8VgSyQVOB6Y86QwK+OM3R1HeKAIy56TJ61uq79v/cqlIyGKTOISX7B5PzQ 6ak7ykfdAezGxzBZxHisH8RBOTvHYD3sWfvmPlSVWKyRJcBC6Iq9z0/W0BFYZjeDVLpx dh1kszXg+NwT5ApvCTF+gNbMsuTOmtsClBnJwmFRu1kg7QwD4fBrcUUvIS2qFqoKi/Um 08eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XbWxDBkf; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a170902c11500b0019cd5c8593bsi10582089pli.328.2023.04.05.08.17.24; Wed, 05 Apr 2023 08:17:37 -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=@ibm.com header.s=pp1 header.b=XbWxDBkf; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238912AbjDEPRF (ORCPT + 99 others); Wed, 5 Apr 2023 11:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238148AbjDEPQv (ORCPT ); Wed, 5 Apr 2023 11:16:51 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BAE768F; Wed, 5 Apr 2023 08:15:23 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 335Ex0qK002073; Wed, 5 Apr 2023 15:12:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=EP7H/BG3XCUIVobBKkorHkQj2TA2B5DpLLQdBFgYKS4=; b=XbWxDBkfY2fo/oPyI6TrXqcU1euUz4IzeWoGlM8pMsRk498yO8yVE/7T1S6eJTb2S1UY Ce4n6uRJXGbJACtJS5PEQm7yDaXiLZ77NckRKQQQ5DNapH75rb5fd/ItpAm5JdaIGkJB EjYbhhlQ0ryc2KE5ooaYTcsk8RJlUZZfLediFtvaH7EkQ1SjyGt/Xzy43DdKyba2DK/C mj3z1Ouz77q3PQdLEc8JzeNlXRNO2YNOk1g5JnRZp+nfYv7EYFBF1bpKeDuLr8vDL+6n b4UH/HRs8HkTZNjSxDyvmPDruJP3v3TVMAV46NXQWSanaU69dM9Hykbwz50y1ICQraWy Mw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ps9mdkkrq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Apr 2023 15:12:47 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 335Ena21018706; Wed, 5 Apr 2023 15:12:46 GMT Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ps9mdkkpp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Apr 2023 15:12:45 +0000 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 335DwTrM010607; Wed, 5 Apr 2023 15:12:43 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma04fra.de.ibm.com (PPS) with ESMTPS id 3ppc86tktp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Apr 2023 15:12:43 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 335FCejC27853382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 5 Apr 2023 15:12:40 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7493520040; Wed, 5 Apr 2023 15:12:40 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CE7A920043; Wed, 5 Apr 2023 15:12:38 +0000 (GMT) Received: from [9.155.211.163] (unknown [9.155.211.163]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 5 Apr 2023 15:12:38 +0000 (GMT) Message-ID: <248a41a536d5a3c9e81e8e865b34c5bf74cd36d4.camel@linux.ibm.com> Subject: Re: [PATCH v4] Kconfig: introduce HAS_IOPORT option and select it as necessary From: Niklas Schnelle To: 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, "H. Peter Anvin" Cc: Greg Kroah-Hartman , Bjorn Helgaas , Uwe =?ISO-8859-1?Q?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@lists.linux-m68k.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 Date: Wed, 05 Apr 2023 17:12:38 +0200 In-Reply-To: <20230323163354.1454196-1-schnelle@linux.ibm.com> References: <20230323163354.1454196-1-schnelle@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Chh8ozZVKyRilF6r1sDguQSl3KT7MF3_ X-Proofpoint-GUID: RSLPMutPzrPKT5ywknWUr1qrnGdzz6Rn Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-05_09,2023-04-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 phishscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=0 clxscore=1011 bulkscore=0 spamscore=0 malwarescore=0 mlxlogscore=438 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304050136 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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. In a future patch HAS_IOPORT=3Dn 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. >=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. >=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. >=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]. This patch > introduces the HAS_IOPORT config option while the rest of the series adds > driver dependencies and the final patch removes inb() / outb() and friend= s on > platforms that don't support them.=20 >=20 > Thus each of the per-subsystem patches is independent from each other but > depends on this patch while the final patch depends on the whole series. = Thus > splitting this initial patch off allows the per-subsytem HAS_IOPORT depen= dency > addition be merged separately via different trees without breaking the bu= ild. >=20 > [0] https://lore.kernel.org/lkml/20230314121216.413434-1-schnelle@linux.i= bm.com/ >=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 || .." 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 it = is > always selected (Arnd) >=20 Gentle ping. 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. Thanks, Niklas