Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1450966iob; Thu, 5 May 2022 01:16:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgJVK1tDqzbTeQL+oBQIhVBfv2j0WhxFyuZpS/SAD25/5KPpYq9ZmNWd9PSW5cxK95poQO X-Received: by 2002:a17:902:b696:b0:156:b63:6bed with SMTP id c22-20020a170902b69600b001560b636bedmr26123796pls.24.1651738568615; Thu, 05 May 2022 01:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651738568; cv=none; d=google.com; s=arc-20160816; b=t8HwsSjiY9iSGF+s+wWfHms7pQq+puke2HEryRCGwaWNgkrt99n/6Jvd8UWfkuFz3c aevcp4N17rd2syWbeDya3+tmWOUUkbOpdcRf4wLq+3JZbGArI0nYCKL1nA3Qj2yJvn7u a2Y9DEkGPwN5GRqeW/+q/TVcJ1bi/L5f6AgywaLT5sUKesHSzpc1p9ElF/DQigXdOBZ7 f2vaTetDTgXOYA190iLwfbIX/kXeQqThLtlsIJ2UiwsZ5WEseKQd639NEujEgWRSdy5r CmbAjLfweuHOmXTM3pMeoI7bDYjY4GFDHxLvW9kbZ+BCaze8Gy83w0jkqwKD5Uu9Wb6b BQbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=2PJOpv/ha2LkKgSnVlyCqskbQBgoLCZ2MBuQF5pjyrY=; b=cz33TVY7+F776eDgrHnKS50n4eFl7GmkNbUGwgPfvozkVgi+cXrs6FtiZSg8iL9ZYu E0EhQdB0SgkecyVzuuB3Ev/yRBhOtE4sfo5t+IODqdF7Z6iwKg9n7SwsPOPuzPl/I6eK PsH5ZdxSnq8x+GTkXoJdUTJMeF7i8qZddZJjRRZUlSM5EmuGPI7ohagj3I7R3zWss5yC ayzf/my2i99xcpIYyxENC9tz0+LrapxerL4kcBT8VXiofv+lMVbnQlJ1JghlYG+qAxVm /WYQ8fG48Wv+IylCSKYSAA/aXHVAQf+efZMeisx4euBXoAJeI6CihWPxCvVzMGXsPcxL ykrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OV+zeMEq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6391c2000000b003c626c711a4si126749pge.861.2022.05.05.01.15.53; Thu, 05 May 2022 01:16:08 -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=@kernel.org header.s=k20201202 header.b=OV+zeMEq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378491AbiEDVMV (ORCPT + 99 others); Wed, 4 May 2022 17:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235258AbiEDVMU (ORCPT ); Wed, 4 May 2022 17:12:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F2AC4ECF8; Wed, 4 May 2022 14:08:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ED0AA6193E; Wed, 4 May 2022 21:08:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F213FC385A4; Wed, 4 May 2022 21:08:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651698522; bh=y1eZ0VyTuh3OSu3SZE5hnm+6Lqgi7WUL9wuM4x9LDoU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=OV+zeMEqAJx67x4OYYs/T+PwaB9EPFjKfNsjZzrWwMVM3NvLvNFpPf0wDtRgV6hPg C/vW0RHXE+D3VHZkPbIlT7vV9H8IzZjwKHGMG7joXJdlZZ7WJg8oDJqQBcpyc4rw/O yxAB78m6HEpQDrzbacEayJr8iiRcV1EWi7mSGZxb5IDhBXSg0dvOB0Jpz0xpdKT8q1 53W71wtG3ZAAJTFq4C2Bw331IYIMqmF+azzr+0ky2kC+20quz/B/hGbW52VPMkvf2m sc7xISbNbAO/Ktfv/RlrnLm3f7ClaHPrrdpfMsEfr0tf1mKOlzAyEBnIbIHem9sEJj ZVekgou/eHQhA== Date: Wed, 4 May 2022 16:08:40 -0500 From: Bjorn Helgaas 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 , Richard Henderson , 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 Message-ID: <20220504210840.GA469916@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429135108.2781579-2-schnelle@linux.ibm.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Apr 29, 2022 at 03:49:59PM +0200, 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. So you plan to drop inb()/outb() on architectures where I/O port space is optional? So even platforms that have I/O port space may not be able to use it? This feels like a lot of work where the main benefit is to keep Kconfig from offering drivers that aren't of interest on s390. Granted, there may be issues where inb()/outb() does the wrong thing such as dereferencing null pointers when I/O port space isn't implemented. I think that's a defect in inb()/outb() and could be fixed there. Bjorn