blob: b80c9d90a0fd3e184f37c694bf0acae761b8d754 [file] [log] [blame]
#!/bin/bash
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
modify_kernel_command_line() {
echo "i915.preliminary_hw_support=1" >> "$1"
# Enable S0ix validation check in kernel
echo "intel_idle.slp_s0_check=1" >> "$1"
# Setup S0ix validation initial timeout for slp_s0_check
echo "intel_idle.slp_s0_seed=5" >> "$1"
# Enable S0ix logging using GSMI
echo "gsmi.s0ix_logging_enable=1" >> "$1"
# Might be helpful to preserve ramoops in extreme circumstances
echo "ramoops.ecc=1" >> "$1"
}