Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1561981pxf; Fri, 19 Mar 2021 09:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfzccMDYcM8YOmqo8kQdXVWxFAd5Zjrdp/9Ojij6hdReNGJp868CfZiawozuTcvcOyncz1 X-Received: by 2002:a17:907:689:: with SMTP id wn9mr5358014ejb.485.1616172621940; Fri, 19 Mar 2021 09:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616172621; cv=none; d=google.com; s=arc-20160816; b=BskhNAiT2UKIb1JtD/mvD1tOYTi2VH56A81ZNkFIpwsgHxtO9DLVghkA93v7gMre1x 0xos/cFGwHLYokzZPKc1njDoK6gX7vBQDYXG8RWwaKgBvHu7axTKmkz+3mB5LRaL9l3E FOCv09GWbfYDR7w1II6mMPXGEigvqnFSY6BqlWOsfb6tBI65Low3STG3wRpOjbHnMT7N FGUEw50DIj0PxzzJK/n+z+JCtw1gm68xmbvPVai3gh2AGpKurtAiAaMWprkoBzcRTgAp J3+P+CWzCaIVGBy8o0ikDp9r/ggyfUMlrLWD2vUZfPW7xHnZFmQ9EhnV2Srg9B60NY5s JHTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=TjkTCvh0LpG/cAltXhtaO9uro5kLpNUnfMuTIYLGU98=; b=cT1m8AYj4GbTD018k3ViNHapsgUoft3BVHF/XOlujH1FVhRe7B/0zP5Ue/loCvQz8B C+gjyjOT0jmm8NJM2iLkjpmNEo9AOXZlKm3m/cGGkQaNyysUzfC6k1LcOMPLGgBf2knf +IXa91DyoO7OuFm4jFQaBS1ZltZ1tZUoFUgtcvy81bWWWaYVJljDVTPuWJ+UWDl8ReWq gvVdjmqk9ElrCk+ukkpWd4Fvjn87ruDTQMWdHUU8rbBOrQF1MCFM82qJnqB6rPlenPQO fPAHZ9/3qH1+4Cjx9Tw2gdvuAUWsFG6sFW7UMywY4aP9figJ0U7U8JFHPXhIlhL5IwWC nuiQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si4474152eja.451.2021.03.19.09.49.58; Fri, 19 Mar 2021 09:50:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbhCSQsm (ORCPT + 99 others); Fri, 19 Mar 2021 12:48:42 -0400 Received: from angie.orcam.me.uk ([157.25.102.26]:37910 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbhCSQsf (ORCPT ); Fri, 19 Mar 2021 12:48:35 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 112A792009C; Fri, 19 Mar 2021 17:48:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 0ABFF92009B; Fri, 19 Mar 2021 17:48:33 +0100 (CET) Date: Fri, 19 Mar 2021 17:48:32 +0100 (CET) From: "Maciej W. Rozycki" To: Christoph Hellwig cc: "David S. Miller" , Jens Axboe , Geert Uytterhoeven , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Thomas Bogendoerfer , Michael Ellerman , linux-ide@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: remove the legacy ide driver In-Reply-To: <20210318045706.200458-1-hch@lst.de> Message-ID: References: <20210318045706.200458-1-hch@lst.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Mar 2021, Christoph Hellwig wrote: > we've been trying to get rid of the legacy ide driver for a while now, > and finally scheduled a removal for 2021, which is three month old now. Hmm, there's still a regression in that pata_legacy unconditionally pokes at random I/O port locations corresponding to all the known possible ATA interface mappings with ISA option cards: scsi host0: pata_legacy ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14 ata1.00: ATA-4: ST310211A, 3.54, max UDMA/100 ata1.00: 19541088 sectors, multi 16: LBA ata1.00: configured for PIO scsi 0:0:0:0: Direct-Access ATA ST310211A 3.54 PQ: 0 ANSI: 5 scsi 0:0:0:0: Attached scsi generic sg0 type 0 sd 0:0:0:0: [sda] 19541088 512-byte logical blocks: (10.0 GB/9.32 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sd 0:0:0:0: [sda] Attached SCSI disk scsi host1: pata_legacy ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15 scsi host1: pata_legacy ata3: PATA max PIO4 cmd 0x1e8 ctl 0x3ee irq 11 scsi host1: pata_legacy ata4: PATA max PIO4 cmd 0x168 ctl 0x36e irq 10 scsi host1: pata_legacy ata5: PATA max PIO4 cmd 0x1e0 ctl 0x3e6 irq 8 scsi host1: pata_legacy ata6: PATA max PIO4 cmd 0x160 ctl 0x366 irq 12 This seems needlessly dangerous to me. With the old IDE driver I could (and did) specify "ide_generic.probe_mask=1" to avoid this clutter (the ISA card used with this system has a single ATA port only). I guess it's easy to fix by carrying the `probe_mask' parameter over and I think we'd rather wait with the removal of the IDE subsystem until we have a release with this option supported. I may look into it unless someone beats me to it. Overall I find it rather disturbing that nobody has noticed this issue over all these years. NB it is only earlier this year that I recovered this system from a PSU failure several years ago, which took the disk the system previously had with it, so myself I had no chance to get at it any earlier, though I did mean to have a look as soon as I saw the notice about the scheduled IDE removal. Maciej