From: "VALETTE Eric" <valette@crf.canon.fr>
To: alois_fertl@TalkNet.de
Cc: cort@persephone.cs.nmt.edu, linuxppc-dev@lists.linuxppc.org,
mmporter@home.com
Subject: Re: PREP Hardware goes IDE again
Date: Thu, 10 Dec 1998 11:00:27 +0100 (CET) [thread overview]
Message-ID: <m0zo2tX-0000WVC@tri-yann.crf.canon.fr> (raw)
In-Reply-To: <366EEC05.E01F2088@talknet.de> (message from Alois Fertl on Wed, 09 Dec 1998 21:30:45 +0000)
>>>>> "Alois" == Alois Fertl <alois_fertl@TalkNet.de> writes:
Alois> Here are some small patches (ralative to 2.1.129) which make IDE
Alois> working on PREP Hardware especially the RiscPC (probably also needed
Alois> for MPC750).
Unfortunately, nearly all the change you have proposed are either
irrelevant for MCP750 or worse will cause it to not function.
Alois> The first problem I had was related to interrups on the RiscPC.
Alois> It always assigned IRQ13 to the IDE port. However actually the
Alois> port is connected to IRQ14. The next problem was that prep_pci.c
Alois> assigned IRQ14 to PCI. The Patch now assigns 14 to IDE and uses
Alois> 9,11 and 15 for PCI. In addition to this it sets the edge/level
Alois> control according to PCI preconfiguration. In addition it adds
Alois> 3 more entries to the Blackhawk table.
This is true only if you do not try to use the "full native PCI mode".
In that case you should not look at IDE assigned value in the PCB
but at the PCI interrupt line. This is what happens on MCP750 as
the code automatically switch the driver to "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.
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.
This breaks the MCP750. I tried the patch below, and was not detecting the disk
correctly : everything was incorrectly swapped (including the name of the disk).
My mcp750 system will run correctly *only* if this patch is not included...
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) ) {
Since you and mark are motorola felow I will ask you a favor as I did not find
anything on the public docs. In the MCP750A/PG1 manual, page 4-5, I would like
to know how to program PCB and more specifically the PIRQ control route.
I do not find anything in the doc.
-- eric
[[ 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-10 10:00 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 [this message]
1998-12-11 9:57 ` Alois Fertl
1998-12-11 11:26 ` VALETTE Eric
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=m0zo2tX-0000WVC@tri-yann.crf.canon.fr \
--to=valette@crf.canon.fr \
--cc=alois_fertl@TalkNet.de \
--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).