- 11 Feb, 2005 6 commits
-
-
Benjamin Herrenschmidt authored
It adds the sleep support for newer powermacs, improve power saving on some laptops, makes use of the new fbdev modelist management routines, and fixes a few backlight related issues. I tested it on a thinkpad T30 and a few PPC boxes with success. It should be less invasive than the previous one (I don't try to restore the mode on exit, that is what breaks the thinkpad and possibly other stuffs that boot in VGA text mode), plus fixed a couple of bugs in the mode detection code. I also reverted the memory map fix on ppc since it doesn't work properly on some recent laptops where the firmware sets a tiled display. I'll rework that completely to update the memory map as part of the mode setting later. That should fix various issues when switching with X/DRI on x86. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Benjamin Herrenschmidt authored
This patch updates aty128fb power management code to the changes of the powermac sleep mecanism. It makes the driver use the new hook for early wakeup, adds the call to the arch code indicating wether it can wakeup the chip, etc... This patch shouldn't break non-ppc, but this should be tested. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Benjamin Herrenschmidt authored
The new PowerMac sleep code provides an arch hook that can be used by video drivers on laptops to bring back the screen very early, pretty much before anything else. This basically turns reports of the style "my laptop doesn't wakeup" to "I get this or this oops/error/panic on wakeup", making fixing the PM related bugs possible on a whole range of them. However, the fbdev wakeup code triggers WARN_ON's in the VT subsystem if called without the console semaphore when redrawing the screen (I added those warnings a couple of kernel versions ago), and we can't call acquire_console_sem() since we are so early in the wakeup process that we are considered as in_atomic() (we hold irqs off too). This patch addds a try_acquire_console_sem() function that can be used by those video drivers that implement this early wakeup hook. If the acquire fails (which should never happen in practice), wakeup is delayed to the normal PCI callback which does a blocking acquire_console_sem(). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Corey Minyard authored
The 1999 version of the DMI spec had a different configuration than the newer versions for the IPMI configuration information. This patch handles the differences between the two. Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bodo Stroesser authored
In linux 2.6, PTRACE_SETOPTIONS is redefined to 0x4200, while the old 2.4 value (21) is still available as PTRACE_OLDSETOPTIONS. So, if UML uses PTRACE_SETOPTIONS, an UML-kernel built on a 2.6 won't run on a 2.4 host. Hence we must use PTRACE_OLDSETOPTIONS. For cases when PTRACE_OLDSETOPTIONS does not exists (i.e. 2.4 host or archs which miss it because they don't have a "deprecated" value), we fallback this macro to PTRACE_SETOPTIONS. Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Jeff Dike authored
Fix a typo in the Makefile cleanup merged earlier, which causes compile failures in some edge cases. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
- 10 Feb, 2005 26 commits
-
-
bk://kernel.bkbits.net/davem/sparc-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
bk://kernel.bkbits.net/davem/net-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Art Haas authored
Signed-off-by: David S. Miller <davem@davemloft.net>
-
Meelis Roos authored
smp_mb(), smp_rmp() and smp_wmb() definitions have a trailing semicolon and cause compilation errors in single statement context, like if-then-else on line 358 in include/linux/skbuff.h. This patch removes all three offending semicolons to make it compile. Signed-off-by: Meelis Roos <mroos@linux.ee> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-
David S. Miller authored
Helps with crazy Mac OS-X TCP implementations which delay the recvmsg() wakeup of the user until push is seen. Based upon ideas from Alexey Kuznetsov, and a preliminary patch by Stephen Hemminger. Signed-off-by: David S. Miller <davem@davemloft.net>
-
bk://bk.arm.linux.org.uk/linux-2.6-rmkLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Andries E. Brouwer authored
The nls_cp936.c is not synchronized with MS's translation table, there are some characters have different code from the code in updated table of MS. For example, the unicode for character 0xB8A3 (GBK) should be U+798F, but the code is U+FA1B in nls_cp936.c. Regenerated the tables. The number of differences is rather large, so I did not check every change, but looking at a random sample the changes seem OK. Mostly the CJK Compatibility Ideographs have been replaced by their ordinary equivalents. Some code points that were unassigned now got a meaning. Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Olaf Hering authored
local variable is base, not vbase. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Zwane Mwaikambo authored
Richard Purdie provided a patch to fix support for XScale1 processors (this is the PMU version i never had access to initially), we weren't clearing the overflow flags after an overflow interrupt had triggered resulting in no additional interrupts occuring. Additionally i've added basic power management support. Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Andi Kleen authored
This effectively enables executable stack and executable heap for all 32bit programs on x86-64, except if noexec32=on is specified. This does not support changing this with personality right now, this would need more intrusive changes. A 64bit process will always turn it off and a 32bit process turn it on. Also readd the noexec32=on option to turn this off and fix a minor bug in noexec=... (would be reported as unknown option) Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Zwane Mwaikambo authored
The linker doesn't complain, but i got this error on ARM which has similar code. oprofile_arch_exit: discarded in section `.exit.text' from arch/arm/oprofile/built-in.o arch/arm/oprofile/built-in.o(.init.text+0x4c): In function `oprofile_init': : relocation truncated to fit: R_ARM_PC24 oprofile_arch_exit oprofile_arch_init() <error path> oprofile_arch_exit() __exit nmi_exit() __exit exit_driverfs() Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Pavel Machek authored
So we discover that Borland's Kylix application builder emits weird elf files which describe a non-writeable bss segment. So remove the clear_user() check at the place where we zero out the bss. I don't _think_ there are any security implications here (plus we've never checked that clear_user() return value, so whoops if it is a problem). Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Martin Schwidefsky authored
The second parameter of the sys_ipc system wrapper on ppc64, s390-64 and sparc64 is an "int". sys_shmget gets called with this 32 bit value as the size parameter. This limits the maximum shared memory segment on these three architectures to 2GB. To fix this the second parameter is declared as an "unsigned long" and is then casted to the type required by the The same int vs. unsigned long bug is fixed for sys_msgsnd and sys_msgrcv as well. 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>
-
Andi Kleen authored
This fixes an incorrect sign extension in the compat layer that breaks 32bit shmget that are >2GB. sys_shmget has a signed size_t size argument, and the int size argument coming from 32bit user space would get sign extended to 64bit, which is wrong. I fixed it on all compat architectures, except PPC64 which was already ok. It was originally debugged and fixed by Karl Rister @ IBM for SLES9 on x86-64. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Stefan Knoblich authored
Attached patch defines dma_mapping_error on alpha. Without this libata-core.c won't compile. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Nicolas Pitre authored
Another fix to the put_chip() concurrency logic. Problem was occurring when: 1) one thread was erasing a block in partition x; 2) another thread suspended the erase in order to write to partition y; 3) a third thread came along to read a different block from partition x and, when it called put_chip(), chip->oldstate was FL_ERASING and the erase (mistakenly) resumed; 4) the write in partition y obviously failed at that point. Incidentally, the fix for this problem also fixed the case where suspending writes for MTD XIP usage was not working properly. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
bk://gkernel.bkbits.net/misc-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Jeff Garzik authored
-
bk://linux-scsi.bkbits.net/scsi-rc-fixes-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Christoph Hellwig authored
Signed-off-by: Mike Miller <mike.miller@hp.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
James Bottomley authored
From: Andrew Vasquez <andrew.vasquez@qlogic.com> replace them with _smp_processor_id() Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-
Stelian Pop authored
1. FAN Status/Control: you can now get the fan status (running or not) and also set the fan speed (for <5 seconds only). The problem is that there is an auto regulator that kicks in within about 5 seconds after that to restart the fan if it is above a threshold temperature (39 Degree C in my Vaio). It is useful just to get the fan status (primarily). It also appears that you can change the speed by increasing the values (much like the LCD control) - there are effectively only about 6 speeds (it seems - not sure, but from what I've played with on my Vaio). 2. Temperature: you can get the current temperature (same as reported by ACPI). This is primarily useful for APM users (since ACPI already gives this). I have used this to detect when the fan comes on in my Vaio (39 Degree C). From: Narayanan R S <nars@kadamba.org> Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Stelian Pop authored
Fold the contents of sonypi.h into sonypi.c making some structures static. Partly-from: Adrian Bunk <bunk@stusta.de> Suggested-by: Dmitry Torokhov <dtor_core@ameritech.net> Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Stelian Pop authored
Use MISC_DYNAMIC_MINOR in miscdevice.minor assignment. Patch-from: Olaf Hering <olh@suse.de> Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Stelian Pop authored
Add another HELP button event. Increment the version number. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Stelian Pop authored
Replace schedule_timeout() with msleep() - from janitors. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
- 09 Feb, 2005 8 commits
-
-
Takashi Iwai authored
Added the missing PCM FORWARD ioctl. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
Fixed the struct size mismatch (due to alignment) of snd_ctl_elem_value_t for PPC64 and SPARC64. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
This patch adds the ICH7 AC'97 DID the the intel8x0.c AC'97 audio driver. This patch was build against 2.6.11-rc1. Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
Enable 'Headphone Jack Sense' control on FSC Scenic-W as default, too. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
Fixed the default state of 'Headphone Jack Sense' switch on AD1981x codecs. Setting this on affects the output of some machines (e.g. Thindpads). The default value is set on only hardwares which are known to work. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
This patch fixes sound output on the ASUS W1000 laptop with the CMI9739 chip. It wrongly reports that it has a SPDIF in, when in fact we wish to use the EAPD pin. Signed-off-by: James Courtier-Dutton <James@superbug.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
Added ac97 quirk for HP nc8000. The list is sorted again. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Takashi Iwai authored
Added ac97 quirk for HP Pavilion ZV5030US to bind the control with mute-LED. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-