1. 28 Jul, 2004 25 commits
    • Ryan S. Arnold's avatar
      [PATCH] ppc64: HVCS driver · 3bb4c3e8
      Ryan S. Arnold authored
      * include/asm-ppc64/hvcserver.h
      
        New file added to wrap ppc64 architecture specific firmware calls for
        use by HVCS.  This file provides a struct hvcs_partner_info definition,
        headers for partner info gathering and vterm connection and termination
        interfaces.
      
      * arch/ppc64/kernel/Makefile
      
        Added build directive for hvcserver.o when HVCS is configured.
      
      * arch/ppc64/kernel/hvconsole.c
      
        Exported hvc_put_chars() and hvc_get_chars() for use by HVCS.
      
      * arch/ppc64/kernel/hvcserver.c
      
        Body of hvcserver module which accompanies the hvcs module and provides
        ppc64 architecture firmware calls for use by HVCS.  This file provides
        function bodies for partner info gathering and vterm connection and
        termination interfaces.
      
      * drivers/char/Kconfig
      
        Added CONFIG_HVCS option for both built-in version and module version
        of hvcs.
      
      * drivers/char/Makefile
      
        Added build directive for hvcs.o when CONFIG_HVCS is configured.
      
      * drivers/char/hvcs.c
      
        This is the device driver for the IBM Hypervisor Virtual Console
        Server, "hvcs".  The IBM hvcs provides a tty driver interface to allow
        Linux user space applications access to the system consoles of logically
        partitioned operating systems, e.g.  Linux, running on the same
        partitioned Power5 ppc64 system.  Physical hardware consoles per
        partition are not practical on this hardware so system consoles are
        accessed by this driver using inter-partition firmware interfaces to
        virtual terminal devices.
      
      * Documentation/powerpc/hvcs.txt
      
        HVCS installation and usage documentation.
      
      Thanks everyone for all the help with this driver [Andrew Morton, Paul
      Mackerras, Ben Herrenschmidt, Dave Hansen, Paul Mackerras, Dave Boutcher,
      Hollis Blanchard, Santiago Leon, Brian King, Randy Dunlap].
      Signed-off-by: default avatarRyan S. Arnold <rsa@us.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      3bb4c3e8
    • Joel Schopp's avatar
      [PATCH] ppc64 SMT bugfix · 4928be8a
      Joel Schopp authored
      This patch is fairly straightforward.  maxcpus should be per SMT thread and
      not per physical processor.  SUSE picked this up back in May (was discussed
      on ppc64 mailing list) and has had no trouble with it.
      Signed-off-by: default avatarJoel Schopp <jschopp@austin.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      4928be8a
    • Paul Mackerras's avatar
      [PATCH] ppc64: whitespace cleanup in prom.c · 53ca8854
      Paul Mackerras authored
      This patch, originally from Linas Vepstas, cleans up some wonky indentation
      and other formatting issues in arch/ppc64/kernel/prom.c.  It does not change
      any actual code.
      Signed-off-by: default avatarLinas Vepstas <linas@linas.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      53ca8854
    • Paul Mackerras's avatar
      [PATCH] ppc64: Fix RAS irq handlers · 1ffdc2aa
      Paul Mackerras authored
      On pSeries systems, the firmware tells us a list of interrupt numbers
      that we should enable in order to detect various error conditions.
      When we get one of these interrupts we are supposed to call the
      firmware, which will work out and tell us what the error was and
      possibly also fix it.
      
      We were not correctly parsing the property values that tell us which
      interrupts need to be handled in this fashion.  This patch fixes it.
      It exports prom_n_intr_cells from prom.c since that is needed to do
      the parsing properly.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      1ffdc2aa
    • Joel Schopp's avatar
      [PATCH] ppc64: cpu hotplug fix · b12db24d
      Joel Schopp authored
      On Power4 and earlier hardware there is no need to clear the CPPR (see RPAp
      479 section 18.5.4.7.2 for what little info there is on the CPPR) when
      stopping a cpu.  On hardware that uses Power5 an undocumented change has
      been made that requires the CPPR to be cleared if an isolate is to be done
      on the stopped cpu.  So the following patch lets cpu hotplug work on the
      recent hardware.
      
      I sent this patch to the ppc64-dev list back in mid April and Suse picked
      it up then for SLES9 so it has been well tested for several months.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b12db24d
    • Anton Blanchard's avatar
      [PATCH] ppc64: remove multiple IRQ optimisation · 14bb1c15
      Anton Blanchard authored
      ppc64 has an optimisation where it loops on get_irq until there are no more
      interrupts to be handled.  Mark Hack notes that this optimisation hardly
      ever hits and costs us a potentially expensive extra read of an interrupt
      register every interrupt.
      
      Also make do_IRQ void, the callers never use the return value.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      14bb1c15
    • David Gibson's avatar
      [PATCH] page align emergency stack · 8d7ae791
      David Gibson authored
      The PPC64 ABI requires the stack to be 128 byte aligned (and that can
      become important if AltiVec registers are saved there).  In the kernel,
      that's usually dealt with by the fact that the stack has a page
      more-or-less to itself.  However, the emergency stacks (used in SMP bringup
      and when we detect a bad stack pointer) aren't necessarily page aligned, or
      anything aligned for that matter.  This patch applies the necessary
      alignement constraint to them.
      Signed-off-by: default avatarDavid Gibson <dwg@au.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8d7ae791
    • Johannes Stezenbach's avatar
      [PATCH] dvb_usercopy() fix · 009ada10
      Johannes Stezenbach authored
      Fix some breakage in dvb_usercopy() introduced by sparse cleanups in -rc2.
      Signed-off-by: default avatarJohannes Stezenbach <js@convergence.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      009ada10
    • Alan Cox's avatar
      [PATCH] DVB major number · 01fedaf9
      Alan Cox authored
      The DVB merge forgot an important change - DVB is currently using 
      major 250, which is "local" while devices.txt (and thus FSSTND/LSB) require
      it uses the officially allocated 212 major.
      
      Fortunately most 2.6 users don't currently use DVB and vendors ship devfs
      or versions of makedev that do the right thing and generate 212 majors.
      
      Fix below, original author: Red Hat <alan@redhat.com>, OSDL certificate
      of authorship included by reference.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      01fedaf9
    • Hugh Dickins's avatar
      [PATCH] swapoff mmap_sem deadlock · b7ae29f5
      Hugh Dickins authored
      Updating the mm lock ordering documentation drew attention to the fact that
      we were wrong to blithely add down_read(&mm->mmap_sem) to swapoff's
      unuse_process, while it holds swapcache page lock: not very likely, but it
      could deadlock against, say, mlock faulting a page back in from swap.
      
      But it looks like these days it's safe to drop and reacquire page lock if
      down_read_trylock fails: the page lock is held to stop try_to_unmap
      unmapping the page's ptes as fast as try_to_unuse is mapping them back in;
      but the recent fix for get_user_pages works to prevent that too.
      Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b7ae29f5
    • Hugh Dickins's avatar
      [PATCH] install_page vs. vmtruncate · 5136181d
      Hugh Dickins authored
      BK is still missing one piece for Oleg's install_page/vmtruncate races. 
      Oleg didn't explicitly ACK this, but I think he did implicitly: Oleg?
      
      The previous patch to install_page, returning an error if !page_mapping
      once page_table_lock is held, is not enough to guard against vmtruncate.
      
      When unmap_mapping_range already did this vma, but truncate_inode_pages has
      not yet done this page, page->mapping will still be set, but we must now
      refrain from inserting the page into the page table.
      
      Could check truncate_count, but that would need caller to read and pass it
      down.  Instead, recheck page->index against i_size, which is updated before
      unmap_mapping_range.  Better check page->mapping too: not really necessary,
      but it's accidental that index is left when mapping is reset.
      
      Also, callers are expecting -EINVAL for beyond end of file, not -EAGAIN.
      Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      5136181d
    • Stephen D. Smalley's avatar
      [PATCH] selinux: fix clearing of new personality bit on security transitions · ddd443e4
      Stephen D. Smalley authored
      This patch moves the clearing of the new personality bit from
      selinux_bprm_apply_creds (called from compute_creds) to
      selinux_bprm_set_security (called from prepare_binprm).  This ensures that the
      bit is cleared at the same point in exec processing as for setuid/setgid
      binaries, prior to setting up the new image.
      Signed-off-by: default avatarStephen Smalley <sds@epoch.ncsc.mil>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      ddd443e4
    • Jens Axboe's avatar
      [PATCH] BIO page refcounting fix · dac25d20
      Jens Axboe authored
      Hopefully fixes the free-of-a-freed-page BUG caused during CDRW writing.
      
      This also fixes a problem in the bouncing for io errors (it needs to free
      the pages and clear the BIO_UPTODATE flag, not set it.  it's already set.
      passing -EIO to bio_endio() takes care of that).
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      dac25d20
    • Arun Sharma's avatar
      [PATCH] compat_clock_getres shouldn't return -EFAULT if res == NULL · 09e77fca
      Arun Sharma authored
      For clock_getres(clockid_t clock_id, struct timespec *res), the specification
      says "If res is NULL, the clock resolution is not returned." So this kind of
      call should succeed.  The current implementation returns -EFAULT.
      
      The patch fixes the bug in compat_clock_getres().
      Signed-off-by: default avatarGordon Jin <gordon.jin@intel.com>
      Signed-off-by: default avatarArun Sharma <arun.sharma@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      09e77fca
    • Jack Steiner's avatar
      [PATCH] sched: initialize sched domain table · 396af5c1
      Jack Steiner authored
      Here is a trivial patch that is required to boot the latest 2.6.7 tree
      on the SGI 512p system.
      
      Initialize the busy_factor in the sched_domain_init table.  Otherwise,
      booting hangs doing excessive load balance operations.
      Signed-off-by: default avatarJack Steiner <steiner@sgi.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      396af5c1
    • Vladimir B. Savkin's avatar
      [PATCH] Fix UNIX98 pty indices leak · 536c748e
      Vladimir B. Savkin authored
      I noticed that our PPPoE/PPtP access concentrator leaks pty devices.
      When all 4096 indices are leaked, there was need to reboot it.
      
      The following patch fixes this problem.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      536c748e
    • Nathan Lynch's avatar
      [PATCH] fixes for rcu_offline_cpu, rcu_move_batch · 80554084
      Nathan Lynch authored
      rcu_offline_cpu and rcu_move_batch have been broken since the list_head's
      in struct rcu_head and struct rcu_data were replaced with singly-linked
      lists:
      
        CC      kernel/rcupdate.o
      kernel/rcupdate.c: In function `rcu_move_batch':
      kernel/rcupdate.c:222: warning: passing arg 2 of `list_add_tail' from
      incompatible pointer type
      kernel/rcupdate.c: In function `rcu_offline_cpu':
      kernel/rcupdate.c:239: warning: passing arg 1 of `rcu_move_batch' from
      incompatible pointer type
      kernel/rcupdate.c:240: warning: passing arg 1 of `rcu_move_batch' from
      incompatible pointer type
      kernel/rcupdate.c:236: warning: label `unlock' defined but not used
      
      Kernel crashes when you try to offline a cpu, not surprisingly.
      
      It also looks like rcu_move_batch isn't preempt-safe so I touched that up,
      and got rid of an unused label in rcu_offline_cpu.
      Signed-off-by: default avatarNathan Lynch <nathanl@austin.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      80554084
    • Linus Torvalds's avatar
      Merge bk://ppc.bkbits.net/for-linus-ppc · bc2b7e97
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      bc2b7e97
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/jgarzik/libata-upstream-2.6 · e792534a
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      e792534a
    • Linus Torvalds's avatar
      Merge bk://gkernel.bkbits.net/misc-2.6 · bd53afd8
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      bd53afd8
    • Russell King's avatar
      [PATCH] cirrusfb: discarded in section `.exit.text' from drivers/built-in.o · 1b09d7af
      Russell King authored
      This patch fixes the error in the subject line.
      1b09d7af
    • John W. Linville's avatar
      [sound/oss i810] misc small changes · 8ada2c7f
      John W. Linville authored
      Attached is a second patch to account for (most of) Herbert Xu's
      comments.
      
      I have left-out the part about changing state->card to a
      local variable where it is used a lot.  Unfortunately, that usage is
      somewhat pervasive and I would prefer to make those changes in a separate
      patch -- after I have had a chance to do some testing.
      
      If you'd prefer one patch to account for the original plus these
      changes, let me know and I'll be happy to provide it.
      8ada2c7f
    • John W. Linville's avatar
      [sound/oss i810] add MMIO DSP support · d1d60dbd
      John W. Linville authored
      Enclosed is a patch for the i810_audio OSS driver to support using
      memory-mapped I/O for those chipsets that support it.
      
       o Added a family of macros -- I810_IOREADx() and I810_IOWRITEx() -- that
      key off the existing card->use_mmio flag to select between using readx/writex
      or inx/outx for I/O operations.
      
       o Converted existing inx/outx invocations to use
      I810_IOREADx/I810_IOWRITEx instead.
      
       o Changed GET_CIV(), GET_LVI, and CIV_TO_LVI() not only to use
      I810_IOREADx/I810_IOWRITEx but also to take "card" (i.e. struct i810_card)
      paramter.
      
       o Removed check for "Pure MMIO interfaces" in i810_probe() -- replaced w/
      (relocated) check for no I/O resources available.
      d1d60dbd
    • Andrew Chew's avatar
      [ata] fix reversed bit definitions in linux/ata.h · 4f7f5c5d
      Andrew Chew authored
      The macros ata_id_has_lba() and ata_id_has_dma() seem to have their bits
      reversed.  LBA support is bit 9 of word 49 in the identify page, whereas
      DMA support is bit 8 of word 49 in the identify page.
      4f7f5c5d
    • Pat LaVarre's avatar
      [PATCH] SATAPI despite no data · 059507ec
      Pat LaVarre authored
      I see we lost this source line in the changes since 2.6.7.  But if I try
      SATAPI expecting no data without this source line, then my ata_piix.ko
      promptly dies with such complaints as:
      
      kernel: irq 18: nobody cared!
      
      With this source line, I find I can expect no data, though I still have
      to add auto sense to overcome:
      
      kernel: ata2: BUG: timeout without command
      059507ec
  2. 27 Jul, 2004 6 commits
    • Andi Kleen's avatar
      [PATCH] x86-64 fixes · 628505a0
      Andi Kleen authored
      This fixes several small but serious x86-64 bugs in 2.6.8rc2:
      
       - Fix array overflow in PCI bus checking (Travis Betak) 
       - Fix broken pci_map_sg in swiotlb (Suresh B. Siddha)
       - Remove bogus bus check in IOMMU code
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      628505a0
    • Linus Torvalds's avatar
      Merge bk://gkernel.bkbits.net/net-drivers-2.6 · 9b10dbb5
      Linus Torvalds authored
      into ppc970.osdl.org:/home/torvalds/v2.6/linux
      9b10dbb5
    • Margit Schubert-While's avatar
      [PATCH] prism54 Fix null pointer reference (Bug 100) · bd0f179f
      Margit Schubert-While authored
      * prism54_get/set_debug_oid are missing checks for a null pointer.
        Reported in Bugzilla number 100.
      bd0f179f
    • Margit Schubert-While's avatar
      [PATCH] prism54 Fix initialization with older firmware · daee0e35
      Margit Schubert-While authored
      * In the card initialization routine, we try to set the
        output power. For firmware < 1.0.4.3, this leads to a
        worrying "mgt_commit has failed .." in the log although
        the device continues to react normally.
        Fix is simple, do not try to configure output power.
        (which I believe we should not be doing anyway as it is
         probably against local country regulations)
      daee0e35
    • Margit Schubert-While's avatar
      [PATCH] prism54 Refix TRDY/RETRY_TIMEOUT · 2fc9ccb6
      Margit Schubert-While authored
      * Reintroduce pushing 0 into the TRDY_TIMEOUT and RETRY_TIMEOUT
        registers. Make this configurable with module parameter
        init_pcitm.
      
      * We now have the ludicrous situation that some hardware setups
        require this (not even pushing 0xFF helps), whilst others
        don't care either way (the majority), and yet others bork
        if anything is pushed into these regs.
        If anybody can explain this (including Conexant :-) ), my ears
        are open.
      2fc9ccb6
    • Margit Schubert-While's avatar
      [PATCH] prism54 Fix reference to uninitialized pointer · 0eba26af
      Margit Schubert-While authored
      * oid_mgt.c is calling islpci_mgt_transaction passing the address
        of a pointer to the management frame. This is not being
        initialized by the caller. The callee only updates this
        pointer when successful. When not, boom.
      
      * Being ultracautious again, not only initialize in the caller,
        also null out the pointer unconditionally in the callee.
      0eba26af
  3. 26 Jul, 2004 9 commits