Skip to content

Commit 6343e06

Browse files
committed
Merge branch 'fixes' of into for-next
2 parents 2ccbdb6 + 4b11f23 commit 6343e06

27 files changed

Lines changed: 519 additions & 47 deletions

Documentation/admin-guide/laptops/alienware-wmi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ information.
105105

106106
Manual fan control on the other hand, is not exposed directly by the AWCC
107107
interface. Instead it let's us control a fan `boost` value. This `boost` value
108-
has the following aproximate behavior over the fan pwm:
108+
has the following approximate behavior over the fan pwm:
109109

110110
::
111111

Documentation/arch/x86/amd_hsmp.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set of mailbox registers.
1414

1515
More details on the interface can be found in chapter
1616
"7 Host System Management Port (HSMP)" of the family/model PPR
17-
Eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip
17+
Eg: https://docs.amd.com/v/u/en-US/55898_B1_pub_0_50
1818

1919

2020
HSMP interface is supported on EPYC line of server CPUs and MI300A (APU).
@@ -185,7 +185,7 @@ what happened. The transaction returns 0 on success.
185185

186186
More details on the interface and message definitions can be found in chapter
187187
"7 Host System Management Port (HSMP)" of the respective family/model PPR
188-
eg: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip
188+
eg: https://docs.amd.com/v/u/en-US/55898_B1_pub_0_50
189189

190190
User space C-APIs are made available by linking against the esmi library,
191191
which is provided by the E-SMS project https://www.amd.com/en/developer/e-sms.html.

Documentation/misc-devices/amd-sbi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and SB Temperature Sensor Interface (SB-TSI)).
1515
More details on the interface can be found in chapter
1616
"5 Advanced Platform Management Link (APML)" of the family/model PPR [1]_.
1717

18-
.. [1] https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/programmer-references/55898_B1_pub_0_50.zip
18+
.. [1] https://docs.amd.com/v/u/en-US/55898_B1_pub_0_50
1919
2020
2121
SBRMI device

drivers/platform/mellanox/mlx-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7381,7 +7381,7 @@ static int __init mlxplat_dmi_ng400_hi171_matched(const struct dmi_system_id *dm
73817381
mlxplat_hotplug = &mlxplat_mlxcpld_ng800_hi171_data;
73827382
mlxplat_hotplug->deferred_nr =
73837383
mlxplat_msn21xx_channels[MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
7384-
mlxplat_led = &mlxplat_default_ng_led_data;
7384+
mlxplat_led = &mlxplat_xdr_led_data;
73857385
mlxplat_regs_io = &mlxplat_default_ng_regs_io_data;
73867386
mlxplat_fan = &mlxplat_xdr_fan_data;
73877387

drivers/platform/mellanox/mlxbf-pmc.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -801,18 +801,18 @@ static const struct mlxbf_pmc_events mlxbf_pmc_llt_miss_events[] = {
801801
{11, "GDC_MISS_MACHINE_CHI_TXDAT"},
802802
{12, "GDC_MISS_MACHINE_CHI_RXDAT"},
803803
{13, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC0_0"},
804-
{14, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC0_1 "},
804+
{14, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC0_1"},
805805
{15, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC0_2"},
806-
{16, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC0_3 "},
807-
{17, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_0 "},
808-
{18, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_1 "},
809-
{19, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_2 "},
810-
{20, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_3 "},
806+
{16, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC0_3"},
807+
{17, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_0"},
808+
{18, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_1"},
809+
{19, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_2"},
810+
{20, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC1_3"},
811811
{21, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE0_0"},
812812
{22, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE0_1"},
813813
{23, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE0_2"},
814814
{24, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE0_3"},
815-
{25, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE1_0 "},
815+
{25, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE1_0"},
816816
{26, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE1_1"},
817817
{27, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE1_2"},
818818
{28, "GDC_MISS_MACHINE_G_FIFO_FF_EXEC_DONE1_3"},

drivers/platform/x86/acer-wmi.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ static struct quirk_entry quirk_acer_travelmate_2490 = {
455455
.mailled = 1,
456456
};
457457

458+
static struct quirk_entry quirk_acer_nitro_an515_58 = {
459+
.predator_v4 = 1,
460+
.pwm = 1,
461+
};
462+
458463
static struct quirk_entry quirk_acer_predator_ph315_53 = {
459464
.turbo = 1,
460465
.cpu_fans = 1,
@@ -655,7 +660,7 @@ static const struct dmi_system_id acer_quirks[] __initconst = {
655660
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
656661
DMI_MATCH(DMI_PRODUCT_NAME, "Nitro AN515-58"),
657662
},
658-
.driver_data = &quirk_acer_predator_v4,
663+
.driver_data = &quirk_acer_nitro_an515_58,
659664
},
660665
{
661666
.callback = dmi_matched,
@@ -2065,7 +2070,8 @@ static int acer_toggle_turbo(void)
20652070
WMID_gaming_set_u64(0x1, ACER_CAP_TURBO_LED);
20662071

20672072
/* Set FAN mode to auto */
2068-
WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_AUTO);
2073+
if (has_cap(ACER_CAP_TURBO_FAN))
2074+
WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_AUTO);
20692075

20702076
/* Set OC to normal */
20712077
if (has_cap(ACER_CAP_TURBO_OC)) {
@@ -2079,7 +2085,8 @@ static int acer_toggle_turbo(void)
20792085
WMID_gaming_set_u64(0x10001, ACER_CAP_TURBO_LED);
20802086

20812087
/* Set FAN mode to turbo */
2082-
WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_TURBO);
2088+
if (has_cap(ACER_CAP_TURBO_FAN))
2089+
WMID_gaming_set_fan_mode(ACER_WMID_FAN_MODE_TURBO);
20832090

20842091
/* Set OC to turbo mode */
20852092
if (has_cap(ACER_CAP_TURBO_OC)) {

drivers/platform/x86/amd/wbrf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ static int wbrf_record(struct acpi_device *adev, uint8_t action, struct wbrf_ran
104104
obj = acpi_evaluate_dsm(adev->handle, &wifi_acpi_dsm_guid,
105105
WBRF_REVISION, WBRF_RECORD, &argv4);
106106

107-
if (!obj)
107+
if (!obj) {
108+
kfree(tmp);
108109
return -EINVAL;
110+
}
109111

110112
if (obj->type != ACPI_TYPE_INTEGER) {
111113
ret = -EINVAL;

0 commit comments

Comments
 (0)