public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.5.31 boot failure on pdc20267
@ 2002-08-15 15:34 Petr Vandrovec
  2002-08-15 20:13 ` Mikael Pettersson
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Vandrovec @ 2002-08-15 15:34 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: martin, linux-kernel

On 15 Aug 02 at 17:15, Mikael Pettersson wrote:
> Booting 2.5.31 (non-bk) on hde5, a UDMA(66) Quantum Fireball
> on a PDC20267 add-on card, resulted in a complete hang as init
> came to its "mount -n -o remount,rw /" point. No visible messages
> or anything in the log.

Known bug. Apply IDE113 (Aug 06, 11:02 CEST, from Martin), or just open 
drivers/ide/pcidma.c in your favorite text editor, look for (first) 
#ifdef CONFIG_BLK_DEV_TRM290, and replace whole ifdef block with 
'*--table |= cpu_to_le32(0x80000000);'

Test in the ifdef is exactly opposite, and #ifdef is also wrong.
                                            Petr Vandrovec
                                            vandrove@vc.cvut.cz
                                            

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: 2.5.31 boot failure on pdc20267
@ 2002-08-16  9:48 Petr Vandrovec
  2002-08-16 10:10 ` Andre Hedrick
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Vandrovec @ 2002-08-16  9:48 UTC (permalink / raw)
  To: Andre Hedrick; +Cc: Mikael Pettersson, linux-kernel

On 16 Aug 02 at 2:27, Andre Hedrick wrote:
> On Fri, 16 Aug 2002, Petr Vandrovec wrote:
> 
> > Yes. If you'll look at d1510r0c.pdf from ATA guys, you'll find that
> 
> BUZZIT!
> 
> That is an totally new transport protocol and if you research the pci
> device class you would know that it has nothing to do with the problem.
> If you guys are playing with ADMA on DMA Hosts, oh my!

No. It just reveals that you have no idea what you are talking about.
It was proven when you talked about EDD, and now it is proven again.
Table 3 of rev 0f, page 11:


Byte offset         Description              Attribute     Value
09h            Programming Interface Code  | See Table 4 | Defined in table 1
0Ah            Subclass code                 Read-only     01h - IDE
0Bh            Base class code               Read-only     01h - Mass Storage

and to your surprise, my IDE interface is:
00:1f.1 Class 0101: 8086:244b (rev 05) (prog-if 80 [Master])
so if this device should not have Class 0101, then there is certainly
some problem somewhere.
 
> The context of what is the EOT between the two HOST protocols has no
> meaning.

Yes? Then please tell me what chapter 6, PCI Compatibility and Native
Bus Master Adapters, pages 22-28 of rev 0c, talks about...

In rev 0f it is chapter 5, same name, PDF pages 19-26, document pages 10-17.
EOT is back here in this revision, so actually current standard is OK,
and Intel is misbehaving (or maybe just "extending" standard?).

And if you insist that this chapter does not describe UDMA busmastering
programming interface, then please point me to the correct document.
There is no other document with simillar name on the T13 web.
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: 2.5.31 boot failure on pdc20267
@ 2002-08-16  9:21 Petr Vandrovec
  2002-08-16  9:27 ` Andre Hedrick
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Vandrovec @ 2002-08-16  9:21 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: martin, linux-kernel

On 15 Aug 02 at 22:13, Mikael Pettersson wrote:
> Petr Vandrovec writes:
>  > On 15 Aug 02 at 17:15, Mikael Pettersson wrote:
>  > > Booting 2.5.31 (non-bk) on hde5, a UDMA(66) Quantum Fireball
>  > > on a PDC20267 add-on card, resulted in a complete hang as init
>  > > came to its "mount -n -o remount,rw /" point. No visible messages
>  > > or anything in the log.
>  > 
>  > Known bug. Apply IDE113 (Aug 06, 11:02 CEST, from Martin), or just open 
>  > drivers/ide/pcidma.c in your favorite text editor, look for (first) 
>  > #ifdef CONFIG_BLK_DEV_TRM290, and replace whole ifdef block with 
>  > '*--table |= cpu_to_le32(0x80000000);'
> 
> Tested. First time 2.5.31 + the patch booted it seemed to work, but hung
> later on while compiling a 2.4.19 kernel. No messages of any kind. The
> hang _seemed_ to coincide with the console screen blanker kicking in.
> Second boot went ok and I made sure the screen blanker wouldn't kick
> in while doing the compile, and it didn't hang.
> 
> This box is the only one so far I've seen this problem on, my other
> Intel chipset boxes actually seem to work fairly well with 2.5.31.

Yes. If you'll look at d1510r0c.pdf from ATA guys, you'll find that
between 0b and 0c revisions definition of EOT bit (highest bit of
length) was removed. It is very unfortunate because of now host
adapters cannot prefetch across segment boundaries, because of host
adapter does not know when transfer will terminate (unless host monitors
all accesses to the disk and maintains its own set of IDE registers 
(including HOB, so using > 256sectors transfers with such host adapters
which do not implement HOB is impossible)). It is also very dangerous 
because of for reads when drive generates more data than expected, with 
EOT flag transfer was terminated with error, but without EOT host will 
just fetch random entries after last valid, and will (silently) corrupt 
random memory. 

And Promise implements old, safe&prefetchable, interface, while Intel
just fetches more and more PRD entries as long as drive has/wants more 
data.
                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    

^ permalink raw reply	[flat|nested] 7+ messages in thread
* 2.5.31 boot failure on pdc20267
@ 2002-08-15 15:15 Mikael Pettersson
  0 siblings, 0 replies; 7+ messages in thread
From: Mikael Pettersson @ 2002-08-15 15:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: martin

Booting 2.5.31 (non-bk) on hde5, a UDMA(66) Quantum Fireball
on a PDC20267 add-on card, resulted in a complete hang as init
came to its "mount -n -o remount,rw /" point. No visible messages
or anything in the log.

2.5.29 worked ok on this box, as does 2.4 and 2.2+Andre's IDE code.
ASUS P3B-F, 440BX UDMA(33) chipset, disks on a Promise Ultra100 card.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-08-16 10:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-15 15:34 2.5.31 boot failure on pdc20267 Petr Vandrovec
2002-08-15 20:13 ` Mikael Pettersson
  -- strict thread matches above, loose matches on Subject: below --
2002-08-16  9:48 Petr Vandrovec
2002-08-16 10:10 ` Andre Hedrick
2002-08-16  9:21 Petr Vandrovec
2002-08-16  9:27 ` Andre Hedrick
2002-08-15 15:15 Mikael Pettersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox