Skip to contentSkip to conversation

linux 2.5.25

PATCH Applied Linus Torvalds 10 participants 11 messages Jul 5, 2002 – Jul 8, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

More merges all over the map - ppc, scsi, USB, kbuild, input drivers etc.

And both Al and Andrew have been busy again.

This also introduces the support for non-100 Hz internal kernel times on x86, while still exporting the old interface to user space (ie anybody who exported raw jiffies before should be exporting "clock_t", which on x86 continues to be a 100 Hz clock, regardless of whatever the internal kernel frequency is).

Right now the x86 timer frequency is set to 1kHz, but that's just another random number. It could be a config option if people really care, but I'd rather just have people argue for or against specific internal frequencies and we'll find something most people are happy with. It's easy to change without user space even noticing now.

The other thing that we should sort out eventually is the unified naming for disk devices, now that both IDE and SCSI are starting to have some support for driverfs. Let's make sure that we _can_ have sane ways of accessing a disk, without having to care whether it is IDE or SCSI or anything else.

Linus

----

Summary of changes from v2.5.24 to v2.5.25
============================================

<[email protected]>:
o APM compile fix, "stime" update broke it

<[email protected]>:
o PPC32: Fixes and cleanups for PPC40x processors
o PPC32: Update handling of the interrupt controller on the PPC405
o PPC32: more PPC40x cleanup (remove CONFIG_PIN_TLB, add comments)

<[email protected]>:
o Initial initio a100 driver DMA mapping changes + selected cleanups
o inia100.c
o i60uscsi.c

<jejb@mulgrave.(none)>:
o [SCSI 53c700] add specimen block layer tcq
o make Scsi_Cmnd and Scsi_Request.request be a pointer to the block layer request instead of a copy.
o Initial support (mid-layer) for generic TCQ
o [SCSI mid-layer]
o [SCSI mid-layer] bug fix two missing blk_queue_end_tag()s
o export open_softirq

<[email protected]>:
o kbuild: Fix warnings and other buglets

<[email protected]>:
o Fix note sections in ELF core dumps

<[email protected]>:
o USB: bluetty.c allocation bug fix

<[email protected]>:
o pegasus & rtl8150

<[email protected]>:
o kbuild: Add "make help" support

<[email protected]>:
o linux-2.5.22-driverfs.patch

<[email protected]>:
o softscsi patch
o rewrite find_vma_prev

Alexander Viro <[email protected]>:
o devpts cleanup
o (md.c) block device size cleanups
o cdrom.c cleanups
o kdev_t crapectomy
o raid kdev_t cleanups (part 1)
o raid ->diskop() splitup
o raid kdev_t cleanups - part 2
o md_import_device() cleanup
o raid kdev_t cleanups - part 3
o ex_dev switched to dev_t
o assorted kdev_t cleanups in filesystems
o >i_dev switched to dev_t

Andrew Morton <[email protected]>:
o handle BIO allocation failures in swap_writepage()
o Fix 3c59x driver for some 3c566B's
o per-cpu buffer_head cache
o Remove ext2's buffer_head cache
o Remove ext3's buffer_head cache
o debug check for leaked blockdev buffers
o misc cleanups and fixes
o pdflush cleanup
o remove swap_get_block()
o shmem fixes
o add new list_splice_init()
o set TASK_RUNNING in cond_resched()
o set TASK_RUNNING in yield()
o check for O_DIRECT capability in open(), not write()
o set_page_dirty() in mark_dirty_kiobuf()
o resurrect __GFP_HIGH
o Use __GFP_HIGH in mpage_writepages()
o always update page->flags atomically
o suppress more allocation failure warnings
o fix a writeback race
o combine generic_writepages() and mpage_writepages()
o ext3 truncate fix
o JBD commit callback capability
o fix invalidate_inode_pages2() race
o debug: check page refcount in __free_pages_ok()
o reduce lock contention in try_to_free_buffers()
o Use names, not numbers for pagefault types

Anton Altaparmakov <[email protected]>:
o NTFS: 2.0.11 - Initial preparations for fake inode based attribute

    i/o

o NTFS: 2.0.12 - Initial cleanup of address space operations following 2.0.11 changes
o NTFS: 2.0.13 - Use iget5_locked() in preparation for fake inodes and small cleanups
o NTFS: 2.0.14 - Run list merging code cleanup, minor locking changes, typo fixes

David Brownell <[email protected]>:
o ohci-hcd cardbus unplug
o Re: [linux-usb-devel] unending timeouts (patch for 2.5.22 oops)

Greg Kroah-Hartman <[email protected]>:
o USB: picked a uhci driver to go forward with
o USB: removed unused Config.help entries from the host controller file
o USB: removed file ops from usb device structure Moved the file ops and minor number stuff out of the usb structure, Now usb_register_dev() and usb_deregister_dev() must be called if you want to use the USB major number.
o USB: added drivers/usb/core/file.c to the kernel-api documentation
o USB: Fixups due to the changes in struct usb_device for file_operations and minor number handling

[email protected] <[email protected]>:
o fix SCSI driverfs for IDE panic on boot

Kai Germaschewski <[email protected]>:
o kbuild: Assorted cleanups
o kbuild: Prepare LDFLAGS for general use
o kbuild: Rename ld flags for vmlinux to LDFLAGS_vmlinux
o kbuild: Put flags for ld into LDFLAGS
o kbuild: Put flags for objcopy into OBJCOPYFLAGS
o kbuild: clean up arch/i386/boot, part 1
o kbuild: clean up arch/i386/boot, part 2
o kbuild: clean up arch/i386/boot, part 3
o kbuild: clean up arch/i386/boot, part 4
o kbuild: Fix calling of make_times_h and gentbl
o kbuild: Provide shipped versions of the keymap files

Linus Torvalds <[email protected]>:
o DRI CVS merge: separate out driver-ioctl's into driver headers
o Make in-kernel HZ be 1000 on x86, retaining user-level 100 HZ clock_t
o Make ramfs/driverfs maintain directory nlink counts
o Fix more places where we exported our internal time to user space. Convert to standard clock_t.
o Radeon DRI merge
o x86 "make clean" missed some new targets
o Disable ReiserFS bh usage count testing for now

Matthew Dharm <[email protected]>:
o usb-storage: code cleanup, small fixes
o usb-storage: Code consolidation of error paths
o usb-storage: remove timer

Paul Mackerras <[email protected]>:
o PPC32: add CONFIG_DEBUG_SPINLOCK
o PPC32: Fixes for bugs in exception handling in copy_to_user and clear_user
o PPC32: Add struct page * argument to copy/clear_user_page
o PPC32: fixes for I/O mappings on CHRP machines
o PPC32: update for scheduler changes (switch_to, prepare/finish_arch_*)
o PPC32: translate addresses in the Open Firmware device tree correctly
o PPC32 compile fix: add missing parenthesis
o PPC32: fix compilation with current binutils
o PPC32: work around the fact that the PPC601 doesn't implement the MSR.RI bit
o PPC32: fix some minor compile warnings
o PPC32: fix handling of machine checks
o PPC32: eliminate some compile warnings on the EP405 board
o PPC32: define USER_HZ to be 100 (HZ is still 100 for now)
o PPC32: fix compile error by removing extraneous declarations

    (ppc_ksyms.c)

Paul Menage <[email protected]>:
o Shift BKL into ->statfs()

Pavel Machek <[email protected]>:
o suspend-to-disk documentation updates

Petr Vandrovec <[email protected]>:
o 2.5.24 matroxfb memory corruption
o 2.5.24 matroxfb off by one error
o drivers/ide/probe.c leaks memory

[email protected] <[email protected]>:
o sound/oss/maestro.c

Tom Rini <[email protected]>:
o PPC32: Fix building of most of the zImage targets
o PPC32: Fix the rule for using config files from arch/ppc/configs/ To accommodate the change to scripts/Configure which made it look in /boot/config-uname -r before looking at arch/$(ARCH)/defconfig, change the rule for using a config from arch/ppc/configs to copy to .config instead of arch/$(ARCH)/defconfig
o PPC32: Minor PReP OpenPIC fixes from Troy Benjegerdes and Leigh Brown
o Allow the data cache to be turned off on MPC8260 systems
o PPC32: Move per-board MPC8xx ethernet defines to their respective board header
o PPC32: Fix dependancies in arch/ppc/boot
o PPC32: Minor fixes with respect to the MPC7450 and MPC7455

Tom Rini <[email protected]>:
o PPC32: Update the OpenPIC code to only require a 'linux_irq_offset' param
o PPC32: check the binutils version and make sure it is new enough
o PPC32: use the proper instruction mnemonics for altivec instructions

Vojtech Pavlik <[email protected]>:
o Update the gameport drivers to Dave Jones's tree
o Update the iforce driver to the latest revision (it now lives in a separate directory), add twiddler and guillemot drivers.
o Add new serio modules for PS/2 AUX/KBD
o Add keyboard, mouse and touchscreen drivers
o Update the input handler modules to latest versions
o Makefile/config.in changes to reflect the new drivers
o Fix button assignments for Saturn and PSX pads
o Handle input-only keyboard interfaces
o Handle slowly responding PS/2 mice
o Use time_after() where applicable
o Minor cleanup in evdev.c
o Minor fixes to make the whole thing compile on latest 2.5 and kbuild2
o Add vortex anf fm801 gameport drivers, remove obsolete pcigame driver
o Fix psmouse.c - it needs tqueue.h

#1 lore raw
Quoted 5 lines · Linus Torvalds

Right now the x86 timer frequency is set to 1kHz, but that's just another random number. It could be a config option if people really care, but I'd rather just have people argue for or against specific internal frequencies and we'll find something most people are happy with. It's easy to change without user space even noticing now.

You could go by the CPU choice that already exists:

386      -->  100
486      -->  200
Pentium  -->  400
PPro     -->  800

P-III,P4 --> 1600

#2 lore raw

PATCH 1/1 Typo fixes in input code

In reply to Linus Torvalds
Quoted 1 line · Linus Torvalds

More merges all over the map - ppc, scsi, USB, kbuild, input drivers etc.

Found a few typos in the input changes. Fixup patch attached.

Brad

Signature · 1 line
http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black.
drivers/input/gameport/Config.help +2 -2
diff -Naur -X dontdiff linux-2.5.25-clean/drivers/input/gameport/Config.help linux-2.5.25-twidler/drivers/input/gameport/Config.help
@@ -34,7 +34,7 @@
   The module will be called lightning.o. If you want to compile it as
   a module, say M here and read <file:Documentation/modules.txt>.
 
-CONFIG_GAMEPORT_EMU10K1
+CONFIG_INPUT_EMU10K1
   Say Y here if you have a SoundBlaster Live! or SoundBlaster
   Audigy card and want to use its gameport.
 
@@ -52,7 +52,7 @@
   The module will be called vortex.o. If you want to compile it as a
   module, say M here and read <file:Documentation/modules.txt>.
 
-CONFIG_GAMEPORT_CS461X
+CONFIG_GAMEPORT_CS461x
   Say Y here if you have a Cirrus CS461x aka "Crystal SoundFusion"
   PCI audio accelerator and want to use its gameport.
 
drivers/input/joystick/Config.help +1 -1
diff -Naur -X dontdiff linux-2.5.25-clean/drivers/input/joystick/Config.help linux-2.5.25-twidler/drivers/input/joystick/Config.help
@@ -1,4 +1,4 @@
-CONFIG_JOYSTICK
+CONFIG_INPUT_JOYSTICK
   If you have a joystick, 6dof controller, gamepad, steering wheel,
   weapon control system or something like that you can say Y here
   and the list of supported devices will be displayed. This option
drivers/input/joystick/Config.in +1 -1
diff -Naur -X dontdiff linux-2.5.25-clean/drivers/input/joystick/Config.in linux-2.5.25-twidler/drivers/input/joystick/Config.in
@@ -22,7 +22,7 @@
 dep_tristate '  SpaceTec SpaceOrb/Avenger 6dof controllers' CONFIG_JOYSTICK_SPACEORB $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_SERIO
 dep_tristate '  SpaceTec SpaceBall 6dof controllers' CONFIG_JOYSTICK_SPACEBALL $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_SERIO
 dep_tristate '  Gravis Stinger gamepad' CONFIG_JOYSTICK_STINGER $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_SERIO
-dep_tristate '  Twiddler as as joystick' CONFIG_JOYSTICK_TWIDDLER $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_SERIO
+dep_tristate '  Twiddler as a joystick' CONFIG_JOYSTICK_TWIDDLER $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_SERIO
 
 dep_tristate '  Multisystem, Sega Genesis, Saturn joysticks and gamepads' CONFIG_JOYSTICK_DB9 $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_PARPORT
 dep_tristate '  Multisystem, NES, SNES, N64, PSX joysticks and gamepads' CONFIG_JOYSTICK_GAMECON $CONFIG_INPUT $CONFIG_INPUT_JOYSTICK $CONFIG_PARPORT
#3 lore raw

Re: [patch] Typo fixes in input code

You patch is right except for drivers/input/gameport/Config.help. That was right before your patch.

. ---

   |o_o |
   |:_/ |   Give Micro$oft the Bird!!!!
  //   \ \  Use Linux!!!!
 (|     | )
 /'\_   _/`\

\___)=(___/

Quoted 8 lines · Brad Hards
Quoted 1 line · Linus Torvalds

More merges all over the map - ppc, scsi, USB, kbuild, input drivers etc.

Found a few typos in the input changes. Fixup patch attached.

Brad

--
http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black.

#4 lore raw

Re: [patch] Typo fixes in input code

Quoted 2 lines · James Simmons

You patch is right except for drivers/input/gameport/Config.help. That was right before your patch.

OK. I assumed that Config.in was the authoritative source, and Config.help should match. Looks like (based on the Makefile) that I probably should have changed it to be CONFIG_GAMEPORT_EMU10K1 in the Config.in. In fact, that driver won't ever be built with vanilla 2.5.25, with or without the previous patch

BK already has the previous change applied, so this in an incremental diff:

<bk text>
EMU10K1 build fix

Revert the CONFIG_INPUT_EMU10K1 change to drivers/input/gameport/Config.help, and change drivers/input/gameport/Config.in to use CONFIG_GAMEPORT_EMU10K1 </bk text>

Brad

Signature · 1 line
http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black.
drivers/input/gameport/Config.help +1 -1
diff -Naur -X dontdiff linux-2.5.25-inputtypos1/drivers/input/gameport/Config.help linux-2.5.25-inputtypos2/drivers/input/gameport/Config.help
@@ -34,7 +34,7 @@
   The module will be called lightning.o. If you want to compile it as
   a module, say M here and read <file:Documentation/modules.txt>.
 
-CONFIG_INPUT_EMU10K1
+CONFIG_GAMEPORT_EMU10K1
   Say Y here if you have a SoundBlaster Live! or SoundBlaster
   Audigy card and want to use its gameport.
 
drivers/input/gameport/Config.in +1 -1
diff -Naur -X dontdiff linux-2.5.25-inputtypos1/drivers/input/gameport/Config.in linux-2.5.25-inputtypos2/drivers/input/gameport/Config.in
@@ -13,7 +13,7 @@
 
 dep_tristate '  Classic ISA and PnP gameport support' CONFIG_GAMEPORT_NS558 $CONFIG_GAMEPORT
 dep_tristate '  PDPI Lightning 4 gamecard support' CONFIG_GAMEPORT_L4 $CONFIG_GAMEPORT
-dep_tristate '  SB Live and Audigy gameport support' CONFIG_INPUT_EMU10K1 $CONFIG_GAMEPORT
+dep_tristate '  SB Live and Audigy gameport support' CONFIG_GAMEPORT_EMU10K1 $CONFIG_GAMEPORT
 dep_tristate '  Aureal Vortex, Vortex 2 gameport support' CONFIG_GAMEPORT_VORTEX $CONFIG_GAMEPORT
 dep_tristate '  ForteMedia FM801 gameport support' CONFIG_GAMEPORT_FM801 $CONFIG_GAMEPORT
 dep_tristate '  Crystal SoundFusion gameport support' CONFIG_GAMEPORT_CS461x $CONFIG_GAMEPORT
#5 lore raw

Re: [patch] Typo fixes in input code

Quoted 9 lines · Brad Hards
Quoted 2 lines · James Simmons

You patch is right except for drivers/input/gameport/Config.help. That was right before your patch.

OK. I assumed that Config.in was the authoritative source, and Config.help should match. Looks like (based on the Makefile) that I probably should have changed it to be CONFIG_GAMEPORT_EMU10K1 in the Config.in. In fact, that driver won't ever be built with vanilla 2.5.25, with or without the previous patch

Quoted 8 lines

BK already has the previous change applied, so this in an incremental diff:

<bk text>
EMU10K1 build fix

Revert the CONFIG_INPUT_EMU10K1 change to drivers/input/gameport/Config.help, and change drivers/input/gameport/Config.in to use CONFIG_GAMEPORT_EMU10K1 </bk text>

Thanks, applied.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs
#6 lore raw

Re: linux 2.5.25 (and LVM)

In reply to Linus Torvalds
Quoted 1 line · Linus Torvalds

More merges all over the map - ppc, scsi, USB, kbuild, input drivers etc.

Did the LVM guys (are you listening?) tell anything if they were about to go fix the current 2.5 LVM breakage? Or does EVMS work on 2.5 instead?

#7 lore raw

Re: linux 2.5.25 (and LVM)

Quoted 6 lines · Matthias Andree
Quoted 1 line · Linus Torvalds

More merges all over the map - ppc, scsi, USB, kbuild, input drivers etc.

Did the LVM guys (are you listening?) tell anything if they were about to go fix the current 2.5 LVM breakage? Or does EVMS work on 2.5 instead?

I'll say this yet again:

Heinz Mauelshagen is maintaining LVM1.0.x on 2.4 kernels. This is for bug fixes only, no new features will be added.

Alasdair Kergon, Patrick Caulfield and myself are working on the more generic device-mapper driver for both 2.4/2.5. Initially we have concentrated on 2.4, this driver is now very stable IMO (I would certainly trust my data to it in preference to LVM1).

I will post a URL to the 2.5 patch at some point this week.

There is no intention to maintain the broken design that is LVM1 in the 2.5 series - we do not have the spare resources to waste.

- Joe

#8 lore raw

Re: linux 2.5.25 (and LVM)

Quoted 18 lines · Joe Thornber
Quoted 6 lines · Matthias Andree
Quoted 1 line · Linus Torvalds

More merges all over the map - ppc, scsi, USB, kbuild, input drivers etc.

Did the LVM guys (are you listening?) tell anything if they were about to go fix the current 2.5 LVM breakage? Or does EVMS work on 2.5 instead?

I'll say this yet again:

Heinz Mauelshagen is maintaining LVM1.0.x on 2.4 kernels. This is for bug fixes only, no new features will be added.

Alasdair Kergon, Patrick Caulfield and myself are working on the more generic device-mapper driver for both 2.4/2.5. Initially we have concentrated on 2.4, this driver is now very stable IMO (I would certainly trust my data to it in preference to LVM1).

Quoted 4 lines

I will post a URL to the 2.5 patch at some point this week.

There is no intention to maintain the broken design that is LVM1 in the 2.5 series - we do not have the spare resources to waste.

All right. So how about removing it from the tree? It's broken; it won't be fixed; it's abandoned by maintainers (and $DEITY witness, there is a lot of very good reasons for that); there's nobody who would be able and willing to pick it. What's the point of keeping the damn thing in the tree?

Could you (or Heinz) submit the patch removing it from 2.5?

#9 lore raw
In reply to Linus Torvalds
Quoted 6 lines · On Fri 05 Jul at 16:54:20 -0700 [email protected] done said:

The other thing that we should sort out eventually is the unified naming for disk devices, now that both IDE and SCSI are starting to have some support for driverfs. Let's make sure that we _can_ have sane ways of accessing a disk, without having to care whether it is IDE or SCSI or anything else.

...and a way that scales better when naming large numbers of disks than disk_name()'s stuff like:

     sprintf(buf, "sd%c%c", 'a' + unit / 26, 'a' + unit % 26);

t.

#10 lore raw

PATCH 1/1 2.5.25 end_request trivia

In reply to Linus Torvalds

The following patch does the following:

1. Make airo include tqueue.h, which is needed to make this driver compile at all again.

2. Adjust aztcd.c and sonycd535.c to the recent end_request() signature changes.

The patch is against 2.5.24, but still applies cleanly on top of 2.5.25.

drivers/cdrom/aztcd.c +4 -4
diff -urN linux-2.5.24/drivers/cdrom/aztcd.c linux/drivers/cdrom/aztcd.c
@@ -2083,12 +2083,12 @@
 				}
 				azt_state = AZT_S_IDLE;
 				while (current_valid())
-					end_request(0);
+					end_request(CURRENT, 0);
 				return;
 			}
 
 /*	  if (aztSendCmd(ACMD_SET_MODE)) RETURN("azt_poll 3");
-	  outb(0x01, DATA_PORT);          
+	  outb(0x01, DATA_PORT);
 	  PA_OK;
 	  STEN_LOW;
 */
@@ -2138,7 +2138,7 @@
 				}
 				azt_state = AZT_S_IDLE;
 				while (current_valid())
-					end_request(0);
+					end_request(CURRENT, 0);
 				return;
 			}
 
@@ -2236,7 +2236,7 @@
 						break;
 					}
 					if (current_valid())
-						end_request(0);
+						end_request(CURRENT, 0);
 					AztTries = 5;
 				}
 				azt_state = AZT_S_START;
drivers/cdrom/sonycd535.c +1 -8
diff -urN linux-2.5.24/drivers/cdrom/sonycd535.c linux/drivers/cdrom/sonycd535.c
@@ -805,14 +805,8 @@
 	Byte cmd[2];
 
 	while (1) {
-		/*
-		 * The beginning here is stolen from the hard disk driver.  I hope
-		 * it's right.
-		 */
-		if (blk_queue_empty(QUEUE)) {
-			CLEAR_INTR;
+		if (blk_queue_empty(QUEUE))
 			return;
-		}
 
 		dev = minor(CURRENT->rq_dev);
 		block = CURRENT->sector;
@@ -828,7 +822,6 @@
 				 * If the block address is invalid or the request goes beyond the end of
 				 * the media, return an error.
 				 */
-				
 				if (sony_toc->lead_out_start_lba <= (block / 4)) {
 					end_request(CURRENT, 0);
 					return;
drivers/net/wireless/airo.c +1 -0
diff -urN linux-2.5.24/drivers/net/wireless/airo.c linux/drivers/net/wireless/airo.c
@@ -32,6 +32,7 @@
 #include <linux/timer.h>
 #include <linux/interrupt.h>
 #include <linux/in.h>
+#include <linux/tqueue.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/bitops.h>