Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3412511pxy; Mon, 26 Apr 2021 00:47:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd4ZMkApvjizbOWGNS/u/vyUOLeh0pEjwLO0F6t4diMhOMCdYxmbOAwKnX08yCmTEcUCXU X-Received: by 2002:a62:7cc7:0:b029:25a:cb9f:1c9 with SMTP id x190-20020a627cc70000b029025acb9f01c9mr16480017pfc.71.1619423258851; Mon, 26 Apr 2021 00:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619423258; cv=none; d=google.com; s=arc-20160816; b=lkzKsYdSKXhhrJryekPUXZUa/ahmkkogEtKZoNx21iXWpsI6GT4BAko4HAux13fWm+ 6grMyza2w4S/DSRue/n5lrcbC1LbGUwHQ5CXsPlWycrF/VaIAmQ4FH1zuj8CGeit0w0F wWzBNznnxZrsi1mM/pKjPXQl5kJrQsDErT8HDy1OZ1kncH/i1gYFk1TmgW61Vyy9dJFw AJ2Pg4KaUJzR2nNO8LrnX+ktlIh91K76IIFZrF4gyIHyTGXtwFrl2fgcuqFCArKFe0jJ y4HVN16unjWtPOh2GNRTvsmTrHqEi/R+xb+Uhri2hcD84fmidrAt6FCkYeWa9NaxSRHJ Ih+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=StynSrGjyP51wUlZc6puSVplTe3uoJBClGvUAvT3Mxw=; b=dgYRJOTkyiBT8ycqhXSwujCXdJmIeAQ7UqGjB/A2BlpU5RiO/HslqgbmA5HUGhDpc7 KikAhcuQUsPqE+WNVzsKa2+xktILkvnBUDkpglDVqnSO3YFdeWvHScVu3uKfSUZLrhG8 NqRT/hXgGPeIlnhxYR/wXXx4aDypcWmv9FrNMJutN6PLoQq0ut0QUubjFPICJcaFjvDE czdd3CaKZbl/PJlNo30zKWzoNCJ4hD1eKKnD9ktioPxg6cCDS9ITO0lJieS6J8eeidKq zdxXXLFj9AFzno2R5Ue2HODvHKpR9Ed4H3Jhmt0hkFPIXgwybSsdJbaDCqvgCp0eLrD1 FOtg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fastmail.com.au Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si17290247pgp.477.2021.04.26.00.47.26; Mon, 26 Apr 2021 00:47:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fastmail.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232836AbhDZHri (ORCPT + 99 others); Mon, 26 Apr 2021 03:47:38 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:42184 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbhDZHiE (ORCPT ); Mon, 26 Apr 2021 03:38:04 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id F3BF620306; Mon, 26 Apr 2021 03:37:16 -0400 (EDT) Date: Mon, 26 Apr 2021 17:37:22 +1000 (AEST) From: Finn Thain To: John Paul Adrian Glaubitz cc: Finn Thain , Geert Uytterhoeven , Michael Schmitz , Christoph Hellwig , Joshua Thompson , "David S. Miller" , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Subject: Re: [PATCH] m68k/mac: Replace macide driver with generic platform driver In-Reply-To: Message-ID: <10a08764-c138-9fe5-966c-ce68349b9b6@nippy.intranet> References: <793432cca963b632709c4d1312baa9874d73e1d8.1619341585.git.fthain@telegraphics.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 25 Apr 2021, John Paul Adrian Glaubitz wrote: > On 4/25/21 11:06 AM, Finn Thain wrote: > > This was tested on my Quadra 630. I haven't tested it on my PowerBook 150 > > because I don't have a RAM adapter board for it. > > > > Apparently, the hardware I tested doesn't need macide_clear_irq() or > > macide_test_irq() -- if it did, the generic driver would not have worked. > > It's possible that those routines are needed for the PowerBook 150 but > > we can cross that bridge if and when we come to it. > > > > BTW, macide_clear_irq() appears to suffer from a race condition. The write > > to the interrupt flags register could easily have unintended side effects > > as it may alter other flag bits. Fortunately, all of the other bits are > > unused by Linux. Moreover, when tested on my Quadra 630, that assignment > > (*ide_ifr &= ~0x20) was observed to have no effect on bit 5. > > Shouldn't we switch to a libata driver instead with legacy IDE been slated > for removal from the Linux kernel? > This patch means that the Quadra 630/580 config will work the same as the Powerbook 190 config. Please see commit 50c5feeea0af ("ide/macide: Convert Mac IDE driver to platform driver") for some background. This patch also means that the kernel/drivers/ide/macide.ko driver module will disappear completely. The module that will replace it is up to you. If you enable CONFIG_IDE and CONFIG_BLK_DEV_PLATFORM, Quadras and Powerbooks will use the kernel/drivers/ide/ide_platform.ko module. If you enable CONFIG_ATA and CONFIG_PATA_PLATFORM, Quadras and Powerbooks will use the kernel/drivers/ata/pata_platform.ko module. (If you enable all of the above, you may need to use a blacklist to ensure that the preferred driver module gets loaded.) Was macide the only IDE driver in Debian/m68k kernels without a libata alternative? If so, this patch would allow you to finally drop CONFIG_IDE. > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer - glaubitz@debian.org > `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de > `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 >