From nobody Tue Apr 7 09:44:35 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44114C4332F for ; Fri, 14 Oct 2022 00:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiJNATe (ORCPT ); Thu, 13 Oct 2022 20:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiJNATb (ORCPT ); Thu, 13 Oct 2022 20:19:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5028B183D86; Thu, 13 Oct 2022 17:19:29 -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 647E7B8217A; Fri, 14 Oct 2022 00:19:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E46CFC433C1; Fri, 14 Oct 2022 00:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665706766; bh=truyd6YXrnJgH30xs9lXfxt5wDtPtug7TuX2iG1sDRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V+ecO9Q5WguXB07V4rM+vFlU1cbrhBaORj1CS2HmHDlG2OMUtstpFQfkqXMaOwZB7 xcXlTaAAUOI0c3p1Op48lhR8vpkWDcmDAxzNlvKXCWsZZZu4PMHUMnP6kUx38jhIQR iruz4O2tYUuLAdCLWl7YDSGNB1xsUWfMVcLmNkd23EYAiSfHqh4Q7/gZJup/EHOpVF Z6lUJjkM15/gXC0kQ7ZsWJ7Rh95ZirWZRYq0WWFw3ClqLuAqcUPZsUCQkH9VPK4vFf zTL6t0PiQSvAegrPGDipBcfgPf/NYzhmtBD5yKs9yrgwVbHGUDRmbeIPz4/UaKequd tBQc58bPO5ybA== From: Bjorn Helgaas To: linux-kernel@vger.kernel.org Cc: Bjorn Helgaas , Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Subject: [PATCH 1/3] sh: remove unused SLOW_DOWN_IO Date: Thu, 13 Oct 2022 19:19:09 -0500 Message-Id: <20221014001911.3342485-2-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014001911.3342485-1-helgaas@kernel.org> References: <20221014001911.3342485-1-helgaas@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bjorn Helgaas io.h defines SLOW_DOWN_IO only when CONF_SLOWDOWN_IO is defined, but CONF_SLOWDOWN_IO is never defined and is in fact explicitly undefined. Remove SLOW_DOWN_IO and related code. N.B. 37b7a97884ba ("sh: machvec IO death.") went to some trouble to add CONF_SLOWDOWN_IO and SLOW_DOWN_IO, for no obvious reason. Maybe there was some out-of-tree case that used this. Signed-off-by: Bjorn Helgaas Cc: Yoshinori Sato Cc: Rich Felker Cc: linux-sh@vger.kernel.org --- arch/sh/include/asm/io.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index fba90e670ed4..8d2df499b2fc 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h @@ -121,11 +121,6 @@ __BUILD_MEMORY_STRING(__raw_, q, u64) =20 #ifdef CONFIG_HAS_IOPORT_MAP =20 -/* - * Slowdown I/O port space accesses for antique hardware. - */ -#undef CONF_SLOWDOWN_IO - /* * On SuperH I/O ports are memory mapped, so we access them using normal * load/store instructions. sh_io_port_base is the virtual address to @@ -145,13 +140,7 @@ static inline void __set_io_port_base(unsigned long pb= ase) extern void __iomem *__ioport_map(unsigned long addr, unsigned int size); #endif =20 -#ifdef CONF_SLOWDOWN_IO -#define SLOW_DOWN_IO __raw_readw(sh_io_port_base) -#else -#define SLOW_DOWN_IO -#endif - -#define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, p, slow) \ +#define __BUILD_IOPORT_SINGLE(pfx, bwlq, type, p) \ \ static inline void pfx##out##bwlq##p(type val, unsigned long port) \ { \ @@ -159,7 +148,6 @@ static inline void pfx##out##bwlq##p(type val, unsigned= long port) \ \ __addr =3D __ioport_map(port, sizeof(type)); \ *__addr =3D val; \ - slow; \ } \ \ static inline type pfx##in##bwlq##p(unsigned long port) \ @@ -169,14 +157,13 @@ static inline type pfx##in##bwlq##p(unsigned long por= t) \ \ __addr =3D __ioport_map(port, sizeof(type)); \ __val =3D *__addr; \ - slow; \ \ return __val; \ } =20 #define __BUILD_IOPORT_PFX(bus, bwlq, type) \ __BUILD_IOPORT_SINGLE(bus, bwlq, type, ,) \ - __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) + __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p,) =20 #define BUILDIO_IOPORT(bwlq, type) \ __BUILD_IOPORT_PFX(, bwlq, type) --=20 2.25.1 From nobody Tue Apr 7 09:44:35 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49964C4332F for ; Fri, 14 Oct 2022 00:19:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbiJNATh (ORCPT ); Thu, 13 Oct 2022 20:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiJNATb (ORCPT ); Thu, 13 Oct 2022 20:19:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79C591960BD; Thu, 13 Oct 2022 17:19:30 -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 2DE89B8217C; Fri, 14 Oct 2022 00:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B85B8C433C1; Fri, 14 Oct 2022 00:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665706767; bh=UtqJe2yzr571hejGyzSnhfiu4QkOMjFvnI+iTOa/KcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iE3Uc/CNWtRXjep3lCJtcXGzigxmiRm+vLpo+aJ5ZGQYg7E5EZoLj++x44PyUYQMP sS4nPKWm1G/lWydOA1j7tDWbLmRyBd9jpocLXHdA+PTUmex/u4wozh631ulG63PtNC zneflDJxF/Od95td0gQjsGqj/OwqUw49M9xDvDgorbMhzfZ0DH2WsWvHTUZA0zAq3J olRVZPWeYeX78GEIdT5LeaJwTxWTQrsulAZxsKAiR1qOwBFNbj66Ppcyv+FxPodLW8 zAa7WI8dRcNjF5o2kEG9/MikbVSN1vIFE9c2QwZuDAibVla3+o/dJ0JBk+agnBIlqd 9Y7oL/Mqe666Q== From: Bjorn Helgaas To: linux-kernel@vger.kernel.org Cc: Bjorn Helgaas , linux-ia64@vger.kernel.org Subject: [PATCH 2/3] ia64: remove unused __SLOW_DOWN_IO and SLOW_DOWN_IO definitions Date: Thu, 13 Oct 2022 19:19:10 -0500 Message-Id: <20221014001911.3342485-3-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014001911.3342485-1-helgaas@kernel.org> References: <20221014001911.3342485-1-helgaas@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bjorn Helgaas Remove unused __SLOW_DOWN_IO and SLOW_DOWN_IO definitions. Signed-off-by: Bjorn Helgaas Cc: linux-ia64@vger.kernel.org --- arch/ia64/include/asm/io.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index ce66dfc0e719..83a492c8d298 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -23,10 +23,6 @@ #include #include =20 -/* We don't use IO slowdowns on the ia64, but.. */ -#define __SLOW_DOWN_IO do { } while (0) -#define SLOW_DOWN_IO do { } while (0) - #define __IA64_UNCACHED_OFFSET RGN_BASE(RGN_UNCACHED) =20 /* --=20 2.25.1 From nobody Tue Apr 7 09:44:35 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC4D3C433FE for ; Fri, 14 Oct 2022 00:19:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbiJNATp (ORCPT ); Thu, 13 Oct 2022 20:19:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbiJNATd (ORCPT ); Thu, 13 Oct 2022 20:19:33 -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 6F536183D86; Thu, 13 Oct 2022 17:19:32 -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 0F9DEB8217F; Fri, 14 Oct 2022 00:19:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8830FC433C1; Fri, 14 Oct 2022 00:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665706769; bh=tTEyDY4y1+87Ir4x7Jh4HSnnTm32iutjilnAr13AlmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RIQVTdUhKbvSNm5TJSCNviQbTKH+idQm2WL/bYb3g0XILtwdlcQcAUs3eT5lrCBep X1VPRKWnTKTolEsn8aVM6bnKc+Q3kTmN08H1cQvkwhRuBwj4BvnKeaBMRYZsxNRH1T PiqepcQvyMiIOAcDvF7dTVRD1FBJHmmkdftey2dladzpaTYqnNLSuyr+4GfUO0mSox x+9NUV1lP3YdxdqSBh/yAEHmzJi4jyXL6KGvVVLT03l+uVe7u+X9r6/mcyLzMa5p6O 0jQVrqGhqWLGsliL+i9Fu/cPjVgJGKlV51/AbWAUVzsld4U/Hi1TCbtKIo3su50Cjb xW9Aj21g+KvyA== From: Bjorn Helgaas To: linux-kernel@vger.kernel.org Cc: Bjorn Helgaas , Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org Subject: [PATCH 3/3] alpha: remove unused __SLOW_DOWN_IO and SLOW_DOWN_IO definitions Date: Thu, 13 Oct 2022 19:19:11 -0500 Message-Id: <20221014001911.3342485-4-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014001911.3342485-1-helgaas@kernel.org> References: <20221014001911.3342485-1-helgaas@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Bjorn Helgaas Remove unused __SLOW_DOWN_IO and SLOW_DOWN_IO definitions. Signed-off-by: Bjorn Helgaas Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-alpha@vger.kernel.org --- arch/alpha/include/asm/io.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h index 1c3605d874e9..7aeaf7c30a6f 100644 --- a/arch/alpha/include/asm/io.h +++ b/arch/alpha/include/asm/io.h @@ -14,10 +14,6 @@ the implementation we have here matches that interface. */ #include =20 -/* We don't use IO slowdowns on the Alpha, but.. */ -#define __SLOW_DOWN_IO do { } while (0) -#define SLOW_DOWN_IO do { } while (0) - /* * Virtual -> physical identity mapping starts at this offset */ --=20 2.25.1