platform/x86: uniwill-laptop: More support for TUXEDO devices
Subsystems (3)
v8 cover platform/x86: uniwill-laptop: More support for TUXEDO devices
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority functions Add missing mutex in usb_c_power_priority_restore
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by
Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentation
Armin Wolf (1):
platform/x86: uniwill-laptop: Rework hwmon feature defines
Werner Sembach (4):
platform/x86: uniwill-laptop: Implement USB-C power priority setting platform/x86: uniwill-laptop: Fix XMG Fusion 15 (L19) entries platform/x86: uniwill-laptop: Apply features across all TUXEDO devices
Documentation: laptops: Update documentation for uniwill laptops
.../ABI/testing/sysfs-driver-uniwill-laptop | 27 ++ .../admin-guide/laptops/uniwill-laptop.rst | 12 + drivers/platform/x86/uniwill/uniwill-acpi.c | 439 +++++++++++++++--- 3 files changed, 408 insertions(+), 70 deletions(-)
base-commit: 1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
Signature · 1 line
2.43.0
PATCH v8 1/5 platform/x86: uniwill-laptop: Rework hwmon feature defines
From: Armin Wolf <[email protected]>
Split hwmon feature define in smaller parts to accommodate for diverse hardware. You can now specify the presence of a cpu and/or a gpu temp sensor separately and if one or 2 fans exists.
--- drivers/platform/x86/uniwill/uniwill-acpi.c | 68 ++++++++++++++++++--- 1 file changed, 61 insertions(+), 7 deletions(-)
drivers/platform/x86/uniwill/uniwill-acpi.c +61 -7
@@ -319,8 +319,11 @@#define UNIWILL_FEATURE_TOUCHPAD_TOGGLE BIT(2)#define UNIWILL_FEATURE_LIGHTBAR BIT(3)#define UNIWILL_FEATURE_BATTERY BIT(4) -#define UNIWILL_FEATURE_HWMON BIT(5) -#define UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL BIT(6) +#define UNIWILL_FEATURE_CPU_TEMP BIT(5) +#define UNIWILL_FEATURE_GPU_TEMP BIT(6) +#define UNIWILL_FEATURE_PRIMARY_FAN BIT(7) +#define UNIWILL_FEATURE_SECONDARY_FAN BIT(8) +#define UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL BIT(9)struct uniwill_data {struct device *dev;
@@ -427,7 +430,7 @@ static const struct key_entry uniwill_keymap[] = { { KE_END } }; -static inline bool uniwill_device_supports (struct uniwill_data *data, +static inline bool uniwill_device_supports (const struct uniwill_data *data,unsigned int features) {return (data->features & features) == features;
@@ -937,6 +940,48 @@ static const struct attribute_group *uniwill_groups[] = { NULL }; +static umode_t uniwill_is_visible (const void *drvdata,enum hwmon_sensor_types type,u32 attr, +int channel) +{ +const struct uniwill_data *data = drvdata; +unsigned int feature; + +switch (type) { +case hwmon_temp: +switch (channel) { +case 0 : + feature =UNIWILL_FEATURE_CPU_TEMP ; +break ; +case 1 : + feature =UNIWILL_FEATURE_GPU_TEMP ; +break ; +default : +return 0 ; + } +break ; +case hwmon_fan: +case hwmon_pwm: +switch (channel) { +case 0 : + feature =UNIWILL_FEATURE_PRIMARY_FAN ; +break ; +case 1 : + feature =UNIWILL_FEATURE_SECONDARY_FAN ; +break ; +default : +return 0 ; + } +break ; +default : +return 0 ; + } + +if (uniwill_device_supports (data, feature)) +return 0444 ; + +return 0 ; +} +static int uniwill_read (struct device *dev,enum hwmon_sensor_types type,u32 attr,int channel,long *val) {
@@ -1020,7 +1065,7 @@ static int uniwill_read_string(struct device *dev, enum hwmon_sensor_types type, }static const struct hwmon_ops uniwill_ops = { - .visible =0444 , + .is_visible = uniwill_is_visible, .read = uniwill_read, .read_string = uniwill_read_string, };
@@ -1048,7 +1093,10 @@ static int uniwill_hwmon_init(struct uniwill_data *data) {struct device *hdev; -if (!uniwill_device_supports (data,UNIWILL_FEATURE_HWMON )) +if (!uniwill_device_supports (data,UNIWILL_FEATURE_CPU_TEMP ) && + !uniwill_device_supports (data,UNIWILL_FEATURE_GPU_TEMP ) && + !uniwill_device_supports (data,UNIWILL_FEATURE_PRIMARY_FAN ) && + !uniwill_device_supports (data,UNIWILL_FEATURE_SECONDARY_FAN ))return 0 ; hdev = devm_hwmon_device_register_with_info(data->dev, "uniwill", data,
@@ -1687,7 +1735,10 @@ static struct uniwill_device_descriptor lapac71h_descriptor __initdata = {UNIWILL_FEATURE_SUPER_KEY |UNIWILL_FEATURE_TOUCHPAD_TOGGLE |UNIWILL_FEATURE_BATTERY | - UNIWILL_FEATURE_HWMON, +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | + UNIWILL_FEATURE_SECONDARY_FAN, }; static struct uniwill_device_descriptor lapkc71f_descriptor __initdata = {
@@ -1696,7 +1747,10 @@ static struct uniwill_device_descriptor lapkc71f_descriptor __initdata = {UNIWILL_FEATURE_TOUCHPAD_TOGGLE |UNIWILL_FEATURE_LIGHTBAR |UNIWILL_FEATURE_BATTERY | - UNIWILL_FEATURE_HWMON, +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | + UNIWILL_FEATURE_SECONDARY_FAN, };static int phxarx1_phxaqf1_probe (struct uniwill_data *data)
Signature · 1 line
2.43.0
PATCH v8 2/5 platform/x86: uniwill-laptop: Implement USB-C power priority setting
In reply to Werner SembachOn some devices Uniwill offers the option to set the USB-C port to prioritise charging or performance. This patch exposes this setting to the userspace via sysfs for all TUXEDO devices supporting it.
--- drivers/platform/x86/uniwill/uniwill-acpi.c | 145 +++++++++++++++++++- 1 file changed, 138 insertions(+), 7 deletions(-)
drivers/platform/x86/uniwill/uniwill-acpi.c +138 -7
@@ -266,8 +266,8 @@#define BATTERY_CHARGE_FULL_OVER_24H BIT(3)#define BATTERY_ERM_STATUS_REACHED BIT(4) -#define EC_ADDR_CHARGE_PRIO 0x07CC -#define CHARGING_PERFORMANCE BIT(7) +#define EC_ADDR_USB_C_POWER_PRIORITY 0x07CC +#define USB_C_POWER_PRIORITY BIT(7)/* Same bits as EC_ADDR_LIGHTBAR_AC_CTRL except LIGHTBAR_S3_OFF */ #define EC_ADDR_LIGHTBAR_BAT_CTRL 0x07E2
@@ -324,6 +324,12 @@#define UNIWILL_FEATURE_PRIMARY_FAN BIT(7)#define UNIWILL_FEATURE_SECONDARY_FAN BIT(8)#define UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL BIT(9) +#define UNIWILL_FEATURE_USB_C_POWER_PRIORITY BIT(10) + +enum usb_c_power_priority_options { +USB_C_POWER_PRIORITY_CHARGING =0 , +USB_C_POWER_PRIORITY_PERFORMANCE , +};struct uniwill_data {struct device *dev;
@@ -343,6 +349,8 @@ struct uniwill_data {struct mutex input_lock;/* Protects input sequence during notify */ struct input_dev *input_device;struct notifier_block nb; +struct mutex usb_c_power_priority_lock;/* Protects dependent bit write and state safe */ +enum usb_c_power_priority_options last_usb_c_power_priority_option; };struct uniwill_battery_entry {
@@ -527,6 +535,7 @@ static bool uniwill_writeable_reg(struct device *dev, unsigned int reg)case EC_ADDR_CTGP_DB_CTGP_OFFSET :case EC_ADDR_CTGP_DB_TPP_OFFSET :case EC_ADDR_CTGP_DB_DB_OFFSET : +case EC_ADDR_USB_C_POWER_PRIORITY :return true;default :return false;
@@ -565,6 +574,7 @@ static bool uniwill_readable_reg(struct device *dev, unsigned int reg)case EC_ADDR_CTGP_DB_CTGP_OFFSET :case EC_ADDR_CTGP_DB_TPP_OFFSET :case EC_ADDR_CTGP_DB_DB_OFFSET : +case EC_ADDR_USB_C_POWER_PRIORITY :return true;default :return false;
@@ -587,6 +597,7 @@ static bool uniwill_volatile_reg(struct device *dev, unsigned int reg)case EC_ADDR_TRIGGER :case EC_ADDR_SWITCH_STATUS :case EC_ADDR_CHARGE_CTRL : +case EC_ADDR_USB_C_POWER_PRIORITY :return true;default :return false;
@@ -883,6 +894,104 @@ static int uniwill_nvidia_ctgp_init(struct uniwill_data *data)return 0 ; } +static const char *const usb_c_power_priority_text[] = { + [USB_C_POWER_PRIORITY_CHARGING ] ="charging" , + [USB_C_POWER_PRIORITY_PERFORMANCE ] ="performance" , +}; + +static const u8 usb_c_power_priority_value[] = { + [USB_C_POWER_PRIORITY_CHARGING ] =0 , + [USB_C_POWER_PRIORITY_PERFORMANCE ] =USB_C_POWER_PRIORITY , +}; + +static ssize_t usb_c_power_priority_store (struct device *dev, +struct device_attribute *attr, +const char *buf,size_t count) +{ +struct uniwill_data *data =dev_get_drvdata (dev); +enum usb_c_power_priority_options option; +unsigned int value; +int ret; + + option =sysfs_match_string (usb_c_power_priority_text, buf); +if (option <0 ) +return option; + + value = usb_c_power_priority_value[option]; + +guard (mutex)(&data->usb_c_power_priority_lock); + + ret =regmap_update_bits (data->regmap,EC_ADDR_USB_C_POWER_PRIORITY , +USB_C_POWER_PRIORITY , value); +if (ret <0 ) +return ret; + + data->last_usb_c_power_priority_option = option; + +return count; +} + +static ssize_t usb_c_power_priority_show (struct device *dev, +struct device_attribute *attr, +char *buf) +{ +struct uniwill_data *data =dev_get_drvdata (dev); +unsigned int value; +int ret; + + ret =regmap_read (data->regmap,EC_ADDR_USB_C_POWER_PRIORITY , &value); +if (ret <0 ) +return ret; + + value &=USB_C_POWER_PRIORITY ; + +if (usb_c_power_priority_value[USB_C_POWER_PRIORITY_PERFORMANCE ] == value) +return sysfs_emit (buf,"%s\n" , + usb_c_power_priority_text[USB_C_POWER_PRIORITY_PERFORMANCE ]); + +return sysfs_emit (buf,"%s\n" , usb_c_power_priority_text[USB_C_POWER_PRIORITY_CHARGING ]); +} + +static DEVICE_ATTR_RW (usb_c_power_priority); + +static int usb_c_power_priority_restore (struct uniwill_data *data) +{ +unsigned int value; + + value = usb_c_power_priority_value[data->last_usb_c_power_priority_option]; + +guard (mutex)(&data->usb_c_power_priority_lock); + +return regmap_update_bits (data->regmap,EC_ADDR_USB_C_POWER_PRIORITY , +USB_C_POWER_PRIORITY , value); +} + +static int usb_c_power_priority_init (struct uniwill_data *data) +{ +unsigned int value; +int ret; + +if (!uniwill_device_supports (data,UNIWILL_FEATURE_USB_C_POWER_PRIORITY )) +return 0 ; + + ret =devm_mutex_init (data->dev, &data->usb_c_power_priority_lock); +if (ret <0 ) +return ret; + + ret =regmap_read (data->regmap,EC_ADDR_USB_C_POWER_PRIORITY , &value); +if (ret <0 ) +return ret; + + value &=USB_C_POWER_PRIORITY ; + + data->last_usb_c_power_priority_option = + usb_c_power_priority_value[USB_C_POWER_PRIORITY_PERFORMANCE ] == value ? +USB_C_POWER_PRIORITY_PERFORMANCE : +USB_C_POWER_PRIORITY_CHARGING ; + +return 0 ; +} +static struct attribute *uniwill_attrs[] = {/* Keyboard-related */ &dev_attr_fn_lock.attr,
@@ -893,6 +1002,7 @@ static struct attribute *uniwill_attrs[] = { &dev_attr_breathing_in_suspend.attr,/* Power-management-related */ &dev_attr_ctgp_offset.attr, + &dev_attr_usb_c_power_priority.attr, NULL };
@@ -927,6 +1037,11 @@ static umode_t uniwill_attr_is_visible(struct kobject *kobj, struct attribute *areturn attr->mode; } +if (attr == &dev_attr_usb_c_power_priority.attr) { +if (uniwill_device_supports (data,UNIWILL_FEATURE_USB_C_POWER_PRIORITY )) +return attr->mode; + } +return 0 ; }
@@ -1417,11 +1532,10 @@ static int uniwill_notifier_call(struct notifier_block *nb, unsigned long actionreturn NOTIFY_OK ;case UNIWILL_OSD_DC_ADAPTER_CHANGED : -/* noop for the time being, will change once charging priority -* gets implemented. -*/ +if (!uniwill_device_supports (data,UNIWILL_FEATURE_USB_C_POWER_PRIORITY )) +return NOTIFY_DONE ; -return NOTIFY_OK ; +return notifier_from_errno (usb_c_power_priority_restore (data));case UNIWILL_OSD_FN_LOCK :if (!uniwill_device_supports (data,UNIWILL_FEATURE_FN_LOCK ))return NOTIFY_DONE ;
@@ -1515,6 +1629,7 @@ static int uniwill_probe(struct platform_device *pdev)return PTR_ERR (regmap); data->regmap = regmap; + ret =devm_mutex_init (&pdev->dev, &data->super_key_lock);if (ret <0 )return ret;
@@ -1552,6 +1667,10 @@ static int uniwill_probe(struct platform_device *pdev)if (ret <0 )return ret; + ret =usb_c_power_priority_init (data); +if (ret <0 ) +return ret; +return uniwill_input_init (data); }
@@ -1681,6 +1800,14 @@ static int uniwill_resume_nvidia_ctgp(struct uniwill_data *data) CTGP_DB_DB_ENABLE | CTGP_DB_CTGP_ENABLE); } +static int uniwill_resume_usb_c_power_priority (struct uniwill_data *data) +{ +if (!uniwill_device_supports (data,UNIWILL_FEATURE_USB_C_POWER_PRIORITY )) +return 0 ; + +return usb_c_power_priority_restore (data); +} +static int uniwill_resume (struct device *dev) {struct uniwill_data *data =dev_get_drvdata (dev);
@@ -1704,7 +1831,11 @@ static int uniwill_resume(struct device *dev)if (ret <0 )return ret; -return uniwill_resume_nvidia_ctgp (data); + ret =uniwill_resume_nvidia_ctgp (data); +if (ret <0 ) +return ret; + +return uniwill_resume_usb_c_power_priority (data); } static DEFINE_SIMPLE_DEV_PM_OPS(uniwill_pm_ops, uniwill_suspend, uniwill_resume);
Signature · 1 line
2.43.0
PATCH v8 3/5 platform/x86: uniwill-laptop: Fix XMG Fusion 15 (L19) entries
In reply to Werner SembachAdd alternative XMG Fusion system vendor name and clarify edition in ident.
--- drivers/platform/x86/uniwill/uniwill-acpi.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-)
drivers/platform/x86/uniwill/uniwill-acpi.c +18 -2
@@ -1911,7 +1911,7 @@ static struct uniwill_device_descriptor empty_descriptor __initdata = {};static const struct dmi_system_id uniwill_dmi_table[]__initconst = { { - .ident ="XMG FUSION 15" , + .ident ="XMG FUSION 15 (L19)" , .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"SchenkerTechnologiesGmbH" ),DMI_EXACT_MATCH (DMI_BOARD_NAME ,"LAPQC71A" ),
@@ -1919,13 +1919,29 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = { .driver_data = &empty_descriptor, }, { - .ident = "XMG FUSION 15", + .ident = "XMG FUSION 15 (L19)", .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"SchenkerTechnologiesGmbH" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71B"), }, .driver_data = &empty_descriptor, }, + { + .ident ="XMG FUSION 15 (L19)" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71A"), + }, + .driver_data = &empty_descriptor, + }, + { + .ident ="XMG FUSION 15 (L19)" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71B"), + }, + .driver_data = &empty_descriptor, + }, { .ident ="Intel NUC x15" , .matches = {
Signature · 1 line
2.43.0
PATCH v8 4/5 platform/x86: uniwill-laptop: Apply features across all TUXEDO devices
In reply to Werner SembachUses the more fine granular and/or new feature defines to enable more features across the TUXEDO device lineup.
Also adds features to TUXEDO devices that where already present in the driver, but not tested until now.
--- drivers/platform/x86/uniwill/uniwill-acpi.c | 210 ++++++++++++++------ 1 file changed, 154 insertions(+), 56 deletions(-)
drivers/platform/x86/uniwill/uniwill-acpi.c +154 -56
@@ -110,6 +110,8 @@#define EC_ADDR_BAT_CYCLE_COUNT_2 0x04A7#define EC_ADDR_PROJECT_ID 0x0740 +#define PROJECT_ID_PH4TRX1 0x12 +#define PROJECT_ID_PH6TRX1 0x15#define EC_ADDR_AP_OEM 0x0741#define ENABLE_MANUAL_CTRL BIT(0)
@@ -1861,6 +1863,15 @@ static struct platform_driver uniwill_driver = { .shutdown = uniwill_shutdown, }; +static struct uniwill_device_descriptor lapqc71a_lapqc71b_descriptor__initdata = { + .features =UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_BATTERY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN , +}; +static struct uniwill_device_descriptor lapac71h_descriptor__initdata = { .features =UNIWILL_FEATURE_FN_LOCK | UNIWILL_FEATURE_SUPER_KEY |
@@ -1884,6 +1895,85 @@ static struct uniwill_device_descriptor lapkc71f_descriptor __initdata = { UNIWILL_FEATURE_SECONDARY_FAN, }; +/* +* The featuresets below reflect somewhat chronological changes: +* 1 -> 2: UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL is added to the EC firmware. +* 2 -> 3: UNIWILL_FEATURE_USB_C_POWER_PRIORITY is removed from the EC firmware. +* Some devices might divert from this timeline. +*/ + +static struct uniwill_device_descriptor tux_featureset_1_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN | +UNIWILL_FEATURE_USB_C_POWER_PRIORITY , +}; + +static struct uniwill_device_descriptor tux_featureset_1_nvidia_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN | +UNIWILL_FEATURE_USB_C_POWER_PRIORITY , +}; + +static struct uniwill_device_descriptor tux_featureset_2_nvidia_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN | +UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL | +UNIWILL_FEATURE_USB_C_POWER_PRIORITY , +}; + +static struct uniwill_device_descriptor tux_featureset_3_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN , +}; + +static struct uniwill_device_descriptor tux_featureset_3_nvidia_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN | +UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL , +}; + +static int phxtxx1_probe (struct uniwill_data *data) +{ +unsigned int value; +int ret; + + ret =regmap_read (data->regmap,EC_ADDR_PROJECT_ID , &value); +if (ret <0 ) +return ret; + +if (value ==PROJECT_ID_PH4TRX1 || value ==PROJECT_ID_PH6TRX1 ) + data->features |=UNIWILL_FEATURE_SECONDARY_FAN ; + +return 0 ; +}; + +static struct uniwill_device_descriptor phxtxx1_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_USB_C_POWER_PRIORITY , + .probe = phxtxx1_probe, +}; +static int phxarx1_phxaqf1_probe (struct uniwill_data *data) {unsigned int value;
@@ -1894,21 +1984,29 @@ static int phxarx1_phxaqf1_probe(struct uniwill_data *data)return ret;if (value &HAS_GPU ) - data->features |=UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL ; + data->features |=UNIWILL_FEATURE_GPU_TEMP | +UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL ;return 0 ; };static struct uniwill_device_descriptor phxarx1_phxaqf1_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN | +UNIWILL_FEATURE_SECONDARY_FAN | +UNIWILL_FEATURE_USB_C_POWER_PRIORITY , .probe = phxarx1_phxaqf1_probe, }; -static struct uniwill_device_descriptor tux_featureset_1_descriptor__initdata = { - .features =UNIWILL_FEATURE_NVIDIA_CTGP_CONTROL , +static struct uniwill_device_descriptor pf5pu1g_descriptor__initdata = { + .features =UNIWILL_FEATURE_FN_LOCK | +UNIWILL_FEATURE_SUPER_KEY | +UNIWILL_FEATURE_CPU_TEMP | +UNIWILL_FEATURE_PRIMARY_FAN , }; -static struct uniwill_device_descriptor empty_descriptor__initdata = {}; -static const struct dmi_system_id uniwill_dmi_table[]__initconst = { { .ident ="XMG FUSION 15 (L19)" ,
@@ -1916,7 +2014,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"SchenkerTechnologiesGmbH" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71A"), }, - .driver_data = &empty_descriptor, + .driver_data = &lapqc71a_lapqc71b_descriptor, }, { .ident = "XMG FUSION 15 (L19)",
@@ -1924,7 +2022,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"SchenkerTechnologiesGmbH" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71B"), }, - .driver_data = &empty_descriptor, + .driver_data = &lapqc71a_lapqc71b_descriptor, }, { .ident = "XMG FUSION 15 (L19)",
@@ -1932,7 +2030,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71A"), }, - .driver_data = &empty_descriptor, + .driver_data = &lapqc71a_lapqc71b_descriptor, }, { .ident = "XMG FUSION 15 (L19)",
@@ -1940,7 +2038,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "LAPQC71B"), }, - .driver_data = &empty_descriptor, + .driver_data = &lapqc71a_lapqc71b_descriptor, }, { .ident = "Intel NUC x15",
@@ -1964,7 +2062,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PHxTxX1"), }, - .driver_data = &empty_descriptor, + .driver_data = &phxtxx1_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14 Gen6 Intel",
@@ -1972,7 +2070,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PHxTQx1"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14/16 Gen7 Intel",
@@ -1988,7 +2086,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PH6AG01_PH6AQ71_PH6AQI1"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14/16 Gen8 Intel/Commodore Omnia-Book Pro Gen 8",
@@ -1996,7 +2094,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PH4PRX1_PH6PRX1"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14 Gen8 Intel/Commodore Omnia-Book Pro Gen 8",
@@ -2004,7 +2102,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PH4PG31"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 16 Gen8 Intel",
@@ -2012,7 +2110,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PH6PG01_PH6PG71"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14/15 Gen9 AMD",
@@ -2020,7 +2118,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GXxHRXx"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14/15 Gen9 Intel/Commodore Omnia-Book 15 Gen9",
@@ -2028,7 +2126,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GXxMRXx"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14/15 Gen10 AMD",
@@ -2036,7 +2134,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "XxHP4NAx"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 14/15 Gen10 AMD",
@@ -2044,7 +2142,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "XxKK4NAx_XxSP4NAx"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_descriptor, }, { .ident = "TUXEDO InfinityBook Pro 15 Gen10 Intel",
@@ -2052,7 +2150,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "XxAR4NAx"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_descriptor, }, { .ident = "TUXEDO InfinityBook Max 15 Gen10 AMD",
@@ -2060,7 +2158,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X5KK45xS_X5SP45xS"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Max 16 Gen10 AMD",
@@ -2068,7 +2166,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X6HP45xU"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Max 16 Gen10 AMD",
@@ -2076,7 +2174,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X6KK45xU_X6SP45xU"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Max 15 Gen10 Intel",
@@ -2084,7 +2182,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X5AR45xS"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO InfinityBook Max 16 Gen10 Intel",
@@ -2092,7 +2190,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X6AR55xU"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15 Gen1 AMD",
@@ -2100,7 +2198,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1501A1650TI"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15 Gen1 AMD",
@@ -2108,7 +2206,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1501A2060"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 17 Gen1 AMD",
@@ -2116,7 +2214,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1701A1650TI"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 17 Gen1 AMD",
@@ -2124,7 +2222,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1701A2060"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15 Gen1 Intel",
@@ -2132,7 +2230,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1501I1650TI"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15 Gen1 Intel",
@@ -2140,7 +2238,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1501I2060"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 17 Gen1 Intel",
@@ -2148,7 +2246,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1701I1650TI"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 17 Gen1 Intel",
@@ -2156,7 +2254,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "POLARIS1701I2060"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Trinity 15 Intel Gen1",
@@ -2164,7 +2262,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "TRINITY1501I"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Trinity 17 Intel Gen1",
@@ -2172,7 +2270,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "TRINITY1701I"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15/17 Gen2 AMD",
@@ -2180,7 +2278,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxMGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15/17 Gen2 Intel",
@@ -2188,7 +2286,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxNGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris/Polaris 15/17 Gen3 AMD",
@@ -2196,7 +2294,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxZGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris/Polaris 15/17 Gen3 Intel",
@@ -2204,7 +2302,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxTGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris/Polaris 15/17 Gen4 AMD",
@@ -2212,7 +2310,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxRGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 15 Gen4 Intel",
@@ -2220,7 +2318,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxAGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Polaris 15/17 Gen5 AMD",
@@ -2228,7 +2326,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxXGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_2_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16 Gen5 AMD",
@@ -2236,7 +2334,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GM6XGxX"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16/17 Gen5 Intel/Commodore ORION Gen 5",
@@ -2244,7 +2342,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxPXxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris Slim 15 Gen6 AMD",
@@ -2252,7 +2350,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GMxHGxx"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris Slim 15 Gen6 Intel/Commodore ORION Slim 15 Gen6",
@@ -2260,7 +2358,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GM5IXxA"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16 Gen6 Intel/Commodore ORION 16 Gen6",
@@ -2268,7 +2366,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GM6IXxB_MB1"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16 Gen6 Intel/Commodore ORION 16 Gen6",
@@ -2276,7 +2374,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GM6IXxB_MB2"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 17 Gen6 Intel/Commodore ORION 17 Gen6",
@@ -2284,7 +2382,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "GM7IXxN"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16 Gen7 AMD",
@@ -2292,7 +2390,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X6FR5xxY"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16 Gen7 Intel",
@@ -2300,7 +2398,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X6AR5xxY"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Stellaris 16 Gen7 Intel",
@@ -2308,7 +2406,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "X6AR5xxY_mLED"), }, - .driver_data = &tux_featureset_1_descriptor, + .driver_data = &tux_featureset_3_nvidia_descriptor, }, { .ident = "TUXEDO Book BA15 Gen10 AMD",
@@ -2316,7 +2414,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PF5PU1G"), }, - .driver_data = &empty_descriptor, + .driver_data = &pf5pu1g_descriptor, }, { .ident = "TUXEDO Pulse 14 Gen1 AMD",
@@ -2324,7 +2422,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PULSE1401"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_descriptor, }, { .ident = "TUXEDO Pulse 15 Gen1 AMD",
@@ -2332,7 +2430,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = {DMI_MATCH (DMI_SYS_VENDOR ,"TUXEDO" ), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PULSE1501"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_descriptor, }, { .ident = "TUXEDO Pulse 15 Gen2 AMD",
@@ -2340,7 +2438,7 @@ static const struct dmi_system_id uniwill_dmi_table[] __initconst = { DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), DMI_EXACT_MATCH(DMI_BOARD_NAME, "PF5LUXG"), }, - .driver_data = &empty_descriptor, + .driver_data = &tux_featureset_1_descriptor, }, { } };
Signature · 1 line
2.43.0
PATCH v8 5/5 Documentation: laptops: Update documentation for uniwill laptops
In reply to Werner SembachAdds short description for two new sysfs entries, ctgp_offset and usb_c_power_priority, to the documentation of uniwill laptops.
--- .../ABI/testing/sysfs-driver-uniwill-laptop | 27 +++++++++++++++++++ .../admin-guide/laptops/uniwill-laptop.rst | 12 +++++++++ 2 files changed, 39 insertions(+)
Documentation/ABI/testing/sysfs-driver-uniwill-laptop +27 -0
@@ -51,3 +51,30 @@ Description: Reading this file returns the current status of the breathing animation functionality. + +What: /sys/bus/platform/devices/INOU0000:XX/ctgp_offset +Date: January 2026 +KernelVersion: 7.0 +Contact: Werner Sembach <[email protected]> +Description: + Allows userspace applications to set the configurable TGP offset on top of the base + TGP. Base TGP and max TGP and therefore the max cTGP offset are device specific. + Note that setting the maximum cTGP leaves no window open for Dynamic Boost as + Dynamic Boost also can not go over max TGP. Setting the cTGP to maximum is + effectively disabling Dynamic Boost and telling the device to always prioritize the + GPU over the CPU. + + Reading this file returns the current configurable TGP offset. + +What: /sys/bus/platform/devices/INOU0000:XX/usb_c_power_priority +Date: February 2026 +KernelVersion: 7.1 +Contact: Werner Sembach <[email protected]> +Description: + Allows userspace applications to choose the USB-C power distribution profile between + one that offers a bigger share of the power to the battery and one that offers more + of it to the CPU. Writing "charging"/"performance" into this file selects the + respective profile. + + Reading this file returns the profile names with the currently active one in + brackets.
Documentation/admin-guide/laptops/uniwill-laptop.rst +12 -0
@@ -50,6 +50,10 @@ between 1 and 100 percent are supported. Additionally the driver signals the presence of battery charging issues through the standard ``health`` power supply sysfs attribute. +It also lets you set whether a USB-C power source should prioritise charging the battery or +delivering immediate power to the cpu. See Documentation/ABI/testing/sysfs-driver-uniwill-laptop for +details. + Lightbar --------
@@ -58,3 +62,11 @@ LED class device. The default name of this LED class device is ``uniwill:multico See Documentation/ABI/testing/sysfs-driver-uniwill-laptop for details on how to control the various animation modes of the lightbar. + +Configurable TGP +---------------- + +The ``uniwill-laptop`` driver allows to set the configurable TGP for devices with NVIDIA GPUs that +allow it. + +See Documentation/ABI/testing/sysfs-driver-uniwill-laptop for details.
Signature · 1 line
2.43.0
Ilpo Järvinen
maintainerQuoted 6 lines · Werner Sembach
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority functions Add missing mutex inusb_c_power_priority_restore
Quoted 8 lines
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentation
Hi,
Does this conflict with something that went through the fixes branch? I tried applying this through for-next and get fails so I guess I'll have to merge fixes to for-next before I can apply this.
It would be nice to mention any known conflicts in the coverletter.
Signature · 1 line
i.
Hi,
Am 25.03.26 um 13:40 schrieb Ilpo Järvinen:
Quoted 16 lines · Werner Sembach
Quoted 15 lines
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority functions Add missing mutex inusb_c_power_priority_restore
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by
Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentation
Quoted 7 lines
Hi,
Does this conflict with something that went through the fixes branch? I tried applying this through for-next and get fails so I guess I'll have to merge fixes to for-next before I can apply this.
It would be nice to mention any known conflicts in the coverletter.
sorry, I thought the base-commit line was enough
it applies cleanly to v7.0-rc3 and v7.0-rc4
earlier rc versions of 7.0 are missing a required patch
maybe for-next is not yet rebased on the latest rc?
I will have a look
Quoted 1 line
Ilpo Järvinen
maintainerQuoted 26 lines · Werner Sembach
Hi,
Am 25.03.26 um 13:40 schrieb Ilpo Järvinen:
Quoted 23 lines · Werner Sembach
Quoted 16 lines
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority
functions
Add missing mutex inusb_c_power_priority_restore
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by
Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentationHi,
Does this conflict with something that went through the fixes branch? I tried applying this through for-next and get fails so I guess I'll have to merge fixes to for-next before I can apply this.
Quoted 7 lines
Quoted 1 line
It would be nice to mention any known conflicts in the coverletter.
sorry, I thought the base-commit line was enough
it applies cleanly to v7.0-rc3 and v7.0-rc4
earlier rc versions of 7.0 are missing a required patch
Okay, so there's a dependency for some commit that went through 'fixes'?
Quoted 1 line
maybe for-next is not yet rebased on the latest rc?
'fixes' and 'for-next' are sort of independent normally. Both are based at -rc1.
I don't rebase 'for-next' from -rc1. If there's a conflict or some 'fixes' commit needed for a work to be done in 'for-next', I'll resolve those by merging 'fixes' changes back into 'for-next.
Quoted 1 line
I will have a look
Signature · 1 line
i.
Hi,
Am 25.03.26 um 14:06 schrieb Ilpo Järvinen:
Quoted 31 lines · Werner Sembach
Quoted 30 lines
Hi,
Am 25.03.26 um 13:40 schrieb Ilpo Järvinen:
Quoted 17 lines · Werner Sembach
Quoted 16 lines
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority
functions
Add missing mutex inusb_c_power_priority_restore
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by
Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentationQuoted 7 lines
Hi,
Does this conflict with something that went through the fixes branch? I tried applying this through for-next and get fails so I guess I'll have to merge fixes to for-next before I can apply this.
It would be nice to mention any known conflicts in the coverletter.
sorry, I thought the base-commit line was enough
Quoted 8 lines
Quoted 3 lines
it applies cleanly to v7.0-rc3 and v7.0-rc4
earlier rc versions of 7.0 are missing a required patch
Okay, so there's a dependency for some commit that went through 'fixes'?
Quoted 1 line
maybe for-next is not yet rebased on the latest rc?
'fixes' and 'for-next' are sort of independent normally. Both are based at -rc1.
Ah sorry didn't know that, thought for-next moves along the different rc releases and so I only checked if it applies to torvalds/master.
Quick checked the missing patchset is this one: https://lore.kernel.org/all/[email protected]/ it came in between rc2 and rc3.
Best regards,
Werner
Quoted 6 lines
I don't rebase 'for-next' from -rc1. If there's a conflict or some 'fixes' commit needed for a work to be done in 'for-next', I'll resolve those by merging 'fixes' changes back into 'for-next.
Quoted 1 line
I will have a look
Ilpo Järvinen
maintainerQuoted 43 lines · Werner Sembach
Hi,
Am 25.03.26 um 14:06 schrieb Ilpo Järvinen:
Quoted 31 lines · Werner Sembach
Quoted 30 lines
Hi,
Am 25.03.26 um 13:40 schrieb Ilpo Järvinen:
Quoted 17 lines · Werner Sembach
Quoted 16 lines
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority
functions
Add missing mutex inusb_c_power_priority_restore
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by
Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentationQuoted 7 lines
Hi,
Does this conflict with something that went through the fixes branch? I tried applying this through for-next and get fails so I guess I'll have to merge fixes to for-next before I can apply this.
It would be nice to mention any known conflicts in the coverletter.
sorry, I thought the base-commit line was enough
Quoted 8 lines
Quoted 3 lines
it applies cleanly to v7.0-rc3 and v7.0-rc4
earlier rc versions of 7.0 are missing a required patch
Okay, so there's a dependency for some commit that went through 'fixes'?
Quoted 1 line
maybe for-next is not yet rebased on the latest rc?
'fixes' and 'for-next' are sort of independent normally. Both are based at -rc1.
Quoted 6 lines
Ah sorry didn't know that, thought for-next moves along the different rc releases and so I only checked if it applies to torvalds/master.
Quick checked the missing patchset is this one:
https://lore.kernel.org/all/[email protected]/ it came in between rc2 and rc3.
Thanks, for taking a look. I assumed it that series might be the cause.
I'll pull fixes into for-next once Linus has pulled in the PR I just sent (so I know the commit IDs remain cast into the stone), and then apply your on top into for-next (a tentative plan).
Quoted 5 lines
Quoted 5 lines
I don't rebase 'for-next' from -rc1. If there's a conflict or some 'fixes' commit needed for a work to be done in 'for-next', I'll resolve those by merging 'fixes' changes back into 'for-next.
Quoted 1 line
I will have a look
Signature · 1 line
i.
Ilpo Järvinen
maintainerQuoted 15 lines · Werner Sembach
v2: Incorporate Armins feedback.
v3: Incorporate more of Armins feedback.
Rework USB-C power prio functions
v4: Readd system vendor SchenkerTechnologiesGmbH for XMG FUSION (L19)
Replace for loops with if statements for USB-C power priority functions Add missing mutex inusb_c_power_priority_restore
v5: Restructure patch around new entry for XMG Fusion
Add missing Reviewed-by and Tested-by
Spelling fixes in documentation
v6: Fix small format error in docs
Fix Reviewed-by line
v7: Variable rename to lowercase
v8: Move USB-C power priority init to after probe call
Clarify documentation
Quoted 1 line
[...]
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[1/5] platform/x86: uniwill-laptop: Rework hwmon feature defines
commit: f3660b13495ae47d0ab2755a7b32999fb718ee5c
[2/5] platform/x86: uniwill-laptop: Implement USB-C power priority setting
commit: 03ae0a0d0973b9e584a05136aab08fee2ef8e455
[3/5] platform/x86: uniwill-laptop: Fix XMG Fusion 15 (L19) entries
commit: ab97e28be21181a7f08300de1088f48e9f8274a9
[4/5] platform/x86: uniwill-laptop: Apply features across all TUXEDO devices
commit: a5ee4c959b0efc347cdf6565ebcbc81131ff3677
[5/5] Documentation: laptops: Update documentation for uniwill laptops
commit: 9ec6bf62cf98e30c7126a0f51ee7cdf2e8d458b6--
i.