Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lineage-17.1_update #8

Merged
merged 7 commits into from
Oct 15, 2020

Commits on Sep 15, 2020

  1. qpnp-fg-gen3: Fix fg_sram_write() call in clear_cycle_counter()

    This not only passes the incorrect size to fg_sram_write(), but also
    uses incorrect syntax to pass the pointer of the payload to be written.
    `chip->cyc_ctr.count` is defined as an array so there shouldn't be an
    ampersand in front of it to get its address. We can also get its size
    with just a plain sizeof().
    
    Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
    
    qpnp-fg-gen3: Fix fg_sram_write() call in repeated clear_cycle_counter()
    
    Signed-off-by: Andrea Pucci <linckandrea01@gmail.com>
    kerneltoast authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    70be84d View commit details
    Browse the repository at this point in the history
  2. fs: aio: Optimization for SSD-only machines

    If the system is running on NAND-based storage, without
    mechanical drives, we don't need to manage the plug/unplug
    of the actual block because we don't have to count the
    time for the head to reach that disk physical location.
    Solid state storage have no head to move and no location
    to "physically reach", as the block is being retrieved
    in the exact moment we request it.
    
    The do_io_submit function expects the storage device to
    be ready to deliver the block (aka - next block of the
    queue to process), therefore it's safe to remove useless
    waits on systems using only that type of storage.
    
    This patch adds a configuration option to enable the
    SSD-only optimization for the Linux Asynchronous IO
    framework.
    Enabling it on systems with rotational storage (or mixed)
    WILL hit storage performance A LOT.
    kholk authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    56c1037 View commit details
    Browse the repository at this point in the history
  3. FROMLIST: HID: nintendo: add nintendo switch controller driver

    The hid-nintendo driver supports the Nintendo Switch Pro Controllers and
    the Joy-Cons. The Pro Controllers can be used over USB or Bluetooth.
    
    The Joy-Cons each create their own, independent input devices, so it is
    up to userspace to combine them if desired.
    
    Signed-off-by: Daniel J. Ogorchock <djogorchock@gmail.com>
    
    Test: tested via custom test app
    Test: atest NintendoSwitchProTest
    
    Bug: 135136477
    Link: https://patchwork.kernel.org/patch/11312547/
    Link: https://lore.kernel.org/linux-input/20191230012720.2368987-2-djogorchock@gmail.com/
    Change-Id: I179da1092faedc2ad25336224cf5ec8ff00e0d3f
    Signed-off-by: Siarhei Vishniakou <svv@google.com>
    (cherry picked from commit 8b094ebb4fc40c3381be4c495eea161add5d105b)
    (cherry picked from commit 961f850fe8d417ce9037aa29271572fd924c049d)
    (cherry picked from commit c055cb8584c05fae2d5d293dd2d0a868bb098551)
    (cherry picked from commit b40ee0f11a53527058f89103ec9109de6445c864)
    (cherry picked from commit 98b27ddda96e94b8dfdf169cf6a24fcc7f9515d0)
    Signed-off-by: engstk <eng.stk@sapo.pt>
    DanielOgorchock authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    0ea0782 View commit details
    Browse the repository at this point in the history
  4. FROMLIST: Add Asus Gamepad descriptor fix

    Asus Gamepad descriptor got broken by a recent kernel update. Fix it
    here by overriding with a custom value.
    
    (cherry-picked from https://www.spinics.net/lists/linux-input/msg63312.html)
    
    Bug: 140010996
    
    Test: atest AsusGamepadTestCase
    Signed-Off-By: Siarhei Vishniakou <svv@google.com>
    Change-Id: I79bbb4a70c3b4be77397391de5e971a97d2ef831
    (cherry picked from commit e123a917557177152b2fce6c55bf3524d1929f1e)
    vishniakou authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    7291e08 View commit details
    Browse the repository at this point in the history
  5. arm64: support __int128 on gcc 5+

    Versions of gcc prior to gcc 5 emitted a __multi3 function call when
    dealing with TI types, resulting in failures when trying to link to
    libgcc, and more generally, bad performance. However, since gcc 5,
    the compiler supports actually emitting fast instructions, which means
    we can at long last enable this option and receive the speedups.
    
    The gcc commit that added proper Aarch64 support is:
    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d1ae7bb994f49316f6f63e6173f2931e837a351d
    This commit appears to be part of the gcc 5 release.
    
    There are still a few instructions, __ashlti3 and __ashrti3, which
    require libgcc, which is fine. Rather than linking to libgcc, we
    simply provide them ourselves, since they're not that complicated.
    
    Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
    Signed-off-by: Will Deacon <will.deacon@arm.com>
    Signed-off-by: engstk <eng.stk@sapo.pt>
    zx2c4 authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    ef4886c View commit details
    Browse the repository at this point in the history
  6. arm64: support __int128 with clang

    Commit fb87227 ("arm64: support __int128 on gcc 5+") added support
    for arm64 __int128 with gcc with a version-conditional, but neglected to
    enable this for clang, which in fact appears to support aarch64 __int128.
    This commit therefore enables it if the compiler is clang, using the
    same type of makefile conditional used elsewhere in the tree.
    
    Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
    Signed-off-by: Will Deacon <will.deacon@arm.com>
    Signed-off-by: engstk <eng.stk@sapo.pt>
    zx2c4 authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    3dbb354 View commit details
    Browse the repository at this point in the history
  7. arm64: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig

    This becomes much neater in Kconfig.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Acked-by: Will Deacon <will.deacon@arm.com>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    Signed-off-by: engstk <eng.stk@sapo.pt>
    masahir0y authored and linckandrea committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    5d22190 View commit details
    Browse the repository at this point in the history