linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: Nikola Ciprich <nikola.ciprich@linuxbox.cz>,
	user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64	guest , problems with noprocmm
Date: Wed, 18 Oct 2006 14:56:46 -0400	[thread overview]
Message-ID: <20061018185646.GD6566@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200610180139.55496.blaisorblade@yahoo.it>

On Wed, Oct 18, 2006 at 01:39:55AM +0200, Blaisorblade wrote:
> Jeff, I remember vaguely a recent (>=2.6.17) patch about udelay fixing a 
> misbehaviour, would you please complete my recollection and verify the 
> interaction with this?

There were two problems.

One was that the declaration and definition of most arch
__const_udelay were mismatched.  It was simply a name mismatch, would
not cause miscompilation, but did cause conceptual problems:

arch/i386/lib/delay.c:
	inline void __const_udelay(unsigned long xloops)

include/asm-i386/delay.h:
	extern void __const_udelay(unsigned long usecs);

I'm also somewhat interested in how something that's defined inline in
a C file will be accessible to other files such that an extern
declaration would be needed.

The second problem (IIRC) was the mismatch you noted, although I
can't find that part of the patch any more.  I didn't understand the
magic constants in asm-i386/delay.h, and didn't see the comments in
arch/i386/lib/delay.c, which might have helped.

> This bug is here at least since 2.6.16.
> Suggested solution:
> 1) have _our own_ delay.h, to avoid depending on subarchs' changes
> 2) first avoid playing so complex tricks, then maybe copy their 
> implementation (note it is slightly different already among x86 and
> x86_64).

This sounds reasonable.

				Jeff

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  parent reply	other threads:[~2006-10-18 18:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-30 16:30 [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest, problems with noprocmm Nikola Ciprich
2006-09-30 21:49 ` Jeff Dike
2006-09-30 22:11   ` Nikola Ciprich
2006-09-30 23:57     ` Jeff Dike
2006-10-01  0:04       ` Nikola Ciprich
2006-10-01  0:08       ` Nikola Ciprich
2006-10-01  0:19         ` Nikola Ciprich
2006-10-01  0:45           ` Nikola Ciprich
2006-10-01 15:08             ` [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest , " Blaisorblade
2006-10-01 15:25       ` [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest, " Blaisorblade
2006-10-01 15:51         ` Nikola Ciprich
2006-10-01 21:00           ` Nikola Ciprich
2006-10-05 11:33             ` Blaisorblade
2006-10-08 11:04               ` Blaisorblade
2006-10-08 19:08                 ` Nikola Ciprich
2006-10-08 19:30                   ` Blaisorblade
2006-10-08 20:01                     ` Nikola Ciprich
2006-10-14  0:23                       ` Blaisorblade
2006-10-14  9:23                         ` Nikola Ciprich
2006-10-15 17:35                           ` [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest , " Blaisorblade
2006-10-16 15:02                           ` [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest, " Jeff Dike
     [not found]                             ` <1161116486.2709.15.camel@nik-nb>
2006-10-17 23:39                               ` [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest , " Blaisorblade
2006-10-18  7:40                                 ` Nikola Ciprich
2006-10-18 18:56                                 ` Jeff Dike [this message]
2006-10-05 20:14           ` [uml-devel] SKAS mode not working, x86_64 SMP host, x86_64 guest, " Blaisorblade
2006-10-07 14:27             ` Nikola Ciprich

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=20061018185646.GD6566@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=blaisorblade@yahoo.it \
    --cc=nikola.ciprich@linuxbox.cz \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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