Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp189046pxf; Wed, 10 Mar 2021 04:06:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz26l2fbN6TTZJhES88tYdOjZ4TWUWlS//CFgJjgydClhmJ0+VRcclVRU3rVID/LXoAT/2L X-Received: by 2002:a17:906:2e45:: with SMTP id r5mr3208771eji.380.1615377961098; Wed, 10 Mar 2021 04:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615377961; cv=none; d=google.com; s=arc-20160816; b=mawO5LD6UEU+z5rEr7TocJjHmoUk0tDehd0JxgYTuuHJenSr+YiMHwLZLXx/rjIODZ ft5R4g+nnayEwRtX/+Gb+cyotWJi6MbKqrXySEs+0KeoK1LZgS9fPEgbHxVQPTFl+dH1 i48e3hGTkVhEsltS29nTTtsoOSbWYby0uORiPd9YP3v+5HebGFfit9F66bOy92Y/KhQO w4rh+pcOXizZFXtN1cW6qeGswxFfo4FOJVzwHY6jDFoxC3zRVzeVigOdosuLH2hbODV6 yq/rOBkyuWgXk4C3dKw/fWpHjE/dfI4HSEjMJEvn2M+uNVUKPY1KQK9+ViLBLs733qdl rugw== 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=ZDhxsmVmQwbncl+OVMOF1LT9I0BOb58JsTmvtE6iCCw=; b=ApKAI3+7xa7+UNhyAf7oW022Xba+5lyZpHgVD0eHsXkCcZlZLroOHkcMGOXHluYX/n Sve2Iu5obqt0XgeVSbHqJdryhV1TRhGR9NbUeiKJLbG/M0ztxHev88Mo5Nx8Z7eHG2lB Prud91ffg0MfV1O6f2GSiRzlujfMeg/zGlWV65nsiQrPkTSCsyU9+5XzqWvYSDQ+Fc5t vZtMHj/BhnOYWlWAM5TQI+J7suEDy53SRtGmaXklSMo6l5Y7OLyLByfK7/tioHUxT5bA Lo4TdUJC2IW0Lkbc3NthaZHZQ+qFvXUsMnvMj7sd+ZgJwM2YoIUe04+aIbyQodG9sgOY 8uqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly21si11690023ejb.128.2021.03.10.04.05.33; Wed, 10 Mar 2021 04:06:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbhCJMDr (ORCPT + 99 others); Wed, 10 Mar 2021 07:03:47 -0500 Received: from angie.orcam.me.uk ([157.25.102.26]:37596 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232772AbhCJMDR (ORCPT ); Wed, 10 Mar 2021 07:03:17 -0500 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 3961E92009C; Wed, 10 Mar 2021 13:03:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 3371892009B; Wed, 10 Mar 2021 13:03:14 +0100 (CET) Date: Wed, 10 Mar 2021 13:03:14 +0100 (CET) From: "Maciej W. Rozycki" To: netdev@vger.kernel.org cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH net/net-next 2/4] FDDI: defxx: Make MMIO the configuration default except for EISA In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recent versions of the PCI Express specification have deprecated support for I/O transactions and actually some PCIe host bridges, such as Power Systems Host Bridge 4 (PHB4), do not implement them. The default kernel configuration choice for the defxx driver is the use of I/O ports rather than MMIO for PCI and EISA systems. It may have made sense as a conservative backwards compatible choice back when MMIO operation support was added to the driver as a part of TURBOchannel bus support. However nowadays this configuration choice makes the driver unusable with systems that do not implement I/O transactions for PCIe. Make DEFXX_MMIO the configuration default then, except where configured for EISA. This exception is because an EISA adapter can have its MMIO decoding disabled with ECU (EISA Configuration Utility) and therefore not available with the resource allocation infrastructure we implement, while port I/O is always readily available as it uses slot-specific addressing, directly mapped to the slot an option card has been placed in and handled with our EISA bus support core. Conversely a kernel that supports modern systems which may not have I/O transactions implemented for PCIe will usually not be expected to handle legacy EISA systems. The change of the default will make it easier for people, including but not limited to distribution packagers, to make a working choice for the driver. Update the option description accordingly and while at it replace the potentially ambiguous PIO acronym with IOP for "port I/O" vs "I/O ports" according to our nomenclature used elsewhere. Signed-off-by: Maciej W. Rozycki Fixes: e89a2cfb7d7b ("[TC] defxx: TURBOchannel support") Cc: stable@vger.kernel.org # v2.6.21+ --- drivers/net/fddi/Kconfig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) Index: linux-defxx/drivers/net/fddi/Kconfig =================================================================== --- linux-defxx.orig/drivers/net/fddi/Kconfig +++ linux-defxx/drivers/net/fddi/Kconfig @@ -40,17 +40,20 @@ config DEFXX config DEFXX_MMIO bool - prompt "Use MMIO instead of PIO" if PCI || EISA + prompt "Use MMIO instead of IOP" if PCI || EISA depends on DEFXX - default n if PCI || EISA + default n if EISA default y help This instructs the driver to use EISA or PCI memory-mapped I/O - (MMIO) as appropriate instead of programmed I/O ports (PIO). + (MMIO) as appropriate instead of programmed I/O ports (IOP). Enabling this gives an improvement in processing time in parts - of the driver, but it may cause problems with EISA (DEFEA) - adapters. TURBOchannel does not have the concept of I/O ports, - so MMIO is always used for these (DEFTA) adapters. + of the driver, but it requires a memory window to be configured + for EISA (DEFEA) adapters that may not always be available. + Conversely some PCIe host bridges do not support IOP, so MMIO + may be required to access PCI (DEFPA) adapters on downstream PCI + buses with some systems. TURBOchannel does not have the concept + of I/O ports, so MMIO is always used for these (DEFTA) adapters. If unsure, say N.