Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.



David P. Reed wrote:
Alan, thank you for the pointers. I have been doing variations on this testing theme for a while - I get intrigued by a good debugging challenge, and after all it's my machine...

Two relevant new data points, and then some more suggestions:

1. It appears to be a real port. SMI traps are not happening in the normal outb to 80. Hundreds of them execute perfectly with the expected instruction counts. If I can trace the particular event that creates the hard freeze (getting really creative, here) and stop before the freeze disables the entire computer, I will. That may be an SMI, or perhaps any other kind of interrupt or exception. Maybe someone knows how to safely trace through an impending SMI while doing printk's or something?

2. It appears to be the standard POST diagnostic port. On a whim, I disassembled my DSDT code, and studied it more closely. It turns out that there are a bunch of "Store(..., DBUG)" instructions scattered throughout, and when you look at what DBUG is defined as, it is defined as an IO Port at IO address DBGP, which is a 1-byte value = 0x80. So the ACPI BIOS thinks it has something to do with debugging. There's a little strangeness here, however, because the value sent to the port occasionally has something to do with arguments to the ACPI operations relating to sleep and wakeup ... could just be that those arguments are distinctive.


Dumb question: if you change your iodelay function so it always writes zero to port 0x80, does it start working?

-hpa
--
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: Connecting Vortex86 - 6072
    ... I guess I will have to setup an Ethernet connection to the board... ... even if kernel debugging is not turned on. ... downloads, but, based on this message, "Override Serial Driver: No COM port ... configured to do that, hence, no download of OS image or anything else. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Can i debug/watch on the triggers INSERTED and DELETED records/values?
    ... we found that debugging did not work when you had Windows ... Now, port 135 is not any port: ... So opening port 135 is a little unsafe, ... > Windows firewall.) ...
    (comp.databases.ms-sqlserver)
  • Re: How to generate a #SMI?
    ... management mode (SMM for short). ... there is only one way to enter SMM, which is through #SMI. ... the system provides a special I/O port; ... only occurs on read or writes for the I/O port. ...
    (comp.lang.asm.x86)
  • Re: Can i debug/watch on the triggers INSERTED and DELETED records/values?
    ... > Sometimes I do debug remotely. ... we found that debugging did not work when you had Windows ... Now, port 135 is not any port: ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: MIDI Development
    ... reconnect an exception told me the the port is already in use... ... when a debugging session is terminated all handles go out of ... There are standard kludge techniques for this sort of situation that you're ... MIDI-Ox and MIDI-Yoke are good allies with this sort of work BTW. ...
    (comp.music.midi)