22 Oct, 2005

24 commits

  • o Added a control for the input source (which can be either
    "line" or "mic")

    o Mute the speaker/line-out/headphone outputs by default.

    o Increased the buffer size from 10 pages to 16.

    Signed-off-by: Stuart Brady

    ALSA Harmony was resetting the capture position when
    preparing the capture substream, which it shouldn't do.
    This should fix the problem.

    Signed-off-by: Stuart Brady

    ALSA Harmony should no longer play junk (left in the buffers
    from a previous stream) at the start of a new stream.

    Implement the monitor mixer channel for ALSA Harmony.

    Also prevent snd_harmony_volume_get from returning negative values.

    Signed-off-by: Stuart Brady

    Use the graveyard/silence buffers in ALSA Harmony.

    Signed-off-by: Stuart Brady

    Signed-off-by: Kyle McMartin

    Stuart Brady
     
  • export profile_pc() symbol - oprofile needs it when built as a module.

    Signed-off-by: Grant Grundler

    Take into account nullified insn and lock functions for profiling

    This is needed at the end of functions; it is typical that the return
    branch nullifies the next insn, which is in the next function. This
    causes profiling data to show up against the "wrong" function.

    We also count lock times against the locker. This is consistent with
    other architectures.

    Signed-off-by: Randolph Chung

    Signed-off-by: Kyle McMartin

    Randolph Chung
     
  • Fix some whitespace issues
    Reorganise parisc_device probe routine to be a little less convoluted
    Use ->hpa.start instead of ->hpa

    Signed-off-by: Matthew Wilcox

    Signed-off-by: Kyle McMartin

    Matthew Wilcox
     
  • Neaten up the CONFIG_PA20 ifdefs

    More merge fixes, this time for SMP

    Signed-off-by: Matthew Wilcox

    Prettify the CONFIG_DEBUG_SPINLOCK __SPIN_LOCK_UNLOCKED initializers.

    Clean up some warnings with CONFIG_DEBUG_SPINLOCK enabled.

    Fix build with spinlock debugging turned on. Patch is cleaner like this,
    too.

    Remove mandatory 16-byte alignment requirement on PA2.0 processors by
    using the ldcw,CO completer. Provides a nice insn savings.

    Signed-off-by: Kyle McMartin

    Matthew Wilcox
     
  • move pa_tlb_lock and it's primary consumers to tlb_flush.h
    Future step will be to move spinlock_t definition out of system.h.

    Signed-off-by: Grant Grundler

    Signed-off-by: Kyle McMartin

    Grant Grundler
     
  • 2.6.12-rc4-pa3 : first pass at making sure use of RFI conforms to
    PA 2.0 arch pages F-4 and F-5, PA 1.1 Arch page 3-19 and 3-20.

    The discussion revolves around all the rules for clearing PSW Q-bit.
    The hard part is meeting all the rules for "relied upon translation".

    .align directive is used to guarantee the critical sequence ends more than
    8 instructions (32 bytes) from the end of page.

    Signed-off-by: Grant Grundler

    Signed-off-by: Kyle McMartin

    Grant Grundler
     
  • add || STI_CONSOLE to some of the basic FONTs. May need to get at
    least one of them to default to "Y" for parisc.

    Signed-off-by: Grant Grundler

    Signed-off-by: Kyle McMartin

    Grant Grundler
     
  • Fix card-mode Dino crashes on 725 (and probably other Snake) systems.
    Dino was coming up in fatal mode after a warm reboot. Resetting Dino
    brings it out of fatal mode, so do that if the status register indicates
    we're in fatal mode. Since this was never observed on any later systems,
    I presume firmware does this for us on those.

    Signed-off-by: Matthew Wilcox

    Add debug statements in the cfg_read and cfg_write functions
    Fix debug statements from the IRQ overhaul last winter
    Rename dino_driver_callback() to dino_probe()

    Signed-off-by: Matthew Wilcox

    Signed-off-by: Kyle McMartin

    Matthew Wilcox
     
  • revert use of %%sr0 in fdc asm.

    Thanks to Joel Soete for pointing out this oversight.

    Signed-off-by: Grant Grundler

    2.6.14-rc2-pa3 fdc/lci should be %r0 instead 0 for index (PA 1.1 compliance)
    From: Joel Soete
    Signed-off-by: Grant Grundler

    Explain why we need insert_resource() instead of request_resource().

    Fundementally, this is more convoluted for ccio driver because of
    o legacy (HP-PB) transperant bridges.
    o support for MMIO behind card-mode Dino (PCI)
    o support for above bridges without ccio in the box

    SBA driver doesn't have to worry about those issues.

    Signed-off-by: Grant Grundler

    Use insert_resource instead of request_resource now that the subdevices
    will already have their resources claimed

    Signed-off-by: Matthew Wilcox

    re-enable use of "inline" for perf critical functions.

    Signed-off-by: Grant Grundler

    2.6.12-rc4-pa5 fix sign extension of MMIO range

    Fixes the problem of claiming a range that is disabled on 64-bit kernel:
    ccio_init_resource() claimed CCIO bus address space (ffffffff00000000,
    ffffffffffffffff)
    also removes use of __FILE__.
    Tested on both 32 and 64-bit systems by Joel.

    From: Joel Soete
    Signed-off-by: Grant Grundler

    2.6.12-rc1-pa7 incorrect BUG_ON in ccio

    ccio-dma.c line 1317 was preventing K-class with 4GB RAM from booting.
    Any ccio machine with >=2GB of RAM would have (incorrectly) triggered this.

    Signed-off-by: Grant Grundler

    Convert to ioremap and __raw_read/write

    Signed-off-by: Matthew Wilcox

    Signed-off-by: Kyle McMartin

    Grant Grundler
     
  • revert use of %%sr0 in fdc asm.
    Thanks to Joel Soete for pointing out this oversight.

    Signed-off-by: Grant Grundler

    2.6.14-rc2-pa3 move "sync" outside the main loop that fills IO Pdir.

    Signed-off-by: Grant Grundler

    remove explicit use of sr0 in fdc ops.
    Thanks to Joel Soete for reminding me were I added those...

    Signed-off-by: Grant Grundler

    2.6.14-rc2-pa2 - make SBA more anal about invalidating pdir entries

    Previous code cleared the valid flag a pdir entry but it did NOT
    guarantee this change was visible to the PDIR before writing
    the PCOM register. Ie the SBA could pick up a stale entry if
    the write happened to hit the SBA before the cacheline was flushed
    from the cache.

    Long term, I think I want to make this a compile time flag.
    Developement tree should enable anal pdir checking by default
    and Debian can disable it with either a CONFIG option
    or one-line patch. fdc/sync options can only negatively affect
    performance though I haven't measure how much yet.
    If someone can run netperf TCP_RR across gige and compare
    -pa1 and -pa2, that would be sufficient.

    Cleaned up the use of "fdc" to make sure it's using "kernel"
    space id (specify sr0 but maps to sr4-7). It seems a bit fragile
    to assume "sr1" gets loaded with KERNEL_SPACE which is how the
    code works today.

    Tested on 32 and 64-bit SMP kernels on j6k.

    Signed-off-by: Grant Grundler

    remove PDC_NARROW from SBA and document history of PDC_NARROW a bit.
    It will still show up in an older kernel's .config file.

    Signed-off-by: Grant Grundler

    if/ifdef cleanups from Joel Soete.

    Signed-off-by: Grant Grundler

    2.6.12-rc4-pa2 fix 32-bit support for Astro platforms
    o Since my last SBA code change, SBA could allocate more than 1GB of IOVA
    space on Astro boxes with more than 1GB of RAM when running 32-bit kernel.
    This is bad since IOMMU can only talk to the first 1GB at most.
    Kudos to jejb for quickly spotting that bug.

    o jejb also noted SBA should *always* reject DMA masks > 32-bits since
    DMA-mapping.txt indicates caller should try again with 32-bits.

    o off-by-one error when comparing the mask to IOVA space size.

    Signed-off-by: Grant Grundler

    Signed-off-by: Kyle McMartin

    Grant Grundler
     
  • Convert pa_dev->hpa from an unsigned long to a struct resource.

    Signed-off-by: Matthew Wilcox

    Fix up users of ->hpa to use ->hpa.start instead.

    Signed-off-by: Matthew Wilcox

    Signed-off-by: Kyle McMartin

    Matthew Wilcox
     
  • Make /sys/bus/parisc/drivers look better by cleaning up parisc_driver
    names.

    Signed-off-by: Matthew Wilcox

    Signed-off-by: Kyle McMartin

    Matthew Wilcox
     
  • Fix parse_tree_node. much more needs to be done to fix this file.

    Signed-off-by: Matthew Wilcox

    Make drivers.c compile based on a patch from Pat Mochel.

    From: Patrick Mochel
    Signed-off-by: Kyle McMartin

    Fix drivers.c to create new device tree nodes when no match is found.

    Signed-off-by: Richard Hirst

    Do a proper depth-first search returning parents before children, using the
    new klist infrastructure.

    Signed-off-by: Richard Hirst

    Fixed parisc_device traversal so that pdc_stable works again
    Fixed check_dev so it doesn't dereference a parisc_device until it
    has verified the bus type

    Signed-off-by: Randolph Chung

    Convert pa_dev->hpa from an unsigned long to a struct resource.
    Use insert_resource() instead of request_mem_region().
    Request resources at bus walk time instead of driver probe time.
    Don't release the resources as we don't have any hotplug parisc_device
    support yet.
    Add parisc_pathname() to conveniently get the textual representation
    of the hwpath used in sysfs.
    Inline the remnants of claim_device() into its caller.

    Signed-off-by: Matthew Wilcox

    I noticed that some of the STI regions weren't showing up in iomem.
    Reading the STI spec indicated that all STI devices occupy at least 32MB.
    So check for STI HPAs and give them 32MB instead of 4kB.

    Signed-off-by: Matthew Wilcox

    Signed-off-by: Kyle McMartin

    Matthew Wilcox
     
  • Not sure how it slipped by, but here's a trivial typo fix for powernow.

    Signed-off-by: Chris Wright
    [ It's "nurter" backwards.. Maybe we have a hillbilly The Shining fan? ]
    Signed-off-by: Linus Torvalds

    Chris Wright
     
  • When I originally moved exit_itimers into __exit_signal, that was the only
    place where we could reliably know it was the last thread in the group
    dying, without races. Since then we've gotten the signal_struct.live
    counter, and do_exit can reliably do group-wide cleanup work.

    This patch moves the call to do_exit, where it's made without locks. This
    avoids the deadlock issues that the old __exit_signal code's comment talks
    about, and the one that Oleg found recently with process CPU timers.

    [ This replaces e03d13e985d48ac4885382c9e3b1510c78bd047f, which is why
    it was just reverted. ]

    Signed-off-by: Roland McGrath
    Signed-off-by: Linus Torvalds

    Roland McGrath
     
  • Revert commit e03d13e985d48ac4885382c9e3b1510c78bd047f, to be replaced
    by a much nicer fix from Roland.

    Linus Torvalds
     
  • AMD recently discovered that on some hardware, there is a race condition
    possible when a C-state change request goes onto the bus at the same
    time as a P-state change request.

    Both requests happen, but the southbridge hardware only acknowledges the
    C-state change. The PowerNow! driver is then stuck in a loop, waiting
    for the P-state change acknowledgement. The driver eventually times
    out, but can no longer perform P-state changes.

    It turns out the solution is to resend the P-state change, which the
    southbridge will acknowledge normally.

    Thanks to Johannes Winkelmann for reporting this and testing the fix.

    Signed-off-by: Mark Langsdorf
    Signed-off-by: Dave Jones
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • This fixes a stupid typo bug in the iSeries hash table code.

    When we place a hash PTE in the secondary bucket, instead of setting the
    SECONDARY flag bit, as we should, we (redundantly) set the VALID flag.

    This was introduced with the patch abolishing bitfields from the hash
    table code. Mea culpa, oops. It hasn't been noticed until now because
    in practice we don't hit the secondary bucket terribly often.

    Signed-off-by: David Gibson
    Signed-off-by: Linus Torvalds

    David Gibson
     
  • Linus Torvalds
     
  • Linus Torvalds
     
  • The wrong state emission routines were being called for G550, and
    consistent maps weren't correctly mapped...

    Signed-off-by: Dave Airlie
    Signed-off-by: Linus Torvalds

    Dave Airlie
     
  • While working on 64K pages, I found this little buglet in our
    update_mmu_cache() implementation.

    The code calls __hash_page() passing it an "access" parameter (the type
    of access that triggers the hash) containing the bits _PAGE_RW and
    _PAGE_USER of the linux PTE. The latter is useless in this case and the
    former is wrong. In fact, if we have a writeable PTE and we pass
    _PAGE_RW to hash_page(), it will set _PAGE_DIRTY (since we track dirty
    that way, by hash faulting !dirty) which is not what we want.

    In fact, the correct fix is to always pass 0. That means that only
    read-only or already dirty read write PTEs will be preloaded. The
    (hopefully rare) case of a non dirty read write PTE can't be preloaded
    this way, it will have to fault in hash_page on the actual access.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • This fixes a typo in the div128_by_32 function used in the timekeeping
    calculations on ppc64. If you look at the code it's quite obvious
    that we need (rb + c) rather than (rb + b). The "b" is clearly just a
    typo.

    Signed-off-by: Paul Mackerras
    Signed-off-by: Linus Torvalds

    Paul Mackerras
     
  • This fixes handling of the phy identifiers in mptsas.

    Signed-off-by: Eric Moore
    [ split it a pre-2.6.14 portion from Eric's bigger patch ]
    Signed-off-by: Christoph Hellwig
    Signed-off-by: Linus Torvalds

    Eric Moore
     

21 Oct, 2005

10 commits

  • Signed-off-by: Russell King

    Russell King
     
  • Patch from Ben Dooks

    From: Guillaume Gourat

    Add MASK definitions for DCLK0 and DCLK1

    Signed-off-by: Guillaume Gourat
    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • Patch from Ben Dooks

    The current Simtec BAST nand area timings are a little
    too slow to be obtained by a 2410 running at 266MHz,
    so reduce the timings slightly to bring them into the
    acceptable range.

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • Patch from Ben Dooks

    Avoid the possiblity that if the board is using
    a 16.9334 or higher crystal with a high PLL
    multiplier, then the pll value could overflow
    the capability of an int.

    Also fix the value types of the intermediate
    variables to unsigned int.

    Rewrite of patch from Guillaume Gourat

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • Patch from Matt Reimer

    Adds an I2S platform_device for PXA. I2S is used to interface
    with sound chips on systems like iPAQ h1910/h2200/hx4700 and
    Asus 716.

    Signed-off-by: mreimer@vpop.net
    Signed-off-by: Russell King

    Matt Reimer
     
  • It is legitimate to call tcp_fragment with len == skb->len since
    that is done for FIN packets and the FIN flag counts as one byte.
    So we should only check for the len > skb->len case.

    Signed-off-by: Herbert Xu
    Signed-off-by: Arnaldo Carvalho de Melo

    Herbert Xu
     
  • Turns out the problem has nothing to do with use-after-free or double-free.
    It's just that we're not clearing the CB area and DCCP unlike TCP uses a CB
    format that's incompatible with IP.

    Signed-off-by: Herbert Xu
    Signed-off-by: Ian McDonald
    Signed-off-by: Arnaldo Carvalho de Melo

    Herbert Xu
     
  • icmp_send doesn't use skb->sk at all so even if skb->sk has already
    been freed it can't cause crash there (it would've crashed somewhere
    else first, e.g., ip_queue_xmit).

    I found a double-free on an skb that could explain this though.
    dccp_sendmsg and dccp_write_xmit are a little confused as to what
    should free the packet when something goes wrong. Sometimes they
    both go for the ball and end up in each other's way.

    This patch makes dccp_write_xmit always free the packet no matter
    what. This makes sense since dccp_transmit_skb which in turn comes
    from the fact that ip_queue_xmit always frees the packet.

    Signed-off-by: Herbert Xu
    Signed-off-by: Arnaldo Carvalho de Melo

    Herbert Xu
     
  • David S. Miller wrote:
    > One thing you can probably do for this bug is to mark data packets
    > explicitly somehow, perhaps in the SKB control block DCCP already
    > uses for other data. Put some boolean in there, set it true for
    > data packets. Then change the test in dccp_transmit_skb() as
    > appropriate to test the boolean flag instead of "skb_cloned(skb)".

    I agree. In fact we already have that flag, it's called skb->sk.
    So here is patch to test that instead of skb_cloned().

    Signed-off-by: Herbert Xu
    Acked-by: Ian McDonald
    Signed-off-by: Arnaldo Carvalho de Melo

    Herbert Xu
     
  • This reverts commit 3359b54c8c07338f3a863d1109b42eebccdcf379 and
    replaces it with a cleaner version that is purely based on page table
    operations, so that the synchronization between inode size and hugetlb
    mappings becomes moot.

    Signed-off-by: Hugh Dickins
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     

20 Oct, 2005

6 commits