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

Update cs35l41_hda_property.c #1

Closed
wants to merge 27 commits into from
Closed

Update cs35l41_hda_property.c #1

wants to merge 27 commits into from

Commits on Oct 23, 2023

  1. ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER

    Our default behavior continues to match the vanilla kernel.
    heftig authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3d19f5a View commit details
    Browse the repository at this point in the history
  2. drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 is set

    The Nvidia proprietary driver has some bugs that leads to issues if used
    with the simpledrm driver. The most noticeable is that does not register
    an emulated fbdev device.
    
    It just relies on a fbdev to be registered by another driver, that could
    be that could be attached to the framebuffer console. On UEFI machines,
    this is the efifb driver.
    
    This means that disabling the efifb driver will cause virtual consoles to
    not be present in the system when using the Nvidia driver. Legacy BIOS is
    not affected just because fbcon is not used there, but instead vgacon.
    
    Unless a VGA mode is specified using the vga= kernel command line option,
    in that case the vesafb driver is used instead and its fbdev attached to
    the fbcon.
    
    This is a problem because with CONFIG_SYSFB_SIMPLEFB=y, the sysfb platform
    code attempts to register a "simple-framebuffer" platform device (that is
    matched against simpledrm) and only registers either an "efi-framebuffer"
    or "vesa-framebuffer" if this fails to be registered due the video modes
    not being compatible.
    
    The Nvidia driver relying on another driver to register the fbdev is quite
    fragile, since it can't really assume those will stick around. For example
    there are patches posted to remove the EFI and VESA platform devices once
    a real DRM or fbdev driver probes.
    
    But in any case, moving to a simpledrm + emulated fbdev only breaks this
    assumption and causes users to not have VT if the Nvidia driver is used.
    
    So to prevent this, let's add a workaround and make the sysfb to skip the
    "simple-framebuffer" registration when nvidia-drm.modeset=1 option is set.
    
    This is quite horrible, but honestly I can't think of any other approach.
    
    For this to work, the CONFIG_FB_EFI and CONFIG_FB_VESA config options must
    be enabled besides CONFIG_DRM_SIMPLEDRM.
    
    Signed-off-by: Javier Martinez Canillas <[email protected]>
    Cherry-picked-for: https://bugs.archlinux.org/task/73720
    martinezjavier authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    9d57f65 View commit details
    Browse the repository at this point in the history
  3. mm: Support soft dirty flag reset for VA range.

    Paul Gofman authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    d9620fd View commit details
    Browse the repository at this point in the history
  4. drm: panel-orientation-quirks: Add quirk for AYA NEO 2 model

    Add quirk orientation for AYA NEO 2. The name appears without spaces in
    dmi strings. That made it difficult to reuse the 2021 match and the
    display is greater in resolution.
    
    Tested by the JELOS team that has been patching their own kernel for a
    while now and confirmed by users in the AYA NEO and ChimeraOS discord
    servers.
    
    Signed-off-by: Joaquín Ignacio Aramendía <[email protected]>
    Samsagax authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1eb9656 View commit details
    Browse the repository at this point in the history
  5. drm: panel-orientation-quirks: Add quirk for AYA NEO Founder edition

    Add quirk orientation for AYA NEO Founder. The name appears with spaces in
    dmi strings as other devices of the brand. The panel is the same as the
    NEXT and 2021 models. Those could not be reused as the former has VENDOR
    name as "AYANEO" without spaces and the latter has "AYADEVICE".
    
    Tested by the JELOS team that has been patching their own kernel for a
    while now and confirmed by users in the AYA NEO and ChimeraOS discord
    servers.
    
    Signed-off-by: Joaquín Ignacio Aramendía <[email protected]>
    Samsagax authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    ce95863 View commit details
    Browse the repository at this point in the history
  6. drm: panel-orientation-quirks: Add quirk for AYA NEO GEEK

    Add quirk orientation for AYA NEO GEEK. One of the more recent devices by
    the brand. The name appears without spaces in dmi strings. The board
    name is completely different to the previous models making it difficult
    to reuse their quirks despite being the same resolution and mounting.
    
    Tested by the JELOS team that has been patching their own kernel for a
    while now and confirmed by users in the AYA NEO and ChimeraOS discord
    servers.
    
    Signed-off-by: Joaquín Ignacio Aramendía <[email protected]>
    Samsagax authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3b6d29c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2cc14fb View commit details
    Browse the repository at this point in the history
  8. ALSA: hda: cs35l41: Support ASUS 2023 laptops with missing DSD

    Support adding the missing DSD properties required  for ASUS ROG 2023
    laptops and other ASUS laptops to properly utilise the cs35l41.
    
    The currently added laptops are:
    - ASUS GS650P,   i2c
    - ASUS GA402X,   i2c
    - ASUS GU604V,   spi
    - ASUS GU603V,   spi
    - ASUS GV601V,   spi
    - ASUS GZ301V,   spi
    - ASUS ROG ALLY, i2c
    - ASUS G614J,    spi
    - ASUS G634J,    spi
    - ASUS G614JI,   spi
    - ASUS G713P,    i2c
    
    The SPI connected amps may be required to use an external DSD patch
    to fix or add the "cs-gpios" property.
    
    Co-developed-by: Jonathan LoBue <[email protected]>
    Signed-off-by: Jonathan LoBue <[email protected]>
    Co-developed-by: Luke D. Jones <[email protected]>
    Signed-off-by: Luke D. Jones <[email protected]>
    flukejones authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3065c26 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f4b10be View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4358fb2 View commit details
    Browse the repository at this point in the history
  11. ayaneo 2 headphone fix

    BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    027dcff View commit details
    Browse the repository at this point in the history
  12. drm: Add GPU reset sysfs event

    This patch adds a new sysfs event, which will indicate
    the userland about a GPU reset, and can also provide
    some information like:
    - process ID of the process involved with the GPU reset
    - process name of the involved process
    - the GPU status info (using flags)
    
    This patch also introduces the first flag of the flags
    bitmap, which can be appended as and when required.
    
    V2: Addressed review comments from Christian and Amar
       - move the reset information structure to DRM layer
       - drop _ctx from struct name
       - make pid 32 bit(than 64)
       - set flag when VRAM invalid (than valid)
       - add process name as well (Amar)
    
    Cc: Alexandar Deucher <[email protected]>
    Cc: Christian Koenig <[email protected]>
    Cc: Amaranath Somalapuram <[email protected]>
    Signed-off-by: Shashank Sharma <[email protected]>
    (cherry picked from commit 90230bd9d9c7d979038547460c9a2cbbeff8d6b9)
    [Forward port to 6.0]
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    contactshashanksharma authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    ac3f4d0 View commit details
    Browse the repository at this point in the history
  13. drm/amdgpu: add work function for GPU reset event

    This patch adds a work function, which sends a GPU reset
    uevent and some contextual infomration, like the PID and
    some status flags. This work should be scheduled during
    a GPU reset.
    
    The userspace can do some recovery and post-processing work
    based on this event and information.
    
    V2: Addressed review comments from Christian
    - Changed the name of the work to gpu_reset_event_work
    - Added a structure to accommodate some additional information
      (like a PID and some flags)
    - Do not add new structure in amdgpu.h
    
    Cc: Alexander Deucher <[email protected]>
    Cc: Christian Koenig <[email protected]>
    Cc: Amaranath Somalapuram <[email protected]>
    Signed-off-by: Shashank Sharma <[email protected]>
    (cherry picked from commit f63b09e78126f7da67b69409e2cce1d3ab2d7f46)
    [Forward port to 6.0]
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    contactshashanksharma authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    cb68909 View commit details
    Browse the repository at this point in the history
  14. drm/amdgpu: schedule GPU reset event work function

    Schedule work function with valid PID, process name,
    and vram lost status during a GPU reset/ recovery.
    
    Signed-off-by: Somalapuram Amaranath <[email protected]>
    (cherry picked from commit 293c019a84c6402b08db9579819b555b01cd613b)
    [Forward ported to 6.0]
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    Somalapuram Amaranath authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    7ecbc31 View commit details
    Browse the repository at this point in the history
  15. USB: gadget: f_hid: Add Get-Feature report

    While the HID gadget implementation has been sufficient for devices that only
    use INTERRUPT transfers, the USB HID standard includes provisions for Set- and
    Get-Feature report CONTROL transfers that go over endpoint 0. These were
    previously impossible with the existing implementation, and would either send
    an empty reply, or stall out.
    
    As the feature is a standard part of USB HID, it stands to reason that devices
    would use it, and that the HID gadget should support it. This patch adds
    support for (polled) device-to-host Get-Feature reports through a new ioctl
    interface to the hidg class dev nodes.
    
    Signed-off-by: Vicki Pfau <[email protected]>
    (cherry picked from commit 8437fa3861c7198a3e286f393c8637c4fc08d2bc)
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    endrift authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    e42b11d View commit details
    Browse the repository at this point in the history
  16. USB: gadget: f_hid: Add Set-Feature report

    While the HID gadget implementation has been sufficient for devices that only
    use INTERRUPT transfers, the USB HID standard includes provisions for Set- and
    Get-Feature report CONTROL transfers that go over endpoint 0. These were
    previously impossible with the existing implementation, and would either send
    an empty reply, or stall out.
    
    As the feature is a standard part of USB HID, it stands to reason that devices
    would use it, and that the HID gadget should support it. This patch adds
    support for host-to-device Set-Feature reports through a new ioctl
    interface to the hidg class dev nodes.
    
    Signed-off-by: Vicki Pfau <[email protected]>
    (cherry picked from commit 3d82be0ec3aa3b947d9c927d7b06c433de15be8b)
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    endrift authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    0521d98 View commit details
    Browse the repository at this point in the history
  17. HID: hid-steam: Update list of identifiers from SDL

    SDL includes a list of settings (registers), reports (cmds), and various other
    identifiers that were provided by Valve. This commit imports a significant
    chunk of that list as well as updating the guessed names and replacing a
    handful of magic constants. It also replaces bitmask definitions that used hex
    with the BIT macro.
    
    Signed-off-by: Vicki Pfau <[email protected]>
    endrift authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    eb3cadc View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9eae2c2 View commit details
    Browse the repository at this point in the history
  19. HID: hid-steam: Clean up locking

    This cleans up the locking logic so that the spinlock is consistently used for
    access to a small handful of struct variables, and the mutex is exclusively and
    consistently used for ensuring that mutliple threads aren't trying to
    send/receive reports at the same time. Previously, only some report
    transactions were guarded by this mutex, potentially breaking atomicity. The
    mutex has been renamed to reflect this usage.
    
    Signed-off-by: Vicki Pfau <[email protected]>
    endrift authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    7da7725 View commit details
    Browse the repository at this point in the history
  20. HID: hid-steam: Make client_opened a counter

    The client_opened variable was used to track if the hidraw was opened by any
    clients to silence keyboard/mouse events while opened. However, there was no
    counting of how many clients were opened, so opening two at the same time and
    then closing one would fool the driver into thinking it had no remaining opened
    clients.
    
    Signed-off-by: Vicki Pfau <[email protected]>
    endrift authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3bc24b7 View commit details
    Browse the repository at this point in the history
  21. HID: hid-steam: Better handling of serial number length

    The second byte of the GET_STRING_ATTRIB report is a length, so we should set
    the size of the buffer to be the size we're actually requesting, and only
    reject the reply if the length out is nonsensical.
    
    Signed-off-by: Vicki Pfau <[email protected]>
    endrift authored and BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    31c08d2 View commit details
    Browse the repository at this point in the history
  22. drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero

    Add quirk orientation for the Ayn Loki Zero.
    
    This also has been tested/used by the JELOS team.
    
    Signed-off-by: Bouke Sybren Haarsma <[email protected]>
    BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    0d22816 View commit details
    Browse the repository at this point in the history
  23. drm: panel-orientation-quirks: Add quirk for Ayn Loki Max

    Add quirk orientation for Ayn Loki Max model.
    
    This has been tested by JELOS team that uses their
    own patched kernel for a while now and confirmed by
    users in the ChimeraOS discord servers.
    
    Signed-off-by: Bouke Sybren Haarsma <[email protected]>
    BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    c537101 View commit details
    Browse the repository at this point in the history
  24. linux v6.6.0-chos1-rc7

    BoukeHaarsma23 committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    09cbb3d View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    53695d1 View commit details
    Browse the repository at this point in the history
  2. linux v6.6.0-chos2-rc7

    BoukeHaarsma23 committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    c26ab45 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Update cs35l41_hda_property.c

    Fixing no patch applied exit code
    jlobue10 authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    7384adf View commit details
    Browse the repository at this point in the history