diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2022-06-28 12:08:52 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-07-20 12:35:59 +0000 |
commit | 8702450e51114d6e366005ac78331661bc5ad93b (patch) | |
tree | 36c0c414334234434ff0752a065cd00e13b5becd /src/mainboard/google/brya/acpi/gpu_ec.asl | |
parent | de21ba07588f5bbf8f763de215dcf6fd1cb6ba2f (diff) |
mb/google/brya/acpi: Add support for D Notify event from the Chrome EC
The agah EC code includes a driver to keep track of the current D Notify
level that the GPU should be at. When it changes, it will send a host
event to the ACPI FW, which will then pass that Notify on to the kernel
driver. This patch adds support for that feature, which is described in
the Nvidia Software Design Guide.
BUG=b:229405562
TEST=add Printf() calls to the ACPI, and work through the various
scenarios on the EC that will cause D Notify levels to change; this
will cause the Printfs() to show up in the kernel log.
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I5cd8bd7d177ea10a165613ed0726a6d6fd86c226
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65486
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Robert Zieba <robertzieba@google.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/brya/acpi/gpu_ec.asl')
-rw-r--r-- | src/mainboard/google/brya/acpi/gpu_ec.asl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/acpi/gpu_ec.asl b/src/mainboard/google/brya/acpi/gpu_ec.asl new file mode 100644 index 0000000000..998d9c0e6a --- /dev/null +++ b/src/mainboard/google/brya/acpi/gpu_ec.asl @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#define EC_D_NOTIFY_MASK 0x7 + +Scope (\_SB.PCI0.LPCB.EC0) +{ + /* EC has data for GPU in memmap */ + Method (_Q0C, 0, Serialized) + { + Local0 = ToInteger(GPUD) & EC_D_NOTIFY_MASK + \_SB.PCI0.PEG0.PEGP.DNOT (Local0) + } +} |