22 Dec, 2018

14 commits


12 Dec, 2018

4 commits

  • Adopt the SPDX license identifier headers to ease license compliance
    management.

    Cc: Lubomir Rintel
    Signed-off-by: Stefan Wahren
    Reviewed-by: Eric Anholt
    Acked-by: Lubomir Rintel
    Signed-off-by: Jassi Brar

    Stefan Wahren
     
  • The > comparison should be >= or we access one element beyond the end
    of the array.

    (The inst->qinsts[] array is allocated in the ti_msgmgr_probe() function
    and it has ->num_valid_queues elements.)

    Fixes: a2b79838b891 ("mailbox: ti-msgmgr: Add support for Secure Proxy")
    Signed-off-by: Dan Carpenter
    Acked-by: Nishanth Menon
    Signed-off-by: Jassi Brar

    Dan Carpenter
     
  • Current mailbox driver of Hi3660 release the mailbox directly
    before sending a new message which may cause last message lost
    and next message sending doesn't take effect actually.

    This patch fixs this issue by following the right progress below,
    each time before sending a message, mailbox driver will check
    whether the mailbox is in ready state, if last message has been
    acknowledged, the mailbox driver will clear the ack state to turn
    the mailbox to ready state again.

    Signed-off-by: Kevin Wangtao
    Reviewed-and-tested-by: Leo Yan
    Tested-by: Valentin Schneider
    Signed-off-by: Jassi Brar

    Kevin Wangtao
     
  • The mbox_chan_ops structure can be const as it is only stored in the
    ops field of an mbox_controller structure and this field is const.

    Done with the help of Coccinelle.

    Signed-off-by: Julia Lawall
    Signed-off-by: Jassi Brar

    Julia Lawall
     

11 Dec, 2018

2 commits


10 Dec, 2018

11 commits

  • Commit '88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED
    linearly to human eye")' allows the possibility to compute a default
    brightness table when there isn't the brightness-levels property in the
    DT. Unfortunately the changes made broke the pwm backlight for the
    non-DT boards.

    Usually, the non-DT boards don't pass the brightness levels via platform
    data, instead, it sets the max_brightness in their platform data and the
    driver calculates the level without a table. The offending patch assumed
    that when there is no brightness levels table we should create one, but this
    is clearly wrong for the non-DT case.

    After this patch the code handles the DT and the non-DT case taking in
    consideration also if max_brightness is set or not.

    Fixes: 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED linearly to human eye")
    Reported-by: Robert Jarzmik
    Signed-off-by: Enric Balletbo i Serra
    Tested-by: Robert Jarzmik
    Acked-by: Daniel Thompson
    Signed-off-by: Lee Jones

    Enric Balletbo i Serra
     
  • Pull networking fixes from David Miller:
    "A decent batch of fixes here. I'd say about half are for problems that
    have existed for a while, and half are for new regressions added in
    the 4.20 merge window.

    1) Fix 10G SFP phy module detection in mvpp2, from Baruch Siach.

    2) Revert bogus emac driver change, from Benjamin Herrenschmidt.

    3) Handle BPF exported data structure with pointers when building
    32-bit userland, from Daniel Borkmann.

    4) Memory leak fix in act_police, from Davide Caratti.

    5) Check RX checksum offload in RX descriptors properly in aquantia
    driver, from Dmitry Bogdanov.

    6) SKB unlink fix in various spots, from Edward Cree.

    7) ndo_dflt_fdb_dump() only works with ethernet, enforce this, from
    Eric Dumazet.

    8) Fix FID leak in mlxsw driver, from Ido Schimmel.

    9) IOTLB locking fix in vhost, from Jean-Philippe Brucker.

    10) Fix SKB truesize accounting in ipv4/ipv6/netfilter frag memory
    limits otherwise namespace exit can hang. From Jiri Wiesner.

    11) Address block parsing length fixes in x25 from Martin Schiller.

    12) IRQ and ring accounting fixes in bnxt_en, from Michael Chan.

    13) For tun interfaces, only iface delete works with rtnl ops, enforce
    this by disallowing add. From Nicolas Dichtel.

    14) Use after free in liquidio, from Pan Bian.

    15) Fix SKB use after passing to netif_receive_skb(), from Prashant
    Bhole.

    16) Static key accounting and other fixes in XPS from Sabrina Dubroca.

    17) Partially initialized flow key passed to ip6_route_output(), from
    Shmulik Ladkani.

    18) Fix RTNL deadlock during reset in ibmvnic driver, from Thomas
    Falcon.

    19) Several small TCP fixes (off-by-one on window probe abort, NULL
    deref in tail loss probe, SNMP mis-estimations) from Yuchung
    Cheng"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (93 commits)
    net/sched: cls_flower: Reject duplicated rules also under skip_sw
    bnxt_en: Fix _bnxt_get_max_rings() for 57500 chips.
    bnxt_en: Fix NQ/CP rings accounting on the new 57500 chips.
    bnxt_en: Keep track of reserved IRQs.
    bnxt_en: Fix CNP CoS queue regression.
    net/mlx4_core: Correctly set PFC param if global pause is turned off.
    Revert "net/ibm/emac: wrong bit is used for STA control"
    neighbour: Avoid writing before skb->head in neigh_hh_output()
    ipv6: Check available headroom in ip6_xmit() even without options
    tcp: lack of available data can also cause TSO defer
    ipv6: sr: properly initialize flowi6 prior passing to ip6_route_output
    mlxsw: spectrum_switchdev: Fix VLAN device deletion via ioctl
    mlxsw: spectrum_router: Relax GRE decap matching check
    mlxsw: spectrum_switchdev: Avoid leaking FID's reference count
    mlxsw: spectrum_nve: Remove easily triggerable warnings
    ipv4: ipv6: netfilter: Adjust the frag mem limit when truesize changes
    sctp: frag_point sanity check
    tcp: fix NULL ref in tail loss probe
    tcp: Do not underestimate rwnd_limited
    net: use skb_list_del_init() to remove from RX sublists
    ...

    Linus Torvalds
     
  • The CP rings are accounted differently on the new 57500 chips. There
    must be enough CP rings for the sum of RX and TX rings on the new
    chips. The current logic may be over-estimating the RX and TX rings.

    The output parameter max_cp should be the maximum NQs capped by
    MSIX vectors available for networking in the context of 57500 chips.
    The existing code which uses CMPL rings capped by the MSIX vectors
    works most of the time but is not always correct.

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • The new 57500 chips have introduced the NQ structure in addition to
    the existing CP rings in all chips. We need to introduce a new
    bnxt_nq_rings_in_use(). On legacy chips, the 2 functions are the
    same and one will just call the other. On the new chips, they
    refer to the 2 separate ring structures. The new function is now
    called to determine the resource (NQ or CP rings) associated with
    MSIX that are in use.

    On 57500 chips, the RDMA driver does not use the CP rings so
    we don't need to do the subtraction adjustment.

    Fixes: 41e8d7983752 ("bnxt_en: Modify the ring reservation functions for 57500 series chips.")
    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • The new 57500 chips use 1 NQ per MSIX vector, whereas legacy chips use
    1 CP ring per MSIX vector. To better unify this, add a resv_irqs
    field to struct bnxt_hw_resc. On legacy chips, we initialize resv_irqs
    with resv_cp_rings. On new chips, we initialize it with the allocated
    MSIX resources.

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • Recent changes to support the 57500 devices have created this
    regression. The bnxt_hwrm_queue_qportcfg() call was moved to be
    called earlier before the RDMA support was determined, causing
    the CoS queues configuration to be set before knowing whether RDMA
    was supported or not. Fix it by moving it to the right place right
    after RDMA support is determined.

    Fixes: 98f04cf0f1fc ("bnxt_en: Check context memory requirements from firmware.")
    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • Pull char/misc driver fixes from Greg KH:
    "Here are some small driver fixes for 4.20-rc6.

    There is a hyperv fix that for some reaon took forever to get into a
    shape that could be applied to the tree properly, but resolves a much
    reported issue. The others are some gnss patches, one a bugfix and the
    two others updates to the MAINTAINERS file to properly match the gnss
    files in the tree.

    All have been in linux-next for a while with no reported issues"

    * tag 'char-misc-4.20-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    MAINTAINERS: exclude gnss from SIRFPRIMA2 regex matching
    MAINTAINERS: add gnss scm tree
    gnss: sirf: fix activation retry handling
    Drivers: hv: vmbus: Offload the handling of channels to two workqueues

    Linus Torvalds
     
  • Pull staging fixes from Greg KH:
    "Here are two staging driver bugfixes for 4.20-rc6.

    One is a revert of a previously incorrect patch that was merged a
    while ago, and the other resolves a possible buffer overrun that was
    found by code inspection.

    Both of these have been in the linux-next tree with no reported
    issues"

    * tag 'staging-4.20-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    Revert commit ef9209b642f "staging: rtl8723bs: Fix indenting errors and an off-by-one mistake in core/rtw_mlme_ext.c"
    staging: rtl8712: Fix possible buffer overrun

    Linus Torvalds
     
  • Pull tty driver fixes from Greg KH:
    "Here are three small tty driver fixes for 4.20-rc6

    Nothing major, just some bug fixes for reported issues. Full details
    are in the shortlog.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'tty-4.20-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    kgdboc: fix KASAN global-out-of-bounds bug in param_set_kgdboc_var()
    tty: serial: 8250_mtk: always resume the device in probe.
    tty: do not set TTY_IO_ERROR flag if console port

    Linus Torvalds
     
  • Pull USB fixes from Greg KH:
    "Here are some small USB fixes for 4.20-rc6

    The "largest" here are some xhci fixes for reported issues. Also here
    is a USB core fix, some quirk additions, and a usb-serial fix which
    required the export of one of the tty layer's functions to prevent
    code duplication. The tty maintainer agreed with this change.

    All of these have been in linux-next with no reported issues"

    * tag 'usb-4.20-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    xhci: Prevent U1/U2 link pm states if exit latency is too long
    xhci: workaround CSS timeout on AMD SNPS 3.0 xHC
    USB: check usb_get_extra_descriptor for proper size
    USB: serial: console: fix reported terminal settings
    usb: quirk: add no-LPM quirk on SanDisk Ultra Flair device
    USB: Fix invalid-free bug in port_over_current_notify()
    usb: appledisplay: Add 27" Apple Cinema Display

    Linus Torvalds
     
  • Pull libnvdimm fixes from Dan Williams:
    "A regression fix for the Address Range Scrub implementation, yes
    another one, and support for platforms that misalign persistent memory
    relative to the Linux memory hotplug section constraint. Longer term,
    support for sub-section memory hotplug would alleviate alignment
    waste, but until then this hack allows a 'struct page' memmap to be
    established for these misaligned memory regions.

    These have all appeared in a -next release, and thanks to Patrick for
    reporting and testing the alignment padding fix.

    Summary:

    - Unless and until the core mm handles memory hotplug units smaller
    than a section (128M), persistent memory namespaces must be padded
    to section alignment.

    The libnvdimm core already handled section collision with "System
    RAM", but some configurations overlap independent "Persistent
    Memory" ranges within a section, so additional padding injection is
    added for that case.

    - The recent reworks of the ARS (address range scrub) state machine
    to reduce the number of state flags inadvertantly missed a
    conversion of acpi_nfit_ars_rescan() call sites. Fix the regression
    whereby user-requested ARS results in a "short" scrub rather than a
    "long" scrub.

    - Fixup the unit tests to handle / test the 128M section alignment of
    mocked test resources.

    * tag 'libnvdimm-fixes-4.20-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
    acpi/nfit: Fix user-initiated ARS to be "ARS-long" rather than "ARS-short"
    libnvdimm, pfn: Pad pfn namespaces relative to other regions
    tools/testing/nvdimm: Align test resources to 128M

    Linus Torvalds
     

09 Dec, 2018

3 commits

  • rx_ppp and tx_ppp can be set between 0 and 255, so don't clamp to 1.

    Fixes: 6e8814ceb7e8 ("net/mlx4_en: Fix mixed PFC and Global pause user control requests")
    Signed-off-by: Tarick Bedeir
    Reviewed-by: Eran Ben Elisha
    Signed-off-by: David S. Miller

    Tarick Bedeir
     
  • Pull thermal SoC fixes from Eduardo Valentin:
    "Fixes for armada and broadcom thermal drivers"

    * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal:
    thermal: broadcom: constify thermal_zone_of_device_ops structure
    thermal: armada: constify thermal_zone_of_device_ops structure
    thermal: bcm2835: Switch to SPDX identifier
    thermal: armada: fix legacy resource fixup
    thermal: armada: fix legacy validity test sense

    Linus Torvalds
     
  • Pull clk fixes from Stephen Boyd:
    "A few clk driver fixes this time:

    - Introduce protected-clock DT binding to fix breakage on qcom
    sdm845-mtp boards where the qspi clks introduced this merge window
    cause the firmware on those boards to take down the system if we
    try to read the clk registers

    - Fix a couple off-by-one errors found by Dan Carpenter

    - Handle failure in zynq fixed factor clk driver to avoid using
    uninitialized data"

    * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
    clk: zynqmp: Off by one in zynqmp_is_valid_clock()
    clk: mmp: Off by one in mmp_clk_add()
    clk: mvebu: Off by one bugs in cp110_of_clk_get()
    arm64: dts: qcom: sdm845-mtp: Mark protected gcc clocks
    clk: qcom: Support 'protected-clocks' property
    dt-bindings: clk: Introduce 'protected-clocks' property
    clk: zynqmp: handle fixed factor param query error

    Linus Torvalds
     

08 Dec, 2018

6 commits

  • This reverts commit 624ca9c33c8a853a4a589836e310d776620f4ab9.

    This commit is completely bogus. The STACR register has two formats, old
    and new, depending on the version of the IP block used. There's a pair of
    device-tree properties that can be used to specify the format used:

    has-inverted-stacr-oc
    has-new-stacr-staopc

    What this commit did was to change the bit definition used with the old
    parts to match the new parts. This of course breaks the driver on all
    the old ones.

    Instead, the author should have set the appropriate properties in the
    device-tree for the variant used on his board.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: David S. Miller

    Benjamin Herrenschmidt
     
  • Pull vhost/virtio fixes from Michael Tsirkin:
    "A couple of last-minute fixes"

    * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
    vhost/vsock: fix use-after-free in network stack callers
    virtio/s390: fix race in ccw_io_helper()
    virtio/s390: avoid race on vcdev->config
    vhost/vsock: fix reset orphans race with close timeout

    Linus Torvalds
     
  • Pull PCI fixes from Bjorn Helgaas:
    "Revert ASPM change that caused a regression"

    * tag 'pci-v4.20-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    Revert "PCI/ASPM: Do not initialize link state when aspm_disabled is set"

    Linus Torvalds
     
  • Pull block fixes from Jens Axboe:
    "Let's try this again...

    We're finally happy with the DM livelock issue, and it's also passed
    overnight testing and the corruption regression test. The end result
    is much nicer now too, which is great.

    Outside of that fix, there's a pull request for NVMe with two small
    fixes, and a regression fix for BFQ from this merge window. The BFQ
    fix looks bigger than it is, it's 90% comment updates"

    * tag 'for-linus-20181207' of git://git.kernel.dk/linux-block:
    blk-mq: punt failed direct issue to dispatch list
    nvmet-rdma: fix response use after free
    nvme: validate controller state before rescheduling keep alive
    block, bfq: fix decrement of num_active_groups

    Linus Torvalds
     
  • Pull i2c fixes from Wolfram Sang:
    "A set of driver bugfixes for the I2C subsystem"

    * 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    i2c: uniphier-f: fix violation of tLOW requirement for Fast-mode
    i2c: uniphier: fix violation of tLOW requirement for Fast-mode
    i2c: uniphier-f: fill TX-FIFO only in IRQ handler for repeated START
    i2c: uniphier-f: fix timeout error after reading 8 bytes
    i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device node
    i2c: axxia: properly handle master timeout
    i2c: rcar: check bus state before reinitializing
    i2c: nvidia-gpu: limit reads also for combined messages
    i2c: nvidia-gpu: adhere to I2C fault codes

    Linus Torvalds
     
  • Pull dmaengine fixes from Vinod Koul:
    "Another pull request for dmaengine. We got bunch of fixes early this
    week and all are tagged to stable. Hope this is last fix for this
    cycle:

    - Fix imx-sdma handling of channel terminations, this involves
    reverting two commits and implement async termination

    - Fix cppi dma channel deletion from pending list on stop

    - Fix FIFO size for dw controller in Intel Merrifield"

    * tag 'dmaengine-fix-4.20-rc6' of git://git.infradead.org/users/vkoul/slave-dma:
    dmaengine: dw: Fix FIFO size for Intel Merrifield
    dmaengine: cppi41: delete channel from pending list when stop channel
    dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations
    dmaengine: imx-sdma: implement channel termination via worker
    Revert "dmaengine: imx-sdma: alloclate bd memory from dma pool"
    Revert "dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations"

    Linus Torvalds