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

Add ACPI methods for setting fan speed #143

Open
wants to merge 21 commits into
base: system76
Choose a base branch
from

Commits on Nov 20, 2023

  1. submodules: Use absolute paths

    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    Change-Id: If03415f80a6028e263e76a9e3cc10df0cde5cc3c
    crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    9fa04e1 View commit details
    Browse the repository at this point in the history
  2. intel/block/pcie/rtd3: ACPI debug messages

    Change-Id: Icc4a882ff73f62a134b92f1afb0dc298ea809189
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    5f3df49 View commit details
    Browse the repository at this point in the history
  3. intel/block/pcie/rtd3: Also implement _PR3

    Change-Id: Id7f4373989dffe8c3bc68a034f59a94d2160dd15
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    ea848eb View commit details
    Browse the repository at this point in the history
  4. security/tpm/tspi: Do TPM Restart if TPM Resume fails

    The Infineon SLB 9672 on newer Clevo machines regularly fails TPM Resume
    on S3 with the error `TPM_RC_VALUE`.
    
    Per TPM2 spec, handle the failure by performing a TPM Restart.
    
    > The startup behavior defined by this specification is different than
    > TPM 1.2 with respect to Startup(STATE). A TPM 1.2 device will enter
    > Failure Mode if no state is available when the TPM receives
    > Startup(STATE). This is not the case in this specification. It is up
    > to the CRTM to take corrective action if it the TPM returns
    > TPM_RC_VALUE in response to Startup(STATE).
    
    Fixes the following error from being repeatedly logged in Linux:
    
    > kernel: tpm tpm0: A TPM error (256) occurred attempting get random
    
    Ref: Trusted Platform Module Library, Part 1: Architecture, rev 1.59
    Change-Id: I3388007d4448c93bd0dda591c8ca7d1a8dc5306b
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    d9977a9 View commit details
    Browse the repository at this point in the history
  5. drivers/smmstore/ramstage.c: retry smmstore init up 5 times

    Retry calling the SMI 5 times in case the initial write to APM did not
    cause SMM entry immediately.
    
    Fixes occasional SMMSTORE initialization failure on Clevo NV4xPZ with
    Intel i5-1240P processor. The issue was especially evident when all
    logging in coreboot was disabled.
    
    Based on SMMSTORE implementation in MrChromebox's fork of EDK2:
    MrChromebox/edk2@27854bc
    
    Change-Id: I8929af25c4f69873bbdd835fde5cb60fc324b6ab
    Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
    mkopec authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    5f608c9 View commit details
    Browse the repository at this point in the history
  6. soc/intel/alderlake: Hack to preserve SBREG

    Change-Id: Ie70905d34a4050aeff4b5cda116eb700f19a18ea
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    e312861 View commit details
    Browse the repository at this point in the history
  7. soc/common/smbus: Add support for reading spd data via smbus for DDR5

    DDR5 uses a Serial Presence Detect EEPROM with hub function
    (SPD5 hub device) to store the spd data.
    This CL adds support to read the spd5 hub device via smbus.
    
    BUG=b:180458099
    TEST=Boot adlrvp DDR5 board to kernel
    
    Signed-off-by: Meera Ravindranath <meera.ravindranath@intel.com>
    Change-Id: Ic5e6c58f255bef86b68ce90a4f853bf4e7c7ccfe
    mravindr authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    8289350 View commit details
    Browse the repository at this point in the history
  8. soc/intel/adl: Fill in SPD data on both channels of DDR5 memory

    CB:52731 introduced support for reading SPD from the EEPROM via SMBus.
    Replace the now unneeded workaround for DDR5 with filling in the correct
    channels for DDR5.
    
    Change-Id: I5a92199a7cd2718e9396f0dac8257df40e4f834c
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    7fcf710 View commit details
    Browse the repository at this point in the history
  9. lib,soc/intel/common/block/smbus: Use a SPD length of 512 bytes for DDR5

    Change-Id: I8bdc4c676a0f571fd8f34e078f6a1c73a2e90a87
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    3289a30 View commit details
    Browse the repository at this point in the history
  10. drivers/intel/dtbt: Add discrete Thunderbolt driver

    Add a new driver for discrete Thunderbolt controllers. This allows using
    Maple Ridge devices on Raptor Point PCH.
    
    Change-Id: Ib78ce43740956fa2c93b9ebddb0eeb319dcc0364
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    fa90e35 View commit details
    Browse the repository at this point in the history
  11. mb/system76/rpl: Enable discrete TBT device

    The HX board, using PCH-S, use a discrete Thunderbolt device (Intel
    Maple Ridge), as opposed to a built-in one like the boards using PCH-P.
    
    Fixes Thunderbolt on RPL-HX boards using the Maple Ridge controller.
    
    Change-Id: I53d18f3ec5a084431e1113782c791bcb42728350
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    dca78e4 View commit details
    Browse the repository at this point in the history
  12. mb/system76/bonw14: Enable TAS5825M smart amp

    The Bonobo has 2 AMPs: one for the speakers and one for the subwoofer.
    
    Smart AMP data was collected using a logic analyzer connected to the IC
    during system start on proprietary firmware. This data is then used to
    generate a C file [1].
    
    [1]: https://github.com/system76/smart-amp
    
    Change-Id: I5389a9890563ebd3adb20096b6225f474bc006f9
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    c93689d View commit details
    Browse the repository at this point in the history
  13. soc/intel/alderlake: Add IRQ for non-existent CPU PCIe device

    Device 0:01.1 does not exist on ADL-P. I assume this works because the
    bridged device has function 1.
    
    Fixes the following error in Linux:
    
        pcieport 0000:00:01.0: can't derive routing for PCI INT B
        snd_hda_intel 0000:01:00.1: PCI INT B: no GSI - using ISA IRQ 10
    
    Which in turn resolves the conflict with the PCH HDA device...again:
    
        irq 10: nobody cared (try booting with the "irqpoll" option)
        <snip>
        [<00000000bf549647>] azx_interrupt [snd_hda_codec]
        Disabling IRQ system76#10
    
    Change-Id: I9d9a0003764a1e031be578c1f406b2a5d7512de7
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    f97ffca View commit details
    Browse the repository at this point in the history
  14. drivers/gfx/nvidia: Add driver for NVIDIA GPU

    Add a driver for laptops with NVIDIA Optimus (hybrid) graphics. The
    driver provides ACPI support for dynamically powering on and off the
    GPU, NVIDIA Dynamic Boost support, and a function for enabling the GPU
    power in romstage.
    
    References:
    - DG-09845-001: NVIDIA GN20/QN20 Hardware Design Guide
    - DG-09954-001: NVIDIA GN20/QN20 Software Design Guide
    
    Change-Id: I2dec7aa2c8db7994f78a7cc1220502676e248465
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    jackpot51 authored and crawfxrd committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    1cf2970 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. mb/system76: Enable dGPUs

    Change-Id: I28fe45afaccd60621f2f2456af14306e18df2657
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    8270aee View commit details
    Browse the repository at this point in the history
  2. ec/system76: Support lockdown based on EC security state

    Change-Id: I202c0607c2cdac1df59f42fb41735704dd5bd95c
    Signed-off-by: Jeremy Soller <jeremy@system76.com>
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    2f5e317 View commit details
    Browse the repository at this point in the history
  3. mb/system76: Enable EC lockdown on TGL+

    Change-Id: I4b07846c404eb93ab4baf0a78a4bbffcc5d8afca
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    1a5bdc5 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. mb/system76: Enable S0ix for darp8/darp9

    The newer batch of these boards do not de-assert VW PLTRST# on S3
    resume, causes the units to not power on in the EC code. Switch them to
    S0ix by default, but leave S3 available.
    
    Change-Id: I95337c1391102db9e020e82bdd938659c1a4f905
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    09bdd1e View commit details
    Browse the repository at this point in the history
  2. mb/system76: Add custom CMOS default for darp8,darp9

    Since these boards will use S0ix they need to leave CSME enabled for the
    CPU to reach C10.
    
    Change-Id: I70c908402c9964508bb9c439d48d24773f5a35ab
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    crawfxrd committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    cd9cf8b View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. mb/system76/rpl: darp9: Add SSD RTD3 configs

    Some drives block the CPU from reaching C10 on suspend without the RTD3
    config.
    
    Fixes suspend with the following drives:
    
    - Kingston KC3000 (SKC3000D/4096G)
    - Kingston HyperX (SHPM2280P2H/240G)
    - Solidigm P44 Pro (SSDPFKKW010X7)
    
    The following drives continue to work:
    
    - Samsung 970 Evo (MZVLB250HAHQ)
    - WD Black SN770 (WDS250G3X0E)
    - WD Green SN350 (WDS240G2G0C-00AJM0)
    - WD Blue SN570 (WDS100T3B0C)
    
    Change-Id: I205d78377fa2b0db8d37542cdb94ba86ded1d66e
    Signed-off-by: Tim Crawford <tcrawford@system76.com>
    Tested-by: Levi Portenier <levi@system76.com>
    crawfxrd committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    02221a3 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2024

  1. add ACPI methods for setting fan speeds

    Change-Id: Ib6548c571de300cec476f06f526d4c032e438f34
    curiousercreative committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    2823ddd View commit details
    Browse the repository at this point in the history