mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Alessandro Suardi" <alessandro.suardi@gmail.com>
To: "Andrew Morton" <akpm@osdl.org>
Cc: "Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.18-git7 freezes solid on boot
Date: Thu, 28 Sep 2006 11:40:27 +0200	[thread overview]
Message-ID: <5a4c581d0609280240t6ed7200fo2540fb5297b77848@mail.gmail.com> (raw)
In-Reply-To: <20060927124652.c670785e.akpm@osdl.org>

On 9/27/06, Andrew Morton <akpm@osdl.org> wrote:
> On Wed, 27 Sep 2006 12:31:52 +0000
> "Alessandro Suardi" <alessandro.suardi@gmail.com> wrote:
>
> > Dell D610 running FC5, works fine with -git5, locks up
> >  in less than a second after selecting the GRUB entry
> >  for -git7, with NumLock on and nothing else working,
> >  SysRq included, except for the power switch (no need
> >  to keep it down for 10 secs though - it powers off
> >  right away).
> >
> > Since bzdiffing patch-2.6.18-git5 and -git7 shows there
> >  are framebuffer changes, I'm wondering whether anyone
> >  had already stumbled into similar issues.
> >
> > Video card is an Intel i915GM.
> >
>
> You probably want this..
>
> From: Andi Kleen <ak@suse.de>
>
> i386: Use early clobbers for semaphores now
>
> The new code does clobber the result early, so make sure to tell
> gcc to not put it into the same register as a input argument
>
> Signed-off-by: Andi Kleen <ak@suse.de>
>
> Index: linux/include/asm-i386/semaphore.h
> ===================================================================
> --- linux.orig/include/asm-i386/semaphore.h
> +++ linux/include/asm-i386/semaphore.h
> @@ -126,7 +126,7 @@ static inline int down_interruptible(str
>                 "lea %1,%%eax\n\t"
>                 "call __down_failed_interruptible\n"
>                 "2:"
> -               :"=a" (result), "+m" (sem->count)
> +               :"=&a" (result), "+m" (sem->count)
>                 :
>                 :"memory");
>         return result;
> @@ -148,7 +148,7 @@ static inline int down_trylock(struct se
>                 "lea %1,%%eax\n\t"
>                 "call __down_failed_trylock\n\t"
>                 "2:\n"
> -               :"=a" (result), "+m" (sem->count)
> +               :"=&a" (result), "+m" (sem->count)
>                 :
>                 :"memory");
>         return result;
> -

Indeed, this brought -git7 back to life for my laptop.

Thanks Andrew ! (now going to build -git9...)

--alessandro

"Well a man has two reasons for things that he does
  the first one is pride and the second one is love
  all understandings must come by this way"

     (Husker Du, 'She Floated Away')

      reply	other threads:[~2006-09-28  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 12:31 Alessandro Suardi
2006-09-27 19:46 ` Andrew Morton
2006-09-28  9:40   ` Alessandro Suardi [this message]

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=5a4c581d0609280240t6ed7200fo2540fb5297b77848@mail.gmail.com \
    --to=alessandro.suardi@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®