Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
fa20fd0
VFIO: Add the SPR_DSA and SPR_IAX devices to the denylist
fenrus75 Mar 21, 2024
8da3a84
dmaengine: idxd: add a new security check to deal with a hardware err…
fenrus75 Apr 24, 2024
21a8f1c
dmaengine: idxd: add a write() method for applications to submit work
nikhilprao Apr 24, 2024
cc219cb
keys: Fix overwrite of key expiration on instantiation
Mar 15, 2024
ddb0273
wifi: mt76: mt7915: add missing chanctx ops
greearb Mar 27, 2024
b019fcc
Linux 6.9.1
gregkh May 17, 2024
a8c1ad2
ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER
heftig Sep 16, 2019
373866d
drivers/firmware: skip simpledrm if nvidia-drm.modeset=1 is set
martinezjavier May 19, 2022
2cd747d
arch/Kconfig: Default to maximum amount of ASLR bits
heftig Jan 13, 2024
308d531
docs: kernel_include.py: Fix build with docutils 0.21.1
heftig Apr 13, 2024
85c0510
amdgpu: enable overdrive by default
BoukeHaarsma23 Dec 12, 2023
9c38019
drm: panel-orientation-quirks: Add quirk for AYA NEO 2 model
Samsagax Jun 21, 2023
696dcc5
drm: panel-orientation-quirks: Add quirk for AYA NEO Founder edition
Samsagax Jun 21, 2023
10eb4cd
drm: panel-orientation-quirks: Add quirk for AYA NEO GEEK
Samsagax Jun 21, 2023
cede4d0
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
BoukeHaarsma23 Oct 7, 2023
9c5cb4f
drm: panel-orientation-quirks: Add quirk for Ayn Loki Max
BoukeHaarsma23 Oct 7, 2023
6127393
Ayaneo geek headset patch
BoukeHaarsma23 Sep 22, 2023
b62b72b
ayaneo 2 headphone fix
BoukeHaarsma23 Sep 22, 2023
07bce11
HID: asus: fix more n-key report descriptors if n-key quirked
flukejones Dec 2, 2023
309a530
HID: asus: make asus_kbd_init() generic, remove rog_nkey_led_init()
flukejones Dec 2, 2023
b0de133
HID: asus: add ROG Ally N-Key ID and keycodes
flukejones Nov 29, 2023
9ea9f9f
HID: asus: add ROG Ally xpad settings
flukejones Dec 1, 2023
7a07635
HACK: add KConfig to enable driver-specific color mgmt props
melissawen Apr 22, 2023
4f6589f
Don't create color_mgmt_properties on asics < SIENNA_CICHLID
BoukeHaarsma23 Dec 15, 2023
025468c
drm: Add GPU reset sysfs event
contactshashanksharma Mar 7, 2022
8be4d27
drm/amdgpu: add work function for GPU reset event
contactshashanksharma Mar 7, 2022
5a3e3c7
drm/amdgpu: schedule GPU reset event work function
Mar 10, 2022
a167209
oxp-sensors: hwmon: Add OrangePi Neo PWM fan control
pastaq Mar 28, 2024
43dea56
oxp-sensors: hwmon: Add OneXPlayer 2 and OneXFly
pastaq Mar 28, 2024
969c7fb
oxp-sensors: hwmon: Add support for AYANEO 2s, air 1s, geek 1s and ku…
pastaq Mar 28, 2024
e3e37b1
oxp-sensors: hwmon: Add GPD Win Mini
pastaq Mar 28, 2024
1bb0ad7
platform/x86: asus-wmi: add support for 2024 ROG Mini-LED
flukejones Mar 10, 2024
28397ba
platform/x86: asus-wmi: add support for Vivobook GPU MUX
flukejones Mar 10, 2024
e7e60c1
platform/x86: asus-wmi: add support variant of TUF RGB
flukejones Mar 10, 2024
63c4469
platform/x86: asus-wmi: support toggling POST sound
flukejones Mar 10, 2024
6d94319
platform/x86: asus-wmi: store a min default for ppt options
flukejones Mar 10, 2024
0e04ad9
platform/x86: asus-wmi: adjust formatting of ppt-<name>() functions
flukejones Mar 25, 2024
c2b41eb
platform/x86: asus-wmi: ROG Ally increase wait time, allow MCU powersave
flukejones Mar 24, 2024
b531f33
platform/x86: asus-wmi: Add support for MCU powersave
flukejones Mar 25, 2024
660b637
platform/x86: asus-wmi: cleanup main struct to avoid some holes
flukejones Mar 25, 2024
c10b77f
bump the sensitivity of AMD SFH
antheas Mar 3, 2024
d1c9df0
IIO: add aya neo tablet identifier
BoukeHaarsma23 Apr 10, 2024
9cfd358
iio: imu: Add driver for Bosch BMI260 IMU
justinweiss Feb 14, 2024
cf880cc
Codec: Add aw87xxx codec with partial acpi implementation
ruineka Apr 25, 2024
a08def2
drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations
mohamexiety Apr 30, 2024
fc783d2
Updated AW87xxx driver to be more verbose for debugging purposes, but…
CVMagic May 16, 2024
5d79930
linux-chimeraos v6.9.1-chos1
BoukeHaarsma23 May 19, 2024
9a7a467
Revert "drm/nouveau: use tile_mode and pte_kind for VM_BIND bo alloca…
BoukeHaarsma23 May 19, 2024
35b6190
drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations
mohamexiety May 9, 2024
24cdf77
linux-chimeraos v6.9.1-chos2
BoukeHaarsma23 May 19, 2024
6c957c3
Updated AW87xxx driver to automatically enumerate a second I2C chip i…
CVMagic May 19, 2024
be9b1cb
linux-chimeraos v6.9.1-chos3
BoukeHaarsma23 May 19, 2024
123ddfc
Updated AW87xxx driver to implement Suspend and Resume.
CVMagic May 22, 2024
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
Prev Previous commit
Next Next commit
platform/x86: asus-wmi: Add support for MCU powersave
Add support for an MCU powersave WMI call. This is intended to set the
MCU in to a low-power mode when sleeping. This mode can cut sleep power
use by around half.

Signed-off-by: Luke D. Jones <[email protected]>
  • Loading branch information
flukejones authored and BoukeHaarsma23 committed May 19, 2024
commit b531f334eae225652eead2020d67dc296521c1bc
11 changes: 10 additions & 1 deletion Documentation/ABI/testing/sysfs-platform-asus-wmi
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,13 @@ Contact: "Luke Jones" <[email protected]>
Description:
Set if the BIOS POST sound is played on boot.
* 0 - False,
* 1 - True
* 1 - True

What: /sys/devices/platform/<platform>/mcu_powersave
Date: Mar 2023
KernelVersion: 6.10
Contact: "Luke Jones" <[email protected]>
Description:
Set if the MCU can go in to low-power mode on system sleep
* 0 - False,
* 1 - True
50 changes: 50 additions & 0 deletions drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,53 @@ static ssize_t nv_temp_target_show(struct device *dev,
}
static DEVICE_ATTR_RW(nv_temp_target);

/* Ally MCU Powersave ********************************************************/
static ssize_t mcu_powersave_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct asus_wmi *asus = dev_get_drvdata(dev);
int result;

result = asus_wmi_get_devstate_simple(asus, ASUS_WMI_DEVID_MCU_POWERSAVE);
if (result < 0)
return result;

return sysfs_emit(buf, "%d\n", result);
}

static ssize_t mcu_powersave_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
int result, err;
u32 enable;

struct asus_wmi *asus = dev_get_drvdata(dev);

result = kstrtou32(buf, 10, &enable);
if (result)
return result;

if (enable > 1)
return -EINVAL;

err = asus_wmi_set_devstate(ASUS_WMI_DEVID_MCU_POWERSAVE, enable, &result);
if (err) {
pr_warn("Failed to set MCU powersave: %d\n", err);
return err;
}

if (result > 1) {
pr_warn("Failed to set MCU powersave (result): 0x%x\n", result);
return -EIO;
}

sysfs_notify(&asus->platform_device->dev.kobj, NULL, "mcu_powersave");

return count;
}
static DEVICE_ATTR_RW(mcu_powersave);

/* Battery ********************************************************************/

/* The battery maximum charging percentage */
Expand Down Expand Up @@ -4302,6 +4349,7 @@ static struct attribute *platform_attributes[] = {
&dev_attr_ppt_platform_sppt.attr,
&dev_attr_nv_dynamic_boost.attr,
&dev_attr_nv_temp_target.attr,
&dev_attr_mcu_powersave.attr,
&dev_attr_boot_sound.attr,
&dev_attr_panel_od.attr,
&dev_attr_mini_led_mode.attr,
Expand Down Expand Up @@ -4355,6 +4403,8 @@ static umode_t asus_sysfs_is_visible(struct kobject *kobj,
devid = ASUS_WMI_DEVID_NV_DYN_BOOST;
else if (attr == &dev_attr_nv_temp_target.attr)
devid = ASUS_WMI_DEVID_NV_THERM_TARGET;
else if (attr == &dev_attr_mcu_powersave.attr)
devid = ASUS_WMI_DEVID_MCU_POWERSAVE;
else if (attr == &dev_attr_boot_sound.attr)
devid = ASUS_WMI_DEVID_BOOT_SOUND;
else if (attr == &dev_attr_panel_od.attr)
Expand Down