| From | Subject | Date |
|---|---|---|
| Robert Hancock | Re: sata_nv - ADMA issues with 2.6.20
This isn't quite the same as that problem we were seeing, these are an
actual NCQ read/write that is timing out and not a cache flush command.
Nevertheless it wouldn't hurt for people having this problem to test out
the latest and greatest sata_nv patches. In particular there was one
that I resurrected from the debugging of that problem, "sata_nv: wait
for response on entering/leaving ADMA mode" which though it didn't end
up fixing it, seemed like a good thing to be doing anyway, and which ...
| Feb 11, 4:04 pm 2007 |
| ris | Re: High CPU usage with
Sorry for late.
Dmesg get no errors /informations
vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 303444 53224 360132 0 0 276 157 627 814 5 2 89 4
0 0 0 302956 53228 360332 0 0 196 0 1193 1686 2 2 95 1
0 0 0 303204 53228 360332 0 0 0 0 1175 1544 2 1 97 0
1 0 0 234656 53240 428880 0 0 ...
| Feb 11, 3:31 pm 2007 |
| Iratxo Pichel Ortiz | Multicast "ipmr.c" misunderstood / bug / new feature.
Hi !
I have been working with multicast routing to build a multicast router.
The target system uses static multicast routers and we have used
smcroute user-space daemon. After some issues with that sofware I have
built a some kind of custom daemon.
This router has support for hotpluggable interfaces like wifi and usb ones.
I think that there is something I don't understand or is not supported
in the net/ipv4/ipmr.c Kernel router. This routing system registers the
function ...
| Feb 11, 2:59 pm 2007 |
| Neil Brown | Re: md: md6_raid5 crash 2.6.20
System hangs suggest a problem with the drive controller. However
this "kernel BUG" is something newly introduced in 2.6.20 which should
be fixed in 2.6.20.1. Patch is below.
If you still get hangs with this patch installed, then please report
detail, and probably copy to linux-ide@vger.kernel.org.
NeilBrown
Fix various bugs with aligned reads in RAID5.
It is possible for raid5 to be sent a bio that is too big
for an underlying device. So if it is a READ that we
pass stright down ...
| Feb 11, 3:02 pm 2007 |
| Neil Schemenauer | Re: sata_nv - ADMA issues with 2.6.20
I'm setting similar errors on my machine (AMD64 CPU, MSI board with
NForce chipset). Linux 2.6.19.2 seems to be okay.
Neil
-
| Feb 11, 12:55 pm 2007 |
| Björn | Re: sata_nv - ADMA issues with 2.6.20
If the look like this, you might want to try a few patches that are in
-mm.
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
ata1.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x0 data 0 out
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1: soft resetting port
We thought that Robert had fixed these with some changes that went into
-rc6. But they reappeared a few days later, the -mm patches seem to have
finally cured it.
The original ...
| Feb 11, 3:23 pm 2007 |
| Eric W. Biederman | Re: What are the real ioapic rte programming constraints?
I am assuming you mean interrupts disabled at the ioapic. If that
is true mostly I agree with your assertion.
If you look above the mask is where I disable that interrupt source on
the ioapic. I then send an ipi to all of the other possible cpus and
read the local apic to ensure that the window is over in which I need
to handle interrupts at the old destination.
If I don't know when the window ends I can never dismantle the data
structures for receiving the irq at the old destination. ...
| Feb 11, 2:36 pm 2007 |
| Oliver Neukum | Re: Problem with USB ports and a dongle
This report is valid only if ndiswrapper was never loaded from booting
to the error. Please post the report to linux-usb-devel@lists.sourceforge.net
and recompile your kernel with CONFIG_USB_DEBUG.
HTH
Oliver
-
| Feb 11, 3:51 pm 2007 |
| Thibaud Hulin | Problem with USB ports and a dongle
Hi !
I'm trying to use a dongle for ndiswrapper, but it fails because a
problem of usb. Note that the problem appear when ndiswrapper is fully
uninstalled (and others packages as ndiswrapper-utils, with modprobe -r,
etc...).
So ; when I get on the first time the dongle, a lsusb give :
Bus 001 Device 002: ID 0457:0163 Silicon Integrated Systems Corps.
Bus 001 Device 001: ID 0000:0000
But, a few seconds later, the dongle is not recognize with sometimes an
error -71.
Then, lsusb forget ...
| Feb 11, 2:17 pm 2007 |
| Oleg Nesterov | [PATCH 4/3] make cancel_rearming_delayed_work() work on ...
cancel_rearming_delayed_workqueue(wq, dwork) doesn't need the first parameter.
We don't hang on un-queued dwork any longer, and work->data doesn't change its
type. This means we can always figure out "wq" from dwork when it is needed.
Remove this parameter, and rename the function to cancel_rearming_delayed_work().
Re-create an inline "obsolete" cancel_rearming_delayed_workqueue(wq) which just
calls cancel_rearming_delayed_work().
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
...
| Feb 11, 2:15 pm 2007 |
| Davide Libenzi | [patch] add epoll compat code to kernel/compat.c ...
Add epoll compat_ code to kernel/compat.c. IA64 and ARM-OABI are currently
using their own version of epoll compat_ code and they could probably wire
to the new common code. Patch over 2.6.20.
Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
- Davide
diff -Nru linux-2.6.20/fs/eventpoll.c linux-2.6.20.mod/fs/eventpoll.c
--- linux-2.6.20/fs/eventpoll.c 2007-02-04 10:44:54.000000000 -0800
+++ linux-2.6.20.mod/fs/eventpoll.c 2007-02-11 12:03:50.000000000 -0800
@@ -544,8 ...
| Feb 11, 1:15 pm 2007 |
| Heiko Carstens | Re: [patch] add epoll compat code to kernel/compat.c ...
With
struct epoll_event {
__u32 events;
__u64 data;
};
this won't work on s390. offsetof(struct epoll_event, data) is 8 on both
31 bit and 64 bit. So it will do the conversion and corrupt all the data.
Actually we would only need the compat conversion for the sigset_t stuff.
But then again I thought most 32 bit architectures would add a 4 byte
pad between events and data, no?
Maybe we need some arch dependent struct compat_epoll_event and have
something like
#define ...
| Feb 11, 2:47 pm 2007 |
| Davide Libenzi | Re: [patch] add epoll compat code to kernel/compat.c ...
Yup, that's broken not only on s390, but on every arch with alignof(u64) == 8
in 32 bits mode.
The assumption was that for cases like the above, you simply wouldn't wire
the compat_ version. That is true for epoll_wait and epoll_ctl, where the
only need for compat was the "struct epoll_event". But that's not true for
epoll_pwait, since this one needs to be wired because of the sigset_t.
On top of sigset_t, epoll_pwait may need "struct epoll_event" translation.
Now, that *really* sux because ...
| Feb 11, 4:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 04/05] Linux Kernel Markers : i386 optimization
Linux Kernel Markers : i386 optimization
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- /dev/null
+++ b/include/asm-i386/marker.h
@@ -0,0 +1,47 @@
+/*
+ * marker.h
+ *
+ * Code markup for dynamic and static tracing. i386 architecture optimisations.
+ *
+ * (C) Copyright 2006 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
+ *
+ * This file is released under the GPLv2.
+ * See the file COPYING for more details.
+ */
+
+
+#ifdef CONFIG_MARKERS
+#define ...
| Feb 11, 1:03 pm 2007 |
| Mathieu Desnoyers | [PATCH 03/05] Linux Kernel Markers : powerpc optimization
Linux Kernel Markers : powerpc optimization
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- /dev/null
+++ b/include/asm-powerpc/marker.h
@@ -0,0 +1,49 @@
+/*
+ * marker.h
+ *
+ * Code markup for dynamic and static tracing. PowerPC architecture
+ * optimisations.
+ *
+ * (C) Copyright 2006 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
+ *
+ * This file is released under the GPLv2.
+ * See the file COPYING for more details.
+ */
+
+#include ...
| Feb 11, 1:03 pm 2007 |
| Mathieu Desnoyers | [PATCH 01/05] Linux Kernel Markers : Kconfig menus
Linux Kernel Markers : Kconfig menus
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- /dev/null
+++ b/kernel/Kconfig.marker
@@ -0,0 +1,17 @@
+# Code markers configuration
+
+config MARKERS
+ bool "Activate markers"
+ select MODULES
+ default n
+ help
+ Place an empty function call at each marker site. Can be
+ dynamically changed for a probe function.
+
+config MARKERS_ENABLE_OPTIMIZATION
+ bool "Enable marker optimization"
+ depends on MARKERS
+ default ...
| Feb 11, 1:03 pm 2007 |
| Mathieu Desnoyers | [PATCH 00/05] Linux Kernel Markers - kernel 2.6.20
Linux Kernel Markers - kernel 2.6.20
Hi,
You will find, in the following posts, the latest revision of the Linux Kernel
Markers. Due to the need some tracing projects (LTTng, SystemTAP) has of this
kind of mechanism, it could be nice to consider it for mainstream inclusion.
Recently added : completed correct support for Intel XMC-safe code modification
(erratum 49 of the Pentium III). I am not using the kprobe infrastructure
because it forbids instrumentation of too much core kernel ...
| Feb 11, 1:03 pm 2007 |
| Mathieu Desnoyers | [PATCH 02/05] Linux Kernel Markers, architecture indepen ...
Linux Kernel Markers, architecture independant code.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -121,6 +121,19 @@
__ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
*(__ksymtab_strings) \
} \
+ /* Kernel markers : pointers */ \
+ .markers : AT(ADDR(.markers) - LOAD_OFFSET) { \
+ VMLINUX_SYMBOL(__start___markers) = ...
| Feb 11, 1:03 pm 2007 |
| Mathieu Desnoyers | [PATCH 05/05] Linux Kernel Markers, non optimized archit ...
Linux Kernel Markers, non optimized architectures
This patch also includes marker code for non optimized architectures.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- /dev/null
+++ b/include/asm-arm/marker.h
@@ -0,0 +1,13 @@
+/*
+ * marker.h
+ *
+ * Code markup for dynamic and static tracing. Architecture specific
+ * optimisations.
+ *
+ * No optimisation implemented.
+ *
+ * This file is released under the GPLv2.
+ * See the file COPYING for more details.
+ ...
| Feb 11, 1:03 pm 2007 |
| David Miller | Re: [PATCH] keep track of network interface renaming
From: Robert Hancock <hancockr@shaw.ca>
Perhaps you have a point, I'll think about this some more.
But on the other hand note that kernel log messages can scroll away
and get lost, so you cannot really rely upon them for gathering
information which is necessary for properly detecting devices
in userspace or anything like that.
-
| Feb 11, 2:41 pm 2007 |
| Robert Hancock | Re: [PATCH] keep track of network interface renaming
Unfortunately that's not very practical if, as in this case, the
renaming is being done from an initramfs. Hiding this information as we
I think the minimal extra output from this is well worth it. If we care
so much about limiting dmesg output, how about getting rid of all those
hundreds of "PM: Adding info for" messages in recent kernels..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
-
| Feb 11, 12:20 pm 2007 |
| Mathieu Desnoyers | [PATCH 04/10] local_t : ia64 extension
local_t : ia64 extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-ia64/local.h
+++ b/include/asm-ia64/local.h
@@ -1,50 +1 @@
-#ifndef _ASM_IA64_LOCAL_H
-#define _ASM_IA64_LOCAL_H
-
-/*
- * Copyright (C) 2003 Hewlett-Packard Co
- * David Mosberger-Tang <davidm@hpl.hp.com>
- */
-
-#include <linux/percpu.h>
-
-typedef struct {
- atomic64_t val;
-} local_t;
-
-#define LOCAL_INIT(i) ((local_t) { { (i) } })
-#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 00/10] local_t : adding and standardising local a ...
local_t : adding and standardising local atomic primitives
These patches extend and standardise local_t operations on each architectures,
allowing a rich set of atomic operations to be done on per-cpu data with
minimal performance impact. On architectures where there seems to be no
difference between the SMP and UP operation (same memory barriers, same
LOCKing), local.h simply includes asm-generic/local.h, which removes duplicated
code from the current kernel tree.
These patches apply on ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 06/10] local_t : parisc cleanup
local_t : parisc cleanup
parisc architecture local_t cleanup : use asm-generic/local.h.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-parisc/local.h
+++ b/include/asm-parisc/local.h
@@ -1,40 +1 @@
-#ifndef _ARCH_PARISC_LOCAL_H
-#define _ARCH_PARISC_LOCAL_H
-
-#include <linux/percpu.h>
-#include <asm/atomic.h>
-
-typedef atomic_long_t local_t;
-
-#define LOCAL_INIT(i) ATOMIC_LONG_INIT(i)
-#define local_read(v) atomic_long_read(v)
-#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 10/10] local_t : x86_64 extension
local_t : x86_64 extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-x86_64/local.h
+++ b/include/asm-x86_64/local.h
@@ -2,49 +2,183 @@
#define _ARCH_X8664_LOCAL_H
#include <linux/percpu.h>
+#include <asm/atomic.h>
typedef struct
{
- volatile long counter;
+ atomic_long_t a;
} local_t;
-#define LOCAL_INIT(i) { (i) }
+#define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) }
-#define local_read(v) ((v)->counter)
-#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 02/10] local_t : alpha extension
local_t : alpha extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-alpha/local.h
+++ b/include/asm-alpha/local.h
@@ -4,37 +4,115 @@
#include <linux/percpu.h>
#include <asm/atomic.h>
-typedef atomic64_t local_t;
+typedef struct
+{
+ atomic_long_t a;
+} local_t;
-#define LOCAL_INIT(i) ATOMIC64_INIT(i)
-#define local_read(v) atomic64_read(v)
-#define local_set(v,i) atomic64_set(v,i)
+#define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) }
+#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 07/10] local_t : powerpc extension
local_t : powerpc extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-powerpc/local.h
+++ b/include/asm-powerpc/local.h
@@ -1 +1,342 @@
-#include <asm-generic/local.h>
+#ifndef _ARCH_POWERPC_LOCAL_H
+#define _ARCH_POWERPC_LOCAL_H
+
+#include <linux/percpu.h>
+#include <asm/atomic.h>
+
+typedef struct
+{
+ atomic_long_t a;
+} local_t;
+
+#define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) }
+
+#define local_read(l) atomic_long_read(&(l)->a)
+#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 08/10] local_t : s390 cleanup
local_t : s390 cleanup
s390 architecture local_t cleanup : use asm-generic/local.h.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-s390/local.h
+++ b/include/asm-s390/local.h
@@ -1,58 +1 @@
-#ifndef _ASM_LOCAL_H
-#define _ASM_LOCAL_H
-
-#include <linux/percpu.h>
-#include <asm/atomic.h>
-
-#ifndef __s390x__
-
-typedef atomic_t local_t;
-
-#define LOCAL_INIT(i) ATOMIC_INIT(i)
-#define local_read(v) atomic_read(v)
-#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 05/10] local_t : mips extension
local_t : mips extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-mips/local.h
+++ b/include/asm-mips/local.h
@@ -1,60 +1,524 @@
-#ifndef _ASM_LOCAL_H
-#define _ASM_LOCAL_H
+#ifndef _ARCH_MIPS_LOCAL_H
+#define _ARCH_MIPS_LOCAL_H
#include <linux/percpu.h>
#include <asm/atomic.h>
+#include <asm/war.h>
-#ifdef CONFIG_32BIT
+typedef struct
+{
+ atomic_long_t a;
+} local_t;
-typedef atomic_t local_t;
+#define LOCAL_INIT(i) { ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 01/10] local_t : architecture independant extension
local_t : architecture independant extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-generic/local.h
+++ b/include/asm-generic/local.h
@@ -33,6 +33,19 @@ typedef struct
#define local_add(i,l) atomic_long_add((i),(&(l)->a))
#define local_sub(i,l) atomic_long_sub((i),(&(l)->a))
+#define local_sub_and_test(i, l) atomic_long_sub_and_test((i), (&(l)->a))
+#define local_dec_and_test(l) atomic_long_dec_and_test(&(l)->a)
+#define local_inc_and_test(l) ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 03/10] local_t : i386 extension
local_t : i386 extension
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-i386/local.h
+++ b/include/asm-i386/local.h
@@ -2,47 +2,198 @@
#define _ARCH_I386_LOCAL_H
#include <linux/percpu.h>
+#include <asm/system.h>
+#include <asm/atomic.h>
typedef struct
{
- volatile long counter;
+ atomic_long_t a;
} local_t;
-#define LOCAL_INIT(i) { (i) }
+#define LOCAL_INIT(i) { ATOMIC_LONG_INIT(i) }
-#define local_read(v) ((v)->counter)
-#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 09/10] local_t : sparc64 cleanup
local_t : sparc64 cleanup
sparc64 local_t cleanup : simply use asm-generic/local.h.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-sparc64/local.h
+++ b/include/asm-sparc64/local.h
@@ -1,40 +1 @@
-#ifndef _ARCH_SPARC64_LOCAL_H
-#define _ARCH_SPARC64_LOCAL_H
-
-#include <linux/percpu.h>
-#include <asm/atomic.h>
-
-typedef atomic64_t local_t;
-
-#define LOCAL_INIT(i) ATOMIC64_INIT(i)
-#define local_read(v) atomic64_read(v)
-#define ...
| Feb 11, 12:18 pm 2007 |
| Mathieu Desnoyers | [PATCH 09/10] atomic.h : Add atomic64_xchg to s390
atomic.h : Add atomic64_xchg to s390
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-s390/atomic.h
+++ b/include/asm-s390/atomic.h
@@ -215,6 +215,8 @@ static __inline__ void atomic64_set_mask(unsigned long mask, atomic64_t * v)
__CSG_LOOP(v, mask, "ogr");
}
+#define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
+
static __inline__ long long atomic64_cmpxchg(atomic64_t *v,
long long old, long long new)
{
-
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 01/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to alpha
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-alpha/atomic.h
+++ b/include/asm-alpha/atomic.h
@@ -175,19 +175,62 @@ static __inline__ long atomic64_sub_return(long i, atomic64_t * v)
return result;
}
-#define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
+#define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
+#define atomic64_xchg(v, new) ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 04/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to ia64
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-ia64/atomic.h
+++ b/include/asm-ia64/atomic.h
@@ -88,12 +88,16 @@ ia64_atomic64_sub (__s64 i, atomic64_t *v)
return new;
}
-#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old, new))
+#define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
+#define ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 10/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to x86_64
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-x86_64/atomic.h
+++ b/include/asm-x86_64/atomic.h
@@ -375,8 +375,8 @@ static __inline__ long atomic64_add_return(long i, atomic64_t *v)
long __i = i;
__asm__ __volatile__(
LOCK_PREFIX "xaddq %0, %1;"
- :"=r"(i)
- :"m"(v->counter), "0"(i));
+ :"+r" (i), "+m" (v->counter)
+ : : "memory");
return i + __i;
}
@@ -388,7 +388,10 @@ ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 02/10] atomic.h : Complete atomic_long operations ...
atomic.h : Complete atomic_long operations in asm-generic
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-generic/atomic.h
+++ b/include/asm-generic/atomic.h
@@ -9,6 +9,7 @@
*/
#include <asm/types.h>
+#include <asm/system.h>
/*
* Suppport for atomic_long_t
@@ -66,6 +67,72 @@ static inline void atomic_long_sub(long i, atomic_long_t *l)
atomic64_sub(i, v);
}
+static inline int atomic_long_sub_and_test(long i, atomic_long_t ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 06/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to parisc
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-parisc/atomic.h
+++ b/include/asm-parisc/atomic.h
@@ -6,7 +6,6 @@
#define _ASM_PARISC_ATOMIC_H_
#include <linux/types.h>
-#include <asm/system.h>
/*
* Atomic operations that C can't guarantee us. Useful for
@@ -163,7 +162,7 @@ static __inline__ int atomic_read(const atomic_t *v)
}
/* exported interface */
-#define ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 08/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to sparc64
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-sparc64/atomic.h
+++ b/include/asm-sparc64/atomic.h
@@ -70,12 +70,12 @@ extern int atomic64_sub_ret(int, atomic64_t *);
#define atomic_add_negative(i, v) (atomic_add_ret(i, v) < 0)
#define atomic64_add_negative(i, v) (atomic64_add_ret(i, v) < 0)
-#define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
+#define ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 03/10] atomic.h : i386 type safety fix
atomic.h : i386 type safety fix
This patch removes an explicit cast to an integer type for the result returned
by cmpxchg. It is not per se a problem on the i386 architecture, because
sizeof(int) == sizeof(long), but whenever this code is cut'n'pasted to a
different architecture (which happened at least for x86_64), it would simply
accept passing an atomic64_t value as parameter to cmpxchg, xchg and
add_unless, having 64 bits inputs casted to 32 bits.
Signed-off-by: Mathieu Desnoyers ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 05/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to mips
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-mips/atomic.h
+++ b/include/asm-mips/atomic.h
@@ -291,8 +291,8 @@ static __inline__ int atomic_sub_if_positive(int i, atomic_t * v)
return result;
}
-#define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
-#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
+#define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), ...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 07/10] atomic.h : Add atomic64 cmpxchg, xchg and ...
atomic.h : Add atomic64 cmpxchg, xchg and add_unless to powerpc
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
--- a/include/asm-powerpc/atomic.h
+++ b/include/asm-powerpc/atomic.h
@@ -165,7 +165,7 @@ static __inline__ int atomic_dec_return(atomic_t *v)
return t;
}
-#define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
+#define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
...
| Feb 11, 12:17 pm 2007 |
| Mathieu Desnoyers | [PATCH 00/10] atomic.h : standardizing atomic primitives
atomic.h : standardizing atomic primitives
It mainly adds support for missing 64 bits cmpxchg and 64 bits atomic add
unless. Therefore, principally 64 bits architectures are targeted by these
patches. It also adds the complete list of atomic operations on the atomic_long
type.
These patches compile fine against :
arm
i686
ia64
m68k
mips
mipsel
x86_64
ppc 405
powerpc 970
s390
sparc
sparc64
I haven't built cross-compilers for other architectures yet.
These patches apply on ...
| Feb 11, 12:17 pm 2007 |
| Jeff Morrow | [patch] bugfixes and new hardware support for arcnet driver
The modifications and bug fixes noted below were done by Realtime
Control Works and Contemporary Control Systems, Inc, Jan 2005. They
were incorporated into the 2.6 kernel by Jeff Morrow of Sierra
Analytics, Feb 2007. <jmorrow@massspec.com>
The changes have been tested on a Contemporary Controls PCI20U-4000.
Summary of changes:
Arc-rawmode.c:
rx():
- Fixed error in received packet lengths; 256 byte packets were
being received as 257 bytes packets.
...
| Feb 11, 11:51 am 2007 |
| Henrique de Moraes H ... | Re: libsata doesn't like bus without master
I have seen at least three *thousand* boxes configured that way in the last
five years. From at least a hundred different vendors (almost all of them
small "system assembler" vendors that mix generic and customer-specified
parts).
For some stupid reason, it appears that the norm around here (Brazil) is
that "no brand" boxes get assembled with ATAPI devices in slave mode.
Usually they attach it to the second channel using an 40-wire cable, even if
there is nothing using the first ...
| Feb 11, 12:58 pm 2007 |
| Patrick Ale | Re: libsata doesn't like bus without master
Yes, this is actually one of the reasons i mentioned sometimes having
only a slave drive can be a "legal" way to connect drives. I've lived
in Curitiba and Rio for a while (familiar cities to you I guess) and
sometimes we just had no choice to yank the master drive out of its
bay and keep running with what we had, cause money wasnt exactly
growing in trees where I used to work.
Next to that, we had the so called "paraguay" quality assembled
hardware, which basicly means someone, somewhere put ...
| Feb 11, 1:09 pm 2007 |
| Robert Hancock | Re: libsata doesn't like bus without master
Then in that case you should set the remaining drive as master. That's
just the way PATA is. A lot of BIOSes won't even detect a drive that's
Yeah, that's a better point. It's not really complaining, but we could
probably have a better way of suppressing that message. I think it's
largely there so that we can debug issues with drives not being detected
when they should.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: ...
| Feb 11, 11:34 am 2007 |
| Patrick Ale | Re: libsata doesn't like bus without master
Yea, I guess you're right. For me it isnt a problem, This error
message will disappear for me anyway, since I am going to re-add the
drive now, like I said yesterday, I am re-adding stuff one by one, to
isolate problems.
I can just imagine that switching a jumper might not be as easy for
everybody, especialy when they bought special front-loading harddisk
bays for their disks and all, for the very reason of not having to
It's not like it is causing any problems, nothing hangs or slows ...
| Feb 11, 11:41 am 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
Ah. Perhaps you should make it show reboot when you cat it?
Regards,
Nigel
-
| Feb 11, 4:55 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
It does?! I just did cat /sys/power/disk and it only says platform. How
do you make swsusp reboot instead of powering down?
Regards,
Nigel
-
| Feb 11, 4:47 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
echo reboot > /sys/power/disk && echo disk > /sys/power/state
Greetings,
Rafael
-
| Feb 11, 4:50 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
I'm not sure. I don't use encryption myself, so I don't understand all
the fine details. I just know that there are people out there using
encryption, loop-aes, dmsetup and all that sort of stuff. I don't have
to worry about it because they use an initrd/ramfs to do whatever they
need to do to provide access to the device on which the image is found,
then
echo /dev/whatever_funny_device > /sys/power/suspend2/resume2
Neither am I! Presumably you'd have a lot more than emacs in ...
| Feb 11, 4:45 pm 2007 |
| Willy Tarreau | Re: NAK new drivers without proper power management?
Hmm sorry, but we don't have the same usages of notebooks. For no reason
would I keep documents open, for two reasons :
- when I shutdown my notebook, it is to move from one customer to
home/company/another customer. There's no related work anyway, the
network will have changed and I'll have to switch nearly all of my
apps anyway. So using suspend just to save one reboot is not worth
it (for me) IMHO.
- I would certainly not keep open documents that are on crypted FS
...
| Feb 11, 3:46 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
The network configuration utilities can help there. In addition,
Suspend2 preserves the commandline you used to boot with
(/sys/power/suspend2/resume_commandline), so you can use a combination
of slightly varying grub entries (I have one for not starting ath0 and
one for starting it) and scripts to do different things in different
environments. The resume_commandline is writable, so can be cleared
People are using Suspend2 with encryption today (I'm not sure about
uswsusp). Some of ...
| Feb 11, 4:18 pm 2007 |
| Robert Hancock | Re: NAK new drivers without proper power management?
I think your experience is rather different than that of Joe Average
User who doesn't frequent kernel lists, and also I think you'll find
that for a lot of Linux laptop users that don't use supend, the reason
is that it doesn't work reliably, quite often due to driver issues.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
-
| Feb 11, 11:31 am 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
I'm using M$ hibernation and Suspend2 to dual boot on our desktop (dtv
card that Linux doesn't support well yet), and I know other Suspend2
users doing the same. It's made earier by the fact that Suspend2 lets
you reboot instead of powering down.
As to comparing the speed with the time to boot, your estimates are way
out. Both will of course vary with the harddrive and cpu speeds and
compression qualities of the image, but with Suspend2, I'm seeing speeds
more in the range of ...
| Feb 11, 3:26 pm 2007 |
| Willy Tarreau | Re: NAK new drivers without proper power management?
I would believe it if I knew people using suspend/resume on the other OS.
But that's not the case either. Also, it happens that with today's RAM
sizes, suspend-to-disk then resume can be several times slower than a
clean fresh boot. When you have 1 GB to write at 20 MB/s, it takes 50
seconds to shut down, and as much to restart. Compare this to 5-10
seconds for a shutdown and 30-50 seconds for a cold boot, and it might
give you another clue why there are people not interested in such ...
| Feb 11, 2:52 pm 2007 |
| Alan | Re: NAK new drivers without proper power management?
You use the encryption patches for suspend. And even if you turn your
laptop off and leave it somewhere for a bit I can turn it on install a
trojan and turn it off again.
Suspend/Resume is supposed to work, many people find it useful. One non
suspend friendly driver makes every suspend aware driver on that
system useless so we really should be tight about suspend/resume.
Alan
-
| Feb 11, 4:23 pm 2007 |
| Willy Tarreau | Re: NAK new drivers without proper power management?
On Mon, Feb 12, 2007 at 10:18:42AM +1100, Nigel Cunningham wrote:
OK, I see there are features to make life easier when I decide to use
suspend. But it looks like that using suspend is the goal and dealing
with the constraints is a lot of work and I'm still far from being
Unless I'm mistaken, I have to type the passphrase twice then :
- once at suspend
- once at resume
I'm not much convinced by the advantage of reading 500 MB on disk to have
You're certainly right. I really think ...
| Feb 11, 4:38 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
Well, I don't know why you're saying it's a special capability of suspend2.
Even the "old" swsusp has been able to do this since I can remember. ;-)
Greetings,
Rafael
-
| Feb 11, 4:41 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
I use the suspend to disk on a regular basis, because it takes at least 3x more
Please note we're talking about the suspend to RAM here too and, arguably, the
support in drivers is more important for the suspend to RAM.
Greetings,
Rafael
-
| Feb 11, 4:38 pm 2007 |
| Tilman Schmidt | Re: [PATCH] keep track of network interface renaming
I disagree. This message can be very helpful. The problem of network
interfaces being renamed is a real and frequent one. A single message
per interface is tolerable even if you don't actually need it. My
kernel log currently produces well over 400 messages per boot, so if
you want to reduce kernel log clutter, there are lots of other
candidates.
--=20
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten ...
| Feb 11, 3:35 pm 2007 |
| David Miller | Re: [PATCH] keep track of network interface renaming
From: Jason Lunz <lunz@falooley.org>
You can listen on a netlink socket for these events if you
want to see when they occur.
There is no need for this log message, it is superfluous.
-
| Feb 11, 11:28 am 2007 |
| Al Viro | [PATCH] add missing io...._rep() on sparc32
same as on sparc64
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
include/asm-sparc/io.h | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/include/asm-sparc/io.h b/include/asm-sparc/io.h
index cab0b85..c23e74a 100644
--- a/include/asm-sparc/io.h
+++ b/include/asm-sparc/io.h
@@ -256,6 +256,35 @@ extern void iounmap(volatile void __iomem *addr);
#define iowrite16(val,X) writew(val,X)
#define iowrite32(val,X) writel(val,X)
...
| Feb 11, 11:20 am 2007 |
| Patrick Ale | Re: libsata doesn't like bus without master
It is very legal when one of your harddisks blows out and you take it
out temporarely and have no money for a replacement IMO. But then
again, this is probably an abnormality.
But still, it even complains when no drive is attached to a controller
at all. Since when you buy an add-on PCI card you get 2 connectors
even when you want to add one harddisk how does one deal with that?
-
| Feb 11, 10:52 am 2007 |
| Robert Hancock | Re: libsata doesn't like bus without master
Having a single drive on the channel configured as slave is not really a
legal configuration. (I believe the ATA standards say that it's
something that a host controller/driver/OS is allowed to support, but it
is not required to.) A single drive should always be set to master (and
connected to the end of the cable and not the middle, by the way).
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: ...
| Feb 11, 10:39 am 2007 |
| Aneesh Kumar K.V | [PATCH] Update documentation
From: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>
Signed-off-by: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>
---
fs/ext2/balloc.c | 2 +-
fs/ext3/balloc.c | 2 +-
fs/ext4/balloc.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
index b1981d0..baf71dd 100644
--- a/fs/ext2/balloc.c
+++ b/fs/ext2/balloc.c
@@ -29,7 +29,7 @@
* The file system contains group descriptors which are located after the
* super block. Each ...
| Feb 11, 10:04 am 2007 |
| Pierre Ossman | [GIT PULL] MMC updates
Linus, please pull from
git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc.git for-linus
to receive the following updates:
drivers/mmc/sdhci.c | 40 ++++++++++++----------------------------
drivers/mmc/tifm_sd.c | 11 ++++-------
drivers/mmc/wbsd.c | 6 +-----
3 files changed, 17 insertions(+), 40 deletions(-)
Alex Dubov (1):
tifm_sd: treat "status error" as normal command completion
Pierre Ossman (4):
mmc: wbsd: Remove driver version
...
| Feb 11, 8:33 am 2007 |
| David Miller | Re: [PATCH] keep track of network interface renaming
From: Olaf Hering <olaf@aepfle.de>
This is kernel log clutter.
You can ask the kernel for the list of interfaces, and
use even ethtool to ask what driver each interface is
associated with.
The patch wasn't applied because it really is not necessary.
-
| Feb 11, 10:55 am 2007 |
| Paul Rolland | RE: 2.6.20/2.6.20-rc7 : ethX renumbered
Found this :
# This file assigns persistent names to network interfaces.
# See iftab(5) for syntax.
eth0 mac 00:11:d8:a9:c0:c2 arp 1
ra0 mac 00:11:d8:b9:27:7e arp 1
As these are no MAC on my machine, I suspect this is the reason for the
renaming.
I'm trying Olaf's patch to check the message is printed, and next boot
is without this crap in this /etc/iftab file.
Regards,
Paul
-
| Feb 11, 6:14 am 2007 |
| Paul Rolland | RE: [PATCH] keep track of network interface renaming
Excellent Olaf !
Seconded, you have my vote for this !
Regards,
Paul
-
| Feb 11, 6:29 am 2007 |
| Olaf Hering | [PATCH] keep track of network interface renaming
Unfortunately, this patch was not applied to mainline last year.
Maybe this year.
Keep track about which network interface names were renamed after the
network device driver printed its banner.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
--- linux-2.6.19.orig/net/core/dev.c
+++ linux-2.6.19/net/core/dev.c
@@ -749,7 +749,11 @@ int dev_change_name(struct net_device *d
else if (__dev_get_by_name(newname))
return -EEXIST;
else
+ {
+ if (strncmp(newname, dev->name, ...
| Feb 11, 5:54 am 2007 |
| Paul Rolland | 2.6.20/2.6.20-rc7 : ethX renumbered
Hello,
I'm facing something quite strange... When booting one of these kernels
(it's a new machine, I've not been running older kernels), the boot message
says :
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 19 (level, low) -> IRQ 19
sky2 v1.10 addr 0xff8fc000 irq 19 Yukon-EC (0xb6) rev 2
sky2 eth0: addr 00:18:f3:e0:5d:d4
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16
sky2 v1.10 addr 0xff7fc000 irq 16 Yukon-EC (0xb6) rev 2
sky2 eth1: addr 00:18:f3:e0:36:fd
So, I'm ...
| Feb 11, 4:28 am 2007 |
| Benoit Boissinot | Re: 2.6.20/2.6.20-rc7 : ethX renumbered
usually distro enable persistent interface naming with udev, check
/etc/iftab and see if you have something like
/etc/udev/something-iftab.rules
regards,
Benoit
-
| Feb 11, 6:04 am 2007 |
| Paul Rolland | RE: 2.6.20/2.6.20-rc7 : ethX renumbered
Thanks Benoit, that was it ! Removing the entry in the iftab file
stopped the renaming of the interface !
Regards,
Paul
-
| Feb 11, 6:35 am 2007 |
| Patrick Ale | libsata doesn't like bus without master
Hi,
Something unrelated to the tests I am doing.
I found out that the libsata driver doesn't really cope or likes the
idea that you might have a controller without a master drive
configured.
In this case on ATA2 I have a CDROM drive, connected as slave.
ATA: abnormal status 0x7F on port 0x177
ATA: abnormal status 0x7F on port 0x177
ata2.01: ATAPI, max UDMA/66
ata2.01: configured for UDMA/66
And in another case, I have ATA5 with no drives connected at all:
pata_pdc2027x 0000:00:0f.0: ...
| Feb 11, 3:27 am 2007 |
| Németh Márton | [PATCH] input: extend EV_LED
Extend EV_LED handling code so that it can handle not
only two states (on/off) but also others. For example
a LED can blink using hardware acceleration. The code
changed so that it is similar to the code at EV_SND.
Signed-off-by: Márton Németh <nm127@freemail.hu>
---
diff -uprN linux-2.6.20.orig/drivers/input/input.c
linux/drivers/input/input.c
--- linux-2.6.20.orig/drivers/input/input.c 2007-02-04
19:44:54.000000000 +0100
+++ linux/drivers/input/input.c 2007-02-10 15:20:28.000000000 ...
| Feb 11, 3:02 am 2007 |
| Satapathy, Soumendu ... | Data Caching Service
-----Original Message-----
From: Andrew Morton [mailto:akpm@osdl.org]
Sent: Friday, January 26, 2007 2:24 PM
To: Satapathy, Soumendu Sekhar
Subject: Re: Data Caching Service
On Fri, 26 Jan 2007 14:05:04 +0530
hm. But applications can utilise a common cache via shared libraries,
and shared memory
without involving the kernel.
-
| Feb 11, 2:23 am 2007 |
| Satapathy, Soumendu ... | Data Caching Service
-----Original Message-----
From: Satapathy, Soumendu Sekhar
Sent: Friday, January 26, 2007 4:10 PM
To: 'Andrew Morton'
Subject: RE: Data Caching Service
Yes I agree with you.
Even if we could do this without the kernel being involved, the
applications have to be aware of these details. Could it have been done
without the application's knowledge ?
The Kernel provides an environment/platform for the applications to run
and hence ideally as far as possible, performance issues ...
| Feb 11, 2:20 am 2007 |
| Alexey Dobriyan | [PATCH] pcmcia: some class_device fallout
As found on some arm defconfigs.
I only looked at how original patch changes things and other patches fix
compilation. ;-)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/pcmcia/at91_cf.c | 2 +-
drivers/pcmcia/soc_common.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
--- a/drivers/pcmcia/soc_common.c
+++ b/drivers/pcmcia/soc_common.c
@@ -478,7 +478,7 @@ dump_bits(char **p, const char *prefix,
*
* Returns: the number of characters ...
| Feb 11, 1:16 am 2007 |
| Alexey Dobriyan | [PATCH] mwave: interesting flags savings
Flags from spin_lock_irqsave() are saved into global variable and
restored from it. My gut feeling this is very racy.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
drivers/char/mwave/3780i.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
--- a/drivers/char/mwave/3780i.c
+++ b/drivers/char/mwave/3780i.c
@@ -63,8 +63,6 @@ #include "mwavedd.h"
#include "3780i.h"
static DEFINE_SPINLOCK(dsp_lock);
-static unsigned long flags;
-
static void ...
| Feb 11, 1:13 am 2007 |
| Menny Hamburger | RE: Getting the nfs_fh of a specific file/dir from the kernel
We implement our own nfsd in user space - so the kernel nfsd (as well
as the lockd) are disabled.
We need the handle in order to associate a kernel file handle with our
own file id.
M.
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of J. Bruce Fields
Sent: Thursday, February 08, 2007 10:12 PM
To: Menny Hamburger
Cc: linux-kernel@vger.kernel.org
Subject: Re: Getting the nfs_fh of a specific file/dir from the ...
| Feb 11, 1:06 am 2007 |
| Marc Marais | md: md6_raid5 crash 2.6.20
Greetings,
I've been running md on my server for some time now and a few days ago one of
the (3) drives in the raid5 array starting giving read errors. The result was
usually system hangs and this was with kernel 2.6.17.13. I upgraded to the
latest production 2.6.20 kernel and experienced the same behaviour.
I've tried to recondition the drive with dd writes to force reallocation but
there are still read errors (appearing at other addresses) - anyway, the drive
is bad, the point is there is ...
| Feb 11, 12:27 am 2007 |
| Robert Hancock | Re: Still cant boot 2.6.20
Take the "quiet" option off the kernel command line (in /etc/grub.conf)
so you can actually see all the messages that are being output.
Presumably you haven't selected something that you need in order to
mount the root filesystem..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
-
| Feb 11, 12:23 am 2007 |
| Randy Dunlap | [PATCH] devres: kernel-doc and DocBook
From: Randy Dunlap <randy.dunlap@oracle.com>
Make devres.c ready for adding to DocBook.
Fix a few comment typos in drivers/pci/pci.c.
Add devres.c to DocBook.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/DocBook/kernel-api.tmpl | 4 ++++
drivers/base/devres.c | 32 ++++++++++++++++----------------
drivers/pci/pci.c | 2 +-
3 files changed, 21 insertions(+), 17 deletions(-)
--- ...
| Feb 10, 11:47 pm 2007 |
| Randy Dunlap | [PATCH] fix fatal kernel-doc error
From: Randy Dunlap <randy.dunlap@oracle.com>
Teach kernel-doc to handle functions that look like the new
pcim_iomap_table(). Fixes this fatal error in scripts/kernel-doc:
DOCPROC Documentation/DocBook/kernel-api.xml
Error(/tester/linsrc/linux-2.6.20-git6//drivers/pci/pci.c:1351): cannot understand prototype: 'void __iomem * const * pcim_iomap_table(struct pci_dev *pdev) '
make[1]: *** [Documentation/DocBook/kernel-api.xml] Error 1
make: *** [htmldocs] Error 2
Signed-off-by: Randy Dunlap ...
| Feb 10, 11:47 pm 2007 |
| Willy Tarreau | Re: Still cant boot 2.6.20
You are right, but development also needs feedback. Until the user notices
it is just a configuration error, it is perfectly possible that his problem
is caused by a recently introduced bug. You reply put the finger on the
error (missing CONFIG_BLK_DEV_INITRD). That's perfect. He would be off-topic
Regards,
Willy
-
| Feb 11, 1:37 am 2007 |
| Randy Dunlap | Re: Still cant boot 2.6.20
Please explain why not.
And please delete large parts of email that are not needed in replies
(like the .config).
Thanks.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
| Feb 11, 12:12 am 2007 |
| lkml | Re: Still cant boot 2.6.20
I was under the impression that lkml is for kernel development, not basic help
"Remember that this is a list for the discussion of kernel development."
Regards,
Vito Caputo
-
| Feb 11, 12:37 am 2007 |
| Randy Dunlap | Re: Still cant boot 2.6.20
We also value feedback and problem reports from testers.
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
| Feb 11, 10:16 am 2007 |
| clemens | Still cant boot 2.6.20
I have built a number of previous kernels, but am having problems with
2.6.20.
I initially tried just changing only the Processor type (so what I had done
would be easy to describe). Someone on this list was kind enough to tell
me that the SATA/PATA drivers were not on by default, and I got past
that problem.
As a second attempt (well 3rd or 4th) I have done a normal config, trying to
delete as many things as possible to speed up the compile time.
I have now got by the dreaded /dev/root ...
| Feb 10, 11:20 pm 2007 |
| lkml | Re: Still cant boot 2.6.20
I don't see CONFIG_BLK_DEV_INITRD=y
Regards,
Vito Caputo
BTW, this isnt the appropriate place for asking this type of question...
> CONFIG_SENSORS_IT8
| Feb 11, 12:02 am 2007 |
| James Bottomley | [GIT PATCH] SCSI updates for 2.6.20
This is the accumulated SCSI tree for 2.6.20. It is available at
master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git
The short changelog is:
Adrian Bunk (1):
aic79xx: make ahd_match_scb() static
Ahmed S. Darwish (1):
DAC960: kmalloc->kzalloc/Casting cleanups
Alexis Bruemmer (1):
aic94xx: fix typos and update verison number
Andrew Morton (1):
scsi_kmap_atomic_sg(): check that local irqs are disabled
Andrew Vasquez (12):
qla2xxx: ...
| Feb 10, 8:57 pm 2007 |
| Antoine Martin | reporting lost ticks
Doing as I am told, here we go:
This is 100% reproducible, ie: just doing a big rsync between 2 disks
and burning a DVD at the same time. Note: the system isn't very
responsive when this happens, most notably: audio seems to jump every
~1second.
Hardware is an ASUS K8N-DL with a pair of Opteron 270s, 4GB PC3200, SATA
disks, software raid.
time.c: Lost 6 timer tick(s)! rip __do_softirq+0x44/0xc0)
time.c: Lost 6 timer tick(s)! rip __do_softirq+0x44/0xc0)
time.c: Lost 6 timer tick(s)! ...
| Feb 10, 8:28 pm 2007 |
| Komuro | Re: [BUG] PATA_PCMCIA does not work
No. one card.
I am not sure why two devices are detected.
Actually, this card works properly with ide-cs driver.
but it displays some warning message.
hde: SunDisk SDP5-10, CFA DISK drive
hdf: SunDisk SDP5-10, CFA DISK drive
ide-probe: ignoring undecoded slave
ide2 at 0xd100-0xd107,0xd10e on irq 3
hde: max request size: 128KiB
hde: 20480 sectors (10 MB) w/1KiB Cache, CHS=320/2/32
hde:hde: set_geometry_intr: status=0x51 { DriveReady SeekComplete Error }
hde: set_geometry_intr: ...
| Feb 10, 7:40 pm 2007 |
| Haavard Skinnemoen | Re: [BUG] PATA_PCMCIA does not work
I've seen this as well, on an ancient 4MB card. I'm pretty sure the
-CSEL signal on my test board is incorrectly routed, so I thought it
was because of that. I'll try to strap it tomorrow and see if it
In my current pile of four CF cards, it looks like three of them are
buggy, although in slightly different ways. I'd be happy to test a few
patches.
Haavard
-
| Feb 11, 3:32 am 2007 |
| Alan | Re: [BUG] PATA_PCMCIA does not work
Yes it gets regularly tested and works reliably on my test harware. I am
This looks like you have both a CF adapter which does not properly handle
drive select, and a CFA card which incorrectly only allows a set
features/xfer mode to be done once.
The old IDE layer has a workaround to try and detect the former bug
(which sadly looks like it will be needed in libata), and through sheer
ignorance happens not to break in the second case.
Your card should work with the current -mm driver ...
| Feb 10, 6:56 pm 2007 |
| Richard Purdie | [PATCH RFC] backlight/fbcon: Add FB_EVENT_CONBLANK
I've added this patch to the backlight git tree since it allows the
removal of a powermac specific hack to chipsfb_blank and fixes the
backlight class to work with drivers with no hardware blanking. Can
anyone see any problems with this?
The backlight class wants notification whenever the console is blanked
but doesn't get this when hardware blanking fails and software blanking
is used. Changing FB_EVENT_BLANK to report both would be a behaviour
change which could confuse the console layer ...
| Feb 10, 5:39 pm 2007 |
| Richard Purdie | git backlight tree
As mentioned previously, I've setup a backlight git tree at:
http://git.o-hand.com/?p=linux-rpurdie-backlight;a=shortlog;h=for-mm
(git://git.o-hand.com/linux-rpurdie-backlight)
A patch of the combined changes to mainline is:
http://www.rpsys.net/openzaurus/patches/git_backlight-r1.patch.gz
I've included a git shortlog and diffstat output below.
A few months ago Dmitry highlighted some problems with the backlight
code and I've included patches to fix the issues raised. I've ...
| Feb 10, 5:33 pm 2007 |
| Len Brown | Re: git backlight tree
The changes under drivers/acpi/ and drivers/misc/ look fine to me.
Acked-by: Len Brown <len.brown@intel.com>
if you need that to send those bits upstream.
Note that there is a new sony-laptop driver under drivers/misc/ in my tree
that I expect to send upstream next week -- and it will need
the analogous updates.
thanks,
-
| Feb 10, 9:45 pm 2007 |
| Dave Jones | Re: - rdmsr_on_cpu-wrmsr_on_cpu.patch removed from -mm tree
On Thu, Feb 08, 2007 at 01:32:43PM -0800, akpm@linux-foundation.org wrote:
>
> The patch titled
> rdmsr_on_cpu, wrmsr_on_cpu
> has been removed from the -mm tree. Its filename was
> rdmsr_on_cpu-wrmsr_on_cpu.patch
>
> This patch was dropped because I've lost the plot on this thing
Alexey, send me the latest fixed up version of this, and I'll
queue this up to save Andrew trying to sort it out.
Dave
--
http://www.codemonkey.org.uk
-
| Feb 10, 5:11 pm 2007 |
| Andi Kleen | Re: - rdmsr_on_cpu-wrmsr_on_cpu.patch removed from -mm tree
I fixed it up to at least support x86-64 too
-Andi
-
| Feb 11, 3:38 am 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
Yeah. The problems of not having documentation + having to reassociate
Ok, but that's the exception, right? Not the rule? So in those cases, an
exception is made.
Regards,
Nigel
-
| Feb 11, 4:40 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
I think there are situations in which it can be justified, like:
- The driver is not entirely finished, but we want to merge it early, because
of many potential users,
- The driver has only a few users who aren't interested in the suspend/resume
functionality,
- The device is undocumented and we don't know how to make it handle the
suspend/resume (we may learn that in the future or not).
For this reason I 100% agree that we should _encourage_ implementing .suspend
and .resume, but we should ...
| Feb 10, 5:44 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
How do you determine that? How many users have to want suspend/resume
If we know how to initialise/cleanup, we know a good portion of what is
needed for suspend/resume. Sure, for some video chipsets, you need more
(you need to know how to reprogram the whole thing after S3), but
they're the exception. Yes, there are other cases. But on the whole,
we're not talking about esoteric knowledge.
Regards,
Nigel
-
| Feb 11, 3:40 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
That depends on what the driver author tells us. If he says there's only one
such device in the world and it needs a Linux drivers, but the system in
question will never be suspended, that will be fine, I think. There are such
No, in general this is not _that_ simple. Please browse the archives of
bcm43xx-dev, for example.
While I agree that the support for suspend and resume _is_ generally important,
I also admit that there are situations in which it doesn't matter and there are
many ...
| Feb 11, 4:29 pm 2007 |
| Pavel Machek | Re: NAK new drivers without proper power management?
No rules are ever unbreakable, so that should be okay. 'Make it
suspend, if you can't for some good reason, at least return -ENOSYS
from .suspend' sounds good to me.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 10:01 am 2007 |
| Jiri Kosina | Re: [PATCH] Fix USB vendor and product IDs endianness fo ...
Hi Julien,
this is obviously a bug, thanks for a fix, I queued it for upstream.
Two nitpicks:
- could you please submitpatches in standard conventions, so that they
could be applied directly using patch -p1 against toplevel of the kernel
tree (your patch was just against hid-core.c, but without any path)
- please inline patches in message and do not attach them, if possible
I will submit the patch to stable team.
Thanks,
--
Jiri Kosina
SUSE Labs
-
| Feb 11, 10:24 am 2007 |
| Julien BLACHE | Re: [PATCH] Fix USB vendor and product IDs endianness fo ...
Jiri Kosina <jkosina@suse.cz> wrote:
Same here, got fooled again into doing an inline MIME part instead of
inlining the patch for real.
JB.
--
Julien BLACHE <http://www.jblache.org>
<jb@jblache.org> GPG KeyID 0xF5D65169
-
| Feb 11, 11:04 am 2007 |
| Miguel Ojeda | Re: 20-rc6-mm3 - BUG: at arch/i386/mm/highmem.c:52 kmap_ ...
Andrew's patch seems to work for me, no more BUGs showed up.
Thanks,
Miguel
--
Miguel Ojeda
http://maxextreme.googlepages.com/index.htm
-
| Feb 11, 10:13 am 2007 |
| Frederik Deweerdt | Re: 20-rc6-mm3 - BUG: at arch/i386/mm/highmem.c:52 kmap_ ...
Could you try this hotfix
http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/h...
and see if it works for you?
Regards,
Frederik
-
| Feb 10, 8:40 pm 2007 |
| Jiri Slaby | Re: KVM oops: killing interrupt handler
BTW. will kvm-13's external module work?
thanks,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
-
| Feb 11, 9:58 am 2007 |
| Avi Kivity | Re: KVM oops: killing interrupt handler
kvm suspend/resume support is only present in -mm (what's more, I don't
think in any released -mm). A workaround is to rmmod kvm_intel before
suspending.
--
error compiling committee.c: too many arguments to function
-
| Feb 11, 8:53 am 2007 |
| Jiri Slaby | Re: KVM oops: killing interrupt handler
It's intel core 2 duo emulating 32-bit wxp. It happened after
suspend/resume (he doesn't know if qemu was actually running) of the
machine.
Dmesg (not with the oops):
http://www.fi.muni.cz/~xpapiez/kvm-intel-panic/dmesg.txt
.config:
http://www.fi.muni.cz/~xpapiez/kvm-intel-panic/config-2.6.20-rc6.txt
I don't know if this is related, but qemu-system-x86 ends up in D state:
root 28740 0.0 0.0 0 0 ? D 14:31 0:00
[qemu-system-x86]
root 28858 0.0 0.0 0 ...
| Feb 11, 7:01 am 2007 |
| Jiri Slaby | Re: KVM oops: killing interrupt handler
Yeah :). But while installing I revealed one problem.
I had to do this in kernel/Makefile:
$(MAKE) -C $(KERNELDIR) M=`pwd` "$$@"
install:
- mkdir -p $(DESTDIR)/$(INSTALLDIR)
- cp *.ko $(DESTDIR)/$(INSTALLDIR)
- /sbin/depmod -a
+ $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
tmpspec = .tmp.kvm-kmod.spec
RPMDIR = $$(pwd)/../RPMS
Otherwise it installs modules into build directory, which is not usable too much ;):
kernel# make install
mkdir -p ...
| Feb 11, 10:37 am 2007 |
| Avi Kivity | Re: KVM oops: killing interrupt handler
What guest? what host? How to reproduce?
--
error compiling committee.c: too many arguments to function
-
| Feb 11, 2:02 am 2007 |
| Jiri Slaby | Re: KVM oops: killing interrupt handler
Aha, that would be the problem.
thanks,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
-
| Feb 11, 9:19 am 2007 |
| Jiri Slaby | Re: KVM oops: killing interrupt handler
Nice to report, that it works, good work!
regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
-
| Feb 11, 12:18 pm 2007 |
| Avi Kivity | Re: KVM oops: killing interrupt handler
Try and report back :)
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-
| Feb 11, 10:10 am 2007 |
| Dave Jones | Re: Documenting MS_RELATIME
On Sat, Feb 10, 2007 at 09:56:07AM -0800, Michael Kerrisk wrote:
> Val,
>
> I'm just updating the mount(2) man page for MS_RELATIME, and this is the
> text I've come up with:
>
> MS_RELATIME(Since Linux 2.6.20)
> When a file on this file system is accessed, only
> update the file's last accessed time (atime) if
> the current value of atime is less than or equal
> to the file's last modified (mtime) or last sta-
> ...
| Feb 10, 5:54 pm 2007 |
| Avi Kivity | Re: + kvm-fix-asm-constraint-for-lldt-instruction.patch ...
No objections, though I'm wondering whether fixing a miscompile on an
unreleased compiler is a stability fix.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-
| Feb 10, 11:11 pm 2007 |
| Paul Rolland | RE: AHCI - remove probing of ata2
In the meantime, I've been trying 2.6.20-rc7.
Things are not better, except that the ata2 probing failing results in
no /dev/sdd being allocated, thus it changes all the naming afterwards.
So, 2.6.20-rc7 results are :
- ata2 probing still very long and delaying boot a lot,
- Jmicron PATA still not working, and doesn't even detect the DVD-ROM on
the port.
Guys, should you have any patch that you'd like me to test, feel free to
send, I'll do that more than ...
| Feb 11, 3:17 am 2007 |
| Eric W. Biederman | Re: [PATCH 2.6.21 review I] [11/25] x86: default to phys ...
Where is the code that the subject describes?
I have two problems here.
- I don't see anything handling the hotplug case, and forcing us to
physical mode.
- Ingo's other patch asserts that hotplug should be made to handle
logical deliver mode.
With logical deliver mode the experimental evidence is that the
destination cpu is a hint, and you can arrive at a cpu that is not
in your cpu mask. Now I only saw that problem on hyperthreaded cpus
but we didn't have the code enabled long ...
| Feb 11, 4:13 am 2007 |
| Tejun Heo | Re: [patch] linux/io.h: forward declare struct pci_dev
pci_iomap() depends on two things - PCI and iomap. AFAIK, there is no
config to test whether the current arch supports iomap or not.
Previously it worked because those archs which don't support either one
doesn't have set CONFIG_GENERIC_IOMAP while not implementing
arch-specific ones && not compiling any driver which uses the iomap
interface. This is why pci_iomap() ended up in lib/iomap.c in the first
place; otherwise, it cannot be conditionalized correctly as devers
currently shows ...
| Feb 10, 11:26 pm 2007 |
| Randy Dunlap | Re: [patch] linux/io.h: forward declare struct pci_dev
Uh, I think that we would rather see a positive-sense symbol instead
of a negative one. Any reason that this one prefers to be negative?
Thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
| Feb 10, 11:55 pm 2007 |
| Al Viro | Re: [patch] linux/io.h: forward declare struct pci_dev
Take a look at lib/Kconfig. And see HAS_IOPORT there.
The reason for doing it that way: majority of targets has that stuff
already. Even more should have it eventually. IOW, the default should
be positive. Modified in arch/*/Kconfig of targets where it doesn't
work. Which is exactly what's done here.
-
| Feb 11, 1:21 am 2007 |
| Al Viro | Re: [patch] linux/io.h: forward declare struct pci_dev
My current version:
| Feb 10, 11:34 pm 2007 |
| Roland Dreier | Re: [PATCH] sort the devres mess out
It looks like devres stuff is still broken on ia64, at least on the
config below. The build dies with:
CC drivers/base/dma-mapping.o
/scratch/Ksrc/linux-git/drivers/base/dma-mapping.c: In function 'dmam_noncoherent_release':
/scratch/Ksrc/linux-git/drivers/base/dma-mapping.c:32: error: 'struct ia64_machine_vector' has no member named 'platform_dma_free_coherent'
/scratch/Ksrc/linux-git/drivers/base/dma-mapping.c: In function ...
| Feb 11, 3:16 pm 2007 |
| Tejun Heo | Re: [patch] linux/io.h: forward declare struct pci_dev
Thanks. Sorry about causing trouble for many archs. :-)
--
tejun
-
| Feb 10, 11:46 pm 2007 |
| Christoph Hellwig | Re: [patch] linux/io.h: forward declare struct pci_dev
I haven't looked at what causes it, but any leakage of pci details
into io.h is bogus. I'd suggest that the original submitter fixes
up that problem instead.
-
| Feb 10, 8:49 pm 2007 |
| Al Viro | [PATCH] sort the devres mess out
* Split the implementation-agnostic stuff in separate files.
* Make sure that targets using non-default request_irq() pull
kernel/irq/devres.o
* Introduce new symbols (HAS_IOPORT and HAS_IOMEM) defaulting to positive;
allow architectures to turn them off (we needed these symbols anyway for
dependencies of quite a few drivers).
* protect the ioport-related parts of lib/devres.o with CONFIG_HAS_IOPORT.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
arch/arm/Kconfig | 5 ...
| Feb 11, 8:41 am 2007 |
| Jeff Garzik | Re: [patch] linux/io.h: forward declare struct pci_dev
Seems sane to me.
Jeff
-
| Feb 11, 8:09 am 2007 |
| Christoph Hellwig | Re: [patch] linux/io.h: forward declare struct pci_dev
please make this IOPORT. config symbols with an implicit negation
are quite horrible for the brain to understand.
-
| Feb 11, 12:10 am 2007 |
| Jeff Garzik | Feb 11, 8:49 am 2007 | |
| Heiko Carstens | Re: [patch] linux/io.h: forward declare struct pci_dev
Works fine for me. If this one is applied too s390 works again:
http://lkml.org/lkml/2007/2/10/41
Thanks!
-
| Feb 11, 8:31 am 2007 |
| Jeff Garzik | Feb 11, 8:49 am 2007 | |
| Al Viro | Re: [PATCH] iomap: make PCI iomap stuff excluded when PC ...
Then we'll just need to replace NO_IOPORT with NO_IOMEM in Kconfig and
kill arch/s390/mm/ioremap.c.
BTW, there's an annoying bit of junk in there - IO_SPACE_LIMIT. We
only need it for /proc/ioports, which AFAICS shouldn't even be there
on s390 (or uml). OTOH, removing that thing would mean a user-visible
change - we go from "empty file in /proc" to "no such file in /proc"...
Anyway, switch to NO_IOMEM follows (on top of patches mentioned above).
| Feb 11, 11:15 am 2007 |
| Al Viro | Re: [PATCH] iomap: make PCI iomap stuff excluded when PC ...
Another source of breakage: you get devm_request_irq() only if you have
GENERIC_HARDIRQS. Otherwise kernel/irq/ is simply not built. Again,
you are mixing default implementation of primitives with the
implementation-agnostic stuff around those primitives. I'd split
kernel/irq/manage.c in two files and have the places providing
alternative implementations (e.g. arch/sparc/kernel) refer to new
file in their makefiles...
I'm mostly done with that stuff, modulo noncoherent_dma breakage. ...
| Feb 10, 10:20 pm 2007 |
| Randy Dunlap | Re: [PATCH] iomap: make PCI iomap stuff excluded when PC ...
At least it fixes allnoconfig on x86_64, which was also broken
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
| Feb 10, 7:41 pm 2007 |
| Heiko Carstens | Re: [PATCH] iomap: make PCI iomap stuff excluded when PC ...
I sent a patch earlier which "fixes" at least the dma stuff by adding some
more defines to asm-generic/dma-mapping-broken.h
The patch below (on top of your latest one) makes sure s390 builds at
least again until all this got sorted out.
---
Hack to make s390 build again.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
include/asm-s390/io.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Index: ...
| Feb 10, 5:15 pm 2007 |
| Martin Schwidefsky | Re: [PATCH] iomap: make PCI iomap stuff excluded when PC ...
s390 does not even need (in|out)b(_p|). I wondered what else from io.h
do we not need. The answer is: almost nothing. With the devres patch
from Al and the dma-mapping patch from Heiko we can get rid of iomem and
all associated definitions.
--
blue skies,
Martin.
Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH
"Reality continues to ruin my life." - Calvin.
--
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
[S390] cleanup ...
| Feb 11, 9:45 am 2007 |
| Benjamin Herrenschmidt | Re: remote debugging via FireWire
I'd like to have that on ppc as well, so I'd rather keep it in drivers/
I agree that it doesn't need to be a module. If you can load modules,
then you can load the full ohci driver. Thus, if it's an early thingy
initialized by arch, it can export a special "takeover" hook that the
proper ohci module can then call to override it (important if we start
having an irq handler).
Andi, also, how do you deal with iommu ? Not at all ? :-)
Ben.
-
| Feb 11, 2:35 pm 2007 |
| Pavel Machek | Re: [PATCH] Re: NAK new drivers without proper power man ...
Well, I think that is more work than you realize, but yes, that patch
would really be welcome.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 12:37 pm 2007 |
| Willy Tarreau | Re: [PATCH] Re: NAK new drivers without proper power man ...
I understand your concerns, but the problem is not *current* drivers, but
what will happen to *new* drivers. If we make it implicit that a driver
is compatible, then new drivers will be promoted as good even if nothing
has been done for this.
Regards,
Willy
-
| Feb 11, 6:57 am 2007 |
| Matthew Garrett | Re: [PATCH] Re: NAK new drivers without proper power man ...
No, that doesn't work. In the absence of suspend/resume methods, the PCI
layer will implement basic PM itself. In some cases, this works. In
others, it doesn't. There's no way to automatically determine which is
which without modifying the drivers.
--
Matthew Garrett | mjg59@srcf.ucam.org
-
| Feb 11, 5:13 am 2007 |
| Rafael J. Wysocki | Re: [PATCH] Re: NAK new drivers without proper power man ...
That's true, but I assume that the people who opt for doing that are also
Well, if we change the design to fail by default, the authors of new drivers
will only have to flag them if they believe that the drivers are
Well, I don't think so. Let's estimate the number of drivers that define
.resume() right now:
$ grep -I -l -r '.resume =' linux-2.6.20/drivers/ | wc
102 102 4169
And I think there are much more drivers that really work fine with respect
to the ...
| Feb 11, 11:53 am 2007 |
| Robert Hancock | Re: [PATCH] Re: NAK new drivers without proper power man ...
The only thing that the PCI layer does for PM is the stuff that the
driver would normally tell the PCI layer to do as part of a proper
suspend/resume implementation: enable/disable the device and
save/restore the PCI configuration space (only the standardized part, I
believe). This is the bare minimum that's needed on all PCI devices,
whether or not they even have a driver loaded. I suspect the number of
PCI devices where this is truly all they need, i.e. no state in any IO
ports or MMIO ...
| Feb 11, 10:36 am 2007 |
| Rafael J. Wysocki | Re: [PATCH] Re: NAK new drivers without proper power man ...
Yes, that's possible.
Greetings,
Rafael
-
| Feb 11, 11:31 am 2007 |
| Nigel Cunningham | Re: [PATCH] Re: NAK new drivers without proper power man ...
Hi.
I think we have it backwards there. Power management support for a
driver should always start with the driver itself. If there's a generic
routine that can be used for the bus, the driver should explicitly set
the routine to the generic routine.
Regards,
Nigel
-
| Feb 11, 3:49 pm 2007 |
| Pavel Machek | Re: [PATCH] Re: NAK new drivers without proper power man ...
Actually, ne2k driver is okay. ne2k cards are notoriously buggy, so it
responds with "****, that damn card has just locked up again, lets
reset it". Ok, it takes timeout to realize card is "locked up",
so it could be improved...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 2:10 pm 2007 |
| Rafael J. Wysocki | Re: [PATCH] Re: NAK new drivers without proper power man ...
The problem is it was made implicit long ago. The design is "optimistic", so
to speak, and I think we have the following choices:
1) Change the design to make the kernel refuse to suspend if there are any
drivers not explicitly flagged as "suspend/resume-safe". [This looks like a
lot of work to me, but it is generally doable provided that someone has enough
time to do it. Unfortunately it has to be done in one shot for all of the
known good drivers to avoid user-observable ...
| Feb 11, 7:36 am 2007 |
| Rafael J. Wysocki | Re: [PATCH] Re: NAK new drivers without proper power man ...
Ah, good catch. I have searched for ".resume" only and got 612, but this
is the number of files, not the number of drivers. And it is not exactly
Yes, I'll try to invent a test.
Greetings,
Rafael
-
| Feb 11, 4:10 pm 2007 |
| Stefan Richter | Re: [PATCH] Re: NAK new drivers without proper power man ...
And this issue is independent of whether a driver has .suspend and
.resume or not. For example, ohci1394 had them for ages but they didn't
work as expected before 2.6.20.
What's more, ohci1394's resume routine alone is insufficient; an
additional facility in ieee1394 was necessary and added for 2.6.21(-rc).
This shows that the original authors of ohci1394's .suspend and .resume
didn't test with actual external devices or gave up when they figured
that the problem reaches into upper subsystem ...
| Feb 11, 2:04 pm 2007 |
| Matthew Garrett | Re: [PATCH] Re: NAK new drivers without proper power man ...
This ignores the reality of the situation, which is that many drivers
support suspend and resume despite the lack of any explicit
implementation. Changing things so they're flagged as broken when
they're not would be a regression.
--
Matthew Garrett | mjg59@srcf.ucam.org
-
| Feb 11, 6:19 am 2007 |
| Rafael J. Wysocki | Re: [PATCH] Re: NAK new drivers without proper power man ...
I think we don't need to flag the drivers identified as OK. Let's flag only
the suspicious ones.
Whatever we finally come up with, I'd like to avoid modifying drivers that are
known good.
Greetings,
Rafael
-
| Feb 11, 6:50 am 2007 |
| Willy Tarreau | Re: [PATCH] Re: NAK new drivers without proper power man ...
instead of modifying all drivers to explicitly state that they don't support
it, we should start with a test of the NULL pointer for .suspend which should
mean exactly the same without modifying the drivers. I find it obvious that
a driver which does provide a suspend function will not support it. And if
some drivers (eg /dev/null) can support it anyway, it's better to change
*those* drivers to explicitly mark them as compatible.
regards,
Willy
-
| Feb 10, 11:54 pm 2007 |
| Willy Tarreau | Re: [PATCH] Re: NAK new drivers without proper power man ...
Those which are identified as OK should be flagged OK. Only those for
which we have no idea should be flagged broken. It's better than leaving
them in the wild waiting for a victim. And given what Nigel would like,
they would all have to be reviewed to get .suspend/.resume entries
anyway. But at least, we would only have to change the known good instead
of all of them. And the remaining ones would not cause trouble to users.
Willy
-
| Feb 11, 6:37 am 2007 |
| Nigel Cunningham | Re: [PATCH] Re: NAK new drivers without proper power man ...
Hi.
I think the '.resume =' doesn't help - some have tabs. I ran '\.resume'
and got 351.
It would be interesting to see how many struct pci_driver etc instances
lack resume methods.
Regards,
Nige
-
| Feb 11, 4:06 pm 2007 |
| Willy Tarreau | Re: [PATCH] Re: NAK new drivers without proper power man ...
Then change the PCI layer to do the basic PM only for known compatible
drivers, and modify only the known-compatible drivers to mark them
explicitly compatible. IMHO, it generally is a bad idea to require that
any driver explicitly states what it *does not* support. It's the reason
why users encounter problem on new features with old drivers. For instance,
do you know if the old ISA NE2000 driver breaks suspend ? I don't know,
but I would at least expect it not to support it by default. It's ...
| Feb 11, 6:09 am 2007 |
| Pekka Enberg | Re: [PATCH] Re: NAK new drivers without proper power man ...
No you don't. You can make it a config option that defaults to n
during a transition period.
-
| Feb 11, 8:19 am 2007 |
| Daniel Barkalow | Re: [PATCH] Re: NAK new drivers without proper power man ...
The kernel wouldn't necessarily have to refuse to suspend. It could just
warn (and list the drivers that aren't marked), or could require some
extra insistance from the user. It would be good to have it log a message
saying something like: "If you can read this, report that ne2000 seems to
be safe for suspend/resume". Having drivers explicitly marked as to
whether they are safe is a good kernel feature; what to do if they're not
I don't see any reason not to do (2) regardless of (1). ...
| Feb 11, 10:27 am 2007 |
| Ben Dooks | Re: arch/arm: typos in KERN_ERR, KERN_INFO
Thanks for the spot.
arch/arm/mach-s3c2410 is being reorganised, so can we split this
patch and have the other two submitted, or wait for the re-work
has made it through to the kernel please?
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
-
| Feb 10, 11:31 pm 2007 |
| Tejun Heo | Re: [git patches] libata updates 1 of 3
Please post full dmesg and the result of 'lspci -nnvvvxxx'.
--
tejun
-
| Feb 11, 3:08 pm 2007 |
| Christopher Li | Re: [ANNOUNCE] sparse-0.2-cl2 is now available
In short, not very useful yet.
The current run of of sparse-0.2-cl2 on git default i386 config
will find about 6 place kernel using allocated memory without NULL
check. But Linus said most of them is not worthy checking because
it is in the early stage of the kernel initializations.
It just can't fail on those small memory allocation. May be one
of them worth adding the NULL check.
For interrupt and spinlock checking, it less noisier than the current
sparse context level checking. The new ...
| Feb 10, 10:17 pm 2007 |
| Andi Kleen | Re: [ANNOUNCE] sparse-0.2-cl2 is now available
At least for interrupts on/off you'll likely need new annotations because
this state can be changed in assembly files before/after calling out to
C.
For locks this fortunately cannot happen (at least not on x86*)
-Andi
-
| Feb 11, 3:41 am 2007 |
| Christopher Li | Re: [ANNOUNCE] sparse-0.2-cl2 is now available
OK, we should talk.
Here is what I have:
Linearize bytecode writer, which produce the binary linearized code.
The uncompress size is about 10 times the i386 .o file. I don't have
the loader ready to verify it yet. It is aim at fast loading bytecode
and simple, I havn't done much toward optimized the code size.
If we keep it 10 times over head, my home computer can load the full linux
kernel and have some spare for checking.
I am still working on the bytecode loader and linker for ...
| Feb 10, 11:02 pm 2007 |
| Al Viro | Re: [ANNOUNCE] sparse-0.2-cl2 is now available
I have some stuff in that direction, but it take some resurrecting...
-
| Feb 10, 10:50 pm 2007 |
| Miklos Szeredi | Re: [PATCH] fix quadratic behavior of shrink_dcache_parent()
Yes, it's basically a "normal" OOM situation. What makes it worse
than usual, is that it's _kernel_ memory being used up which is not
attributed to any process.
So from the OOM killer's point of view it looks like none of the
userspace programs are responsible for the OOM, and it will just
select targets randomly.
By the time it has come to the actual culprits (the filesystem daemon
and 'du') it will have killed almost everything useful.
So it's definitely better than without the patch, ...
| Feb 11, 5:13 am 2007 |
| Johannes Berg | Re: [ANNOUNCE] d80211 based driver for Intel PRO/Wireles ...
The second one is the so-called "master" interface which is used for QoS
stuff. We're working on hiding it until a better solution for QoS
evolves (which has been a plan for a while.)
johannes
| Feb 11, 6:19 am 2007 |
| Pavel Machek | Re: NAK new drivers without proper power management?
No, it is not by dummy functions. Checkout how swsusp works; it needs
no hw support, still it needs driver support.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 4:29 pm 2007 |
| Manu Abraham | Re: NAK new drivers without proper power management?
What if the hardware doesn't support power management ?
regards,
manu
-
| Feb 11, 3:57 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Why not right now?
Regards,
Nigel
-
| Feb 11, 3:41 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
You would still want to do the cleanup and configuration that you'd do
for module load/unload.
Regards,
Nigel
-
| Feb 11, 4:20 pm 2007 |
| Alan | Re: NAK new drivers without proper power management?
And testing/submitting drivers, perhaps with additional text in that to
make it clear we want suspend/resume support or good excuses
"Please verify your driver correctly handles suspend and resume. If it
does not your patch submission is likely to be suspended and only resume
when the driver correctly handles this feature"
-
| Feb 11, 2:02 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
Sounds good.
Regards,
Nigel
-
| Feb 11, 4:22 pm 2007 |
| Tilman Schmidt | Re: NAK new drivers without proper power management?
Am 11.02.2007 20:42 schrieb Pavel Machek:
Documentation/power/devices.txt?
--=20
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
- In theory, there is no difference between theory and practice.
In practice, there is.
| Feb 11, 3:21 pm 2007 |
| Pavel Machek | Re: NAK new drivers without proper power management?
Sounds ok to me. Where should this text go?
Documentation/SubmittingDrivers ?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 12:42 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
On Sunday, 11 February 2007 07:46, Willy Tarreau wrote:
I agree, but the suspend/resume safeness has to be somehow indicated by
the driver. We could add a flag for that, but it would require us to modify
lots of existing drivers (unless there's something obvious I don't see).
However, the driver can effectively say "I'm not suspend/resume-safe" by
returning an error from .suspend(), in which case the system will automatically
refuse to suspend.
Greetings,
Rafael
-
| Feb 11, 6:04 am 2007 |
| Pavel Machek | Re: NAK new drivers without proper power management?
Ok, so who does the patch?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 4:23 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
Ok, that was a bit rough. Sorry.
At the same time though, we were talking about new drivers. If you know
enough to implement the rest of the driver, surely you know enough to
implement the power management part too. (See my previous comment about
Not necessarily. I dual boot our desktop machine, and hibernate both,
Neither am I. I'm just asking that new drivers have power management as
Yes, but why should the user have to complain to start with?
Regards,
Nigel
-
| Feb 11, 3:47 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
Plus:
- What if I'm planning to implement the power managemet, but not just right
Agreed.
Greetings,
Rafael
-
| Feb 10, 5:27 pm 2007 |
| Pavel Machek | Re: NAK new drivers without proper power management?
> applicable?
Well, for many people s2ram does not work even today... so requiring
Ok.. but I'm not sure how many people will actually test it _that_
thoroughly. "Try to test it" is good enough for a first version. When
suspend is in better shape, we can ask for more.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 4:21 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
I have prepared a patch against Documentation/SubmittingDrivers. Please
have a look.
---
Documentation/SubmittingDrivers | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: linux-2.6.20-git4/Documentation/SubmittingDrivers
===================================================================
--- linux-2.6.20-git4.orig/Documentation/SubmittingDrivers
+++ linux-2.6.20-git4/Documentation/SubmittingDrivers
@@ -87,6 +87,18 @@ Clarity: It helps if anyone can see how
driver that ...
| Feb 11, 4:04 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
No. The differences are:
Built in: The initcalls will have run, but the driver may or may not
actually have been used, depending on whether it's used before we start
the resume. It should probably be tested with both having been used and
not having been used.
Modular, loaded prior to suspending but not prior to resuming: At resume
time, will still be in whatever config the bios puts it in. No Linux
driver code will have touched it.
Modular, loaded prior to suspending and resuming: ...
| Feb 11, 4:29 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
Maybe make it explicit that testing should be done for both suspend to
ram and to disk, and with the following usage scenarios as applicable?
- built in;
- modular, loaded while suspending but not loaded prior to resume from
disk;
- modular, loaded while suspending and loaded prior to resume from disk;
Regards,
Nigel
-
| Feb 11, 4:10 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
It's not that complex. All we're really talking about is a bit of extra
code to cleanup and configure hardware state; things that the driver
author already knows how to do. S3 might require a bit more
initialisation if firmware needs to be reloaded or more extensive
configuration needs to be done, but if there's firmware to be loaded,
there is a reasonably good probability that we loaded it from Linux to
Then you as a generic routine that does nothing but return success
The questions ...
| Feb 11, 3:37 pm 2007 |
| Rafael J. Wysocki | Re: NAK new drivers without proper power management?
I think we should state the general rule in Documentation/SubmittingDrivers
and give more details in Documentation/power/devices.txt
Greetings,
Rafael
-
| Feb 11, 4:16 pm 2007 |
| Nigel Cunningham | Re: NAK new drivers without proper power management?
Hi.
If all you need to do is say 'I don't need to do anything' and we have a
shared function that does that, all we're talking about doing is adding
to your struct pci_device (or whatever)
.resume = generic_empty_resume;
To me at least, that doesn't look awkward, and says cleanly and clearly
that you've checked things over and decided you know what's required.
Regards,
Nigel
-
| Feb 11, 4:33 pm 2007 |
| Willy Tarreau | Re: NAK new drivers without proper power management?
Hi Nigel,
No, it means "Not implemented because I don't want to screw that driver with
something I'm not expert in". And it also means "Other people will quickly
It's *one* usage of Linux. For this usage, you could also suggest to stop
supporting UP kernels and always build everything with SMP enabled since
more and more often, people will use multi-core systems. It will exempt
the users from upgrading their kernels when they replace their CPU. We
could also try to chase down all the ...
| Feb 10, 11:46 pm 2007 |
| Manu Abraham | Re: NAK new drivers without proper power management?
By adding dummy functions, wouldn't that just look awkward ?
regards,
manu
-
| Feb 11, 4:25 pm 2007 |
| Jens Axboe | Re: current git breaks resume
When I'm on stable ground again, I'll try with pm tracing and see if
that yields anything. Otherwise I'll do a bisect.
--
Jens Axboe
-
| Feb 10, 8:28 pm 2007 |
| Alexey Starikovskiy | Re: current git breaks resume
Len,
resume from RAM is still broken by "Disable all wakeup GPEs". My
previous patch for T43 does not help, only attached one helps (revert
original patch).
| Feb 11, 7:34 am 2007 |
| Alexey Starikovskiy | Re: current git breaks resume
Jens,
Could you please test the patch I've sent?
Thanks,
Alex.
-
| Feb 11, 10:31 am 2007 |
| Len Brown | Re: current git breaks resume
resume from RAM, or resume from disk?
-
| Feb 10, 10:02 pm 2007 |
| Jens Axboe | Re: current git breaks resume
With that patch applied, current git works as expected. Thanks!
--
Jens Axboe
-
| Feb 11, 10:56 am 2007 |
| Jens Axboe | Re: current git breaks resume
Just saw it, will do.
--
Jens Axboe
-
| Feb 11, 10:36 am 2007 |
| Jens Axboe | Re: current git breaks resume
Resume from RAM, I never use suspend-to-disk.
--
Jens Axboe
-
| Feb 11, 9:53 am 2007 |
| Davide Libenzi | Re: -mm merge plans for 2.6.21
You really should have needed padding in there, since even if you swapped
the members, sizeof(struct epoll_event) would still need to be 16, if
alignof(u64) == 8. Either adding an extra auxilliary u32, or make the two
members be u64, would have been ok.
I'll be posting a patch that adds the compat_ layer for epoll in
kernel/compat.c. Architectures that needs it (currently only ARM-EABI and
IA64 use a compat code for epoll), should wire them up.
- Davide
-
| Feb 10, 9:53 pm 2007 |
| Dave Jones | Re: -mm merge plans for 2.6.21
On Thu, Feb 08, 2007 at 03:07:10PM -0800, Andrew Morton wrote:
>
> I'm getting fed up of holding onto hundreds of patches against subsystem
> trees, sending them over and over again seeing and nothing happen. I sent 242
> patches out to subsystem maintainers on Monday and look at what's still here.
>
> agpgart-allow-drm-populated-agp-memory-types-tidy.patch
> remove-hotplug-cpu-crap-from-cpufreq.patch
> rewrite-lock-in-cpufreq-to-eliminate-cpufreq-hotplug-related-issues.patch
> ...
| Feb 10, 5:31 pm 2007 |
| David Woodhouse | Re: -mm merge plans for 2.6.21
Indeed. That was the example I was thinking of when I suggested the "no
new syscalls without _simultaneous_ compat version" rule.
--
dwmw2
-
| Feb 11, 8:33 am 2007 |
| Andi Kleen | Re: -mm merge plans for 2.6.21
Added thanks.
-Andi
-
| Feb 11, 3:37 am 2007 |
| Heiko Carstens | Re: -mm merge plans for 2.6.21
Hmm.. so you don't need to do some fancy compat conversion for the sigset_t
that gets passed? Why is that? I don't get it...
-
| Feb 11, 9:14 am 2007 |
| Davide Libenzi | Re: -mm merge plans for 2.6.21
The compat_sys_epoll_pwait function has two sources of compat. One is the
sigset_t and the other one is the struct epoll_event. The sigset_t compat
is always needed, while the struct epoll_event may be needed. The code of
(upcoming) compat_sys_epoll_pwait takes care of both, with a smart
compile-time check to wire sys_epoll_wait or compat_sys_epoll_wait,
depending on the need of the struct epoll_event compat handling.
So yes, compat_sys_epoll_pwait is needed.
- Davide
-
| Feb 11, 9:34 am 2007 |
| Ralf Baechle | Re: -mm merge plans for 2.6.21
Ah, I finally get your point. Yes, that needs conversion.
Ralf
-
| Feb 11, 11:01 am 2007 |
| Ralf Baechle | Re: -mm merge plans for 2.6.21
The need for a compat ABI is not always obvious.
Ralf
-
| Feb 11, 9:09 am 2007 |
| Tilman Schmidt | Re: gigaset build broken on current linux-2.6.git
I notice that 2.6.20-git6 still doesn't include either of these fixes.
Is there anything I need to do in order to push it?
Thanks,
Tilman
--=20
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
- In theory, there is no difference between theory and practice.
In practice, there is.
| Feb 11, 11:40 am 2007 |
| Greg KH | Re: gigaset build broken on current linux-2.6.git
It's in my queue and is on track to get in before 2.6.21-rc1 is out.
thanks,
greg k-h
-
| Feb 11, 11:47 am 2007 |
| Alex Bounder | Re: creating headless device on 2.6.18
Thanks,
I really appreciate your answer, everything is working ok.
-
| Feb 11, 10:08 am 2007 |
| Linus Torvalds | Re: Size of 2.6.20 task_struct on x86_64 machines
Are we sure that there are no users that depend on accessing the different
fields under different locks?
Having them as separate "int" fields means that they don't have any
interaction, and normal cache coherency will "just work". Once they are
fields in the same word in memory, updating one field automatically will
do a read-write cycle on the other fields, and if _they_ are updated by
interrupts or other CPU's at the same time, a write can get lost..
So I'd like this to be ack'ed ...
| Feb 10, 7:55 pm 2007 |
| Dave Jones | Re: Size of 2.6.20 task_struct on x86_64 machines
On Thu, Feb 08, 2007 at 11:14:13AM -0500, William Cohen wrote:
> This past week I was playing around with that pahole tool
> (http://oops.ghostprotocols.net:81/acme/dwarves/) and looking at the
> size of various struct in the kernel. I was surprised by the size of
> the task_struct on x86_64, approaching 4K. I looked through the
> fields in task_struct and found that a number of them were declared as
> "unsigned long" rather than "unsigned int" despite them appearing okay
> as 32-bit ...
| Feb 10, 5:20 pm 2007 |
| Eric W. Biederman | Re: RE : Re: Re : [PATCH] Compressed ia32 ELF file gener ...
There are two more options in addition to segments:
- Running at a fixed virtual address.
- Processing relocation entries to modify the initial code/data to
live where we want. We don't have the that shared libraries do of wanting
The thing to pick up on is that we really don't want the gcc flag
-fPIC but if ld wasn't an idiot we would want the linker flag -shared.
Anyway we have working code merged that processes all of the
relocation entries and modifies the kernel to run properly where ...
| Feb 11, 1:49 pm 2007 |
| Etienne Lorrain | RE : Re: Re : [PATCH] Compressed ia32 ELF file generatio ...
So we are talking of two different things.
You want to _compile_ the totality of the kernel as code and data
relocatable - right now only modules are compiled that way.
On IA32 architecture, there is no problem having the code relocatable,
because most/all calls and jumps are PC relative, so very few instructions
need to be different.
The problem is having the data relocatable, then every access to memory
has to be relative to a register, and so the register EBX is reserved
for that by the ...
| Feb 11, 6:23 am 2007 |
| Al Viro | Re: [PATCH v4] Fix rmmod/read/write races in /proc entries
> Does it pass everyone's bullshit detectors?
Nice, but incomplete. What we need to add is
* procfs-specific file_operations shared by all regular files
on procfs. Stuff in there would call methods from pde->proc_fops,
after having done the same kind of exclusion you are currently doing
in proc_file_read(), et.al.
* always set ->f_op of regular files on procfs to that sucker.
Don't reset it to NULL during removal.
* now that exclusion is done in wrappers, no need to do it ...
| Feb 11, 1:34 pm 2007 |
| Alexey Dobriyan | [PATCH v4] Fix rmmod/read/write races in /proc entries
Yes, that's rare. OK, I read LDD3 text on completions, hope I got it
right.
Does it pass everyone's bullshit detectors?
[PATCH v4] Fix rmmod/read/write races in /proc entries
Differences from version 3:
Use completion instead of unlock/schedule/lock
Move refcount waiting business after removing PDE from lists,
so that *cough* possible concurrent remove_proc_entry() will
work.
Current /proc creation interfaces suffer from at least two types of ...
| Feb 11, 1:23 pm 2007 |
| Pierre Ossman | Re: Recent and not-so problems with tifm_sd driver - one more
Where does this point?
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org
-
| Feb 11, 11:04 am 2007 |
| Brad Campbell | Re: Recent and not-so problems with tifm_sd driver - one more
Ok, following from that on my machine currently...
brad@bklaptop2:/$ ls /dev/mmc*
/dev/mmcblk0 /dev/mmcblk0p1
brad@bklaptop2:/$ find sys/devices | grep mmc
sys/devices/pci0000:00/0000:00:1e.0/0000:06:05.3/tifm_sd0:3/mmc_host:mmc0
brad@bklaptop2:/$ find /sys/block/ | grep ...
| Feb 11, 8:56 am 2007 |
| Alex Dubov | Re: Recent and not-so problems with tifm_sd driver
It just occurred to me that my synopsis of the problem was utterly lame.
Here, the correct description:
When the card is pulled out, I mark the host as "ejected" (so it fast-fails all the requests),
sleep a little for it to relax and then call mmc_remove_host. Otherwise, nasty things happen.
Here's the example not involving mmc_block at all (command 3 failed, hardware timeout was missed,
so software timeout picked it up; the sleep hack is disabled):
Feb 11 02:26:08 mortug tifm_sd tifm_sd0:3: ...
| Feb 10, 9:47 pm 2007 |
| Pierre Ossman | Re: Recent and not-so problems with tifm_sd driver - one more
Works fine here. The device tree is:
/sys/devices/pnp0/00:02/mmc0/mmc0:0001/block:mmcblk0/mmcblk0p1/
I'm using 0.5.9 here, but CONFIG_SYSFS_DEPRECATED should make it work with any
ancient version of hal.
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org
-
| Feb 11, 8:40 am 2007 |
| Brad Campbell | Re: Recent and not-so problems with tifm_sd driver - one more
I've tested both with and without CONFIG_SYSFS_DEPRECATED on, both fail the same way.
hald reports that the device has no parent and decides to ignore it.
I've also tested both combinations against hal from ubuntu 6.06LTS and a more recent version
brad@bklaptop2:~$ hald --version
HAL package version: 0.5.8.1
Again with and without CONFIG_SYSFS_DEPRECATED and all combinations fail.
Hal appears to go looking for /sys/block/mmcblk0/mmcblk0p1/range
When it can't find it, it then looks for ...
| Feb 10, 11:03 pm 2007 |
| Fabio Comolli | Re: Recent and not-so problems with tifm_sd driver - one more
Hi.
I can see this problem too. I have CONFIG_SYSFS_DEPRECATED set.
It happens only with SD cards, with MMC everything is OK.
Fabio
-
| Feb 11, 7:52 am 2007 |
| Pierre Ossman | Re: Recent and not-so problems with tifm_sd driver
You call that before mmc_free_host() (which flushes the work queue), and I
assume something still needs it. Put in some BUG_ON() here and there and you
should be able to catch it.
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org
-
| Feb 11, 11:15 am 2007 |
| Brad Campbell | Re: Recent and not-so problems with tifm_sd driver - one more
brad@bklaptop2:/sys/block/mmcblk0$ ls -laR
.:
total 0
drwxr-xr-x 6 root root 0 2007-02-11 23:29 .
drwxr-xr-x 13 root root 0 2007-02-11 23:27 ..
-r--r--r-- 1 root root 4096 2007-02-11 23:28 dev
lrwxrwxrwx 1 root root 0 2007-02-11 23:27 device -> ../../class/mmc_host/mmc0/mmc0:b368
drwxr-xr-x 2 root root 0 2007-02-11 23:27 holders
drwxr-xr-x 3 root root 0 2007-02-11 23:29 mmcblk0p1
drwxr-xr-x 3 root root 0 2007-02-11 23:27 queue
-r--r--r-- 1 root root 4096 2007-02-11 ...
| Feb 11, 12:32 pm 2007 |
| Henrique de Moraes H ... | Re: [GIT PATCH] ACPI patches for 2.6.21
None of the platform/hwmon/led driver model code landed there yet, but it
should be available at:
http://repo.or.cz/w/linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git queue/waiting
eventually. Note, I push a lot to that branch, and it is a stgit head, so
it gets rewond if a change that makes sense in an earlier patch shows up.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- ...
| Feb 11, 12:48 pm 2007 |
| Pavel Machek | Re: [GIT PATCH] ACPI patches for 2.6.21
Great, thanks!
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
| Feb 11, 12:35 pm 2007 |
| Maxim | Re: [PATCH] [NETDEV] [004] dmfe : Add suspend/resume support
Hi , thanks for reply , I will send them again, and this time I will check
that mailer doesn't mess with patches.
I fixed word wrap problem.
I also want to note that my address is now maximlevitsky@gmail.com , the
address I took recently because yahoo is only aviable via webmail
and it is not good for patches.
Thanks for reply,
regards , Maxim Levitsky
-
| Feb 11, 2:05 pm 2007 |
| Maxim | Re: [PATCH] [NETDEV] [000] dmfe : fix bugs and add features
Hello,
I agree , I will redo all patches with above commit reverted
Regards , Maxim Levitsky
PS: my mailbox is now maximlevitsky@gmail.com , I took it to use SMTP ,
because it less likely to corrupt patches
-
| Feb 11, 2:12 pm 2007 |
| Tejun Heo | Re: 2.6.18.2: sporadic SATA port resets (Broadcom BCM578 ...
Hello, Emmeran.
There is no logged error on drive's side. Only timeouts on host's side
with BMDMA engine running. I dunno specifics of the severwork
controller but many controllers with BMDMA interface timeouts the
command if transmission failure occurs, so my primary suspect is still
hardware transmission problem which seems quite common in SATA world.
Can you try the followings?
1. Use different cable and connect the hdd to different hdd.
2. If possible, connect the harddisk to ...
| Feb 11, 3:19 pm 2007 |
| Christoph Hellwig | Re: [IA64] swiotlb abstraction (e.g. for Xen)
[Empty message]
| Feb 11, 12:25 am 2007 |
| Milton Miller | Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profili ...
Actually, the oprofile userspace fills out files in a file system to
tell
the kernel what it needs to know. The powerpc code defines the
reources
needed to use the PMU hardware, which is (1) common mux selects, for
processors that need them, and (2) a set of directories, one for each
of the
pmu counters, each of which contain the controls for that counter (such
as enable kernel space, enable user space, event timeout to interrupt or
I think I talked past you. Your ...
| Feb 11, 3:46 pm 2007 |
| Grzegorz Kulewski | Re: libata_uli puts second channel to PIO4 on 2.6.18
Thanks! After this fix it is working ok. Any chance to see the proper fix
in -stable kernels for at least 2.6.18.x and 2.6.19.x?
Thanks,
Grzegorz Kulewski
-
| Feb 10, 9:14 pm 2007 |
| Eric W. Biederman | Re: What are the real ioapic rte programming constraints?
Ouch. And this kind of thing isn't exactly uncommon.
However if we have the irqs also disabled in the i8259 we should
be safe from actually receiving this interrupt (even if it generates
bus traffic), and when we enable the irq since it is level triggered
we should still get an interrupt message.
It isn't immediately obvious where the i8259 irq enable/disable
happens. So i"m having trouble auditing that bit of code.
Plus we can get very strange things like the irq number changing
and ...
| Feb 11, 3:01 pm 2007 |
| Zwane Mwaikambo | Re: What are the real ioapic rte programming constraints?
The 7500 issue isn't actually a race but a disease, if you mask a pending
irq in its RTE, the PCI hub generates an INTx message corresponding to
that irq. This apparently was done to support booting OSes without APIC
support. So the following would occur;
- irqN pending on IOAPIC
- mask
=> INTx message for irqN
Unfortunately it appears the below code would also be affected by this as
well, the appropriate reference is;
2.15.2 PCI Express* Legacy INTx Support and Boot Interrupt
-
| Feb 11, 9:16 am 2007 |
| Zwane Mwaikambo | Re: What are the real ioapic rte programming constraints?
Hi Eric,
Could you outline in pseudocode where you're issuing the mask? If
it's done whilst an irq is pending some (intel 7500 based) chipsets will
not actually mask it but treat it as a 'legacy' IRQ and deliver it
anyway. Using the masked whilst pending logic avoids all of that.
Cheers,
Zwane
-
| Feb 10, 10:57 pm 2007 |
| Eric W. Biederman | Re: What are the real ioapic rte programming constraints?
The code currently in the kernel does:
pending
mask
read io_apic
ack
reprogram vector and destination
unmask
So I guess it does retain the bug fix.
What I am looking at doing is:
mask
read io_apic
-- Past this point no more irqs are expected from the io_apic
-- Now I work to drain any inflight/pending instances of the irq
send ipi to all irq destinations cpus and wait for it to return
read lapic
disable local irqs
take irq lock
-- Now no more irqs are expected to ...
| Feb 11, 3:20 am 2007 |
| David Miller | Re: [PATCH 0 of 4] Generic AIO by scheduling stacks
From: Linus Torvalds <torvalds@linux-foundation.org>
Even if you have everything, every page, every log file, in the page
cache, everything talking over the network wants to block.
Will you create a thread every time tcp_sendmsg() hits the send queue
limits?
Add some logging to tcp_sendmsg() on a busy web server if you do not
believe me :-)
The idea is probably excellent for operations on real files, but it's
going to stink badly for networking stuff.
-
| Feb 10, 5:56 pm 2007 |
| Linus Torvalds | Re: [PATCH 0 of 4] Generic AIO by scheduling stacks
And I actually talked about that in one of the emails already. There is no
way you can beat an event-based thing for things that _are_ event-based.
That means mainly networking.
For things that aren't event-based, but based on real IO (ie filesystems
etc), event models *suck*. They suck because the code isn't amenable to it
in the first place (ie anybody who thinks that a filesystem is like a
network stack and can be done as a state machine with packets is just
crazy!).
So you ...
| Feb 10, 7:49 pm 2007 |
| Simon Arlott | Re: [PATCH 3/3] cxacru: Store all device status informat ...
Well, several reads of at least 172B... but that scenario works without a=
st.
I just copied it from usbatm; it looks like this could be done using seq_=
No special user space tool, I just want other people to be able to get th=
e same useful line information from cxacru that most ADSL driver have. (I=
do have a small "cxacru-watch" program which execs "cmd.up" etc. on stat=
us changes, but that is just sent printks via syslog-ng).
It looks like the weird proc interface prevents my ...
| Feb 11, 10:10 am 2007 |
| Simon Arlott | Re: [PATCH 2/3] cxacru: Poll for device status more freq ...
It needs to be at most 2 seconds while down or it's going to miss some of=
the state changes, why bother to output all the types of state if you're=
going to ignore some of them?
As for while it's up, polling more often has a negligible effect on perfo=
rmance (still polling every 200ms here). If you change the timing for dif=
ferent states, you should know that it won't go into the down state on a =
retrain so ~up should enable faster polling.
--=20
Simon Arlott
| Feb 11, 9:39 am 2007 |
| Luca Tettamanti | Re: [Linux-fbdev-devel] [PATCH] nvidiafb: allow ignoring ...
Sorry for the delay.
Good question :)
The following patch fixes a real bug in SCL control and add a few debug
info. Can you try it?
diff --git a/drivers/video/nvidia/nv_i2c.c b/drivers/video/nvidia/nv_i2c.c
index 8454adf..ca8bd7e 100644
--- a/drivers/video/nvidia/nv_i2c.c
+++ b/drivers/video/nvidia/nv_i2c.c
@@ -25,6 +25,12 @@
#include "../edid.h"
+#define DDC_SDA_READ_MASK (1 << 3)
+#define DDC_SCL_READ_MASK (1 << 2)
+#define DDC_SDA_WRITE_MASK (1 << 4)
+#define ...
| Feb 11, 11:17 am 2007 |
| Frank Hartmann | Re: PROBLEM: 2.6.19.1 Oops while doing Disk IO + playing ...
Hi Jan,
below is what I got using 2.6.20.
Is there any correlation to my previous reports? Should I focus
testing memory/disks/etc. further(and how?)? Or should I focus modifying kernel
parameters(and which)?
Feb 11 14:30:47 fantasio kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 0000002d
Feb 11 14:30:47 fantasio kernel: printing eip:
Feb 11 14:30:47 fantasio kernel: e0c55b16
Feb 11 14:30:47 fantasio kernel: *pde = 00000000
Feb 11 14:30:47 fantasio ...
| Feb 11, 6:59 am 2007 |
| Sascha Sommer | Re: Experimental driver for Ricoh Bay1Controller SD Card ...
Hi,
Thanks for your feedback and testing.
I fixed the above problems and ran the code through Lindent.
Apart from that I did the following changes:
- implemented suspend/resume support (not tested very much)
- named the registers
- fixed a bug that caused a major slowdown when modprobed without debug=1
- added writting support (disabled by default, modprobe with write=1)
Before you enable writting please make sure that you did a proper backup of
the data on the card. Do not use this driver ...
| Feb 11, 1:22 pm 2007 |
| Berthold Cogel | Re: Regression in kernel linux-2.6.20-rc1/2: Problems wi ...
Hi!
CONFIG_USB_SUSPEND=n does the job. But the patch from
http://bugzilla.kernel.org/show_bug.cgi?id=7828#c29 works for my system
too (with CONFIG_USB_SUSPEND=y). The bugreport was made for an ACER
Travelmate 4001 WMLi, which is almost identical to my Acer Extensa 3002
WLMi.
Regards,
Berthold
-
| Feb 11, 3:01 pm 2007 |
| previous day | today | next day |
|---|---|---|
| February 10, 2007 | February 11, 2007 | February 12, 2007 |
