Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp627715lqp; Fri, 5 Apr 2024 04:26:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX4/NqCaEBMarazVcG5cb/D/Dhz7NyU+wu3zsCo5CFPl7X200+6OSeSqgMrNdG+DRn2woF+DBkhJN4n2WcE6GuB+KNG0GnL6whOqBEpZA== X-Google-Smtp-Source: AGHT+IGiYUBXlJc+DNVNaFo5kq+WGx0DZP6qXmjGxpaJKH6/HM/HtFQKr66XjGLyRTc/U4+8Re8i X-Received: by 2002:a17:90b:3ecd:b0:2a0:99b9:dff0 with SMTP id rm13-20020a17090b3ecd00b002a099b9dff0mr971468pjb.16.1712316375512; Fri, 05 Apr 2024 04:26:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712316375; cv=pass; d=google.com; s=arc-20160816; b=VdEbR0ebiYS5X84N7D0pbS45FpnbNh9du4Az9j12vl//JS6XA7astWnXxDqvYdOege ELvXPALSFeuqA6ee23g5zvdSb7BK17QlsMzIsIVnXW2EeMYVQqb5XnfX9NYF2Vht/mW+ Aeurkq6Bgq/uB9WeKjSjM7UdLgh11homTmcj0MzOySaNSXhVhoR4zuFq7fJEZqALzAfm p/BkyfShgpP7Auv1Y7d8zayd9Wd9Pv3+hdqtMFk5wVTz05v7BIVd+JRPY8Llag3w+KMU YAqW9NZ26wDCNvkZNS37mASOYx9HZI7zakrCwfDXnAJtjStfD1828R0aF8KSGLNTszgU NwSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature; bh=R41xR4duTHayu+zHpr+Pucw6lQICDJq/XCZT+1JwUbM=; fh=MyjwRff5NrdVxhDRUYscl4bG9AjcA5jXcOkrvvp1UZU=; b=CiQxcOV4wtA5HziOARPWGX6w/rPWy2fTkNuJgMY1XKOYdnRRmJSmlZCGyntIi3hHNM kcgkooGU1AXE+kNZDi9fc3qBViFWb62STmEKDIB3WGJjKfvkWuJsnxuRZ9pK//cbm9k5 uJTUMZN1ae7mgNY1sIRx03+2hBSBsXB4S8qzsH3jmHa79bqQYYt3U2qIGwzwwFAFcSPA l41HM1rvCtcG9Xw2DDtm42ZJiF6iQVBNqgvdeEX/p3SuW+h0Mwp1FMVjSpJXclycROIf /6PqwOgb7fKGdoS58WNp3emGYILWPprdfN6zrz/LjRn3VOScYh1fw+gqdfCHxkZ4NP9Y I8dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZCHLFEzu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w16-20020a17090a15d000b002a00b47b029si1271102pjd.42.2024.04.05.04.26.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 04:26:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZCHLFEzu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-132906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2896D282554 for ; Fri, 5 Apr 2024 11:26:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A11A316C45E; Fri, 5 Apr 2024 11:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZCHLFEzu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C183A16132B for ; Fri, 5 Apr 2024 11:26:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712316366; cv=none; b=A/zFpJ2czuI5tEyxPEL/btGsmURy0mXp1HT0QWHQG0NdJW0Un4f5NAEalKb6XiaJopNcgBSh+r9KEnD3KBf846imtLlLFeBTe5uP/tW1hPrdZWogxMnv09h03581GfBKrYx60bp4ikErEgHQ+jPgT8lwObilto7OPHrrdUqf9LQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712316366; c=relaxed/simple; bh=AMRPVsvI5Nb+bU3i5rw5NJTnOuE7WZWcpxBq0NNIJW8=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=CgsVQHVgMNUwnL71depc0M95E3uWs1qoQjvuZLTYqcJP6j9abP5EmwRii3Cy9uC/M0GJJ/GVGu3oxK0HtSSpErh+lT7Buh2lJd4xVTSJ/SQzI7Ba0oMEoN1SCSm06yM6Ppq19y6K/fhaq+f4tDLIK9GFweVySEg7q1O9tGON1Gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZCHLFEzu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15543C433F1; Fri, 5 Apr 2024 11:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712316366; bh=AMRPVsvI5Nb+bU3i5rw5NJTnOuE7WZWcpxBq0NNIJW8=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=ZCHLFEzu7ooQeu3JhW5gMzG4vZ3pI/Zr22X4uVkkpnHQxTbi086KWJkbCAuWzmDZu ezFa8bbN3Z44L9Krtg1jPB9gxHSxv7C1bhZhf0TlW0I6pbfGpyLtmvItzOo1byjDky CHforGBTC++H1YqaqqWu0vTuAKrqgQmg3DczMUXla+gy4kwddNB5dbTQkqpy2BUW5H wCl8zGuyKbY/lOvYljmGxOYkW/S47hXx/Qn1/6lCiBmcTGpLsX5EtL/aFPnkbBpqWm ycfIsOvpomjcd80TsS7kGtlzw6sNhMFPiKgaSpbfbwqECH/ej+SYURUftAyn73so3k uxkec+udmKhpQ== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfauth.nyi.internal (Postfix) with ESMTP id 1AD4F1200066; Fri, 5 Apr 2024 07:26:05 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 05 Apr 2024 07:26:05 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegtddggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugeskhgvrhhnvghlrdhorhhgqeenucggtf frrghtthgvrhhnpedvtddtffejfeeggefgleefgfeghfehfeefffetgffgleegudevveet hfefjeevkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrrhhnugdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddvkeehudej tddvgedqvdekjedttddvieegqdgrrhhnugeppehkvghrnhgvlhdrohhrghesrghrnhgusg druggv X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6DB2EB6008D; Fri, 5 Apr 2024 07:26:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <11fdef9b-413d-4f88-b3d3-e5b27a88cf6f@app.fastmail.com> In-Reply-To: References: <20240403122851.38808-1-schnelle@linux.ibm.com> Date: Fri, 05 Apr 2024 13:24:28 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" Cc: "Michael Schmitz" , "Niklas Schnelle" , linux-m68k@lists.linux-m68k.org, "Heiko Carstens" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/1] m68k: Handle HAS_IOPORT dependencies Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Apr 5, 2024, at 12:16, Geert Uytterhoeven wrote: > On Wed, Apr 3, 2024 at 8:35=E2=80=AFPM Arnd Bergmann = wrote: >> On Wed, Apr 3, 2024, at 20:11, Michael Schmitz wrote: >> >> For the Q40, it may be better in the long run to change the >> drivers to just use MMIO directly though. > > Q40 uses ISA. Ah, indeed. I got confused by the NE2000 example as that contains "depends on (ISA || (Q40 && m)", which would have indicated that it's not actually using CONFIG_ISA. > Michael is worried about non-ISA drivers using inb() and friends. > At some point in time (i.e. eons ago), we were told it was better to > use in[bwl]()/read[bwl]() instead of directly dereferencing volatile > pointers... It's definitely still better to use an abstraction layer for MMIO accesses using inline asm instructions than open-coding the volatile pointer dereferences. Over time we have gotten better at defining which of the available abstractions should be used for a given bus, so inb()/outb() is now only really used for things derived from ISA in some form, including e.g. PCI and LPC. > Anyway, I don't think we have many users of inb() and friends left, and > I assume the bots should have detected any/most remaining users in Nik= las' > branch... > > arch/m68k/include/asm/floppy.h on Sun-3x might be the only offender? Could be. I think we can leave this one to whoever tries to get sun3x floppy support working, it's been marked broken for a while (see below). If there are any others, they will cause pretty obvious build failures once inb()/outb() are removed from the build, and they should be trivial to fix then. Arnd commit f1e0f28a85001f4faa3ea930fcf201933f42340e Author: akpm Date: Mon Jan 19 18:31:30 2004 +0000 [PATCH] M68k floppy selection =20 From: Geert Uytterhoeven =20 Floppy: On m68k, PC-style floppies are used on Q40/Q60 and Sun-3x on= ly. Sun-3x floppy is currently broken (needs I/O abstractions) =20 BKrev: 400c2282G1O-TsH5FiwzPbOorftQhg diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 2dce1d2699a9..32fdec34568e 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -6,7 +6,7 @@ menu "Block devices" =20 config BLK_DEV_FD tristate "Normal floppy disk support" - depends on !X86_PC9800 && !ARCH_S390 + depends on (!X86_PC9800 && !ARCH_S390 && !M68K) || Q40 || (SUN3X= && BROKEN) ---help--- If you want to use the floppy disk drive(s) of your PC under L= inux, say Y. Information about this driver, especially important for= IBM