]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] BSD disklabel: handle more than 8 partitions
Roland McGrath [Tue, 14 Sep 2004 00:51:24 +0000 (17:51 -0700)]
[PATCH] BSD disklabel: handle more than 8 partitions

NetBSD allows 16 partitions, not just 8.  This patch both ups the number,
and makes the recognition code tell you if the count in the disklabel
exceeds the number supported by the kernel.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] small <linux/hardirq.h> tweaks
Christoph Hellwig [Tue, 14 Sep 2004 00:51:13 +0000 (17:51 -0700)]
[PATCH] small <linux/hardirq.h> tweaks

- I misspelled CONFIG_PREEMPT CONFIG_PREEPT as various people noticed.
  But in fact that ifdef should just go, else we'll get drivers that
  compile with CONFIG_PREEMPT but not without sooner or later.

- remove unused hardirq_trylock and hardirq_endlock

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix uninitialized warnings in mempolicy.c
Jesse Barnes [Tue, 14 Sep 2004 00:51:00 +0000 (17:51 -0700)]
[PATCH] fix uninitialized warnings in mempolicy.c

err may be used uninitialized in mempolicy.c in both compat_set_mempolicy
and compat_mbind.  This patch fixes that by setting them both to 0.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add support for word-length UART registers
Deepak Saxena [Tue, 14 Sep 2004 00:50:46 +0000 (17:50 -0700)]
[PATCH] Add support for word-length UART registers

UARTS on several Intel IXP2000 systems are connected in such a way that
they can only be addressed using full word accesses instead of bytes.
Following patch adds a UPIO_MEM32 io-type to identify these UARTs.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] block highmem flushes
Jens Axboe [Tue, 14 Sep 2004 00:50:33 +0000 (17:50 -0700)]
[PATCH] block highmem flushes

Add a couple of missing cache flushes to the bouncing code.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove CONFIG_UML_SMP
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:50:21 +0000 (17:50 -0700)]
[PATCH] uml: remove CONFIG_UML_SMP

Using CONFIG_UML_SMP and then making CONFIG_SMP = CONFIG_UML_SMP is useless
(there was a reason in 2.4, to have different help texts, but not now).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: smp build fix
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:50:09 +0000 (17:50 -0700)]
[PATCH] uml: smp build fix

From: Sonny Rao <sonny@burdell.org>

Make the SMP code compile, at least, to make testing possible, and remove
its dependency on CONFIG_BROKEN.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove commented old code in Kconfig
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:49:54 +0000 (17:49 -0700)]
[PATCH] uml: remove commented old code in Kconfig

Drop a config option which has disappeared from all archs.  Btw, this
shouldn't be in the UML-specific part, but since we cannot include generic
Kconfigs to avoid problem with hardware-related configs, it's duplicated
for now.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: refer to CONFIG_USERMODE, not to CONFIG_UM
Paolo \'Blaisorblade\' Giarrusso [Tue, 14 Sep 2004 00:49:42 +0000 (17:49 -0700)]
[PATCH] uml: refer to CONFIG_USERMODE, not to CONFIG_UM

Correct one Kconfig dependency, which should refer to CONFIG_USERMODE
rather than to CONFIG_UM.

We should also figure out how to make the config process work better for
UML.  We would like to make UML able to "source drivers/Kconfig" and have
the right drivers selectable (i.e.  LVM, ramdisk, and so on) and the ones
for actual hardware excluded.  I've been reading such a request even from
Jeff Dike at the last Kernel Summit, (in the lwn.net coverage) but without
any followup.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: disable pending signals across a reboot
Jeff Dike [Tue, 14 Sep 2004 00:49:28 +0000 (17:49 -0700)]
[PATCH] uml: disable pending signals across a reboot

On reboot, all signals and signal sources are disabled so that
late-arriving signals don't show up after the reboot exec, confusing the
new image, which is not expecting signals yet.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix binary layout assumption
Jeff Dike [Tue, 14 Sep 2004 00:49:16 +0000 (17:49 -0700)]
[PATCH] uml: fix binary layout assumption

This patch calculates section boundaries differently so as to not get
tripped up by holes in the binary such as are introduced by exec-shield.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix scheduler race
Jeff Dike [Tue, 14 Sep 2004 00:49:04 +0000 (17:49 -0700)]
[PATCH] uml: fix scheduler race

This fixes a use-after-free bug in the context switching.  A process going
out of context after exiting wakes up the next process and then kills
itself.  The problem is that when it gets around to killing itself is up to
the host and can happen a long time later, including after the incoming
process has freed its stack, and that memory is possibly being used for
something else.

The fix is to have the incoming process kill the exiting process just to
make sure it can't be running at the point that its stack is freed.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: eliminate useless thread field
Jeff Dike [Tue, 14 Sep 2004 00:48:53 +0000 (17:48 -0700)]
[PATCH] uml: eliminate useless thread field

This patch eliminates use of task.thread.kernel_stack.  It was unnecessary,
confusing, and was masking some kernel stack size assumptions.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove ghash.h
Jeff Dike [Tue, 14 Sep 2004 00:48:40 +0000 (17:48 -0700)]
[PATCH] uml: remove ghash.h

Remove dependency on ghash.h.  Remvoe ghash.h, too.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] HVCS fix to replace yield with tty_wait_until_sent in hvcs_close
Ryan S. Arnold [Tue, 14 Sep 2004 00:48:26 +0000 (17:48 -0700)]
[PATCH] HVCS fix to replace yield with tty_wait_until_sent in hvcs_close

Following the same advice you gave in a recent hvc_console patch I have
modified HVCS to remove a while() { yield(); } from hvcs_close() which may
cause problems where real time scheduling is concerned and replaced it with
tty_wait_until_sent() which uses a real wait queue and is the proper method
for blocking a tty operation while waiting for data to be sent.  This patch
has been tested to verify that all the paths of code that were changed were
hit during the code run and performed as expected including hotplug remove
of hvcs adapters and hangup of ttys.

- Replaced yield() in hvcs_close() with tty_wait_until_sent() to prevent
  possible lockup with realtime scheduling.

- Removed hvcs_final_close() and reordered cleanup operations to prevent
  discarding of pending data during an hvcs_close() call.

- Removed spinlock protection of hvcs_struct data members in
  hvcs_write_room() and hvcs_chars_in_buffer() because they aren't needed.

Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] blk: max_sectors tunables
Ingo Molnar [Tue, 14 Sep 2004 00:48:14 +0000 (17:48 -0700)]
[PATCH] blk: max_sectors tunables

Introduces two new /sys/block values:

  /sys/block/*/queue/max_hw_sectors_kb
  /sys/block/*/queue/max_sectors_kb

max_hw_sectors_kb is the maximum that the driver can handle and is
readonly.  max_sectors_kb is the current max_sectors value and can be tuned
by root.  PAGE_SIZE granularity is enforced.

It's all locking-safe and all affected layered drivers have been updated as
well.  The patch has been in testing for a couple of weeks already as part
of the voluntary-preempt patches and it works just fine - people use it to
reduce IDE IRQ handling latencies.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add prctl to modify current->comm
Andi Kleen [Tue, 14 Sep 2004 00:48:01 +0000 (17:48 -0700)]
[PATCH] Add prctl to modify current->comm

This patch adds a prctl to modify current->comm as shown in /proc.  This
feature was requested by KDE developers.  In KDE most programs are started by
forking from a kdeinit program that already has the libraries loaded and some
other state.

Problem is to give these forked programs the proper name.  It already writes
the command line in the environment (as seen in ps), but top uses a different
field in /proc/pid/status that reports current->comm.  And that was always
"kdeinit" instead of the real command name.  So you ended up with lots of
kdeinits in your top listing, which was not very useful.

This patch adds a new prctl PR_SET_NAME to allow a program to change its comm
field.

I considered the potential security issues of a program obscuring itself with
this interface, but I don't think it matters much because a program can
already obscure itself when the admin uses ps instead of top.  In case of a
KDE desktop calling everything kdeinit is much more obfuscation than the
alternative.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove exports from audit code
Christoph Hellwig [Tue, 14 Sep 2004 00:47:51 +0000 (17:47 -0700)]
[PATCH] remove exports from audit code

Tons of exports in the new audit code, but not a single module that
actually uses one of them.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mark dq_list_lock static
Christoph Hellwig [Tue, 14 Sep 2004 00:47:38 +0000 (17:47 -0700)]
[PATCH] mark dq_list_lock static

Only used in dq_list_lock these days.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mark md_interrupt_thread static
Christoph Hellwig [Tue, 14 Sep 2004 00:47:27 +0000 (17:47 -0700)]
[PATCH] mark md_interrupt_thread static

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] make kmem_find_general_cachep static in slab.c
Christoph Hellwig [Tue, 14 Sep 2004 00:47:15 +0000 (17:47 -0700)]
[PATCH] make kmem_find_general_cachep static in slab.c

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] __copy_to_user() check in cdrom_read_cdda_old()
Jesper Juhl [Tue, 14 Sep 2004 00:47:02 +0000 (17:47 -0700)]
[PATCH] __copy_to_user() check in cdrom_read_cdda_old()

akpm: really, reads are supposed to return the number-of-bytes-read on faults,
or -EFAULT of no bytes were read.  This patch returns either zero or -EFAULT,
ignoring any successfully transferred data.  But the user interface (whcih is
an ioctl()) was never set up to do that.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Allocate correct amount of memory for pid hash
Anton Blanchard [Tue, 14 Sep 2004 00:46:50 +0000 (17:46 -0700)]
[PATCH] Allocate correct amount of memory for pid hash

We are now allocating twice as much memory as required.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: Copyright file_setup trivia
Hugh Dickins [Tue, 14 Sep 2004 00:46:38 +0000 (17:46 -0700)]
[PATCH] shmem: Copyright file_setup trivia

I _think_ shmem_file_setup is protected against negative loff_t size by the
TASK_SIZE in each arch, but prefer the security of an explicit test.  Wipe
those parentheses off its return(file), and update our Copyright.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: rework majmin and ZERO_PAGE
Hugh Dickins [Tue, 14 Sep 2004 00:46:25 +0000 (17:46 -0700)]
[PATCH] shmem: rework majmin and ZERO_PAGE

Very minor adjustments to shmem_getpage return path: I now prefer it to return
NULL and let do_shmem_file_read use ZERO_PAGE(0) in that case; and we don't
need a local majmin variable, do_no_page initializes *type to VM_FAULT_MINOR
already.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: avoid the shmem_inodes list
Hugh Dickins [Tue, 14 Sep 2004 00:46:13 +0000 (17:46 -0700)]
[PATCH] shmem: avoid the shmem_inodes list

If we're thinking about shmem scalability...  isn't it silly that each shmem
object is added to the shmem_inodes list on creation, and removed on deletion,
yet the only use for that list is in swapoff (shmem_unuse)?

Call it shmem_swaplist; shmem_writepage add inode to swaplist when first swap
allocated (usually never); shmem_delete_inode remove inode from the list after
truncating (if called before, inode could be re-added to it).

Inode can remain on the swaplist after all its pages are swapped back in, just
be lazy about it; but if shmem_unuse finds swapped count now 0, save itself
time by then removing that inode from the swaplist.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: no sbinfo for tmpfs mount?
Hugh Dickins [Tue, 14 Sep 2004 00:46:01 +0000 (17:46 -0700)]
[PATCH] shmem: no sbinfo for tmpfs mount?

Some might want a tmpfs mount with the improved scalability afforded by
omitting shmem superblock accounting; or some might just want to test it in an
externally-visible tmpfs mount instance.

Adopt the convention that mount option -o nr_blocks=0,nr_inodes=0 means
without resource limits, and hence no shmem_sb_info.  Not recommended for
general use, but no worse than ramfs.

Disallow remounting from unlimited to limited (no accounting has been done so
far, so no idea whether it's permissible), and from limited to unlimited
(because we'd need then to free the sbinfo, and visit each inode to reset its
i_blocks to 0: why bother?).

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: no sbinfo for shm mount
Hugh Dickins [Tue, 14 Sep 2004 00:45:49 +0000 (17:45 -0700)]
[PATCH] shmem: no sbinfo for shm mount

SGI investigations have shown a dramatic contrast in scalability between
anonymous memory and shmem objects.  Processes building distinct shmem objects
in parallel hit heavy contention on shmem superblock stat_lock.  Across 256
cpus an intensive test runs 300 times slower than anonymous.

Jack Steiner has observed that all the shmem superblock free_blocks and
free_inodes accounting is redundant in the case of the internal mount used for
SysV shared memory and for shared writable /dev/zero objects (the cases which
most concern them): it specifically declines to limit.

Based upon Brent Casavant's SHMEM_NOSBINFO patch, this instead just removes
the shmem_sb_info structure from the internal kernel mount, testing where
necessary for null sbinfo pointer.  shmem_set_size moved within CONFIG_TMPFS,
its arg named "sbinfo" as elsewhere.

This brings shmem object scalability up to that of anonymous memory, in the
case where distinct processes are building (faulting to allocate) distinct
objects.  It significantly improves parallel building of a shared shmem object
(that test runs 14 times faster across 256 cpus), but other issues remain in
that case: to be addressed in later patches.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: inodes and links need lowmem
Hugh Dickins [Tue, 14 Sep 2004 00:45:36 +0000 (17:45 -0700)]
[PATCH] shmem: inodes and links need lowmem

Keith Mannthey's Bugzilla #3268 drew attention to how tmpfs inodes and
dentries and long names and radix-tree nodes pin lowmem.  Assuming about 1k of
lowmem per inode, we need to lower the default nr_inodes limit on machines
with significant highmem.

Be conservative, but more generous than in the original patch to Keith: limit
to number of lowmem pages, which works out around 200,000 on i386.  Easily
overridden by giving the nr_inodes= mount option: those who want to sail
closer to the rocks should be allowed to do so.

Notice how tmpfs dentries cannot be reclaimed in the way that disk-based
dentries can: so even hard links need to be costed.  They are cheaper than
inodes, but easier all round to charge the same.  This way, the limit for hard
links is equally visible through "df -i": but expect occasional bugreports
that tmpfs links are being treated like this.

Would have been simpler just to move the free_inodes accounting from
shmem_delete_inode to shmem_unlink; but that would lose the charge on unlinked
but open files.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] shmem: don't SLAB_HWCACHE_ALIGN
Hugh Dickins [Tue, 14 Sep 2004 00:45:23 +0000 (17:45 -0700)]
[PATCH] shmem: don't SLAB_HWCACHE_ALIGN

Anton recently removed SLAB_HWCACHE_ALIGN from the fs inode caches, now do the
same for tmpfs inode cache: fits 9 per page where 7 before.

Was saying SLAB_RECLAIM_ACCOUNT too, but that's wrong: tmpfs inodes are not
reclaimed under pressure; and hugetlbfs had copied that too.

Rearrange shmem_inode_info fields so those most likely to be needed are most
likely to be in the same cacheline as the spinlock guarding them.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pnpbios parser bugfix
Matthieu Castet [Tue, 14 Sep 2004 00:45:11 +0000 (17:45 -0700)]
[PATCH] pnpbios parser bugfix

this patch fix a pnpbios problem with independant
resource(http://bugzilla.kernel.org/show_bug.cgi?id=3295) :
the old code assume that they are given at the beggining (before any
SMALL_TAG_STARTDEP entry), but in some case there are found after
SMALL_TAG_ENDDEP entry.

tag : 6 SMALL_TAG_STARTDEP
tag : 8 SMALL_TAG_PORT
tag : 6 SMALL_TAG_STARTDEP
tag : 8 SMALL_TAG_PORT
tag : 7 SMALL_TAG_ENDDEP
tag : 4 SMALL_TAG_IRQ   <-- independant resource
tag : f SMALL_TAG_END

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] searching for parameters in 'make menuconfig'
Yuval Turgeman [Tue, 14 Sep 2004 00:44:59 +0000 (17:44 -0700)]
[PATCH] searching for parameters in 'make menuconfig'

I added the ability to search for parameters in make menuconfig (find a
given parameter's location in the tree).

You use '/' to invoke the feature.  Regular expression searches are supported.

Signed-off-by: Yuval Turgeman <yuvalt@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: pmac cpufreq for ibook 2 600
Benjamin Herrenschmidt [Tue, 14 Sep 2004 00:44:46 +0000 (17:44 -0700)]
[PATCH] ppc32: pmac cpufreq for ibook 2 600

This patch adds support for the 750CX based ibook2 600Mhz to the cpufreq
powermac driver.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: remove -Wno-uninitialized
Anton Blanchard [Tue, 14 Sep 2004 00:44:34 +0000 (17:44 -0700)]
[PATCH] ppc32: remove -Wno-uninitialized

Remove -Wno-uninitialized on ppc32 too.  Ive just found a number of real bugs
on ppc64 by doing the same.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: improved VSID allocation algorithm
David Gibson [Tue, 14 Sep 2004 00:44:21 +0000 (17:44 -0700)]
[PATCH] ppc64: improved VSID allocation algorithm

This patch has been tested both on SLB and segment table machines.  This
new approach is far from the final word in VSID/context allocation, but
it's a noticeable improvement on the old method.

Replace the VSID allocation algorithm.  The new algorithm first generates a
36-bit "proto-VSID" (with 0xfffffffff reserved).  For kernel addresses this
is equal to the ESID (address >> 28), for user addresses it is:

(context << 15) | (esid & 0x7fff)

These are distinguishable from kernel proto-VSIDs because the top bit is
clear.  Proto-VSIDs with the top two bits equal to 0b10 are reserved for
now.

The proto-VSIDs are then scrambled into real VSIDs with the multiplicative
hash:

VSID = (proto-VSID * VSID_MULTIPLIER) % VSID_MODULUS
where VSID_MULTIPLIER = 268435399 = 0xFFFFFC7
VSID_MODULUS = 2^36-1 = 0xFFFFFFFFF

This scramble is 1:1, because VSID_MULTIPLIER and VSID_MODULUS are co-prime
since VSID_MULTIPLIER is prime (the largest 28-bit prime, in fact).

This scheme has a number of advantages over the old one:

- We now have VSIDs for every kernel address (i.e.  everything above
  0xC000000000000000), except the very top segment.  That simplifies a
  number of things.

- We allow for 15 significant bits of ESID for user addresses with 20
  bits of context.  i.e.  8T (43 bits) of address space for up to 1M
  contexts, significantly more than the old method (although we will need
  changes in the hash path and context allocation to take advantage of
  this).

- Because we use a real multiplicative hash function, we have better and
  more robust hash scattering with this VSID algorithm (at least based on
  some initial results).

Because the MODULUS is 2^n-1 we can use a trick to compute it efficiently
without a divide or extra multiply.  This makes the new algorithm barely
slower than the old one.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hvc: uninitialised variable
Anton Blanchard [Tue, 14 Sep 2004 00:44:08 +0000 (17:44 -0700)]
[PATCH] hvc: uninitialised variable

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: Fix spurious warnings uncovered by -Wno-uninitialized removal
Anton Blanchard [Tue, 14 Sep 2004 00:43:55 +0000 (17:43 -0700)]
[PATCH] ppc64: Fix spurious warnings uncovered by -Wno-uninitialized removal

Here are fixes for some false positives.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: Fix real bugs uncovered by -Wno-uninitialized removal
Anton Blanchard [Tue, 14 Sep 2004 00:43:43 +0000 (17:43 -0700)]
[PATCH] ppc64: Fix real bugs uncovered by -Wno-uninitialized removal

The removal of -Wno-uninitialized on ppc64 revealed a number of real
bugs.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: remove -Wno-uninitialized
Anton Blanchard [Tue, 14 Sep 2004 00:43:30 +0000 (17:43 -0700)]
[PATCH] ppc64: remove -Wno-uninitialized

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: clean up idle loop code
Anton Blanchard [Tue, 14 Sep 2004 00:43:18 +0000 (17:43 -0700)]
[PATCH] ppc64: clean up idle loop code

Clean up our idle loop code:

- Remove a bunch of useless includes and make most functions static
- There were places where we werent disabling interrupts before checking
  need_resched then calling the hypervisor to sleep our thread. We might
  race with an IPI and end up missing a reschedule. Disable interrupts
  around these regions to make them safe.
- We forgot to turn off the polling flag when exiting the dedicated_idle
  idle loop. This could have resulted in all manner problems as other
  cpus would avoid sending IPIs to force reschedules.
- Add a missing check for cpu_is_offline in the shared cpu idle loop.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: enable POWER5 low power mode in idle loop
Anton Blanchard [Tue, 14 Sep 2004 00:43:06 +0000 (17:43 -0700)]
[PATCH] ppc64: enable POWER5 low power mode in idle loop

Now that we understand (and have fixed) the problem with using low power mode
in the idle loop, lets enable it.  It should save a fair amount of power.

(The problem was that our exceptions were inheriting the low power mode and so
were executing at a fraction of the normal cpu issue rate.  We fixed it by
always bumping our priority to medium at the start of every exception).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: restore smt-enabled=off kernel command line option
Anton Blanchard [Tue, 14 Sep 2004 00:42:54 +0000 (17:42 -0700)]
[PATCH] ppc64: restore smt-enabled=off kernel command line option

Restore the smt-enabled=off kernel command line functionality:

- Remove the SMT_DYNAMIC state now that smt_snooze_delay allows for the
  same thing.
- Remove the early prom.c parsing for the option, put it into an
  early_param instead.
- In setup_cpu_maps honour the smt-enabled setting

Note to Nathan: In order to allow cpu hotplug add of secondary threads after
booting with smt-enabled=off, I had to initialise cpu_present_map to
cpu_online_map in smp_cpus_done.  Im not sure how you want to handle this but
it seems our present map currently does not allow cpus to be added into the
partition that werent there at boot (but were in the possible map).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: use early_param
Anton Blanchard [Tue, 14 Sep 2004 00:42:41 +0000 (17:42 -0700)]
[PATCH] ppc64: use early_param

Make use of Rusty's early_param code. Its good stuff.

We appear to be the first user :)

Move vpa_init and idle_setup later in boot, we dont have to do them
right up front in setup_system.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: remove EEH command line device matching code
Anton Blanchard [Tue, 14 Sep 2004 00:42:28 +0000 (17:42 -0700)]
[PATCH] ppc64: remove EEH command line device matching code

We have had reports of people attempting to disable EEH on POWER5 boxes.  This
is not supported, and the device will most likely not respond to config space
reads/writes.  Remove the IBM location matching code that was being used to
disable devices as well as the global option.

We already have the ability to ignore EEH erros via the panic_on_oops sysctl
option, advanced users should make use of that instead.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: remove unused ppc64_calibrate_delay
Anton Blanchard [Tue, 14 Sep 2004 00:42:16 +0000 (17:42 -0700)]
[PATCH] ppc64: remove unused ppc64_calibrate_delay

- Remove ppc64_calibrate_delay, no longer used
- Formatting fixups

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: clean up kernel command line code
Anton Blanchard [Tue, 14 Sep 2004 00:42:04 +0000 (17:42 -0700)]
[PATCH] ppc64: clean up kernel command line code

Clean up some of our command line code:

- We were copying the command line out of the device tree twice, but the
  first time we forgot to add CONFIG_CMDLINE. Fix this and remove the
  second copy.
- The command line birec code ran after we had done some command line
  parsing in prom.c. This had the opportunity to really confuse the
  user, with some options being parsed out of the device tree and the
  other out of birecs. Luckily we could find no user of the command
  line birecs, so remove them.
- remove duplicate printing of kernel command line;
- clean up iseries inits and create an iSeries_parse_cmdline.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: use nm --synthetic where available
Anton Blanchard [Tue, 14 Sep 2004 00:41:51 +0000 (17:41 -0700)]
[PATCH] ppc64: use nm --synthetic where available

On new toolchains we need to use nm --synthetic or we miss code symbols.  Sam,
I'm not thrilled about this patch but Im not sure of an easier way.  Any ideas?

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: give the kernel an OPD section
Anton Blanchard [Tue, 14 Sep 2004 00:41:39 +0000 (17:41 -0700)]
[PATCH] ppc64: give the kernel an OPD section

From: Alan Modra <amodra@bigpond.net.au>

Give the kernel an OPD section, required for recent ppc64 toolchains.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: Enable NUMA API
Anton Blanchard [Tue, 14 Sep 2004 00:41:27 +0000 (17:41 -0700)]
[PATCH] ppc64: Enable NUMA API

Plumb the NUMA API syscalls into ppc64.  Also add some missing cond_syscalls
so we still link with NUMA API disabled.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: RTAS error logs can appear twice in dmesg
Anton Blanchard [Tue, 14 Sep 2004 00:41:15 +0000 (17:41 -0700)]
[PATCH] ppc64: RTAS error logs can appear twice in dmesg

I've started seeing rtas errors printed twice.  Remove the second call to
printk_log_rtas.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: remove SPINLINE config option
Anton Blanchard [Tue, 14 Sep 2004 00:41:03 +0000 (17:41 -0700)]
[PATCH] ppc64: remove SPINLINE config option

After the spinlock rework, CONFIG_SPINLINE doesnt work and causes a compile
error.  Remove it for now.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: lparcfg whitespace and wordwrap cleanup.
Will Schmidt [Tue, 14 Sep 2004 00:40:51 +0000 (17:40 -0700)]
[PATCH] ppc64: lparcfg whitespace and wordwrap cleanup.

This patch is the result of running Lindent against
arch/ppc64/kernel/lparcfg.c.

This cleans up an assortment of whitespace and wordwrap inconsistencies.

Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: lparcfg fixes for processor counts
Will Schmidt [Tue, 14 Sep 2004 00:40:39 +0000 (17:40 -0700)]
[PATCH] ppc64: lparcfg fixes for processor counts

This patch corrects how the lparcfg interface was presenting the number of
active and potential processors.  (As reported in LTC bugzilla number 10889).

- Correct output for partition_potential_processors and
  system_active_processors.
- suppress pool related values in scenarios where they do not make
  sense. (non-shared processor configurations)
- Display pool_capacity as a percentage, to match the behavior from
  iSeries code.

Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Pointer dereference before NULL check in ACPI thermal driver
Dave Jones [Tue, 14 Sep 2004 00:40:27 +0000 (17:40 -0700)]
[PATCH] Pointer dereference before NULL check in ACPI thermal driver

Again, found with coverity's checker.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ES7000 subarch update
Jason Davis [Tue, 14 Sep 2004 00:40:15 +0000 (17:40 -0700)]
[PATCH] ES7000 subarch update

The patch below implements an algorithm to determine an unique GSI override
for mapping GSIs to IO-APIC pins correctly.  GSI overrides are required in
order for ES7000 machines to function properly since IRQ to pin mappings
are NOT all one-to-one.  This patch applies only to the Unisys specific
ES7000 machines and has been tested thoroughly on several models of the
ES7000 line.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix schedstats null deref in sched_exec
Nathan Lynch [Tue, 14 Sep 2004 00:40:03 +0000 (17:40 -0700)]
[PATCH] fix schedstats null deref in sched_exec

In sched_exec, schedstat_inc will dereference a null pointer if no domain
is found with the SD_BALANCE_EXEC flag set.  This was exposed during
testing of the previous patches where cpus are temporarily attached to a
dummy domain without SD_BALANCE_EXEC set.

Signed-off-by: Nathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 13 Sep 2004 09:09:54 +0000 (02:09 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 2093/1: S3C2410 - remove un-necessary resource from NAND
Ben Dooks [Tue, 14 Sep 2004 00:52:16 +0000 (01:52 +0100)]
[ARM PATCH] 2093/1: S3C2410 - remove un-necessary resource from NAND

Patch from Ben Dooks

Removed resource description left by copying error

Thanks to Klaus Fetscher for pointing this out.

Signed-off-by: Ben Dooks
22 years ago[ARM PATCH] 2092/1: S3C2410 - gpio bugfix and additions
Ben Dooks [Tue, 14 Sep 2004 00:47:50 +0000 (01:47 +0100)]
[ARM PATCH] 2092/1: S3C2410 - gpio bugfix and additions

Patch from Ben Dooks

Fix inverted mask in s3c2410_gpio_setpin() function,
add s3c2410_modify_misccr() for shared register, and
add s3c2410_gpio_getpin()

Signed-off-by: Ben Dooks
22 years ago[ARM PATCH] 2091/1: S3C2410 - change id of s3c2410-ohci
Ben Dooks [Tue, 14 Sep 2004 00:43:25 +0000 (01:43 +0100)]
[ARM PATCH] 2091/1: S3C2410 - change id of s3c2410-ohci

Patch from Ben Dooks

Fix missed ID change on s3c2410-usb

Signed-off-by: Ben DOoks
22 years ago[ARM PATCH] 2090/2: S3C2410 - usb gadged (udc) include
Ben Dooks [Tue, 14 Sep 2004 00:39:13 +0000 (01:39 +0100)]
[ARM PATCH] 2090/2: S3C2410 - usb gadged (udc) include

Patch from Ben Dooks

Header file for USB gadget controller (udc) for the
Samsung S3C2410 SoC

Signed-off-by: Herbert Poetzl
Signed-off-by: Ben Dooks
22 years ago[ARM] Revive kapmd and provide apm_queue_event()
Russell King [Tue, 14 Sep 2004 00:33:33 +0000 (01:33 +0100)]
[ARM] Revive kapmd and provide apm_queue_event()

Add kapmd thread to provide a process context to handle "APM"
events submitted via apm_queue_event().

Add apm_queue_event(), which can be called from hardware
interrupt handlers and the like, typically to fire off a
suspend.

22 years ago[ARM] Update APM state definitions
Russell King [Tue, 14 Sep 2004 00:28:34 +0000 (01:28 +0100)]
[ARM] Update APM state definitions

Move existing APM state definitions into struct apm_power_info,
and add further definitions describing other fields.

22 years ago[ARM] Keep APM threads frozen
Russell King [Tue, 14 Sep 2004 00:22:23 +0000 (01:22 +0100)]
[ARM] Keep APM threads frozen

Ensure threads waiting for suspend to occur in apm_ioctl are
not woken by the pm_suspend thread freezing - they're already
frozen.

22 years ago[ARM] No point having "nonblock" local variable - kill it.
Russell King [Tue, 14 Sep 2004 00:18:17 +0000 (01:18 +0100)]
[ARM] No point having "nonblock" local variable - kill it.

22 years ago[ARM] Convert suspend to a state machine.
Russell King [Tue, 14 Sep 2004 00:13:03 +0000 (01:13 +0100)]
[ARM] Convert suspend to a state machine.

The original version had issues when two suspend events came
in at around the same time, causing APM to get confused:
threads became stuck in APM_IOC_SUSPEND and suspends_pending
incremented on each apm --suspend call.

Now, we only add a suspend event to a users queue and increment
suspends_pending if the user isn't already in the middle of
handling a suspend event.

22 years ago[ARM] Remove APM standby support - it's unused.
Russell King [Tue, 14 Sep 2004 00:04:59 +0000 (01:04 +0100)]
[ARM] Remove APM standby support - it's unused.

22 years ago[ARM] APM: "Battery life" needs to be a signed integer.
Russell King [Mon, 13 Sep 2004 23:59:57 +0000 (00:59 +0100)]
[ARM] APM: "Battery life" needs to be a signed integer.

22 years ago[ARM] Convert APM user list lock to r/w sem
Russell King [Mon, 13 Sep 2004 23:52:50 +0000 (00:52 +0100)]
[ARM] Convert APM user list lock to r/w sem

Convert user_list_lock spinlock to a read/write semaphore;
the spinlock was affording us very little protection.

22 years ago[ARM] Abstract APM circular queue object.
Russell King [Mon, 13 Sep 2004 23:43:47 +0000 (00:43 +0100)]
[ARM] Abstract APM circular queue object.

22 years ago[ARM] Convert list_for_each()/list_entry() to list_for_each_entry()
Russell King [Mon, 13 Sep 2004 23:38:26 +0000 (00:38 +0100)]
[ARM] Convert list_for_each()/list_entry() to list_for_each_entry()

22 years ago[ARM] Remove the hh.org H3600 "example" code.
Russell King [Mon, 13 Sep 2004 23:34:49 +0000 (00:34 +0100)]
[ARM] Remove the hh.org H3600 "example" code.

22 years ago[ARM] Fix ARM APM emulation sparse errors
Russell King [Mon, 13 Sep 2004 23:28:23 +0000 (00:28 +0100)]
[ARM] Fix ARM APM emulation sparse errors

arch/arm/kernel/apm.c:57:16: warning: dubious one-bit signed bitfield
arch/arm/kernel/apm.c:58:17: warning: dubious one-bit signed bitfield
arch/arm/kernel/apm.c:59:17: warning: dubious one-bit signed bitfield
arch/arm/kernel/apm.c:60:23: warning: dubious one-bit signed bitfield

22 years ago[PATCH] linux/dma-mapping.h needs linux/device.h
Nicolas Pitre [Mon, 13 Sep 2004 08:11:27 +0000 (01:11 -0700)]
[PATCH] linux/dma-mapping.h needs linux/device.h

It seems that most architectures already include linux/device.h in their
own asm/dma-mapping.h.  Most but not all, and some drivers fail to
compile on those architectures that don't.  Since everybody needs it
let's include device.h from one place only and fix compilation for
everybody.

22 years ago[PATCH] isofs buffer management fix
Andrew Morton [Mon, 13 Sep 2004 07:05:42 +0000 (00:05 -0700)]
[PATCH] isofs buffer management fix

There's a double-free in the isofs filesystem.

Invalidate this pointer so it doesn't get freed twice.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Backward compatibility for compat sched_getaffinity
Anton Blanchard [Mon, 13 Sep 2004 07:05:30 +0000 (00:05 -0700)]
[PATCH] Backward compatibility for compat sched_getaffinity

The follow patch special cases the NR_CPUS <= BITS_PER_COMPAT_LONG case.
Without this patch, a 32bit task would be required to have a 64bit
cpumask no matter what value of NR_CPUS are used.

With this patch a compat long sized bitmask is allowed if NR_CPUS is
small enough to fit within it.

Of course applications should be using the glibc wrappers that use an
opaque cpu_mask_t type, but there could be older applications using the
syscalls directly.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Clean up compat sched affinity syscalls
Anton Blanchard [Mon, 13 Sep 2004 07:05:18 +0000 (00:05 -0700)]
[PATCH] Clean up compat sched affinity syscalls

Remove the set_fs hack in the compat affinity calls. Create
sched_getaffinity and sched_setaffinity helper functions that both the
native and compat affinity syscalls use.

Also make the compat functions match what the native ones are doing now,
setaffinity calls succeed no matter what length the bitmask is, but
getaffinity calls must pass in bitmasks at least as long as the kernel
type.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge http://lia64.bkbits.net/linux-ia64-release-2.6.9
Linus Torvalds [Mon, 13 Sep 2004 06:56:28 +0000 (23:56 -0700)]
Merge http://lia64.bkbits.net/linux-ia64-release-2.6.9
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/stephane
Tony Luck [Mon, 13 Sep 2004 18:55:39 +0000 (18:55 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/work/stephane
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years agoMerge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus
Tony Luck [Mon, 13 Sep 2004 18:53:43 +0000 (18:53 +0000)]
Merge agluck-lia64.sc.intel.com:/data/home/aegl/BK/Linus
into agluck-lia64.sc.intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.9

22 years ago[IA64] Makefile: fix for the PTRACE_SYSCALL corruption bug
Stéphane Eranian [Mon, 13 Sep 2004 18:48:29 +0000 (18:48 +0000)]
[IA64] Makefile: fix for the PTRACE_SYSCALL corruption bug

Thanks to David for his help in tracking it down.

  compile the kernel with sibling call optimization
  turned off. There is a problem with all functions
  using the optimization and the asmlinkage attribute.
  The compiler should not perform the optimization on
  these functions because it cannot preserve the syscall
  parameters in the callee. This caused SIGSEGV on programs
  traced with PTRACE_SYSCALL, for instance.

signed-off-by: stephane eranian <eranian@hpl.hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoExport new PCI iomem access interfaces to modules too.
Linus Torvalds [Mon, 13 Sep 2004 06:47:41 +0000 (23:47 -0700)]
Export new PCI iomem access interfaces to modules too.

22 years agoAdd skeleton "generic IO mapping" infrastructure.
Linus Torvalds [Mon, 13 Sep 2004 04:32:00 +0000 (21:32 -0700)]
Add skeleton "generic IO mapping" infrastructure.

Jeff wants to use this to clean up SATA and some network drivers.

22 years ago[PATCH] ide: small cleanup for sis5513
Bartlomiej Zolnierkiewicz [Mon, 13 Sep 2004 02:41:04 +0000 (19:41 -0700)]
[PATCH] ide: small cleanup for sis5513

Sigh, Thomas Gleixner pointed out that his
sis5518 fix didn't need forward porting.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoLinux 2.6.9-rc2 v2.6.9-rc2
Linus Torvalds [Sun, 12 Sep 2004 15:08:55 +0000 (08:08 -0700)]
Linux 2.6.9-rc2

22 years ago[PATCH] fbdev/radeonfb: Remove bugus radeonfb_read/write
Benjamin Herrenschmidt [Sun, 12 Sep 2004 15:08:19 +0000 (08:08 -0700)]
[PATCH] fbdev/radeonfb: Remove bugus radeonfb_read/write

This patch kills the bogus radeonfb_read/write routines. In order to do so,
it adds a new member to fb_info, along with screen_base, which is screen_size,
indicating the mapped area. The default fb_read/write will now use that instead
of fix->smem_len if it is non-0, and radeonfb now sets it to the mapped size
of the framebuffer.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64:Fix missing register in altivec context switch
Benjamin Herrenschmidt [Sun, 12 Sep 2004 15:08:08 +0000 (08:08 -0700)]
[PATCH] ppc64:Fix missing register in altivec context switch

This is a resend of a patch sent in July and that got lost somewhat,
the "VSCR" register wasn't restored properly from the context on
load_up_altivec (typo), please apply the fix:

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Sun, 12 Sep 2004 12:36:16 +0000 (05:36 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Sun, 12 Sep 2004 18:42:11 +0000 (11:42 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Sun, 12 Sep 2004 16:21:10 +0000 (09:21 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[TCP]: Fix fack_count handling in tcp_sacktag_write_queue().
David S. Miller [Sun, 12 Sep 2004 10:31:20 +0000 (03:31 -0700)]
[TCP]: Fix fack_count handling in tcp_sacktag_write_queue().

22 years ago[SK98LIN]: Kill dangling netdev->last_stats reference.
David S. Miller [Sun, 12 Sep 2004 10:28:24 +0000 (03:28 -0700)]
[SK98LIN]: Kill dangling netdev->last_stats reference.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Fix notification on address change via rtnetlink.
Thomas Graf [Sun, 12 Sep 2004 10:03:26 +0000 (03:03 -0700)]
[NET]: Fix notification on address change via rtnetlink.

Only send NETDEV_CHANGEADDR notifies for address and broadcast changes.
Notify is also sent out if only one of the 2 changes is successful.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NETFILTER]: Fix conntrack seq_file handling.
Rusty Russell [Sun, 12 Sep 2004 10:00:47 +0000 (03:00 -0700)]
[NETFILTER]: Fix conntrack seq_file handling.

Am travelling, but this passed simple tests here.  If this isn't going
in, the current seqfile stuff should be ripped out; it's a mess.

/proc/net/ip_conntrack was changed over to seq_file.  However,
seq_file isn't a great fit (a linked list which is changing is not a
good candidate for seq file), and the conversion was done badly.

1) Don't do allocation: simply hand the pointer head of the correct chain.
2) Actually output the original tuple.
3) Lock only when actually traversing hash chain.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Improve netdev->hard_start_xmit() documentation.
Andi Kleen [Sun, 12 Sep 2004 09:55:52 +0000 (02:55 -0700)]
[NET]: Improve netdev->hard_start_xmit() documentation.

With improvements by Francois Romieu and David
S. Miller.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[NET]: Use NETDEV_TX_* macros instead of magic numbers.
Jamal Hadi Salim [Sun, 12 Sep 2004 09:53:16 +0000 (02:53 -0700)]
[NET]: Use NETDEV_TX_* macros instead of magic numbers.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 years agoMerge conflicts with Linus's sparse ioremap() work.
David S. Miller [Sun, 12 Sep 2004 09:37:10 +0000 (02:37 -0700)]
Merge conflicts with Linus's sparse ioremap() work.

22 years agoMerge conflicts with Linus's ioremap sparse changes.
David S. Miller [Sun, 12 Sep 2004 09:33:37 +0000 (02:33 -0700)]
Merge conflicts with Linus's ioremap sparse changes.

22 years ago[TG3]: Need tx_lock in tg3_set_rx_mode().
David S. Miller [Sun, 12 Sep 2004 09:27:49 +0000 (02:27 -0700)]
[TG3]: Need tx_lock in tg3_set_rx_mode().

Noticed by Eric Lemoine.

Signed-off-by: David S. Miller <davem@davemloft.net>
22 years ago[IPVS]: Do not use skb_checksum_help(), create and use nf_reset_debug()
Julian Anastasov [Sun, 12 Sep 2004 09:26:08 +0000 (02:26 -0700)]
[IPVS]: Do not use skb_checksum_help(), create and use nf_reset_debug()

Appended is a 2nd version that uses nf_reset_debug.

- do not use skb_checksum_help in input path as ipvs can handle
incoming CHECKSUM_HW packets

- do not use skb_checksum_help in forwarding path

- claim that checksum is valid (CHECKSUM_NONE) when entering output
path for out->in packets

- do not reset/destroy the nfct in IP_VS_XMIT, the intention is to
reset the debugging field just to avoid log floods from nf_debug_ip_*
functions, it is known that the ipvs packets traverse other
hooks, eg. LOCAL_IN->LOCAL_OUT. Use nf_reset_debug instead of nf_reset.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>