aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2004-08-22[PATCH] IPMI driver updatesCorey Minyard11-80/+902
Some people found some bugs and some missing functions in the IPMI driver, so I have patching things together for the next release. The attached patch moves to version 33 of the driver and contains: * SMBIOS table support for specifying register spacing. This allows non-contiguous registers to be specified and some machines do this. * ACPI table updates to support all the possible register sizes and bit offsets into the registers for the IPMI information. * Support for command line parameters to specify register spacing, sizes, and bit offsets. * Support for power control with IPMI. This allows a halt to power down a machine with IPMI. * A fix for a race condition with interrupts enabled on an SMP machine. A lock was released then reclaimed, but there was code later that assumed that had not happened. * A fix for protecting the driver against bad responses from the controller chip. In the past, the driver had assumed that the controller chip would not give it bad data. This has turned out to be a bad assumption * ACPI interrupt handlers now return a return value, adjust accordingly. Thank you to all the people who helped me with this. Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] IPMI Watchdog handling updatesCorey Minyard1-27/+42
Makes the IPMI watchdog more consistent with the other watchdog drivers. I have tested this and it seems to work correctly. I also added docs for the interface change. - support disabling watchdog by writing 'V' to device. - unify printk() - use atomic bit operations on ipmi_wdog_open Signed-off-by: Arkadiusz Miskiewicz <arekm@pld-linux.org> Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] nbd: fix struct request race conditionPaul Clements1-29/+10
Here's a patch to fix a race condition in nbd that was causing struct request corruption (requests were being freed while still in use). This patch improves on the previous one, which admittedly was a bit dodgy, using struct request's ref_count field (I should have listened to Jens in the first place :). This should fix all the corner cases related to struct request usage/freeing in nbd. My stress tests do a lot better with this patch applied. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] new device driver to enable the IBM Multiport Serial AdapterJanice M. Girouard3-0/+2004
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] cdrom event notification fixesJens Axboe2-5/+12
A few fixes related to cdrom media event notification. These are from Alexander Kern <alex.kern@gmx.de> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Fix CON_BUF_SIZE usageMatt Mackall1-1/+1
Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Altix system controller communication driverGreg Howard5-1/+517
drivers/char/Kconfig Make a config option for the SGI Altix system controller communication driver. drivers/char/Makefile Add an object file target for the SGI Altix system controller communication driver. drivers/char/snsc.c This file implements a driver that allows an application to communicate with the SGI Altix system controller network. Most of the heavy lifting is done in SAL in order to allow Linux run-time applications to share the system controller link(s) with SAL run-time services. drivers/char/snsc.h Macros and data types for the Altix system controller driver (drivers/char/snsc.c). drivers/serial/sn_console.c Modify the SGI Altix console driver to share an interupt with the system controller communication driver. include/asm-ia64/sn/sn_sal.h Provide an interface to the SAL runtime services that allow the kernel or user applications to send/receive arbitary system controller data. Signed-off-by: Greg Howard <ghoward@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Support for Exar XR17C158 Octal UARTRaphael Zimmerer1-1/+43
Here's a minimal patch to support the Exar Corp. XR17C158 Octal UART Chip (PCI). Signed-off-by: Raphael Zimmerer <killekulla@rdrz.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fix inline related gcc 3.4 build failures in drivers/net/wan/dscc4.cJesper Juhl1-17/+16
drivers/net/wan/dscc4.c: In function `dscc4_found1': drivers/net/wan/dscc4.c:369: sorry, unimplemented: inlining failed in call to 'dscc4_set_quartz': function body not available drivers/net/wan/dscc4.c:898: sorry, unimplemented: called from here Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] inlining errors in drivers/scsi/aic7xxx/aic79xx_osm.cJesper Juhl1-16/+13
This patch fixes the following build error (in 2.6.8-rc2-mm1) when using gcc 3.4.0 drivers/scsi/aic7xxx/aic79xx_osm.c: In function `ahd_linux_dv_transition': drivers/scsi/aic7xxx/aic79xx_osm.c:522: sorry, unimplemented: inlining failed in call to 'ahd_linux_dv_fallback': function body not available drivers/scsi/aic7xxx/aic79xx_osm.c:3070: sorry, unimplemented: called from here drivers/scsi/aic7xxx/aic79xx_osm.c:522: sorry, unimplemented: inlining failed in call to 'ahd_linux_dv_fallback': function body not available drivers/scsi/aic7xxx/aic79xx_osm.c:3093: sorry, unimplemented: called from here drivers/scsi/aic7xxx/aic79xx_osm.c:522: sorry, unimplemented: inlining failed in call to 'ahd_linux_dv_fallback': function body not available drivers/scsi/aic7xxx/aic79xx_osm.c:3144: sorry, unimplemented: called from here drivers/scsi/aic7xxx/aic79xx_osm.c:522: sorry, unimplemented: inlining failed in call to 'ahd_linux_dv_fallback': function body not available drivers/scsi/aic7xxx/aic79xx_osm.c:3257: sorry, unimplemented: called from here drivers/scsi/aic7xxx/aic79xx_osm.c:522: sorry, unimplemented: inlining failed in call to 'ahd_linux_dv_fallback': function body not available drivers/scsi/aic7xxx/aic79xx_osm.c:3288: sorry, unimplemented: called from here drivers/scsi/aic7xxx/aic79xx_osm.c:522: sorry, unimplemented: inlining failed in call to 'ahd_linux_dv_fallback': function body not available drivers/scsi/aic7xxx/aic79xx_osm.c:3317: sorry, unimplemented: called from here It first removes a duplicate forward declaration of ahd_linux_dv_fallback and then moves the function before its first use so inlining can succeed. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] radio-maestro.c: gcc-3.5 fixesAdrian Bunk1-2/+2
CC drivers/media/radio/radio-maestro.o drivers/media/radio/radio-maestro.c: In function `maestro_radio_init': drivers/media/radio/radio-maestro.c:273: sorry, unimplemented: inlining failed in call to 'radio_install': function body not available drivers/media/radio/radio-maestro.c:291: sorry, unimplemented: called from here drivers/media/radio/radio-maestro.c:273: sorry, unimplemented: inlining failed in call to 'radio_install': function body not available drivers/media/radio/radio-maestro.c:295: sorry, unimplemented: called from here make[3]: *** [drivers/media/radio/radio-maestro.o] Error 1 Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] mxser.c: gcc-3.5 fixesAdrian Bunk1-64/+64
CC drivers/char/mxser.o drivers/char/mxser.c: In function `mxser_interrupt': drivers/char/mxser.c:352: sorry, unimplemented: inlining failed in call to 'mxser_receive_chars': function body not available drivers/char/mxser.c:1347: sorry, unimplemented: called from here drivers/char/mxser.c:354: sorry, unimplemented: inlining failed in call to 'mxser_check_modem_status': function body not available drivers/char/mxser.c:1350: sorry, unimplemented: called from here drivers/char/mxser.c:353: sorry, unimplemented: inlining failed in call to 'mxser_transmit_chars': function body not available drivers/char/mxser.c:1355: sorry, unimplemented: called from here make[2]: *** [drivers/char/mxser.o] Error 1 Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] istallion: gcc-3.5 fixesAdrian Bunk1-22/+18
CC drivers/char/istallion.o drivers/char/istallion.c: In function `stli_init': drivers/char/istallion.c:4603: sorry, unimplemented: inlining failed in call to 'stli_getbrdnr': function not considered for inlining drivers/char/istallion.c:4577: sorry, unimplemented: called from here drivers/char/istallion.c: At top level: drivers/char/istallion.c:422: warning: 'istallion_pci_tbl' defined but not used make[2]: *** [drivers/char/istallion.o] Error 1 Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] tdfxfb: salvage tdfxfb from James' treeAntonino Daplas1-39/+62
Took code from James' tree to be hopefully included in the mm tree so it can receive more testing. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] sgivwfb: salvage sgivwfb from James' treeAntonino Daplas1-36/+91
Took code from James' tree to be hopefully included in the mm tree so it can receive more testing. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] neofb: salvage neofb from James' treeAntonino Daplas1-218/+226
Took code from James' tree to be hopefully included in the mm tree so it can receive more testing. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] epson1355fb: salvage epson1355 code from James' treeAntonino Daplas3-414/+620
This patch was submitted by James Hoover < ch@hpl.hp.com> to James a long time ago (2.5 development) which ports the epson driver to 2.6. Took the code from James tree to be hopefully included in the mm tree so it can get more testing. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] rivafb: directcolor mode and miscellaneous fixesAntonino Daplas4-116/+95
Although the rivafb advertises its capability as DirectColor, the hardware is actually set in Truecolor (CLUT cannot be altered). This mismatch occasionally produces wrong colors, such as wrong logo colors at 32bpp and gamma utilities (such as xgamma) does not work at all. Changes: 1. Fixes the above problems by setting the hardware to accept changing of the CLUT. 2. Fixes color problems for NV_ARCH_03 (Riva128) 3. Build a private modelist from the EDID (for use by fbcon) 4. Mark several functions/data as __devinit/__initdata 5. Remove unused fields from struct riva_par Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev: use 8-bit DAC for capable hardwareAntonino Daplas1-32/+30
The patch adds the ability for vesafb to switch the DAC from 6-bit to 8-bit at kernel boot. Besides fixing the failure to draw the 224-color logo, an 8-bit DAC will also provide a wider color range for user applications. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev: support for bold attribute for monochrome framebuffersAntonino Daplas3-47/+81
This patch adds support for the bold attribute for monochrome framebuffers. This fixes a regression from 2.4 where bold, underline and reverse attributes are supported. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev: do the deletion of mode entries at fbdev levelAntonino Daplas2-14/+22
If a request for deletion of an entry in the mode database is requested, do it at core fbdev level instead of doing it at the console level. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Video Mode Handling - Reduce memory footprint of fbdevAntonino Daplas3-3/+47
This patch is entirely optional. Its only advantage is reduction of kernel size by ~5-6K. a. Mark modedb as __init. b. Add CONFIG_FB_MODE_HELPERS. Unselecting this will uninclude the code for Generalized Timing Formula and the EDID parser on kernel compilation. These are used only by radeonfb, rivafb and i810fb. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Video Mode Handling - Delete entries from mode listAntonino Daplas2-4/+59
This is optional but applying it should enhance fbdev functionality. The patch allows removal of entries to the mode list. This is done by setting the var->activate field to FB_ACTIVATE_INV_MODE. Only modes that are not in use by any of the console or by the current var will be deleted. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Video Mode Handling - Save per-display graphics/display settingsAntonino Daplas3-11/+113
This patch adds the following: a. convert struct fb_var_screeninfo to struct display and vice versa b. save settings of graphics card to struct display c. save settings of display to struct display as a pointer to a struct fb_videomode d. check var in fb_set_var for modes, and if unique, add them to the mode list. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Video Mode Handling - Linked list of video modesAntonino Daplas1-0/+257
The patch adds support for a mode database in a linked list form. Included in the patch are exportable functions that will: a. convert struct fb_videomode to struct fb_var_screeninfo and vice versa b. search the mode list for matching or best-fit modes c. add/delete entries to the database d. convert a mode array to a mode list e. destroy the entire list d. compare 2 modes Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev Kconfig dependency fixesLuca Tettamanti1-0/+3
radeonfb, rivafb and i810fb need CONFIG_FB_MODE_HELPERS. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] rivafb: kill riva_chip_info and riva_chipsGuido Guenther2-159/+125
Kill riva_chips_info and riva_chips and replace the NV_ARCH_ determination with a less error prone one. We better use the driver_data for something more interesting later. From: "Antonino A. Daplas" <adaplas@hotpop.com> 1. modified patch so it's in -p1 form 2. killed compile warning when CONFIG_FB_RIVA_I2C is not set 3. changed U032 to u32 in riva_get_arch() Signed-of-by: Guido Guenther <agx@sigxcpu.org> Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev: find correct logo for directcolor < 24bppAntonino Daplas1-11/+20
Current algorithm does not choose correct logo type for directcolor < 24 bpp. It chooses logo_224, but this is too deep for bpp < 24. This should fix the problem. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] i810fb fixesAntonino Daplas3-35/+51
1. Fixed cursor corruption if acceleration is enabled 2. Round up fields in var instead of rounding down 3. Set capabilities flags 4. Added myself to the MAINTAINERS file for i810fb 5. Make i810fb depend on X86 but not X86_64 6. Fixed typo in i810_init_monspecs(). Reported by Manuel Lauss <slauss@resi.at>. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] rivafb: Do not tap VGA ports if not X86Antonino Daplas2-1/+6
Do not tap VGA ports if arch is not X86. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev: ATTN: Maintainers - Set correct hardware capabilitiesAntonino Daplas47-47/+67
With David Eger's patch for advertising hardware capabilities to fbcon, only a few drivers so far have been converted to do just that. As a result, scrolling speed of some drivers will not be optimal (SCROLL_REDRAW). The patch adds the correct flags for all drivers (except for matroxfb -leave this to Petr-, and a few drivers that are not ported yet to 2.6). *Majority of changes is FBINFO_FLAG_DEFAULT -> FBINFO_DEFAULT Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbdev: set color fields correctlyAntonino Daplas7-1/+34
Although the depth can be correctly inferred from bits_per_pixel (if bits_per_pixel == 1), for the sake of consistency, drivers should still set the color fields correctly. True even if the first patch is not applied. (I've combined everything in a single diff since there is only 1 logical change) Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbcon: ifferentiate bits_per_pixel from color depthAntonino Daplas4-119/+205
1. If you remember this thread (HP300 support checked in), one concern was how to support framebuffers with bpp == 8 but color depth < 8 (chunky layout). I suggested to use the fields in var->{red|green|blue} to differentiate between bits_per_pixel and depth. Included is a patch that does that. (The above assumes background/foreground of 0/1. If hardware needs a different value, such as 0 - black, 0xff - white, just indicate TRUECOLOR or DIRECTCOLOR and set info->pseudopalette correctly in xxxfb_setcolreg().) The patch will break the following drivers when in monochrome since they do not set the proper color bitfields. I've included a fix in patch #2. 68328fb bw2fb cirrusfb dnfb macfb stifb tx3912fb 2. Besides the change above, support for the inverse and underline attribute is added in monochrome mode. One should get text which are underlined/reversed if the corresponding attribute is set. 3. Because vt.c uses a 16-color palette, use fbcon_default_cmap if framebuffer can do less than 16 colors. In 4 colors, display will be grayscaled. In 8 colors, display should have the same colors as a 16-color console but will lack brightness/ intensity. 4. Fix monochrome logo drawing. 5. Reduce code of fbcon_putc so it just calls fbcon_putcs. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] fbcon: EDD-based blacklistingAntonino Daplas1-10/+72
1. Created a database of broken displays and their associated fixes. Original patch from Brian S. Julin <bri@tull.umassp.edu>. Only the monitor manufacturer and model is checked, perhaps we can also check for the serial number? 2. Added an all_null check in edid_checksum since the checksum will also be zero if the entire block is zeroed. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Rivafb I2C fixesNicolas Boichat1-2/+11
The I2C busses opened by rivafb were deleted immediately after reading the EDID, but they should be kept open, so user-space applications can use them. They are now deleted when the driver is unloaded. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] radeonfb: cleanup and little fixesDavid Eger1-45/+41
Very similar to Francois Romieu's fixes for cirrusfb, here we: * Provide meaningful error values from radeonfb_pci_register() * Fix unbalanced pci_enable_device() * Fix unbalanced fb_alloc_cmap() * Fix a failure-case bug where we accidentally memset_io(0, 0, size); * Use pci_request_regions() instead of request_mem_region() Signed-off-by: David Eger <eger@havoc.gtf.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] get_random_bytes() returns the same on every bootBálint Márton1-0/+1
At boot time, get_random_bytes always returns the same random data, as if there were a constant random seed. For example, if I use the kernel level ip autoconfiguration with dhcp, the kernel will create a dhcp request packet with always the same transaction ID. (If you have more than one computers, and they are booting at the same time, then this is a big problem) That happens, because only the primary entropy pool is initialized with the system time, in function rand_initialize. The secondary pool is only cleared. In this early stage of booting, there is usually no user interaction, or usable disk interrupts, so the kernel can't add any real random bytes to the primary pool. And altough the system time is in the primary pool, the kernel does not consider it real random data, so you can't read from the primary pool, before at least a part of it will be filled with some real randomness (interrupt timing). Therefore all random data will come from the secondary pool, and the kernel cannot reseed the secondary pool, because there is no real randomness in the primary one. The solution is simple: Initialize not just the primary, but also the secondary pool with the system time. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] Subject: cdrom.c get_last_written fixupSamuel Thibault1-33/+49
There's something wrong in cdrom.c: cdrom_get_last_written() for instance calls cdrom_get_disc_info() and cdrom_get_track_info() to get information about tracks, but these functions don't ensure that all the track_information or disc_information structure is filled: /* (buflen was first set to 8 to get track_information_length field) */ if ((ret = cdo->generic_packet(cdi, &cgc))) return ret; cgc.buflen = be16_to_cpu(ti->track_information_length) + sizeof(ti->track_information_length); if (cgc.buflen > sizeof(track_information)) cgc.buflen = sizeof(track_information); cgc.cmd[8] = cgc.buflen; return cdo->generic_packet(cdi, &cgc); The second test ensures that at least we won't overflow the structure, but nothing ensures that all the structure will be filled. And indeed, we have a drive here that won't fill it all: the returned track_information_length field will be *less than* sizeof(track_information) - sizeof(ti->track_information_length), so that cdrom_get_last_written() reads values that weren't filled in! As a result, we are sometimes unable to read some parts of CDROMs, depending on the uninitialized state of the structure... Here is a patch that adds filling checks: cdrom_get_disc_info() and cdrom_get_track_info() return the actual filled length, and it's up to the caller to check that this is enough for him to get the values it wants. Note: adding something like a #define spanof(TYPE, MEMBER) ((size_t) ((&((TYPE *)0)->MEMBER)+1)) definition just near that of offsetof() in include/linux/stddef.h would make it more pretty, but still it won't help for bitfields :/ Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-1/+1
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-2/+0
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-2/+0
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen2-3/+2
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-1/+1
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-1/+1
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-1/+1
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] gcc-3.5 fixesAndi Kleen1-3/+0
Trivial gcc-3.5 build fixes. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] percpu: cpu_gdt_tableShai Fultheim1-7/+7
Use the percpu infrastructure rather than open-coded array[NR_CPUS]. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] devicemapper: use an IDR tree for tracking minorsKevin Corry1-79/+45
Keep track of allocated minor numbers with an IDR instead of a bit-set. Signed-off-by: Kevin Corry <kevcorry@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] multipath readahead fix fixNeil Brown1-5/+5
Make sure the right errno is return from a readahead error in multipath Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] handle blk_queue_tags_resize() allocation failuresBrian King1-8/+12
Fixes blk_queue_resize_tags to properly handle allocation failures. Currently, if a memory allocation failure occurs during blk_queue_resize_tags, the tag map ends up getting freed, which should not happen. The old tag map should be preserved and only the resize should fail. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] blk_resize_tags() fixBrian King1-3/+4
init_tag_map should not initialize the busy_list, refcnt, or busy fields in the tag map since blk_queue_resize_tags can call it while requests are active. Patch moves this initialization into blk_queue_init_tags. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] blk_queue_free_tags() fixBrian King1-7/+28
This is a resend of three ll_rw_blk patches related to tagged queuing. Currently blk_queue_free_tags cannot be called with ops outstanding. The scsi_tcq API defined to LLD scsi drivers allows for scsi_deactivate_tcq to be called (which calls blk_queue_free_tags) with ops outstanding. Change blk_queue_free_tags to no longer free the tags, but rather just disable tagged queuing and also modify blk_queue_init_tags to handle re-enabling tagged queuing after it has been disabled. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] disk barriers: MDJens Axboe7-2/+206
md bits Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] disk barriers: devicemapperJens Axboe3-0/+40
dm bits Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] disk barriers: scsiJens Axboe2-41/+81
scsi bits Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] disk barriers: IDEJens Axboe4-31/+360
ide bits Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] disk barriers: coreJens Axboe1-15/+129
IDE disk barrier core. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] ibmveth: add memory barrier for hypervisor synchronisationSantiago Leon1-1/+2
This patch adds a memory barrier to ensure synchronization with the hypervisor (and avoid a panic when the hypervisor is halfway through writing to the descriptor). It also removes an unnecessary check that is flawed anyway because the value can change between the atomic_inc() and the assert. Signed-off-by: Santiago Leon <santil@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] ibmveth: hypervisor return value fixSantiago Leon1-2/+2
This patch checks for the LongBusy return code from the hypervisor, and retries the operation (which is what the hypervisor expects the driver to do). Please apply. Signed-off-by: Santiago Leon <santil@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] ibmveth: race fixesDave Hansen2-2/+5
This patch fixes a race condition that would panic the kernel when replenishing a buffer pool. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] ibmveth: module tag fixesSantiago Leon1-4/+5
This and the following three patches contain bug fixes found in the stabilization of SLES9. This patch adds a call to MODULE_VERSION and changes the MODULE_AUTHOR call to me (obviously with Dave Larson's permission). It also increments the version number to keep track of the bug fixes. Please apply. Signed-off-by: Santiago Leon <santil@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] HVCS fixesRyan S. Arnold1-67/+94
Here are a set of HVCS (drivers/char/hvcs.c) fixes that were suggested by Jeff Garzik on July 29th in his review of this driver as well as some other fixes for problems I found while reviewing the driver. These are all relatively minor, but necessary. - Cleaned up curly braces on single line conditional blocks. - Replaced debug memset(...,0x3F,...) with memset(...,0x00,...). - Removed explicit '= 0' after static int declarations since these default to zero. - Removed list_for_each_safe() instances and replaced with list_for_each_entry() which cut down on amt of code. The 'safe' version is un-needed now that the driver is using spinlocks. - Changed spin_lock_irqsave() to spin_lock() when locking hvcs_structs_lock and hvcs_pi_lock since these are not touched in an int handler. - changed spin_lock_irqsave() to spin_lock() in interrupt handler. - Initialized hvcs_structs_lock and hvcs_pi_lock to SPIN_LOCK_UNLOCKED at declaration tiem rather than in hvcs_module_init(). - Added spin_lock around list_del() in destroy_hvcs_struct() to protect the list traversal from deletion. The original omission was an oversight. - Removed '= NULL' from pointer declarations since they are initialized NULL by default. - Removed wmb() instance from hvcs_try_write(). They probably aren't needed with locking in place. - Added check and cleanup for hvcs_pi_buff = kmalloc() in hvcs_module_init(). - Exposed hvcs_struct.index via a sysfs attribute so that the coupling between /dev/hvcs* and a vty-server can be systematically determined. - Moved kobject_put() in hvcs_open() outside of the spin_unlock_irqrestore(). - In hvcs_probe() changed kmalloc(sizeof(*hvcsd),...) to kmalloc(sizeof(struct hvcs_struct)) because hvcsd references a NULL pointer at the time of kmalloc. - Incremented the HVCS_DRIVER_VERSION to 1.3.1 arch/ppc64/kernel/hvcserver.c: - Changed function documentation of EXPORTed functions to comply with proper kernel-doc documentation style. - Changed 'unsigned int' types to 'uint32_t' to comply with how unit addresses and partition IDs are handled in other arch/ppc64 vterm code. - Cleaned up curly braces on single line conditional blocks. include/asm-ppc64/hvcserver.h: - Added kernel-doc style documentation for hvcs_partner_info struct. - changed 'unsigned int' types to 'uint32_t' to comply with how unit addresses and partition IDs are handled in other arch/ppc64 vterm code. Signed-off-by: Ryan S. Arnold <rsa@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] ppc64 iSeries virtual DVD-RAMStephen Rothwell1-7/+56
This patch adds the ability to use DVD-RAM drives to the iSeries virtual cdrom driver. This version adresses (hopefully) Jens comments on the previous one. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22[PATCH] ppc64: HVSI driverHollis Blanchard2-1/+1320
This is a console driver for IBM's p5 servers; please consider it for inclusion. I've addressed all the comments I've received so far. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-22Merge http://linux-watchdog.bkbits.net/linux-2.6-watchdogLinus Torvalds11-1/+12
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-22Merge http://xfs.org:8090/xfs-linux-2.6Linus Torvalds1-0/+2
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-22Merge bk://linux-dj.bkbits.net/cpufreqLinus Torvalds3-83/+130
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-22Merge bk://bk.arm.linux.org.uk/linux-2.6-fbLinus Torvalds4-0/+532
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-22[PATCH] update gianfar ethernet driverAndy Fleming6-885/+1047
2004-08-22Merge pobox.com:/spare/repo/linux-2.6Jeff Garzik44-3634/+11196
into pobox.com:/spare/repo/netdev-2.6/ALL
2004-08-21[PATCH] Fix HPT374 merge problemAlan Cox1-1/+1
This got accidentally reverted in merging HPT372N support. The following patch restores 50Mhz on the HPT374 using the 370a clocking tables.
2004-08-21[PATCH] Kconfig updates for PA-RISCMatthew Wilcox2-3/+3
Fix some Kconfig dependencies on PA-RISC (Grant Grundler, Martin Schulze, Helge Deller, Matthew Wilcox)
2004-08-20[WATCHDOG] v2.6.8.1 watchdog-llseek-patchWim Van Sebroeck10-0/+10
The watchdog drivers use a VFS implementation and thus should not be lseek'able, so we put a '.llseek = no_llseek' in the file_operations structure.
2004-08-20[WATCHDOG] v2.6.8.1 cpu5wdt.c-nonseekable_open-patchWim Van Sebroeck1-1/+2
cpu5wdt also contains a VFS and thus should be "nonseekable_open"
2004-08-19[CPUFREQ] Fix up deprecation notices.Dave Jones2-4/+12
From: Pavel Machek <pavel@ucw.cz> - Add missing newlines - 80-column goodness. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Jones <davej@redhat.com>
2004-08-20[XFS] Export blk_get_backing_dev_info for filesystems to use.Nathan Scott1-0/+2
2004-08-18[libata sata_nv] fix leak on errorAndrew Chew1-2/+6
Spotted by Francois Romieu.
2004-08-17[libata] improve translation of ATA errors to SCSI sense codesAlan Cox2-18/+142
2004-08-17[libata] fix INQUIRY handlingDouglas Gilbert1-2/+2
Changes: - send vendor, product and rev strings back for 36 byte INQUIRYs - set the additional length field to indicate 96 byte response is available
2004-08-17[libata] fix error recovery reference countJeff Garzik1-0/+6
This bug could potentially lead to soft hangs (processes stuck in D state) if an error occurred. Yet another undocumented nuance of the ->eh_strategy_handler. Thanks to excellent detective work by Brad Campbell tracking this down.
2004-08-17[ARM] Add ARM AMBA CLCD framebuffer driver.Russell King4-0/+532
This changeset adds the ARM AMBA CLCD framebuffer driver. This is a generic core driver; users are expected to add their platform specifics via the "platform_data" struct device entry.
2004-08-16Merge pobox.com:/spare/repo/linux-2.6Jeff Garzik44-3634/+11196
into pobox.com:/spare/repo/netdev-2.6/ALL
2004-08-16[PATCH] libata build fixAndrew Morton1-1/+1
drivers/scsi/libata-core.c: In function `swap_buf_le16': drivers/scsi/libata-core.c:2073: `words' undeclared (first use in this function) drivers/scsi/libata-core.c:2073: (Each undeclared identifier is reported only once Signed-off-by: Andrew Morton <akpm@osdl.org>
2004-08-14[libata] add ioctl infrastructureJeff Garzik12-11/+63
Mainly adding the infrastructure for various ATA ioctls. Currently only supports two ATA-specific ioctls: HDIO_GET_32BIT and HDIO_SET_32BIT (hdparm -c)
2004-08-14[libata] ATAPI PIO data xferJeff Garzik1-32/+81
Abstract out PIO data xfer to xfer-a-sector and other-stuff pieces, then add new ATAPI code that uses the common xfer-a-sector code.
2004-08-14[libata] fix PIO data xfer on big endianJeff Garzik1-5/+19
We were reading the data swapped, which was correct for the data page read from IDENTIFY DEVICE and incorrect for all other situations. Noticed by Ben Herrenschmidt.
2004-08-13[libata] support commands SYNCHRONIZE CACHE, VERIFY, VERIFY(16)Jeff Garzik1-7/+132
2004-08-13Merge pobox.com:/spare/repo/linux-2.6Jeff Garzik11-439/+683
into pobox.com:/spare/repo/libata-2.6
2004-08-13Make 'WRITE_BUFFER' require CAP_RAWIO capabilityLinus Torvalds1-1/+0
Pointed out by Kai Makisara.
2004-08-13mergeLen Brown3-20/+42
2004-08-13[ACPI] Enter ACPI mode earlierLen Brown2-6/+42
Fixes two common boot failures due to buggy SMM BIOS code SMP boot crash if SMI_CMD=ACPI written from CPU1 http://bugzilla.kernel.org/show_bug.cgi?id=2941 laptop crash due to LAPIC timer before SMI_CMD=ACPI http://bugzilla.kernel.org/show_bug.cgi?id=1269
2004-08-13[libata] (cosmetic) minimize diff with 2.4.x libataJeff Garzik3-2/+3
Also, remove BenH's email address from SiI driver, to reduce email coming to him for a driver he didn't write (by request).
2004-08-13Merge pobox.com:/spare/repo/linux-2.6Jeff Garzik11-437/+680
into pobox.com:/spare/repo/libata-2.6
2004-08-13Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown28-331/+712
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-13[ACPI] clean out blacklist entries that do nothingLen Brown1-14/+0
2004-08-13[PATCH] lasi_82596 updateMatthew Wilcox1-80/+83
Update lasi 82596 driver: - Fix boot messages (Helge Deller) - Whitespace and __FILE__ usage (Joel Soete) - 64-bit compile warning fixes (James Bottomley)
2004-08-12[PATCH] cdrom: MO-drive open write fixStefan Meyknecht1-3/+6
This trivial fix allows mounting MO-drives readwrite. Acked by Jens. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-12[PATCH] PA-RISC updateMatthew Wilcox7-200/+482
- __PAGE_OFFSET is 0x10000000 (Randolph Chung) - PA8800 support (Grant Grundler) - debuglocks (Thibaut Varene) - PDC chassis disabling (Thibaut Varene) - Distinguish between Dinos in request_irq (Thibaut Varene) - Document interrupt registers (Randolph Chung) - Revamp CONFIG_DISCONTIGMEM support (Randolph Chung) - Remove STI console warning and special casing (Randolph Chung) - n4000 defconfig (Randolph Chung) - iosapic fixes (Bjorn Helgaas) - Fix a bug in entry.S where pa_dbit_lock was being trashed (Randolph Chung) - SMP support (Randolph Chung, Grant Grundler, James Bottomley) - Clear the pte in the fault handler (Joel Soete) - Change _exit prototype (Carlos O'Donell) - Better unwinding support (Randolph Chung) - GCC 3.4 fixes (Carlos O'Donell, Randolph Chung)
2004-08-12Merge pobox.com:/spare/repo/linux-2.6Jeff Garzik44-3634/+11196
into pobox.com:/spare/repo/netdev-2.6/ALL
2004-08-12Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmciaLinus Torvalds19-35/+114
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-12[PCMCIA] pd6729: add MODULE_DESCRIPTION and MODULE_AUTHOR, fix comment styleRussell King1-13/+27
2004-08-12Allow non-root users certain raw commands if they are deemed safe.Linus Torvalds1-11/+85
We allow more commands if the disk was opened read-write.
2004-08-12Pass done file pointer to block device ioctl'sLinus Torvalds18-23/+23
They'll need it for permission checking.
2004-08-12Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown32-191/+645
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-11Be a bit more anal about allowing SCSI commands to be sent.Linus Torvalds1-0/+4
Normal users shouldn't have access to the raw device anyway unless they are in the trusted "disk" group, but let's require RAWIO capabilities. That's what the original SCSI interfaces did anyhoo. We probably _should_ just require write access, but that will need more of a code change to pass down the file descriptor.
2004-08-11[PATCH] setup queue before elevator_init()Jens Axboe1-5/+6
We must setup the queue before calling elevator_init(), otherwise the elevator cannot use the queue members. This really hurts cfq since it checks ->nr_requests, which is zero at that time. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-11[CPUFREQ] deprecate proc_sys_intf, and inform users of removal ~2005-01-01Dave Jones1-0/+13
The /proc/sys/cpu/ interface was deprecated already when cpufreq was merged into the kernel. With 2.7. not appearing soon, let's do the same what's suggested for devfs and others: inform users of it being deprecated Signed-off-by: Dominik Brodowski <linux@brodo.de> Signed-off-by: Dave Jones <davej@redhat.com>
2004-08-11[CPUFREQ] deprecate proc_intf, and inform of removal ~2005-01-01Dave Jones1-0/+13
The /proc/cpufreq interface was deprecated already when cpufreq was merged into the kernel. With 2.7. not appearing soon, let's do the same what's suggested for devfs and others: inform users of it being deprecated. Signed-off-by: Dominik Brodowski <linux@brodo.de> Signed-off-by: Dave Jones <davej@redhat.com>
2004-08-11Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown20-279/+326
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-10Merge bk://linux-mtd.bkbits.net/mtd-2.6Linus Torvalds32-191/+645
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-11Fix MTD partitioning modular build.David Woodhouse1-2/+1
2004-08-11Merge bk://linux-mtd.bkbits.net/mtd-2.6David Woodhouse32-190/+645
into dwmw2.baythorne.internal:/inst/bk/mtd-2.6
2004-08-10Export new mtd_erase_callback() function.David Woodhouse1-1/+2
2004-08-10RedBoot flash partitioning: use vmalloc for buffer.David Woodhouse1-3/+4
2004-08-10Restore physmap configure-time settings according to user requests.Josh Boyer2-6/+18
Patch from Jun Sun. Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
2004-08-10M-Systems DiskOnChip driver update.David Woodhouse3-92/+545
- Add Millennium Plus support. - Add advanced probe configuration options - Fix abuse of buffer space in scan for Media Header.
2004-08-10Cosmetic MTD changes -- update email address and idents.David Woodhouse5-9/+9
2004-08-10Fix use-after-free bug in MTD partitioning code.David Woodhouse21-80/+68
Define callback wrapper function mtd_erase_callback() to handle partition offsets during the callback, rather than attempting to fix them up in the freed erase_info structure after the callback has already happened.
2004-08-10Merge bk://gkernel.bkbits.net/net-drivers-2.6Linus Torvalds9-203/+50
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-10[PATCH] bk-netdev-hp-plus-fixAndrew Morton1-4/+4
Signed-off-by: Andrew Morton <akpm@osdl.org>
2004-08-10[PATCH] wrong mac address with netgear FA311 ethernet cardAndrew Morton1-1/+1
From: Mathieu LESNIAK <maverick@eskuel.net> This patch corrects a problem with Netgear FA311 ethernet card (a cheap one). Without it, the MAC address is byte swapped ie : HWaddr 02:00:07:E3:E9:F5 instead of : HWaddr 00:02:E3:07:F5:E9 (the correct MAC address vendor code for Netgear/LiteOn is 00:02:E3) Signed-off-by: Andrew Morton <akpm@osdl.org>
2004-08-10[PATCH] bk-netdev-axnet_cs-fixAndrew Morton1-1/+1
Signed-off-by: Andrew Morton <akpm@osdl.org>
2004-08-10[PATCH] Atmel wireless bigendian fix.Simon Kelley1-2/+2
The following patch adds a couple of missing byteswaps and allows the Atmel wireless driver to work in WEP mode on big-endian CPUs. (tested on powerPC).
2004-08-10[PATCH] prism54 Fix supported rates reportingMargit Schubert-While1-3/+2
* We are not correctly reporting supported bit rates. * Fix it.
2004-08-10[PATCH] prism54 Fix memory leaksMargit Schubert-While2-4/+12
* Change the "version" OID to what it should be. * Fix memory leaks - mgt_get_request always returns * allocated memory for non-int OIDS (with an exception - * keep reading). If the caller checks the return and itself * returns, then it must free memory. * However, it is possible to return from mgt_get_request * early (!priv->mib). In this case, weird things can happen * in isl_ioctl. Quick fix, at least to force an oops, is * to set the union value to NULL. The real fix is to * recode all mgt_get_request calls in isl_ioctl.
2004-08-10[PATCH] prism54 URGENT - Fix IRQ handlingMargit Schubert-While1-5/+13
* We are handing back HANDLED even though the IRQ is not for us. We also change device state. This is plainly wrong. AFAICT we also need to take the spin lock early. Tested/running on UP/SMP for about a week now. (Discovered on one of my lappies that had the X driver on the same IRQ) (Proposed on Prism54 Devel with no objections)
2004-08-10[PATCH] prism54 Clarification to Viro's patchMargit Schubert-While3-183/+15
* It seems that Viro patched prism54 with the following patch set : http://www.kernel.org/pub/linux/kernel/v2.6/testing/cset/ cset-viro@www.linux.org.uk[torvalds]|ChangeSet|20040727040034|54764.txt * I do not see any indication in any mailing list of this. It would be nice if we could be informed of such changes :-) * (Changes committed to our CVS)
2004-08-10[libata] unmap MMIO region _after_ last possible usageAndrew Chew1-2/+2
2004-08-10[libata sata_nv] support for hardware, bug fixesAndrew Chew1-66/+248
2004-08-09Merge bk://kernel.bkbits.net/davem/sparc-2.6Linus Torvalds2-2/+4
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-09[PATCH] via-rhine: Really call rhine_power_init()Roger Luethi1-2/+2
Without this patch, mainline via-rhine cannot wake the chip if some other driver puts it to D3. The problem has hit quite a few people already. This is a fix for the heisenbug with via-rhine refusing to work sometimes. Patch "[9/9] Restructure reset code" contained a change made necessary by patch [8/9]. Mainline merged [8/9] for 2.6.8 and is still missing the fix, while -mm got it with [9/9]. Jesper Juhl provided crucial test data when no one else was able to reproduce the symptoms. Signed-off-by: Roger Luethi <rl@hellgate.ch> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-09[PATCH] export kblockd_schedule_work()Jens Axboe1-0/+2
This is used by some IBM vscsi driver. It was using schedule_work(), but should be using the block layer queue. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-09Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6David S. Miller4-5/+5
into kernel.bkbits.net:/home/davem/sparc-2.6
2004-08-09Fix up drivers that access file->f_pos directly.Linus Torvalds3-4/+4
Use the proper "pointer to pos" that is passed down instead.
2004-08-09[PATCH] boolean typo in DVBDave Jones1-1/+1
This looks like what was intended here.. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-09[SPARC64]: More entropy in add_timer_randomness.David S. Miller1-0/+5
Based upon a patch from Richard Mortimer. Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-09Merge intel.com:/home/lenb/src/linux-acpi-test-2.6.7Len Brown4-32/+65
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-09[ACPI] init wakeup devcies only if ACPI enabled (David Shaohua Li)Len Brown1-0/+2
2004-08-09[ACPI] acpi_bus_register_driver() now return a countLen Brown1-11/+15
consistent with pnp_register_driver() and pci_register_driver() All existing callers of acpi_bus_register_driver() either ignore the return value or check only for negative (error) return values. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
2004-08-09[ACPI] acpi for asus update from Karol KozimorLen Brown1-19/+46
support for L4R and M5N, moves some bits for M6N and restores WLED functionality for M2N comment and whitespace cleanups fix get/set typo from /proc patch, delete trailing spaces
2004-08-09Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown64-392/+155
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-08[PATCH] HPT IDE updateAlan Cox1-0/+9
This part got missed in the earlier merge, not sure where it escaped.
2004-08-08[PATCH] Export blk_queue_resize_tagsJens Axboe1-0/+2
Exports blk_queue_resize_tags since it is an exported interface. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-08[PATCH] adjust SG reserved size automaticallyJens Axboe1-1/+1
The block layer SG should have the identical behaviour as SCSI sg when it comes to SG_SET_RESERVED_SIZE - allow caller to specify a large amount, truncate to largest we support, and return that with SG_GET_RESERVED_SIZE. Currently we fail with -EINVAL if the value is too large, I think the SCSI sg behaviour is more sane to use. This one-liner fixes it up, please apply for 2.6.8. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-08Merge bk://bk.arm.linux.org.uk/linux-2.6-rmkLinus Torvalds5-32/+42
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-08[ARM] Fix wdt977 sparse warningsRussell King1-7/+14
drivers/char/watchdog/wdt977.c:291:9: warning: incorrect type in initializer (different address spaces) drivers/char/watchdog/wdt977.c:291:9: expected char const [noderef] *register __p<asn:1> drivers/char/watchdog/wdt977.c:291:9: got char const *buf ...
2004-08-08[ARM] Fix nwflash sparse warningsRussell King1-12/+11
2004-08-08[ARM] Fix nwbutton sparse warningsRussell King2-3/+1
drivers/char/nwbutton.c:177:24: warning: incorrect type in argument 1 (different address spaces)/home/rmk/bk/linux-2.6-rmk/drivers/char/nwbutton.c:177:24: expected void [noderef] *to<asn:1> drivers/char/nwbutton.c:177:24: got char *buffer drivers/char/nwbutton.c:177:24: warning: incorrect type in initializer (different address spaces) drivers/char/nwbutton.c:177:24: expected void [noderef] *to<asn:1> drivers/char/nwbutton.c:177:24: got char *buffer drivers/char/nwbutton.c:189:11: warning: incorrect type in initializer (incompatible argument 2 (different address spaces)) drivers/char/nwbutton.c:189:11: expected int [usertype] ( *read )( ... ) drivers/char/nwbutton.c:189:11: got int ( static [addressable] [toplevel] *<noident> )( ... )
2004-08-08[ARM] Fix sparse warnings in ds1620.cRussell King1-10/+16
drivers/char/ds1620.c:230:19: warning: incorrect type in argument 1 (different address spaces) drivers/char/ds1620.c:230:19: expected void [noderef] *to<asn:1> drivers/char/ds1620.c:230:19: got char *buf drivers/char/ds1620.c:230:19: warning: incorrect type in initializer (different address spaces) drivers/char/ds1620.c:230:19: expected void [noderef] *to<asn:1> drivers/char/ds1620.c:230:19: got char *buf ... drivers/char/ds1620.c:383:52: warning: Using plain integer as NULL pointer
2004-08-08Remove ESPIPE logic from drivers, letting the VFS layer handle it instead.Linus Torvalds51-271/+60
This cleans up and simplifies drivers, and also allows us future simplification in the VFS layer, since it removes knowledge about internal VFS layer handling of "f_pos".
2004-08-07[ACPI] acpi_system_write_wakeup_device() has the wrong return typeLen Brown1-2/+2
and is missing the __user attribution from its buffer argument. This patch shuts up the resulting warnings on x86-64. From: William Lee Irwin III <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org>
2004-08-07Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown25-235/+348
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-07Make sysctl pass the pos pointer around properly.Linus Torvalds5-44/+44
Nobody ever fixed the big FIXME in sysctl - but we really need to pass around the proper "loff_t *" to all the sysctl functions if we want them to be well-behaved wrt the file pointer position. This is all preparation for making direct f_pos accesses go away.
2004-08-07Fix up a couple of drivers - notable sg - for nonseekability.Linus Torvalds3-10/+3
2004-08-07Character device tape drivers are non-lseekable.Linus Torvalds2-18/+5
You can seek the tape, but you do it with the magic tape control ioctl's, not with lseek/pread/pwrite.
2004-08-07Mark tty's as being non-seekable, and remove the nowLinus Torvalds1-17/+1
unnecessary tests at read/write time.
2004-08-07[PATCH] s390: qeth performance.Thomas Spatzier4-100/+220
qeth network driver performance improvements. The ping time on the HiperSockets interface drops from 250 usecs to 50 usecs and the 1 bytes request/response test improves from 70000 to 110000 transactions. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] s390: zfcp host adapater.Martin Schwidefsky5-34/+36
From: Heiko Carstens <heiko.carstens@de.ibm.com> From: Andreas Herrmann <aherrman@de.ibm.com> zfcp host adapater change: - Fix call to close_physical_port to prevent devices going offline after error recovery. - Fix return value of sysfs port_remove attribute store function. - Replace reboot notifier with device driver shutdown function. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] s390: ctc driver changes.Peter Tiedemann3-49/+49
Prefix debug feature variables with ctc to avoid name space problems. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] s390: msleep vs. schedule_timeout.Nishanth Aravamudan5-25/+17
Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] s390: common i/o layer changes.Cornelia Huck4-7/+17
common i/o layer changes: - Set state of a disconnected device to offline before calling ccw_device_online, otherwise the device doesn't come up again. - Check for channel end when trying to find out if basic sense was successful. - Fix error handling in new_channel_path. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] s390: core changes.Martin Schwidefsky1-3/+4
From: Martin Schwidefsky <schwidefsky@de.ibm.com> s390 core changes: - Add 32 bit compat code for ptrace requests PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO. - Make non-smp kernel compile. - Regenerate default configuration. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] sparc32: remove unused variable in dvma.cWilliam Lee Irwin III1-1/+0
This variable is unused and causes noisy compiles. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-07[PATCH] Restore PPP filteringPaul Mackerras1-10/+2
Karsten Keil's patch entitled "[ISDN]: Fix kernel PPP/IPPP active/passiv filter code" that went in back in April was an attempt to solve a real problem - namely that the libpcap maintainers have removed useful functionality that pppd was using - but his fix broke existing pppd binaries and IMO didn't end up actually solving the problem. This patch reverts the change to ppp_generic.c so that existing pppd binaries work again. I am going to have to work out a proper fix, which may involve further changes to ppp_generic.c, but I will make sure existing pppd binaries still work. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-06Merge bk://bk.arm.linux.org.uk/linux-2.6-serialLinus Torvalds1-2/+1
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-06[SERIAL] replace schedule_timeout() with msleep()Russell King1-2/+1
Patch from: Nishanth Aravamudan Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Nishanth Aravamudan Signed-off-by: Russell King
2004-08-06[FB] replace schedule_timeout() with msleep()Russell King1-4/+2
Patch from: Nishanth Aravamudan Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time. Signed-off-by: Nishanth Aravamudan Signed-off-by: Russell King
2004-08-05Merge bk://gkernel@bkbits.net/netdev-2.6Jeff Garzik47-3819/+11213
into pobox.com:/spare/repo/netdev-2.6/ALL
2004-08-05Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown10-124/+34
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-05[PATCH] imm.c oops fixAlexander Viro1-0/+7
Fix bug #3125: This should fix the problem; however, we will need to repeat that for all PIO SCSI drivers (another immediate victim is ppa.c). We should start looking for sane solution; I _really_ don't like the kludge with using ->slave_alloc() for fixups after scsi_alloc_queue(). Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-05Merge bk://linux-mtd.bkbits.net/mtd-2.6Linus Torvalds4-88/+19
into ppc970.osdl.org:/home/torvalds/v2.6/linux
2004-08-05[PATCH] simple_read_buffer() helper functionAlexander Viro3-86/+12
A number of drivers or special virtual devices really just want their "read()" function to populate user space from some internal buffer. This adds such a helper function - "simple_read_from_buffer()" - and converts several ->read() instances to use it. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-04[PATCH] multipath readahead fixJens Axboe1-2/+3
For requests marked read-ahead, it can legitimately fail without it being a path problem. So don't fail a path just because this happens (can be the atomic request allocation going nuts, for instance), or all paths will quickly go away. Cc: <neilb@cse.unsw.edu.au> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-04[PATCH] md multipathing fixesHeiko Carstens1-0/+4
I tried to get multipathing failover running and failed. It seems to be that there are two bugs in multipath.c : - If a path/request fails mp_bh->path doesn't get updated to the new path. Thus multipath_end_request will access a NULL pointer if a redirected request returns. - After fixing this I experienced several other errors. First of all in bio->bi_flags the BIO_UPTODATE flag is not set when redirecting a request. Causing the md driver to think that every redirected request failed when it returns. Since that alone didn't fix the problems, I simply copied the master_bio again and it looks like everything seems to work. Cc: <neilb@cse.unsw.edu.au> Cc: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-05Merge shinybook.infradead.org:/home/dwmw2/bk/linus-2.5David Woodhouse5-36/+8
into shinybook.infradead.org:/home/dwmw2/bk/mtd-2.6
2004-08-04Merge intel.com:/home/lenb/src/linux-acpi-test-2.6.7Len Brown1-4/+72
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-04[ACPI] restore PCI Interrupt Link Devices upon resumeNathan Bryant1-4/+72
* register as as a sys_device so that we can get resume callbacks and restore interrupt routing state. * add acpi_pci_link_resume(), which will be called when resuming from a suspend state that needs IRQ routing to be restored. This fixes issues reported on the mailing lists, e.g.: http://marc.theaimsgroup.com/?l=acpi4linux&m=109142999328643&w=2 * rename setonboot --> initialized * change to test acpi_noirq in init We want to initialize everything on S3 resume in case the BIOS points an interrupt link somewhere we didn't expect. (Doing so avoids "missing interrupt" or "irq x: nobody cared" problems.) According to Len, past experience has shown that it's a good idea to initialize only devices that exist or were explicitly asked for, so we try to initialize only the IRQ's that were previously initialized at some point before suspend, by checking the "initialized" flag. This corresponds to links that have PCI devices attached. Everything else, we leave alone. Assuming the BIOS does the same thing on resume that it did on boot, this will leave all the unused links in the same state that they were on boot. We are registered as a sysdev in order to do this work fairly early during resume, before devices are resumed; some devices may not call pci_device_enable. Previous "setonboot once" behavior is left in place, to be conservative.
2004-08-03Merge intel.com:/home/lenb/src/linux-acpi-test-2.6.7Len Brown1-4/+16
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-03[ACPI] BIOS workaround allowing devices to use reserved IO portsLen Brown1-4/+16
Author: David Shaohua Li http://bugzilla.kernel.org/show_bug.cgi?id=3049
2004-08-03Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown1-0/+21
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-03Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown4-52/+46
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-02[PATCH] ppc64: Start the FCU in therm_pm72.cBenjamin Herrenschmidt1-0/+21
Some G5 recent powermacs start with the fan control unit (FCU) disabled, by the firmware, causing the thermal control driver to break. We have to enable it before starting the feedback loops that set the fan speeds. This patch adds the code to start the FCU. Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-03[CPUFREQ] fix HT oops on speedstep-ich systemDave Jones1-2/+4
Bugfix for #3012 @ http://bugme.osdl.org/show_bug.cgi?id=3012 The speedstep-ich driver only registers for CPU0 (which is a sane thing to do). However, cpufreq_notify_transition() currently assumes the CPU specified in the freqs.cpu parameter has actually been registered with the CPUfreq core. This is obviously not the case for HT speedstep-ich CPUs, causing an OOPS. The long-term solution will be to merge the "cpufreq CPU group awareness patches" already RFC'ed to this list; but they still need a bit of polishing and testing. Thanks to Boris Fersing for reporting the bug and testing this fix. Signed-off-by: Dominik Brodowski <linux@brodo.de> Signed-off-by: Dave Jones <davej@redhat.com>
2004-08-02MergeDave Jones2-83/+94
2004-08-02[PATCH] bio_copy_user() cleanups and fixesJens Axboe4-52/+46
blk_rq_map_user() is a bit of a hack currently, since it drops back to kmalloc() if bio_map_user() fails. This is unfortunate since it means we do no real segment or size checking (and the request segment counts contain crap, already found one bug in a scsi lld). It's also pretty nasty for > PAGE_SIZE requests, as we attempt to do higher order page allocations. Even worse still, ide-cd will drop back to PIO for non-sg/bio requests. All in all, very suboptimal. This patch adds bio_copy_user() which simply sets up a bio with kernel pages and copies data as needed for reads and writes. It also changes bio_map_user() to return an error pointer like bio_copy_user(), so we can return something sane to the user instead of always -ENOMEM. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-02Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown55-538/+828
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
2004-08-01[PATCH] ISDN Eicon driver: use msleep()Armin Schindler1-5/+2
Author: Armin Schindler, Nishanth Aravamudan Use kernel provided msleep() instead of own sleep implementation. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] fix cdrom cdda rip single frame dma fall backJens Axboe1-0/+5
There's a stupid error in the fall back logic, it fails to increment the user pointer so the wave file is corrupt. We should also clear last_sense just to be sure. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] Canonically reference files in Documentation/ code comments partAdrian Bunk27-28/+28
Below is a patch by Hans Ulrich Niedermann <linux-kernel@n-dimensional.de> to change all references in comments to files in Documentation/ to start with Documentation/ Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] remove outdated reference to Documentation/arm/SA1100/PCMCIAAdrian Bunk1-4/+0
This file does not exist in 2.6. Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] HPET copyrights, cleanupBjorn Helgaas2-15/+21
This patch - adds copyright and license info - changes sense of mmap config option (setting option enables mmap instead of disabling it, to avoid the double negative) - removes an #ifdef CONFIG_IA64 now that acpi_register_gsi() is generic. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] DVB: "errno" undefinedArnd Bergmann4-19/+12
Actually, the problem has its origin in my removal of all in-kernel syscalls (except execve, which is non-trivial) earlier this year. This change was blindly reverted by the maintainer, while at the same time the local errno variable was removed. See also http://linux.bkbits.net:8080/linux-2.5/hist/drivers/media/dvb/frontends/tda= 1004x.c This patch is the one that was already merged earlier. I'm now also removing the definitions for the kernel syscalls on i386 to make it harder to reintroduce them again. This was already done for ppc64, the others should probably follow. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] Fix modular anscdChristoph Hellwig2-3/+10
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] modular swim3Christoph Hellwig3-7/+8
ACKed by the pmac folks a while ago. Also moves the Kconfig entry to where it belongs. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] fdomain_cs ISA fixAlan Cox2-1/+5
Revert the recent fdomain_cs config dependency "fix" and fix the linkage error with ifdeffery instead. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] rename CONFIG_PCI_USE_VECTOR to CONFIG_PCI_MSIBjorn Helgaas2-14/+7
The "vector" terminology is architecture-dependent. The PCI MSI interface actually deals with Linux IRQ numbers (i.e., things you can pass to request_irq()), and we shouldn't confuse things by calling them "vectors" just because we're using MSI rather than an IOSAPIC. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] MSI: MSI/MSI-X API updatesRoland Dreier2-323/+471
Second half of MSI rewrite: fix the API and update documentation. Split enabling MSI and MSI-X to separate pci_enable_msi()/pci_disable_msi() and pci_enable_msix()/pci_disable_msix() functions. free_irq() no longer has the side effect of freeing interrupt vectors (so a device driver can do multiple request_irq()/free_irq() cycles on the same MSI/MSI_X vector). From: Tom L. Nguyen <tom.l.nguyen@intel.com> Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01[PATCH] MSI: stop using dev->bus->ops directly in msi.cRoland Dreier1-58/+45
First half of the MSI rewrite: pure cleanup. Use proper pci_read_config_xxx() and pci_write_config_xxx() functions instead of accessing raw dev->bus->ops. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-01Merge conflicts.David S. Miller1-1/+17
2004-07-31Merge intel.com:/home/lenb/bk/linux-2.6.8Len Brown52-709/+634
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8