Permalink
Switch branches/tags
Nothing to show
Commits on Oct 10, 2012
Commits on Oct 8, 2012
  1. block: introduce the BFQ-v5 I/O sched for 3.1

    paolo-github committed with pershoot Oct 3, 2012
    Add the BFQ-v5 I/O scheduler to 3.1.
    The general structure is borrowed from CFQ, as much code. A (bfq_)queue is
    associated to each task doing I/O on a device, and each time a scheduling
    decision has to be taken a queue is selected and it is served until it expires.
    
        - Slices are given in the service domain: tasks are assigned budgets,
          measured in number of sectors. Once got the disk, a task must
          however consume its assigned budget within a configurable maximum time
          (by default, the maximum possible value of the budgets is automatically
          computed to comply with this timeout). This allows the desired latency
          vs "throughput boosting" tradeoff to be set.
    
        - Budgets are scheduled according to a variant of WF2Q+, implemented
          using an augmented rb-tree to take eligibility into account while
          preserving an O(log N) overall complexity.
    
        - A low-latency tunable is provided; if enabled, both interactive and soft
          real-time applications are guaranteed very low latency.
    
        - Latency guarantees are preserved also in presence of NCQ.
    
        - High throughput with flash-based devices, while still preserving
          latency guarantees.
    
        - Useful features borrowed from CFQ: cooperating-queues merging (with
          some additional optimizations with respect to the original CFQ version),
          static fallback queue for OOM.
    
        - BFQ supports full hierarchical scheduling, exporting a cgroups
          interface.  Each node has a full scheduler, so each group can
          be assigned its own ioprio and an ioprio_class.
    
        - If the cgroups interface is used, weights can be explictly assigned,
          otherwise ioprio values are mapped to weights using the relation
          weight = IOPRIO_BE_NR - ioprio.
    
        - ioprio classes are served in strict priority order, i.e., lower
          priority queues are not served as long as there are higher priority
          queues.  Among queues in the same class the bandwidth is distributed
          in proportion to the weights of each queue. A very thin extra bandwidth
          is however guaranteed to the Idle class, to prevent it from starving.
    
    Signed-off-by: Paolo Valente <paolo.valente@unimore.it>
    Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
  2. Revert "block: introduce the BFQ-v4 I/O sched for 3.1"

    pershoot committed Oct 8, 2012
    This reverts commit ed5a3f1.
Commits on Oct 7, 2012
  1. video: tegra: host: Remove error case panics

    terjebergstrom committed with pershoot Jun 1, 2012
    Remove BUG_ON()s in error cases:
    * If IOCTL size is too large, return error instead
    * If sync point id is out of range, return error. Prevents panics in
      sanity checks nvhost_cdma.
    
    Bug 993642
    
    Change-Id: I3cfa7a23dc557c811e20b726885f82666437de7f
    Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
    Reviewed-on: http://git-master/r/106232
    Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
    Tested-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
  2. video: tegra: host: Improve timing of syncpt wait

    terjebergstrom committed with pershoot May 22, 2012
    nvhost_syncpt_wait_timeout() relies on sync point interrupt to
    signal reaching the sync point value. With low timeout values, the
    resolution is not good enough and an error is returned even when
    the value is reached.
    
    Update syncpoint value from hardware when doing a sync point wait and
    do an explicit check for reaching the value even if wait returns a
    timeout.
    
    bug 984166
    bug 986788
    bug 987597
    
    Change-Id: I640e32cdcdfa66b8977eac273dd32f62bd72abd6
    Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
    Reviewed-on: http://git-master/r/103827
    Reviewed-by: Automatic_Commit_Validation_User
    Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
    Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
    
    Conflicts:
    
    	drivers/video/tegra/host/nvhost_syncpt.c
    
    -add sp to syncpt_op() in syncpt_update_min_is_expired
  3. video: tegra: host: Yield in case of race of waits

    terjebergstrom committed with pershoot May 15, 2012
    If two threads need to wait for CDMA to become quiet at the same
    time, the second one will cause a BUG(). Replace the BUG() with a
    code to yield and try again.
    
    Change-Id: I7925ad0cc0e8292919e54d0fa45f7837f453358d
    Reviewed-on: http://git-master/r/102437
    Reviewed-by: Automatic_Commit_Validation_User
    Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
    Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
    Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
    GVS: Gerrit_Virtual_Submit
  4. video: tegra: host: Do not panic on hardware timeout

    terjebergstrom committed with pershoot Apr 12, 2012
    nvhost panics if hardware does not respond within 30 seconds. Remove
    this behavior, as it causes problems in emulation and simulation.
    Panic should be used only to prevent corruption.
    
    Submits are now given a default timeout of 30 seconds. The clients
    can still override with their own timeout value.
    
    MPE doesn't provide the number of slots for context save/restore.
    This information is needed to be able to use the submit timeout for
    MPE.
    
    Bug 982946
    
    Change-Id: I0f54d639df0fb726cc3163b317bf9c90bf56798b
    Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
    Reviewed-on: http://git-master/r/100246
    Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
    Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
    
    Conflicts:
    
    	drivers/video/tegra/host/nvhost_syncpt.c
    	drivers/video/tegra/host/nvhost_syncpt.h
Commits on Oct 6, 2012
  1. mmc: Instrument and disable mmc_erase()

    Entropy512 committed with pershoot Jun 2, 2012
    Instrument mmc_erase() so that it prints an error when something
    attempts to use it.  This lets us determine if something called
    it.
    
    Also disable it so it doesn't actually do anything.
    
    -remove unused rem and to in mmc_erase (core)
     pershoot/galaxy-2636@4a8b369#drivers/mmc/core/core.c
  2. tegra: p3-power: invoke regulator_has_full_constraints

    pershoot committed Sep 1, 2012
    -reference galaxy-2636
  3. p3_battery: enable usb charging

    stefansaraev committed with pershoot Sep 4, 2011
    - export /sys/class/power_supply/battery/force_usb_charging
  4. p3: wm8994_p3: add voodoo

    pershoot committed Sep 1, 2012
    -modify Makefile/Kconfig accordingly
  5. tegra: p4*-power: invoke regulator_has_full_constraints

    pershoot committed Aug 29, 2012
    -reference galaxy-2636
  6. USB: gadget: f_audio_source: Fix use after free in audio_unbind

    Mike Lockwood committed with pershoot Aug 16, 2012
    When USB was disconnected, we were freeing our audio_dev struct in audio_unbind
    before the audio system had cleaned up, resulting in a hang in audio_pcm_close.
    We now statically allocate the audio_dev struct to avoid this problem.
    
    Change-Id: I58ad21eaa20dcf4aa74ee614ef3b6ed2c91d52a1
    Signed-off-by: Mike Lockwood <lockwood@google.com>
  7. USB: gadget: f_audio_source: Fix error handling and increase packet size

    Mike Lockwood committed with pershoot Aug 2, 2012
    Fixes watchdog reset on USB disconnect
    Larger packet size fixes performance in fullspeed mode
    
    Signed-off-by: Mike Lockwood <lockwood@google.com>
  8. usb: gadget: android: Fix product name

    benoitgoby committed with pershoot May 29, 2012
    Product names may contain spaces and scanf %s only matches the 1st word.
    Use strlcpy instead.
    
    Change-Id: Ie8703fea9775f7fc17fe615a42597ca3816d36b0
    Signed-off-by: Benoit Goby <benoit@android.com>
  9. usb: gadget: composite: Fix corruption when changing configuration

    benoitgoby committed with pershoot May 16, 2012
    Remove the config from the configs list before releasing the spinlock.
    Otherwise the other cpu might be processing a SET_CONFIGURATION that
    will switch to the configuration that is being released.
    
    Bug: 6521576
    Change-Id: Id4da0d0e18ead63e20cb236cd1d3e8e6d116acce
    Signed-off-by: Benoit Goby <benoit@android.com>
  10. usb gadget: uvc: uvc_request_data::length field must be signed

    pinchartl committed with pershoot Apr 24, 2012
    commit 6f6543f53f9ce136e01d7114bf6f0818ca54fb41 upstream.
    
    The field is used to pass the UVC request data length, but can also be
    used to signal an error when setting it to a negative value. Switch from
    unsigned int to __s32.
    
    Reported-by: Fernandez Gonzalo <gfernandez@copreci.es>
    Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  11. USB: gadget: storage gadgets send wrong error code for unknown commands

    AlanStern committed with pershoot Apr 11, 2012
    commit c85dcdac5852295cf6822f5c4331a6ddab72581f upstream.
    
    This patch (as1539) fixes a minor bug in the mass-storage gadget
    drivers.  When an unknown command is received, the error code sent
    back is "Invalid Field in CDB" rather than "Invalid Command".  This is
    because the bitmask of CDB bytes allowed to be nonzero is incorrect.
    
    When handling an unknown command, we don't care which command bytes
    are nonzero.  All the bits in the mask should be set, not just eight
    of them.
    
    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    CC: Michal Nazarewicz <mina86@mina86.com>
    Signed-off-by: Felipe Balbi <balbi@ti.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  12. ext4: add missing save_error_info() to ext4_error()

    tytso committed with pershoot May 31, 2012
    The ext4_error() function is missing a call to save_error_info().
    Since this is the function which marks the file system as containing
    an error, this oversight (which was introduced in 2.6.36) is quite
    significant, and should be backported to older stable kernels with
    high urgency.
    
    Change-Id: Ia1eb8d91f37ceb67faf3b79d6bc79b899f1d6bfc
    Reported-by: Ken Sumrall <ksumrall@google.com>
    Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
    Cc: ksumrall@google.com
    Cc: stable@kernel.org
    Signed-off-by: Ken Sumrall <ksumrall@android.com>
    (cherry picked from commit 9d8a0e5b42c03e2dc8dffc7eebff45ec6665fdf1)
  13. cpufreq: interactive: take idle notifications only when active

    Sam Leffler committed with pershoot Jun 27, 2012
    Register an idle notifier only when the governor is active.  Also
    short-circuit work of idle end if the governor is not enabled.
    
    Signed-off-by: Sam Leffler <sleffler@chromium.org>
    Change-Id: I4cae36dd2e7389540d337d74745ffbaa0131870f
  14. cpufreq: interactive: sync with google (android.googlesource.com, com…

    pershoot committed Aug 25, 2012
    …mon android-3.0)
    
    -retain/port some nvidia changes
Commits on Aug 25, 2012
  1. Revert "usb: gadget: adb: Only enable the gadget when adbd is ready"

    pershoot committed Aug 25, 2012
    This reverts commit 9aeefa72c6666e75009140d93044fa5e96e0ac3b.
    
    Conflicts:
    
    	drivers/usb/gadget/android.c