]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] Handle empty nodes in sysfs on x86-64
Andi Kleen [Sat, 15 May 2004 03:41:14 +0000 (20:41 -0700)]
[PATCH] Handle empty nodes in sysfs on x86-64

This code is shared between i386 and x86-64, and x86-64 needs to check
for empty nodes here.  Otherwise you can get oopses at boot in some
circumstances.

This handles empty nodes != 0; empty node zero are still broken in other
ways.

22 years ago[PATCH] x86-64: fix /dev/mem caching behaviour
Andi Kleen [Sat, 15 May 2004 03:41:03 +0000 (20:41 -0700)]
[PATCH] x86-64: fix /dev/mem caching behaviour

This changes the /dev/mem caching behaviour on x86-64 to be compatible
with i386.

By default everything is set cached.

This actually makes WC MTRRs on AMD systems work, which would get
overriden by the UC PAT bits that were set earlier.  This can make DVD
decoding with hardware support a lot faster.

It also supports O_SYNC now, like i386, although that is not really
safe, because it allows the user to create undefined cache attribute
conflicts that can corrupt caches in some circumstances.  I kept it for
now.  Better would to disallow it, until Terrence Ripperda's PAT
framework is getting merged, that can avoid these problems.

Actually it would be probably a good idea to add a printk here to catch
broken programs for i386 and x86-64, but that is for another patch.

22 years ago[PATCH] x86-64 updates
Andi Kleen [Sat, 15 May 2004 03:40:53 +0000 (20:40 -0700)]
[PATCH] x86-64 updates

Various accumulated x86-64 patches and bug fixes.

It fixes one nasty bug that has been there since NX is used by
default in the kernel. With heavy AGP memory allocation it would
set NX on parts of the kernel mapping in some corner cases, which gave
endless crash loops. Thanks goes to some wizards in AMD debug labs
for getting a trace out of this.

Also various other fixes. This patches only changes x86-64 specific
files, i have some changes outside too that I am sending separately.

 - Fix help test for CONFIG_NUMA
 - Don't enable SMT nice on CMP
 - Move HT and MWAIT checks up to generic code
 - Update defconfig
 - Remove duplicated includes (Arthur Othieno)
 - Set up GSI entry for ACPI SCI correctly (from i386)
 - Fix some comments
 - Fix threadinfo printing in oopses
 - Set task alignment to 16 bytes
 - Handle NX bit for code pages correctly in change_page_attr()
 - Use generic nops for non amd specific kernel
 - Add __KERNEL__ checks in unistd.h (David Lee)

22 years agoFix bogus debug code in usb/misc/cytherm.c
Linus Torvalds [Sat, 15 May 2004 03:38:09 +0000 (20:38 -0700)]
Fix bogus debug code in usb/misc/cytherm.c

Uncovered by recent cleanup of "dev_dbg()".

22 years ago[PATCH] i2o_config build fix
Andrew Morton [Sat, 15 May 2004 03:27:04 +0000 (20:27 -0700)]
[PATCH] i2o_config build fix

Stomp a C99ism.

22 years ago[PATCH] Fix botched fbdev lvalue conversion
Andrew Morton [Sat, 15 May 2004 03:26:53 +0000 (20:26 -0700)]
[PATCH] Fix botched fbdev lvalue conversion

22 years ago[PATCH] typhoon locking fix
Andrew Morton [Sat, 15 May 2004 03:26:42 +0000 (20:26 -0700)]
[PATCH] typhoon locking fix

Initialise the semaphore even if !MODULE

22 years ago[PATCH] radeonfb stack space fix
Andrew Morton [Sat, 15 May 2004 03:26:32 +0000 (20:26 -0700)]
[PATCH] radeonfb stack space fix

These (unused) arrays are causing huge stack utilisation when instantiated in
an auto variable.  Remove them for now.

22 years ago[PATCH] bootmem.c cleanup
Andrew Morton [Sat, 15 May 2004 03:26:21 +0000 (20:26 -0700)]
[PATCH] bootmem.c cleanup

From: Michael Buesch <mbuesch@freenet.de>

- BUG_ON() conversion

- Remove redundant dump_stack() (BUG already does that)

22 years ago[PATCH] groups_alloc(0) clobbers memory past end of block
Andrew Morton [Sat, 15 May 2004 03:26:11 +0000 (20:26 -0700)]
[PATCH] groups_alloc(0) clobbers memory past end of block

From: Olaf Kirch <okir@suse.de>

Authentication code in net/sunrpc makes frequent use of groups_alloc(0),
which seems to clobber memory past the end of what it allocated.

If called with gidsetsize == 0, groups_alloc will set nblocks = 0,
but still does a

group_info->blocks[0] = group_info->small_block;

22 years ago[PATCH] ac97_plugin_ad1980 porting fix
Andrew Morton [Sat, 15 May 2004 03:26:00 +0000 (20:26 -0700)]
[PATCH] ac97_plugin_ad1980 porting fix

From: "Uwe Bugla" <uwe.bugla@gmx.de>

Fix up a mistake in the 2.4->2.6 forward-port of this driver.

22 years ago[PATCH] Increase xfsbufd_centisecs when in laptop mode
Andrew Morton [Sat, 15 May 2004 03:25:50 +0000 (20:25 -0700)]
[PATCH] Increase xfsbufd_centisecs when in laptop mode

From: Bart Samwel <bart@samwel.tk>

The attached patch is the outcome of a discussion with Nathan.

When laptop mode is active, there is no need for XFS to wake up xfsbufd (the
daemon that flushes buffers that are too old) too often.  The default is once
every second, this patch makes laptop mode do it once every 30 seconds.

22 years ago[PATCH] Laptop mode control script support for XFS *_centisecs sysctl values.
Andrew Morton [Sat, 15 May 2004 03:25:39 +0000 (20:25 -0700)]
[PATCH] Laptop mode control script support for XFS *_centisecs sysctl values.

From: Bart Samwel <bart@samwel.tk>

XFS now uses
/proc/sys/fs/xfs/xfssyncd_centisecs
/proc/sys/fs/xfs/xfsbufd_centisecs
/proc/sys/fs/xfs/age_buffer_centisecs

Here's a patch to support these values in the laptop mode control script.

22 years ago[PATCH] remove unused acpi_irq_to_vector()
Andrew Morton [Sat, 15 May 2004 03:25:29 +0000 (20:25 -0700)]
[PATCH] remove unused acpi_irq_to_vector()

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

Now that everybody has acpi_gsi_to_irq(), we can nuke the deprecated
acpi_irq_to_vector().  No references remain.

22 years ago[PATCH] floppy.c: better/cleaner use of debugt
Andrew Morton [Sat, 15 May 2004 03:25:17 +0000 (20:25 -0700)]
[PATCH] floppy.c: better/cleaner use of debugt

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

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

floppy_debugt.patch: better use of the debugt functions.

22 years ago[PATCH] floppy.c: better floppy_init error handling
Andrew Morton [Sat, 15 May 2004 03:25:08 +0000 (20:25 -0700)]
[PATCH] floppy.c: better floppy_init error handling

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

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

Adds a better audit for floppy_init().  Fixes one real bug (in calling
blk_queue_max_sectors()).

22 years ago[PATCH] Export `laptop_mode' for XFS
Andrew Morton [Sat, 15 May 2004 03:24:57 +0000 (20:24 -0700)]
[PATCH] Export `laptop_mode' for XFS

From: <bart@samwel.tk>

XFS needs `laptop_mode'.

22 years ago[PATCH] Remove old sh-sci driver
Andrew Morton [Sat, 15 May 2004 03:24:47 +0000 (20:24 -0700)]
[PATCH] Remove old sh-sci driver

From: Paul Mundt <lethal@linux-sh.org>

The old drivers/char sh-sci driver is no long used by anyone, both sh and
h8300 are using the drivers/serial version at this point, so we can get rid
of the old one entirely.

22 years ago[PATCH] Fix x86_64 allmodconfig with gcc-3.4.0
Andrew Morton [Sat, 15 May 2004 03:24:36 +0000 (20:24 -0700)]
[PATCH] Fix x86_64 allmodconfig with gcc-3.4.0

From: Andi Kleen <ak@muc.de>

*** Warning: "memcmp" [drivers/atm/zatm.ko] undefined!

gcc 3.4 specific problem.  This patch should fix it.  Actually it would be
better to move all these EXPORT_SYMBOLs into lib/string.c, it is silly that
each arch has to duplicate all that.

22 years ago[PATCH] remove driver model code in mwave driver
Andrew Morton [Sat, 15 May 2004 03:24:25 +0000 (20:24 -0700)]
[PATCH] remove driver model code in mwave driver

From: Christoph Hellwig <hch@lst.de>

Someone blindly added sysfs support to the driver long time ago without
understanding the implications (and if they were understood the driver
would need half a rewrite for it).  Herber Xu recently noticed the problems
this causes on unload, so let's if 0 out all that code and get the driver
working again.

22 years ago[PATCH] Make /proc/sysrq-trigger ignore sysrq_enabled
Andrew Morton [Sat, 15 May 2004 03:24:15 +0000 (20:24 -0700)]
[PATCH] Make /proc/sysrq-trigger ignore sysrq_enabled

It's silly that writing to /proc/sysrq-trigger does nothing if you haven't
enabled /proc/sys/kernel/sysrq.  So provide a new __handle_sysrq() which
ignores the sysrq_enabled check.

The patch also withdraws __handle_sysrq_nolock() from the kernel API.  It had
no callers.

22 years ago[PATCH] x86_64 msr.c warning fix
Andrew Morton [Sat, 15 May 2004 03:24:04 +0000 (20:24 -0700)]
[PATCH] x86_64 msr.c warning fix

arch/x86_64/kernel/msr.c:1:10: warning: extra tokens at end of #ident directive

22 years ago[PATCH] fix aic7xxx_old.c for !PCI
Andrew Morton [Sat, 15 May 2004 03:23:54 +0000 (20:23 -0700)]
[PATCH] fix aic7xxx_old.c for !PCI

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

drivers/scsi/aic7xxx_old.c: In function `aic7xxx_release':
drivers/scsi/aic7xxx_old.c:10971: warning: implicit declaration of function `pci_release_regions'

22 years ago[PATCH] fix tlan.c for !PCI
Andrew Morton [Sat, 15 May 2004 03:23:43 +0000 (20:23 -0700)]
[PATCH] fix tlan.c for !PCI

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

drivers/net/tlan.c: In function `tlan_remove_one':
drivers/net/tlan.c:449: warning: implicit declaration of function `pci_release_regions'

22 years ago[PATCH] fix cyclades compile with !PCI
Andrew Morton [Sat, 15 May 2004 03:23:33 +0000 (20:23 -0700)]
[PATCH] fix cyclades compile with !PCI

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

drivers/char/cyclades.c: In function `cy_cleanup_module':
drivers/char/cyclades.c:5638: warning: implicit declaration of function `pci_release_regions'

22 years ago[PATCH] Fix endianess in modpost when cross-compiling for sparc on i386
Andrew Morton [Sat, 15 May 2004 03:23:22 +0000 (20:23 -0700)]
[PATCH] Fix endianess in modpost when cross-compiling for sparc on i386

From: Mathieu Chouquet-Stringer <mchouque@online.fr>

This patch makes the following code work again:

#ifdef STT_REGISTER
                if (info->hdr->e_machine == EM_SPARC ||
                    info->hdr->e_machine == EM_SPARCV9) {
                        /* Ignore register directives. */
                        if (ELF_ST_TYPE(sym->st_info) == STT_REGISTER)
                                break;
                }
#endif

This portion of code is sparc specific and nothing else in modpost.c uses
e_machine meaning cross-compiling for sparc on i386 (or any little endian
machine) is the only way to experience the bug.

Without it, e_machine has the wrong value and modpost then generates a lot
of "*** Warning: \"symbol\" [filename.ko] undefined" messages.

22 years ago[PATCH] m68k: use print_modules()
Andrew Morton [Sat, 15 May 2004 03:23:12 +0000 (20:23 -0700)]
[PATCH] m68k: use print_modules()

From: Geert Uytterhoeven <geert@linux-m68k.org>

22 years ago[PATCH] implement print_modules()
Andrew Morton [Sat, 15 May 2004 03:23:01 +0000 (20:23 -0700)]
[PATCH] implement print_modules()

From: Arjan van de Ven <arjanv@redhat.com>,
      Rusty Russell <rusty@rustcorp.com.au>

The patch below resolves the "Not Yet Implemented" print_modules() thing.
This is a really useful feature for distros; it allows us to do statistical
analysis on which modules are present how often in oopses compared to how
often they are used normally.  In addition it helps to spot candidates for
certain bugs without having to go back to the customer asking for this
information.

22 years ago[PATCH] Fix reiserfs oom crash
Andrew Morton [Sat, 15 May 2004 03:22:51 +0000 (20:22 -0700)]
[PATCH] Fix reiserfs oom crash

From: Oleg Drokin <green@linuxhacker.ru>

Thanks to Standford guys, a case where reiserfs can dereference NULL
pointer if memory allocation fail during mount was identified.

22 years ago[PATCH] fix block layer ioctl bug
Andrew Morton [Sat, 15 May 2004 03:22:41 +0000 (20:22 -0700)]
[PATCH] fix block layer ioctl bug

From: Alan Cox <alan@redhat.com>

The block layer checks for -EINVAL from block layer driver ioctls.  This is
wrong - ENOTTY is unknown and some drivers correctly use this.  I suspect
for an internal ioctl 2.7 should change to -ENOIOCTLCMD and bitch about old
style returns

This is conservative fix for the 2.6 case, it keeps the bogus -EINVAL to
avoid breaking stuff

22 years ago[PATCH] fix linux doc errors
Andrew Morton [Sat, 15 May 2004 03:22:30 +0000 (20:22 -0700)]
[PATCH] fix linux doc errors

From: Alan Cox <alan@redhat.com>

22 years ago[PATCH] security: minor cleanups in capability.c
Andrew Morton [Sat, 15 May 2004 03:22:19 +0000 (20:22 -0700)]
[PATCH] security: minor cleanups in capability.c

From: Chris Wright <chrisw@osdl.org>

Remove confusing error message when loading as secondary module, and ditch
conditional MY_NAME macro.

22 years ago[PATCH] security: remove empty build of capability.o
Andrew Morton [Sat, 15 May 2004 03:22:09 +0000 (20:22 -0700)]
[PATCH] security: remove empty build of capability.o

From: Chris Wright <chrisw@osdl.org>

The build includes capability.c when CONFIG_SECURITY=n, yet the whole file is
ifdef'd out.  Remove unnecessary build step as well as superfluous ifdefs.

22 years ago[PATCH] PCI debug compile fix in sis_router_probe()
Andrew Morton [Sat, 15 May 2004 03:21:58 +0000 (20:21 -0700)]
[PATCH] PCI debug compile fix in sis_router_probe()

From: Pavel Roskin <proski@gnu.org>

I get a compile error when I define "DEBUG" in arch/i386/pci/pci.h.  Variable
rt is not defined in sis_router_probe(), file arch/i386/pci/irq.c.

22 years ago[PATCH] calculate NGROUPS_PER_BLOCK from PAGE_SIZE
Andrew Morton [Sat, 15 May 2004 03:21:48 +0000 (20:21 -0700)]
[PATCH] calculate NGROUPS_PER_BLOCK from PAGE_SIZE

From: Greg Edwards <edwardsg@sgi.com>

On ia64, EXEC_PAGESIZE (max page size) is 65536, but the default page size is
16k.  This results in NGROUPS_PER_BLOCK in include/linux/sched.h being
calculated incorrectly when the page size is anything other than 64k.  For
example, on a 16k page size kernel, a setgroups() call with a gidsetsize of
65536 will end up walking over memory since only 1/4 of the needed pages were
allocated for the blocks[] array in the group_info struct.

Patch below calculates NGROUPS_PER_BLOCK from PAGE_SIZE instead.

22 years ago[PATCH] dquot_release oops fix
Andrew Morton [Sat, 15 May 2004 03:21:37 +0000 (20:21 -0700)]
[PATCH] dquot_release oops fix

From: Jan Kara <jack@ucw.cz>

Fix a null-pointer-deref oops in the quota code.

22 years ago[PATCH] videodev: handle class_register() failure
Andrew Morton [Sat, 15 May 2004 03:21:27 +0000 (20:21 -0700)]
[PATCH] videodev: handle class_register() failure

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

From: <WHarms@bfs.de>(Walter Harms)

(acked by Gerd)

22 years ago[PATCH] Update laptop mode control script with XFS_HZ=100
Andrew Morton [Sat, 15 May 2004 03:21:16 +0000 (20:21 -0700)]
[PATCH] Update laptop mode control script with XFS_HZ=100

From: Bart Samwel <bart@samwel.tk>

The laptop mode control script incorrectly guesses XFS_HZ=1000.  This is
incorrect, since the patches that made XFS use USER_HZ went into 2.6.6 as
well.  This changes XFS_HZ to 100 and removes the warning from the doc about
checking XFS_HZ.

22 years ago[PATCH] Watchdog timer for Intel IXP4xx CPUs
Andrew Morton [Sat, 15 May 2004 03:21:06 +0000 (20:21 -0700)]
[PATCH] Watchdog timer for Intel IXP4xx CPUs

From: Deepak Saxena <dsaxena@plexity.net>

Following patch adds a driver for the watchdogs on the Intel IXP4xx family of
network processors (ARM).

22 years ago[PATCH] Fix AladdinCard entry in parport_pc
Andrew Morton [Sat, 15 May 2004 03:20:55 +0000 (20:20 -0700)]
[PATCH] Fix AladdinCard entry in parport_pc

From: Christian Groessler <cpg@aladdin.de>

Our AladdinCard also uses the oxsemi_840 chips and locks up when ecp mode
is enabled.

22 years ago[PATCH] create_workqueue locking fix
Andrew Morton [Sat, 15 May 2004 03:20:44 +0000 (20:20 -0700)]
[PATCH] create_workqueue locking fix

Fix some silliness in there.

22 years ago[PATCH] laptop-mode documentation fix
Andrew Morton [Sat, 15 May 2004 03:20:34 +0000 (20:20 -0700)]
[PATCH] laptop-mode documentation fix

From: Sau Dan Lee <danlee@informatik.uni-freiburg.de>

The script /etc/acpi/actions/battery.sh in the document doesn't run,
because of a wrong name.

22 years ago[PATCH] ib700wdt watchdog driver fix #2
Andrew Morton [Sat, 15 May 2004 03:20:24 +0000 (20:20 -0700)]
[PATCH] ib700wdt watchdog driver fix #2

From: Patrice Bouchand <PBouchand@cyberdeck.com>

The value written in the WDT_STOP register is not important.  As soon as
something is written, the watchdog timer stops.  But things will be cleaner
if we use the following patch.

22 years ago[PATCH] ib700wdt watchdog driver fix
Andrew Morton [Sat, 15 May 2004 03:20:13 +0000 (20:20 -0700)]
[PATCH] ib700wdt watchdog driver fix

From: Patrice Bouchand <PBouchand@cyberdeck.com>

ibwdt_ping(): we should write the current timeout's index into the holdoff
register, not the timeout's value in seconds.

22 years ago[PATCH] expose backing dev max read-ahead
Andrew Morton [Sat, 15 May 2004 03:20:03 +0000 (20:20 -0700)]
[PATCH] expose backing dev max read-ahead

From: Jens Axboe <axboe@suse.de>

Expose the blockdev's VM readahead in /sys/block/hda/queue/read_ahead_kbytes

This duplicates `blockdev --setra', but we're trying to get away from
ioctls.

It would be nice to have a readahead-setting mechanism which also allows,
say, NFS to be tuned.  But there is no common exposure point for
backing_dev_infos.  One option might be per-superblock:

mount -o remount,read_ahead_kbytes=64

but the generic remount code also has no visibility of the backing_dev, so it
would need a new super_block operation.  One which doesn't accidentally modify
default_backing_dev_info.

22 years ago[PATCH] efivars: check that it's enabled
Andrew Morton [Sat, 15 May 2004 03:19:52 +0000 (20:19 -0700)]
[PATCH] efivars: check that it's enabled

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

EFI-enabled kernels crash on non-EFI machines.  efivars_init() and
efivars_exit() need to check efi_enabled instead of assuming that the
system is using EFI.

22 years ago[PATCH] make buildcheck
Andrew Morton [Sat, 15 May 2004 03:19:35 +0000 (20:19 -0700)]
[PATCH] make buildcheck

From: Arjan van de Ven <arjanv@redhat.com>

the patch below adds a "make buildcheck" target which checks for the "uses
exit in init" bug using Keith Owen's script.  In the future other similar
sanity checks can be added to this target, but even just this one has been
quite useful already.  I use it in the kernel rpm build process for
example, and I'm sure the OSDL build testers can/want to use it too.

From: Keith Owens <kaos@ocs.com.au>

  They commented out the progress print statements, I prefer to have them
  present but no big deal.  The licence is missing.

22 years ago[PATCH] Include Aliases in kallsyms
Andrew Morton [Sat, 15 May 2004 03:19:25 +0000 (20:19 -0700)]
[PATCH] Include Aliases in kallsyms

From: Rusty Russell <rusty@rustcorp.com.au>

Kallsyms discards symbols with the same address, but these are sometimes
useful.  Skip this minor optimization and make kallsyms_lookup deal with
aliases

22 years ago[PATCH] show last kernel-image symbol in /proc/kallsyms
Andrew Morton [Sat, 15 May 2004 03:19:11 +0000 (20:19 -0700)]
[PATCH] show last kernel-image symbol in /proc/kallsyms

From: Rusty Russell <rusty@rustcorp.com.au>

The current code doesn't show the last symbol (usually _einittext) in
/proc/kallsyms.  The reason for this is subtle: s_start() returns an empty
string for position 0 (ignored by s_show()), and s_next() returns the first
symbol for position 1.

What should happen is that update_iter() for position 0 should fill in the
first symbol.  Unfortunately, the get_ksymbol_core() fills in the symbol
information, *and* updates the iterator: we have to split these functions,
which we do by making it return the length of the name offset.

Then we can call get_ksymbol_core() without moving the iterator, meaning
that we can call it at position 0 (ie.  s_start()).

22 years ago[PATCH] slabify iocontext + request_queue
Andrew Morton [Sat, 15 May 2004 03:19:00 +0000 (20:19 -0700)]
[PATCH] slabify iocontext + request_queue

From: Jens Axboe <axboe@suse.de>

Move both request_queue and io_context allocation to a slab cache.

This is mainly a space-saving exercise.  Some setups have a lot of disks
and the kmalloc rounding-up can consume significant amounts of memory.

22 years ago[PATCH] i2o_proc module owner fix
Andrew Morton [Sat, 15 May 2004 03:18:50 +0000 (20:18 -0700)]
[PATCH] i2o_proc module owner fix

From: Warren Togami <wtogami@redhat.com>

22 years ago[PATCH] Fix i2o_proc kernel panic on access of /proc/i2o/iop0/lct
Andrew Morton [Sat, 15 May 2004 03:18:39 +0000 (20:18 -0700)]
[PATCH] Fix i2o_proc kernel panic on access of /proc/i2o/iop0/lct

From: Markus Lidel <Markus.Lidel@shadowconnect.com>

The patch converts i2o_proc to seq_file, thereby fixing a bug in the
i2o_proc.c module, where the kernel panics, if you access /proc/i2o/iop0/lct
and read more then 1024 bytes of it.

22 years ago[PATCH] fbdev: Q40 fbdev updates.
Andrew Morton [Sat, 15 May 2004 03:18:28 +0000 (20:18 -0700)]
[PATCH] fbdev: Q40 fbdev updates.

From: James Simmons <jsimmons@infradead.org>

It ports this driver to sysfs api and fixes a colormap issue.

22 years ago[PATCH] fbdev: Fix fbcon and unimap
Andrew Morton [Sat, 15 May 2004 03:18:18 +0000 (20:18 -0700)]
[PATCH] fbdev: Fix fbcon and unimap

From: Fabrice Menard <menard.fabrice@wanadoo.fr>

Trying to solve my latin1 char problems with the framebuffer console, I
found that fbcon doesn't set a unicode map.

22 years ago[PATCH] fbdev: New Asiliant framebuffer driver.
Andrew Morton [Sat, 15 May 2004 03:18:07 +0000 (20:18 -0700)]
[PATCH] fbdev: New Asiliant framebuffer driver.

From: James Simmons <jsimmons@infradead.org>

This is the new asiliant framebuffer driver.

22 years ago[PATCH] fbdev: Vesa Fbdev update fix
Andrew Morton [Sat, 15 May 2004 03:17:56 +0000 (20:17 -0700)]
[PATCH] fbdev: Vesa Fbdev update fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

On Sun, 25 Apr 2004, James Simmons wrote:
> This patch migrates the Vesa Framebuffer driver over to the
> framebuffer_alloc/framebuffer_release api. It also fixes the error
> handling paths. The mtrr issue that Geert brought up has been fixed.
> With your approval Geert, Ben please apply this patch.

> + /* Set video size according to vram boot option */
> + if (vram && vram * 1024 * 1024 != vesafb_fix.smem_len)
> + vesafb_fix.smem_len = vram * 1024 * 1024;

The second part of the test can be removed. The rest looks OK to me.

22 years ago[PATCH] fbdev: Vesa Fbdev update
Andrew Morton [Sat, 15 May 2004 03:17:45 +0000 (20:17 -0700)]
[PATCH] fbdev: Vesa Fbdev update

From: James Simmons <jsimmons@infradead.org>

This patch migrates the Vesa Framebuffer driver over to the
framebuffer_alloc/framebuffer_release api.  It also fixes the error
handling paths.  The mtrr issue that Geert brought up has been fixed.

22 years ago[PATCH] fbdev: Virtual fbdev updates
Andrew Morton [Sat, 15 May 2004 03:17:34 +0000 (20:17 -0700)]
[PATCH] fbdev: Virtual fbdev updates

From: James Simmons <jsimmons@infradead.org>

This is attempt 2 at the virtual framebuffer patch.  It migrates the driver
to the framebuffer_release/framebuffer_alloc api.  It doesn't enable the
driver by default.

22 years ago[PATCH] fbdev: Fix NULL-ptr dereference in pm2fb_probe
Andrew Morton [Sat, 15 May 2004 03:17:23 +0000 (20:17 -0700)]
[PATCH] fbdev: Fix NULL-ptr dereference in pm2fb_probe

From: Jim Hague <jim.hague@acm.org>

It fixes the NULL pointer dereference and also a problem in pm2fb_blank().

22 years ago[PATCH] fbdev: set a default access_align value
Andrew Morton [Sat, 15 May 2004 03:17:12 +0000 (20:17 -0700)]
[PATCH] fbdev: set a default access_align value

From: James Simmons <jsimmons@infradead.org>

Set the default access_align variable.  This variable tells us how much data
the hardware can handle in a single read/write cycle.  For example the epson
chipset can handle only 16 bit reads and writes to the framebuffer.

22 years ago[PATCH] fbdev: remove redundant local
Andrew Morton [Sat, 15 May 2004 03:17:01 +0000 (20:17 -0700)]
[PATCH] fbdev: remove redundant local

From: James Simmons <jsimmons@infradead.org>

Remove extra variable. We use i instead of rc.

22 years ago[PATCH] fbdev: remove redundant p->vrows calculation
Andrew Morton [Sat, 15 May 2004 03:16:51 +0000 (20:16 -0700)]
[PATCH] fbdev: remove redundant p->vrows calculation

From: James Simmons <jsimmons@infradead.org>

This patch removes the redundent calculation of p->vrows.  This is done in
fbcon_resize.

22 years ago[PATCH] fbdev: clean up logo handling
Andrew Morton [Sat, 15 May 2004 03:16:40 +0000 (20:16 -0700)]
[PATCH] fbdev: clean up logo handling

From: James Simmons <jsimmons@infradead.org>

This make the logo handling code easier to read.  Merged the two code blocks
since they test for the exact same condition.

22 years ago[PATCH] fbdev: video/imsttfb.c warning fix
Andrew Morton [Sat, 15 May 2004 03:16:30 +0000 (20:16 -0700)]
[PATCH] fbdev: video/imsttfb.c warning fix

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

drivers/video/imsttfb.c:1089: warning: `imsttfb_load_cursor_image' defined but not used
drivers/video/imsttfb.c:1159: warning: `imstt_set_cursor' defined but not used

22 years ago[PATCH] fbdev: video/tdfxfb.c warning fix
Andrew Morton [Sat, 15 May 2004 03:16:20 +0000 (20:16 -0700)]
[PATCH] fbdev: video/tdfxfb.c warning fix

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

Fix this:

drivers/video/tdfxfb.c:1005: warning: `tdfxfb_cursor' defined but not used

and make the acceleration function selectable (like hgafb and tridentfb)

Geert says:

 tdfxfb_cursor() was not used before, causing a compiler warning.
 tdfxfb_cursor() may work, but we don't know, so we didn't dare to enable it
 by default.  Now the user (he who has the hardware) can enable it, and tell
 us whether it works or not.

22 years ago[PATCH] fbdev: video/hgafb.c warning fix
Andrew Morton [Sat, 15 May 2004 03:16:09 +0000 (20:16 -0700)]
[PATCH] fbdev: video/hgafb.c warning fix

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

Make HGA acceleration functions selectable in kernel config, fix these
warnings:

drivers/video/hgafb.c:452: warning: `hgafb_fillrect' defined but not used
drivers/video/hgafb.c:472: warning: `hgafb_copyarea' defined but not used
drivers/video/hgafb.c:502: warning: `hgafb_imageblit' defined but not used

22 years ago[PATCH] fbdev: video/tridentfb.c warning fix
Andrew Morton [Sat, 15 May 2004 03:15:59 +0000 (20:15 -0700)]
[PATCH] fbdev: video/tridentfb.c warning fix

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

Speaking with frame buffer people, we agree with this patch to fix the
warning:

drivers/video/tridentfb.c:455: warning: `tridentfb_fillrect' defined but not used
drivers/video/tridentfb.c:473: warning: `tridentfb_copyarea' defined but not used

22 years ago[PATCH] fbdev: Neomagic driver update.
Andrew Morton [Sat, 15 May 2004 03:15:48 +0000 (20:15 -0700)]
[PATCH] fbdev: Neomagic driver update.

From: James Simmons <jsimmons@infradead.org>

Here is a updated driver for the neomagic.

22 years ago[PATCH] fbdev: radeonfb: fix garbled screen
Andrew Morton [Sat, 15 May 2004 03:15:37 +0000 (20:15 -0700)]
[PATCH] fbdev: radeonfb: fix garbled screen

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> My screen is still a bit garbeld after booting.
> Still like http://zodiac.dnsalias.org/images/garbage.jpg

Yes, usual boot-time x86 garbage. Well, let's imagine it's as simple
as clearing the framebuffer during boot :) Try this patch and let me
know. If that doesn't help, then the problem is definitely in fbcon.

22 years ago[PATCH] autofs4 compat ioctls
Andrew Morton [Sat, 15 May 2004 03:15:26 +0000 (20:15 -0700)]
[PATCH] autofs4 compat ioctls

From: <raven@themaw.net>

These are the ioctls that need to be added to the compatibility layer.

They are all esentially the same as the AUTOFS_IOC_PROTOVER in their
requirements and so should be fine.

22 years ago[PATCH] autofs4 race fix
Andrew Morton [Sat, 15 May 2004 03:15:15 +0000 (20:15 -0700)]
[PATCH] autofs4 race fix

From: Ian Kent <raven@themaw.net>

The case where two process similtaneously trigger a mount in autofs4 can
cause multiple requests to the daemon for the same mount.  The daemon
handles this OK but it's possible an incorrect error to be returned.  For
this reason I believe it is better to change the spin lock to a semaphore
in waitq.c.  This makes the second and subsequent request wait on the q as
ther supposed to.

22 years ago[PATCH] autofs4: readdir futureproofing
Andrew Morton [Sat, 15 May 2004 03:15:04 +0000 (20:15 -0700)]
[PATCH] autofs4: readdir futureproofing

From: Ian Kent <raven@themaw.net>

Needed for support coming development plans.

22 years ago[PATCH] autofs4: add ioctl to query unmountability
Andrew Morton [Sat, 15 May 2004 03:14:54 +0000 (20:14 -0700)]
[PATCH] autofs4: add ioctl to query unmountability

From: Ian Kent <raven@themaw.net>

Add ioctl to find out if autofs mount can be umounted.  When the daemon
discovers this it's past the point of no return.

22 years ago[PATCH] autofs4: fix handling of chdir and chroot
Andrew Morton [Sat, 15 May 2004 03:14:43 +0000 (20:14 -0700)]
[PATCH] autofs4: fix handling of chdir and chroot

From: <raven@themaw.net>

Pushed changes in sys_chdir and sys_chroot into the revalidate/lookup by
using nameidata hint.

22 years ago[PATCH] autofs4: readdir fixes
Andrew Morton [Sat, 15 May 2004 03:14:32 +0000 (20:14 -0700)]
[PATCH] autofs4: readdir fixes

From: Ian Kent <raven@themaw.net>

a. Implement readdir and friends for directory lookup for late mounting.
   This is done largely by replacing a catch all condition in
   try_to_fill_dentry with appropriate cases.

b. Add path calc.  function in waitq.c to get extended path to return to
   daemon (for direct mounts).

c. Add revalidate calls to sys_chdir and sys_chroot so that pwd lookups
   work correctly.

d. Add ioctl to retrieve minor version for automount daemon (and me) to
   recognise module fix level.  Bumped minor version to 5.

From: Hugh Dickins <hugh@veritas.com>

  After chdir (or chroot) to non-existent directory on 2.6.5-mm5, you can no
  longer unmount filesystem holding working directory (or root).

22 years ago[PATCH] autofs4: may_umount_tree() cleanup
Andrew Morton [Sat, 15 May 2004 03:14:21 +0000 (20:14 -0700)]
[PATCH] autofs4: may_umount_tree() cleanup

From: <raven@themaw.net>

Patch to sync 2.6.6-rc2-mm2 with the result of my discussion with
Christoph Hellwig.

Difference is that Christoph realised that merging may_umount_tree and
may_umount was not worth it. They are now seperate functions.

22 years ago[PATCH] autofs4: expiry refcount fixes
Andrew Morton [Sat, 15 May 2004 03:14:11 +0000 (20:14 -0700)]
[PATCH] autofs4: expiry refcount fixes

From: Ian Kent <raven@themaw.net>

This patch is the result of an e-mail discussion with Soni Maneesh.  He felt
that the use of reference counts in the expire module is unreliable (in the
presence of rcu) and suggested it should use standard VFS calls where
possible.  This has been done.  Once the boundary in autofs is reached we
have no choice but to resort using reference counts (but under the
vfsmount_lock).

After review by hch:

- renamed autofs4_may_umount to __may_umount_tree, made it static and moved
  it to namespace.c.

- added stub function may_umount_tree with description

- altered may_umount to use above stub function and added little description

- added may_umount_tree prototype to fs.h

- removed the EXPORT_SYMBOL for vfsmount_lock

- updated expire.c to suit

22 years ago[PATCH] autofs4: locking rework
Andrew Morton [Sat, 15 May 2004 03:14:00 +0000 (20:14 -0700)]
[PATCH] autofs4: locking rework

From: Ian Kent <raven@themaw.net>

Remove BKL from autofs4 module and add spinlock to serialise access to the
automount daemon communication waitq.

Locking requirements are different in 2.6 and so I'm seeking comments and
suggestions on this.  I have taken a rather heavy handed approach to this in
the patch.  For example, the VFS operations that directly change the
filesystem, such as autofs4_mkdir etc, hold the inode semaphore on entry so
the BKL has been removed.  I can't see why two locking mechanisms are needed.
 Rather than add locking all over the place, I'm looking for justification
it's needed, as I don't see it myself.

22 years ago[PATCH] autofs4: printk cleanups and memory leak fix
Andrew Morton [Sat, 15 May 2004 03:13:49 +0000 (20:13 -0700)]
[PATCH] autofs4: printk cleanups and memory leak fix

From: Ian Kent <raven@themaw.net>

- Correct text in DPRINTK messages and comments, a little reformating and
  correct URL location for autofs v4 in Kconfig message.

- Fix error-path memory leak in autofs4_fill_super()

22 years ago[PATCH] autofs4: dnotify + autofs may create signal/restart syscall loop
Andrew Morton [Sat, 15 May 2004 03:13:39 +0000 (20:13 -0700)]
[PATCH] autofs4: dnotify + autofs may create signal/restart syscall loop

From: Ian Kent <raven@themaw.net>

From: Jeff Mahoney <jeffm@suse.com>

I saw a recent bug report that showed when a process set up a dnotify
against the autofs root and then attempted an access(2) call inside the
autofs namespace on a mount that would fail, it would create a
signal/restart loop.

The cause is that the autofs code checks to see if any signals are pending
after it waits on a response from the autofs daemon.  If it finds any, it
assumes that autofs_wait was interrupted, and that it should return
-ERESTARTNOINTR.  The problem with this is that a signal_pending(current)
check will return true if *any* signals were received, not just if a signal
that interrupted the wait was received.  autofs_wait explicitly blocks all
signals except for SIGKILL, SIGQUIT, and SIGINT before calling
interruptible_sleep_on.

The effect is that if a dnotify is set against the autofs root, when the
autofs daemon creates the directory, a dnotify event will be sent to the
originating process.  Since the code in autofs_root_lookup doesn't check to
see what signals are actually pending, it bails early, telling the caller
to try again.  The loop goes on forever until interrupted via one of the
actual interrupting signals.

The following patch makes both autofs_root_lookup and autofs4_root_lookup
verify that one of its defined "shutdown" signals are pending before
bailing out early.  Any other signal should be delivered later, as
expected.  It doesn't matter if the signal occured outside of the sleep in
autofs_wait.  The calling process will either go away or try again.

22 years ago[PATCH] Use -msoft-float
Andrew Morton [Sat, 15 May 2004 03:13:28 +0000 (20:13 -0700)]
[PATCH] Use -msoft-float

From: Dave Jones <davej@redhat.com>

To catch accidental usage of floating point.  Has been in -mm for ages.

22 years ago[PATCH] sched: reduce node balancing interval
Andrew Morton [Sat, 15 May 2004 03:13:17 +0000 (20:13 -0700)]
[PATCH] sched: reduce node balancing interval

From: Nick Piggin <nickpiggin@yahoo.com.au>

From: Suresh Siddha <suresh.b.siddha@intel.com>

Node max rebalance interval is too large.  It is currently dependent on
number of online cpus.  For 16 cpu system, max node balance interval in
busy case is 32 seconds.  Agreed that it will use max 32 seconds only when
it doesn't find imbalance for a long time.  But this will lead to slow
response time in cases where load runs for a second with no imbalance and
suddently creates an imbalance.  My patch makes the busy max node rebalance
interval equal to the base [scheduler].

22 years ago[PATCH] sched: less locking in balancing
Andrew Morton [Sat, 15 May 2004 03:13:06 +0000 (20:13 -0700)]
[PATCH] sched: less locking in balancing

From: Nick Piggin <nickpiggin@yahoo.com.au>

Analysis and basic idea from Suresh Siddha <suresh.b.siddha@intel.com>

"This small change in load_balance() brings the performance back upto base
scheduler(infact I see a ~1.5% performance improvement now).  Basically
this fix removes the unnecessary double_lock.."

Workload is SpecJBB on 16-way Altix.

22 years ago[PATCH] sched: fix scheduler for unsynched processor sched_clock
Andrew Morton [Sat, 15 May 2004 03:12:56 +0000 (20:12 -0700)]
[PATCH] sched: fix scheduler for unsynched processor sched_clock

From: Nick Piggin <nickpiggin@yahoo.com.au>

Fine-tune the unsynched sched_clock handling.

Basically, you need to be careful about ensuring timestamps get correctly
adjusted when moving CPUs, and you *can't* look at your unadjusted
sched_clock() and a remote task's ->timestamp and try to come up with
anything meaningful.

I think this second problem will really hit hard in the activate_task path
on systems with unsynched sched_clock when you're waking up a remote task,
which happens very often.  Andi, I thought some Opterons have unsynched
tscs?  Maybe this is causing your unexplained bad interactivity?

Another problem is a fixup in pull_task.  When adjusting ->timestamp from
one processor to another, you must use timestamp_last_tick for the local
processor too.  Using sched_clock() will cause ->timestamp to creep
forward.

A final small fix is for sync wakeups.  They were using __activate_task for
some reason, thus they don't get credited for sleeping at all AFAIKS.

And another thing, do we want to #ifdef timestamp_last_tick so it doesn't
show on UP?

22 years ago[PATCH] sched: improved cpu_load rounding
Andrew Morton [Sat, 15 May 2004 03:12:44 +0000 (20:12 -0700)]
[PATCH] sched: improved cpu_load rounding

From: Nick Piggin <nickpiggin@yahoo.com.au>

"Siddha, Suresh B" <suresh.b.siddha@intel.com> noticed a problem in the
cpu_load averaging where the integer truncation could sometimes cause cpu_load
to never quite reach its target.

I'm not sure that you could demonstrate a real world problem, but I quite
like this fix.

22 years ago[PATCH] Fix writeback_inodes-vs-umount race
Andrew Morton [Sat, 15 May 2004 03:12:33 +0000 (20:12 -0700)]
[PATCH] Fix writeback_inodes-vs-umount race

Fix bug identified by Chris Mason.

If writeback_inodes is left holding a ref on the superblock's last inode then
the superblock list walk can race with umount and the superblock can be
released.

Take and put a ref against the superblock to fix that.

22 years ago[PATCH] x86: stack dumps using frame pointers
Andrew Morton [Sat, 15 May 2004 03:12:23 +0000 (20:12 -0700)]
[PATCH] x86: stack dumps using frame pointers

From: Adam Litke <agl@us.ibm.com>

Teach the x86 stack tracing code to use frame pointers, if they are available.
It eliminates all the false-positives in the normal stack traces.

This is a big improvement, and -fomit-frame-pointer seems to make no
difference at all to generated code size.  Maybe we should kill off
-fomit-frame-pointer.

22 years ago[PATCH] Multiple (ICH3) IDE-controllers in a system
Shai Fultheim [Sat, 15 May 2004 02:42:40 +0000 (19:42 -0700)]
[PATCH] Multiple (ICH3) IDE-controllers in a system

This fixes a problem with multiple IDE controllers in a system.

The problem is that pcibios_fixups table (in arch/i386/pci/fixup.c) uses
the pci_fixup_ide_trash() quirk for Intel's ICH3 (my case specifically
8086:248b).  This clears any bogus BAR information set up by the BIOS.

In a system which has multiple ICH3's can't use any of the IDE
controllers beside the one on the first ICH3.

Anyhow, the fix is to make sure pci_fixup_ide_trash resets the BARs only
for first time being called, so the subsequent IDE controllers will use
the BIOS BARs.  This is better than "loosing" all these IDE controllers
in the case their BARs set right.

The issue discussed and agreed with Bartlomiej Zolnierkiewicz (see below).

22 years agoFix typo nonsense test in radeon PMAC backlight code.
Linus Torvalds [Fri, 14 May 2004 16:11:43 +0000 (09:11 -0700)]
Fix typo nonsense test in radeon PMAC backlight code.

22 years agoMake dev_dbg() "use" it's 'dev' argument even when not debugging.
Linus Torvalds [Fri, 14 May 2004 16:01:25 +0000 (09:01 -0700)]
Make dev_dbg() "use" it's 'dev' argument even when not debugging.

This avoids warnings about unused variables.

22 years agoMerge bk://kernel.bkbits.net/jgarzik/i810-audio-2.6
Linus Torvalds [Fri, 14 May 2004 15:17:04 +0000 (08:17 -0700)]
Merge bk://kernel.bkbits.net/jgarzik/i810-audio-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[sound/oss i810] bump driver to version 1.00
Jeff Garzik [Fri, 14 May 2004 21:03:42 +0000 (17:03 -0400)]
[sound/oss i810] bump driver to version 1.00

22 years agoMerge redhat.com:/spare/repo/linux-2.6
Jeff Garzik [Fri, 14 May 2004 20:18:55 +0000 (16:18 -0400)]
Merge redhat.com:/spare/repo/linux-2.6
into redhat.com:/spare/repo/i810-audio-2.6

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Fri, 14 May 2004 15:10:36 +0000 (08:10 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] x86_64 has buggy ffs() implementation
Anton Altaparmakov [Fri, 14 May 2004 14:53:01 +0000 (07:53 -0700)]
[PATCH] x86_64 has buggy ffs() implementation

x86_64 has an incorrect ffs() implementation.  The asm uses "g" instead
of "rm" for the bsfl instruction.  (This was spotted by Yuri Per.)

bsfl does not accept constant values but only memory or register ones.
On i386 the correct "rm" is used.

This causes NTFS build to fail as gcc optimizes a variable into a
constant and ffs() then fails to assemble.

22 years agoMerge http://linux-ntfs.bkbits.net/ntfs-2.6
Linus Torvalds [Fri, 14 May 2004 14:47:48 +0000 (07:47 -0700)]
Merge http://linux-ntfs.bkbits.net/ntfs-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoNTFS: 2.1.11 - Rename uchar_t to ntfschar.
Anton Altaparmakov [Fri, 14 May 2004 15:16:04 +0000 (16:16 +0100)]
NTFS: 2.1.11 - Rename uchar_t to ntfschar.

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Fri, 14 May 2004 14:46:30 +0000 (07:46 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years ago[PATCH] fix typo in avm_cs PCMCIA AVM B1 cardservice driver
Karsten Keil [Fri, 14 May 2004 14:45:59 +0000 (07:45 -0700)]
[PATCH] fix typo in avm_cs PCMCIA AVM B1 cardservice driver

this trivial fix makes the AVM B1 PCMCIA cards work with 2.6

22 years ago[PATCH] PowerPC Virtual Ethernet links to /sys/class/net/ethX
Santiago Leon [Fri, 14 May 2004 13:47:15 +0000 (06:47 -0700)]
[PATCH] PowerPC Virtual Ethernet links to /sys/class/net/ethX

This adds links to the driver and device inside /sys/class/net/ethX for
PowerPC Virtual Ethernet devices.