30 Aug, 2019

1 commit


14 Sep, 2018

1 commit

  • Scrubbing pages on initial balloon down can take some time, especially
    in nested virtualization case (nested EPT is slow). When HVM/PVH guest is
    started with memory= significantly lower than maxmem=, all the extra
    pages will be scrubbed before returning to Xen. But since most of them
    weren't used at all at that point, Xen needs to populate them first
    (from populate-on-demand pool). In nested virt case (Xen inside KVM)
    this slows down the guest boot by 15-30s with just 1.5GB needed to be
    returned to Xen.

    Add runtime parameter to enable/disable it, to allow initially disabling
    scrubbing, then enable it back during boot (for example in initramfs).
    Such usage relies on assumption that a) most pages ballooned out during
    initial boot weren't used at all, and b) even if they were, very few
    secrets are in the guest at that time (before any serious userspace
    kicks in).
    Convert CONFIG_XEN_SCRUB_PAGES to CONFIG_XEN_SCRUB_PAGES_DEFAULT (also
    enabled by default), controlling default value for the new runtime
    switch.

    Signed-off-by: Marek Marczykowski-Górecki
    Reviewed-by: Juergen Gross
    Signed-off-by: Boris Ostrovsky

    Marek Marczykowski-Górecki
     

31 Aug, 2018

1 commit

  • Pull xen fixes from Juergen Gross:

    - minor cleanup avoiding a warning when building with new gcc

    - a patch to add a new sysfs node for Xen frontend/backend drivers to
    make it easier to obtain the state of a pv device

    - two fixes for 32-bit pv-guests to avoid intermediate L1TF vulnerable
    PTEs

    * tag 'for-linus-4.19b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
    x86/xen: remove redundant variable save_pud
    xen: export device state to sysfs
    x86/pae: use 64 bit atomic xchg function in native_ptep_get_and_clear
    x86/xen: don't write ptes directly in 32-bit PV guests

    Linus Torvalds
     

29 Aug, 2018

1 commit

  • Export device state to sysfs to allow for easier get device state.

    Signed-off-by: Joe Jin
    Reviewed-by: Boris Ostrovsky
    Cc: Boris Ostrovsky
    Cc: Juergen Gross
    Cc: Konrad Rzeszutek Wilk
    Signed-off-by: Boris Ostrovsky

    Joe Jin
     

28 Aug, 2018

2 commits

  • …/git/konrad/xen into for-linus

    Pull Xen block driver fixes from Konrad:

    "Fix for flushing out persistent pages at a deterministic rate"

    * 'stable/for-jens-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen/blkback: remove unused pers_gnts_lock from struct xen_blkif_ring
    xen/blkback: move persistent grants flags to bool
    xen/blkfront: reorder tests in xlblk_init()
    xen/blkfront: cleanup stale persistent grants
    xen/blkback: don't keep persistent grants too long

    Jens Axboe
     
  • Persistent grants are allocated until a threshold per ring is being
    reached. Those grants won't be freed until the ring is being destroyed
    meaning there will be resources kept busy which might no longer be
    used.

    Instead of freeing only persistent grants until the threshold is
    reached add a timestamp and remove all persistent grants not having
    been in use for a minute.

    Signed-off-by: Juergen Gross
    Reviewed-by: Roger Pau Monné
    Signed-off-by: Konrad Rzeszutek Wilk

    Juergen Gross
     

23 Aug, 2018

2 commits

  • Pull x86 platform driver updates from Andy Shevchenko:

    - The driver for Silead touchscreen configurations has been renamed
    from silead_dmi to touchscreen_dmi since it starts supporting other
    touchscreens which require some DMI quirks

    It also gets expanded to cover cases for Chuwi Vi10, ONDA V891W,
    Connect Tablet 9, Onda V820w, and Cube KNote i1101 tablets.

    - Another bunch of changes is related to Mellanox platform code to
    allow user space to communicate with Mellanox for system control and
    monitoring purposes. The driver notifies user on hotplug device
    signal receiving.

    - ASUS WMI drivers recognize lid flip action on UX360, and correctly
    toggles airplane mode LED. In addition the keyboard backlight toggle
    gets support.

    - ThinkPad ACPI driver enables support for calculator key (on at least
    P52). It also has been fixed to support three characters model
    designators, which are used for modern laptops. Earlier the battery,
    marked as BAT1, on ThinkPad laptops has not been configured properly,
    which is fixed. On the opposite the multi-battery configurations now
    probed correctly.

    - Dell SMBIOS driver starts working on some Dell servers which do not
    support token interface. The regression with backlight detection has
    also been fixed. In order to support dock mode on some laptops, Intel
    virtual button driver has been fixed. The last but not least is the
    fix to Intel HID driver due to changes in Dell systems that prevented
    to use power button.

    * tag 'platform-drivers-x86-v4.19-1' of git://git.infradead.org/linux-platform-drivers-x86: (47 commits)
    platform/x86: acer-wmi: Silence "unsupported" message a bit
    platform/x86: intel_punit_ipc: fix build errors
    platform/x86: ideapad: Add Y520-15IKBM and Y720-15IKBM to no_hw_rfkill
    platform/x86: asus-nb-wmi: Add keymap entry for lid flip action on UX360
    platform/x86: acer-wmi: refactor function has_cap
    platform/x86: thinkpad_acpi: Fix multi-battery bug
    platform/x86: thinkpad_acpi: extend battery quirk coverage
    platform/x86: touchscreen_dmi: Add info for the Cube KNote i1101 tablet
    platform/x86: mlx-platform: Fix copy-paste error in mlxplat_init()
    platform/x86: mlx-platform: Remove unused define
    platform/x86: mlx-platform: Change mlxreg-io configuration for MSN274x systems
    Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces
    platform/x86: mlx-platform: Allow mlxreg-io driver activation for more systems
    platform/x86: mlx-platform: Add ASIC hotplug device configuration
    platform/mellanox: mlxreg-hotplug: Add hotplug hwmon uevent notification
    platform/mellanox: mlxreg-hotplug: Improve mechanism of ASIC health discovery
    platform/x86: mlx-platform: Add mlxreg-fan platform driver activation
    platform/x86: dell-laptop: Fix backlight detection
    platform/x86: toshiba_acpi: Fix defined but not used build warnings
    platform/x86: thinkpad_acpi: Support battery quirk
    ...

    Linus Torvalds
     
  • Pull f2fs updates from Jaegeuk Kim:
    "In this round, we've tuned f2fs to improve general performance by
    serializing block allocation and enhancing discard flows like fstrim
    which avoids user IO contention. And we've added fsync_mode=nobarrier
    which gives an option to user where it skips issuing cache_flush
    commands to underlying flash storage. And there are many bug fixes
    related to fuzzed images, revoked atomic writes, quota ops, and minor
    direct IO.

    Enhancements:
    - add fsync_mode=nobarrier which bypasses cache_flush command
    - enhance the discarding flow which avoids user IOs and issues in
    LBA order
    - readahead some encrypted blocks during GC
    - enable in-memory inode checksum to verify the blocks if
    F2FS_CHECK_FS is set
    - enhance nat_bits behavior
    - set -o discard by default
    - set REQ_RAHEAD to bio in ->readpages

    Bug fixes:
    - fix a corner case to corrupt atomic_writes revoking flow
    - revisit i_gc_rwsem to fix race conditions
    - fix some dio behaviors captured by xfstests
    - correct handling errors given by quota-related failures
    - add many sanity check flows to avoid fuzz test failures
    - add more error number propagation to their callers
    - fix several corner cases to continue fault injection w/ shutdown
    loop"

    * tag 'f2fs-for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (89 commits)
    f2fs: readahead encrypted block during GC
    f2fs: avoid fi->i_gc_rwsem[WRITE] lock in f2fs_gc
    f2fs: fix performance issue observed with multi-thread sequential read
    f2fs: fix to skip verifying block address for non-regular inode
    f2fs: rework fault injection handling to avoid a warning
    f2fs: support fault_type mount option
    f2fs: fix to return success when trimming meta area
    f2fs: fix use-after-free of dicard command entry
    f2fs: support discard submission error injection
    f2fs: split discard command in prior to block layer
    f2fs: wake up gc thread immediately when gc_urgent is set
    f2fs: fix incorrect range->len in f2fs_trim_fs()
    f2fs: refresh recent accessed nat entry in lru list
    f2fs: fix avoid race between truncate and background GC
    f2fs: avoid race between zero_range and background GC
    f2fs: fix to do sanity check with block address in main area v2
    f2fs: fix to do sanity check with inline flags
    f2fs: fix to reset i_gc_failures correctly
    f2fs: fix invalid memory access
    f2fs: fix to avoid broken of dnode block list
    ...

    Linus Torvalds
     

21 Aug, 2018

1 commit

  • This reverts the commit - "b93f771 - f2fs: remove writepages lock"
    to fix the drop in sequential read throughput.

    Test: ./tiotest -t 32 -d /data/tio_tmp -f 32 -b 524288 -k 1 -k 3 -L
    device: UFS

    Before -
    read throughput: 185 MB/s
    total read requests: 85177 (of these ~80000 are 4KB size requests).
    total write requests: 2546 (of these ~2208 requests are written in 512KB).

    After -
    read throughput: 758 MB/s
    total read requests: 2417 (of these ~2042 are 512KB reads).
    total write requests: 2701 (of these ~2034 requests are written in 512KB).

    Signed-off-by: Sahitya Tummala
    Reviewed-by: Chao Yu
    Signed-off-by: Jaegeuk Kim

    Jaegeuk Kim
     

19 Aug, 2018

3 commits

  • Pull char/misc driver updates from Greg KH:
    "Here is the bit set of char/misc drivers for 4.19-rc1

    There is a lot here, much more than normal, seems like everyone is
    writing new driver subsystems these days... Anyway, major things here
    are:

    - new FSI driver subsystem, yet-another-powerpc low-level hardware
    bus

    - gnss, finally an in-kernel GPS subsystem to try to tame all of the
    crazy out-of-tree drivers that have been floating around for years,
    combined with some really hacky userspace implementations. This is
    only for GNSS receivers, but you have to start somewhere, and this
    is great to see.

    Other than that, there are new slimbus drivers, new coresight drivers,
    new fpga drivers, and loads of DT bindings for all of these and
    existing drivers.

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

    * tag 'char-misc-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (255 commits)
    android: binder: Rate-limit debug and userspace triggered err msgs
    fsi: sbefifo: Bump max command length
    fsi: scom: Fix NULL dereference
    misc: mic: SCIF Fix scif_get_new_port() error handling
    misc: cxl: changed asterisk position
    genwqe: card_base: Use true and false for boolean values
    misc: eeprom: assignment outside the if statement
    uio: potential double frees if __uio_register_device() fails
    eeprom: idt_89hpesx: clean up an error pointer vs NULL inconsistency
    misc: ti-st: Fix memory leak in the error path of probe()
    android: binder: Show extra_buffers_size in trace
    firmware: vpd: Fix section enabled flag on vpd_section_destroy
    platform: goldfish: Retire pdev_bus
    goldfish: Use dedicated macros instead of manual bit shifting
    goldfish: Add missing includes to goldfish.h
    mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux
    dt-bindings: mux: add adi,adgs1408
    Drivers: hv: vmbus: Cleanup synic memory free path
    Drivers: hv: vmbus: Remove use of slow_virt_to_phys()
    Drivers: hv: vmbus: Reset the channel callback in vmbus_onoffer_rescind()
    ...

    Linus Torvalds
     
  • Pull staging and IIO updates from Greg KH:
    "Here are the big staging/iio patches for 4.19-rc1.

    Lots of churn here, with tons of cleanups happening in staging
    drivers, a removal of an old crypto driver that no one was using
    (skein), and the addition of some new IIO drivers. Also added was a
    "gasket" driver from Google that needs loads of work and the erofs
    filesystem.

    Even with adding all of the new drivers and a new filesystem, we are
    only adding about 1000 lines overall to the kernel linecount, which
    shows just how much cleanup happened, and how big the unused crypto
    driver was.

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

    * tag 'staging-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (903 commits)
    staging:rtl8192u: Remove unused macro definitions - Style
    staging:rtl8192u: Add spaces around '+' operator - Style
    staging:rtl8192u: Remove stale comment - Style
    staging: rtl8188eu: remove unused mp_custom_oid.h
    staging: fbtft: Add spaces around / - Style
    staging: fbtft: Erases some repetitive usage of function name - Style
    staging: fbtft: Adjust some empty-line problems - Style
    staging: fbtft: Removes one nesting level to help readability - Style
    staging: fbtft: Changes gamma table to define.
    staging: fbtft: A bit more information on dev_err.
    staging: fbtft: Fixes some alignment issues - Style
    staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style
    staging: rtl8188eu: remove unused array dB_Invert_Table
    staging: rtl8188eu: remove whitespace, add missing blank line
    staging: rtl8188eu: use is_multicast_ether_addr in rtw_sta_mgt.c
    staging: rtl8188eu: remove whitespace - style
    staging: rtl8188eu: cleanup block comment - style
    staging: rtl8188eu: use is_multicast_ether_addr in rtl8188eu_xmit.c
    staging: rtl8188eu: use is_multicast_ether_addr in recv_linux.c
    staging: rtlwifi: refactor rtl_get_tcb_desc
    ...

    Linus Torvalds
     
  • Pull USB/PHY updates from Greg KH:
    "Here is the big USB and phy driver patch set for 4.19-rc1.

    Nothing huge but there was a lot of work that happened this
    development cycle:

    - lots of type-c work, with drivers graduating out of staging, and
    displayport support being added.

    - new PHY drivers

    - the normal collection of gadget driver updates and fixes

    - code churn to work on the urb handling path, using irqsave()
    everywhere in anticipation of making this codepath a lot simpler in
    the future.

    - usbserial driver fixes and reworks

    - other misc changes

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

    * tag 'usb-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (159 commits)
    USB: serial: pl2303: add a new device id for ATEN
    usb: renesas_usbhs: Kconfig: convert to SPDX identifiers
    usb: dwc3: gadget: Check MaxPacketSize from descriptor
    usb: dwc2: Turn on uframe_sched on "stm32f4x9_fsotg" platforms
    usb: dwc2: Turn on uframe_sched on "amlogic" platforms
    usb: dwc2: Turn on uframe_sched on "his" platforms
    usb: dwc2: Turn on uframe_sched on "bcm" platforms
    usb: dwc2: gadget: ISOC's starting flow improvement
    usb: dwc2: Make dwc2_readl/writel functions endianness-agnostic.
    usb: dwc3: core: Enable AutoRetry feature in the controller
    usb: dwc3: Set default mode for dwc_usb31
    usb: gadget: udc: renesas_usb3: Add register of usb role switch
    usb: dwc2: replace ioread32/iowrite32_rep with dwc2_readl/writel_rep
    usb: dwc2: Modify dwc2_readl/writel functions prototype
    usb: dwc3: pci: Intel Merrifield can be host
    usb: dwc3: pci: Supply device properties via driver data
    arm64: dts: dwc3: description of incr burst type
    usb: dwc3: Enable undefined length INCR burst type
    usb: dwc3: add global soc bus configuration reg0
    usb: dwc3: Describe 'wakeup_work' field of struct dwc3_pci
    ...

    Linus Torvalds
     

18 Aug, 2018

1 commit

  • Pull powerpc updates from Michael Ellerman:
    "Notable changes:

    - A fix for a bug in our page table fragment allocator, where a page
    table page could be freed and reallocated for something else while
    still in use, leading to memory corruption etc. The fix reuses
    pt_mm in struct page (x86 only) for a powerpc only refcount.

    - Fixes to our pkey support. Several are user-visible changes, but
    bring us in to line with x86 behaviour and/or fix outright bugs.
    Thanks to Florian Weimer for reporting many of these.

    - A series to improve the hvc driver & related OPAL console code,
    which have been seen to cause hardlockups at times. The hvc driver
    changes in particular have been in linux-next for ~month.

    - Increase our MAX_PHYSMEM_BITS to 128TB when SPARSEMEM_VMEMMAP=y.

    - Remove Power8 DD1 and Power9 DD1 support, neither chip should be in
    use anywhere other than as a paper weight.

    - An optimised memcmp implementation using Power7-or-later VMX
    instructions

    - Support for barrier_nospec on some NXP CPUs.

    - Support for flushing the count cache on context switch on some IBM
    CPUs (controlled by firmware), as a Spectre v2 mitigation.

    - A series to enhance the information we print on unhandled signals
    to bring it into line with other arches, including showing the
    offending VMA and dumping the instructions around the fault.

    Thanks to: Aaro Koskinen, Akshay Adiga, Alastair D'Silva, Alexey
    Kardashevskiy, Alexey Spirkov, Alistair Popple, Andrew Donnellan,
    Aneesh Kumar K.V, Anju T Sudhakar, Arnd Bergmann, Bartosz Golaszewski,
    Benjamin Herrenschmidt, Bharat Bhushan, Bjoern Noetel, Boqun Feng,
    Breno Leitao, Bryant G. Ly, Camelia Groza, Christophe Leroy, Christoph
    Hellwig, Cyril Bur, Dan Carpenter, Daniel Klamt, Darren Stevens, Dave
    Young, David Gibson, Diana Craciun, Finn Thain, Florian Weimer,
    Frederic Barrat, Gautham R. Shenoy, Geert Uytterhoeven, Geoff Levand,
    Guenter Roeck, Gustavo Romero, Haren Myneni, Hari Bathini, Joel
    Stanley, Jonathan Neuschäfer, Kees Cook, Madhavan Srinivasan, Mahesh
    Salgaonkar, Markus Elfring, Mathieu Malaterre, Mauro S. M. Rodrigues,
    Michael Hanselmann, Michael Neuling, Michael Schmitz, Mukesh Ojha,
    Murilo Opsfelder Araujo, Nicholas Piggin, Parth Y Shah, Paul
    Mackerras, Paul Menzel, Ram Pai, Randy Dunlap, Rashmica Gupta, Reza
    Arbab, Rodrigo R. Galvao, Russell Currey, Sam Bobroff, Scott Wood,
    Shilpasri G Bhat, Simon Guo, Souptick Joarder, Stan Johnson, Thiago
    Jung Bauermann, Tyrel Datwyler, Vaibhav Jain, Vasant Hegde, Venkat
    Rao, zhong jiang"

    * tag 'powerpc-4.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (234 commits)
    powerpc/mm/book3s/radix: Add mapping statistics
    powerpc/uaccess: Enable get_user(u64, *p) on 32-bit
    powerpc/mm/hash: Remove unnecessary do { } while(0) loop
    powerpc/64s: move machine check SLB flushing to mm/slb.c
    powerpc/powernv/idle: Fix build error
    powerpc/mm/tlbflush: update the mmu_gather page size while iterating address range
    powerpc/mm: remove warning about ‘type’ being set
    powerpc/32: Include setup.h header file to fix warnings
    powerpc: Move `path` variable inside DEBUG_PROM
    powerpc/powermac: Make some functions static
    powerpc/powermac: Remove variable x that's never read
    cxl: remove a dead branch
    powerpc/powermac: Add missing include of header pmac.h
    powerpc/kexec: Use common error handling code in setup_new_fdt()
    powerpc/xmon: Add address lookup for percpu symbols
    powerpc/mm: remove huge_pte_offset_and_shift() prototype
    powerpc/lib: Use patch_site to patch copy_32 functions once cache is enabled
    powerpc/pseries: Fix endianness while restoring of r3 in MCE handler.
    powerpc/fadump: merge adjacent memory ranges to reduce PT_LOAD segements
    powerpc/fadump: handle crash memory ranges array index overflow
    ...

    Linus Torvalds
     

17 Aug, 2018

1 commit

  • Pull pci updates from Bjorn Helgaas:

    - Decode AER errors with names similar to "lspci" (Tyler Baicar)

    - Expose AER statistics in sysfs (Rajat Jain)

    - Clear AER status bits selectively based on the type of recovery (Oza
    Pawandeep)

    - Honor "pcie_ports=native" even if HEST sets FIRMWARE_FIRST (Alexandru
    Gagniuc)

    - Don't clear AER status bits if we're using the "Firmware-First"
    strategy where firmware owns the registers (Alexandru Gagniuc)

    - Use sysfs_match_string() to simplify ASPM sysfs parsing (Andy
    Shevchenko)

    - Remove unnecessary includes of (Bjorn Helgaas)

    - Defer DPC event handling to work queue (Keith Busch)

    - Use threaded IRQ for DPC bottom half (Keith Busch)

    - Print AER status while handling DPC events (Keith Busch)

    - Work around IDT switch ACS Source Validation erratum (James
    Puthukattukaran)

    - Emit diagnostics for all cases of PCIe Link downtraining (Links
    operating slower than they're capable of) (Alexandru Gagniuc)

    - Skip VFs when configuring Max Payload Size (Myron Stowe)

    - Reduce Root Port Max Payload Size if necessary when hot-adding a
    device below it (Myron Stowe)

    - Simplify SHPC existence/permission checks (Bjorn Helgaas)

    - Remove hotplug sample skeleton driver (Lukas Wunner)

    - Convert pciehp to threaded IRQ handling (Lukas Wunner)

    - Improve pciehp tolerance of missed events and initially unstable
    links (Lukas Wunner)

    - Clear spurious pciehp events on resume (Lukas Wunner)

    - Add pciehp runtime PM support, including for Thunderbolt controllers
    (Lukas Wunner)

    - Support interrupts from pciehp bridges in D3hot (Lukas Wunner)

    - Mark fall-through switch cases before enabling -Wimplicit-fallthrough
    (Gustavo A. R. Silva)

    - Move DMA-debug PCI init from arch code to PCI core (Christoph
    Hellwig)

    - Fix pci_request_irq() usage of IRQF_ONESHOT when no handler is
    supplied (Heiner Kallweit)

    - Unify PCI and DMA direction #defines (Shunyong Yang)

    - Add PCI_DEVICE_DATA() macro (Andy Shevchenko)

    - Check for VPD completion before checking for timeout (Bert Kenward)

    - Limit Netronome NFP5000 config space size to work around erratum
    (Jakub Kicinski)

    - Set IRQCHIP_ONESHOT_SAFE for PCI MSI irqchips (Heiner Kallweit)

    - Document ACPI description of PCI host bridges (Bjorn Helgaas)

    - Add "pci=disable_acs_redir=" parameter to disable ACS redirection for
    peer-to-peer DMA support (we don't have the peer-to-peer support yet;
    this is just one piece) (Logan Gunthorpe)

    - Clean up devm_of_pci_get_host_bridge_resources() resource allocation
    (Jan Kiszka)

    - Fixup resizable BARs after suspend/resume (Christian König)

    - Make "pci=earlydump" generic (Sinan Kaya)

    - Fix ROM BAR access routines to stay in bounds and check for signature
    correctly (Rex Zhu)

    - Add DMA alias quirk for Microsemi Switchtec NTB (Doug Meyer)

    - Expand documentation for pci_add_dma_alias() (Logan Gunthorpe)

    - To avoid bus errors, enable PASID only if entire path supports
    End-End TLP prefixes (Sinan Kaya)

    - Unify slot and bus reset functions and remove hotplug knowledge from
    callers (Sinan Kaya)

    - Add Function-Level Reset quirks for Intel and Samsung NVMe devices to
    fix guest reboot issues (Alex Williamson)

    - Add function 1 DMA alias quirk for Marvell 88SS9183 PCIe SSD
    Controller (Bjorn Helgaas)

    - Remove Xilinx AXI-PCIe host bridge arch dependency (Palmer Dabbelt)

    - Remove Aardvark outbound window configuration (Evan Wang)

    - Fix Aardvark bridge window sizing issue (Zachary Zhang)

    - Convert Aardvark to use pci_host_probe() to reduce code duplication
    (Thomas Petazzoni)

    - Correct the Cadence cdns_pcie_writel() signature (Alan Douglas)

    - Add Cadence support for optional generic PHYs (Alan Douglas)

    - Add Cadence power management ops (Alan Douglas)

    - Remove redundant variable from Cadence driver (Colin Ian King)

    - Add Kirin MSI support (Xiaowei Song)

    - Drop unnecessary root_bus_nr setting from exynos, imx6, keystone,
    armada8k, artpec6, designware-plat, histb, qcom, spear13xx (Shawn
    Guo)

    - Move link notification settings from DesignWare core to individual
    drivers (Gustavo Pimentel)

    - Add endpoint library MSI-X interfaces (Gustavo Pimentel)

    - Correct signature of endpoint library IRQ interfaces (Gustavo
    Pimentel)

    - Add DesignWare endpoint library MSI-X callbacks (Gustavo Pimentel)

    - Add endpoint library MSI-X test support (Gustavo Pimentel)

    - Remove unnecessary GFP_ATOMIC from Hyper-V "new child" allocation
    (Jia-Ju Bai)

    - Add more devices to Broadcom PAXC quirk (Ray Jui)

    - Work around corrupted Broadcom PAXC config space to enable SMMU and
    GICv3 ITS (Ray Jui)

    - Disable MSI parsing to work around broken Broadcom PAXC logic in some
    devices (Ray Jui)

    - Hide unconfigured functions to work around a Broadcom PAXC defect
    (Ray Jui)

    - Lower iproc log level to reduce console output during boot (Ray Jui)

    - Fix mobiveil iomem/phys_addr_t type usage (Lorenzo Pieralisi)

    - Fix mobiveil missing include file (Lorenzo Pieralisi)

    - Add mobiveil Kconfig/Makefile support (Lorenzo Pieralisi)

    - Fix mvebu I/O space remapping issues (Thomas Petazzoni)

    - Use generic pci_host_bridge in mvebu instead of ARM-specific API
    (Thomas Petazzoni)

    - Whitelist VMD devices with fast interrupt handlers to avoid sharing
    vectors with slow handlers (Keith Busch)

    * tag 'pci-v4.19-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (153 commits)
    PCI/AER: Don't clear AER bits if error handling is Firmware-First
    PCI: Limit config space size for Netronome NFP5000
    PCI/MSI: Set IRQCHIP_ONESHOT_SAFE for PCI-MSI irqchips
    PCI/VPD: Check for VPD access completion before checking for timeout
    PCI: Add PCI_DEVICE_DATA() macro to fully describe device ID entry
    PCI: Match Root Port's MPS to endpoint's MPSS as necessary
    PCI: Skip MPS logic for Virtual Functions (VFs)
    PCI: Add function 1 DMA alias quirk for Marvell 88SS9183
    PCI: Check for PCIe Link downtraining
    PCI: Add ACS Redirect disable quirk for Intel Sunrise Point
    PCI: Add device-specific ACS Redirect disable infrastructure
    PCI: Convert device-specific ACS quirks from NULL termination to ARRAY_SIZE
    PCI: Add "pci=disable_acs_redir=" parameter for peer-to-peer support
    PCI: Allow specifying devices using a base bus and path of devfns
    PCI: Make specifying PCI devices in kernel parameters reusable
    PCI: Hide ACS quirk declarations inside PCI core
    PCI: Delay after FLR of Intel DC P3700 NVMe
    PCI: Disable Samsung SM961/PM961 NVMe before FLR
    PCI: Export pcie_has_flr()
    PCI: mvebu: Drop bogus comment above mvebu_pcie_map_registers()
    ...

    Linus Torvalds
     

16 Aug, 2018

1 commit

  • Pull networking updates from David Miller:
    "Highlights:

    - Gustavo A. R. Silva keeps working on the implicit switch fallthru
    changes.

    - Support 802.11ax High-Efficiency wireless in cfg80211 et al, From
    Luca Coelho.

    - Re-enable ASPM in r8169, from Kai-Heng Feng.

    - Add virtual XFRM interfaces, which avoids all of the limitations of
    existing IPSEC tunnels. From Steffen Klassert.

    - Convert GRO over to use a hash table, so that when we have many
    flows active we don't traverse a long list during accumluation.

    - Many new self tests for routing, TC, tunnels, etc. Too many
    contributors to mention them all, but I'm really happy to keep
    seeing this stuff.

    - Hardware timestamping support for dpaa_eth/fsl-fman from Yangbo Lu.

    - Lots of cleanups and fixes in L2TP code from Guillaume Nault.

    - Add IPSEC offload support to netdevsim, from Shannon Nelson.

    - Add support for slotting with non-uniform distribution to netem
    packet scheduler, from Yousuk Seung.

    - Add UDP GSO support to mlx5e, from Boris Pismenny.

    - Support offloading of Team LAG in NFP, from John Hurley.

    - Allow to configure TX queue selection based upon RX queue, from
    Amritha Nambiar.

    - Support ethtool ring size configuration in aquantia, from Anton
    Mikaev.

    - Support DSCP and flowlabel per-transport in SCTP, from Xin Long.

    - Support list based batching and stack traversal of SKBs, this is
    very exciting work. From Edward Cree.

    - Busyloop optimizations in vhost_net, from Toshiaki Makita.

    - Introduce the ETF qdisc, which allows time based transmissions. IGB
    can offload this in hardware. From Vinicius Costa Gomes.

    - Add parameter support to devlink, from Moshe Shemesh.

    - Several multiplication and division optimizations for BPF JIT in
    nfp driver, from Jiong Wang.

    - Lots of prepatory work to make more of the packet scheduler layer
    lockless, when possible, from Vlad Buslov.

    - Add ACK filter and NAT awareness to sch_cake packet scheduler, from
    Toke Høiland-Jørgensen.

    - Support regions and region snapshots in devlink, from Alex Vesker.

    - Allow to attach XDP programs to both HW and SW at the same time on
    a given device, with initial support in nfp. From Jakub Kicinski.

    - Add TLS RX offload and support in mlx5, from Ilya Lesokhin.

    - Use PHYLIB in r8169 driver, from Heiner Kallweit.

    - All sorts of changes to support Spectrum 2 in mlxsw driver, from
    Ido Schimmel.

    - PTP support in mv88e6xxx DSA driver, from Andrew Lunn.

    - Make TCP_USER_TIMEOUT socket option more accurate, from Jon
    Maxwell.

    - Support for templates in packet scheduler classifier, from Jiri
    Pirko.

    - IPV6 support in RDS, from Ka-Cheong Poon.

    - Native tproxy support in nf_tables, from Máté Eckl.

    - Maintain IP fragment queue in an rbtree, but optimize properly for
    in-order frags. From Peter Oskolkov.

    - Improvde handling of ACKs on hole repairs, from Yuchung Cheng"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1996 commits)
    bpf: test: fix spelling mistake "REUSEEPORT" -> "REUSEPORT"
    hv/netvsc: Fix NULL dereference at single queue mode fallback
    net: filter: mark expected switch fall-through
    xen-netfront: fix warn message as irq device name has '/'
    cxgb4: Add new T5 PCI device ids 0x50af and 0x50b0
    net: dsa: mv88e6xxx: missing unlock on error path
    rds: fix building with IPV6=m
    inet/connection_sock: prefer _THIS_IP_ to current_text_addr
    net: dsa: mv88e6xxx: bitwise vs logical bug
    net: sock_diag: Fix spectre v1 gadget in __sock_diag_cmd()
    ieee802154: hwsim: using right kind of iteration
    net: hns3: Add vlan filter setting by ethtool command -K
    net: hns3: Set tx ring' tc info when netdev is up
    net: hns3: Remove tx ring BD len register in hns3_enet
    net: hns3: Fix desc num set to default when setting channel
    net: hns3: Fix for phy link issue when using marvell phy driver
    net: hns3: Fix for information of phydev lost problem when down/up
    net: hns3: Fix for command format parsing error in hclge_is_all_function_id_zero
    net: hns3: Add support for serdes loopback selftest
    bnxt_en: take coredump_record structure off stack
    ...

    Linus Torvalds
     

15 Aug, 2018

2 commits

  • Pull regulator updates from Mark Brown:
    "The biggest set of changes in here is the addition of the Qualcomm
    RPMH driver. As well as the regualtor driver itself being quite large
    due to the usual involved Qualcomm regulator stuff there's also some
    code shared with the arm-soc tree, a bus driver required to
    communicate with the hardware that actually winds up being much larger
    than the regulator driver itself and a LLCC driver that was part of
    the same signed tag used with the arm-soc tree.

    Other than that it's a fairly standard and quiet release, highlights
    include:

    - Addition of device links from regulator consumers to their
    regulators, helping the core avoid dependency issues during
    suspend.

    - Support for the entertainingly innovative suspend implementation in
    the BD9571MWV.

    - Support for switch regulators on the PFUZE100, this required two
    goes due to backwards compatibility issues with old DTs that were
    discovered.

    - Support for Freescale PFUZE3001 and SocioNext UniPhier.

    - The aforementioned Qualcomm RPMH driver together with the driver
    changes required to support it"

    * tag 'regulator-v4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (52 commits)
    regulator: add QCOM RPMh regulator driver
    regulator: dt-bindings: add QCOM RPMh regulator bindings
    regulator: samsung: Add SPDX license identifiers
    regulator: maxim: Add SPDX license identifiers
    regulator: bd71837: adobt MFD changes to regulator driver
    regulator: tps65217: Fix NULL pointer dereference on probe
    regulator: Add support for CPCAP regulators on Motorola Xoom devices.
    regulator: Add sw2_sw4 voltage table to cpcap regulator.
    regulator: bd9571mwv: Make symbol 'dev_attr_backup_mode' static
    regulator: pfuze100: add support to en-/disable switch regulators
    regulator: pfuze100: add optional disable switch-regulators binding
    soc: qcom: rmtfs-mem: fix memleak in probe error paths
    soc: qcom: llc-slice: Add missing MODULE_LICENSE()
    drivers: qcom: rpmh: fix unwanted error check for get_tcs_of_type()
    drivers: qcom: rpmh-rsc: fix the loop index check in get_req_from_tcs
    firmware: qcom: scm: add a dummy qcom_scm_assign_mem()
    drivers: qcom: rpmh-rsc: Check cmd_db_ready() to help children
    drivers: qcom: rpmh-rsc: allow active requests from wake TCS
    drivers: qcom: rpmh: add support for batch RPMH request
    drivers: qcom: rpmh: allow requests to be sent asynchronously
    ...

    Linus Torvalds
     
  • Pull block updates from Jens Axboe:
    "First pull request for this merge window, there will also be a
    followup request with some stragglers.

    This pull request contains:

    - Fix for a thundering heard issue in the wbt block code (Anchal
    Agarwal)

    - A few NVMe pull requests:
    * Improved tracepoints (Keith)
    * Larger inline data support for RDMA (Steve Wise)
    * RDMA setup/teardown fixes (Sagi)
    * Effects log suppor for NVMe target (Chaitanya Kulkarni)
    * Buffered IO suppor for NVMe target (Chaitanya Kulkarni)
    * TP4004 (ANA) support (Christoph)
    * Various NVMe fixes

    - Block io-latency controller support. Much needed support for
    properly containing block devices. (Josef)

    - Series improving how we handle sense information on the stack
    (Kees)

    - Lightnvm fixes and updates/improvements (Mathias/Javier et al)

    - Zoned device support for null_blk (Matias)

    - AIX partition fixes (Mauricio Faria de Oliveira)

    - DIF checksum code made generic (Max Gurtovoy)

    - Add support for discard in iostats (Michael Callahan / Tejun)

    - Set of updates for BFQ (Paolo)

    - Removal of async write support for bsg (Christoph)

    - Bio page dirtying and clone fixups (Christoph)

    - Set of bcache fix/changes (via Coly)

    - Series improving blk-mq queue setup/teardown speed (Ming)

    - Series improving merging performance on blk-mq (Ming)

    - Lots of other fixes and cleanups from a slew of folks"

    * tag 'for-4.19/block-20180812' of git://git.kernel.dk/linux-block: (190 commits)
    blkcg: Make blkg_root_lookup() work for queues in bypass mode
    bcache: fix error setting writeback_rate through sysfs interface
    null_blk: add lock drop/acquire annotation
    Blk-throttle: reduce tail io latency when iops limit is enforced
    block: paride: pd: mark expected switch fall-throughs
    block: Ensure that a request queue is dissociated from the cgroup controller
    block: Introduce blk_exit_queue()
    blkcg: Introduce blkg_root_lookup()
    block: Remove two superfluous #include directives
    blk-mq: count the hctx as active before allocating tag
    block: bvec_nr_vecs() returns value for wrong slab
    bcache: trivial - remove tailing backslash in macro BTREE_FLAG
    bcache: make the pr_err statement used for ENOENT only in sysfs_attatch section
    bcache: set max writeback rate when I/O request is idle
    bcache: add code comments for bset.c
    bcache: fix mistaken comments in request.c
    bcache: fix mistaken code comments in bcache.h
    bcache: add a comment in super.c
    bcache: avoid unncessary cache prefetch bch_btree_node_get()
    bcache: display rate debug parameters to 0 when writeback is not running
    ...

    Linus Torvalds
     

10 Aug, 2018

1 commit


02 Aug, 2018

1 commit


30 Jul, 2018

1 commit

  • Felipe writes:

    usb: changes for v4.19

    Not a big pull request with only 37 non-merge commits, most of which
    are touching dwc2 (74% of the changes).

    The most important changes are dwc2's support for uframe scheduling
    and its endian-agnostic readl/writel wrappers.

    From dwc3 side we have a special new glue layer for Synopsys HAPS
    which will help Synopsys running FPGA validation using our upstream
    driver. We also have the beginnings of dual-role support for Intel
    Merrifield platform.

    Apart from these, just a series of non-critical changes.

    Greg Kroah-Hartman
     

29 Jul, 2018

1 commit


26 Jul, 2018

1 commit

  • When utilising multiple instantiations of a UVC gadget on a composite
    device, there is no clear method to link a particular configuration to
    its respective video node.

    Provide a means for identifying the correct video node by exposing the
    name of the function configuration through sysfs.

    Reviewed-by: Laurent Pinchart
    Signed-off-by: Kieran Bingham
    Signed-off-by: Felipe Balbi

    Kieran Bingham
     

24 Jul, 2018

3 commits


21 Jul, 2018

1 commit

  • Add new channel type support for phase.

    This channel may be used by Time-of-flight sensors to express the
    phase difference between emitted and received signals. Those sensor
    will then use the phase shift of return signals to approximate the
    distance to objects.

    Signed-off-by: Mathieu Othacehe
    Signed-off-by: Jonathan Cameron

    Mathieu Othacehe
     

20 Jul, 2018

2 commits


18 Jul, 2018

2 commits

  • Add tracking of REQ_OP_DISCARD ios to the partition statistics and
    append them to the various stat files in /sys as well as
    /proc/diskstats. These are tracked with the same four stats as reads
    and writes:

    Number of discard ios completed.
    Number of discard ios merged
    Number of discard sectors completed
    Milliseconds spent on discard requests

    This is done via adding a new STAT_DISCARD define to genhd.h and then
    using it to index that stat field for discard requests.

    tj: Refreshed on top of v4.17 and other previous updates.

    Signed-off-by: Michael Callahan
    Signed-off-by: Tejun Heo
    Cc: Andy Newell
    Signed-off-by: Jens Axboe

    Michael Callahan
     
  • Signed-off-by: Geert Uytterhoeven
    Acked-by: Pavel Machek
    Reviewed-by: Niklas Söderlund
    Signed-off-by: Mark Brown

    Geert Uytterhoeven
     

15 Jul, 2018

6 commits

  • User Accelerated Function Unit sub feature exposes the MMIO region of
    the AFU. After valid PR bitstream is programmed and the port is enabled,
    then this MMIO region could be accessed.

    This patch adds support to enumerate the AFU MMIO region and expose it
    to userspace via mmap file operation. Below interfaces are exposed to user:

    Sysfs interface:
    * /sys/class/fpga_region///afu_id
    Read-only. Indicate which PR bitstream is programmed to this AFU.

    Ioctl interfaces:
    * DFL_FPGA_PORT_GET_INFO
    Provide info to userspace on the number of supported region.
    Only UAFU region is supported now.

    * DFL_FPGA_PORT_GET_REGION_INFO
    Provide region information, including access permission, region size,
    offset from the start of device fd.

    Signed-off-by: Tim Whisonant
    Signed-off-by: Enno Luebbers
    Signed-off-by: Shiva Rao
    Signed-off-by: Christopher Rauer
    Signed-off-by: Xiao Guangrong
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Greg Kroah-Hartman

    Xiao Guangrong
     
  • The port header register set is always present for port, it is mainly
    for capability, control and status of the ports that AFU connected to.

    This patch implements header sub feature support. Below user interfaces
    are created by this patch.

    Sysfs interface:
    * /sys/class/fpga_region///id
    Read-only. Port ID.

    Ioctl interface:
    * DFL_FPGA_PORT_RESET
    Reset the FPGA Port and its AFU.

    Signed-off-by: Tim Whisonant
    Signed-off-by: Enno Luebbers
    Signed-off-by: Shiva Rao
    Signed-off-by: Christopher Rauer
    Signed-off-by: Xiao Guangrong
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • The Header Register set is always present for FPGA Management Engine (FME),
    this patch implements init and uinit function for header sub feature and
    introduces several read-only sysfs interfaces for the capability and
    status.

    Sysfs interfaces:
    * /sys/class/fpga_region///ports_num
    Read-only. Number of ports implemented

    * /sys/class/fpga_region///bitstream_id
    Read-only. Bitstream (static FPGA region) identifier number. It contains
    the detailed version and other information of this static FPGA region.

    * /sys/class/fpga_region///bitstream_metadata
    Read-only. Bitstream (static FPGA region) meta data. It contains the
    synthesis date, seed and other information of this static FPGA region.

    Signed-off-by: Tim Whisonant
    Signed-off-by: Enno Luebbers
    Signed-off-by: Shiva Rao
    Signed-off-by: Christopher Rauer
    Signed-off-by: Kang Luwei
    Signed-off-by: Xiao Guangrong
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Greg Kroah-Hartman

    Kang Luwei
     
  • This patch introduces a compat_id pointer member and sysfs interface
    for each fpga region, similar as compat_id for fpga manager, it allows
    applications to read the per region compat_id for compatibility
    checking before other actions on this fpga-region (e.g. PR).

    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • This patch adds status sysfs interface for fpga manager, it's a
    read only interface which allows user to get fpga manager status,
    including full/partial reconfiguration error and other status
    information. It adds a status callback to fpga_manager_ops too,
    allows each fpga_manager driver to define its own method to
    collect latest status from hardware.

    The following sysfs file is created:
    * /sys/class/fpga_manager//status
    Return status of fpga manager, including reconfiguration errors.

    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • Now that we can dynamically switch between contiguous memory and
    SG table depending on the trace buffer size, provide the support
    for selecting an appropriate buffer size.

    Cc: Mathieu Poirier
    Signed-off-by: Suzuki K Poulose
    Acked-by: Rob Herring
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Suzuki K Poulose
     

13 Jul, 2018

1 commit

  • Introduce the 'l1tf=' kernel command line option to allow for boot-time
    switching of mitigation that is used on processors affected by L1TF.

    The possible values are:

    full
    Provides all available mitigations for the L1TF vulnerability. Disables
    SMT and enables all mitigations in the hypervisors. SMT control via
    /sys/devices/system/cpu/smt/control is still possible after boot.
    Hypervisors will issue a warning when the first VM is started in
    a potentially insecure configuration, i.e. SMT enabled or L1D flush
    disabled.

    full,force
    Same as 'full', but disables SMT control. Implies the 'nosmt=force'
    command line option. sysfs control of SMT and the hypervisor flush
    control is disabled.

    flush
    Leaves SMT enabled and enables the conditional hypervisor mitigation.
    Hypervisors will issue a warning when the first VM is started in a
    potentially insecure configuration, i.e. SMT enabled or L1D flush
    disabled.

    flush,nosmt
    Disables SMT and enables the conditional hypervisor mitigation. SMT
    control via /sys/devices/system/cpu/smt/control is still possible
    after boot. If SMT is reenabled or flushing disabled at runtime
    hypervisors will issue a warning.

    flush,nowarn
    Same as 'flush', but hypervisors will not warn when
    a VM is started in a potentially insecure configuration.

    off
    Disables hypervisor mitigations and doesn't emit any warnings.

    Default is 'flush'.

    Let KVM adhere to these semantics, which means:

    - 'lt1f=full,force' : Performe L1D flushes. No runtime control
    possible.

    - 'l1tf=full'
    - 'l1tf-flush'
    - 'l1tf=flush,nosmt' : Perform L1D flushes and warn on VM start if
    SMT has been runtime enabled or L1D flushing
    has been run-time enabled

    - 'l1tf=flush,nowarn' : Perform L1D flushes and no warnings are emitted.

    - 'l1tf=off' : L1D flushes are not performed and no warnings
    are emitted.

    KVM can always override the L1D flushing behavior using its 'vmentry_l1d_flush'
    module parameter except when lt1f=full,force is set.

    This makes KVM's private 'nosmt' option redundant, and as it is a bit
    non-systematic anyway (this is something to control globally, not on
    hypervisor level), remove that option.

    Add the missing Documentation entry for the l1tf vulnerability sysfs file
    while at it.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Thomas Gleixner
    Tested-by: Jiri Kosina
    Reviewed-by: Greg Kroah-Hartman
    Reviewed-by: Josh Poimboeuf
    Link: https://lkml.kernel.org/r/20180713142323.202758176@linutronix.de

    Jiri Kosina
     

03 Jul, 2018

1 commit

  • The ME FW version is constantly used by detection and update tools.
    To improve the reliability and simplify these tools provide
    a sysfs interface to access version of the platform ME firmware
    in the following format:
    :....
    There can be up to three such blocks for different FW components.

    Signed-off-by: Alexander Usyskin
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Alexander Usyskin
     

02 Jul, 2018

2 commits