Skip to content

drivers/gfx/nvidia: Adjust GC6 Exit timings #257

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

Draft
wants to merge 1 commit into
base: system76
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/drivers/gfx/nvidia/acpi/common/power.asl
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */

#include <device/pci_ids.h>

//TODO: evaluate sleeps

OperationRegion (PCIC, PCI_Config, 0x00, 0xFF)
Field (PCIC, DwordAcc, NoLock, Preserve) {
NVID, 16,
NDID, 16,
Offset (0x40),
SSID, 32, // Subsystem vendor and product ID
}
Expand Down Expand Up @@ -31,11 +35,21 @@ Method(GC6O, 0, Serialized) {
// Bring GPU out of reset
Printf(" Bring GPU out of reset")
STXS(DGPU_RST_N)
Sleep(5)
Sleep(10)

// Exit L23
^^L23D()
Sleep(5)

// Wait for GPU to appear on the bus
Local0 = 50
While (NVID != PCI_VID_NVIDIA) {
If (Local0 == 0) {
Break
}

Stall (100)
Local0--
}

Printf(" GPU GC6O FINISH")
}
Expand Down