* RE: 2.2.11
@ 1999-06-29 12:48 Paul Jakma
0 siblings, 0 replies; 9+ messages in thread
From: Paul Jakma @ 1999-06-29 12:48 UTC (permalink / raw)
To: 'axp-list@redhat.com'
> ----------
> From: Jeff Garzik[SMTP:jgarzik@pobox.com]
> Reply To: axp-list@redhat.com
> Sent: 29 June 1999 12:44
> To: axp-list@redhat.com
> Subject: Re: 2.2.11
>
> Have you taken a look at the Alpha patches in the 2.2.x-ac patch
> series? There are a few updates which may be useful in 2.2.x
> mainstream.
>
> ftp://ftp.us.kernel.org/pub/linux/kernel/alan/2.2/patch-2.2.9-ac5.bz2
>
> Regards,
>
the -ac patches don't work on ruffian. AFAIK due to large memory support.
Does anybody have the time/expertise to fix -ac for ruffian?
^ permalink raw reply [flat|nested] 9+ messages in thread[parent not found: <19990628204237.A29511@twiddle.net>]
[parent not found: <Pine.LNX.4.10.9906282216350.779-100000@penguin.transmeta.com>]
* Re: 2.2.11 [not found] ` <Pine.LNX.4.10.9906282216350.779-100000@penguin.transmeta.com> @ 1999-06-29 8:10 ` Richard Henderson 1999-06-29 11:44 ` 2.2.11 Jeff Garzik ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: Richard Henderson @ 1999-06-29 8:10 UTC (permalink / raw) To: Linus Torvalds; +Cc: Alan Cox, axp-list [-- Attachment #1: Type: text/plain, Size: 564 bytes --] Here's my current set of diffs against 2.2.11-pre1 -- (1) Update the asn drop I gave you to my second try. Tweek _that_ to avoid an asn wrap detection problem. Ug. (2) Give -fno-strict-alias to gcc 2.95. No matter what we do for 2.3, we won't be going back to fix what needs fixing in 2.2. (3) Code drop from Jay: PYXIS, DP264, profiling. (4) osf_getsysinfo and spin_trylock patchlets from Jeff Garzik. (5) The cvtqt/m emulation failed on 0 input. This broke floor in glibc 2.1 on ev4. (6) Yellowfin alignment bug fix. r~ [-- Attachment #2: d-2211-rth1.gz --] [-- Type: application/x-gunzip, Size: 5724 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.2.11 1999-06-29 8:10 ` 2.2.11 Richard Henderson @ 1999-06-29 11:44 ` Jeff Garzik 1999-06-29 12:10 ` 2.2.11 Quant-X Alpha Linux Support 1999-06-29 15:40 ` 2.2.11 Michal Jaegermann 2 siblings, 0 replies; 9+ messages in thread From: Jeff Garzik @ 1999-06-29 11:44 UTC (permalink / raw) To: axp-list Have you taken a look at the Alpha patches in the 2.2.x-ac patch series? There are a few updates which may be useful in 2.2.x mainstream. ftp://ftp.us.kernel.org/pub/linux/kernel/alan/2.2/patch-2.2.9-ac5.bz2 Regards, Jeff ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.2.11 1999-06-29 8:10 ` 2.2.11 Richard Henderson 1999-06-29 11:44 ` 2.2.11 Jeff Garzik @ 1999-06-29 12:10 ` Quant-X Alpha Linux Support 1999-06-29 16:29 ` 2.2.11 Richard Henderson [not found] ` <Pine.LNX.4.10.9906290916140.1940-100000@penguin.transmeta.com> 1999-06-29 15:40 ` 2.2.11 Michal Jaegermann 2 siblings, 2 replies; 9+ messages in thread From: Quant-X Alpha Linux Support @ 1999-06-29 12:10 UTC (permalink / raw) To: Richard Henderson; +Cc: Linus Torvalds, Alan Cox, axp-list Hi Richard ! On Tue, Jun 29, 1999 at 01:10:28AM -0700, Richard Henderson wrote: > (4) osf_getsysinfo and spin_trylock patchlets from Jeff Garzik. Is there a good reason why "DEBUG_SPINLOCK" is enabled by default on a stable Alpha kernel release ? [I also would like to know how Linus could fairly easily add a primitive to create a "upgradeable" read-lock as described in spinlock.txt. From my point of logic it's impossible if two concurrent readers want to upgrade at the same time. For real upgrading, the read-lock cannot be released, it has to be atomically changed when the reader count == 1 (self) to a write-lock. The reader count can't get down to 1 if two concurrent readers want to upgrade ---> deadlock. Is somebody willing to enlighten me ?] -- ciao - Stefan Traby Quant-X Alpha Linux Support Quant-X Service & Ph: (+43) 4212 90555-0 Consulting Ges.m.b.H. Fax: (+43) 4212 90555-555 http://www.quant-x.com Email: support@quant-x.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.2.11 1999-06-29 12:10 ` 2.2.11 Quant-X Alpha Linux Support @ 1999-06-29 16:29 ` Richard Henderson [not found] ` <Pine.LNX.4.10.9906290916140.1940-100000@penguin.transmeta.com> 1 sibling, 0 replies; 9+ messages in thread From: Richard Henderson @ 1999-06-29 16:29 UTC (permalink / raw) To: Quant-X Alpha Linux Support; +Cc: Linus Torvalds, Alan Cox, axp-list On Tue, Jun 29, 1999 at 02:10:16PM +0200, Quant-X Alpha Linux Support wrote: > Is there a good reason why "DEBUG_SPINLOCK" is enabled by default on a > stable Alpha kernel release ? Cause I wouldn't necessarily have called SMP "stable" on alpha yet. r~ ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <Pine.LNX.4.10.9906290916140.1940-100000@penguin.transmeta.com>]
* Re: 2.2.11 [not found] ` <Pine.LNX.4.10.9906290916140.1940-100000@penguin.transmeta.com> @ 1999-06-29 18:23 ` Quant-X Alpha Linux Support 0 siblings, 0 replies; 9+ messages in thread From: Quant-X Alpha Linux Support @ 1999-06-29 18:23 UTC (permalink / raw) To: Linus Torvalds Cc: Quant-X Alpha Linux Support, Richard Henderson, Alan Cox, axp-list Hi ! On Tue, Jun 29, 1999 at 09:19:42AM -0700, Linus Torvalds wrote: [upgradable read-locks] > There can only be one writer (whether he's a "reader-upgrader" or a real > writer) holding the lock at a time. Yup, IMHO the critical point that there can be many who _want_ to gain the write lock (waiting) but only one who _wants_ to "upgrade" at the same time. This makes the thing extremly dangerous. Even if there is only on "upgrade" code-line it has to be protected in some way (including previous the read-lock) if the function is reentrant. Can this be really useful in some way ? -- ciao - Stefan Traby Quant-X Alpha Linux Support Quant-X Service & Ph: (+43) 4212 90555-0 Consulting Ges.m.b.H. Fax: (+43) 4212 90555-555 http://www.quant-x.com Email: support@quant-x.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.2.11 1999-06-29 8:10 ` 2.2.11 Richard Henderson 1999-06-29 11:44 ` 2.2.11 Jeff Garzik 1999-06-29 12:10 ` 2.2.11 Quant-X Alpha Linux Support @ 1999-06-29 15:40 ` Michal Jaegermann 1999-06-29 16:42 ` 2.2.11 Richard Henderson 2 siblings, 1 reply; 9+ messages in thread From: Michal Jaegermann @ 1999-06-29 15:40 UTC (permalink / raw) To: axp-list Richard Henderson wrote: > > (2) Give -fno-strict-alias to gcc 2.95. No matter what we do for > 2.3, we won't be going back to fix what needs fixing in 2.2. Is this good enough? Here is a code distilled from a real program (lyx-1.0.3) which was falling flat on this trouble and, curiously enough, in the original C++ source things were not really that obvious. :-) #include <stdio.h> #include <string.h> unsigned char buffer[sizeof(char *) + 2]; int main () { unsigned char *p; int i; p = (unsigned char *)&p; /* cheap initialization */ printf("original = %p\n", p); #if defined(BUG) memcpy (&buffer[1], &p, sizeof(p)); #else { unsigned char *target, *source; target = &buffer[1]; source = (unsigned char *)&p; for (i = 0; i < sizeof(char *) ; i++) { *target++ = *source++; } } #endif for (i = sizeof(char *) + 2; i > 0 ; ) { printf("%02x ", buffer[--i]); } printf("\n"); return(0); } This program compiled on Alpha with egcs egcs-1.1.2 release (egcs-2.91.66 19990314) when BUG constant is not defined **or** when no optimizations are used prints someting like that: original = 0x11ffffb60 00 00 00 00 01 1f ff fb 60 00 If you add -DBUG to compilation flags and use **any** level of optimization above -O0 then this printout will be original = 0x11ffffb60 00 00 00 00 00 00 00 00 60 00 Adding compilation flags like -fno-strict-aliasing or other aliasing related flags does not change anything at all. Looking at an assembler output it appears that this is the case of an overenthusiastic expansion of an inline function - but I am not sure. I think that I will file a formal bug report - unless I will be told that this bug variant is well known, and taken care of, and I simply live under a rock. Oh, and after a small workaround in one place in a source file math_iter.C, LyX-1.0.3 compiled on Alpha with all optimizations seems to be doing just fine. Michal ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.2.11 1999-06-29 15:40 ` 2.2.11 Michal Jaegermann @ 1999-06-29 16:42 ` Richard Henderson 1999-06-29 18:48 ` 2.2.11 Michal Jaegermann 0 siblings, 1 reply; 9+ messages in thread From: Richard Henderson @ 1999-06-29 16:42 UTC (permalink / raw) To: axp-list On Tue, Jun 29, 1999 at 09:40:32AM -0600, Michal Jaegermann wrote: > This program compiled on Alpha with egcs egcs-1.1.2 release > (egcs-2.91.66 19990314) when BUG constant is not defined **or** when > no optimizations are used prints someting like that: > > original = 0x11ffffb60 > 00 00 00 00 01 1f ff fb 60 00 > > If you add -DBUG to compilation flags and use **any** level of > optimization above -O0 then this printout will be > > original = 0x11ffffb60 > 00 00 00 00 00 00 00 00 60 00 With -DBUG you were using memcpy, so aliasing rules don't apply. Anyway, it seems to have been fixed since then (gcc-2.95 19990621). r~ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: 2.2.11 1999-06-29 16:42 ` 2.2.11 Richard Henderson @ 1999-06-29 18:48 ` Michal Jaegermann 0 siblings, 0 replies; 9+ messages in thread From: Michal Jaegermann @ 1999-06-29 18:48 UTC (permalink / raw) To: axp-list Richard Henderson wrote: > > > > If you add -DBUG to compilation flags and use **any** level of > > optimization above -O0 then this printout will be > > > > original = 0x11ffffb60 > > 00 00 00 00 00 00 00 00 60 00 > > With -DBUG you were using memcpy, so aliasing rules don't apply. Exactly. Another workaround is to use 'put_unaligned' instead after casting target to accept all eight bytes. But this is somewhat platform and the situation specific. :-) > Anyway, it seems to have been fixed since then (gcc-2.95 19990621). Good to hear that. So I guess I would not bother with writing a formal bug report. Michal ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-07-08 22:15 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-29 12:48 2.2.11 Paul Jakma
[not found] <19990628204237.A29511@twiddle.net>
[not found] ` <Pine.LNX.4.10.9906282216350.779-100000@penguin.transmeta.com>
1999-06-29 8:10 ` 2.2.11 Richard Henderson
1999-06-29 11:44 ` 2.2.11 Jeff Garzik
1999-06-29 12:10 ` 2.2.11 Quant-X Alpha Linux Support
1999-06-29 16:29 ` 2.2.11 Richard Henderson
[not found] ` <Pine.LNX.4.10.9906290916140.1940-100000@penguin.transmeta.com>
1999-06-29 18:23 ` 2.2.11 Quant-X Alpha Linux Support
1999-06-29 15:40 ` 2.2.11 Michal Jaegermann
1999-06-29 16:42 ` 2.2.11 Richard Henderson
1999-06-29 18:48 ` 2.2.11 Michal Jaegermann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox