Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3502637pxf; Mon, 22 Mar 2021 07:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5x9Li4fVk+nlERXQLvd9Mf0QkUTWAn+JCclxTKm9OSDIU2Clxavw1WpsbOxdD06/dSDq0 X-Received: by 2002:a05:6402:5203:: with SMTP id s3mr26617777edd.79.1616424961718; Mon, 22 Mar 2021 07:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616424961; cv=none; d=google.com; s=arc-20160816; b=D83W3jMVS/YNGsPiMo42d+5kubmCNYmNCOnX0hSlLev8lMvkWywDctSKREnjDlAg7M 0heNG5RaYnpoUtceMF9XX9JeQ9nIhAwHZAzYQ7DnBlgoJPOQqryNfx5srsmSSaZFACae jIXQuJC0XE46f/GsWJLqsrY6MRizLUgb477CKmZ0vrXVOI8pxBcB3CMuGoZW3eHwvNI8 EytHvQOdHTZVfSmnfBmwNegi8/1JP6Bsu6d96K77J13K8gH5OytU9lY8S4gtqL0p7G3z RAkoR37xJ2I7yDiJwcki8FR0+BM4YtbLqCQXKs0sVZWDi5wgvd0NfOPwIV8BJt3CT3AA wtNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LzGh6CrmNdNrZdjJ4m2V9zLdmdEqpKmuHJ8vDk99sHo=; b=lPsRs2GKqdEfcFLrV0D13oh/YXNNhW4GFCc8IXsup/0jfOU6Es2mexXwVu2QVIG31H iKOe+t6S8d1InFGSl6r+stfCdEIs+a8BTAQubglOzyk8uce3XVG73jVMx/LDrnQm6c+Y fpIRqc8KZmkyCKYJa79BiJA2NHw47691uNnb9IEhifxVEuCAqMr6KGfYAu2FmSQHVO93 YUxSxUXE2rVCHQwvLwc9yvK5ViiMLlWxIlXr7pnjAV+b+/vK0+K2/I3dSplGB09Ox4jy uhYBW8h9dl3iZJeJaBJ1wK6GRCG4kafJWjFJTHGCByX1UFP5mLfFoA0AUsCWLqt2sNwA WAWA== 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 v2si11308171ejg.251.2021.03.22.07.55.39; Mon, 22 Mar 2021 07:56:01 -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 S230400AbhCVOym (ORCPT + 99 others); Mon, 22 Mar 2021 10:54:42 -0400 Received: from verein.lst.de ([213.95.11.211]:56129 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhCVOyI (ORCPT ); Mon, 22 Mar 2021 10:54:08 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A32F268BEB; Mon, 22 Mar 2021 15:54:03 +0100 (CET) Date: Mon, 22 Mar 2021 15:54:03 +0100 From: Christoph Hellwig To: Russell King - ARM Linux admin Cc: Christoph Hellwig , "David S. Miller" , Jens Axboe , Geert Uytterhoeven , Richard Henderson , Ivan Kokshaysky , Matt Turner , 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: [PATCH 02/10] ARM: disable CONFIG_IDE in footbridge_defconfig Message-ID: <20210322145403.GA30942@lst.de> References: <20210318045706.200458-1-hch@lst.de> <20210318045706.200458-3-hch@lst.de> <20210319170753.GV1463@shell.armlinux.org.uk> <20210319175311.GW1463@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210319175311.GW1463@shell.armlinux.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 05:53:12PM +0000, Russell King - ARM Linux admin wrote: > If I extend the arch/arm/kernel/bios32.c code to kill BARs 2/3 (which > actually are not present on the CY82C693) then the IDE driver works > for me, but the PATA driver does not: > > cy82c693 0000:00:06.1: IDE controller (0x1080:0xc693 rev 0x00) > cy82c693 0000:00:06.1: not 100% native mode: will probe irqs later > legacy IDE will be removed in 2021, please switch to libata > Report any missing HW support to linux-ide@vger.kernel.org > ide0: BM-DMA at 0x1080-0x1087 > ide1: BM-DMA at 0x1088-0x108f > Probing IDE interface ide0... > hda: PIONEER DVD-RW DVR-105, ATAPI CD/DVD-ROM drive > hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4 > ... > > (unbind Cypress_IDE and try binding pata_cypress) > > pata_cypress 0000:00:06.1: no available native port This comes from ata_pci_sff_init_host when it tails to initialize a port. There are three cases why it can't initialize the port: 1) because it is marked as dummy, which is the case for the second port of the cypress controller, but you're not using that even with the old ide driver, and we'd still not get that message just because of that second port. 2) when ata_resources_present returns false because the BAR has a zero start or length 3) because pcim_iomap_regions() fails. This prints a warning to the log ("failed to request/iomap BARs for port %d (errno=%d)") that you should have seen So the problem here has to be number two. The legacy ide driver OTOH seems to lack a lot of these checks, although I'm not sure how it manages to actually work without those. Can you show how the BAR assignment for the device looks using lscpi or a tool of your choice?