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



Hi!

modern CPU compared to the bus. But the delay really needs to be something
that is about IO port speed. Ok in theory you could try to measure
a outb using RDTSC and then use udelay, but first you would need

You don't need to. Port 0x80 historically is about 8uS so just udelay(8)
and make sure the initial default delay is conservative enough before the
CPU speed is computed.

0x80 should be fine for anything PC compatible anyway, its specifically
reserved as a debug port and supported for *exactly* that purpose by
many chipsets.

Actually, I've seen few pci cards with leds on port 0x80, and I
wonder: is our outb_p really correct?

I mean, we expect 8usec delay -- historical ISA timing -- but when
_PCI_ card with leds is inserted, it is likely to be faster than old
ISA, right?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: V8.x-PRE2 Serious PUC problem - Heads Up!
    ... It simply locks up on the port after some period of time, ... Which serial card are you using? ... I have a number of PCI cards (lava ... on puc0 ...
    (freebsd-stable)
  • Re: PCI parallel port boards for use with ICEs?
    ... > b) The card mounts at an unusual I/O address. ... This is normal for PCI cards. ... > one of the standard port addresses ... I know that some PCI parallel ports supports legacy remapping. ...
    (comp.arch.embedded)
  • RS-485 interface (PCI card) with Linux Support?
    ... I'm experimenting with temperature registration and I wan to connect my ... instruments through RS-485 with a PC, I do have two PCI cards with a ... RS-485 port but it only supports Windows NT/2000 etc... ...
    (alt.os.linux.suse)
  • Re: Need a recommendation for a CoreDuo mobo (with ecc support)
    ... 2-3 pci for older pci cards ... A lot of Conroe boards are coming with only 1 IDE (PATA) port. ...
    (comp.os.linux.hardware)
  • Re: is any one sniffing comports on win2k or XP?
    ... It requires no hardware and its free. ... >serial LED device (device with bi-color leds for each pin). ... >>bajillions of DOS apps that claim to spy on a com port but I have had no ... Every app I try to use results in a com port in use ...
    (Vuln-Dev)

Quantcast