13 Feb, 2020

9 commits

  • Add reference counter incremented for each frame enqueued in CAAM
    and replace unconditional sleep in empty_caam_fq() with polling the
    reference counter.

    When CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y boot time on LS1043A
    platform with this optimization decreases from ~1100s to ~11s.

    Signed-off-by: Valentin Ciocoi Radulescu
    Reviewed-by: Horia Geantă
    Signed-off-by: Herbert Xu

    Valentin Ciocoi Radulescu
     
  • Fix an error causing no block sizes to be reported during
    all AEAD registrations.

    Signed-off-by: Gilad Ben-Yossef
    Tested-by: Geert Uytterhoeven
    Signed-off-by: Herbert Xu

    Gilad Ben-Yossef
     
  • OFB and CTR modes block sizes were wrongfully reported as
    the underlying block sizes. Fix it to 1 bytes as they
    turn the block ciphers into stream ciphers.

    Also document why our XTS differes from the generic
    implementation.

    Signed-off-by: Gilad Ben-Yossef
    Signed-off-by: Herbert Xu

    Gilad Ben-Yossef
     
  • Make sure to only add the size of the auth tag to the source mapping
    for encryption if it is an in-place operation. Failing to do this
    previously caused us to try and map auth size len bytes from a NULL
    mapping and crashing if both the cryptlen and assoclen are zero.

    Reported-by: Geert Uytterhoeven
    Tested-by: Geert Uytterhoeven
    Signed-off-by: Gilad Ben-Yossef
    Cc: stable@vger.kernel.org # v4.19+
    Signed-off-by: Herbert Xu

    Gilad Ben-Yossef
     
  • Deal gracefully with a NULL or empty scatterlist which can happen
    if both cryptlen and assoclen are zero and we're doing in-place
    AEAD encryption.

    This fixes a crash when this causes us to try and map a NULL page,
    at least with some platforms / DMA mapping configs.

    Cc: stable@vger.kernel.org # v4.19+
    Reported-by: Geert Uytterhoeven
    Tested-by: Geert Uytterhoeven
    Signed-off-by: Gilad Ben-Yossef
    Signed-off-by: Herbert Xu

    Gilad Ben-Yossef
     
  • If all possible errors occurs at the same time, the error_status will be
    all 1s. The doorbell timeout error and FIFO overflow error will be print
    in each cycle, which should be print just once.

    Signed-off-by: Shukun Tan
    Reviewed-by: Zhou Wang
    Signed-off-by: Herbert Xu

    Shukun Tan
     
  • In error detect process, a lot of duplicate code can put into qm. We add
    two callback(get_dev_hw_err_status and log_dev_hw_err) into struct
    hisi_qm_err_ini to handle device error detect, meanwhile the qm error
    detect not changed.

    Signed-off-by: Shukun Tan
    Signed-off-by: Zaibo Xu
    Reviewed-by: Zhou Wang
    Signed-off-by: Herbert Xu

    Shukun Tan
     
  • Configure zip RAS error type in error handle initialization,
    Where ECC 1bit is configured as CE error, others are NFE.

    Signed-off-by: Shukun Tan
    Reviewed-by: Zhou Wang
    Signed-off-by: Herbert Xu

    Shukun Tan
     
  • The initialization and uninitialization of zip/hpre/sec/qm hardware error
    is processed in respective drivers, which could be unified into qm.c. We
    add struct hisi_qm_err_ini into struct hisi_qm, which involve all error
    handlers of device and assignment should be done in driver probe.

    Signed-off-by: Shukun Tan
    Signed-off-by: Zaibo Xu
    Reviewed-by: Zhou Wang
    Signed-off-by: Herbert Xu

    Shukun Tan
     

10 Feb, 2020

3 commits

  • Pull more Kbuild updates from Masahiro Yamada:

    - fix randconfig to generate a sane .config

    - rename hostprogs-y / always to hostprogs / always-y, which are more
    natual syntax.

    - optimize scripts/kallsyms

    - fix yes2modconfig and mod2yesconfig

    - make multiple directory targets ('make foo/ bar/') work

    * tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
    kbuild: make multiple directory targets work
    kconfig: Invalidate all symbols after changing to y or m.
    kallsyms: fix type of kallsyms_token_table[]
    scripts/kallsyms: change table to store (strcut sym_entry *)
    scripts/kallsyms: rename local variables in read_symbol()
    kbuild: rename hostprogs-y/always to hostprogs/always-y
    kbuild: fix the document to use extra-y for vmlinux.lds
    kconfig: fix broken dependency in randconfig-generated .config

    Linus Torvalds
     
  • In order to allow the GICv4 code to link properly on 32bit ARM,
    make sure we don't use 64bit divisions when it isn't strictly
    necessary.

    Fixes: 4e6437f12d6e ("irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level")
    Reported-by: Stephen Rothwell
    Cc: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Signed-off-by: Linus Torvalds

    Marc Zyngier
     
  • Pull interrupt fixes from Thomas Gleixner:
    "A set of fixes for the interrupt subsystem:

    - Provision only ACPI enabled redistributors on GICv3

    - Use the proper command colums when building the INVALL command for
    the GICv3-ITS

    - Ensure the allocation of the L2 vPE table for GICv4.1

    - Correct the GICv4.1 VPROBASER programming so it uses the proper
    size

    - A set of small GICv4.1 tidy up patches

    - Configuration cleanup for C-SKY interrupt chip

    - Clarify the function documentation for irq_set_wake() to document
    that the wakeup functionality is orthogonal to the irq
    disable/enable mechanism"

    * tag 'irq-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    irqchip/gic-v3-its: Rename VPENDBASER/VPROPBASER accessors
    irqchip/gic-v3-its: Remove superfluous WARN_ON
    irqchip/gic-v4.1: Drop 'tmp' in inherit_vpe_l1_table_from_rd()
    irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level
    irqchip/gic-v4.1: Set vpe_l1_base for all redistributors
    irqchip/gic-v4.1: Fix programming of GICR_VPROPBASER_4_1_SIZE
    genirq: Clarify that irq wake state is orthogonal to enable/disable
    irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL
    irqchip: Some Kconfig cleanup for C-SKY
    irqchip/gic-v3: Only provision redistributors that are enabled in ACPI

    Linus Torvalds
     

09 Feb, 2020

9 commits

  • Pull misc SCSI fixes from James Bottomley:
    "Five small patches, all in drivers or doc, which missed the initial
    pull request.

    The qla2xxx and megaraid_sas are actual fixes and the rest are
    spelling and doc changes"

    * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    scsi: ufs: fix spelling mistake "initilized" -> "initialized"
    scsi: pm80xx: fix spelling mistake "to" -> "too"
    scsi: MAINTAINERS: ufs: remove pedrom.sousa@synopsys.com
    scsi: megaraid_sas: fixup MSIx interrupt setup during resume
    scsi: qla2xxx: Fix unbound NVME response length

    Linus Torvalds
     
  • Pull networking fixes from David Miller:

    1) Unbalanced locking in mwifiex_process_country_ie, from Brian Norris.

    2) Fix thermal zone registration in iwlwifi, from Andrei
    Otcheretianski.

    3) Fix double free_irq in sgi ioc3 eth, from Thomas Bogendoerfer.

    4) Use after free in mptcp, from Florian Westphal.

    5) Use after free in wireguard's root_remove_peer_lists, from Eric
    Dumazet.

    6) Properly access packets heads in bonding alb code, from Eric
    Dumazet.

    7) Fix data race in skb_queue_len(), from Qian Cai.

    8) Fix regression in r8169 on some chips, from Heiner Kallweit.

    9) Fix XDP program ref counting in hv_netvsc, from Haiyang Zhang.

    10) Certain kinds of set link netlink operations can cause a NULL deref
    in the ipv6 addrconf code. Fix from Eric Dumazet.

    11) Don't cancel uninitialized work queue in drop monitor, from Ido
    Schimmel.

    * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (84 commits)
    net: thunderx: use proper interface type for RGMII
    mt76: mt7615: fix max_nss in mt7615_eeprom_parse_hw_cap
    bpf: Improve bucket_log calculation logic
    selftests/bpf: Test freeing sockmap/sockhash with a socket in it
    bpf, sockhash: Synchronize_rcu before free'ing map
    bpf, sockmap: Don't sleep while holding RCU lock on tear-down
    bpftool: Don't crash on missing xlated program instructions
    bpf, sockmap: Check update requirements after locking
    drop_monitor: Do not cancel uninitialized work item
    mlxsw: spectrum_dpipe: Add missing error path
    mlxsw: core: Add validation of hardware device types for MGPIR register
    mlxsw: spectrum_router: Clear offload indication from IPv6 nexthops on abort
    selftests: mlxsw: Add test cases for local table route replacement
    mlxsw: spectrum_router: Prevent incorrect replacement of local table routes
    net: dsa: microchip: enable module autoprobe
    ipv6/addrconf: fix potential NULL deref in inet6_set_link_af()
    dpaa_eth: support all modes with rate adapting PHYs
    net: stmmac: update pci platform data to use phy_interface
    net: stmmac: xgmac: fix missing IFF_MULTICAST checki in dwxgmac2_set_filter
    net: stmmac: fix missing IFF_MULTICAST check in dwmac4_set_filter
    ...

    Linus Torvalds
     
  • This is a merge error on my part - the driver was merged into mainline
    by commit c5951e7c8ee5 ("Merge tag 'mips_5.6' of git://../mips/linux")
    over a week ago, but nobody apparently noticed that it didn't actually
    build due to still having a reference to the devm_ioremap_nocache()
    function, removed a few days earlier through commit 6a1000bd2703 ("Merge
    tag 'ioremap-5.6' of git://../ioremap").

    Apparently this didn't get any build testing anywhere. Not perhaps all
    that surprising: it's restricted to 64-bit MIPS only, and only with the
    new SGI_MFD_IOC3 support enabled.

    I only noticed because the ioremap conflicts in the ARM SoC driver
    update made me check there weren't any others hiding, and I found this
    one.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Pull ARM SoC late updates from Olof Johansson:
    "This is some material that we picked up into our tree late, or that
    had more complex dependencies on more than one topic branch that makes
    sense to keep separately.

    - TI support for secure accelerators and hwrng on OMAP4/5

    - TI camera changes for dra7 and am437x and SGX improvement due to
    better reset control support on am335x, am437x and dra7

    - Davinci moves to proper clocksource on DM365, and regulator/audio
    improvements for DM365 and DM644x eval boards"

    * tag 'armsoc-late' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (32 commits)
    ARM: dts: omap4-droid4: Enable hdq for droid4 ds250x 1-wire battery nvmem
    ARM: dts: motorola-cpcap-mapphone: Configure calibration interrupt
    ARM: dts: Configure interconnect target module for am437x sgx
    ARM: dts: Configure sgx for dra7
    ARM: dts: Configure rstctrl reset for am335x SGX
    ARM: dts: dra7: Add ti-sysc node for VPE
    ARM: dts: dra7: add vpe clkctrl node
    ARM: dts: am43x-epos-evm: Add VPFE and OV2659 entries
    ARM: dts: am437x-sk-evm: Add VPFE and OV2659 entries
    ARM: dts: am43xx: add support for clkout1 clock
    arm: dts: dra76-evm: Add CAL and OV5640 nodes
    arm: dtsi: dra76x: Add CAL dtsi node
    arm: dts: dra72-evm-common: Add entries for the CSI2 cameras
    ARM: dts: DRA72: Add CAL dtsi node
    ARM: dts: dra7-l4: Add ti-sysc node for CAM
    ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only
    ARM: dts: dra7: add cam clkctrl node
    ARM: OMAP2+: Drop legacy platform data for omap4 des
    ARM: OMAP2+: Drop legacy platform data for omap4 sham
    ARM: OMAP2+: Drop legacy platform data for omap4 aes
    ...

    Linus Torvalds
     
  • Pull ARM SoC-related driver updates from Olof Johansson:
    "Various driver updates for platforms:

    - Nvidia: Fuse support for Tegra194, continued memory controller
    pieces for Tegra30

    - NXP/FSL: Refactorings of QuickEngine drivers to support
    ARM/ARM64/PPC

    - NXP/FSL: i.MX8MP SoC driver pieces

    - TI Keystone: ring accelerator driver

    - Qualcomm: SCM driver cleanup/refactoring + support for new SoCs.

    - Xilinx ZynqMP: feature checking interface for firmware. Mailbox
    communication for power management

    - Overall support patch set for cpuidle on more complex hierarchies
    (PSCI-based)

    and misc cleanups, refactorings of Marvell, TI, other platforms"

    * tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (166 commits)
    drivers: soc: xilinx: Use mailbox IPI callback
    dt-bindings: power: reset: xilinx: Add bindings for ipi mailbox
    drivers: soc: ti: knav_qmss_queue: Pass lockdep expression to RCU lists
    MAINTAINERS: Add brcmstb PCIe controller entry
    soc/tegra: fuse: Unmap registers once they are not needed anymore
    soc/tegra: fuse: Correct straps' address for older Tegra124 device trees
    soc/tegra: fuse: Warn if straps are not ready
    soc/tegra: fuse: Cache values of straps and Chip ID registers
    memory: tegra30-emc: Correct error message for timed out auto calibration
    memory: tegra30-emc: Firm up hardware programming sequence
    memory: tegra30-emc: Firm up suspend/resume sequence
    soc/tegra: regulators: Do nothing if voltage is unchanged
    memory: tegra: Correct reset value of xusb_hostr
    soc/tegra: fuse: Add APB DMA dependency for Tegra20
    bus: tegra-aconnect: Remove PM_CLK dependency
    dt-bindings: mediatek: add MT6765 power dt-bindings
    soc: mediatek: cmdq: delete not used define
    memory: tegra: Add support for the Tegra194 memory controller
    memory: tegra: Only include support for enabled SoCs
    memory: tegra: Support DVFS on Tegra186 and later
    ...

    Linus Torvalds
     
  • Pull ARM Device-tree updates from Olof Johansson:
    "New SoCs:

    - Atmel/Microchip SAM9X60 (ARM926 SoC)

    - OMAP 37xx gets split into AM3703/AM3715/DM3725, who are all
    variants of it with different GPU/media IP configurations.

    - ST stm32mp15 SoCs (1-2 Cortex-A7, CAN, GPU depending on SKU)

    - ST Ericsson ab8505 (variant of ab8500) and db8520 (variant of
    db8500)

    - Unisoc SC9863A SoC (8x Cortex-A55 mobile chipset w/ GPU, modem)

    - Qualcomm SC7180 (8-core 64bit SoC, unnamed CPU class)

    New boards:

    - Allwinner:
    + Emlid Neutis SoM (H3 variant)
    + Libre Computer ALL-H3-IT
    + PineH64 Model B

    - Amlogic:
    + Libretech Amlogic GX PC (s905d and s912-based variants)

    - Atmel/Microchip:
    + Kizboxmini, sam9x60 EK, sama5d27 Wireless SOM (wlsom1)

    - Marvell:
    + Armada 385-based SolidRun Clearfog GTR

    - NXP:
    + Gateworks GW59xx boards based on i.MX6/6Q/6QDL
    + Tolino Shine 3 eBook reader (i.MX6sl)
    + Embedded Artists COM (i.MX7ULP)
    + SolidRun CLearfog CX/ITX and HoneyComb (LX2160A-based systems)
    + Google Coral Edge TPU (i.MX8MQ)

    - Rockchip:
    + Radxa Dalang Carrier (supports rk3288 and rk3399 SOMs)
    + Radxa Rock Pi N10 (RK3399Pro-based)
    + VMARC RK3399Pro SOM

    - ST:
    + Reference boards for stm32mp15

    - ST Ericsson:
    + Samsung Galaxy S III mini (GT-I8190)
    + HREF520 reference board for DB8520

    - TI OMAP:
    + Gen1 Amazon Echo (OMAP3630-based)

    - Qualcomm:
    + Inforce 6640 Single Board Computer (msm8996-based)
    + SC7180 IDP (SC7180-based)"

    * tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (623 commits)
    dt-bindings: fix compilation error of the example in marvell,mmp3-hsic-phy.yaml
    arm64: dts: ti: k3-am654-base-board: Add CSI2 OV5640 camera
    arm64: dts: ti: k3-am65-main Add CAL node
    arm64: dts: ti: k3-j721e-main: Add McASP nodes
    arm64: dts: ti: k3-am654-main: Add McASP nodes
    arm64: dts: ti: k3-j721e: DMA support
    arm64: dts: ti: k3-j721e-main: Move secure proxy and smmu under main_navss
    arm64: dts: ti: k3-j721e-main: Correct main NAVSS representation
    arm64: dts: ti: k3-j721e: Correct the address for MAIN NAVSS
    arm64: dts: ti: k3-am65: DMA support
    arm64: dts: ti: k3-am65-main: Move secure proxy under cbass_main_navss
    arm64: dts: ti: k3-am65-main: Correct main NAVSS representation
    ARM: dts: aspeed: rainier: Add UCD90320 power sequencer
    ARM: dts: aspeed: rainier: Switch PSUs to unknown version
    arm64: dts: rockchip: Kill off "simple-panel" compatibles
    ARM: dts: rockchip: Kill off "simple-panel" compatibles
    arm64: dts: rockchip: rename dwmmc node names to mmc
    ARM: dts: rockchip: rename dwmmc node names to mmc
    arm64: dts: exynos: Rename Samsung and Exynos to lowercase
    arm64: dts: uniphier: add reset-names to NAND controller node
    ...

    Linus Torvalds
     
  • Pull ARM SoC platform updates from Olof Johansson:
    "Most of these are smaller fixes that have accrued, and some continued
    cleanup of OMAP platforms towards shared frameworks.

    One new SoC from Atmel/Microchip: sam9x60"

    * tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (35 commits)
    ARM: OMAP2+: Fix undefined reference to omap_secure_init
    ARM: s3c64xx: Drop unneeded select of TIMER_OF
    ARM: exynos: Drop unneeded select of MIGHT_HAVE_CACHE_L2X0
    ARM: s3c24xx: Switch to atomic pwm API in rx1950
    ARM: OMAP2+: sleep43xx: Call secure suspend/resume handlers
    ARM: OMAP2+: Use ARM SMC Calling Convention when OP-TEE is available
    ARM: OMAP2+: Introduce check for OP-TEE in omap_secure_init()
    ARM: OMAP2+: Add omap_secure_init callback hook for secure initialization
    ARM: at91: Documentation: add sam9x60 product and datasheet
    ARM: at91: pm: use of_device_id array to find the proper shdwc node
    ARM: at91: pm: use SAM9X60 PMC's compatible
    ARM: imx: only select ARM_ERRATA_814220 for ARMv7-A
    ARM: zynq: use physical cpuid in zynq_slcr_cpu_stop/start
    ARM: tegra: Use clk_m CPU on Tegra124 LP1 resume
    ARM: tegra: Modify reshift divider during LP1
    ARM: tegra: Enable PLLP bypass during Tegra124 LP1
    ARM: samsung: Rename Samsung and Exynos to lowercase
    ARM: exynos: Correct the help text for platform Kconfig option
    ARM: bcm: Select ARM_AMBA for ARCH_BRCMSTB
    ARM: brcmstb: Add debug UART entry for 7216
    ...

    Linus Torvalds
     
  • Pull vfs file system parameter updates from Al Viro:
    "Saner fs_parser.c guts and data structures. The system-wide registry
    of syntax types (string/enum/int32/oct32/.../etc.) is gone and so is
    the horror switch() in fs_parse() that would have to grow another case
    every time something got added to that system-wide registry.

    New syntax types can be added by filesystems easily now, and their
    namespace is that of functions - not of system-wide enum members. IOW,
    they can be shared or kept private and if some turn out to be widely
    useful, we can make them common library helpers, etc., without having
    to do anything whatsoever to fs_parse() itself.

    And we already get that kind of requests - the thing that finally
    pushed me into doing that was "oh, and let's add one for timeouts -
    things like 15s or 2h". If some filesystem really wants that, let them
    do it. Without somebody having to play gatekeeper for the variants
    blessed by direct support in fs_parse(), TYVM.

    Quite a bit of boilerplate is gone. And IMO the data structures make a
    lot more sense now. -200LoC, while we are at it"

    * 'merge.nfs-fs_parse.1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (25 commits)
    tmpfs: switch to use of invalfc()
    cgroup1: switch to use of errorfc() et.al.
    procfs: switch to use of invalfc()
    hugetlbfs: switch to use of invalfc()
    cramfs: switch to use of errofc() et.al.
    gfs2: switch to use of errorfc() et.al.
    fuse: switch to use errorfc() et.al.
    ceph: use errorfc() and friends instead of spelling the prefix out
    prefix-handling analogues of errorf() and friends
    turn fs_param_is_... into functions
    fs_parse: handle optional arguments sanely
    fs_parse: fold fs_parameter_desc/fs_parameter_spec
    fs_parser: remove fs_parameter_description name field
    add prefix to fs_context->log
    ceph_parse_param(), ceph_parse_mon_ips(): switch to passing fc_log
    new primitive: __fs_parse()
    switch rbd and libceph to p_log-based primitives
    struct p_log, variants of warnf() et.al. taking that one instead
    teach logfc() to handle prefices, give it saner calling conventions
    get rid of cg_invalf()
    ...

    Linus Torvalds
     
  • Pull misc vfs updates from Al Viro:

    - bmap series from cmaiolino

    - getting rid of convolutions in copy_mount_options() (use a couple of
    copy_from_user() instead of the __get_user() crap)

    * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    saner copy_mount_options()
    fibmap: Reject negative block numbers
    fibmap: Use bmap instead of ->bmap method in ioctl_fibmap
    ecryptfs: drop direct calls to ->bmap
    cachefiles: drop direct usage of ->bmap method.
    fs: Enable bmap() function to properly return errors

    Linus Torvalds
     

08 Feb, 2020

19 commits

  • …/maz/arm-platforms into irq/urgent

    Pull irqchip fixes for 5.6, take #1 from Marc Zyngier:

    - Guarantee allocation of L2 vPE table for GICv4.1
    - Fix GICv4.1 VPROPBASER programming
    - Numerous GICv4.1 tidy ups
    - Fix disabled GICv3 redistributor provisioning with ACPI
    - KConfig cleanup for C-SKY

    Thomas Gleixner
     
  • The configuration of the OCTEONTX XCV_DLL_CTL register via
    xcv_init_hw() is such that the RGMII RX delay is bypassed
    leaving the RGMII TX delay enabled in the MAC:

    /* Configure DLL - enable or bypass
    * TX no bypass, RX bypass
    */
    cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL);
    cfg &= ~0xFF03;
    cfg |= CLKRX_BYP;
    writeq_relaxed(cfg, xcv->reg_base + XCV_DLL_CTL);

    This would coorespond to a interface type of PHY_INTERFACE_MODE_RGMII_RXID
    and not PHY_INTERFACE_MODE_RGMII.

    Fixing this allows RGMII PHY drivers to do the right thing (enable
    RX delay in the PHY) instead of erroneously enabling both delays in the
    PHY.

    Signed-off-by: Tim Harvey
    Reviewed-by: Andrew Lunn
    Signed-off-by: David S. Miller

    Tim Harvey
     
  • …rnel/git/kvalo/wireless-drivers

    Kalle Valo says:

    ====================
    wireless-drivers fixes for v5.6

    First set of fixes for v5.6. Buffer overflow fixes to mwifiex, quite a
    few functionality fixes to iwlwifi and smaller fixes to other drivers.

    mwifiex

    * fix an unlock from a previous security fix

    * fix two buffer overflows

    libertas

    * fix two bugs from previous security fixes

    iwlwifi

    * fix module removal with multiple NICs

    * don't treat IGTK removal failure as an error

    * avoid FW crashes due to DTS measurement races

    * fix a potential use after free in FTM code

    * prevent a NULL pointer dereference in iwl_mvm_cfg_he_sta()

    * fix TDLS discovery

    * check all CPUs when trying to detect an error during resume

    rtw88

    * fix clang warning

    mt76

    * fix reading of max_nss value from a register
    ====================

    Signed-off-by: David S. Miller <davem@davemloft.net>

    David S. Miller
     
  • Daniel Borkmann says:

    ====================
    pull-request: bpf 2020-02-07

    The following pull-request contains BPF updates for your *net* tree.

    We've added 15 non-merge commits during the last 10 day(s) which contain
    a total of 12 files changed, 114 insertions(+), 31 deletions(-).

    The main changes are:

    1) Various BPF sockmap fixes related to RCU handling in the map's tear-
    down code, from Jakub Sitnicki.

    2) Fix macro state explosion in BPF sk_storage map when calculating its
    bucket_log on allocation, from Martin KaFai Lau.

    3) Fix potential BPF sockmap update race by rechecking socket's established
    state under lock, from Lorenz Bauer.

    4) Fix crash in bpftool on missing xlated instructions when kptr_restrict
    sysctl is set, from Toke Høiland-Jørgensen.

    5) Fix i40e's XSK wakeup code to return proper error in busy state and
    various misc fixes in xdpsock BPF sample code, from Maciej Fijalkowski.

    6) Fix the way modifiers are skipped in BTF in the verifier while walking
    pointers to avoid program rejection, from Alexei Starovoitov.

    7) Fix Makefile for runqslower BPF tool to i) rebuild on libbpf changes and
    ii) to fix undefined reference linker errors for older gcc version due to
    order of passed gcc parameters, from Yulia Kartseva and Song Liu.

    8) Fix a trampoline_count BPF kselftest warning about missing braces around
    initializer, from Andrii Nakryiko.

    9) Fix up redundant "HAVE" prefix from large INSN limit kernel probe in
    bpftool, from Michal Rostecki.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • V{PEND,PROP}BASER registers are actually located in VLPI_base frame
    of the *redistributor*. Rename their accessors to reflect this fact.

    No functional changes.

    Signed-off-by: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Link: https://lore.kernel.org/r/20200206075711.1275-7-yuzenghui@huawei.com

    Zenghui Yu
     
  • "ITS virtual pending table not cleaning" is already complained inside
    its_clear_vpend_valid(), there's no need to trigger a WARN_ON again.

    Signed-off-by: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Link: https://lore.kernel.org/r/20200206075711.1275-6-yuzenghui@huawei.com

    Zenghui Yu
     
  • The variable 'tmp' in inherit_vpe_l1_table_from_rd() is actually
    not needed, drop it.

    Signed-off-by: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Link: https://lore.kernel.org/r/20200206075711.1275-5-yuzenghui@huawei.com

    Zenghui Yu
     
  • In GICv4, we will ensure that level2 vPE table memory is allocated
    for the specified vpe_id on all v4 ITS, in its_alloc_vpe_table().
    This still works well for the typical GICv4.1 implementation, where
    the new vPE table is shared between the ITSs and the RDs.

    To make it explicit, let us introduce allocate_vpe_l2_table() to
    make sure that the L2 tables are allocated on all v4.1 RDs. We're
    likely not need to allocate memory in it because the vPE table is
    shared and (L2 table is) already allocated at ITS level, except
    for the case where the ITS doesn't share anything (say SVPET == 0,
    practically unlikely but architecturally allowed).

    The implementation of allocate_vpe_l2_table() is mostly copied from
    its_alloc_table_entry().

    Signed-off-by: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Link: https://lore.kernel.org/r/20200206075711.1275-4-yuzenghui@huawei.com

    Zenghui Yu
     
  • Currently, we will not set vpe_l1_page for the current RD if we can
    inherit the vPE configuration table from another RD (or ITS), which
    results in an inconsistency between RDs within the same CommonLPIAff
    group.

    Let's rename it to vpe_l1_base to indicate the base address of the
    vPE configuration table of this RD, and set it properly for *all*
    v4.1 redistributors.

    Signed-off-by: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Link: https://lore.kernel.org/r/20200206075711.1275-3-yuzenghui@huawei.com

    Zenghui Yu
     
  • The Size field of GICv4.1 VPROPBASER register indicates number of
    pages minus one and together Page_Size and Size control the vPEID
    width. Let's respect this requirement of the architecture.

    Signed-off-by: Zenghui Yu
    Signed-off-by: Marc Zyngier
    Link: https://lore.kernel.org/r/20200206075711.1275-2-yuzenghui@huawei.com

    Zenghui Yu
     
  • Fix u8 cast reading max_nss from MT_TOP_STRAP_STA register in
    mt7615_eeprom_parse_hw_cap routine

    Fixes: acf5457fd99db ("mt76: mt7615: read {tx,rx} mask from eeprom")
    Signed-off-by: Lorenzo Bianconi
    Signed-off-by: Kalle Valo

    Lorenzo Bianconi
     
  • Pull i2c updates from Wolfram Sang:
    "i2c core:

    - huge improvements and refactorizations of the Linux I2C
    documentation (lots of thanks to Luca for doing it and Jean for the
    careful review)

    - subsystem wide API conversion to i2c_new_client_device()

    - remove obsolete parport-light driver

    - smaller core updates (removal of 'extern', enabling more compile
    testing, use more helper macros)

    - and quite a bunch of driver updates (new IDs, simplifications,
    better PM, support of atomic transfers and other improvements)

    i2c-mux:

    - The main feature is the idle-state rework of the pca954x driver
    from Biwen Li

    at24 driver:

    - minor maintenance: update the license tag, sort headers

    - move support for the write-protect pin into nvmem core

    - add a reference to the new wp-gpios property in nvmem to at25
    bindings

    - add support for regulator and pm_runtime control"

    * 'i2c/for-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (91 commits)
    i2c: cros-ec-tunnel: Fix ACPI identifier
    i2c: cros-ec-tunnel: Fix slave device enumeration
    i2c: stm32f7: add PM_SLEEP suspend/resume support
    i2c: cadence: Fix wording in i2c-cadence driver
    i2c: cadence: Fix power management order of operations
    i2c: cadence: Fix error printing in case of defer
    i2c: cadence: Handle transfer_size rollover
    i2c: i801: Add support for Intel Comet Lake PCH-V
    docs: i2c: writing-clients: properly name the stop condition
    docs: i2c: i2c-protocol: use same wording as smbus-protocol
    docs: i2c: rename sections so the overall picture is clearer
    docs: i2c: old-module-parameters: use monospace instead of ""
    docs: i2c: old-module-parameters: clarify this is for obsolete kernels
    docs: i2c: old-module-parameters: fix internal hyperlink
    docs: i2c: instantiating-devices: use monospace for sysfs attributes
    docs: i2c: instantiating-devices: rearrange static instatiation
    docs: i2c: instantiating-devices: fix internal hyperlink
    docs: i2c: smbus-protocol: improve I2C Block transactions description
    docs: i2c: smbus-protocol: fix punctuation
    docs: i2c: smbus-protocol: fix typo
    ...

    Linus Torvalds
     
  • Pull more ACPI updates from Rafael Wysocki:
    "Add Hisilicon Hip08-Lite I2C controller clock frequency support to the
    ACPI driver for AMD SoCs (APD) and to the Designware I2C driver
    (Hanjun Guo)"

    * tag 'acpi-5.6-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    i2c: designware: Add ACPI HID for Hisilicon Hip08-Lite I2C controller
    ACPI / APD: Add clock frequency for Hisilicon Hip08-Lite I2C controller

    Linus Torvalds
     
  • Pull more power management updates from Rafael Wysocki:

    - Update the recently merged CPR (Core Power Reduction) support in the
    AVS (Adaptive Voltage Scaling) subsystem (Brendan Higgins, Nathan
    Chancellor, Niklas Cassel)

    - Update the rockchip-io AVS driver (Heiko Stuebner)

    - Add two more module parameters to intel_idle on top of the recently
    merged material (Rafael Wysocki)

    - Clean up a piece of cpuidle documentation and consolidate system
    sleep states documentation (Rafael Wysocki)

    * tag 'pm-5.6-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    cpuidle: Documentation: Clean up PM QoS description
    Documentation: admin-guide: PM: Update sleep states documentation
    intel_idle: Introduce 'states_off' module parameter
    intel_idle: Introduce 'use_acpi' module parameter
    power: avs: qcom-cpr: Avoid clang -Wsometimes-uninitialized in cpr_scale
    power: avs: qcom-cpr: add unspecified HAS_IOMEM dependency
    PM / AVS: rockchip-io: fix the supply naming for the emmc supply on px30
    power: avs: qcom-cpr: add a printout after the driver has been initialized

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "Just some fixes for this merge window: the tegra changes fix some
    regressions in the merge, nouveau has a few modesetting fixes.

    The amdgpu fixes are bit bigger, but they contain a couple of weeks of
    fixes, and don't seem to contain anything that isn't really a fix.

    Summary:

    tegra:
    - merge window regression fixes

    nouveau:
    - couple of volta/turing modesetting fixes

    amdgpu:
    - EDC fixes for Arcturus
    - GDDR6 memory training fixe
    - Fix for reading gfx clockgating registers while in GFXOFF state
    - i2c freq fixes
    - Misc display fixes
    - TLB invalidation fix when using semaphores
    - VCN 2.5 instancing fixes
    - Switch raven1 gfxoff to a blacklist
    - Coreboot workaround for KV/KB
    - Root cause dongle fixes for display and revert workaround
    - Enable GPU reset for renoir and navi
    - Navi overclocking fixes
    - Fix up confusing warnings in display clock validation on raven

    amdkfd:
    - SDMA fix

    radeon:
    - Misc LUT fixes"

    * tag 'drm-next-2020-02-07' of git://anongit.freedesktop.org/drm/drm: (90 commits)
    gpu: host1x: Set DMA direction only for DMA-mapped buffer objects
    drm/tegra: Reuse IOVA mapping where possible
    drm/tegra: Relax IOMMU usage criteria on old Tegra
    drm/amd/dm/mst: Ignore payload update failures
    drm/amdgpu: update default voltage for boot od table for navi1x
    drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_voltage
    drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_latency
    drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2)
    drm/amdgpu: fetch default VDDC curve voltages (v2)
    drm/amdgpu/smu_v11_0: Correct behavior of restoring default tables (v2)
    drm/amdgpu/navi10: add OD_RANGE for navi overclocking
    drm/amdgpu/navi: fix index for OD MCLK
    drm/amd/display: Fix HW/SW state mismatch
    drm/amd/display: Fix a typo when computing dsc configuration
    drm/amd/powerplay: fix navi10 system intermittent reboot issue V2
    drm/amdkfd: Fix a bug in SDMA RLC queue counting under HWS mode
    drm/amd/display: Only enable cursor on pipes that need it
    drm/nouveau/kms/gv100-: avoid sending a core update until the first modeset
    drm/nouveau/kms/gv100-: move window ownership setup into modesetting path
    drm/nouveau/disp/gv100-: halt NV_PDISP_FE_RM_INTR_STAT_CTRL_DISP_ERROR storms
    ...

    Linus Torvalds
     
  • Pull clk fixes from Stephen Boyd:
    "A collection of fixes:

    - Make of_clk.h self contained

    - Fix new qcom DT bindings that just merged to match the DTS files

    - Fix qcom clk driver to properly detect DFS clk frequencies

    - Fix the ls1028a driver to not deref a pointer before assigning it"

    * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
    of: clk: Make self-contained
    clk: qcom: Use ARRAY_SIZE in videocc-sc7180 for parent clocks
    clk: qcom: Get rid of the test clock for videocc-sc7180
    dt-bindings: clock: Cleanup qcom,videocc bindings for sdm845/sc7180
    clk: qcom: Use ARRAY_SIZE in gpucc-sc7180 for parent clocks
    clk: qcom: Get rid of the test clock for gpucc-sc7180
    dt-bindings: clock: Fix qcom,gpucc bindings for sdm845/sc7180/msm8998
    clk: qcom: Use ARRAY_SIZE in dispcc-sc7180 for parent clocks
    clk: qcom: Get rid of the test clock for dispcc-sc7180
    clk: qcom: Get rid of fallback global names for dispcc-sc7180
    dt-bindings: clock: Fix qcom,dispcc bindings for sdm845/sc7180
    clk: qcom: rcg2: Don't crash if our parent can't be found; return an error
    clk: ls1028a: fix a dereference of pointer 'parent' before a null check
    dt-bindings: clk: qcom: Fix self-validation, split, and clean cruft
    clk: qcom: Don't overwrite 'cfg' in clk_rcg2_dfs_populate_freq()

    Linus Torvalds
     
  • Pull watchdog updates from Wim Van Sebroeck:

    - add IT8786 chipset ID

    - addition of sam9x60 compatible watchdog

    - da9062 improvements

    - fix UAF in reboot notifier handling in watchdog core code

    - other fixes and small improvements

    * tag 'linux-watchdog-5.6-rc1' of git://www.linux-watchdog.org/linux-watchdog:
    watchdog: da9062: make restart handler atomic safe
    watchdog: mtk_wdt: mt2712: Add reset controller
    watchdog: mtk_wdt: mt8183: Add reset controller
    dt-bindings: mediatek: mt2712: Add #reset-cells
    dt-bindings: mediatek: mt8183: Add #reset-cells
    dt-bindings: watchdog: da9062: add suspend disable option
    watchdog: it87_wdt: add IT8786 ID
    watchdog: dw_wdt: ping watchdog to reset countdown before start
    watchdog: fix UAF in reboot notifier handling in watchdog core code
    watchdog: cadence: Skip printing pointer value
    watchdog: qcom: Use platform_get_irq_optional() for bark irq
    watchdog: da9062: add power management ops
    watchdog: make DesignWare watchdog allow users to set bigger timeout value
    drivers: watchdog: stm32_iwdg: set WDOG_HW_RUNNING at probe
    watchdog: sama5d4_wdt: addition of sam9x60 compatible watchdog

    Linus Torvalds
     
  • Pull virtio updates from Michael Tsirkin:
    "Some bug fixes/cleanups.

    The deprecated scsi passthrough for virtio_blk is removed"

    * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
    virtio_balloon: Fix memory leaks on errors in virtballoon_probe()
    virtio-balloon: Fix memory leak when unloading while hinting is in progress
    virtio_balloon: prevent pfn array overflow
    virtio-blk: remove VIRTIO_BLK_F_SCSI support
    virtio-pci: check name when counting MSI-X vectors
    virtio-balloon: initialize all vq callbacks
    virtio-mmio: convert to devm_platform_ioremap_resource

    Linus Torvalds
     
  • The former contains nothing but a pointer to an array of the latter...

    Signed-off-by: Al Viro

    Al Viro