platform/x86: hp-wmi: Add support for Victus 16-r0xxx (8BC2)
PATCH 1/1 platform/x86: hp-wmi: Add support for Victus 16-r0xxx (8BC2)
The HP Victus 16-r0xxx (board ID: 8BC2) has the same WMI as other Victus S boards, but requires quirks for correctly switching thermal profile.
Add the DMI board name to victus_s_thermal_profile_boards[] table and map it to omen_v1_thermal_params.
Testing on board 8BC2 confirmed that platform profile is registered successfully and fan RPMs are readable and controllable.
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +4 -0
@@ -213,6 +213,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCD") }, .driver_data = (void *)&omen_v1_thermal_params, }, + { + .matches = {DMI_MATCH(DMI_BOARD_NAME, "8BC2")}, + .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BD4") }, .driver_data = (void *)&victus_s_thermal_params,
Signature · 1 line
2.54.0
Ilpo Järvinen
maintainerQuoted 20 lines · Haichen Feng
The HP Victus 16-r0xxx (board ID: 8BC2) has the same WMI as other Victus S boards, but requires quirks for correctly switching thermal profile.
Add the DMI board name to victus_s_thermal_profile_boards[] table and map it to
omen_v1_thermal_params.Testing on board 8BC2 confirmed that platform profile is registered successfully and fan RPMs are readable and controllable.
Signed-off-by Haichen Feng <[email protected]>--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/platform/x86/hp/hp-wmi.c +0
-0
drivers/platform/x86/hp/hp-wmi.c static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst · line 217
Quoted 5 lines
drivers/platform/x86/hp/hp-wmi.c +2
-0@@ -213,6 +213,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCD") }, .driver_data = (void *)&omen_v1_thermal_params, }, + { + .matches = {DMI_MATCH(DMI_BOARD_NAME, "8BC2")},
Please place it into the correct place (8BC2 < 8BC[AD]) in the array.
Quoted 6 lines
drivers/platform/x86/hp/hp-wmi.c +2
-0+ .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BD4") }, .driver_data = (void *)&victus_s_thermal_params,
Signature · 1 line
i.
PATCH v2 1/1 platform/x86: hp-wmi: Add support for Victus 16-r0xxx (8BC2)
The HP Victus 16-r0xxx (board ID: 8BC2) has the same WMI as other Victus S boards, but requires quirks for correctly switching thermal profile.
Add the DMI board name to victus_s_thermal_profile_boards[] table and map it to omen_v1_thermal_params.
Testing on board 8BC2 confirmed that platform profile is registered successfully and fan RPMs are readable and controllable.
---
Change in v2:
- Move 8BC2 matching code to correct place
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +4 -0
@@ -209,6 +209,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCA") }, .driver_data = (void *)&omen_v1_thermal_params, }, + { + .matches = {DMI_MATCH(DMI_BOARD_NAME, "8BC2")}, + .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCD") }, .driver_data = (void *)&omen_v1_thermal_params,
Signature · 1 line
2.54.0
Sorry for write wrong patch. It is my mistake. This patch move 8BC2 to the front of 8BCA.
---
Change in v3:
- Move 8BC2 to the front of 8BCA
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +4 -0
@@ -205,6 +205,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BBE") }, .driver_data = (void *)&victus_s_thermal_params, }, + { + .matches = {DMI_MATCH(DMI_BOARD_NAME, "8BC2")}, + .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCA") }, .driver_data = (void *)&omen_v1_thermal_params,
Signature · 1 line
2.54.0
Ilpo Järvinen
maintainerQuoted 2 lines · Haichen Feng
Sorry for write wrong patch. It is my mistake. This patch move 8BC2 to the front of 8BCA.
Hi,
Thanks for the update but here you should describe the change. This text will be directly taken as the commit message of the resulting commit, so think of reviewers of your patch and those reading kernel's commit history later and write to those audiences.
I think the previous version had better text here (but this is based on my memory, I didn't actually go to fetch v2 from archives).
Quoted 4 lines
Signed-off-by Haichen Feng <[email protected]>---
Change in v3:
- Move 8BC2 to the front of 8BCA
If you want to have extra explanation about the process that got you here which should be put into the commit message, the place for such text is after the --- line like you have tha patch changelog (correctly) here.
Signature · 1 line
i.
Quoted 20 lines
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/platform/x86/hp/hp-wmi.c +4
-0@@ -205,6 +205,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BBE") }, .driver_data = (void *)&victus_s_thermal_params, }, + { + .matches = {DMI_MATCH(DMI_BOARD_NAME, "8BC2")}, + .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCA") }, .driver_data = (void *)&omen_v1_thermal_params,
The HP Victus 16-r0xxx (board ID: 8BC2) has the same WMI as other Victus S boards, but requires quirks for correctly switching thermal profile.
Add the DMI board name to victus_s_thermal_profile_boards[] table and map it to omen_v1_thermal_params.
Testing on board 8BC2 confirmed that platform profile is registered successfully and fan RPMs are readable and controllable.
---
Change in v2:
- Move code to correct place
Change in v3:
- Move code to the front of 8BCA
Change in v4:
- Add explanation about this patch
- Insert a space at the second parenthesis in 8BC2 line
--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +4 -0
@@ -205,6 +205,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BBE") }, .driver_data = (void *)&victus_s_thermal_params, }, + { + .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BC2") }, + .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCA") }, .driver_data = (void *)&omen_v1_thermal_params,
Signature · 1 line
2.54.0
Ilpo Järvinen
maintainerQuoted 30 lines · Haichen Feng
The HP Victus 16-r0xxx (board ID: 8BC2) has the same WMI as other Victus S boards, but requires quirks for correctly switching thermal profile.
Add the DMI board name to victus_s_thermal_profile_boards[] table and map it to
omen_v1_thermal_params.Testing on board 8BC2 confirmed that platform profile is registered successfully and fan RPMs are readable and controllable.
Signed-off-by Haichen Feng <[email protected]>---
Change in v2:
- Move code to correct placeChange in v3:
- Move code to the front of 8BCAChange in v4:
- Add explanation about this patch
- Insert a space at the second parenthesis in 8BC2 line--- drivers/platform/x86/hp/hp-wmi.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/platform/x86/hp/hp-wmi.c +0
-0
drivers/platform/x86/hp/hp-wmi.c static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst · line 214
Quoted 10 lines
drivers/platform/x86/hp/hp-wmi.c +4
-0@@ -205,6 +205,10 @@ static const struct dmi_system_id victus_s_thermal_profile_boards[] __initconst .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BBE") }, .driver_data = (void *)&victus_s_thermal_params, }, + { + .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BC2") }, + .driver_data = (void *)&omen_v1_thermal_params, + }, { .matches = { DMI_MATCH(DMI_BOARD_NAME, "8BCA") }, .driver_data = (void *)&omen_v1_thermal_params,
Hi,
Can you please resend this v4 into a new thread. b4 I use while applying patches seems to unable to capture it from here and gets the wrong version.
Signature · 1 line
i.