From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: footbridge_defconfig: disable IDE subsystem
Date: Fri, 14 Aug 2015 19:46:50 +0100 [thread overview]
Message-ID: <20150814184649.GZ7557@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <4667234.QqV6GaKOSx@amdc1976>
On Fri, Aug 14, 2015 at 08:08:13PM +0200, Bartlomiej Zolnierkiewicz wrote:
> On Friday, August 14, 2015 06:43:30 PM Russell King - ARM Linux wrote:
> > On Fri, Aug 14, 2015 at 07:04:23PM +0200, Bartlomiej Zolnierkiewicz wrote:
> > > This patch disables deprecated IDE subsystem in footbridge_defconfig
> > > (no IDE host drivers are selected in this config so there is no valid
> > > reason to enable IDE subsystem itself).
> >
> > That's actually incorrect. I use IDE on Footbridge because it works
> > loads with my CY82C693 board. I never submitted the patches which make
> > CY82C693 work on ARM though...
> >
> > However, the CY82C693 must not be allowed to use DMA (which is why the
> > ATA driver can't be used) - if it does, it locks the PCI bus. It's
> > a hardware incompatibility between some PCI devices and the Footbridge.
>
> PATA driver is the same in this regard as IDE one. They both try to
> use DMA if supported by a device. Would be great if you could fix
> them (or at least PATA one) to limit your setup to PIO automatically
> (please also note that you can limit libata to PIO manually these
> days).
>
> When it comes to CY82C693 there is also a leftover issue with PATA
> driver that it only supports primary interface currently (BTW this is
> why I left Alpha's defconfig alone for now - it uses CY82C693). I can
> look into fixing this (or assist in this work) if you are interested
> in it.
Well, it looks like the PCI layer has been screwed for this for some time:
cy82c693 0000:00:06.1: IDE controller (0x1080:0xc693 rev 0x00)
Cypress_IDE 0000:00:06.1: device not available (can't reserve [io 0x0170-0x0177])
Cypress_IDE 0000:00:06.1: device not available (can't reserve [io 0x0170-0x0177])
cy82c693 0000:00:06.1: couldn't enable device
Cypress_IDE: probe of 0000:00:06.1 failed with error -22
The PCI layer forces the standard legacy ports onto the Cypress device,
and then the "primary" resources get null'd out by the long-standing
CY82C693 quirk in the ARM bios32.c.
However - the ARM quick is not what causes the above - the above looks
to be caused by the generic PCI code going wrong - it adds those
legacy resources, and nothing ever connects them to the resource tree:
000000a0-000000bf : pic2
000000c0-000000df : dma2
00000213-00000213 : ISAPnP
000002f8-000002ff : serial8250.0
which then causes pci_enable_device() to fail.
I doubt CY82C693 even works on Alpha... or any IDE interface using the
legacy IO ports... So it may take quite a bit of work to get going
again - not something I'm going to attempt prior to the 4.3 merge
window.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2015-08-14 18:46 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 17:04 [RFT PATCH] arm: am200epdkit_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: assabet_defconfig: disable IDE subsystem Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: badge4_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: cerfcube_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: colibri_pxa270_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: collie_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2015-08-14 17:25 ` Dmitry Eremin-Solenikov
2016-02-04 14:15 ` Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: corgi_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: footbridge_defconfig: disable IDE subsystem Bartlomiej Zolnierkiewicz
2015-08-14 17:43 ` Russell King - ARM Linux
2015-08-14 18:08 ` Bartlomiej Zolnierkiewicz
2015-08-14 18:46 ` Russell King - ARM Linux [this message]
2015-08-14 17:04 ` [RFT PATCH] arm: h3600_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: ixp4xx_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: jornada720_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: lart_defconfig: disable IDE subsystem Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: lpda270_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: mainstone_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-14 19:09 ` Robert Jarzmik
2015-08-14 17:04 ` [RFT PATCH] arm: netwinder_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: omap1_defconfig: " Bartlomiej Zolnierkiewicz
2015-08-17 6:34 ` Tony Lindgren
2016-02-04 14:16 ` Bartlomiej Zolnierkiewicz
2016-02-26 16:17 ` Arnd Bergmann
2015-08-14 17:04 ` [PATCH] arm: pxa255-idp_defconfig: disable IDE subsystem Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: s3c2410_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: shannon_defconfig: disable IDE subsystem Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [RFT PATCH] arm: spitz_defconfig: convert to use libata PATA drivers Bartlomiej Zolnierkiewicz
2015-08-14 17:04 ` [PATCH] arm: trizeps4_defconfig: disable IDE subsystem Bartlomiej Zolnierkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150814184649.GZ7557@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).