* Problems with SX164 IDE in recent 2.3
@ 1999-08-17 7:09 Mitchell Blank Jr
1999-08-23 5:51 ` Mitchell Blank Jr
0 siblings, 1 reply; 9+ messages in thread
From: Mitchell Blank Jr @ 1999-08-17 7:09 UTC (permalink / raw)
To: axp-list
I've been a linux user for a long time, and have sporadically played with
the alpha port from time to time. However, I'm now trying to make my
newly acquired sx164 box my main development machine and need to run
a recent 2.3 kernel.
I've tried 2.3.14pre1 (with minor tweaking) and now 2.3.13rth2, but neither
seems to work with my onboard IDE. Under 2.2.7, I get:
Uniform Multi-Platform E-IDE driver Revision: 6.19
CY82C693: IDE controller on PCI bus 00 dev 41
CY82C693: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x10180-0x10187, BIOS settings: hda:pio, hdb:pio
CY82C693U driver v0.33 99-01-23 Andreas S. Krebs (akrebs@altavista.net)
ide1: BM-DMA at 0x10188-0x1018f, BIOS settings: hdc:pio, hdd:pio
hda: IBM-DJNA-371800, ATA DISK drive
hdc: WDC AC36400L, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: IBM-DJNA-371800, 17206MB w/1966kB Cache, CHS=34960/16/63, (U)DMA
hdc: WDC AC36400L, 6149MB w/256kB Cache, CHS=13328/15/63, (U)DMA
but under 2.3.{14pre1,13rth2}:
Uniform Multi-Platform E-IDE driver Revision: 6.20
CY82C693: IDE controller on PCI bus 00 dev 41
CY82C693: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x8800-0x8807, BIOS settings: hda:pio, hdb:pio
CY82C693U driver v0.33 99-01-23 Andreas S. Krebs (akrebs@altavista.net)
ide1: BM-DMA at 0x8808-0x880f, BIOS settings: hdc:pio, hdd:pio
So the cy82c693 gets detected fine (albeit at a different IO range - I
assume that's just a change in the PCI code or something), but no drives
are found by drivers/block/ide-probe.c. I've tracked this down to the
IDE driver not being able to talk to the interface via the old ISA IO
ports. Tracing the {IN,OUT}_BYTE calls in include/linux/isa.h, while
drivers/block/ide-probe.c:do_probe is looking for hd[ab]
jiffies=3346, OUT_BYTE(0xA0, 0x1F6)
jiffies=3438, IN_BYTE(0x1F6)=0xFF
jiffies=3475, OUT_BYTE(0xA0, 0x1F6)
jiffies=3568, IN_BYTE(0x1F6)=0xFF
jiffies=3605, OUT_BYTE(0xB0, 0x1F6)
jiffies=3698, IN_BYTE(0x1F6)=0xFF
jiffies=3736, OUT_BYTE(0xA0, 0x1F6)
jiffies=3828, OUT_BYTE(0xB0, 0x1F6)
jiffies=3920, IN_BYTE(0x1F6)=0xFF
jiffies=3957, OUT_BYTE(0xA0, 0x1F6)
So it seems that the ISA range isn't mapped mapped correctly. I don't
imagine this has anything to do with the iomap changes (this is "inb space",
not "readb space"; also happens pre-rtr2). Is support for pyxis just broken
in 2.3 currently?
This is a mostly-stock RH60 system:
% gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
And a non-generic build:
% grep ALPHA /usr/src/linux/.config | grep -v '^#'
CONFIG_ALPHA_SX164=y
CONFIG_ALPHA_EV5=y
CONFIG_ALPHA_PYXIS=y
CONFIG_ALPHA_SRM=y
-Mitch
ps: Sorry if this is a stupid question. I joined this list just recently,
and my current net connectivity is lousy enough to make searching the
archives next to impossible.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Problems with SX164 IDE in recent 2.3
1999-08-17 7:09 Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
@ 1999-08-23 5:51 ` Mitchell Blank Jr
1999-08-24 18:25 ` Ivan Kokshaysky
0 siblings, 1 reply; 9+ messages in thread
From: Mitchell Blank Jr @ 1999-08-23 5:51 UTC (permalink / raw)
To: axp-list
Some more observations on this problem after a weekend of hacking on it...
Mitchell Blank Jr wrote:
> I've tried 2.3.14pre1 (with minor tweaking) and now 2.3.13rth2, but neither
> seems to work with my onboard IDE. Under 2.2.7, I get:
Also: 2.2.12final3 works fine and 2.3.15pre2 is still broke
> So the cy82c693 gets detected fine (albeit at a different IO range - I
> assume that's just a change in the PCI code or something),
I actually figured that one out - arch/alpha/kernel.c got modified to
ignore 4 of the 5 ranges supported by cy82c693, resulting in the
4*0x800 difference in I/O ranges.
So I looked at all the relevant differences between 2.2.12final3 and
2.3.15pre2 in both the alpha and the IDE code, and tried reverting the
changes one by one - no luck.
1. Is there *anyone* running a recent 2.3 kernel on alpha w/ IDE?
2. Is there *anyone* running a recent 2.3 kernel on a SX164?
-Mitch
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problems with SX164 IDE in recent 2.3
1999-08-23 5:51 ` Mitchell Blank Jr
@ 1999-08-24 18:25 ` Ivan Kokshaysky
1999-08-24 18:34 ` bushman
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Ivan Kokshaysky @ 1999-08-24 18:25 UTC (permalink / raw)
To: axp-list
On Sun, Aug 22, 1999 at 10:51:39PM -0700, Mitchell Blank Jr wrote:
>
> Also: 2.2.12final3 works fine and 2.3.15pre2 is still broke
>
> > So the cy82c693 gets detected fine (albeit at a different IO range - I
> > assume that's just a change in the PCI code or something),
>
Interesting. Recent 2.3.x kernels somehow break settings of the Cypress chip,
so IDE addresses are bogus (something like 0xfff0). As a temporary workaround
try this hack (tested with 2.3.15pre2), it set IDE i/o back to 0x1f0/0x170.
Ivan.
--- linux/drivers/block/cy82c693.c.orig Thu Jun 3 09:21:51 1999
+++ linux/drivers/block/cy82c693.c Tue Aug 24 22:15:46 1999
@@ -383,6 +383,8 @@
/* write info about this verion of the driver */
printk (KERN_INFO CY82_VERSION "\n");
+ pci_write_config_dword(dev, 0x10, 0x1f0);
+
#ifdef CY82C693_SETDMA_CLOCK
/* okay let's set the DMA clock speed */
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Problems with SX164 IDE in recent 2.3
1999-08-24 18:25 ` Ivan Kokshaysky
@ 1999-08-24 18:34 ` bushman
1999-08-24 22:25 ` PCXCV-AC Antonio S. Martins Jr.
1999-08-25 4:33 ` Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
1999-08-25 6:29 ` Richard Henderson
2 siblings, 1 reply; 9+ messages in thread
From: bushman @ 1999-08-24 18:34 UTC (permalink / raw)
To: axp-list
is that with before or after using the uniform patch?
On Tue, 24 Aug 1999, Ivan Kokshaysky wrote:
> On Sun, Aug 22, 1999 at 10:51:39PM -0700, Mitchell Blank Jr wrote:
> >
> > Also: 2.2.12final3 works fine and 2.3.15pre2 is still broke
> >
> > > So the cy82c693 gets detected fine (albeit at a different IO range - I
> > > assume that's just a change in the PCI code or something),
> >
>
> Interesting. Recent 2.3.x kernels somehow break settings of the Cypress chip,
> so IDE addresses are bogus (something like 0xfff0). As a temporary workaround
> try this hack (tested with 2.3.15pre2), it set IDE i/o back to 0x1f0/0x170.
>
> Ivan.
>
> --- linux/drivers/block/cy82c693.c.orig Thu Jun 3 09:21:51 1999
> +++ linux/drivers/block/cy82c693.c Tue Aug 24 22:15:46 1999
> @@ -383,6 +383,8 @@
> /* write info about this verion of the driver */
> printk (KERN_INFO CY82_VERSION "\n");
>
> + pci_write_config_dword(dev, 0x10, 0x1f0);
> +
> #ifdef CY82C693_SETDMA_CLOCK
> /* okay let's set the DMA clock speed */
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* PCXCV-AC
1999-08-24 18:34 ` bushman
@ 1999-08-24 22:25 ` Antonio S. Martins Jr.
0 siblings, 0 replies; 9+ messages in thread
From: Antonio S. Martins Jr. @ 1999-08-24 22:25 UTC (permalink / raw)
To: axp-list
Hi Gurus,
I'm searching for info on how to configure X-Free86 on an
AlphaServer400 4/166 with a DEC TGA Card and a monitor PCXCV-AC, I can't
get the right monitor frequencies, someone had it?
Thanks in advance,
Antonio.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - System Analist | "Only The Shadow Knows |
| WorldNet Internet Maringa - PR - Brasil | what evil lurks in the |
| E-Mail: shadow@wnet.com.br | Heart of Men!" |
| shadow@uem.br | !!! Linux User: 52392 !!! |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
This e-mail message is 100% Microsoft free!
/"\
\ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problems with SX164 IDE in recent 2.3
1999-08-24 18:25 ` Ivan Kokshaysky
1999-08-24 18:34 ` bushman
@ 1999-08-25 4:33 ` Mitchell Blank Jr
1999-08-25 6:29 ` Richard Henderson
2 siblings, 0 replies; 9+ messages in thread
From: Mitchell Blank Jr @ 1999-08-25 4:33 UTC (permalink / raw)
To: axp-list
Ivan Kokshaysky wrote:
> Interesting. Recent 2.3.x kernels somehow break settings of the Cypress chip,
> so IDE addresses are bogus (something like 0xfff0). As a temporary workaround
> try this hack (tested with 2.3.15pre2), it set IDE i/o back to 0x1f0/0x170.
Thanks for the reply! I've really been beating my head against the wall
on this one... I'm certainly not adverse to hacking on the kernel, but
IDE and PCI are far away from my areas of expertise, so the going is
VERY slow.
Unfortunately the patch didn't QUITE work - it seems that now it's
mapping some of the IDE space correctly, but not enough.... now I get:
CY82C693: IDE controller on PCI bus 00 dev 41
CY82C693: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x8800-0x8807, BIOS settings: hda:pio, hdb:pio
CY82C693U driver v0.33 99-01-23 Andreas S. Krebs (akrebs@altavista.net)
ide1: BM-DMA at 0x8808-0x880f, BIOS settings: hdc:pio, hdd:pio
hda: probing with STATUS(0x50) instead of ALTSTATUS(0xff)
hda: IBM-DJNA-371800, ATA DISK drive
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0xff)
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0xff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: IBM-DJNA-371800, 17206MB w/1966kB Cache, CHS=34960/16/63, (U)DMA
[...]
Partition check:
hda:Dev 03:00 Sun disklabel: bad magic 1c17
unknown partition table
attempt to access beyond end of device
03:02: rw=0, want=2, limit=0
EXT2-fs: unable to read superblock
Kernel panic: VFS: Unable to mount root fs on 03:02
So I could do a STATUS, but not an ALTSTATUS and could get the drive's
identity but not do real I/O. You're clearly on the right track, though.
Tha above was with .15pre2. I'll try some other variations and tweaking and
if I get something different I'll let you know (.15pre3 is out of the
question because the PCI merge is going to require some enlightened
tweaking of arch/alpha/kernel/bios32.c to sort out, but I can fall back
to .14rth2 and see how that goes)
-Mitch
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problems with SX164 IDE in recent 2.3
1999-08-24 18:25 ` Ivan Kokshaysky
1999-08-24 18:34 ` bushman
1999-08-25 4:33 ` Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
@ 1999-08-25 6:29 ` Richard Henderson
1999-08-25 11:39 ` Ivan Kokshaysky
1999-08-25 17:59 ` Mitchell Blank Jr
2 siblings, 2 replies; 9+ messages in thread
From: Richard Henderson @ 1999-08-25 6:29 UTC (permalink / raw)
To: axp-list
On Tue, Aug 24, 1999 at 10:25:39PM +0400, Ivan Kokshaysky wrote:
> Interesting. Recent 2.3.x kernels somehow break settings of the Cypress chip,
> so IDE addresses are bogus (something like 0xfff0). As a temporary workaround
> try this hack (tested with 2.3.15pre2), it set IDE i/o back to 0x1f0/0x170.
That's odd. The code that I changed was intended to leave i/o resources
0 and 1 alone (the 0x1f0/170 bits), but to change the memory region. This
because SRM was putting the memory region out at 0x10100 on my ds20, and
the recent resource rewrite uses a 64k i/o space.
I thought about just widening the i/o space, since technically Alpha can
speak to a 32-bit i/o space. But it seems quite likely that there's lots
of broken hardware out there that only wires up the low 16 bits, and so
as a rule I don't want to be allocating i/o regions outside 64k.
The correct place to poke things is in arch/alpha/kernel/bios32.c,
in function layout_device.
r~
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Problems with SX164 IDE in recent 2.3
1999-08-25 6:29 ` Richard Henderson
@ 1999-08-25 11:39 ` Ivan Kokshaysky
1999-08-25 17:59 ` Mitchell Blank Jr
1 sibling, 0 replies; 9+ messages in thread
From: Ivan Kokshaysky @ 1999-08-25 11:39 UTC (permalink / raw)
To: axp-list
On Tue, Aug 24, 1999 at 11:29:32PM -0700, Richard Henderson wrote:
> The correct place to poke things is in arch/alpha/kernel/bios32.c,
> in function layout_device.
>
Well, it seems like BASE0 and BASE1 (IDE ports) left initialized
to all ones after Cypress IDE check. I think moving this check
to the beginning of the cycle should help.
Ivan.
--- bios32.c.orig Fri Aug 13 22:53:50 1999
+++ bios32.c Wed Aug 25 15:32:54 1999
@@ -481,6 +481,16 @@
pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
for (idx = 0; idx <= 5; idx++) {
+ /* We don't want to disturb normal IDE functions, so
+ we don't touch the first two I/O ports on the
+ Cypress. */
+ if (dev->vendor == PCI_VENDOR_ID_CONTAQ
+ && dev->device == PCI_DEVICE_ID_CONTAQ_82C693
+ && dev->devfn < 3
+ && idx < 2) {
+ continue;
+ }
+
off = PCI_BASE_ADDRESS_0 + 4*idx;
/*
* Figure out how much space and of what type this
@@ -516,15 +526,6 @@
base &= PCI_BASE_ADDRESS_IO_MASK;
mask = (~base << 1) | 0x1;
size = (mask & base) & 0xffffffff;
-
- /* We don't want to disturb normal IDE functions, so
- we don't touch the first two I/O ports on the
- Cypress. */
- if (dev->vendor == PCI_VENDOR_ID_CONTAQ
- && dev->device == PCI_DEVICE_ID_CONTAQ_82C693
- && idx < 2) {
- continue;
- }
/*
* Aligning to 0x800 rather than the minimum base of
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Problems with SX164 IDE in recent 2.3
1999-08-25 6:29 ` Richard Henderson
1999-08-25 11:39 ` Ivan Kokshaysky
@ 1999-08-25 17:59 ` Mitchell Blank Jr
1 sibling, 0 replies; 9+ messages in thread
From: Mitchell Blank Jr @ 1999-08-25 17:59 UTC (permalink / raw)
To: axp-list
Btw, with Ivan's secondpatch (moving the CONTAQ messing core to the beginning
of the loop in bios32.c) by SX164 is now happily running 2.3.15pre2.
Thanks, Ivan!
Now on to pre3... back into the PCI stuff I guess.
-Mitch
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-08-25 17:59 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-17 7:09 Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
1999-08-23 5:51 ` Mitchell Blank Jr
1999-08-24 18:25 ` Ivan Kokshaysky
1999-08-24 18:34 ` bushman
1999-08-24 22:25 ` PCXCV-AC Antonio S. Martins Jr.
1999-08-25 4:33 ` Problems with SX164 IDE in recent 2.3 Mitchell Blank Jr
1999-08-25 6:29 ` Richard Henderson
1999-08-25 11:39 ` Ivan Kokshaysky
1999-08-25 17:59 ` Mitchell Blank Jr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox