From: Antonio Cardoso Martins <digiplan.pt@gmail.com>
To: linux-ide@vger.kernel.org
Subject: Re: UDMA with CS5530 using IBM Netvista N2200 (8363)
Date: Wed, 10 Sep 2008 00:13:23 +0100 [thread overview]
Message-ID: <48C70313.6080704@gmail.com> (raw)
In-Reply-To: <20080909115248.580eba78@lxorguk.ukuu.org.uk>
Alan Cox wrote:
>> The ATA adapter is embedded into the motherboard. Looking at the board,
>> the chipset reads Cyrix Cx5530. There is some contradictory information
>> about whether this chip supports DMA or not. Regarding the CF, i am
>>
>
> The CS5530 supports UDMA, the CF card may well support UDMA but there is
> a third ingredient in the CF cases - whatever connects the two must
> support UDMA. A lot of (especially older) CF convertors, CF cards slots
> on boards and the like do not even have the required wiring present,
> others don't have to to the standard needed for UDMA.
>
>
>> ata1.00: ATA-5: SILICON POWER, 2.0, mas UDMA/66
>>
>
> Your CF card reports that it supports UDMA so I am quite sure it does.
>
>
>> sd 0:0:0:0: [sda] 2000880 512-byte hardware sectors (1024 MB)
>> sd 0:0:0:0: [sda] Write Protect is off
>> sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't
>> support DPO or FUA
>>
>
> So PIO works and DMA doesn't.
>
>
>> Does this give any interesting info to the problem?
>>
>
> It matches the other driver behaviour which is very helpful.
>
>
>> PS: Since i cannot provide parameters to the kernel, i don't know how
>> the kernel i have completely working (2.6.22.15) figure out that he
>> should continue boot from root=/dev/hda1. This kernel does not seem to
>> get to that conclusion.
>>
>
> It would be /dev/sda1. I've no idea how the firmware bootloader passes
> information to the kernel on your netvista. You could see if the old
> rdev stuff is used (rdev /vmlinuz /dev/sda1)
> For the PIO find
>
> static int libata_dma_mask = ....
>
> In drivers/ata/libata-core.c and change it to = 0;
>
>
Booting with CONFIG_BLK_DEV_CS5530=n and CONFIG_PATA_CS5530=y and
libdata_dma_mask=0
kernel 2.6.24.7:
...
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Driver 'sd' needs updating - please use bus_type methods
scsi0: pata_cs5530
scsi1: pata_cs5530
ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xfc08 irq 15
ata1.00: ATA-5: SILICON POWER, 2.0, mas UDMA/66
ata1.00: 2000880 sectors, multi 1: LBA
ata1.00: configured for PIO4
scsi 0:0:0:0: Direct-Access ATA SILICON POWER 2.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 2000880 512-byte hardware sectors (1024 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 2000880 512-byte hardware sectors (1024 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1
sd 0:0:0.0: [sda] attached SCSI disk
sd 0:0:0.0: Attached scsi generic sg0 type 0
...
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available
partitions:
0800 1000440 sda driver: sd
0801 999905 sda1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
So PIO4 is now working. Great. But i am stuck with the root device.
Netvista 8363 firmware calls vmlinux (not bzImage) directly from an ext2 partition since the filename is kernel.2x00 and ELF program-header-count (offset 0x2c) is patched with the value 1. I am not sure, but rdev doesn't apply to vmlinux.
Until 2.6.23.17, the kernel figured that the root device is /dev/hda1. From kernel 2.6.24.1, the root device cannot be mounted because the root is <NULL>. This must be hardcoded somewhere and changed in 2.6.24.1 as the firmware does not pass any parameters to the kernel. Any hints?
Best regards
next prev parent reply other threads:[~2008-09-09 23:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-07 22:55 UDMA with CS5530 using IBM Netvista N2200 (8363) Antonio Cardoso Martins
2008-09-08 8:43 ` Alan Cox
2008-09-09 0:03 ` Antonio Cardoso Martins
2008-09-09 2:23 ` Mark Lord
2008-09-09 10:58 ` Alan Cox
2008-09-09 10:52 ` Alan Cox
2008-09-09 23:13 ` Antonio Cardoso Martins [this message]
2008-09-10 8:38 ` Alan Cox
2008-09-10 13:14 ` Antonio Martins
2008-09-10 13:55 ` Alan Cox
2008-09-10 14:55 ` Sergei Shtylyov
2008-09-15 8:49 ` Tejun Heo
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=48C70313.6080704@gmail.com \
--to=digiplan.pt@gmail.com \
--cc=linux-ide@vger.kernel.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).