Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern AMD64 with MCP51 laptops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Newall
Date: Tuesday, December 11, 2007 - 5:08 am

Rene Herman wrote:

That would be the delay on the i386 (sic) architecture.  In general, 
though, the delay is:

    "Some devices require that accesses to their ports are slowed down. 
    This functionality is provided by appending a _p to the end of the
    function."
    -- Documentation/DocBook/deviceiobook.tmpl


(I've not seen any other formal definition.)

Most architectures (Alpha, Arm, Arm2, Blackfin, FRV, h8300, IA64, 
PA-RISC, PowerPC, Sparc, Sparc64, V850 and Xtensa) do no pause.  M68k 
does no pause except in one configuration, when it's the same as i386.  
On m32r it's a push and a pop.  On SuperH it's similar to i386, only 
using 16-bit input.  X86-64 is the same as i386!

Thinking that _p gives a pause is perhaps too PC-centric.  Why, if a 
delay is needed, wouldn't you use a real delay; one that says how long 
it should be?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern ..., Dr. David Alan Gilbert, (Sun Dec 9, 6:41 am)
Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern ..., David Newall, (Tue Dec 11, 5:08 am)
Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern ..., linux-os (Dick Johnson), (Tue Dec 11, 8:41 am)
Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern ..., linux-os (Dick Johnson), (Tue Dec 11, 1:27 pm)
Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern ..., linux-os (Dick Johnson), (Wed Dec 12, 6:11 am)
More info on port 80 symptoms on MCP51 machine., David P. Reed, (Wed Dec 12, 1:07 pm)
Re: More info on port 80 symptoms on MCP51 machine., Rene Herman, (Wed Dec 12, 1:26 pm)
Re: Attitude problems., linux-os (Dick Johnson), (Wed Dec 12, 1:31 pm)
Re: More info on port 80 symptoms on MCP51 machine., David P. Reed, (Wed Dec 12, 1:37 pm)
Re: More info on port 80 symptoms on MCP51 machine., H. Peter Anvin, (Wed Dec 12, 2:05 pm)
Re: Attitude problems., linux-os (Dick Johnson), (Fri Dec 14, 9:01 am)
Re: More info on port 80 symptoms on MCP51 machine., Chuck Ebbert, (Fri Dec 14, 3:05 pm)
Re: More info on port 80 symptoms on MCP51 machine., Rene Herman, (Sat Dec 15, 12:22 am)
RE: More info on port 80 symptoms on MCP51 machine., Allen Martin, (Sat Dec 15, 3:34 pm)
Re: More info on port 80 symptoms on MCP51 machine., H. Peter Anvin, (Sat Dec 15, 3:46 pm)