* [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed
@ 2003-12-18 7:24 Jeff Chua
2003-12-18 8:09 ` [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz Christopher S. Aker
2003-12-18 19:21 ` [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Dike
0 siblings, 2 replies; 8+ messages in thread
From: Jeff Chua @ 2003-12-18 7:24 UTC (permalink / raw)
To: UserModeLinux
uml-patch-2.4.22-7 on linux 2.4.24-pre1
Can't compile without CONFIG_MODE_TT. 2.4.22-5 has no problem.
Command to compile (make linux ARCH=um)
Thanks,
Jeff
[ jchua@fedex.com ]
gcc -D__KERNEL__ -I/v6/src/2424p1/uml/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-U__i386__ -Ui386 -DUM_FASTCALL -D__arch_um__ -DSUBARCH="i386"
-D_LARGEFILE64_SOURCE -I/v6/src/2424p1/uml/arch/um/include
-Derrno=kernel_errno -I/v6/src/2424p1/uml/arch/um/kernel/skas/include
-nostdinc -iwithprefix include -DKBUILD_BASENAME=root -DEXPORT_SYMTAB -c
root.c
In file included from /v6/src/2424p1/uml/arch/um/include/um_uaccess.h:17,
from /v6/src/2424p1/uml/include/asm/uaccess.h:31,
from root.c:9:
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h: In
function `verify_area_skas':
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
`current' undeclared (first use in this function)
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
(Each undeclared identifier is reported only once
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
for each function it appears in.)
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
`mm_segment_t' undeclared (first use in this function)
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
parse error before `{'
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
`TASK_SIZE' undeclared (first use in this function)
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
`EFAULT' undeclared (first use in this function)
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:17:
parse error before `)'
/v6/src/2424p1/uml/arch/um/include/../kernel/skas/include/uaccess.h:18:
warning: control reaches end of non-void function
In file included from /v6/src/2424p1/uml/include/asm/processor.h:22,
from /v6/src/2424p1/uml/include/linux/prefetch.h:13,
from /v6/src/2424p1/uml/include/linux/list.h:6,
from /v6/src/2424p1/uml/include/linux/wait.h:14,
from /v6/src/2424p1/uml/include/linux/fs.h:12,
from /v6/src/2424p1/uml/include/linux/capability.h:17,
from /v6/src/2424p1/uml/include/linux/binfmts.h:5,
from /v6/src/2424p1/uml/include/linux/sched.h:9,
from root.c:12:
/v6/src/2424p1/uml/include/asm/processor-generic.h: At top level:
/v6/src/2424p1/uml/include/asm/processor-generic.h:95: `mm_segment_t' used
prior to declaration
make[3]: *** [root.o] Error 1
make[3]: Leaving directory `/v6/src/2424p1/uml/fs/proc'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/v6/src/2424p1/uml/fs/proc'
make[1]: *** [_subdir_proc] Error 2
make[1]: Leaving directory `/v6/src/2424p1/uml/fs'
make: *** [_dir_fs] Error 2
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz
2003-12-18 7:24 [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Chua
@ 2003-12-18 8:09 ` Christopher S. Aker
2003-12-18 18:30 ` Jeff Dike
2003-12-19 11:37 ` Nick Craig-Wood
2003-12-18 19:21 ` [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Dike
1 sibling, 2 replies; 8+ messages in thread
From: Christopher S. Aker @ 2003-12-18 8:09 UTC (permalink / raw)
To: uml-devel
Enabling the RTC in 2.4.22-7um produced a hang very soon after INIT at boot time.
I discovered host_hz as an int overflows past 2.1 Ghz (2147483647 hz). An
unsigned int/long would only work for up to ~ 4.3 Ghz (4294967295 hz) or so, which
isn't that far off, imo... So -- Below is a patch that changes the type of
host_hz to unsigned long long. Also, I believe some casting was taking place with
the return value of get_host_hz, so mhz is also redefined as an unsigned long
long.
-Chris
diff -Naur orig/arch/um/kernel/time.c mine/arch/um/kernel/time.c
--- orig/arch/um/kernel/time.c 2003-12-18 02:30:20.000000000 -0500
+++ mine/arch/um/kernel/time.c 2003-12-18 02:32:38.000000000 -0500
@@ -79,10 +79,11 @@
set_interval(ITIMER_REAL);
}
-static long get_host_hz(void)
+static unsigned long long get_host_hz(void)
{
char mhzline[16], *end;
- int ret, mult, mhz, rest, len;
+ int ret, mult, rest, len;
+ unsigned long long mhz;
ret = cpu_feature("cpu MHz", mhzline,
sizeof(mhzline) / sizeof(mhzline[0]));
@@ -112,7 +113,7 @@
return(1000000 * mhz + rest);
}
-int host_hz = 0;
+unsigned long long host_hz = 0;
void time_init(void)
{
diff -Naur orig/arch/um/kernel/time_kern.c mine/arch/um/kernel/time_kern.c
--- orig/arch/um/kernel/time_kern.c 2003-12-18 02:30:20.000000000 -0500
+++ mine/arch/um/kernel/time_kern.c 2003-12-18 02:34:58.000000000 -0500
@@ -39,7 +39,7 @@
static unsigned long long prev_tsc;
static long long delta; /* Deviation per interval */
-extern int host_hz;
+extern unsigned long long host_hz;
void timer_irq(union uml_pt_regs *regs)
{
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz
2003-12-18 8:09 ` [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz Christopher S. Aker
@ 2003-12-18 18:30 ` Jeff Dike
2003-12-18 20:39 ` Matt Ayres
2003-12-19 11:37 ` Nick Craig-Wood
1 sibling, 1 reply; 8+ messages in thread
From: Jeff Dike @ 2003-12-18 18:30 UTC (permalink / raw)
To: Christopher S. Aker; +Cc: uml-devel
On Thu, Dec 18, 2003 at 02:09:39AM -0600, Christopher S. Aker wrote:
> So -- Below is a patch that changes the type of
> host_hz to unsigned long long.
Sigh, some people's machines are too fast...
Applied, thanks.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed
2003-12-18 7:24 [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Chua
2003-12-18 8:09 ` [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz Christopher S. Aker
@ 2003-12-18 19:21 ` Jeff Dike
2003-12-18 19:50 ` BlaisorBlade
1 sibling, 1 reply; 8+ messages in thread
From: Jeff Dike @ 2003-12-18 19:21 UTC (permalink / raw)
To: Jeff Chua; +Cc: UserModeLinux
On Thu, Dec 18, 2003 at 03:24:06PM +0800, Jeff Chua wrote:
> Can't compile without CONFIG_MODE_TT. 2.4.22-5 has no problem.
Fixed, thanks.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed
2003-12-18 19:21 ` [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Dike
@ 2003-12-18 19:50 ` BlaisorBlade
0 siblings, 0 replies; 8+ messages in thread
From: BlaisorBlade @ 2003-12-18 19:50 UTC (permalink / raw)
To: user-mode-linux-devel
Alle 20:21, giovedì 18 dicembre 2003, Jeff Dike ha scritto:
> On Thu, Dec 18, 2003 at 03:24:06PM +0800, Jeff Chua wrote:
> > Can't compile without CONFIG_MODE_TT. 2.4.22-5 has no problem.
>
> Fixed, thanks.
Would you either post the fix or release -8? Or maybe it's on CVS(but you post
a release for each CVS commit, right?)
In general:
Maybe before than on the site you should announce the release here providing
the file as a link, get the silly compile errors and release on the site the
patched version. Since -6 to -7 hostaudio needed that silly fix for
modules... it's so unpleasant.
Or just build or use a compilation test-suite...
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.21/2.6.0-test on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz
2003-12-18 18:30 ` Jeff Dike
@ 2003-12-18 20:39 ` Matt Ayres
2003-12-18 21:52 ` Jeff Dike
0 siblings, 1 reply; 8+ messages in thread
From: Matt Ayres @ 2003-12-18 20:39 UTC (permalink / raw)
To: Jeff Dike; +Cc: Christopher S. Aker, uml-devel
Does this mean this fix is included in the 2.4.22-7 patch on your
website, a new -7 will be released shortly with this fix, or -8 will be
released shortly with this (and other) fixes?
On Thu, 2003-12-18 at 13:30, Jeff Dike wrote:
> On Thu, Dec 18, 2003 at 02:09:39AM -0600, Christopher S. Aker wrote:
> > So -- Below is a patch that changes the type of
> > host_hz to unsigned long long.
>
> Sigh, some people's machines are too fast...
>
> Applied, thanks.
>
> Jeff
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
--
Matt Ayres <matta@tektonic.net>
TekTonic
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz
2003-12-18 20:39 ` Matt Ayres
@ 2003-12-18 21:52 ` Jeff Dike
0 siblings, 0 replies; 8+ messages in thread
From: Jeff Dike @ 2003-12-18 21:52 UTC (permalink / raw)
To: Matt Ayres; +Cc: Christopher S. Aker, uml-devel
On Thu, Dec 18, 2003 at 03:39:13PM -0500, Matt Ayres wrote:
> Does this mean this fix is included in the 2.4.22-7 patch on your
> website, a new -7 will be released shortly with this fix, or -8 will be
> released shortly with this (and other) fixes?
It'll be in -8. I don't reuse patch numbers.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz
2003-12-18 8:09 ` [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz Christopher S. Aker
2003-12-18 18:30 ` Jeff Dike
@ 2003-12-19 11:37 ` Nick Craig-Wood
1 sibling, 0 replies; 8+ messages in thread
From: Nick Craig-Wood @ 2003-12-19 11:37 UTC (permalink / raw)
To: Christopher S. Aker; +Cc: uml-devel
On Thu, Dec 18, 2003 at 02:09:39AM -0600, Christopher S. Aker wrote:
> Enabling the RTC in 2.4.22-7um produced a hang very soon after INIT at boot time.
>
> I discovered host_hz as an int overflows past 2.1 Ghz (2147483647
> hz).
Ah, I've been wondering why I couldn't get 2.4.22-7um to work - this
fixes it for me!
BTW the patch appeared to be whitespace mangled - I had to apply it
with patch --ignore-whitespace
Thanks
Nick
--
Nick Craig-Wood
ncw1@axis.demon.co.uk
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-12-19 11:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-18 7:24 [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Chua
2003-12-18 8:09 ` [uml-devel] [PATCH] - fix for 2.4.22-7um RTC on CPUs faster than 2.1 GHz Christopher S. Aker
2003-12-18 18:30 ` Jeff Dike
2003-12-18 20:39 ` Matt Ayres
2003-12-18 21:52 ` Jeff Dike
2003-12-19 11:37 ` Nick Craig-Wood
2003-12-18 19:21 ` [uml-devel] uml-patch-2.4.22-7 without CONFIG_MODE_TT failed Jeff Dike
2003-12-18 19:50 ` BlaisorBlade
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.