1. 22 Aug, 2016 5 commits
  2. 31 Jul, 2016 1 commit
  3. 30 Jul, 2016 1 commit
  4. 28 Jul, 2016 4 commits
    • Hans Verkuil's avatar
      [media] cec: fix off-by-one memset · 292eaf50
      Hans Verkuil authored
      The unused bytes of the features array should be zeroed, but the start index was one
      byte too early. This caused the device features byte to be overwritten by 0.
      
      The compliance test for the CEC_S_LOG_ADDRS ioctl didn't catch this because it tested
      byte continuation with the second device features byte being 0 :-(
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      292eaf50
    • Arnd Bergmann's avatar
      [media] staging: add MEDIA_SUPPORT dependency · cd70c37b
      Arnd Bergmann authored
      staging media drivers tend to have a build time dependency on the
      media support. In particular, the newly added pulse8 cec driver can
      only be a loadable module if MEDIA_SUPPORT=m, but its build dependency
      is on a 'bool' symbol (MEDIA_CEC), so a randconfig build can fail
      with pulse8_cec built-in:
      
      drivers/staging/built-in.o: In function `pulse8_disconnect':
      dgnc_utils.c:(.text+0x114): undefined reference to `cec_unregister_adapter'
      drivers/staging/built-in.o: In function `pulse8_irq_work_handler':
      dgnc_utils.c:(.text+0x1bc): undefined reference to `cec_transmit_done'
      dgnc_utils.c:(.text+0x1d8): undefined reference to `cec_received_msg'
      dgnc_utils.c:(.text+0x1f4): undefined reference to `cec_transmit_done'
      dgnc_utils.c:(.text+0x218): undefined reference to `cec_transmit_done'
      dgnc_utils.c:(.text+0x23c): undefined reference to `cec_transmit_done'
      drivers/staging/built-in.o: In function `pulse8_connect':
      dgnc_utils.c:(.text+0x844): undefined reference to `cec_allocate_adapter'
      dgnc_utils.c:(.text+0x8a4): undefined reference to `cec_delete_adapter'
      dgnc_utils.c:(.text+0xa10): undefined reference to `cec_register_adapter'
      
      Originally, MEDIA_CEC itself was a tristate symbol, which would have
      prevented this, but since 5bb2399a ("[media] cec: fix Kconfig
      dependency problems"), it doesn't work like that any more.
      
      This encloses all of the staging media drivers in a CONFIG_MEDIA_SUPPORT
      dependency in Kconfig, which solves the problem by enforcing that none
      of the drivers can be built-in if the media core is a module.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      cd70c37b
    • Mel Gorman's avatar
      mm: move most file-based accounting to the node · 11fb9989
      Mel Gorman authored
      There are now a number of accounting oddities such as mapped file pages
      being accounted for on the node while the total number of file pages are
      accounted on the zone.  This can be coped with to some extent but it's
      confusing so this patch moves the relevant file-based accounted.  Due to
      throttling logic in the page allocator for reliable OOM detection, it is
      still necessary to track dirty and writeback pages on a per-zone basis.
      
      [mgorman@techsingularity.net: fix NR_ZONE_WRITE_PENDING accounting]
        Link: http://lkml.kernel.org/r/1468404004-5085-5-git-send-email-mgorman@techsingularity.net
      Link: http://lkml.kernel.org/r/1467970510-21195-20-git-send-email-mgorman@techsingularity.netSigned-off-by: default avatarMel Gorman <mgorman@techsingularity.net>
      Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Cc: Hillf Danton <hillf.zj@alibaba-inc.com>
      Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
      Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Rik van Riel <riel@surriel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      11fb9989
    • Mel Gorman's avatar
      mm, vmscan: move LRU lists to node · 599d0c95
      Mel Gorman authored
      This moves the LRU lists from the zone to the node and related data such
      as counters, tracing, congestion tracking and writeback tracking.
      
      Unfortunately, due to reclaim and compaction retry logic, it is
      necessary to account for the number of LRU pages on both zone and node
      logic.  Most reclaim logic is based on the node counters but the retry
      logic uses the zone counters which do not distinguish inactive and
      active sizes.  It would be possible to leave the LRU counters on a
      per-zone basis but it's a heavier calculation across multiple cache
      lines that is much more frequent than the retry checks.
      
      Other than the LRU counters, this is mostly a mechanical patch but note
      that it introduces a number of anomalies.  For example, the scans are
      per-zone but using per-node counters.  We also mark a node as congested
      when a zone is congested.  This causes weird problems that are fixed
      later but is easier to review.
      
      In the event that there is excessive overhead on 32-bit systems due to
      the nodes being on LRU then there are two potential solutions
      
      1. Long-term isolation of highmem pages when reclaim is lowmem
      
         When pages are skipped, they are immediately added back onto the LRU
         list. If lowmem reclaim persisted for long periods of time, the same
         highmem pages get continually scanned. The idea would be that lowmem
         keeps those pages on a separate list until a reclaim for highmem pages
         arrives that splices the highmem pages back onto the LRU. It potentially
         could be implemented similar to the UNEVICTABLE list.
      
         That would reduce the skip rate with the potential corner case is that
         highmem pages have to be scanned and reclaimed to free lowmem slab pages.
      
      2. Linear scan lowmem pages if the initial LRU shrink fails
      
         This will break LRU ordering but may be preferable and faster during
         memory pressure than skipping LRU pages.
      
      Link: http://lkml.kernel.org/r/1467970510-21195-4-git-send-email-mgorman@techsingularity.netSigned-off-by: default avatarMel Gorman <mgorman@techsingularity.net>
      Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
      Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Cc: Hillf Danton <hillf.zj@alibaba-inc.com>
      Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
      Cc: Michal Hocko <mhocko@kernel.org>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Rik van Riel <riel@surriel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      599d0c95
  5. 26 Jul, 2016 1 commit
    • Arnd Bergmann's avatar
      staging: emxx_udc: allow modular build · 0bf048ab
      Arnd Bergmann authored
      A change to the usb gadget core allowed certain API functions to be
      part of a loadable module, which breaks having emxx_udc built-in:
      
      drivers/staging/built-in.o: In function `nbu2ss_drv_probe':
      (.text+0x2428): undefined reference to `usb_ep_set_maxpacket_limit'
      
      The original patch already fixed tons of other cases that have the
      added dependency but apparently missed this one that now appears
      in an ARM allmodconfig build.
      
      This patch makes the symbol "tristate", which lets the Kconfig
      dependency tracking handle it correctly. To make the module
      actually usable, I also revert 0af61e66 ("drivers/staging:
      make emxx_udc.c explicitly non-modular"), which Paul Gortmaker
      added after noticing that the Kconfig symbol was 'bool'.
      Compared to the original version however, I leave out the
      '__exit' annotation on the remove callback, as Paul pointed
      out that this was incorrect.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 5a8d651a ("usb: gadget: move gadget API functions to udc-core")
      Acked-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0bf048ab
  6. 20 Jul, 2016 1 commit
  7. 19 Jul, 2016 8 commits
  8. 15 Jul, 2016 4 commits
  9. 13 Jul, 2016 4 commits
  10. 12 Jul, 2016 6 commits
  11. 08 Jul, 2016 5 commits