[PATCH 2.6.23] uninitialised variable in ARM/ixp4xx clockevents code

2007-10-22 Thread Mikael Pettersson
CLOCK_EVT_MODE_RESUME, then 'opts' will be uninitialised at the '*IXP4XX_OSRT1 = osrt | opts;' statement. Initialising opts to zero in this case may not be correct, but at least it's better than writing random junk to the hardware. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] -- I'm not cc:ing linux-arm

Re: futex local DoS on most architectures

2008-02-11 Thread Mikael Pettersson
Adrian Bunk writes: The issue described in [1] is still present and unfixed (and even the fix there wasn't complete since it didn't cover SMP). Thanks to Riku Voipio for noting that it is still unfixed. cu Adrian [1] http://lkml.org/lkml/2007/8/1/474 I think calling it a

Re: [PATCH] Make sysctl a separate filesystem

2008-02-15 Thread Mikael Pettersson
Andi Kleen writes: Pavel Emelyanov [EMAIL PROTECTED] writes: this subdir; 3. sysctl inodes are now smaller than the procfs ones. That's always a good thing. Note: update your initscripts to mount sysctl filesystem right after the proc is mounted in order not to lose your

Re: Updated: [PATCH] hardening: add PROT_FINAL prot flag to mmap/mprotect

2012-10-04 Thread Mikael Pettersson
Ard Biesheuvel writes: This patch adds support for the PROT_FINAL flag to the mmap() and mprotect() syscalls. The PROT_FINAL flag indicates that the requested set of protection bits should be final, i.e., it shall not be allowed for a subsequent mprotect call to set protection bits

Re: Hardcoded instruction causes certain features to fail on ARM platfrom due to endianness

2012-10-15 Thread Mikael Pettersson
Yangfei (Felix) writes: Hi all, I found that hardcoded instruction in inline asm can cause certains certain features fail to work on ARM platform due to endianness. As an example, consider the following code snippet of platform_do_lowpower function from

Re: [PATCH] Since we have counters in __u64 format we have to print them with %llu macros.

2007-09-26 Thread Mikael Pettersson
On Wed, 26 Sep 2007 17:18:06 +0530, Balbir Singh wrote: Andreas Schwab wrote: Maxim Uvarov [EMAIL PROTECTED] writes: diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index cbee3a2..73924df 100644 --- a/Documentation/accounting/getdelays.c

Re: __kernel_vsyscall () hangs in SIGCHLD handler

2007-09-26 Thread Mikael Pettersson
Ulrich Drepper writes: On 9/26/07, John Z. Bohach [EMAIL PROTECTED] wrote: Is there some reason that syslog() sleeps in __kernel_vsyscall() when invoked from a signal handler? Only very few functions are allowed to be called from signal handlers. This is clearly spelled out in the

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread Mikael Pettersson
On Wed, 03 Oct 2007 17:06:24 +0900, Shi Weihua wrote: Fixing alternative signal stack wraparound. If a process uses alternative signal stack by using sigaltstack() and that stack overflow, stack wraparound occurs. This patch checks whether the signal frame is on the alternative stack. If

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread Mikael Pettersson
On Wed, 3 Oct 2007 22:20:46 +0900, KAMEZAWA Hiroyuki wrote: On Wed, 3 Oct 2007 21:40:29 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] wrote: On Wed, 3 Oct 2007 14:20:07 +0200 (MEST) Mikael Pettersson [EMAIL PROTECTED] wrote: What I don't agree with is the logic itself: - You only

Re: [PATCH][RFC] unbreak generic futex_atomic_cmpxchg_inatomic() on UP

2007-10-04 Thread Mikael Pettersson
On Wed, 3 Oct 2007 22:33:46 +0300, Riku Voipio wrote: What's the state of this patch? I can confirm tst-robust1 from glibc testsuite locks a armv5 machine hard. With this patch applied, the test succeeds. There were no comments from any Linux arch or futex maintainer. Because of that I intend

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-04 Thread Mikael Pettersson
On Thu, 4 Oct 2007 21:47:30 +0900, KAMEZAWA Hiroyuki wrote: On Thu, 04 Oct 2007 21:33:12 +0900 Shi Weihua [EMAIL PROTECTED] wrote: KAMEZAWA Hiroyuki wrote:: On Thu, 04 Oct 2007 20:56:14 +0900 Shi Weihua [EMAIL PROTECTED] wrote: stack.ss_sp = addr + pagesize; stack.ss_flags

Re: [PATCH 1/1] pata_it821x: fix lost interrupt with atapi devices

2007-09-04 Thread Mikael Pettersson
Jeff Norden writes: From: Jeff Norden [EMAIL PROTECTED] Fix lost interrupt problem when using dma with CD/DVD drives in some configurations. This problem can make installing linux from media impossible for distro's that have switched to libata-only configurations. The simple fix

[BUG] 2.6.23-rc1 broke APM

2007-07-23 Thread Mikael Pettersson
On this machine (Gigabyte mobo with i815EP chipset and a PIII), APM worked fine up to 2.6.22. With 2.6.23-rc1 however the APM driver fails to locate the APM bios: --- dmesg-2.6.222007-07-23 14:07:46.0 +0200 +++ dmesg-2.6.23-rc12007-07-23 14:48:24.0 +0200 @@ -102,7

[PATCH 2.6.23-rc1] APM detection logic bug fix

2007-07-23 Thread Mikael Pettersson
supported? */ return -1; Here we see that the test has been accidentally inverted. The fix is to negate the test. I've verified that this allows the APM driver to work again on my affected machines. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] diff -rupN linux-2.6.23-rc1

Re: [BUG] 2.6.23-rc1 broke APM

2007-07-23 Thread Mikael Pettersson
On Mon, 23 Jul 2007 08:50:41 -0700, H. Peter Anvin wrote: Mikael Pettersson wrote: On this machine (Gigabyte mobo with i815EP chipset and a PIII), APM worked fine up to 2.6.22. With 2.6.23-rc1 however the APM driver fails to locate the APM bios: --- dmesg-2.6.22 2007-07-23 14:07

Re: PROBLEM: Caught SIGFPE exceptions aren't reset

2007-08-25 Thread Mikael Pettersson
Clark Cooper writes: [1] Caught SIGFPE exceptions aren't reset [2] On an i386, you can set a handler for a SIGFPE signal, and after enabling FP exceptions with feenableexceptions(), an FP exception will cause your handler to be called. However after the handler

Re: [PATCH] pata_artop: fix UDMA5 for AEC6280[R] and UDMA6 for AEC6880[R]

2007-08-10 Thread Mikael Pettersson
On Fri, 10 Aug 2007 01:45:38 +0200, Bartlomiej Zolnierkiewicz wrote: On Friday 10 August 2007, Alan Cox wrote: On Thu, 9 Aug 2007 23:19:34 +0200 Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] wrote: Maximum supported UDMA mode for AEC6280[R] is UDMA5 (not UDMA4) and for AEC6880[R]

Re: [PATCH] pata_artop: fix UDMA5 for AEC6280[R] and UDMA6 for AEC6880[R]

2007-08-12 Thread Mikael Pettersson
On Fri, 10 Aug 2007 18:33:43 +0100, Alan Cox wrote: However, I'm gettting consistently lower read throughput with pata_artop (13-19 MB/s) than with aec62xx (22 MB/s) on an oldish WD drive, and using pata_artop triggers a WARN_ON(irqs_disabled()) in arch/arm/mm/consistent.c: It would be

[PATCH TRIVIAL 2.6.23-git9] CREDITS: correct Mikael Pettersson's URL

2007-10-16 Thread Mikael Pettersson
New URL due to local reorganization. --- linux-2.6.23-git9/CREDITS.~1~ 2007-10-16 09:26:14.0 +0200 +++ linux-2.6.23-git9/CREDITS 2007-10-16 09:26:54.0 +0200 @@ -2702,7 +2702,7 @@ S: Canada K2P 0X8 N: Mikael Pettersson E: [EMAIL PROTECTED] -W: http://www.csd.uu.se

Re: handle_futex_death() infinite loop on ARM (fwd)

2007-07-30 Thread Mikael Pettersson
On Wed, 4 Jul 2007 12:23:18 +0200, Lennert Buytenhek wrote: If you're also running into glibc's tst-robust1 test suite test locking up your ARM machine, you're probably running into the fact that asm-arm/futex.h includes asm-generic/futex.h, and asm-generic/futex.h defines

[PATCH][RFC] unbreak generic futex_atomic_cmpxchg_inatomic() on UP

2007-08-01 Thread Mikael Pettersson
[Resend. I messed up the To: line the first time] As has been reported recently by Lennert Buytenhek, robust futexes are broken on ARM: If you're also running into glibc's tst-robust1 test suite test locking up your ARM machine, you're probably running into the fact that asm-arm/futex.h includes

Re: [PATCH][RFC] unbreak generic futex_atomic_cmpxchg_inatomic() on UP

2007-08-01 Thread Mikael Pettersson
On Thu, 2 Aug 2007 01:49:02 +0200, Lennert Buytenhek wrote: On Thu, Aug 02, 2007 at 01:00:21AM +0200, Mikael Pettersson wrote: @@ -52,7 +53,34 @@ futex_atomic_op_inuser (int encoded_op, static inline int futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval

Re: CD/DVD-ROM: ide vs. libata

2007-08-03 Thread Mikael Pettersson
On Fri, 03 Aug 2007 13:12:10 +0200, Grega Fajdiga wrote: Hello, LKML, I'm wondering if the old ide-cd from the ide subsystem is still necessary to get a CD/DVD-ROM working or is there a libata driver available already, Please CC me since I'm not subscribed. If you use libata then you

Re: sky2 regression in 2.6.21: Asus P5B-E Plus ethernet adapter no more supported

2007-04-28 Thread Mikael Pettersson
On Thu, 26 Apr 2007 15:50:50 -0700, Stephen Hemminger wrote: On Thu, 26 Apr 2007 23:24:18 +0200 Francois SIMOND [EMAIL PROTECTED] wrote: Hello, Lastest sky2 update between 2.6.21-rc7 and 2.6.21 final disables the support of the integrated ethernet adapter build on the Asus P5B-E Plus

Re: Geode-GX1 processor in 2.6.21

2007-04-30 Thread Mikael Pettersson
On Mon, 30 Apr 2007 12:51:05 +0200, Juergen Beisert wrote: setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88); If this register is 0x00 before, it is still 0x00 after this line. If I change the line into this: ccr2 = getCx86(CX86_CCR2); ccr2 |= 0x88;

Re: [PATCH] [1/1] CPU-i386-Geode: Chipset access macros do not work as expected

2007-04-30 Thread Mikael Pettersson
On Mon, 30 Apr 2007 15:09:58 +0200, Juergen Beisert wrote: Replace NSC/Cyrix specific chipset access macros by inlined functions. With the macros a line like this fails (and does nothing): setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88); With inlined functions this line will work as

Re: [PATCH] [1/1] CPU-i386-Geode: Chipset access macros do not work as expected

2007-04-30 Thread Mikael Pettersson
On 30 Apr 2007 17:32:04 +0200, Andi Kleen wrote: From: Juergen Beisert [EMAIL PROTECTED] Replace NSC/Cyrix specific chipset access macros by inlined functions. With the macros a line like this fails (and does nothing): setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88); With inlined

Re: [PATCH] [1/1] CPU-i386-Geode: Chipset access macros do not work as expected (2nd try)

2007-04-30 Thread Mikael Pettersson
like this: Clocksource tsc unstable (delta = -472746897 ns) Tested on a Geode GX1 system. This is the second version with some modifications suggested by Mikael Pettersson Signed-off-by: Juergen Beisert [EMAIL PROTECTED] Acked-by: Mikael Pettersson [EMAIL PROTECTED] Index: linux

Re: 2.6.12-rc2 in_atomic() picks up preempt_disable()

2005-04-07 Thread Mikael Pettersson
On Thu, 07 Apr 2005 12:17:37 +0200, Arjan van de Ven wrote: On Thu, 2005-04-07 at 20:10 +1000, Keith Owens wrote: 2.6.12-rc2, with CONFIG_PREEMPT and CONFIG_PREEMPT_DEBUG. The in_atomic() macro thinks that preempt_disable() indicates an atomic region so calls to __might_sleep() result in a

[PATCH 2.6.12-rc2-mm2 1/3] perfctr: x86 ABI update

2005-04-09 Thread Mikael Pettersson
start fields 64 bits (for future-proofing the ABI). Remove map field from pmc[] array to avoid underutilised cache lines. - x86.c: retrieve mapping from -control.pmc_map[]. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/x86.c | 24 ++-- include

[PATCH 2.6.12-rc2-mm2 2/3] perfctr: ppc32 ABI update

2005-04-09 Thread Mikael Pettersson
state, and increment it in perfctr_cpu_resume() and perfctr_cpu_sample(). Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/ppc.c | 16 include/asm-ppc/perfctr.h | 15 +-- 2 files changed, 17 insertions(+), 14 deletions(-) diff -rupN linux

[PATCH 2.6.12-rc2-mm2 3/3] perfctr: ppc64 ABI update

2005-04-09 Thread Mikael Pettersson
-visible state, and increment it in perfctr_cpu_resume() and perfctr_cpu_sample(). Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/ppc64.c | 16 include/asm-ppc64/perfctr.h | 13 - 2 files changed, 16 insertions(+), 13 deletions(-) diff -rupN

Re: 2.6.12-rc2-mm3

2005-04-17 Thread Mikael Pettersson
On Mon, 18 Apr 2005 00:27:02 +0200, Alexander Nyberg wrote: This patch fixes the NMI checking problems in -mm x64 for me. It What problems? changes the perfctr selection to use RETIRED_UOPS instead (makes both processors tick even on my box). This patch mixes what appears to be cleanups with

Re: 2.6.12-rc2-mm3

2005-04-18 Thread Mikael Pettersson
On Mon, 18 Apr 2005 11:56:15 +0200, Alexander Nyberg wrote: This patch fixes the NMI checking problems in -mm x64 for me. It What problems? Sorry, in -mm on x64 check_nmi_watchdog() has started to be run as a late_initcall(). Currently it reports the NMIs as stuck on a few systems although

x86_64 NMI watchdog breakage in 2.6.12-rc2-mm3

2005-04-19 Thread Mikael Pettersson
Andi Andrew, The x86_64-switch-smp-bootup-over-to-new-cpu-hotplug-state.patch in 2.6.12-rc2-mm3 appears to have broken the NMI watchdog. Specifically: diff -puN arch/x86_64/kernel/nmi.c~x86_64-switch-smp-bootup-over-to-new-cpu-hotplug-state arch/x86_64/kernel/nmi.c ---

Re: ext3 extended attributes refcounting wrong?

2005-02-05 Thread Mikael Pettersson
On Fri, 04 Feb 2005 17:19:09 +0100, Andreas Gruenbacher wrote: On Fri, 2005-02-04 at 15:15, Mikael Pettersson wrote: Plain www.kernel.org kernels always. Good, it's no bug then. Stephen already explained what's going on: when a file has xattrs and you delete the file while running a kernel

Re: ext3 extended attributes refcounting wrong?

2005-02-05 Thread Mikael Pettersson
On Sat, 05 Feb 2005 15:20:00 +0100, Andreas Gruenbacher wrote: On Sat, 2005-02-05 at 13:39, Mikael Pettersson wrote: [...] It does not explain why 2.6 allocated the xattr blocks in the first place; as I wrote initially, I have disabled the xattrs stuff: CONFIG_EXT3_FS=y

[PATCH][2.4.30-pre1] preliminary fixes for gcc-4.0

2005-02-10 Thread Mikael Pettersson
Here is a preliminary set of patches to allow gcc-4.0 (20050130) to compile the 2.4.30-pre1 kernel. I make no claim that the patches are complete, but they have been tested successfully on i386 (multiple boxes), x86-64, and ppc32. The changes fall into these categories: - static-vs-non-static

2.6.13-rc3 ACPI regression and hang on x86-64

2005-07-14 Thread Mikael Pettersson
On my x86-64 laptop (Targa Visionary 811: Athlon64 + VIA chipset, Arima OEM:d HW also sold by eMachines and others), ACPI is broken and hangs the x86-64 2.6.13-rc3 kernel. During boot, ACPI reduces the screen's brightness (it's always done this in the x86-64 kernels but not the i386 ones), so I

RE: 2.6.13-rc3 ACPI regression and hang on x86-64

2005-07-15 Thread Mikael Pettersson
On Thu, 14 Jul 2005 15:23:52 -0400, Brown, Len wrote: acpi_ec-0217 [04] acpi_ec_leave_burst_mo: ---status fail on the console, and then the machine is hung hard. 2.6.13-rc3 x86_64 failed, but 2.6.13-rc2 x86_64 worked And both of these revisions in the i386 kernel still work? With the i386

Re: -mm: strange places for the PERFCTR option

2005-07-21 Thread Mikael Pettersson
Adrian Bunk wrote: On i386, the PERFCTR option is currently available under: Power management options (ACPI, APM) APM (Advanced Power Management) BIOS Support On x86_64, the PERFCTR option is currently available under: Executable file formats / Emulation On ppc, the

Re: 2.4.31 panics on boot on 486 box: TSC requires pentium

2005-07-26 Thread Mikael Pettersson
On Tue, 26 Jul 2005 20:22:58 +0200, [EMAIL PROTECTED] wrote: 2.4.31 compiled with -m486, panics on boot (486DX) and says something about TSC requires pentium, bang. enabling the obscure flag [*] Unsynced TSC support seems to fix this - the corresponding .config label name is actually *more*

Re: RFC: Raise required gcc version to 3.2 ?

2005-07-28 Thread Mikael Pettersson
On Thu, 28 Jul 2005 14:00:12 +0200, Adrian Bunk wrote: What is the oldest gcc we want to support in kernel 2.6? Currently, it's 2.95 . I'd suggest raising this to 3.2 which should AFAIK not be a problem for any distribution supporting kernel 2.6 . Is there any good reason why we should not

[PATCH 2.6.13-rc2] pci: fix PCI !HOTPLUG compile error

2005-07-06 Thread Mikael Pettersson
This is because 2.6.13-rc2 added a code block to this function which references hotplug-only stuff. Fixed crudely by #ifdef CONFIG_HOTPLUG around it. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] --- linux-2.6.13-rc2/drivers/pci/pci-driver.c.~1~ 2005-07-06 15:20:41.0 +0200 +++ linux

Re: 2.6.13-rc2 hangs at boot

2005-07-07 Thread Mikael Pettersson
On Wed, 6 Jul 2005 16:47:28 +0300 (EEST), Tero Roponen wrote: my computer (a ThinkPad 380XD laptop) hangs at boot in 2.6.13-rc2. When I revert the patch below everything seems to be fine. Same here: my Targa Visionary 811 Athlon64 laptop hangs during boot with 2.6.13-rc2, unless I revert the

Re: [SOLVED] Re: 2.6.13-rc2 hangs at boot

2005-07-08 Thread Mikael Pettersson
On Fri, 8 Jul 2005 12:38:28 +0300 (EEST), Tero Roponen wrote: On Fri, 8 Jul 2005, Ivan Kokshaysky wrote: On Fri, Jul 08, 2005 at 10:57:56AM +0300, Tero Roponen wrote: Thanks! Vanilla 2.6.13-rc2 with below patch applied works perfectly! Thanks for testing. Though, bad news are that it's

Re: /proc/mtrr BIOS-provided RAM map

2005-07-12 Thread Mikael Pettersson
On Sat, 9 Jul 2005 01:00:54 -0700, Sheo Shanker Prasad wrote: (1) content of /proc/mtrr : reg00: base=0x ( 0MB), size=2048MB: write-back, count=1 reg01: base=0x8000 (2048MB), size=1024MB: write-back, count=1 reg02: base=0xc000 (3072MB), size= 128MB: write-back, count=1 reg03:

Re: [PATCH][2.6.11-mm3] perfctr ia32 syscalls on x86-64 fix

2005-03-13 Thread Mikael Pettersson
On Sat, 12 Mar 2005 21:55:49 -0800, Andrew Morton wrote: It would be nice to start folding these patches together a bit to reduce such problems, but that's rather non-trivial because there is no way to simply join these patches together which maintains a sensible sequencing. If we're going to do

Re: indirect lcall without `*'

2005-03-13 Thread Mikael Pettersson
On Sun, 13 Mar 2005 00:46:24 -0500, Hacksaw [EMAIL PROTECTED] wrote: In compiling 2.4.29 I get this during the compilation of pci-pc.c: Warning: indirect lcall without `*' I note from looking around the net that this is an old problem, dating back at least to 2.4.18, if not earlier. What does

Re: enabling IOAPIC on C3 processor?

2005-03-15 Thread Mikael Pettersson
jerome lacoste writes: I have a VIA Epia M1 board that crashes very badly (and pretty often, especially when using DMA). I want to fix that. Serial console + magic SysRQ didn't help so I am going the nmi watchdog way. But in order to have nmi watchdog I need APIC, right? The C3

Re: enabling IOAPIC on C3 processor? (how to investigate hangs without nmi watchdog)

2005-03-15 Thread Mikael Pettersson
jerome lacoste writes: So if I don't have APIC, that means I cannot use nmi_watchdog to investigate the problem, right? Correct. Do I have any alternative to investigate this hang or should I just give up and smash my board? I can't help you with that one. - To unsubscribe from this

[PATCH][2.6.11] drivers/char/isicom.c gcc4 fix

2005-03-15 Thread Mikael Pettersson
Fix two array-of-incomplete-type errors from gcc4 in isicom.c. /Mikael --- linux-2.6.11/drivers/char/isicom.c.~1~ 2005-03-02 19:24:15.0 +0100 +++ linux-2.6.11/drivers/char/isicom.c 2005-03-15 11:37:03.0 +0100 @@ -151,9 +151,6 @@ MODULE_DEVICE_TABLE(pci, isicom_pci_tbl)

[PATCH][2.6.11] drivers/net/arcnet/arcnet.c gcc4 fixes

2005-03-15 Thread Mikael Pettersson
Fix drivers/net/arcnet/arcnet.c: In function 'release_arcbuf': drivers/net/arcnet/arcnet.c:256: warning: operation on 'i' may be undefined drivers/net/arcnet/arcnet.c: In function 'get_arcbuf': drivers/net/arcnet/arcnet.c:292: warning: operation on 'i' may be undefined warnings from gcc4 in

[PATCH][2.6.11] generic_serial.h gcc4 fix

2005-03-15 Thread Mikael Pettersson
Fix drivers/char/generic_serial.c:38: error: static declaration of 'gs_debug' follows non-static declaration include/linux/generic_serial.h:94: error: previous declaration of 'gs_debug' was here compilation error from gcc4 in generic_serial.h. /Mikael ---

[PATCH][2.6.11-mm4] perfctr cleanups 1/3: common

2005-03-18 Thread Mikael Pettersson
in the kernel any more, make perfctr_info kernel-only and remove unused fields, use explicitly-sized integers in user-visible types. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/init.c| 22 --- drivers/perfctr/version.h |2 - include/linux/perfctr.h

[PATCH][2.6.11-mm4] perfctr cleanups 2/3: ppc32

2005-03-18 Thread Mikael Pettersson
kernel-private. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/ppc.c |8 +++- include/asm-ppc/perfctr.h | 43 ++- 2 files changed, 21 insertions(+), 30 deletions(-) diff -rupN linux-2.6.11-mm4/drivers/perfctr/ppc.c linux

[PATCH][2.6.11-mm4] perfctr cleanups 3/3: x86

2005-03-18 Thread Mikael Pettersson
x86-specific cleanups for perfctr: - x86.c: use DEFINE_SPINLOCK(). - asm-i386/perfctr.h: remove cpu_type constants and PERFCTR_CPU_VERSION unused in the kernel, use explicitly-sized integers in user-visible types, make perfctr_cpu_control kernel-private. Signed-off-by: Mikael Pettersson

Re: ppc64 build broke between 2.6.11-bk6 and 2.6.11-bk7

2005-03-18 Thread Mikael Pettersson
Andrew Morton writes: Martin J. Bligh [EMAIL PROTECTED] wrote: drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe': : undefined reference to `.mac_vmode_to_var' make: *** [.tmp_vmlinux1] Error 1 Anyone know what that is?

Re: ppc64 build broke between 2.6.11-bk6 and 2.6.11-bk7

2005-03-18 Thread Mikael Pettersson
Mikael Pettersson writes: Andrew Morton writes: Martin J. Bligh [EMAIL PROTECTED] wrote: drivers/built-in.o(.text+0x182bc): In function `.matroxfb_probe': : undefined reference to `.mac_vmode_to_var' make: *** [.tmp_vmlinux1] Error 1 Anyone know what

[PATCH][2.4.30-rc1] updated gcc-4.0 patches

2005-03-19 Thread Mikael Pettersson
Here is a new set of patches to allow gcc-4.0 (20050312) to compile the 2.4.30-rc1 kernel. Changes since the previous version of the patch set are: - Replaced -ffreestanding with -fno-builtin-sprintf. freestanding was used to prevent gcc from transforming some sprintf() calls to calls to

[PATCH][2.6.12-rc1] fix gcc4 compile error in ppc64 paca.h

2005-03-21 Thread Mikael Pettersson
:25: error: array type has incomplete element type make[1]: *** [arch/ppc64/kernel/asm-offsets.s] Error 1 make: *** [arch/ppc64/kernel/asm-offsets.s] Error 2 This is an array-of-incomplete-type error. Fix: move array decl to after the struct decl. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED

[PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c

2005-03-21 Thread Mikael Pettersson
') arch/ppc64/kernel/prom.c:1692: warning: initialization makes pointer from integer without a cast make[1]: *** [arch/ppc64/kernel/prom.o] Error 1 make: *** [arch/ppc64/kernel] Error 2 Fix: repair the obvious syntax error (missing =). Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] --- linux

[PATCH][2.6.12-rc1-mm1] fix ppc64 linkage error on G5

2005-03-21 Thread Mikael Pettersson
the condition but accidentally negated it: on PSERIES the system call will now go to sys_ni_syscall, and on !PSERIES linking will fail. Fix: negate the condition. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] --- linux-2.6.12-rc1-mm1/arch/ppc64/kernel/misc.S.~1~ 2005-03-21 14:48

Re: [PATCH] ppc64: fix linkage error on G5

2005-03-21 Thread Mikael Pettersson
On Tue, 22 Mar 2005 03:32:59 +1100, Anton Blanchard wrote: When 2.6.12-rc1-mm1 is configured for a ppc64/G5, so CONFIG_PPC_PSERIES is disabled, linking of vmlinux fails with: arch/ppc64/kernel/built-in.o(.text+0x7de0): In function `.sys_call_table32': : undefined reference to `.ppc_rtas'

[PATCH][2.4.30-rc1] v10 of gcc4 fixes (solves X crash on x86_64)

2005-03-22 Thread Mikael Pettersson
On Sat, 19 Mar 2005 17:26:27 +0100 (MET), I wrote: Here is a new set of patches to allow gcc-4.0 (20050312) to compile the 2.4.30-rc1 kernel. ... The only known problem is that the X server segfaults during PCI probing on x86-64. I'm currently debugging that. Problem solved. There was a bug in

[PATCH 2.6.12-rc1-mm1 1/3] perfctr: x86 fix and cleanups

2005-03-22 Thread Mikael Pettersson
flows are backpatched properly. This is needed for gcc-4.0. - Eliminate power-of-two sizeof assumption in access_regs(). - Merge check_ireset() and setup_imode_start_values(). Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/x86.c | 34 -- 1 files

[PATCH 2.6.12-rc1-mm1 3/3] perfctr: 64-bit values in register descriptors

2005-03-22 Thread Mikael Pettersson
for no real benefit. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] include/linux/perfctr.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -rupN linux-2.6.12-rc1-mm1/include/linux/perfctr.h linux-2.6.12-rc1-mm1.perfctr-update-common/include/linux/perfctr.h --- linux

[PATCH 2.6.12-rc1-mm1 2/3] perfctr: ppc32 fix and cleanups

2005-03-22 Thread Mikael Pettersson
ppc32 fix and cleanups: - If check_ireset() fails, clear state-cstatus to undo any settings check_control() may have left there. - Eliminate power-of-two sizeof assumption in access_regs(). - Merge check_ireset() and setup_imode_start_values(). Signed-off-by: Mikael Pettersson [EMAIL PROTECTED

Re: [PATCH 2.6.12-rc1-mm1 3/3] perfctr: 64-bit values in register descriptors

2005-03-23 Thread Mikael Pettersson
On Wed, 23 Mar 2005 14:34:30 +1100, David Gibson wrote: On Wed, Mar 23, 2005 at 04:00:03AM +0100, Mikael Pettersson wrote: - linux/perfctr.h: Change value fields in register descriptors to 64 bits. This will be needed for ppc64, and ppc32 user-space on ppc64 kernels, and may eventually also

[PATCH][2.4.30-pre2] fix undefined behaviour in cistpl.c

2005-03-05 Thread Mikael Pettersson
no initial value. Luckily 'sys' is reassigned later before being used, making this assignment redundant, so the fix is to simply remove it. This problem is not present in the 2.6 kernel. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] --- linux-2.4.30-pre2/drivers/pcmcia/cistpl.c.~1

[PATCH][2.4.30-pre2] updated patches for gcc-4.0

2005-03-05 Thread Mikael Pettersson
Here is a new set of patches to allow gcc-4.0 (20050226) to compile the 2.4.30-pre2 kernel. Changes since the previous version of the patch set are: - Moved -Wno-pointer-sign setting from arch/{i386,ppc,x86_64}/Makefile to the top-level Makefile. Added check_gcc definition to top Makefile and

Re: NMI watchdog question

2005-03-07 Thread Mikael Pettersson
On Sun, 06 Mar 2005 01:53:25 +0100, Pallai Roland wrote: I'm playing with the NMI watchdog (nmi_watchdog=1) on a reproductable hard lockup (no keyboard, etc) but seems like it doesn't works and I can't understand why, please explain to me the possible causes.. I belive it should work in this

Re: [PATCH 2/5] ppc RT: ppc_cpu_khz.patch

2005-03-08 Thread Mikael Pettersson
Frank Rowand writes: Source: MontaVista Software, Inc. Signed-off-by: Frank Rowand [EMAIL PROTECTED] Index: linux-2.6.10/arch/ppc/platforms/prpmc800.c === --- linux-2.6.10.orig/arch/ppc/platforms/prpmc800.c +++

RE: [PATCH][2.4.30-pre1] preliminary fixes for gcc-4.0

2005-03-10 Thread Mikael Pettersson
On Thu, 10 Mar 2005 09:50:11 +0100, Mikael Starvik wrote: +#if __GNUC__ 2 || (__GNUC__ == 2 __GNUC_MINOR = 96) Should be __GNUC_MINOR__ Thanks, I'll fix that. /Mikael - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

[PATCH][2.6.11-mm3] perfctr API update 0/9: overview

2005-03-12 Thread Mikael Pettersson
Andrew, This is the last planned major perfctr API update. This set of patches change how control data is communicated between user-space and the kernel. The main idea is that the control data is partitioned into domains, and each domain is given its own representation. The design principles

[PATCH][2.6.11-mm3] perfctr API update 2/9: physical indexing, ppc32

2005-03-12 Thread Mikael Pettersson
to use the virtual-to-physical map. - Users must now format the 2-6 event selector values into the MMCR0/MMCR1 images. - Verify that unused/non-existent parts of MMCR images are zero. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/ppc.c | 90

[PATCH][2.6.11-mm3] perfctr API update 1/9: physical indexing, x86

2005-03-12 Thread Mikael Pettersson
. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/x86.c | 73 - include/asm-i386/perfctr.h | 14 ++-- 2 files changed, 43 insertions(+), 44 deletions(-) diff -rupN linux-2.6.11-mm3/drivers/perfctr/x86.c linux

[PATCH][2.6.11-mm3] perfctr API update 4/9: cpu_control_header, ppc32

2005-03-12 Thread Mikael Pettersson
- Move tsc_on/nractrs/nrictrs control fields to new struct cpu_control_header. This depends on the physical-indexing patch for ppc32. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/ppc.c | 18 +- include/asm-ppc/perfctr.h |6 +- 2

[PATCH][2.6.11-mm3] perfctr API update 5/9: cpu_control_header, common

2005-03-12 Thread Mikael Pettersson
- Move tsc_on/nractrs/nrictrs control fields to new struct cpu_control_header. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/virtual.c |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -rupN linux-2.6.11-mm3.perfctr-physical-indexing/drivers/perfctr

[PATCH][2.6.11-mm3] perfctr API update 3/9: cpu_control_header, x86

2005-03-12 Thread Mikael Pettersson
- Move tsc_on/nractrs/nrictrs control fields to new struct cpu_control_header. This depends on the physical-indexing patch for x86. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/x86.c | 32 include/asm-i386/perfctr.h |6

[PATCH][2.6.11-mm3] perfctr API update 8/9: cpu_control access, ppc32

2005-03-12 Thread Mikael Pettersson
on the physical-indexing patch for ppc32, and on the common part of the cpu_control access patch. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/ppc.c | 70 ++ include/asm-ppc/perfctr.h | 11 +++ 2 files changed, 81

[PATCH][2.6.11-mm3] perfctr API update 7/9: cpu_control access, x86

2005-03-12 Thread Mikael Pettersson
on the physical-indexing patch for x86, and on the common part of the cpu_control access patch. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/x86.c | 100 + include/asm-i386/perfctr.h | 11 2 files changed, 111

[PATCH][2.6.11-mm3] perfctr API update 6/9: cpu_control access, common

2005-03-12 Thread Mikael Pettersson
- Add declarations of common arch-specific domain numbers and corresponding data structures to linux/perfctr.h. This just factors out common code, it does not impose any requirements on arch-specific code. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael include/linux/perfctr.h

[PATCH][2.6.11-mm3] CONFIG_FB_ATY linkage error on PPC32

2005-03-12 Thread Mikael Pettersson
On ppc32 the ATI Mach64 frame buffer references symbols on macmodes.o. In Linus' 2.6.11 macmodes.o is automatically included, but not so in 2.6.11-mm3, causing linkage errors. The quick-and-dirty hack below worked for me. /Mikael --- linux-2.6.11-mm2/drivers/video/Makefile.~1~ 2005-03-09

[PATCH][2.6.11-mm3] perfctr ia32 syscalls on x86-64 fix

2005-03-12 Thread Mikael Pettersson
The ia32 perfctr syscalls were moved due to addition of ioprio syscalls, but the ia32 emulation code in x86-64 wasn't updated. Simple fix below. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael arch/x86_64/ia32/ia32entry.S |4 +++- include/asm-x86_64/ia32_unistd.h |4

[PATCH][2.6.11-mm3] perfctr API update 9/9: domain-based read/write syscalls

2005-03-12 Thread Mikael Pettersson
. - Remove _reserved and cpu_control fields from struct vperfctr_control. This depends on the cpu_control header and the cpu_control access patches. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] /Mikael drivers/perfctr/virtual.c | 144 -- include

[PATCH 2.6.12-rc1-mm2] x86_64: fix vsyscall.c syntax error

2005-03-24 Thread Mikael Pettersson
Compiling 2.6.12-rc1-mm2 on x86_64 with gcc-4.0 fails with: arch/x86_64/kernel/vsyscall.c:193: error: syntax error before 'vsyscall_sysctl_change' Fix: repair the syntax error Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] --- linux-2.6.12-rc1-mm2/arch/x86_64/kernel/vsyscall.c.~1

Mach64 framebuffer console distorted on PMac G3 with recent 2.6 kernels

2005-03-25 Thread Mikael Pettersson
My Beige PowerMac G3 has a Mach64 GT chip. The display is an old 15 PC monitor. In recent 2.6 kernels, the framebuffer console suffers from distortions, where pixels in several columns around 50% and 75% into the lines (all lines) flicker on/off all the time. All kernels up to and including

[PATCH 2.6.12-rc1-mm3 0/3] perfctr: mapped state cleanup: overview

2005-03-28 Thread Mikael Pettersson
Andrew, This set of patches change the layout of the perfctr cpu state object. This state is mmap()able, providing a low-overhead sampling method to user-space. But in order to limit the number of cache lines touched at frequent operations (context switches and explicit samplings), some

[PATCH 2.6.12-rc1-mm3 1/3] perfctr: mapped state cleanup: x86

2005-03-28 Thread Mikael Pettersson
perfctr x86 mapped state cleanup: - Swap cstatus and k1 fields in struct perfctr_cpu_state. Move now contiguous user-visible fields to struct perfctr_cpu_state_user. Hide kernel-private stuff. Inline now obsolete k1 struct. Cleanups. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED

[PATCH 2.6.12-rc1-mm3 2/3] perfctr: mapped state cleanup: ppc32

2005-03-28 Thread Mikael Pettersson
perfctr ppc32 mapped state cleanup: - Swap cstatus and k1 fields in struct perfctr_cpu_state. Move now contiguous user-visible fields to struct perfctr_cpu_state_user. Hide kernel-private stuff. Inline now obsolete k1 struct. Cleanups. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED

[PATCH 2.6.12-rc1-mm3 3/3] perfctr: mapped state cleanup: common

2005-03-28 Thread Mikael Pettersson
perfctr common updates for mapped state cleanup: - Update virtual.c for perfctr_cpu_state layout change. - Add perfctr sysfs attribute providing user-space with the offset in an mmap()ed perfctr object to the user-visible state. Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers

Re: AMD64 Machine hardlocks when using memset

2005-03-31 Thread Mikael Pettersson
Paul Jackson writes: Yup - kills my x86_64 too. I can't stay up for half a minute. ... My mainboard is an MSI K8N Neo2 Platinum. I've tested both versions of the test program on two Athlon64 boxes, and neither has had any problems with them. My two machines are both VIA K8T800-based (a

[PATCH 2.6.12-rc1-mm5 1/3] perfctr: ppc64 arch hooks

2005-03-31 Thread Mikael Pettersson
. ppc64 perfctr driver from David Gibson [EMAIL PROTECTED]: - ppc64 arch hooks: Kconfig, syscalls numbers and tables, task struct, and process management ops (switch_to, exit, fork) Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] arch/ppc64/Kconfig|1 + arch/ppc64/kernel

[PATCH 2.6.12-rc1-mm5 2/3] perfctr: common updates for ppc64

2005-03-31 Thread Mikael Pettersson
and resume Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/Makefile |5 - drivers/perfctr/version.h |2 +- drivers/perfctr/virtual.c | 11 ++- 3 files changed, 15 insertions(+), 3 deletions(-) diff -rupN linux-2.6.12-rc1-mm4/drivers/perfctr/Makefile linux

[PATCH 2.6.12-rc1-mm5 3/3] perfctr: ppc64 driver core

2005-03-31 Thread Mikael Pettersson
ppc64 perfctr driver from David Gibson [EMAIL PROTECTED]: - ppc64 perfctr driver core Signed-off-by: Mikael Pettersson [EMAIL PROTECTED] drivers/perfctr/ppc64.c | 743 ++ drivers/perfctr/ppc64_tests.c | 322 ++ drivers/perfctr

Re: [PATCH 2.6.12-rc1-mm5 1/3] perfctr: ppc64 arch hooks

2005-04-01 Thread Mikael Pettersson
Andrew Morton writes: David Gibson [EMAIL PROTECTED] wrote: On Thu, Mar 31, 2005 at 03:11:29PM -0800, Andrew Morton wrote: Mikael Pettersson [EMAIL PROTECTED] wrote: Here's a 3-part patch kit which adds a ppc64 driver to perfctr, written by David Gibson [EMAIL PROTECTED

Re: clock runs at double speed on x86_64 system w/ATI RS200 chipset

2005-04-02 Thread Mikael Pettersson
On Fri, 1 Apr 2005 18:24:00 -0500 (EST), Christopher Allen Wing wrote: I also see messages from the kernel like: APIC error on CPU0: 00(40) APIC error on CPU0: 40(40) so I'd guess that something is wrong in the way that the machine is set up. Perhaps the BIOS or ACPI tables are

Re: clock runs at double speed on x86_64 system w/ATI RS200 chipset

2005-04-03 Thread Mikael Pettersson
On Sat, 2 Apr 2005 13:19:44 -0500 (EST), Christopher Allen Wing wrote: On Sat, 2 Apr 2005, Mikael Pettersson wrote: APIC error on CPU0: 00(40) APIC error on CPU0: 40(40) Those are received illegal vector errors, and they typically indicate hardware flakiness or BIOS issues. Could

Re: PROBLEM: v2.4.29 won't compile with PCI support disabled

2005-04-04 Thread Mikael Pettersson
Don Guy writes: PROBLEM: Attempts to compile v2.4.29 with PCI support disabled result in the following errors: drivers/char/char.o: In function `siig10x_init_fn': drivers/char/char.o(.text.init+0x12cd): undefined reference to `pci_siig10x_fn' drivers/char/char.o: In function

<    1   2   3   4   5   6   7   8   9   >