1. 31 1月, 2017 1 次提交
  2. 30 1月, 2017 2 次提交
  3. 21 1月, 2017 2 次提交
    • A
      ARM: OMAP3: Fix SoC detection of OMAP36/37 Family · 631af44c
      Adam Ford 提交于
      The OMAP36/37 families are similar, but there are a few features sections
      that can help identify some of them.  Let's add checks for 3630/3730,
      OMAP3621, DM3725, OMAP3615/DM3715, OMAP3611, and AM3703 all based on
      features similar to what was done for the OMAP34xx/35xx series
      
      The checkpatch flags some warnings for braces, but I kept the coding style
      to match the adjacent code for consistency.
      
      I don't have an OMAP36xx to test, but this was tested on both a DM3730 and
      AM3703.
      Signed-off-by: NAdam Ford <aford173@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      631af44c
    • V
      ARM: OMAP5: Add HWMOD_SWSUP_SIDLE_ACT flag for UART · bd5e444b
      Vignesh R 提交于
      According to the commit ca43ea34 ("ARM: OMAP2+: hwmod: Add a new
      flag to handle SIDLE in SWSUP only in active"), UART IP needs the sidle
      mode to be controlled in SW only while they are active. Once inactive,
      the IP needs to be put back in HW control so they are also wakeup
      capable. The flag HWMOD_SWSUP_SIDLE takes care of this. So add this flag
      to all instances of UART.
      
      With this change, 8250 UART now gives out proper RX Timeout interrupts
      and is usable as console.
      Signed-off-by: NVignesh R <vigneshr@ti.com>
      Reviewed-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      bd5e444b
  4. 07 1月, 2017 4 次提交
  5. 02 1月, 2017 5 次提交
    • B
      bus: da850-mstpri: fix my e-mail address · 430d7dd4
      Bartosz Golaszewski 提交于
      I noticed my e-mail address is wrong in this one. This patch fixes it.
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      430d7dd4
    • B
      ARM: davinci: da850: fix da850_set_pll0rate() · b4088173
      Bartosz Golaszewski 提交于
      This function is confusing - its second argument is an index to the
      freq table, not the requested clock rate in Hz, but it's used as the
      set_rate callback for the pll0 clock. It leads to an oops when the
      caller doesn't know the internals and passes the rate in Hz as
      argument instead of the cpufreq index since this argument isn't bounds
      checked either.
      
      Fix it by iterating over the array of supported frequencies and
      selecting a one that matches or returning -EINVAL for unsupported
      rates.
      
      Also: update the davinci cpufreq driver. It's the only user of this
      clock and currently it passes the cpufreq table index to
      clk_set_rate(), which is confusing. Make it pass the requested clock
      rate in Hz.
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      [nsekhar@ti.com: commit headline update]
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      b4088173
    • B
      ARM: davinci: da850: coding style fix · 0a501167
      Bartosz Golaszewski 提交于
      Fix alignment of the clock lookup table entries.
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      [nsekhar@ti.com: commit headline update]
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      0a501167
    • L
      Linux 4.10-rc2 · 0c744ea4
      Linus Torvalds 提交于
      0c744ea4
    • L
      Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 4759d386
      Linus Torvalds 提交于
      Pull DAX updates from Dan Williams:
       "The completion of Jan's DAX work for 4.10.
      
        As I mentioned in the libnvdimm-for-4.10 pull request, these are some
        final fixes for the DAX dirty-cacheline-tracking invalidation work
        that was merged through the -mm, ext4, and xfs trees in -rc1. These
        patches were prepared prior to the merge window, but we waited for
        4.10-rc1 to have a stable merge base after all the prerequisites were
        merged.
      
        Quoting Jan on the overall changes in these patches:
      
           "So I'd like all these 6 patches to go for rc2. The first three
            patches fix invalidation of exceptional DAX entries (a bug which
            is there for a long time) - without these patches data loss can
            occur on power failure even though user called fsync(2). The other
            three patches change locking of DAX faults so that ->iomap_begin()
            is called in a more relaxed locking context and we are safe to
            start a transaction there for ext4"
      
        These have received a build success notification from the kbuild
        robot, and pass the latest libnvdimm unit tests. There have not been
        any -next releases since -rc1, so they have not appeared there"
      
      * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        ext4: Simplify DAX fault path
        dax: Call ->iomap_begin without entry lock during dax fault
        dax: Finish fault completely when loading holes
        dax: Avoid page invalidation races and unnecessary radix tree traversals
        mm: Invalidate DAX radix tree entries only if appropriate
        ext2: Return BH_New buffers for zeroed blocks
      4759d386
  6. 31 12月, 2016 2 次提交
  7. 30 12月, 2016 2 次提交
    • O
      mm/filemap: fix parameters to test_bit() · 98473f9f
      Olof Johansson 提交于
       mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte':
        mm/filemap.c:933:9: error: too few arguments to function 'test_bit'
          return test_bit(PG_waiters);
               ^~~~~~~~
      
      Fixes: b91e1302 ('mm: optimize PageWaiters bit use for unlock_page()')
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      Brown-paper-bag-by: NLinus Torvalds <dummy@duh.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      98473f9f
    • L
      mm: optimize PageWaiters bit use for unlock_page() · b91e1302
      Linus Torvalds 提交于
      In commit 62906027 ("mm: add PageWaiters indicating tasks are
      waiting for a page bit") Nick Piggin made our page locking no longer
      unconditionally touch the hashed page waitqueue, which not only helps
      performance in general, but is particularly helpful on NUMA machines
      where the hashed wait queues can bounce around a lot.
      
      However, the "clear lock bit atomically and then test the waiters bit"
      sequence turns out to be much more expensive than it needs to be,
      because you get a nasty stall when trying to access the same word that
      just got updated atomically.
      
      On architectures where locking is done with LL/SC, this would be trivial
      to fix with a new primitive that clears one bit and tests another
      atomically, but that ends up not working on x86, where the only atomic
      operations that return the result end up being cmpxchg and xadd.  The
      atomic bit operations return the old value of the same bit we changed,
      not the value of an unrelated bit.
      
      On x86, we could put the lock bit in the high bit of the byte, and use
      "xadd" with that bit (where the overflow ends up not touching other
      bits), and look at the other bits of the result.  However, an even
      simpler model is to just use a regular atomic "and" to clear the lock
      bit, and then the sign bit in eflags will indicate the resulting state
      of the unrelated bit #7.
      
      So by moving the PageWaiters bit up to bit #7, we can atomically clear
      the lock bit and test the waiters bit on x86 too.  And architectures
      with LL/SC (which is all the usual RISC suspects), the particular bit
      doesn't matter, so they are fine with this approach too.
      
      This avoids the extra access to the same atomic word, and thus avoids
      the costly stall at page unlock time.
      
      The only downside is that the interface ends up being a bit odd and
      specialized: clear a bit in a byte, and test the sign bit.  Nick doesn't
      love the resulting name of the new primitive, but I'd rather make the
      name be descriptive and very clear about the limitation imposed by
      trying to work across all relevant architectures than make it be some
      generic thing that doesn't make the odd semantics explicit.
      
      So this introduces the new architecture primitive
      
          clear_bit_unlock_is_negative_byte();
      
      and adds the trivial implementation for x86.  We have a generic
      non-optimized fallback (that just does a "clear_bit()"+"test_bit(7)"
      combination) which can be overridden by any architecture that can do
      better.  According to Nick, Power has the same hickup x86 has, for
      example, but some other architectures may not even care.
      
      All these optimizations mean that my page locking stress-test (which is
      just executing a lot of small short-lived shell scripts: "make test" in
      the git source tree) no longer makes our page locking look horribly bad.
      Before all these optimizations, just the unlock_page() costs were just
      over 3% of all CPU overhead on "make test".  After this, it's down to
      0.66%, so just a quarter of the cost it used to be.
      
      (The difference on NUMA is bigger, but there this micro-optimization is
      likely less noticeable, since the big issue on NUMA was not the accesses
      to 'struct page', but the waitqueue accesses that were already removed
      by Nick's earlier commit).
      Acked-by: NNick Piggin <npiggin@gmail.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Bob Peterson <rpeterso@redhat.com>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Andrew Lutomirski <luto@kernel.org>
      Cc: Andreas Gruenbacher <agruenba@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Mel Gorman <mgorman@techsingularity.net>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b91e1302
  8. 28 12月, 2016 10 次提交
  9. 27 12月, 2016 12 次提交