Re: 2.6.25-rc6 regression - hang on resume

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Soeren Sonnenburg
Date: Sunday, April 13, 2008 - 5:05 am

On Sun, 2008-04-13 at 10:53 +0200, Pavel Machek wrote:

It might be that configs are slightly different - if you think this
gives a clue I will post them, but your discovery below looks promising:


OK, I searched for "something went wrong performing real mode call" in
the s2ram source and found this function:

int do_real_post(unsigned pci_device)
{
    int error = 0;
    struct LRMI_regs r;
    memset(&r, 0, sizeof(r));

    /* Several machines seem to want the device that they're POSTing in
       here */
    r.eax = pci_device;

    /* 0xc000 is the video option ROM.  The init code for each
       option ROM is at 0x0003 - so jump to c000:0003 and start running
*/
    r.cs = 0xc000;
    r.ip = 0x0003;

    /* This is all heavily cargo culted but seems to work */
    r.edx = 0x80;
    r.ds = 0x0040;

    if (!LRMI_call(&r)) {
        fprintf(stderr,
            "Error: something went wrong performing real mode call\n");
        error = 1;
    }

    return error;
}

which is obviously called from

int do_post(void)
{
    struct pci_dev *p;
    unsigned int c;
    unsigned int pci_id;
    int error;

    pci_scan_bus(pacc);

    for (p = pacc->devices; p; p = p->next) {
        c = pci_read_word(p, PCI_CLASS_DEVICE);
        if (c == 0x300) {
            pci_id =
                (p->bus << 8) + (p->dev << 3) +
                (p->func & 0x7);
            error = do_real_post(pci_id);
            if (error != 0) {
                return error;
            }
        }
    }
    return 0;
}

so either the graphics adapter is somehow not ready yet or a wrong
address is used for posting?

Do you already now have an idea? Or which things should I print out?

Soeren
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc8-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Thu Apr 3, 3:49 pm)
TUNER_TDA8290=y, VIDEO_DEV=n build error, Rafael J. Wysocki, (Thu Apr 3, 4:20 pm)
[2.6.25-rc6] possible regression: X server dying, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
regression: am-utils stopped working in 2.6.25-rc*, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
Linux 2.6.25-rc6: WARNING: at net/ipv4/tcp_input.c:2510, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
inconsistent lock state in net_rx_action, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
kernel panic ip_route_input, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
rt2x00 does not associate or give scan results, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
panic using bridging on linus kernel 2.6.25-rc6, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-rc6 regression - hang on resume, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
volume wheel does not work in 2.6.25-rc6, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
[BUG] Linux 2.6.25-rc6 - kernel BUG at fs/mpage.c:476! on ..., Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-current-git hangs on boot unless CONFIG_CPU_IDLE=n ..., Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
INFO: possible circular locking in the resume, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
kvm: INFO: inconsistent lock state, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-current-git hangs on boot (pci=nommconf helps), Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-rc2-git4 - Kernel oops while running kernbench and ..., Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
Oops while reading /proc/ioports or /proc/iomem, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-rc7/8: Another resume regression, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-rc5.git4 regression PS/2 mouse not detected/working, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
Kernel freezes during boot when AC is unplugged, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-rc7: warn_on_slowpath triggered, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
slub compile error, Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
usb-storage, error reading the last 8 sectors, regression ..., Rafael J. Wysocki, (Thu Apr 3, 4:22 pm)
2.6.25-rc6-git2: warn_on_slowpath for tcp_simple_retransmit, Rafael J. Wysocki, (Thu Apr 3, 4:30 pm)
Re: 2.6.25-rc8-git2: Reported regressions from 2.6.24, Linus Torvalds, (Thu Apr 3, 4:59 pm)
RE: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Pallipadi, Venkatesh, (Thu Apr 3, 5:14 pm)
Re: kernel panic ip_route_input, David Miller, (Thu Apr 3, 6:06 pm)
Re: inconsistent lock state in net_rx_action, David Miller, (Thu Apr 3, 6:06 pm)
Re: slub compile error, Christoph Lameter, (Thu Apr 3, 6:37 pm)
Re: 2.6.25-rc8-git2: Reported regressions from 2.6.24, Andrew Morton, (Thu Apr 3, 9:39 pm)
Re: INFO: possible circular locking in the resume, Gautham R Shenoy, (Thu Apr 3, 10:20 pm)
Re: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Soeren Sonnenburg, (Thu Apr 3, 11:05 pm)
Re: regression: am-utils stopped working in 2.6.25-rc*, Meelis Roos, (Thu Apr 3, 11:15 pm)
Re: 2.6.25-rc6 regression - hang on resume, Soeren Sonnenburg, (Thu Apr 3, 11:31 pm)
Re: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Soeren Sonnenburg, (Thu Apr 3, 11:32 pm)
RE: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Pallipadi, Venkatesh, (Thu Apr 3, 11:38 pm)
Re: 2.6.25-current-git hangs on boot (pci=nommconf helps), Soeren Sonnenburg, (Fri Apr 4, 12:24 am)
Re: TUNER_TDA8290=y, VIDEO_DEV=n build error, Adrian Bunk, (Fri Apr 4, 1:47 am)
Re: TUNER_TDA8290=y, VIDEO_DEV=n build error, Rafael J. Wysocki, (Fri Apr 4, 2:37 am)
Re: kernel panic ip_route_input, Rafael J. Wysocki, (Fri Apr 4, 2:41 am)
Re: slub compile error, Rafael J. Wysocki, (Fri Apr 4, 2:45 am)
Re: 2.6.25-rc7/8: Another resume regression, Mark Lord, (Fri Apr 4, 7:11 am)
RE: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Pallipadi, Venkatesh, (Fri Apr 4, 7:25 am)
Re: Linux 2.6.25-rc6: WARNING: at net/ipv4/tcp_input.c:2510, Georgi Chorbadzhiyski, (Fri Apr 4, 8:14 am)
RE: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Pallipadi, Venkatesh, (Fri Apr 4, 10:37 am)
RE: 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDL ..., Soeren Sonnenburg, (Fri Apr 4, 10:42 am)
Re: 2.6.25-rc8-git2: Reported regressions from 2.6.24, Linus Torvalds, (Sat Apr 5, 11:57 am)
Re: 2.6.25-rc8-git2: Reported regressions from 2.6.24, Rafael J. Wysocki, (Sun Apr 6, 2:10 pm)
Re: TUNER_TDA8290=y, VIDEO_DEV=n build error, Adrian Bunk, (Sun Apr 6, 2:43 pm)
Re: TUNER_TDA8290=y, VIDEO_DEV=n build error, Rafael J. Wysocki, (Sun Apr 6, 2:59 pm)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Romano Giannetti, (Mon Apr 7, 12:16 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Rafael J. Wysocki, (Mon Apr 7, 2:10 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Romano Giannetti, (Tue Apr 8, 5:35 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Soeren Sonnenburg, (Tue Apr 8, 5:39 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Fabio Comolli, (Tue Apr 8, 5:52 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Soeren Sonnenburg, (Tue Apr 8, 6:32 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Matthew Garrett, (Tue Apr 8, 7:41 am)
Re: 2.6.25-rc6 regression - hang on resume [Bug 10319], Jesse Barnes, (Tue Apr 8, 8:07 am)
Re: 2.6.25-rc6 regression - hang on resume, Pavel Machek, (Fri Apr 11, 2:04 pm)
Re: 2.6.25-rc6 regression - hang on resume, Rafael J. Wysocki, (Fri Apr 11, 2:08 pm)
Re: 2.6.25-rc6 regression - hang on resume, Soeren Sonnenburg, (Sat Apr 12, 12:27 am)
Re: 2.6.25-rc6 regression - hang on resume, Pavel Machek, (Sun Apr 13, 1:53 am)
Re: 2.6.25-rc6 regression - hang on resume, Soeren Sonnenburg, (Sun Apr 13, 5:05 am)
Re: 2.6.25-rc6 regression - hang on resume, Rafael J. Wysocki, (Sun Apr 13, 6:53 am)
Re: 2.6.25-rc6 regression - hang on resume, Soeren Sonnenburg, (Sun Apr 13, 9:18 am)
Re: 2.6.25-rc6 regression - hang on resume, Soeren Sonnenburg, (Sun Apr 13, 9:30 am)
Re: 2.6.25-rc6 regression - hang on resume, Rafael J. Wysocki, (Sun Apr 13, 9:38 am)
Re: 2.6.25-rc6 regression - hang on resume, Pavel Machek, (Sun Apr 13, 2:33 pm)
Re: [Suspend-devel] 2.6.25-rc6 regression - hang on resume ..., Soeren Sonnenburg, (Thu Apr 17, 12:49 pm)
Re: [Suspend-devel] 2.6.25-rc6 regression - hang on resume ..., Romano Giannetti, (Fri Apr 18, 12:34 am)
Re: [Suspend-devel] 2.6.25-rc6 regression - hang on resume ..., Soeren Sonnenburg, (Fri Apr 18, 1:32 am)