Lines Matching +full:acpi +full:- +full:based
1 .. SPDX-License-Identifier: GPL-2.0
7 In order to support ACPI open-ended hardware configurations (e.g. development
8 boards) we need a way to augment the ACPI configuration provided by the firmware
13 recompiling the firmware image with updated ACPI tables, neither is practical:
17 Because ACPI supports external references in AML code a more practical
18 way to augment firmware ACPI configuration is by dynamically loading
58 Intel ACPI Component Architecture
59 ASL Optimizing Compiler version 20140214-64 [Mar 29 2014]
60 Copyright (c) 2000 - 2014 Intel Corporation
62 ASL Input: minnomax.asl - 30 lines, 614 bytes, 7 keywords
63 AML Output: minnowmax.aml - 165 bytes, 6 named objects, 1 executable opcodes
70 Loading ACPI SSDTs from initrd
76 It works in a similar way with initrd based ACPI tables override/upgrade: SSDT
78 "kernel/firmware/acpi" path. Multiple files can be used and this will translate
84 # Add the raw ACPI tables to an uncompressed cpio archive.
85 # They must be put into a /kernel/firmware/acpi directory inside the
90 mkdir -p kernel/firmware/acpi
91 cp ssdt.aml kernel/firmware/acpi
95 find kernel | cpio -H newc --create > /boot/instrumented_initrd
98 Loading ACPI SSDTs from EFI variables
121 "Name-GUID" and that the first 4 bytes in the file (little-endian format)
129 #!/bin/sh -e
131 while [ -n "$1" ]; do
133 "-f") filename="$2"; shift;;
134 "-g") guid="$2"; shift;;
142 echo "Syntax: ${0##*/} -f filename [ -g guid ] name"
146 [ -n "$name" -a -f "$filename" ] || usage
150 [ -d "$EFIVARFS" ] || exit 2
152 if stat -tf $EFIVARFS | grep -q -v de5e81e4; then
153 mount -t efivarfs none $EFIVARFS
157 [ -n "$guid" ] || guid=$(find "$EFIVARFS" -name "$name-*" | head -n1 | cut -f2- -d-)
160 [ -n "$guid" ] || guid="$(cat /proc/sys/kernel/random/uuid)"
164 /bin/echo -ne "\007\000\000\000" | cat - $filename > $tmp
165 dd if=$tmp of="$EFIVARFS/$name-$guid" bs=$(stat -c %s $tmp)
168 Loading ACPI SSDTs from configfs
176 New tables can be loading by creating new directories in /sys/kernel/config/acpi/table
179 cd /sys/kernel/config/acpi/table