ChangeSet@1.2020.1.5, 2005-01-23 11:09:59-08:00, torvalds@ppc970.osdl.org x86-64: don't crash and loop when the user passes an unknown earlyprintk= option. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.2020.1.4, 2005-01-23 10:29:42-08:00, kaos@ocs.com.au [PATCH] fix module kallsym lookup breakage Anton Blanchard wrote: >Your recent patch looks to break module kallsyms lookups.... >It looks like if CONFIG_KALLSYMS_ALL is set then we never look up module >addresses. Separate lookups for kernel and modules when CONFIG_KALLSYMS_ALL=y. Signed-off-by: Keith Owens Acked-by: Chris Wedgwood Signed-off-by: Linus Torvalds ChangeSet@1.2020.1.3, 2005-01-23 10:29:27-08:00, ak@suse.de [PATCH] x86-64: Fix UP build warning Fix warning: In file included from include/asm/numa.h:5, from arch/x86_64/kernel/setup64.c:27: include/asm/numnodes.h:6:1: warning: "NODES_SHIFT" redefined In file included from include/linux/mmzone.h:13, from include/linux/gfp.h:4, from include/linux/slab.h:15, from include/linux/percpu.h:4, from include/linux/sched.h:33, from arch/x86_64/kernel/setup64.c:11: include/linux/numa.h:11:1: warning: this is the location of the previous definition in UP builds. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.2020.1.2, 2005-01-23 10:29:11-08:00, ak@suse.de [PATCH] i386/x86-64: Fix ioremap off by one From Terence Ripperda When doing iounmap don't try to change_page_attr back the guard page that ioremap added. Since the last round of change_page_attr changes this would trigger an BUG because the reference count on the changed pages wouldn't match up. The problem would be only visible on machines with >3GB of memory, because only then the PCI memory hole is below end_pfn and change_page_attr is used. Fixed for both i386 and x86-64. This was actually discovered&fixed by Andrea earlier, but I goofed up while doing the last ioremap fixes merge and this change got lost. Poor Terence had to debug it again. Sorry about that. cc: andrea@suse.de Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.2020.1.1, 2005-01-23 10:28:57-08:00, ak@suse.de [PATCH] x86_64: Fix int3 trap Undo bogus change that was introduced with kprobes. It's not really needed and it breaks some user applications because it changes the signal for int 3 from SIGTRAP to SIGSEGV. Cc: Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds ChangeSet@1.2023, 2005-01-23 17:47:02+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2431/1: Split arch specifics out of arch/arm/kernel/debug.S Patch from Ben Dooks This patch moves all the machine/arch specific bits out of arch/arm/kernel/debug.S and places them into the include directories for those given architectures. The debug macros are placed into include/asm-arm/arch-*/debug-macro.S. The aim is to clean-up the debug.S code and make it easier to modify a single-architecture without affecting the entire debug.S file. The patch also removes CONFIG_ARCH_FTVPCI, which no longer exists anywhere else in the kernel. All new include files have the original copyright notice from arch/arm/kernel/debug.S. Note, not all architectures modified here have been built and/or tested due to lack of available machines, or problems building for them (no defconfig available, or problems with kernel build). Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2022, 2005-01-23 13:45:48+00:00, rmk@flint.arm.linux.org.uk [ARM] Add warning about building fiq.c with gcc >= 3.4 Unfortunately, some changes to GCC prevents fiq.c expressing the constraints for the assembly setting the FIQ register set. Warn people with later gcc toolchains that they can expect failure to occur. Signed-off-by: Russell King ChangeSet@1.2021, 2005-01-23 13:33:19+00:00, rmk@flint.arm.linux.org.uk [ARM] msr can take immediate constants. Signed-off-by: Russell King ChangeSet@1.1983.2.145, 2005-01-22 19:46:13-08:00, davem@nuts.davemloft.net [SPARC64]: Minor memmove refinements. - If dst/src are equal, memcpy can be used. - Eliminate register writes which were unused Signed-off-by: David S. Miller ChangeSet@1.1983.1.19, 2005-01-22 19:42:06-08:00, davem@nuts.davemloft.net [TG3]: Update driver version and reldate. Signed-off-by: David S. Miller ChangeSet@1.2017, 2005-01-22 16:01:24-08:00, tony.luck@intel.com [IA64] clean up loose ends from addition of efi_range_is_wc() Signed-off-by: Tony Luck ChangeSet@1.2016, 2005-01-22 15:56:39-08:00, tony.luck@intel.com [IA64] irq handling cleanup Patch from Christoph Hellwig to: - irq_desc and irq_to_vector machvecs. SN2 has it's own versions, but they're the same as the generic ones - kill do do_IRQ and use __do_IRQ directly everywhere - kill dead X86 ifdefs - move some variable declarations around in irq.c to recuce # of ifdefs Signed-off-by: Tony Luck ChangeSet@1.2015, 2005-01-22 15:00:59-08:00, jbarnes@sgi.com [IA64] remove superfluous layer from sn2 DMA API When I converted the sn2 code over to the new DMA API, I left the old routines in place and added wrappers to call them from the generic DMA API functions. This added an unnecessary level of obfuscation since the generic ia64 code calls those functions when any of the old style PCI DMA API functions are called. This patch rectifies the problem making the code much easier to understand and hopefully a little more efficient (though I'm sure gcc was already inlining things pretty well, there were a bunch of unnecessary checks that I took this opportunity to remove). It also shrinks the size of the sn2 pci_dma.c quite a bit. pci_dma.c | 480 +++++++++++++++++++----------------------------------------- 1 files changed, 151 insertions(+), 329 deletions(-) Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck ChangeSet@1.2014, 2005-01-22 14:58:21-08:00, jbarnes@sgi.com [IA64] fix early SAL init for sn2 sn2 does early initialization of the SAL so it can use it for early console support. Unfortunately, the loop to find the SAL entry point was buggy so when we tried out new EFI and SAL system table layouts, the loop didn't terminate. Here's the fix (doh!, use two different loop counters instead of one and just return if we find the SAL entry point). Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck ChangeSet@1.2013, 2005-01-22 14:45:15-08:00, jbarnes@sgi.com [IA64] new api efi_range_is_wc() Ok, here you go Tony. This one fixes the loop and also fixes drm_vm.c. All of the bits aside from the efi.h bit are ia64 specific (either under arch/ia64 or __ia64__), so your tree is probably the right place for all of it. This patch adds efi_range_is_wc() to efi.h. It's used to determine whether an address range can be mapped with the write coalescing attribute. It also fixes up some ia64 specific callers to use the new routine instead of unconditionally calling pgprot_writecombined, which can be dangerous if used on ranges that don't support it. Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck ChangeSet@1.2012, 2005-01-22 14:39:46-08:00, jes@trained-monkey.org [IA64] fix PAL_PREFETCH_VISIBILITY call The following patch fixes the ia64_pal_prefetch_visibility function to take a transaction type argument for either virtual or physical memory as specified in the System Architechture Manual page 2:358. Signed-Off-By: Jes Sorensen Signed-Off-By: Tony Luck ChangeSet@1.2011, 2005-01-22 14:35:36-08:00, eranian@hpl.hp.com [IA64] entry.S: perfmon psr.pp fix Problem: There exists a case where we stop monitoring, i.e. clear psr.pp/dcr.pp, via IPI. This is when the stop is triggered by a close(), either explicit in the application or implicit via exit_files(). The IPI is necessary because at the time the thread (controlling the context) issues a close() it may not run on the CPU the context is bound to. Yet the call must succeed, hence we need to propagate the call to the right CPU. But what is the problem then? Under IPI, we invoke a perfmon routine which clear the kernel (live) kernel psr.pp bit and also dcr.pp. Then we return from the function and execute the kernel exit path which restores the interrupted state. Unfortunately, this restores the kernel psr from ipsr which now contains a stale value. Therefore monitoring in the kernel will be active even though we stopped it. You cannot modify the "global" psr in an interrupt routine because it will be systematically restored on the way back. Solution: We need to patch ipsr.pp in the kernel exit path to reflect the kernel value of the kernel psr.pp bit. This must be done only when returning to kernel. The proposed patch does patch ipsr.pp such that it is identical to psr.pp. The patch is subtle because the exit path does not have a lot of free registers and also because we need to schedule for a psr read. I had to shuffle things around a little bit. The patch is important because there will be another situation where this problem can occur once we incorporate the support for event set and multiplexing. In this configuration, you may be in the middle of the idle loop and on a timer interrupt, you may stop monitoring. Slightly different condition, yet same problem with ipsr.pp vs. psr.pp. Changelog: - update kernel exit path when returning to kernel to copy psr.pp to ipsr.pp. This is necesary to ensure that if psr.pp was modified during the kernel entry, the change is propagated the the psr.pp of the of the interrupted thread. Psr.pp can be modified as a consequence of an IPI under certain conditions, such as when a system-wide context is closed from a remote CPU. Special thanks to David for reworking the patch to fit into the enhanced exit path. signed-off-by: stephane eranian Signed-off-by: Tony Luck ChangeSet@1.2010, 2005-01-22 14:21:34-08:00, tony.luck@intel.com [IA64] clean up ptrace corner cases Patch from yanmin.zhang@intel.com to fix up some corner cases in ptrace. Many thanks to davidm for reviewing and improving. Signed-off-by: Tony Luck ChangeSet@1.2009, 2005-01-22 13:50:44-08:00, tony.luck@intel.com [IA64] mca.c: delete unused "return_to_sal" label Label is unused, and so the compiler generates a warning. Signed-off-by: Tony Luck ChangeSet@1.2008, 2005-01-22 13:35:36-08:00, davidm@hpl.hp.com [IA64] entry.S update the copyright year & fix a comment Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2007, 2005-01-22 13:33:33-08:00, davidm@hpl.hp.com [IA64] Use srlz.d instead of srlz.i in ia64_leave_syscall Use srlz.d instead of srlz.i. Safe because we don't care whether the VHPT walker sees the clearing of PSR.ic (if it does, that's fine if it doesn't, it's OK too since the kernel-text is pinned anyhow). Good for another 11+ cycles in (normal) getpid(). Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2006, 2005-01-22 13:31:05-08:00, davidm@hpl.hp.com [IA64] Improve ia64_leave_syscall() for McKinley-type cores. Optimize ia64_leave_syscall() a bit better for McKinley-type cores. The patch looks big, but that's mostly due to renaming r16/r17 to r2/r3. Good for a 13 cycle improvement. Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2005, 2005-01-22 13:29:13-08:00, davidm@hpl.hp.com [IA64] Resched skip_rbs_switch to run 4 cycles faster on McKinley-type cores Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2004, 2005-01-22 13:27:29-08:00, davidm@hpl.hp.com [IA64] entry.S: Align rse_clear_invalid to double-bundle boundary. Trivial patch: align rse_clear_invalid to 32-byte boundary. Good for a 9 cycle speed up. Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2003, 2005-01-22 13:25:31-08:00, davidm@hpl.hp.com [IA64] Don't forget to initialize PKStk for kernel-threads Kernel-threads had both pUStk and pKStk set to FALSE, which was unintentional. I don't think the bug has shown any ill effects, but it's clearly wrong and could come around to bite us later, so let's fix it now. Depends on the previous patch to clean up C usage of the global/root-function predicates. Signed-off-by: Tony Luck ChangeSet@1.2002, 2005-01-22 13:22:55-08:00, davidm@hpl.hp.com [IA64] cleanup C uage of global/root-function predicates The patch below is purely a cleanup but it's a prerequisite for the next bug fix patch. Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.2001, 2005-01-22 13:16:18-08:00, nacc@us.ibm.com [IA64] smpboot.c: use msleep(100) instead of inlined equivalent Use msleep() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Tony Luck ChangeSet@1.2000, 2005-01-22 13:09:59-08:00, rja@sgi.com [IA64] increase limit on #pages to isolate for MCA errors The fixed sized array of pages that are isolated because of 2xECC memory errors can run out. Increasing the size of the array is a band-aid measure, the real fix will require changes to generic code to add some bits to page_flags so that pages with errors can be marked so as to prevent them ever being examined. Signed-off-by: Russ Anderson Signed-off-by: Tony Luck ChangeSet@1.1999, 2005-01-22 13:03:24-08:00, davidm@hpl.hp.com [IA64] sys_ia32.c: add missing __user annotation for sparse Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.1998, 2005-01-22 12:59:23-08:00, kaos@sgi.com [IA64] Sanity check unw_unwind_to_user Signed-off-by: Keith Owens Signed-off-by: Tony Luck ChangeSet@1.1997, 2005-01-22 12:51:34-08:00, davidm@hpl.hp.com [IA64] domain.c: eliminate warning when compiling CONFIG_NUMA=n When compiling for non-NUMA variable "node" ended up not being used, which solicits a warning from GCC. Fix is to evluate cpu_to_node(i) in place. This has the effect of doing cpu_to_node(i) twice on NUMA, but this is init code, so performance is not an issue (and even if it were, you can just declare cpu_to_node() as being a pure function, so the compiler can eliminate the second call). Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.1996, 2005-01-22 12:46:27-08:00, davidm@hpl.hp.com [IA64] uaccess.h: add missing __user annotation for sparse I was getting a lot of spurious warnings with "make C=1", due to a missing "__user" attribute. I'm not sure whether this got lost or whether earlier versions of sparse failed to warn about it, but it's clearly needed (and the i386 version of uaccess.h does the same). Signed-off-by: David Mosberger-Tang Signed-off-by: Tony Luck ChangeSet@1.1995, 2005-01-22 12:18:41-08:00, tony.luck@intel.com [IA64] binfmt_elf32.c: BUG if insert_vm_struct fails It seems that in ia64_elf32_init, instead of calling return, if we insert an overlapping vma, we should instead BUG(). We should never get into this code path, because the vma's are set above PAGE_OFFSET, and thus a Xmalicious user can not trigger this code path. This change is being suggested mainly for clarity. Thanks to Stephen Tweedie for pointing out that returning early in ia64_elf32_init could have unpredictable results. Signed-off-by: Tony Luck ChangeSet@1.1994, 2005-01-22 12:08:41-08:00, markgw@sgi.com [IA64] fix SN2 hwperf error handling Fix the error handling for the SN2 hardware perf ioctl interface. Signed-off-by: Mark Goodwin Signed-off-by: Tony Luck ChangeSet@1.1993, 2005-01-22 12:03:07-08:00, steiner@sgi.com [IA64] Delete: arch/ia64/sn/include/shub.h Signed-off-by: Jack Steiner Signed-off-by: Tony Luck ChangeSet@1.1992, 2005-01-22 11:57:39-08:00, steiner@sgi.com [IA64] Delete duplicate SN2 definition of cpu_logical_id for UP build Signed-off-by: Jack Steiner Signed-off-by: Tony Luck ChangeSet@1.1991, 2005-01-22 11:50:47-08:00, bob.picco@hp.com [IA64] fix declaration of __find_next_zero_bit, first arg is "const" Signed-off-by: Bob Picco Signed-off-by: Tony Luck ChangeSet@1.1983.4.16, 2005-01-22 11:37:01-08:00, js@linuxtv.org [PATCH] dvb: dvb-ttpci: fix SMP race, budget: fixe init race, misc fixes - [DVB] dvb-ttpci: re-added support for Fujitsu-Siemens DVB-S rev 1.6 0x13c2:0x0006 - [DVB] dvb-ttpci: finally clean up debi irq/tasklet handling to make it work on SMP - [DVB] dvb-ttpci: misc. changes to av7110_send_fw_cmd() error handling done along the way - [DVB] dvb-ttpci: budgetpatch integrated into dvb-ttpci: enables full ts option running in parallel with all previous functions of dvb-ttpci - [DVB] dvb-ttpci: fix Oops provoked by insmod/rmmod test loop, patch by Emard - [DVB] budget: Fixed start_ts_capture(): saa7146 will not issue a VPE interrupt if VPE bit is set in PSR and VPE interrupts are enabled afterwards. - [DVB] budget: enable satelco support. code was commented out, but actually it works, patch by Emard - [DVB] budget: Budget patch improved driver, fixed slight packet loss by using different trigger mode Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.15, 2005-01-22 11:36:47-08:00, js@linuxtv.org [PATCH] dvb: nxt2002: add ATSC support, misc fixes - [DVB] mt352: exported a mt352_read_reg-function, implemented a single byte write_register function (needed for dibusb) - [DVB] nxt2002: patch by Taylor Jacob to add support for ATSC/VSB frontends and the B2C2/BBTI Air2PC-ATSC card - [DVB] stv0297: fix tuning problems and compile time warnings, patch by Markus Breitenberger - [DVB] fix spelling errors in various frontend drivers Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.14, 2005-01-22 11:36:33-08:00, js@linuxtv.org [PATCH] dvb: dib3000 refactoring - [DVB] dib3000: driver refactoring, makes it easier to support device clones Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.13, 2005-01-22 11:36:18-08:00, js@linuxtv.org [PATCH] dvb: add ATSC support, misc fixes - [DVB] dvb-core: vfree() checking cleanups, patch by Domen Puncer - [DVB] dvb-core: fix handling of discontinuity indicator in section filter, bug reported by Frank Rosengart - [DVB] dvb-core: handle PUSI in section filter correctly, patch by Emard, bug reported by Patrick Valsecchi - [DVB] dvb-core: add support for ATSC/VSB frontends, patch by Taylor Jacob - [DVB] dvb-core: removed semi-colon from a very wrong place; FE_ENABLE_HIGH_LNB_VOLTAGE kernel oops; thanks to Christophe Massiot - [DVB] dvb-core: Fixed slow tuning problems, remove frequeny bending support from frontend code, code simplification Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.12, 2005-01-22 11:36:05-08:00, js@linuxtv.org [PATCH] dvb: support nxt2002 frontend, misc skystar2 fixes - [DVB] nxt2002: add support for nxt2002 frontend (firmware extraction, Kconfig, driver) - [DVB] skystar2: misc cleanup, remove unneeded casts, remove unreachable code, patches by Francois Romieu - [DVB] skystar2: fix mt352 clock setting for VHF (6 and 7 MHz bw channels), patch by Thomas Martin and Dieter Zander: - [DVB] b2c2-usb-core: fix file permissions to be octal, ISO C90 compile fix, temporally repaired the request_types - [DVB] remove remains of dibusb driver after splitup Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.11, 2005-01-22 11:35:52-08:00, js@linuxtv.org [PATCH] dvb: dibusb refactoring, support Yakumo/HAMA/Typhoon/HanfTek clones - [DVB] dvb-dibusb: refactoring of the dibusb driver, support for device clones from Yakumo/HAMA/Typhoon/HanfTek, update the documentation Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.10, 2005-01-22 11:35:38-08:00, js@linuxtv.org [PATCH] dvb: support pinnacle pctv-sat, clean-ups - [DVB] dvb-bt8xx: add support for pinnacle pctv-sat, patch by Peter Hettkamp and Adam Szalkowski - [DVB] dvb-bt8xx: minor code cleanups, patch by Arne Ahrend - [DVB] dvb-bt8xx: make sure to compile all necessary frontend modules, remove misleading comment Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.9, 2005-01-22 11:35:24-08:00, js@linuxtv.org [PATCH] dvb: fix RPS init race - [DVB] saa7146: explicitely disable RPS tasks in saa7146_init_one() Signed-off-by: Michael Hunold Signed-off-by: Johannes Stezenbach Signed-off-by: Linus Torvalds ChangeSet@1.1990, 2005-01-22 11:32:44-08:00, tony.luck@intel.com [IA64] tiger_defconfig: updated for 2.6.11-rc2 Signed-off-by: Tony Luck ChangeSet@1.1983.4.8, 2005-01-22 11:02:00-08:00, roland@redhat.com [PATCH] PPC64: fix stack alignment for signal handlers The PPC64 ABI specifies that the stack should be kept aligned to 16 bytes. However, signal handlers on PPC64 are getting run with the stack misaligned (sp % 16 == 8). This patch fixes that by ensuring that the signal frame allocated is a multiple of 16 bytes. In addition to the PPC64 signal frame itself being of misaligned size, the explicit alignment of the starting stack pointer is also to 8 instead of 16. I've corrected this as well, so signal frames are aligned even if the interrupted registers contained a misaligned stack pointer. Signed-off-by: Roland McGrath [ Paul Mackerras acked the original patch (which also did it for the 32-bit cases), and pointed out that the 32-bit cases all already did the alignment elsewhere and didn't need this. Patch edited down accordingly. ] Signed-off-by: Linus Torvalds ChangeSet@1.1983.4.7, 2005-01-22 10:31:39-08:00, nanhai.zou@intel.com [PATCH] Fix an error in copy_page_range There is a bug in copy_page_range with 4 level page table change. copy_page_range do a continue without adding pgds and addr when pgd_none(*src_pgd) or pgd_bad(*src_pgd). Signed-off-by: Zou Nan hai Acked-by: Nick Piggin Signed-off-by: Linus Torvalds ChangeSet@1.1983.2.144, 2005-01-21 20:04:07-08:00, davem@nuts.davemloft.net [SPARC64]: Update defconfig. Signed-off-by: David S. Miller ChangeSet@1.1983.4.6, 2005-01-21 17:45:41-08:00, torvalds@ppc970.osdl.org Linux 2.6.11-rc2 TAG: v2.6.11-rc2