1. 01 Mar, 2004 40 commits
    • Andrew Morton's avatar
      [PATCH] oprofile: fix P4 HT msr sharing · 6a59dff3
      Andrew Morton authored
      From: Philippe Elie <phil.el@wanadoo.fr>
      
      When I debugged P4 ht oprofile a few month ago I noticed that but though it
      wasn't a problem...  The fix I propose is not completely clean.
      
      With P4 HT we split msr in two subset, one for each logical processor.  The
      msrs subset used in op_model_p4.c at save and setup point of view are
      distinct (*), it means we must serialize setup and save operation else a
      logical processor can save some msr value already setup by the other thread
      then when oprofile shutdown we restore wrong msrs values.
      
      Nobody noticed the problem because after restoring the msrs we call
      enable_lapic_nmi_watchdog() -> setup_p4_watchdog() wich clear all the msrs
      but it's a bit fragile.  If nmi watchdog is not enabled nothing bad occurs
      because the LVTPC remains disabled.
      
      (*) this is done in this way because it allows a lot of simplification in
      op_model_p4.c, yes it isn't clean but it's not fixable w/o rewriting 75% of
      op_model_p4.c and I think the code will be bigger and more complex.
      6a59dff3
    • Andrew Morton's avatar
      [PATCH] scripts/modpost warning · b7d83b8c
      Andrew Morton authored
      From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      
      I need the following patch to kill a warning (__endian() may be unused)
      when cross-compiling m68k kernels on an ia32 box.
      b7d83b8c
    • Andrew Morton's avatar
      [PATCH] m68k interrupt handling fix · 5d5c8930
      Andrew Morton authored
      From: Geert Uytterhoeven <geert@linux-m68k.org>
      
      The syscalls.h change broke the m68k interrupt management code, since
      sys_{request,free}_irq() are not syscalls, but routines to manage system
      (CPU) interrupts.
      5d5c8930
    • Andrew Morton's avatar
      [PATCH] swsusp: fix error handling in "not enough swap space" · f57a9b9f
      Andrew Morton authored
      From: Pavel Machek <pavel@ucw.cz>
      
      Without this, if there's not enough swapspace, suspend fails, but leaves
      devices suspended, leading to dead machine.
      f57a9b9f
    • Andrew Morton's avatar
      [PATCH] firmware loader: delay firmware hotplug event · f2825db1
      Andrew Morton authored
      From: Dmitry Torokhov <dtor_core@ameritech.net>
      
      Do not call hotplug until firmware class device is completely instantiated.
      f2825db1
    • Andrew Morton's avatar
      [PATCH] firmware loader: pin firmware module · 8813723a
      Andrew Morton authored
      From: Dmitry Torokhov <dtor_core@ameritech.net>
      
      We need to pin the firmware loader module until the last reference to the
      firmware class device is dropped and the class device is destroyed.
      8813723a
    • Andrew Morton's avatar
      [PATCH] convert pdflush to kthread · a4f10cfd
      Andrew Morton authored
      From: Keith Owens <kaos@sgi.com>
      
      New pdflush threads are launched on-demand by pdflush.
      
      It turns out that on some architectures (eg, ia64) a kernel thread inherits
      its parent's stack utilisation.  So after the thread-launches-a-thread
      cycle has progressed sufficiently far we run out of stack space and crash.
      
      Simple fix: convert pdflush to use kthreads.  All kthreads are parented by
      keventd so there is no stack windup as a result of pdflush launching
      pdflush.
      a4f10cfd
    • Andrew Morton's avatar
      [PATCH] watchdog updates · c8e6164f
      Andrew Morton authored
      From: Wim Van Sebroeck <wim@iguana.be>
      
      <wim@iguana.be> (04/02/29 1.1628)
         [WATCHDOG] v2.6.3 pcwd_usb-watchdog
      
         Add the Berkshire Products USB-PC Watchdog driver
      
      <wim@iguana.be> (04/02/29 1.1629)
         [WATCHDOG] v2.6.3 MODULE_*-patch
      
         Add MODULE_* info
      
      <wim@iguana.be> (04/02/29 1.1630)
         [WATCHDOG/SPARC64] v2.6.3 Kconfig-WATCHDOG_CP1XXX/WATCHDOG_RIO-patch
      
         Move WATCHDOG_CP1XXX and WATCHDOG_RIO for SPARC64 architecture
         from arch/sparc64/Kconfig to drivers/char/watchdog/Kconfig
         and made them dependant of WATCHDOG also
      c8e6164f
    • Andrew Morton's avatar
      [PATCH] x86-64 fixes for 2.6.4rc1 · 2955399d
      Andrew Morton authored
      From: Andi Kleen <ak@suse.de>
      
      Fix a few issues on x86-64 for 2.6.4rc1.
      
      The 32bit emulation used 4GB/3 for the mmap break. This actually gave
      programs less sbrk space than with a standard 32bit kernel. Move the 32bit
      mmap break to 0xc5000000.
      
      Uses the correct gcc option to optimize for Prescott now (requires a very
      new mainline gcc)
      
      Also merge the i386 sched_clock().  I hope this will fix some interactivity
      problems with the scheduler.
      
      - Change initializer to new style (Arnd Bergmann)
      - Remove 2 sibling limit in HT support (from i386)
      - Always log RIP in MCE records even when not exact
      - Move 32bit program task break up to 0xc5000000 by default
      - Use -march=prescott for Prescott optimized kernel if possible
      - Don't divide by zero with report_lost_ticks on and HPET off
      - Merge preempt/smp/debug_pagealloc oops printing from i386
      - Add pfn_to_nid()
      - Merge more accurate sched_clock from i386
      - Remove traces of debugging code in mce.c
      - Update defconfig
      2955399d
    • Andrew Morton's avatar
      [PATCH] Make powernow-k8 cpufreq control work again · a1f34321
      Andrew Morton authored
      From: Pavel Machek <pavel@suse.cz>
      
      We curretly have an off-by-factor-of-1000:
      
      cat /proc/cpufreq
      
                minimum CPU frequency  -  maximum CPU frequency  -  policy
      CPU  0         2000 kHz (100 %)  -       2000 kHz (100 %)  -  powersave
      
      
      I do not have explanation why it is 2MHz - 2MHz.  On my system I removed
      bug which prevented my system from being reported as 0.8MHz - 1.8MHz.  (And
      modulo cosmetic uglyness, it worked).
      
      This fixes cosmetic uglyness, adds proper copyrights, removes warning
      "untested on PREEMPT" (someone tested it, and makes it easier to override
      PST by user (eMachine users will need that one).
      a1f34321
    • Andrew Morton's avatar
      [PATCH] clarify CONFIG_SWAP Kconfig help · f08519cf
      Andrew Morton authored
      From: Adrian Bunk <bunk@fs.tum.de>
      
      "swap" is more known than "Support for paging of anonymous memory".  The
      patch below adds "(swap)" to the prompt of CONFIG_SWAP.
      f08519cf
    • Andrew Morton's avatar
      [PATCH] remove a few remaining "make dep" references · b2a9973a
      Andrew Morton authored
      From: Adrian Bunk <bunk@fs.tum.de>
      
      The patch below is an updated version of the patch that removes some
      remaining mentions of "make dep".
      b2a9973a
    • Andrew Morton's avatar
      [PATCH] buslogic initsection fix · 285d1539
      Andrew Morton authored
      From: Bob Doyle <doyle@primenet.com>
      
      BusLogic_UnregisterHostAdapter() is referenced from __exit code, so it cannot
      be __init.
      285d1539
    • Andrew Morton's avatar
      [PATCH] Fix network hashtable sizing · a78fd404
      Andrew Morton authored
      The new networking hashtable sizing is all bollixed up.  The logic is wrong
      and tcp is setting it to the logarithm of what was intended.  Heaven knows.
      
      Fix it up so that the sizing is the same as it used to be in 2.6, with a
      boot-time override.  Which was what was intended.
      a78fd404
    • Andrew Morton's avatar
      [PATCH] sys_alarm() return value fix · fb6c1a0c
      Andrew Morton authored
      From: Kurt Garloff <garloff@suse.de>
      
      when calling
      
      alarm(1); alarm(0);
      
      the second alarm can wrongly return 2. This makes an LSB test fail.
      
      It happens due to rounding errors in the timeval to jiffie conversion and
      back.  On i386 with HZ =3D=3D 1000, there would not need to be rounding
      error IMVHO, but they even occur there.  On HZ=3D1024 platforms, they may
      even be unavoidable.
      
      Attached patch fixes the return value of alarm().
      fb6c1a0c
    • Andrew Morton's avatar
      [PATCH] Fix VT mode change vs. fbcon · c0ce26a8
      Andrew Morton authored
      From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      
      This patch implements what we discussed earlier to fix the switch bewteen
      KD_GRAPHICS and KD_TEXT.
      
      It has been tested for a few days now and appear to resolve the problem for
      affected users.
      
      James: I know you have some objections, I don't fully agree with them, and
      I want that in asap now, that bug has been plaguing fbdev since the very
      beginning and it's time to get rid of that and my corresponding todolist
      entry.  You are welcome to propose a patch on top of this one if you feel
      you can make things cleaner.  The approach of adding a parameter to
      con_blank() is Linus idea btw :)
      
      I didn't add a separate function as that would have made the butchering of
      drivers/char/vt beyond what I want to deal with in 2.6.
      c0ce26a8
    • Andrew Morton's avatar
      [PATCH] Fix tty drivers which dont set tty_driver->devfs_name · 3d5daf73
      Andrew Morton authored
      From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
      
      The following patches fixes tty drivers which dont set devfs_name. Not
      doing so will cause the tty layer to create "/dev/<NULL>x" entries when
      devfs is being used.
      
      I used "drivername/" in isicom and pcxe because the letter used to
      identify them are already used by other drivers.
      3d5daf73
    • Andrew Morton's avatar
      [PATCH] NFS SUNRPC fix · 57c08314
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      The patch below fixes a bug in the error handling code of
      xprt_create_socket().  If sock_create() fails, we should not try and
      release the non existent socket.
      
      This fix is by James Carter <jwcart2@epoch.ncsc.mil>.
      57c08314
    • Andrew Morton's avatar
      [PATCH] DCSSBLK depends on CONFIG_S390 · 348a16e2
      Andrew Morton authored
      From: Dave Jones <davej@redhat.com>
      
      This is probably useless on x86 for eg..  (Everything else in this file is
      dependant on some other s390 feature, so only this one shows up).  Too bad
      the drivers/s390/block stuff gets source'd at all on !s390.
      348a16e2
    • Andrew Morton's avatar
      [PATCH] linux/README update · 18f94561
      Andrew Morton authored
      From: Zwane Mwaikambo <zwane@linuxpower.ca>
      
      Patch to resolve http://bugzilla.kernel.org/show_bug.cgi?id=1644
      
      The bug reporter pointed out a bit of outdated information in the README
      file.
      
      Test booted on a 32x NUMAQ with 10,000 disks
      18f94561
    • Andrew Morton's avatar
      [PATCH] raid1: fix oops in bio_put() · c681eba4
      Andrew Morton authored
      From: Neil Brown <neilb@cse.unsw.edu.au>
      
      Fix an off-by-one in the r1buf_pool_alloc() ENOMEM error recovery path.
      c681eba4
    • Andrew Morton's avatar
      [PATCH] C99 initiailzers for drivers/isdn/hisax/hisax_fcpcipnp.c · 4fc40b02
      Andrew Morton authored
      From: "Art Haas" <ahaas@airmail.net>
      
      Here is a small patch changing the GNU-style initializers to C99
      initializers.
      4fc40b02
    • Andrew Morton's avatar
      [PATCH] C99 initializers for drivers/usb/serial/keyspan.h · e1c578b5
      Andrew Morton authored
      From: "Art Haas" <ahaas@airmail.net>
      
      Here's a small patch changing the GNU-style initializers to C99
      initializers.
      e1c578b5
    • Andrew Morton's avatar
      [PATCH] zr36067 driver update · 2a089a96
      Andrew Morton authored
      From: "Ronald S. Bultje" <rbultje@ronald.bitfreak.net>
      
      Fix the zoran driver (zr36067) for the fact that we did not handle
      bitrate-conversion at all in the zr36050 MJPEG codec (on DC30 cards), with
      the result being that at high-resolution, we'd overload the PCI bus and
      drop half of our video capture data into /dev/null'ishness.
      
      Also update Ronald's email address in MAINTAINERS.
      2a089a96
    • Andrew Morton's avatar
      [PATCH] revert the /proc thread visibility fix · 5d8087c3
      Andrew Morton authored
      It appears that gdb, perfmon and perhaps other applications are already
      opening /proc/<tid> even though it does not appear in /proc readdir output
      and is available under its group leader's directory anyway.
      
      Apparently ascertaining the group leader is hard for gdb and thsi trick
      always worked for LinuxThreads apps.
      
      So revert this change.
      5d8087c3
    • Andrew Morton's avatar
      [PATCH] dm-crypt end_io bv_offset fix · 12f6f861
      Andrew Morton authored
      From: Christophe Saout <christophe@saout.de>
      
      We should copy the bvec array for read requests so that we still
      have the unmodified bvec array to decrypt the data afterwards.
      
      (as discussed earlier this day for highmem bounces)
      12f6f861
    • Andrew Morton's avatar
      [PATCH] dm-crypt cleanups · 08e03016
      Andrew Morton authored
      From: Christophe Saout <christophe@saout.de>
      
      These are some dm-crypt cleanups.  Use a #define PFX "crypt: " for all the
      places where something gets logged as suggested by Jeff Garzik.  It also
      adds a small additional security check and fixed header includes.
      08e03016
    • Andrew Morton's avatar
      [PATCH] fix in-place de/encryption bug with highmem · 2a0d3e3a
      Andrew Morton authored
      From: Christophe Saout <christophe@saout.de>
      
      This patch fixes the bug where in-place encryption was not detected when
      the same highmem pages is mapped twice to different virtual addresses.
      
      This adds a parameter to xxx_process to indicate whether this is an
      in-place encryption and moves the responsability to the caller using a
      helper function scatterwalk.h.
      2a0d3e3a
    • Andrew Morton's avatar
      [PATCH] move scatterwalk functions to own file · 5f9e594b
      Andrew Morton authored
      From: Christophe Saout <christophe@saout.de>
      
      I've cleaned up the latest patches and adjusted the header files.
      
      This patch moves the scatterwalk functions from cipher.c to
      scatterwalk.c and adds a header file.
      5f9e594b
    • Andrew Morton's avatar
      [PATCH] fix small highmem bio bounce bvec handling glitch · 802c64c9
      Andrew Morton authored
      From: Christophe Saout <christophe@saout.de>
      
      __end_that_request_first might modify the bv_offset and bv_len if the
      segment was partially completed.  The bio-read-bounce-back code should use
      the unmodified bv_offset when copying the segment data:
      802c64c9
    • Andrew Morton's avatar
      [PATCH] sysrq-o atomicity fix · 2a82ff98
      Andrew Morton authored
      sysrq-o is supposed to power off the machine.  But if it calls into ACPI (at
      least) it does lots of sleepy things, so we best not do this from interrupt
      context.
      2a82ff98
    • Andrew Morton's avatar
      [PATCH] Doc/00-index additions · 8edad723
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      From: Alexey Dobriyan <adobriyan@mail.ru>
      
      Mostly added descriptions of files in Documentation/ that were not listed
      in Documentation/00-INDEX.
      8edad723
    • Andrew Morton's avatar
      [PATCH] s390: xpram driver · 3ed75bc3
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      xpram fix: Replace old style module parameter definition with new style.
      3ed75bc3
    • Andrew Morton's avatar
      [PATCH] s390: tape class for s390 tapes · a8e788da
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      s390 tape device driver changes:
      
      - Add private tape class to support udev configuration.
      a8e788da
    • Andrew Morton's avatar
      [PATCH] s390: sclp console · 60da26d9
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      sclp console fixes:
      
      - Add signal-quiesce bug-fix from 2.4.
      
      - Add irq_enter/irq_exit to sclp_sync_wait to prevent the softirqs from
        processing after the external interrupt.
      60da26d9
    • Andrew Morton's avatar
      [PATCH] s390: common i/o layer. · 35181f43
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      Common i/o layer fixes:
      
      - Remove documentation entry for non-existent cio_notoper_msg parameter.
      
      - Add documentation for availability attritube.
      
      - Replace function of the steal_lock attribute by "echo force" to the
        online attribute.
      
      - Trigger device sensing in the online function for unknown devices.
      
      - Always try to get devices online even if they are marked reserved.
        Someone could have released the device while it was offline.
      
      - Add try_module_get/module_put pairs to the online function of ccw devices
        and ccwgroup devices.
      
      - Add owner field to ccwgroup driver structure.  Set owner field in ctc,
        lcs and qeth.
      
      - Fix alignment problems in channel measurement block interface.
      35181f43
    • Andrew Morton's avatar
      [PATCH] s390: core s390 update · df6560ba
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      s390 bug fixes:
      
      - Add missing i/o controls to compat ioctl translation table.
      
      - Fix some gcc 3.4 warnings.
      
      - Export _sb_findmap.
      
      - Export smp_call_function_on only if CONFIG_SMP=y.
      
      - Add safe-guard to diag10.
      
      - Add type definition for compat_timer_t.
      
      - Fix first argument of signal_processor_ps.
      df6560ba
    • Andrew Morton's avatar
      [PATCH] ppc64: Update G5 defconfig, remove DISCONTIGMEM · 5ba43334
      Andrew Morton authored
      From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      
      This patch updates the g5_defconfig on ppc64, running it through oldconfig
      and removing CONFIG_DISTCONTIGMEM.  I don't use the discontigmem stuff at
      all, even on machines with +2Gb of RAM, so it's just bloat.
      5ba43334
    • Andrew Morton's avatar
      [PATCH] Add missing numa EXPORT_SYMBOLs · bddf7e5d
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Add some missing EXPORT_SYMBOLs.
      bddf7e5d
    • Andrew Morton's avatar
      [PATCH] ppc64: iSeries virtual disk update · 6431870d
      Andrew Morton authored
      From: Stephen Rothwell <sfr@canb.auug.org.au>
      
      This patch (hopefully) addresses concerns Christoph Hellwig had with the
      virtual disk probing code.
      6431870d