Re: Linux Post codes during runtime, possibly OT

Petr Vandrovec (VANDROVE@vc.cvut.cz)
Fri, 26 Jan 2001 15:41:10 MET-1


On 26 Jan 01 at 8:58, Richard B. Johnson wrote:
> On Thu, 25 Jan 2001, H. Peter Anvin wrote:
> > > You could use the DMA scratch register at 0x19. I'm sure Linux doesn't
> > > "save" stuff there when setting up the DMA controller.
> > >
> I will change the port on my machines and run them for a week. I
> don't have any DEC Rainbows or other such. Yes, I know Linux will
> not run on a '286.
>
> Since 0x19 is a hardware register in a DMA controller, specifically
> called a "scratch" register, it is unlikely to hurt anything. Note
> that the BIOS saves stuff in CMOS. It never expects hardware registers
> to survive a "warm boot". It even checks in CMOS to see if it should
> preserve RAM.

Unless there are chips which need DELAY between accesses to DMA
controller ;-) And I'm sure there are such. Also, if DMA controller
is integrated on board, outb is done in different speed than ISA
forwarded cycle to postcode port.

Just in case, on my VIA, 1e6 outb(0,0x80) tooks 2.07s, 1e6 outb(0,0x19)
tooks 2.33s - so there is definitely difference - although in other
direction than I expected. (What you can expect from this ....)
Petr Vandrovec
vandrove@vc.cvut.cz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/