Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp379765pxj; Tue, 18 May 2021 05:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfQmIx27LDxFEebisZ8uXreZPsjBMefwXKystVNDBQyMO1xGnxn5eaE8pDZNXCQSXqwOHJ X-Received: by 2002:a50:d69c:: with SMTP id r28mr6821588edi.64.1621341387984; Tue, 18 May 2021 05:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621341387; cv=none; d=google.com; s=arc-20160816; b=PL7nHFh/IMRBrM7vFbtIPsyGWt+SlGnsAR1IKpyYhzbZxqmJJmSqWc2MQZM7ssLeOt FOf4UfFuWFynMClcOrbijfkvCq7qDmQFQEDbj370ezmcGjhJapFuD9PdlXZWr69AWW7Q gS0uoGhCWUF7iSbUxcub0KrXqmMZPnVLmRVmMGQmycn6xNn1JEwpk3BhLfqUErsOPDYA Del32JThxVwyuJkKfZ3fW1/VWJcvskK0Gf28DjBlympP0y5ZMnRmcxbZ+5oP29iG9gFo AGM2+hjfih3JzJcQA7r8eHdnBiIn71XntJCtk+vxOkTFNGi5hw0FMkt6RxGJB6Zpbt2C y0vw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bDJEj4s21z58MSKaWY/J43hgVRv9rl4t6Pgyf3LueTI=; b=VrzxaZ7h1PZeTaCyV1vg6ApbXP4V38r+oQ4QNixzjuuOz6qfW1gAGNn+qQ5IT8dzME ByW1RztFEmzNtlD3y/Nw+xEuWrW2hl06lf/nvUlkyYlY4x8MJ5oiz/GNW49hBFJgn1jE xvJSURNCxr7iSEwY10gUogvE8ZMrsyYUVVLmHZF0x9v1HyDbJqzSYv3+7ZLesmP2iOy+ IgRY9wseRSEW0qU4Iy4YL+M9Hm6WakzI3Jm/Ws17DaV4r8h/MgNwhRWbiK6VWpsvh5Y7 tIt6x0fsLgA9a3w9hO+AdGBCBTgtHiLV7KIYvrDwtM/t1XSw773SGFazHhQTGlUdgck+ UN/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zMrPLIrf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si262812ede.603.2021.05.18.05.36.05; Tue, 18 May 2021 05:36:27 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zMrPLIrf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243512AbhEQPeM (ORCPT + 99 others); Mon, 17 May 2021 11:34:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:57498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244128AbhEQPTO (ORCPT ); Mon, 17 May 2021 11:19:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2790C61C74; Mon, 17 May 2021 14:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262026; bh=YiazTUY/XltG9h2j4Zou6pVCu6UNXVIzbOeHZDEki7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zMrPLIrfJhGtzBMPiSXD2UtAh1x7h7yOoGrWTqU/PRdJhL5SZlZpRCQmXqllEn3rW i6gLs5UhXckFfzEFYzQHR1G26zUf90qSD8B+eCq1bhxQRT7lLoxawzjf0Sdwb6EcY2 dVmNkMxByuu0trmA3u5Mmnd7kklCCyXTIi62H8bA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Maciej W. Rozycki" , "David S. Miller" Subject: [PATCH 5.4 126/141] FDDI: defxx: Make MMIO the configuration default except for EISA Date: Mon, 17 May 2021 16:02:58 +0200 Message-Id: <20210517140247.062790661@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140242.729269392@linuxfoundation.org> References: <20210517140242.729269392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maciej W. Rozycki commit 193ced4a79599352d63cb8c9e2f0c6043106eb6a upstream. 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+ Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/fddi/Kconfig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) --- a/drivers/net/fddi/Kconfig +++ b/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.