mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: linux-kernel@vger.kernel.org
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: [BUG] 2.4.20-BK
Date: Sat, 7 Dec 2002 14:35:23 +0100	[thread overview]
Message-ID: <200212071434.11514.m.c.p@wolk-project.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

Hi Alan,

using 2.4.20-BK tree gives me:

flushing ide devices: hda hdd

at reboot time in an endless loop drawing over the screen. No reboot will be 
made, I have to do that either by sysrq-b or reset button.

Using:

[*]   PCI IDE chipset support
[*]     Generic PCI bus-master DMA support
[*]       Use PCI DMA by default when available
<*>     Intel PIIXn chipsets support
[*]   IGNORE word93 Validation BITS

root@codeman:[/] # hdparm -i /dev/hda

/dev/hda:

 Model=MAXTOR 6L060J3, FwRev=A93.0500, SerialNo=663219752652
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
 BuffType=DualPortCache, BuffSize=1819kB, MaxMultSect=16, MultSect=16
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=117266688
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 udma6 
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:  1 2 3 4 5


BTW: The attached patch is needed to build the 2.4.20-BK tree successfully
     because "local_irq_*" is missing and ld complains about undefined
     reference at linking time.

Any hints to fix that flushing ide bla foobar thing?

TIA!

ciao, Marc

[-- Attachment #2: ide-i386-stuff-2.4.21.patch --]
[-- Type: text/x-diff, Size: 1602 bytes --]

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/include/asm-i386/system.h linux.20-ac1/include/asm-i386/system.h
--- linux.vanilla/include/asm-i386/system.h	2002-11-29 21:27:23.000000000 +0000
+++ linux.20-ac1/include/asm-i386/system.h	2002-11-11 15:59:38.000000000 +0000
@@ -322,8 +319,18 @@
 /* used in the idle loop; sti takes one instruction cycle to complete */
 #define safe_halt()		__asm__ __volatile__("sti; hlt": : :"memory")
 
+#define __save_and_cli(x)	do { __save_flags(x); __cli(); } while(0);
+#define __save_and_sti(x)	do { __save_flags(x); __sti(); } while(0);
+
 /* For spinlocks etc */
+#if 0
 #define local_irq_save(x)	__asm__ __volatile__("pushfl ; popl %0 ; cli":"=g" (x): /* no input */ :"memory")
+#define local_irq_set(x)	__asm__ __volatile__("pushfl ; popl %0 ; sti":"=g" (x): /* no input */ :"memory")
+#else
+#define local_irq_save(x)	__save_and_cli(x)
+#define local_irq_set(x)	__save_and_sti(x)
+#endif
+
 #define local_irq_restore(x)	__restore_flags(x)
 #define local_irq_disable()	__cli()
 #define local_irq_enable()	__sti()
@@ -338,6 +345,8 @@
 #define sti() __global_sti()
 #define save_flags(x) ((x)=__global_save_flags())
 #define restore_flags(x) __global_restore_flags(x)
+#define save_and_cli(x) do { save_flags(x); cli(); } while(0);
+#define save_and_sti(x) do { save_flags(x); sti(); } while(0);
 
 #else
 
@@ -345,6 +354,8 @@
 #define sti() __sti()
 #define save_flags(x) __save_flags(x)
 #define restore_flags(x) __restore_flags(x)
+#define save_and_cli(x) __save_and_cli(x)
+#define save_and_sti(x) __save_and_sti(x)
 
 #endif
 

             reply	other threads:[~2002-12-07 13:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-07 13:35 Marc-Christian Petersen [this message]
2002-12-07 19:36 ` Marc-Christian Petersen
2002-12-08  9:29   ` Henning P. Schmiedehausen
2002-12-08 12:37     ` Marc-Christian Petersen
2002-12-08 14:13       ` Alan Cox
2002-12-08 13:40         ` Marc-Christian Petersen
2002-12-08 14:27           ` Alan Cox
2002-12-08  1:51 ` Alan Cox
2002-12-08  1:16   ` Marc-Christian Petersen
2002-12-08  1:22   ` J.A. Magallon

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=200212071434.11514.m.c.p@wolk-project.de \
    --to=m.c.p@wolk-project.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®