Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp558377pxj; Thu, 20 May 2021 16:11:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMwvP8uChWHFpgUvaWl6KXQCyHuZAQz7B8U4b6vCJVKN4W8m9xE5y3ZbmTF9Cit7ul2kM0 X-Received: by 2002:a17:906:a281:: with SMTP id i1mr5063714ejz.307.1621552302851; Thu, 20 May 2021 16:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621552302; cv=none; d=google.com; s=arc-20160816; b=uZ+t36uwrtWwqJZBAyddRKzkdPHK9psfnJKAsaI7OKwHZFyHIhnXGYkTgNzL/PHDyu F79v74nZQjMKQVNQdxPphCZEcC3TuGxFwbdl0DvysE2+p9elKhcvFzqa3Xv4Zw2+inj+ FG829FcykS3ZFOWnp0224ttp8P6yelGIwxLaSql1poAUkDu9Bgx5CBsvZlO+RW/vys2d Elth3rjao5TDlNGaRSTCS7nLuUmvG+vg7DNVYmVjwxm8wClfRhvFBywjQTYKhJRYhGIw nnDtY+O+l2W87cAoUyhWvSpR/mGMLhyfhhplC6QZ18qeaoqtx0aWbRoC18gDsSSzDaPh /8Mw== 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=caJEzRgfRLjLSgoppeGCFY0YknKmzxIveHdsCRaCu+g=; b=yITQuXwOtdamyOSGdQYPOUT/PZq1hxZlQN5lFD0XiNH4i5h9Ry0dFBw6pGnWn6EBkq veDeNPCw/RhypmVl7PmbTV8y6OmiZ4x9ls2E5MuTSdgRwhN11h/GTGep0PB3mbzoPLg0 ItX9J8zqSxFDH9EE4yOqOZzh+u6RjrRHPKsQZeoIjoziJoYKx0/Rzdtv02mChp556bhV BdkGZX2AGpGPBxGhMo5H+RjcSy2y9iStFQaINrLwljmWWy5jOtN7NCHeHt2kFgKREiGY sjFv/Aef91kB8a0AznpCbLjz2qvDn4fVK1uF49HXMLA0zK0+bL1g3MjrKo4KPbxuZFXz YZpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=izwjviAn; 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 nb17si1579516ejc.226.2021.05.20.16.11.19; Thu, 20 May 2021 16:11:42 -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=izwjviAn; 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 S241420AbhETLY3 (ORCPT + 99 others); Thu, 20 May 2021 07:24:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:39782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239760AbhETLED (ORCPT ); Thu, 20 May 2021 07:04:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1250061D1A; Thu, 20 May 2021 10:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505086; bh=zzhwqEtUdECsLU5ResUYncQWPmhxmm8laNuAX2jgA3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=izwjviAnLkRcgF4TJIQbZgSYzyCFNbhT1PRUyLTd5lnODlY83Qh/HeO/o/D3+kdv5 p7XphB4Z3O3DbOGilL5Y+WkrWuuGCP/eu+ZJbfx9yuO6Vf3vdWWK8Fn9e8ndCDqy78 XdCONMbyHGC940gDVlJ77hgzxBtoWRJ+7D59Speg= 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 4.9 215/240] FDDI: defxx: Make MMIO the configuration default except for EISA Date: Thu, 20 May 2021 11:23:27 +0200 Message-Id: <20210520092115.901762234@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@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 @@ -28,17 +28,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.