]> git.hungrycats.org Git - linux/log
linux
23 years ago[bonding 2.6] fix error handling in init code
Amir Noam [Thu, 11 Sep 2003 10:53:12 +0000 (06:53 -0400)]
[bonding 2.6] fix error handling in init code

23 years ago[bonding 2.6] embed stats struct inside bonding private struct
Amir Noam [Thu, 11 Sep 2003 10:53:05 +0000 (06:53 -0400)]
[bonding 2.6] embed stats struct inside bonding private struct

23 years ago[bonding 2.6] fix OOPS in bonding driver, when removing primary
Amir Noam [Thu, 11 Sep 2003 10:52:58 +0000 (06:52 -0400)]
[bonding 2.6] fix OOPS in bonding driver, when removing primary

23 years ago[bonding 2.6] fix change active command
Amir Noam [Thu, 11 Sep 2003 10:52:50 +0000 (06:52 -0400)]
[bonding 2.6] fix change active command

23 years ago[bonding 2.6] fix kernel panic when optional feature used
Amir Noam [Thu, 11 Sep 2003 10:52:43 +0000 (06:52 -0400)]
[bonding 2.6] fix kernel panic when optional feature used

23 years ago[bonding 2.6] fix ARP monitoring bug
Amir Noam [Thu, 11 Sep 2003 10:52:35 +0000 (06:52 -0400)]
[bonding 2.6] fix ARP monitoring bug

23 years ago[bonding 2.6] fix load balance problem with high UDP Tx stress
Amir Noam [Thu, 11 Sep 2003 10:52:28 +0000 (06:52 -0400)]
[bonding 2.6] fix load balance problem with high UDP Tx stress

23 years ago[bonding 2.6] fix 802.3ad long fail over with high UDP Tx stress
Amir Noam [Thu, 11 Sep 2003 10:52:20 +0000 (06:52 -0400)]
[bonding 2.6] fix 802.3ad long fail over with high UDP Tx stress

23 years ago[PATCH] Badness in as_completed_request warning
Nick Piggin [Thu, 11 Sep 2003 00:06:46 +0000 (17:06 -0700)]
[PATCH] Badness in as_completed_request warning

Thish fixes Suparna's fsx and aio-stress and Dave Olien's concurrent
mke2fs problems.

It moves the hash adding into as_add_request.  This fixes a small bug
where a request could be added to the merge hash after being put on the
dispatch list.

It also moves responsibility for handling rbtree aliases (requests with
the same start sector) out of as_add_arq_rb and into its caller.  This
cleans up a layering problem which was causing the state machine to go
silly.  Now instead of forcing the alias out onto the dispatch list, we
chain the new request behind it, and they get sorted out at dispatch
time.

23 years ago[PATCH] ps2esdi broken
Alexander Viro [Thu, 11 Sep 2003 00:02:21 +0000 (17:02 -0700)]
[PATCH] ps2esdi broken

The PS/2 ESDI driver has some problems: a couple of typos on the modular
side and misuse of module_init():

23 years ago[PATCH] another keyboard problem solved
Andries E. Brouwer [Wed, 10 Sep 2003 09:46:16 +0000 (02:46 -0700)]
[PATCH] another keyboard problem solved

A colleague reported that the keyboard of his brandnew laptop
is dead under 2.6 while 2.4 works.

Now I once wrote

  In order to avoid interference between scancode sequences
  or mouse packets and the reponses given to commands,
  the keyboard or mouse should always be disabled before
  giving a command that requires a response, and probably
  enabled afterwards. Some keyboards or mice do the disable
  automatically in this situation, but still require an
  explicit enable afterwards.

(http://www.win.tue.nl/~aeb/linux/kbd/scancodes-9.html)

This is what happens on this laptop. The routine atkbd_probe()
probes for a keyboard, and after detecting it, enables it.
But immediately afterwards the routine atkbd_set_3() reads
the current scancode set and sets the desired set, and as a
side effect of these commands, the keyboard gets disabled again.

Thus, the keyboard enable must be moved after all command sending
has been done.

Now that I patch this area anyway: we are almost always in
scancode set 2 but send the ATKBD_CMD_SETALL_MB command
that only works in scancode set 3. At best this is useless.
At worst it confuses the keyboard. So, I put this command
in a separate routine and call that only when we really
are in scancode set 3.

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Wed, 10 Sep 2003 09:26:11 +0000 (02:26 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[ARM] Update SA1111
Russell King [Thu, 11 Sep 2003 01:08:56 +0000 (02:08 +0100)]
[ARM] Update SA1111

Combine the two initialisation functions, allow SA1111 to be built
as a module, and remove a redundant SA1111 function prototype.

23 years ago[ARM PATCH] 1656/1: Simpad board update to make it work
Holger Freyther [Wed, 10 Sep 2003 20:12:22 +0000 (21:12 +0100)]
[ARM PATCH] 1656/1: Simpad board update to make it work

Patch from Holger Freyther

Make it work ;)

23 years ago[ARM PATCH] 1654/1: Simpad PCMCIA resubmit
Holger Freyther [Wed, 10 Sep 2003 20:07:07 +0000 (21:07 +0100)]
[ARM PATCH] 1654/1: Simpad PCMCIA resubmit

Patch from Holger Freyther

This fixes initialization of PCMCIA for the SIMpad

unsigned long now user for the flag

23 years ago[ARM PATCH] 1653/1: Simpad Flash Partition resubmit
Holger Freyther [Wed, 10 Sep 2003 20:04:03 +0000 (21:04 +0100)]
[ARM PATCH] 1653/1: Simpad Flash Partition resubmit

Patch from Holger Freyther

This the the resubmit of the flash partition changes for SIMpad.

Two versions one for cramfs one for all jffs2 and also the SIM has two banks instead of one even if they're next to each other...

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Wed, 10 Sep 2003 09:18:24 +0000 (02:18 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge flint.arm.linux.org.uk:/usr/src/bk/linux-2.6
Russell King [Wed, 10 Sep 2003 09:59:46 +0000 (10:59 +0100)]
Merge flint.arm.linux.org.uk:/usr/src/bk/linux-2.6
into flint.arm.linux.org.uk:/usr/src/bk/linux-2.6-pcmcia

23 years ago[PATCH] Eicon ISDN driver: remove old devfs_handle
Armin Schindler [Wed, 10 Sep 2003 05:00:14 +0000 (22:00 -0700)]
[PATCH] Eicon ISDN driver: remove old devfs_handle

devfs_handle is not used any more.

23 years ago[PATCH] Fix SEQ_START_TOKEN typo
Joe Perches [Wed, 10 Sep 2003 04:57:53 +0000 (21:57 -0700)]
[PATCH] Fix SEQ_START_TOKEN typo

My fault.  Fix for broken aarp.c which got an extra closing parenthesis.

23 years ago[PATCH] interrupt.h needs kernel.h
Matthew Wilcox [Wed, 10 Sep 2003 02:44:42 +0000 (19:44 -0700)]
[PATCH] interrupt.h needs kernel.h

<linux/interrupt.h> uses barrier() but does not include <linux/kernel.h>.

23 years ago[PATCH] fs/exec.c whitespace cleanups
Matthew Wilcox [Wed, 10 Sep 2003 02:44:34 +0000 (19:44 -0700)]
[PATCH] fs/exec.c whitespace cleanups

Whitespace cleanup (mostly deleting trailing whitespace).

23 years ago[PATCH] 1GB stack size limit on PA-RISC
Matthew Wilcox [Wed, 10 Sep 2003 02:44:26 +0000 (19:44 -0700)]
[PATCH] 1GB stack size limit on PA-RISC

This patch introduces a 1GB stack size limit for stack-grows-up (ie
PA-RISC), as discussed previously.

23 years ago[PATCH] quieten initramfs and fix /dev permissions
Anton Blanchard [Wed, 10 Sep 2003 02:40:05 +0000 (19:40 -0700)]
[PATCH] quieten initramfs and fix /dev permissions

Dont print the contents of the initramfs, for any decent sized cpio it will
overflow the kernel ring buffer.

Also relax permissions on /dev (755 not 700).

23 years ago[PATCH] Fix initramfs permissions on directories and special files
Anton Blanchard [Wed, 10 Sep 2003 02:39:55 +0000 (19:39 -0700)]
[PATCH] Fix initramfs permissions on directories and special files

Set correct permissions on initramfs directories and special files. We dont
want to obey the umask here, so do the same thing we do on normal files -
call sys_chmod.

23 years ago[PATCH] fix oops in hvc_console
Anton Blanchard [Wed, 10 Sep 2003 02:39:47 +0000 (19:39 -0700)]
[PATCH] fix oops in hvc_console

tty_register_driver already calls tty_register_device so there is no need
to do it in hvc_console. Besides, it oopses when we do that.

23 years ago[PATCH] Remove modules.txt
Rusty Russell [Wed, 10 Sep 2003 02:39:38 +0000 (19:39 -0700)]
[PATCH] Remove modules.txt

Thanks to Stephen Hemminger for pointing out how obsolete modules.txt is.

modules.txt contains mainly ancient information which is replicated
in the kconfig help message, README, makefile.txt or the modprobe manual
page.  The only part which is not covered elsewhere is the "building
external modules" which is still being debated (and belongs under the
kbuild docs).  kmod.txt reference removed from index, too.

23 years ago[PATCH] Eicon ISDN driver: removed __devinitdata from pci_device_id.
Armin Schindler [Wed, 10 Sep 2003 02:29:39 +0000 (19:29 -0700)]
[PATCH] Eicon ISDN driver: removed __devinitdata from pci_device_id.

pci_device_id can not be marked __devinitdata,
was re-added with last update by accident.

23 years ago[PATCH] Fill in ELF OSABI in ELF headers
Matthew Wilcox [Wed, 10 Sep 2003 02:28:40 +0000 (19:28 -0700)]
[PATCH] Fill in ELF OSABI in ELF headers

This fills in the ELF EI_OSABI field.  This doesn't matter for most
architectures, but PA-RISC uses the Linux flavour of the ABI (since HPUX
uses the None flavour).

Patch by Randolph Chung.

23 years ago[PATCH] blk API update (and bug fix) to CDU535 cdrom driver
Jens Axboe [Tue, 9 Sep 2003 17:41:11 +0000 (10:41 -0700)]
[PATCH] blk API update (and bug fix) to CDU535 cdrom driver

This is a lot better than what is there know.

From: Felipe W Damasio <felipewd@terra.com.br>

 - cli-sti removal
 - blk API update
 - set_current_state
 - Remove 'panic' line.

.. and we can now remove the BROKEN_ON_SMP Kconfig annotation.

23 years ago[PATCH] get rid of warning in gscd
Jens Axboe [Tue, 9 Sep 2003 17:41:02 +0000 (10:41 -0700)]
[PATCH] get rid of warning in gscd

From: Stephen Hemminger <shemminger@osdl.org>

Compiler warning due to missing equal sign.

23 years ago[PATCH] CPU scheduler CAN_MIGRATE fix
Andrew Morton [Tue, 9 Sep 2003 17:21:46 +0000 (10:21 -0700)]
[PATCH] CPU scheduler CAN_MIGRATE fix

From: Andrew Theurer <habanero@us.ibm.com>

This change:
http://linux.bkbits.net:8080/linux-2.5/diffs/kernel/sched.c@1.202

does not seem to make sense:

#define CAN_MIGRATE_TASK(p,rq,this_cpu) \
((!idle || (jiffies - (p)->last_run > cache_decay_ticks)) &&    \
!task_running(rq, p) && \
cpu_isset(this_cpu, (p)->cpus_allowed))

It should be just the opposite; an idle cpu should be able to have a more
aggressive steal, and a busy cpu should not.

23 years ago[PATCH] sys_fadvise needs asmlinkage
Andrew Morton [Tue, 9 Sep 2003 17:21:38 +0000 (10:21 -0700)]
[PATCH] sys_fadvise needs asmlinkage

23 years ago[PATCH] Reduce random driver lock contention
Andrew Morton [Tue, 9 Sep 2003 17:21:30 +0000 (10:21 -0700)]
[PATCH] Reduce random driver lock contention

From: Matt Mackall <mpm@selenic.com>

The new locking in the random driver is consuming 60% of CPU resources in
Anton's monster power5 boxes.

Basically, when the primary pool is 7/8th full, we shut off the firehose
and go into a trickle mode to keep the pool fresh.  Saves CPU for everyone
and should make the contention drop off the charts too (though the trickle
factor might need adjusting again for Origin-class machines).

23 years ago[PATCH] fix Summit srat.h includes
Andrew Morton [Tue, 9 Sep 2003 17:21:22 +0000 (10:21 -0700)]
[PATCH] fix Summit srat.h includes

From: Dave Hansen <haveblue@us.ibm.com>

I was compiling for my plain 'ol PC, and was getting unresolved symbols
for get_memcfg_from_srat() and get_zholes_size().  The CONFIG_NUMA
definition right now allows it to be turned on for plain old X86_PC.
Does anyone know why this is?

depends on SMP && HIGHMEM64G &&
          (X86_PC || X86_NUMAQ || X86_GENERICARCH ||
                  (X86_SUMMIT && ACPI && !ACPI_HT_ONLY))

In any case, the summit code incorrectly assumes in at least 2 places
that NUMA && !NUMAQ means summit.  Someone was evidently trying to cover
the generic subarch case, but that's already taken care of by the lovely
config system and CONFIG_ACPI_SRAT.  This patch fixes those assumptions
and adds a nice little warning for people that try to #include srat.h
without having srat support turned on.

23 years ago[PATCH] mwave locking fixes
Andrew Morton [Tue, 9 Sep 2003 17:21:14 +0000 (10:21 -0700)]
[PATCH] mwave locking fixes

From: Manfred Spraul <manfred@colorfullife.com>

The mwave driver uses a user space daemon for some modem operations. The
user space daemon calls ioctl(,IOCTL_MW_GET_IPC), and the driver returns
after an interrupt arrived. The actual wait used
interruptible_sleep_on(), which can lead to lost wakeups. A local
spinlock on the stack is used to close that race, but this is broken on
SMP, perhaps even with preempt.

The attached patch fixes that by switching to the normal
add_wait_queue/test_if_race_occured/schedule/remove_wait_queue sequence.

23 years ago[PATCH] ext3: remove debug code
Andrew Morton [Tue, 9 Sep 2003 17:21:06 +0000 (10:21 -0700)]
[PATCH] ext3: remove debug code

ext3 has fancy test harness code which allows you to simulate crashes (for
testing recovery).  It will make the underlying disk start ignoring writes a
specified number of seconds after the mount.

It's inoperative without an additional offline patch anyway, and it's doing
hacky things which scared Al.  So kill it; I'll maintain it in the separate
ext3 debug patch.

23 years ago[PATCH] tidy up lib/inflate.c error messages
Andrew Morton [Tue, 9 Sep 2003 17:20:58 +0000 (10:20 -0700)]
[PATCH] tidy up lib/inflate.c error messages

From: Andre McCurdy <armcc2000@yahoo.com>

There is some inconsistency within lib/inflate.c and its users about
whether the error message text or the error() function should provide
the '\n'.

This patch tries to make everyone consistent - by removing the
newline from all message texts, and adding one to the only error()
function which did not provide it (in init/do_mounts_rd.c).

23 years ago[PATCH] really use english date in version string
Andrew Morton [Tue, 9 Sep 2003 17:20:49 +0000 (10:20 -0700)]
[PATCH] really use english date in version string

From: Andrey Borzenkov <arvidjaar@mail.ru>

LANG is not always enough to force date to english.

23 years ago[PATCH] install_page pte use-after-unmap fix
Andrew Morton [Tue, 9 Sep 2003 17:20:41 +0000 (10:20 -0700)]
[PATCH] install_page pte use-after-unmap fix

From: Rajesh Venkatasubramanian <vrajesh@eecs.umich.edu>

Don't deref the pte pointer after having kunmapped the memory it points at.

23 years ago[PATCH] remap file pages MAP_NONBLOCK fix
Andrew Morton [Tue, 9 Sep 2003 17:20:33 +0000 (10:20 -0700)]
[PATCH] remap file pages MAP_NONBLOCK fix

From: Rajesh Venkatasubramanian <vrajesh@eecs.umich.edu>

The remap_file_pages system call with MAP_NONBLOCK flag does not
install file-ptes when the required pages are not found in the
page cache. Modify the populate functions to install file-ptes
if the mapping is non-linear and the required pages are not found
in the page cache.

Patch is for test4-mm6. Compiles and boots. Patch tested using the
programs at:

http://www-personal.engin.umich.edu/~vrajesh/linux/remap-file-pages/

23 years ago[PATCH] ia32 idle using PNI monitor/mwait
Andrew Morton [Tue, 9 Sep 2003 17:20:25 +0000 (10:20 -0700)]
[PATCH] ia32 idle using PNI monitor/mwait

From: "Nakajima, Jun" <jun.nakajima@intel.com>

Attached is a patch that enables PNI (Prescott New Instructions)
monitor/mwait in the kernel idle handler.

23 years ago[PATCH] d_delete-d_lookup race fix
Andrew Morton [Tue, 9 Sep 2003 17:20:16 +0000 (10:20 -0700)]
[PATCH] d_delete-d_lookup race fix

From: Maneesh Soni <maneesh@in.ibm.com>

d_delete() calls dentry_iput() after releasing the per dentry lock.  This
can race with __d_lookup and lead to situation where we can make dentry
negative with ref count > 1.  The following patch makes dentry_iput() to
hold per dentry lock till d_inode is NULL and dentry has been removed from
d_alias list.

23 years ago[PATCH] ppp devfs oops fix
Andrew Morton [Tue, 9 Sep 2003 17:20:08 +0000 (10:20 -0700)]
[PATCH] ppp devfs oops fix

From: Christoph Hellwig <hch@infradead.org>

PPP leaves the chardev registered even if we're going to fail the modprobe.

23 years ago[PATCH] Handle NR_CPUS overflow
Andrew Morton [Tue, 9 Sep 2003 17:20:00 +0000 (10:20 -0700)]
[PATCH] Handle NR_CPUS overflow

From: john stultz <johnstul@us.ibm.com>

Don't try to support more than NR_CPUS cpus: things overflow.

Also, increase the default in config for some architectures.  (Dave
Hansen).

23 years ago[PATCH] remove duplicate includes in kernel/
Andrew Morton [Tue, 9 Sep 2003 17:19:52 +0000 (10:19 -0700)]
[PATCH] remove duplicate includes in kernel/

From: "Randy.Dunlap" <rddunlap@osdl.org>

remove duplicate #includes in kernel/

23 years ago[PATCH] sound: remove duplicate includes
Andrew Morton [Tue, 9 Sep 2003 17:19:45 +0000 (10:19 -0700)]
[PATCH] sound: remove duplicate includes

From: "Randy.Dunlap" <rddunlap@osdl.org>

remove duplicate #includes in sound/

23 years ago[PATCH] make selinux enable param config option, enabled by
Andrew Morton [Tue, 9 Sep 2003 17:19:37 +0000 (10:19 -0700)]
[PATCH] make selinux enable param config option, enabled by

From: James Morris <jmorris@redhat.com>

This patch against current bk makes the recently added SELinux boot
parameter feature a configurable option, and enables SELinux by default
when selected.  These changes were made following feedback including
discussion on the SELinux list.

The rationale for the changes is to allow SELinux to be be configured and
enabled unconditionally.  If the boot parameter option is selected, then
SELinux is now enabled unless selinux=0 is specified at the kernel command
line.

23 years ago[PATCH] Fix imm.c again
Andrew Morton [Tue, 9 Sep 2003 17:19:28 +0000 (10:19 -0700)]
[PATCH] Fix imm.c again

From: Adrian Bunk <bunk@fs.tum.de>

Earlier patch wasn't correct especially in the !CONFIG_SCSI_IZIP_EPP16
case, reading all uses of this array (IMM_MODE_STRING is used to print the
corresponding string in printks).

If I'm not misunderstanding it, CONFIG_SCSI_IZIP_EPP16 means "use 16bit
even when 32bit is requested".

It seems the right solution is

static char *IMM_MODE_STRING[] =
{
        [IMM_AUTODETECT] = "Autodetect",
        [IMM_NIBBLE]     = "SPP",
        [IMM_PS2]        = "PS/2",
        [IMM_EPP_8]      = "EPP 8 bit",
        [IMM_EPP_16]     = "EPP 16 bit",
#ifdef CONFIG_SCSI_IZIP_EPP16
        [IMM_EPP_32]     = "EPP 16 bit",
#else
        [IMM_EPP_32]     = "EPP 32 bit",
#endif
        [IMM_UNKNOWN]    = "Unknown",
};

23 years ago[PATCH] reiserfs direct-IO support
Andrew Morton [Tue, 9 Sep 2003 17:19:20 +0000 (10:19 -0700)]
[PATCH] reiserfs direct-IO support

From: Oleg Drokin <green@namesys.com>

This patch implements DirectIO support for reiserfs v3.  This is mostly a
port from 2.4.

Thanks to Mingming Cao from IBM for some clues in porting.

23 years ago[PATCH] Move ikconfig to /proc/config.gz
Andrew Morton [Tue, 9 Sep 2003 17:19:11 +0000 (10:19 -0700)]
[PATCH] Move ikconfig to /proc/config.gz

From: "Randy.Dunlap" <randy.dunlap@verizon.net>

The SuSE kernels place their ikconfig info at /proc/config.gz: in a
different place, and compressed.  We thought it was a good idea to do it
that way in 2.6 as well.

- gzip the /proc config file, put it in /proc/config.gz;

- Based on a SuSE patch by Oliver Xymoron <oxymoron@waste.org>, which was
  derived from a patch by Nicholas Leon <nicholas@binary9.net>

- change /proc/ikconfig/built_with to /proc/config_build_info;

- cleanup ikconfig init/exit entry points (static, __init, __exit);

- Makefile help from Sam Ravnborg;

DESC
ikconfig cleanup
EDESC
From: Stephen Hemminger <shemminger@osdl.org>

Simplify and cleanup the code:
- use single interface to seq_file where possible
- don't need to do as much of the /proc interface, only read
- use copy_to_user to avoid char at a time copy
- remove unneccesary globals
- use const char[] rather than const char * where possible.

Didn't change the version since interface doesn't change.

23 years ago[PATCH] compiler warning fixes for DAC960 on alpha
Andrew Morton [Tue, 9 Sep 2003 17:19:03 +0000 (10:19 -0700)]
[PATCH] compiler warning fixes for DAC960 on alpha

From: Dave Olien <dmo@osdl.org>

This patch is forwarded from Jay Estabrook at HP.  I've compiled the
patch on ia32 and ia64 machines and it's good.  I also recreated
the patch so it would apply to mm5 without fuzzy offsets.
Here's Jay's summary of the patch:

Here's a very small set of patches against 2.6.0-test4 that help the
DAC960 driver compile cleaner (gets rid of warnings on Alpha) and help
it to work on some old OEM'ed DAC960 cards that were sold in our older
Alphas.

The warnings are all concerned with "conversions to different size
without cast", as pointers and longs are same size (8-bytes) but ints
are 4-bytes, on Alpha. I don't believe the change to (long) from (int)
will affect any 32-bit architectures, but those using LP64 like Alpha,
ie SPARC64 and prolly IA64, will have the warnings go away.

The change to make the oldest acceptable firmware version 2.70 instead
of 2.73 is made spcific to Alpha, since it is only those cards that
DEC OEM'ed from Mylex that would have such (as explained a bit better
in the patch itself).

23 years ago[PATCH] dac960 devfs_name initialisation fix
Andrew Morton [Tue, 9 Sep 2003 17:18:56 +0000 (10:18 -0700)]
[PATCH] dac960 devfs_name initialisation fix

From: Andrey Borzenkov <arvidjaar@mail.ru>

DAC960.c does it incorrectly (at least in 2.6.0-test4). It will create
_directory_ /dev/rd/cNdM making it impossible to create compat block device
entry with the same name.

The right thing it to create separate directory for each controller/target as
in attached trivial patch (untested due to lack of hardware). You will need
devfsd support for this but then you will need it for cciss or cpqarray as
well and possibly for others. Which returns us to the problem of devfsd
maintenance ...

23 years ago[PATCH] monolitic_clock, timer_{tsc,hpet} and CPUFREQ
Andrew Morton [Tue, 9 Sep 2003 17:18:46 +0000 (10:18 -0700)]
[PATCH] monolitic_clock, timer_{tsc,hpet} and CPUFREQ

From: Dmitry Torokhov <dtor_core@ameritech.net>

I noticed that although timer_tsc registers cpufreq notifier to detect
frequency changes and adjust cpu_khz it does not set cyc2ns_scale.

23 years ago[PATCH] Initialise devfs_name in various block drivers
Andrew Morton [Tue, 9 Sep 2003 17:18:38 +0000 (10:18 -0700)]
[PATCH] Initialise devfs_name in various block drivers

From: Andrey Borzenkov <arvidjaar@mail.ru>

Various block drivers are currently devfs-unaware.  Andrey's patch attempts
to give them reasonable representations in devfs.

 "The attached patch suggests some possible names for non-floppy devices
  based on reading driver source.  I have to ask if these make sense.  At
  least for cciss Mandrake devfsd patch expects different names but it
  seems to be mistake (it assumes single controller always)

 "For floppy it is not as simple.  Floppy cannot use genhd and must
  create names manually; but I do not know what names are appropriate or
  expected.

 "For acsi the target/lun name may have problem of creating compat names
  (if any) by devfsd.

 "Please note that none of them created any devfs name under 2.4 as well.
   So it is not a regression ..."

23 years ago[PATCH] calibrate_tsc() fix and consolidation
Andrew Morton [Tue, 9 Sep 2003 17:18:30 +0000 (10:18 -0700)]
[PATCH] calibrate_tsc() fix and consolidation

From: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>

CONFIG_TIMER_CYCLONE doesn't build at present because calibrate_tsc() was
made static.

The patch fixes that up and moves all calibrate_tsc functions into a common
file, avoiding the current code duplication.

23 years ago[PATCH] s/spin_lock_irqrestore/spin_unlock_irqrestore
Andrew Morton [Tue, 9 Sep 2003 17:18:20 +0000 (10:18 -0700)]
[PATCH] s/spin_lock_irqrestore/spin_unlock_irqrestore

From: Vinay K Nallamothu <vinay-rc@naturesoft.net>

Fix a couple of cut-n-paste errors.

(Why on earth is a scsi driver poking at the RTC hardware?)

23 years agoFix ray_cs for new interrupt handling.
Linus Torvalds [Tue, 9 Sep 2003 15:09:55 +0000 (08:09 -0700)]
Fix ray_cs for new interrupt handling.

Damn 16-bit PCMCIA layer has no type checking. Complete crap.

23 years agoFrom Stephen Hemminger: we were trying to cast an "unsigned short"
Linus Torvalds [Tue, 9 Sep 2003 13:22:22 +0000 (06:22 -0700)]
From Stephen Hemminger: we were trying to cast an "unsigned short"
to a pointer. That was a typo.

Ack'ed by Al Viro.

23 years ago[PATCH] wl3501 with old compiler
Eyal Lebedinsky [Tue, 9 Sep 2003 09:49:25 +0000 (02:49 -0700)]
[PATCH] wl3501 with old compiler

Fix the ## handling to work with old gcc versions (spaces around the ','
to make token boundaries work).

23 years agoMake rxrpc use SEQ_START_TOKEN.
Linus Torvalds [Tue, 9 Sep 2003 09:28:36 +0000 (02:28 -0700)]
Make rxrpc use SEQ_START_TOKEN.

23 years ago[PATCH] Use SEQ_START_TOKEN in include/net/* [3/3]
Joe Perches [Tue, 9 Sep 2003 09:24:51 +0000 (02:24 -0700)]
[PATCH] Use SEQ_START_TOKEN in include/net/* [3/3]

23 years ago[PATCH] Use SEQ_START_TOKEN in include/net/* [2/3]
Joe Perches [Tue, 9 Sep 2003 09:23:49 +0000 (02:23 -0700)]
[PATCH] Use SEQ_START_TOKEN in include/net/* [2/3]

23 years ago[PATCH] Use SEQ_START_TOKEN in drivers/net/* [1/3]
Joe Perches [Tue, 9 Sep 2003 09:23:41 +0000 (02:23 -0700)]
[PATCH] Use SEQ_START_TOKEN in drivers/net/* [1/3]

23 years ago[PATCH] Fix modularization of Siemens line discipline
Stephen Hemminger [Tue, 9 Sep 2003 08:50:14 +0000 (01:50 -0700)]
[PATCH] Fix modularization of Siemens line discipline

Convert SIEMENS R3964 tty line discipline on 2.6.0-test5 to use tty_ldisc owner
instead of explicit MOD_INC/DEC.

And fix the initializer to be a much more readable C99 one.

23 years ago[PATCH] Get rid of Intermezzo warning
Stephen Hemminger [Tue, 9 Sep 2003 07:42:24 +0000 (00:42 -0700)]
[PATCH] Get rid of Intermezzo warning

There is a leftover MOD_DEC_USE_COUNT intermezzo, with no matching _INC_
anywhere.

Since it sets owner on the file system operations there should be no
need for explicit module manipulation.

23 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Tue, 9 Sep 2003 07:38:31 +0000 (00:38 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[CPUFREQ] add cpufreq_update_policy()
Dave Jones [Tue, 9 Sep 2003 22:44:43 +0000 (23:44 +0100)]
[CPUFREQ] add cpufreq_update_policy()

Add a new cpufreq_update_policy call:

Certain cpufreq policy notifers have different needs at different times.
Thus it needs to be possible to re-evaluate an already set cpufreq policy.
Note that the cpufreq policy should only be set by one person: the user.
Not any other in-kernel code [with one exception, of course: during
booting].

23 years ago[CPUFREQ] remove $Id$ tags, update filenames
Dave Jones [Tue, 9 Sep 2003 22:42:00 +0000 (23:42 +0100)]
[CPUFREQ] remove $Id$ tags, update filenames

23 years ago[CPUFREQ] Merge speedstep-smi driver.
Dave Jones [Tue, 9 Sep 2003 22:35:48 +0000 (23:35 +0100)]
[CPUFREQ] Merge speedstep-smi driver.
From: Hiroshi Miura <miura@da-cha.org>

Intel SpeedStep driver using a BIOS SMI call.

Quoting his original announcement:

"This driver is based on the information from

1. Microsoft Windows XP Document.
we can get the SMI interface values from ax=E980/int15 BIOS call.

2. Intel SpeedStep Applet Document.(from HP.com)
http://h18007.www1.hp.com/support/files/evonotebook/us/download/10631.html
" Adds code to request transition ownership when processing
the system critical resume message. When a critical hibernate occurs,
the Applet does not receive any system level notification. The change forces
the Applet to re-acquire transition ownership upon resume from a critical hibernate. "

This is informative. This saied that  something 'ownership' call is needed on SMI
interface first.

3. Grover, Andrew's int 15h patch posted to cpufreq ml
Message-ID: <F760B14C9561B941B89469F59BA3A847E96E28@orsmsx401.jf.intel.com>
code which call BIOS to get SMI values. I included it.

4. Malik Martin's rev engineering results.
call is made with BX, CX, EDI register values.
and need signature 'ISG' when call.
find function values. bx=1(get) and bx=2(set)

5. Marc Lehmann's 'speedstep' utility,
sample of assembler code to call SMI.

6. My work.
find function to return max/min freq which system supportd. (bx=4)
more values are gotten, but I cannot understand...
find 'ownership' function value(bx=0, which is other than 1 2 4..).

ToDo(in pregress)
support governor "auto" and using smi_event call, imprement auto freqchange
feature.
test on 440BX/ZX platform.

Memo
 module parameters are override result of an int 15h/eax=E890h call.
 these parameter value are gotten from Windows XP registory."

Also includes some bugfixes, updates and workarounds from me.

NB: A lot of BIOS out there are buggy. You might want to try this driver
also with Intel's default values -- smi_cmd = 0x82 and smi_port = 0xb2

23 years agoMerge http://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Tue, 9 Sep 2003 07:37:48 +0000 (00:37 -0700)]
Merge http://ppc.bkbits.net/for-linus-ppc64
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoppc64: Give us a generic local.h until we have atomic64
Anton Blanchard [Wed, 10 Sep 2003 16:55:52 +0000 (02:55 +1000)]
ppc64: Give us a generic local.h until we have atomic64

23 years agoppc64: catch bad ioctl size at compile time, from x86
Anton Blanchard [Wed, 10 Sep 2003 16:23:25 +0000 (02:23 +1000)]
ppc64: catch bad ioctl size at compile time, from x86

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Wed, 10 Sep 2003 15:52:19 +0000 (01:52 +1000)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/tmp3

23 years ago[PATCH] fix cpu_test_and_set() on UP
Guillaume Morin [Tue, 9 Sep 2003 07:32:54 +0000 (00:32 -0700)]
[PATCH] fix cpu_test_and_set() on UP

cpumask_up.h is broken. It tries to access the "mask" member although
that cpumask_t is an ulong on UP. This breaks archs which uses cpumask
functions even on UP such as s390.

23 years ago[PATCH] Fix CONFIG_PCMCIA_WL3501 with older compilers
Linus Torvalds [Tue, 9 Sep 2003 06:45:50 +0000 (23:45 -0700)]
[PATCH] Fix CONFIG_PCMCIA_WL3501 with older compilers

We only support named initializers with one leval of naming, ie that

.foo.bar = baz,

thing should go.  gcc-2.95 doesn't handle it (neither does sparse, I
think).

Replace such initializers with

.foo = {
.bar = baz,
},

instead.

23 years ago[PATCH] PA-RISC update for 2.6.0-test5
Matthew Wilcox [Tue, 9 Sep 2003 06:38:49 +0000 (23:38 -0700)]
[PATCH] PA-RISC update for 2.6.0-test5

PA-RISC updates for 2.6.0-test5.

Contributions from Paul Bame, James Bottomley, Randolph Chung, Helge
Deller, Grant Grundler, LaMont Jones, Matthew Wilcox

23 years ago[PATCH] ATM Ambassador no longer BROKEN_ON_SMP
Adrian Bunk [Tue, 9 Sep 2003 06:38:20 +0000 (23:38 -0700)]
[PATCH] ATM Ambassador no longer BROKEN_ON_SMP

Chas Williams fixed the compilation on SMP, so we can remove the Kconfig
annotation now and let people select it in the build again.

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Tue, 9 Sep 2003 06:34:41 +0000 (23:34 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into home.osdl.org:/home/torvalds/v2.5/linux

23 years agoMerge bk://ppc@ppc.bkbits.net/for-linus-ppc
Benjamin Herrenschmidt [Tue, 9 Sep 2003 23:14:00 +0000 (01:14 +0200)]
Merge bk://ppc@ppc.bkbits.net/for-linus-ppc
into kernel.crashing.org:/home/benh/kernels/for-linus-ppc

23 years agodmasound update from Christoph Hellwig
Benjamin Herrenschmidt [Tue, 9 Sep 2003 23:11:38 +0000 (01:11 +0200)]
dmasound update from Christoph Hellwig

23 years agoMerge kernel.crashing.org:/home/benh/kernels/linux-2.5
Benjamin Herrenschmidt [Tue, 9 Sep 2003 22:52:26 +0000 (00:52 +0200)]
Merge kernel.crashing.org:/home/benh/kernels/linux-2.5
into kernel.crashing.org:/home/benh/kernels/for-linus-ppc

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Tue, 9 Sep 2003 20:22:16 +0000 (06:22 +1000)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years agoMerge bk://ppc@ppc.bkbits.net/for-linus-ppc
Paul Mackerras [Tue, 9 Sep 2003 18:24:55 +0000 (04:24 +1000)]
Merge bk://ppc@ppc.bkbits.net/for-linus-ppc
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years ago[PATCH] More buggy pci drivers
Russell King [Tue, 9 Sep 2003 06:14:44 +0000 (23:14 -0700)]
[PATCH] More buggy pci drivers

This should fix all the remaining pci drivers which mark the pci device
ID tables as being discardable at run time.

23 years ago[PATCH] stable AGP pci_device_id tables
Russell King [Tue, 9 Sep 2003 06:14:34 +0000 (23:14 -0700)]
[PATCH] stable AGP pci_device_id tables

This should fix all the AGP drivers.

pci_device_id tables can not and must not be marked discardable.  They
are used for as long as the driver is registered.

23 years ago[PATCH] eicon ISDN driver: update
Armin Schindler [Tue, 9 Sep 2003 06:02:16 +0000 (23:02 -0700)]
[PATCH] eicon ISDN driver: update

Use different var-names if they are non-static,
configure 4BRI like BRI cards, fixed new /proc entries,
inline declarations for common helper functions.

23 years ago[PATCH] eicon ISDN driver: C comments
Armin Schindler [Tue, 9 Sep 2003 06:02:08 +0000 (23:02 -0700)]
[PATCH] eicon ISDN driver: C comments

changed // comments to /* */

23 years ago[PATCH] eicon ISDN driver: Kernelconfig
Armin Schindler [Tue, 9 Sep 2003 06:02:00 +0000 (23:02 -0700)]
[PATCH] eicon ISDN driver: Kernelconfig

Main divas modules now may be build in-kernel.
4BRI cards are configured together with BRI cards.

23 years ago[PATCH] eicon ISDN driver: endianess
Armin Schindler [Tue, 9 Sep 2003 06:01:52 +0000 (23:01 -0700)]
[PATCH] eicon ISDN driver: endianess

fixed endianess errors in common code part.

23 years ago[PATCH] eicon ISDN driver: list handling
Armin Schindler [Tue, 9 Sep 2003 06:01:45 +0000 (23:01 -0700)]
[PATCH] eicon ISDN driver: list handling

Fixed internel list handling for modules built-in kernel.

23 years ago[PATCH] eicon ISDN driver: debug
Armin Schindler [Tue, 9 Sep 2003 06:01:36 +0000 (23:01 -0700)]
[PATCH] eicon ISDN driver: debug

Module now can be build without debug code, necessary
if the module is built-in the kernel.

Fixed spelling typos.

23 years ago[PATCH] eicon ISDN driver: capi code fix
Armin Schindler [Tue, 9 Sep 2003 06:01:28 +0000 (23:01 -0700)]
[PATCH] eicon ISDN driver: capi code fix

Fix application memory allocation, module locking,
building in-kernel, use new internal debug api.

23 years ago[PATCH] eicon ISDN driver: memory attach
Armin Schindler [Tue, 9 Sep 2003 06:01:19 +0000 (23:01 -0700)]
[PATCH] eicon ISDN driver: memory attach

Access to cards memory now uses macros to attach
to the correct memory area of the card.

23 years ago[PATCH] IDE: Fix Power Management request race on resume
Benjamin Herrenschmidt [Tue, 9 Sep 2003 05:09:41 +0000 (22:09 -0700)]
[PATCH] IDE: Fix Power Management request race on resume

The current IDE Power Management code I wrote has a race on wakeup when
the master device got resumed, it may take a request.  At this point, a
PM resume request to a slave device of the same hwgroup would clear
hwgroup->rq and cause an Oops when the master device request completes.

This patch fixes it.  Due to the context in which PM resume requests are
sent, just not clearing hwgroup->rq for these is enough.

I also removed a useless debug message in the PM code that was
actually misleading (people though it indicated a problem while it
didn't, it's really useless) and fix a typo in a comment.

23 years ago[PATCH] IDE: Fix request handling with ide-default & ATAPI
Benjamin Herrenschmidt [Tue, 9 Sep 2003 05:09:32 +0000 (22:09 -0700)]
[PATCH] IDE: Fix request handling with ide-default & ATAPI

This fixes a bug that happens when a request gets to the IDE layer for a
drive using ide-default (that is with no subdriver attached), like a
Power Management request.  In this case, the core will wait for the
device status to match drive->read_stat, but that field contains by
default a value that is not suitable for ATAPI devices.  This patch
fixes it.

23 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Tue, 9 Sep 2003 05:07:51 +0000 (22:07 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into home.osdl.org:/home/torvalds/v2.5/linux

23 years ago[SERIAL] Introduce per-port capabilities.
Russell King [Tue, 9 Sep 2003 16:23:36 +0000 (17:23 +0100)]
[SERIAL] Introduce per-port capabilities.

This allows us to maintain quirks or capabilities on a per-port basis,
so we can handle buggy clones more effectively.

23 years ago[SERIAL] Fix another missing irqreturn_t (clps711x.c)
Russell King [Tue, 9 Sep 2003 14:33:12 +0000 (15:33 +0100)]
[SERIAL] Fix another missing irqreturn_t (clps711x.c)

23 years ago[SERIAL] Convert serial config deps to select statements
Russell King [Tue, 9 Sep 2003 14:26:47 +0000 (15:26 +0100)]
[SERIAL] Convert serial config deps to select statements

The dependencies for CONFIG_SERIAL_CORE / CONFIG_SERIAL_CORE_CONSOLE
were becoming very messy.  This cset converts the dependencies to
use "select" statements instead.