Armin Schindler [Wed, 2 Feb 2005 09:47:44 +0000 (01:47 -0800)]
[PATCH] Eicon driver: add missing uaccess
This patch adds asm/uaccess.h to files which uses copy_to/from_user()
and adds the use of the drivers internal API call to copy_to/from_user()
in platform independent code.
[PATCH] ppc64 iseries: can't remove viocd module when no cdroms
This fixes a bug where attempting to remove the viocd module when no
virtual cdroms where actually present would cause an oops. The driver
was not completing its initialisation in this case.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexander Viro [Wed, 2 Feb 2005 05:21:26 +0000 (21:21 -0800)]
[PATCH] amd64 compat annotations
* new helper - ptr_to_compat(); inverse to compat_ptr(), with proper
typechecking. A lot of open-coded equivalents replaced with using
that one.
* a couple of severely misguiding places got back to sanity - we had
basically
put_user((long)p, &foo->compat_uptr_t_field);
That will, of course, cast (long)p further - to u32, but that fact is
carefully obfuscated... Sanitized by replacing (long)p in such places
with ptr_to_compat(p); fortunately, there hadn't been many of those...
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexander Viro [Wed, 2 Feb 2005 05:19:43 +0000 (21:19 -0800)]
[PATCH] uaccess.h annotations
the usual - __iomem in definition of __mm() on several platforms that
haven't got it by now, s/long/unsigned long/ for __gu_val in get_user(),
__force on places where we pass pointers to low-level __user-agnostic
primitive (__copy_tofrom_user() and its ilk).
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexander Viro [Wed, 2 Feb 2005 05:16:43 +0000 (21:16 -0800)]
[PATCH] wrong include in tda80xx.c
should include asm/irq.h, not linux/irq.h (the latter should be moved to
asm-generic, IMO - we are getting *way* too many bugs of that sort). As
it is, tda80xx breaks on some platforms (at least on ARM).
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexander Viro [Wed, 2 Feb 2005 05:16:28 +0000 (21:16 -0800)]
[PATCH] isp16 missing initcalls
* isp16_init() should be an initcall in non-modular case - it's not
called directly anymore (not since 2.5.1-pre2).
* isp16_init() and isp16_exit() made static, while we are at it.
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexander Viro [Wed, 2 Feb 2005 05:15:59 +0000 (21:15 -0800)]
[PATCH] openpromfs property_read() fix
openpromfs property_read() is slightly abused by property_write() - the
latter calls property_read(file, NULL, 0, NULL) if we still hadn't done
any IO on that file; property_read() will do setup work and, since it's
called with count equal to 0, do nothing else.
That stopped working - now we check if *ppos is sane before doing
anything else and that, of course, oopses. Trivial fix is to move the
check past that for count == 0...
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
[ARM PATCH] 2444/1: GPIO23_SCLK_md now in uppercase in pxa-regs.h
Patch from Michael Opdenacker
"GPIO23_SCLK_md" renamed to "GPIO23_SCLK_MD" (uppercase)
in include/asm-arm/arch-pxa/pxa-regs.h.
Done for consistency with all other GPIO_*_MD settings.
No other file impacted in mainstream kernel sources.
Reported by Nicolas Pouillon.
Signed-off-by: Michael Opdenacker Signed-off-by: Russell King
Thomas Gleixner [Wed, 2 Feb 2005 00:52:55 +0000 (16:52 -0800)]
[PATCH] sched: fix preemption race (Core/i386)
The idle-thread-preemption-fix.patch introduced a race, which is not
critical, but might give us an extra turn through the scheduler. When
interrupts are reenabled in entry.c and an interrupt occures before we
reach the add_preempt_schedule() in preempt_schedule we get rescheduled
again in the return from interrupt path.
The patch prevents this by leaving interrupts disabled and calling a a
seperate function preempt_schedule_irq().
This split adds different plausibility checks for irq context calls and
kernel calls.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Yes, me too. generic_shutdown_super() takes lock_super(). And udf uses
lock_super for protecting its block allocation data strutures. Trivial
deadlock on unmount.
Below is a fix to switch udf to it's own private locking. It's safe
because it doesn't intefere with VFS lock_super usage anywhere.
udf_free_inode has some more updates than simply switching the used
lock:
- clear_inode() call moved outside locked section to avoid another
deadlock
- unused variable ino killed
- is_directory moved into the conditional it's actually used in
Signed-off-by: Christoph Hellwig <hch@lst.de>
(note that I see memory corruption in UDF_I_DATA(inode), but I've
reproduced that with a kernel without all recent udf changes. I'll
debug that one further) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Zwane Mwaikambo [Wed, 2 Feb 2005 00:51:25 +0000 (16:51 -0800)]
[PATCH] OProfile: Support model 4 P4
The following processor was marked as unsupported, there are no documented
changes in the performance counter interface for this processor.
Hardware courtesy of Intel Corporation
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Genuine Intel(R) CPU 3.60GHz
stepping : 1
cpu MHz : 3600.761
cache size : 1024 KB
physical id : 0
siblings : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl tm2 cid cx16 xtpr
bogomips : 7110.65
CPU: P4 / Xeon with 2 hyper-threads, speed 3601.79 MHz (estimated)
Counted GLOBAL_POWER_EVENTS events (time during which processor is not
stopped) with a unit mask of 0x01 (count cycles when processor is active)
count 10000
Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Zwane Mwaikambo [Wed, 2 Feb 2005 00:51:11 +0000 (16:51 -0800)]
[PATCH] OProfile: Use profile_pc in oprofile_add_sample
We should be using profile_pc in oprofile_add_sample so that lock
contention is attibuted to the correct function in profile output. Also
fix SH7750 support.
Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Serge Hallyn [Wed, 2 Feb 2005 00:50:56 +0000 (16:50 -0800)]
[PATCH] audit: handle loginuid through proc
The audit subsystem uses netlink messages to request loginuid changes. Due
to the sensitivity of loginuid, netlink appears to be insufficient. For
instance, it is not easy to guarantee that the loginuid message will be
handled before any other auditable actions, and there is even the remote
possibility of the process terminating and another process with the same
pid being created before the message is handled. Finally, other kernel
code, in particular selinux, is interested in easily querying the loginuid
for inclusion in its own messages.
The following patch moves loginuid handling from netlink to the
/proc/$$/loginuid file, and adds a audit_get_loginuid() function. It also
includes Stephen Smalley's patch to correctly inherit the loginuid on fork.
It has been actively discussed on the linux-audit mailing list.
Roland Dreier [Wed, 2 Feb 2005 00:50:41 +0000 (16:50 -0800)]
[PATCH] infiniband: use LANANA-assigned major in ib_umad
Update the ib_umad module to use major 231 instead of a dynamic major, as
assigned in the LANANA Linux 2.6+ Device List
(http://lanana.org/docs/device-list/devices-2.6+.txt).
Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexander Viro [Wed, 2 Feb 2005 00:50:07 +0000 (16:50 -0800)]
[PATCH] idmouse min() fix
This got caught by gcc on 64bit boxen - IMGSIZE is size_t and that means
range not covered by that of signed 64bit, so we get an unsigned type for
IMGSIZE-*ppos. On 32bit boxen IMGSIZE-*ppos ends up being loff_t, so the
warning gets silenced.
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Add a usecs_to_jiffies() function. This will be used in one of my
subsequent patches. With the potential for dynamic HZ values much higher
than 1000, we may need to consider times as small as usecs in terms of
jiffies. We have msecs_to_jiffies(), jiffies_to_msecs() and
jiffies_to_usecs(), but no usecs_to_jiffies().
Nathan Lynch [Wed, 2 Feb 2005 00:49:24 +0000 (16:49 -0800)]
[PATCH] unexport register_cpu and unregister_cpu
We introduced exports for register_cpu and unregister_cpu right after
2.6.10. As far as I can tell these are not called from any code which can
be built as a module, and I can't think of a good reason why any out of
tree code would use them.
Mark A. Greer [Wed, 2 Feb 2005 00:49:10 +0000 (16:49 -0800)]
[PATCH] mpsc updates
This patch:
- replaces several macros with the actual code
- change the type of pointer variables from u32 to void *
- removes unecessary casts
- puts the contents of mpsc_defs.h into mpsc.h and removes the mpsc_defs.h
- reflects the new names of some structs
- cleans up some whitespace
Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
The cputime_to_secs and secs_to_cputime primitives in
include/asm-generic/cputime.h can be simplified since the default cputime
implementation assumes that cputime is measured in jiffies. The
intermediate conversion to milliseconds is superflous.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Attached is diff for bringing devices.txt uptodate with lanana.
Please note: The devices.txt file in your tree will now be for 2.6+ kernels
only. 2.6 specific allocations will now be given out more freely, and some
of the stuff marked for obsolete for 2.6 has been removed. I put a note in
the file to let people know its for 2.6+ kernels only.
I wanted to rename the new file to devices-2.6+.txt and then make a link
from the old devices.txt to this new file, but diffing it became too ugly.
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Ralf Bächle [Wed, 2 Feb 2005 00:45:19 +0000 (16:45 -0800)]
[PATCH] mips: mIPS Technologies board updates
Update the code for the three MIPS Technologies evaluation platforms.
Untangle the support for the three platforms, keep up with changes elsewhere
in the kernel and getting Atlas back to work even with the most esotheric
configurations.
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Ralf Bächle [Wed, 2 Feb 2005 00:44:48 +0000 (16:44 -0800)]
[PATCH] mips: DECstation Turbochannel updates
Update Turbochannel code. Right now the code is basically still at the state
of 2.3; with this patch applied it'll roughly on the level of the TC code in
early 2.4 with a bunch of 2.6 fixes on top. Not great but will bring the code
closer into touch with reality until Maciej has a chance to finally tackle
things.
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Ralf Bächle [Wed, 2 Feb 2005 00:44:34 +0000 (16:44 -0800)]
[PATCH] mips: DECstation updates
Update DECstation code. This still isn't usable but updates the code from
rotten to less rotten and most importantly eleminates the diff between
kernel.org and linux-mips.org tree to easy future work.
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>