From: "VALETTE Eric" <valette@crf.canon.fr>
To: alois_fertl@muenchen.europe.mcd.mot.com
Cc: cort@persephone.cs.nmt.edu, linuxppc-dev@lists.linuxppc.org,
mmporter@home.com, alois_fertl@TalkNet.de
Subject: Re: PREP Hardware goes IDE again
Date: Fri, 11 Dec 1998 12:26:55 +0100 (CET) [thread overview]
Message-ID: <m0zoQil-0000WVC@tri-yann.crf.canon.fr> (raw)
In-Reply-To: <SIMEON.9812111011.A@g-mun-af.muenchen.europe.mcd.mot.com> (message from Alois Fertl on Fri, 11 Dec 1998 10:57:11 +0100 (W. Europe Standard Time))
>>>>> "Alois" == Alois Fertl <alois_fertl@muenchen.europe.mcd.mot.com> writes:
eric> Unfortunately, nearly all the change you have proposed are either
eric> irrelevant for MCP750 or worse will cause it to not function.
Alois> OK may be it helps others which have to fiddle around with older
Alois> systems.
I hope you did not misunderstood what I said : it great to have patch
that makes other machines work. Just wanted to say to it will break
the MCP750 with explanation and maybe other machines with the raven
(as it is capable of byte swapping things that come directly from
PCI bus)...
eric> This is true only if you do not try to use the "full native PCI mode".
eric> In that case you should not look at IDE assigned value in the PCB
eric> but at the PCI interrupt line. This is what happens on MCP750 as
eric> the code automatically switch the driver to "full native PCI mode".
Alois> I agree. The same is true for the WINBOND chip which is handled as
Alois> sl82c105 by linux.
Is the patch for byte swapping also needed when you use the full
"native PCI mode"?
Alois> The second problem was that the partition table of a DOS IDE drive
Alois> was not recognized unless I specified hda=swapdata at the boot prompt.
I understand that you created the dos partition table on another machine.
I used cfdisk directly on linux to partition the drive. This may makes the
difference.
Alois> IDE CD-Rom drives were not recognized at all. All the required coding
Alois> to operate IDE devices correctly is already there but it is not used
Alois> for PREP hardware. I changed ide.h so that PREP is handled the same
Alois> way as CHRP. This makes IDE disks and CD-roms work without the need
Alois> to specify boot options.
eric> This breaks the MCP750. I tried the patch below, and was not detecting the disk
eric> correctly : everything was incorrectly swapped (including the name of the disk).
eric> My mcp750 system will run correctly *only* if this patch is not included...
eric>
Alois> static __inline__ void ide_fix_driveid (struct hd_driveid *id) {
Alois> - if (( _machine == _MACH_Pmac ) || (_machine == _MACH_chrp)|| (_machine == _MACH_mbx) ) {
Alois> + if (( _machine == _MACH_Pmac ) || (_machine == _MACH_chrp)|| (_machine == _MACH_mbx) || (_machine == _MACH_prep) ) {
Alois> Sorry for that. But at least good to know. The seems to be something
Alois> different between the VIA chip or driver and the NS PC87303 resp. the
Alois> SL82C105 which work fine for me.
I'm not agains integration of your patch anyway :) I would rather prefer
to have something that works in both case and at leat to understand why we
do not require the same byte swapping options as we are both running in the
same endian mode. This may be related to raven capability of byte swapping
informations that comes from the PCI bus automatically.
eric> I do not find anything in the doc.
Alois> This is typically done via the PCI to ISA bridge. I guess you find the
Alois> answer in the data sheet for the VIA chip. You can find it on
Alois> http://www.via.com.tw/support/datasheets.htm
Thanks. In fact I found the info since the request IN THE VIA CHIPSET DOC
as you mentionned. It may help other...
Have a nice day,
--
__
/ ` Eric Valette
/-- __ o _. Canon CRF
(___, / (_(_(__ Rue de la touche lambert
35517 Cesson-Sevigne Cedex
FRANCE
Tel: +33 (0)2 99 87 68 91 Fax: +33 (0)2 99 84 11 30
E-mail: valette@crf.canon.fr
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
next prev parent reply other threads:[~1998-12-11 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-09 21:30 PREP Hardware goes IDE again Alois Fertl
1998-12-09 22:56 ` Cort Dougan
1998-12-10 10:00 ` VALETTE Eric
1998-12-11 9:57 ` Alois Fertl
1998-12-11 11:26 ` VALETTE Eric [this message]
1998-12-10 11:55 ` Gabriel Paubert
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=m0zoQil-0000WVC@tri-yann.crf.canon.fr \
--to=valette@crf.canon.fr \
--cc=alois_fertl@TalkNet.de \
--cc=alois_fertl@muenchen.europe.mcd.mot.com \
--cc=cort@persephone.cs.nmt.edu \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=mmporter@home.com \
/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).