Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4662145iob; Sun, 8 May 2022 21:03:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgaBNIB2YAPdsBEJ6tMwwyLe0sBPl7PiTjMsyQMzh4XROUe9ZgFLviVLBiJBaqUjApNAe6 X-Received: by 2002:a17:902:d2d1:b0:15e:9b06:28b3 with SMTP id n17-20020a170902d2d100b0015e9b0628b3mr14748882plc.148.1652069001132; Sun, 08 May 2022 21:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652069001; cv=none; d=google.com; s=arc-20160816; b=QBrcunlargtbyBc0CN2hVUvIFJSkqbLPkrr9Q4JPjj0r8qKyJaOQ6S4kEA8qSMSzPa H3TE39P10ByCRMq4yGKbvbdSJoha4Wng8pkqSVO0ZkkIUovxPecNP08AZzuxVFTlq4k0 iaOBHI0YSzU4hgdwGLAZkFus/h1lvosEkcRwfyxRGHFsLTB35OOGvBOG8/zQnaqKhf07 x+/HhcpTtEbzvI7s25inSOBu39r6y4VDqgkjBYPzUUX5vbcu+yMoS4WPDKOa29BPGcEE oImwnkuwe9vK0yb26eCePf7Yj/7z234L6W6NiJgPz0pshgPr2wOuzAZJVhNdlVoD5tTI 2UQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Lwa3Qb6WURn7oa+FFayjzVC05X75A2/DwhVdhKQLE6I=; b=rJKpBIGk4GpmWovr4lWCs+vlsLHYBNxXZSXVYaXsY3FnCNzvu3++0o6DLTXAo+n4Vt D8UZXg2EAoQvbity7da3mO+CiTX+M8OZaplBC15izr4qK59A0Ges2aAvXeVZybU7mzTF B+oz6WykiHRVoR9I38x8t8LtGyNzCFYatJJ0aMfDSCYjA6nVjnjQt60RXQx9MeS8fEo7 IU9rPEq5LR8tp2XCUe0MwuTHQSRQVb2WY+K8H0Hk9nLQDPC0jvRwhBHEi2mcgmC5TJlR yxKuoD+oxHISfOGnH5+4A+AkpRxFeMFtEhy9TDcoT7k3s1fLj8FnuskCUiY9OGwZsud7 bw5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEhcEVVR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f10-20020a17090ac28a00b001cab35fecb9si12130449pjt.187.2022.05.08.21.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:03:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEhcEVVR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6DD99275CB; Sun, 8 May 2022 21:01:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391364AbiEFLhI (ORCPT + 99 others); Fri, 6 May 2022 07:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346328AbiEFLhH (ORCPT ); Fri, 6 May 2022 07:37:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2963160C9; Fri, 6 May 2022 04:33:23 -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 ams.source.kernel.org (Postfix) with ESMTPS id AC1A0B8358E; Fri, 6 May 2022 11:33:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40408C385BE; Fri, 6 May 2022 11:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651836800; bh=mPb8Q8Ok2oNk7WAjedaRk8DoRYKS47EIw5ypxOHVuLY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MEhcEVVROzt7JNAkcDasKjP6BiznNx2llyEJNiQphooQOz3sWxo0NeoXq1qGjma3j 4Zt4jDF3Ol/xJAYGhMV7xEI6p4hpnR/gRU7+VCsgRasl9P+SdnFoiymfONZVvlYETt Boao+8XuCNnL8WJt+Ku2LRimxFR5pkFhCoiv4Gx3lyU9EAL5a8k+iOgArRRLkDSEJW AaBLP7ncLeAs7u+HKJRBautcMPZHX2Pkrx+vHRF9kJ799TJSl12whMXRpdvA/BCx/X tyIj+uq91VCi3tKMnerH0qkv3BEzLb7m0J7sSBXjzflmqbSrTeB5I+mO87mHoSsyFq 2FwMAHSG49yNQ== Received: by mail-yb1-f172.google.com with SMTP id y76so12363630ybe.1; Fri, 06 May 2022 04:33:20 -0700 (PDT) X-Gm-Message-State: AOAM533WkIphyq6CzJGfB6I7e5q6tTbO0f97sEmW1Xub1pG1AICBETHh I9cLEU4Z246x1tvEj71v40UpF5ZDwattFWn81Lk= X-Received: by 2002:a25:d3c2:0:b0:645:74df:f43d with SMTP id e185-20020a25d3c2000000b0064574dff43dmr1886331ybf.394.1651836798896; Fri, 06 May 2022 04:33:18 -0700 (PDT) MIME-Version: 1.0 References: <20220505161028.GA492600@bhelgaas> In-Reply-To: From: Arnd Bergmann Date: Fri, 6 May 2022 13:33:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary To: "Maciej W. Rozycki" Cc: Bjorn Helgaas , Niklas Schnelle , Arnd Bergmann , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-arch , linux-pci , 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)" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Fri, May 6, 2022 at 12:20 PM Maciej W. Rozycki wrote: > On Thu, 5 May 2022, Arnd Bergmann wrote: > I think I'm missing something here. IIUC we're talking about a PCI/PCIe > bus used with s390 hardware, right? > > (It has to be PCI/PCIe, because other than x86/IA-64 host buses there are > only PCI/PCIe and EISA/ISA buses out there that define I/O access cycles > and EISA/ISA have long been obsoleted except perhaps from some niche use.) > > If this is PCI/PCIe indeed, then an I/O access is just a different bit > pattern put on the bus/in the TLP in the address phase. So what is there > inherent to the s390 architecture that prevents that different bit pattern > from being used? The hardware design for PCI on s390 is very different from any other architecture, and more abstract. Rather than implementing MMIO register access as pointer dereference, this is a separate CPU instruction that takes a device/bar plus offset as arguments rather than a pointer, and Linux encodes this back into a fake __iomem token. > If anything, I could imagine the same limitation as with current POWER9 > implementations, that is whatever glue is used to wire PCI/PCIe to the > rest of the system does not implement a way to use said bit pattern (which > has nothing to do with the POWER9 processor instruction set). > > But that has nothing to do with the presence or absence of any specific > processor instructions. It's just a limitation of bus glue. So I guess > it's just that all PCI/PCIe glue logic implementations for s390 have such > a limitation, right? There are separate instructions for PCI memory and config space, but no instructions for I/O space, or for non-PCI MMIO that it could be mapped into. Arnd