All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Holzrichter, Bruce" <bruce.holzrichter@monster.com>
To: "'Bartlomiej Zolnierkiewicz'" <B.Zolnierkiewicz@elka.pw.edu.pl>,
	linux-kernel@vger.kernel.org
Cc: "'axboe@suse.de'" <axboe@suse.de>
Subject: (RE:  using 2.5.25 with IDE) On sparc64.....
Date: Tue, 9 Jul 2002 09:46:10 -0500	[thread overview]
Message-ID: <61DB42B180EAB34E9D28346C11535A783A7B56@nocmail101.ma.tmpw.net> (raw)

> 
> Contrary to the popular belief 2.5.25 has only Martin's IDE-93
> and has broken locking...
> 
> If you want to run IDE on 2.5.25 get and apply:

I am running a Sparc64 Ultra5 with IDE [insert flame here] which uses a
CMD646 PCI controller, and since at least 2.5.20 it has not booted.  I
currently run 2.5.13, which boots and runs fine, and all is well with 2.4
series.  

I have tried current bk, with IDE 94,95, and 96 applied with the same
result, all hang after printing the partition list of the hard drive.  

I most recently tried Jen's 2.4 forward port, with about the same result,
though the following errors were printed before the kernel hung.  (BTW,
Jen's a modified asm-sparc64/ide.h is below if you want to keep with your
2.4 port)

I am running in PIO mode, and saw that may be broken?  And I realize that
there is probably not much interest/need for IDE to get working on this yet,
but I am wondering if you can point to some ideas to help me along with
figuring out what's going on.  I am going to insert some printk's to see if
I can narrow down where I am hanging at, and if you have any thoughts on
where's the best place to look, I'd be most appreciative.

Thanks
Bruce H.

Patch below to get 2.4 forward port of IDE to compile on Sparc64...
--- linus-2.5/include/asm-sparc64/ide.h	Tue Jul  9 08:53:10 2002
+++ sparctest/include/asm-sparc64/ide.h	Tue Jul  9 09:11:24 2002
@@ -64,7 +64,11 @@
 	for (index = 0; index < MAX_HWIFS; index++) {
 		ide_init_hwif_ports(&hw, ide_default_io_base(index), 0,
NULL);
 		hw.irq = ide_default_irq(ide_default_io_base(index));
+#if defined(CONFIG_IDE_25)
 		ide_register_hw(&hw);
+#elif defined(CONFIG_IDE_24)
+		ide_register_hw(&hw, NULL);
+#endif
 	}
 #endif
 }
@@ -178,6 +182,20 @@
 #endif
 }
 
+#define ide_request_irq(irq,hand,flg,dev,id)
request_irq((irq),(hand),(flg),(dev),(id))
+#define ide_free_irq(irq,dev_id)		free_irq((irq), (dev_id))
+#define ide_check_region(from,extent)		check_region((from),
(extent))
+#define ide_request_region(from,extent,name)	request_region((from),
(extent), (name))
+#define ide_release_region(from,extent)
release_region((from), (extent))
+
+/*
+ * The following are not needed for the non-m68k ports
+ */
+#define ide_ack_intr(hwif)		(1)
+#define ide_fix_driveid(id)		do {} while (0)
+#define ide_release_lock(lock)		do {} while (0)
+#define ide_get_lock(lock, hdlr, data)	do {} while (0)
+ 
 #endif /* __KERNEL__ */
 
 #endif /* _SPARC64_IDE_H */

             reply	other threads:[~2002-07-09 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09 14:46 Holzrichter, Bruce [this message]
2002-07-10 10:24 ` (RE: using 2.5.25 with IDE) On sparc64 Richard Zidlicky
2002-07-10 10:57   ` Jens Axboe
2002-07-10 15:09     ` Bartlomiej Zolnierkiewicz
2002-07-10 17:24       ` Jens Axboe
2002-07-10 21:42 Holzrichter, Bruce
2002-07-10 22:01 ` Andre Hedrick
2002-07-11  5:45   ` Jens Axboe
2002-07-10 22:54 ` 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=61DB42B180EAB34E9D28346C11535A783A7B56@nocmail101.ma.tmpw.net \
    --to=bruce.holzrichter@monster.com \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=axboe@suse.de \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.