linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Soeren Sonnenburg <kernel@nn7.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J\. Wysocki" <rjw@sisk.pl>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@elte.hu>
Subject: Re: 2.6.25-rc6 regression - hang on resume
Date: Sun, 13 Apr 2008 12:05:44 +0000	[thread overview]
Message-ID: <1208088344.4839.60.camel@localhost> (raw)
In-Reply-To: <20080413085343.GD8949@elf.ucw.cz>

On Sun, 2008-04-13 at 10:53 +0200, Pavel Machek wrote:
> On Sat 2008-04-12 09:27:42, Soeren Sonnenburg wrote:
> > On Fri, 2008-04-11 at 23:04 +0200, Pavel Machek wrote:
> > > On Fri 2008-04-04 08:31:29, Soeren Sonnenburg wrote:
> > > > On Fri, 2008-04-04 at 01:22 +0200, Rafael J. Wysocki wrote:
> > > > > The following report is on the current list of known regressions
> > > > > from 2.6.24.  Please verify if the issue is still present in the
> > > > > mainline.
> > > > > 
> > > > > 
> > > > > Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=10319
> > > > > Subject		: 2.6.25-rc6 regression - hang on resume
> > > > > Submitter	: Soeren Sonnenburg <kernel@nn7.de>
> > > > > Date		: 2008-03-25 04:44 (10 days old)
> > > > 
> > > > Yes. The machine resumes and display stays black using s2ram -f -p
> > > > (blindly typing reboot etc on keyboard does what is expected). However
> > > > display comes back on 2.6.24.
> > > 
> > > Could you get us any debugging output from s2ram? Or maybe even strace
> > > it in both working and broken case, and comparing them? (You may want
> > > to disable randomization so that results are comparable).
> > 
> > I did on 2.6.24
> > 
> > strace -ff s2ram >s2ram24.trace 2>&1
> > 
> > and .25
> > 
> > ???strace -ff s2ram >s2ram25.trace 2>&1
> > 
> > with the .24 bringing the display back and .25 not. Files are here
> > 
> > http://nn7.de/debugging/s2ram24.trace.bz2
> > ???http://nn7.de/debugging/s2ram25.trace.bz2
> 
> Hmm: 
> 
> /sys/bus/pci/devices/0000:00:1b.0/irq
> 
> contains 21 in one case and 22 in another... as do other
> interrupts. Is that expected? Can you post /proc/interrupts for both
> versions?

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:

> Hmm, big part of trace is:
> 
> vm86old(0xb7f76c8c)                     = -1 ENOSYS (Function not
> implemented)
> vm86old(0xb7f76c8c)                     = -1 ENOSYS (Function not
> implemented)
> 
> ...I wonder why we do it so many times?
> 
> And here's the difference. .25 says:
> 
> vm86old(0xb809ac8c)                     = -1 ENOSYS (Function not
> implemented)
> vm86old(0xb809ac8c)                     = -1 ENOSYS (Function not
> implemented)
> Error: something went wrong performing real mode call
> open("/sys/class/graphics",
> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOENT (No
> such file or directory)
> open("/dev/tty", O_RDWR|O_LARGEFILE)    = 6
> ioctl(6, KDGKBTYPE, 0xbfae8887)         = 0
> 
> ...can you perhaps add printf-s to s2ram to find out what changed?

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

  reply	other threads:[~2008-04-13 12:06 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03 22:49 2.6.25-rc8-git2: Reported regressions from 2.6.24 Rafael J. Wysocki
2008-04-03 23:20 ` TUNER_TDA8290=y, VIDEO_DEV=n build error Rafael J. Wysocki
2008-04-04  8:47   ` Adrian Bunk
2008-04-04  9:37     ` Rafael J. Wysocki
2008-04-06 21:43       ` Adrian Bunk
2008-04-06 21:59         ` Rafael J. Wysocki
2008-04-03 23:22 ` volume wheel does not work in 2.6.25-rc6 Rafael J. Wysocki
2008-04-03 23:22 ` 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDLE=n - Apple Rafael J. Wysocki
2008-04-04  0:14   ` Pallipadi, Venkatesh
2008-04-04  1:10     ` Carlos R. Mafra
2008-04-04  3:15       ` Ray Lee
2008-04-04  6:05         ` Soeren Sonnenburg
2008-04-04 11:47         ` Carlos R. Mafra
2008-04-04 12:10           ` Soeren Sonnenburg
2008-04-04 12:46             ` Carlos R. Mafra
2008-04-04 14:25           ` 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDLE=n -Apple Pallipadi, Venkatesh
2008-04-04 15:51             ` Carlos R. Mafra
2008-04-04 17:37               ` 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDLE=n-Apple Pallipadi, Venkatesh
2008-04-04 17:42                 ` Soeren Sonnenburg
2008-04-04 20:41               ` Pallipadi, Venkatesh
2008-04-05 13:05                 ` Carlos R. Mafra
2008-04-06 21:01                   ` Rafael J. Wysocki
2008-04-06 22:07                     ` Carlos R. Mafra
2008-04-06 23:20                       ` Rafael J. Wysocki
2008-04-07  5:30                         ` Soeren Sonnenburg
2008-04-06 20:56                 ` Carlos R. Mafra
2008-04-07  5:31                   ` Pallipadi, Venkatesh
2008-04-07  5:48                     ` Soeren Sonnenburg
2008-04-07 11:46                     ` Carlos R. Mafra
2008-04-09 10:50                     ` Carlos R. Mafra
2008-04-04  6:32   ` 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDLE=n - Apple Soeren Sonnenburg
2008-04-04  6:38     ` 2.6.25-current-git hangs on boot unless CONFIG_CPU_IDLE=n -Apple Pallipadi, Venkatesh
2008-04-03 23:22 ` panic using bridging on linus kernel 2.6.25-rc6 Rafael J. Wysocki
2008-04-03 23:22 ` inconsistent lock state in net_rx_action Rafael J. Wysocki
2008-04-04  1:06   ` David Miller
2008-04-03 23:22 ` 2.6.25-rc6 regression - hang on resume Rafael J. Wysocki
2008-04-04  6:31   ` Soeren Sonnenburg
2008-04-07  7:16     ` 2.6.25-rc6 regression - hang on resume [Bug 10319] Romano Giannetti
2008-04-07  9:10       ` Rafael J. Wysocki
2008-04-08  8:58         ` Tino Keitel
2008-04-08 12:35           ` Romano Giannetti
2008-04-08 12:39             ` Soeren Sonnenburg
2008-04-08 12:52               ` Fabio Comolli
2008-04-08 13:32                 ` Soeren Sonnenburg
2008-04-08 14:41             ` Matthew Garrett
2008-04-08 15:07               ` Jesse Barnes
2008-04-17 18:20       ` [Suspend-devel] " Stefan Seyfried
2008-04-17 19:49         ` Soeren Sonnenburg
2008-04-18  7:34         ` Romano Giannetti
2008-04-18  8:32           ` Soeren Sonnenburg
2008-04-11 21:04     ` 2.6.25-rc6 regression - hang on resume Pavel Machek
2008-04-11 21:08       ` Rafael J. Wysocki
2008-04-12  7:27       ` Soeren Sonnenburg
2008-04-13  8:53         ` Pavel Machek
2008-04-13 12:05           ` Soeren Sonnenburg [this message]
2008-04-13 21:33             ` Pavel Machek
2008-04-13 13:53           ` Rafael J. Wysocki
2008-04-13 16:18             ` Soeren Sonnenburg
2008-04-13 16:30             ` Soeren Sonnenburg
2008-04-13 16:38               ` Rafael J. Wysocki
2008-04-03 23:22 ` regression: am-utils stopped working in 2.6.25-rc* Rafael J. Wysocki
2008-04-04  6:15   ` Meelis Roos
2008-04-03 23:22 ` kvm: INFO: inconsistent lock state Rafael J. Wysocki
2008-04-03 23:22 ` Linux 2.6.25-rc6: WARNING: at net/ipv4/tcp_input.c:2510 Rafael J. Wysocki
2008-04-04 15:14   ` Georgi Chorbadzhiyski
2008-04-03 23:22 ` 2.6.25-rc2-git4 - Kernel oops while running kernbench and tbench on powerpc Rafael J. Wysocki
2008-04-03 23:22 ` INFO: possible circular locking in the resume Rafael J. Wysocki
2008-04-04  5:20   ` Gautham R Shenoy
2008-04-03 23:22 ` 2.6.25-current-git hangs on boot (pci=nommconf helps) Rafael J. Wysocki
2008-04-04  7:24   ` Soeren Sonnenburg
2008-04-03 23:22 ` [2.6.25-rc6] possible regression: X server dying Rafael J. Wysocki
2008-04-03 23:22 ` rt2x00 does not associate or give scan results Rafael J. Wysocki
2008-04-03 23:22 ` 2.6.25-git regression with snd-hda-intel on Dell XPS M1330, no analog sound Rafael J. Wysocki
2008-04-05 19:49   ` Bill Davidsen
2008-04-03 23:22 ` [BUG] Linux 2.6.25-rc6 - kernel BUG at fs/mpage.c:476! on powerpc Rafael J. Wysocki
2008-04-03 23:22 ` kernel panic ip_route_input Rafael J. Wysocki
2008-04-04  1:06   ` David Miller
2008-04-04  9:41     ` Rafael J. Wysocki
2008-04-03 23:22 ` KVM &amp; Qemu crashed with infinite recursive kernel loop in the guest Rafael J. Wysocki
2008-04-03 23:22 ` usb-storage, error reading the last 8 sectors, regression in 2.6.25-rc7 Rafael J. Wysocki
2008-04-03 23:22 ` The never ending BEEEEP/__smp_call_function_mask with 2.6.25-rc7 Rafael J. Wysocki
2008-04-04  1:49   ` Chr
2008-04-03 23:22 ` 2.6.25-rc7: warn_on_slowpath triggered Rafael J. Wysocki
2008-04-03 23:22 ` Kernel freezes during boot when AC is unplugged Rafael J. Wysocki
2008-04-03 23:22 ` rc6+ regression - backlight reset to 0 on boot after 7c0ea45be4f114d85ee35caeead8e1660699c46f Rafael J. Wysocki
2008-04-03 23:22 ` 2.6.25-rc5.git4 regression PS/2 mouse not detected/working Rafael J. Wysocki
2008-04-04 13:33   ` Thomas Gleixner
2008-04-04 15:32     ` Balaji Rao
2008-04-04 18:18       ` Thomas Gleixner
2008-04-03 23:22 ` 2.6.25-rc7/8: Another resume regression Rafael J. Wysocki
2008-04-04 14:11   ` Mark Lord
2008-04-03 23:22 ` slub compile error Rafael J. Wysocki
2008-04-04  1:37   ` Christoph Lameter
2008-04-04  9:45     ` Rafael J. Wysocki
2008-04-03 23:22 ` Oops while reading /proc/ioports or /proc/iomem Rafael J. Wysocki
2008-04-03 23:30 ` 2.6.25-rc6-git2: warn_on_slowpath for tcp_simple_retransmit Rafael J. Wysocki
2008-04-03 23:59 ` 2.6.25-rc8-git2: Reported regressions from 2.6.24 Linus Torvalds
2008-04-04  4:39   ` Andrew Morton
2008-04-05 18:57 ` Linus Torvalds
2008-04-06 21:10   ` Rafael J. Wysocki
     [not found] ` <pdYe6zNQVl.A.-CB.KGW9HB@albercik>
2008-04-06  7:29   ` (regression) kernel/timeconst.h bugs with HZ=128 David Brownell
2008-04-06 17:58     ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1208088344.4839.60.camel@localhost \
    --to=kernel@nn7.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).