Skip to content

Commit 4663747

Browse files
committed
Merge tag 'platform-drivers-x86-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fixes from Ilpo Järvinen: - amd/hsmp: Timeout handling fixes - amd/pmc: - Clear metrics table at start of cycle - Add PCSpecialist Lafite Pro V 14M to 8042 quirks list - amd/pmf: Fix error handling corner cases (nth attempt) - alienware-wmi-wmax: Revert G-Mode support as it lowers performance - dell_rbu: - Fix sparse lock context warning - Fix list head usage - Don't overwrite data buffer past the size of the last packet - ideapad-laptop: Ensure EC is not polled too frequently - intel-uncore-freq: - Fail module load when plat_info is NULL - Avoid a non-literal format string as it triggers a compiler warning - intel/pmc: Add Lunar Lake and Panther Lake support to SSRAM Telemetry - intel/power-domains: Fix error code in tpmi_init() - samsung-galaxybook: Add support for Notebook 9 Pro and others (SAM0426) * tag 'platform-drivers-x86-v6.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: Revert "platform/x86: alienware-wmi-wmax: Add G-Mode support to Alienware m16 R1" platform/x86/amd/pmc: Add PCSpecialist Lafite Pro V 14M to 8042 quirks list platform/x86/intel-uncore-freq: avoid non-literal format string platform/x86/intel/pmc: Add Panther Lake support to Intel PMC SSRAM Telemetry platform/x86/intel/pmc: Add Lunar Lake support to Intel PMC SSRAM Telemetry MAINTAINERS: .mailmap: Update Hans de Goede's email address platform/x86: dell_rbu: Bump version platform/x86: dell_rbu: Stop overwriting data buffer platform/x86: dell_rbu: Fix list usage platform/x86: dell_rbu: Fix lock context warning platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc() platform/x86/amd: pmf: Prevent amd_pmf_tee_deinit() from running twice platform/x86/amd: pmf: Use device managed allocations x86/platform/amd: replace down_timeout() with down_interruptible() x86/platform/amd: move final timeout check to after final sleep platform/x86/amd: pmc: Clear metrics table at start of cycle platform/x86/intel: power-domains: Fix error code in tpmi_init() platform/x86: samsung-galaxybook: Add SAM0426 platform/x86/intel-uncore-freq: Fail module load when plat_info is NULL platform/x86: ideapad-laptop: use usleep_range() for EC polling
2 parents 9afe652 + e2468dc commit 4663747

File tree

16 files changed

+137
-129
lines changed

16 files changed

+137
-129
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ Gustavo Padovan <[email protected]>
282282
Gustavo Padovan <[email protected]>
283283
284284
285+
285286
286287
287288

MAINTAINERS

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ X: arch/*/include/uapi/
207207
X: include/uapi/
208208

209209
ABIT UGURU 1,2 HARDWARE MONITOR DRIVER
210-
M: Hans de Goede <[email protected]>
210+
M: Hans de Goede <[email protected]>
211211
212212
S: Maintained
213213
F: drivers/hwmon/abituguru.c
@@ -371,7 +371,7 @@ S: Maintained
371371
F: drivers/platform/x86/quickstart.c
372372

373373
ACPI SERIAL MULTI INSTANTIATE DRIVER
374-
M: Hans de Goede <[email protected]>
374+
M: Hans de Goede <[email protected]>
375375
376376
S: Maintained
377377
F: drivers/platform/x86/serial-multi-instantiate.c
@@ -3551,7 +3551,7 @@ F: arch/arm64/boot/Makefile
35513551
F: scripts/make_fit.py
35523552

35533553
ARM64 PLATFORM DRIVERS
3554-
M: Hans de Goede <[email protected]>
3554+
M: Hans de Goede <[email protected]>
35553555
M: Ilpo Järvinen <[email protected]>
35563556
R: Bryan O'Donoghue <[email protected]>
35573557
@@ -3712,7 +3712,7 @@ F: drivers/platform/x86/asus*.c
37123712
F: drivers/platform/x86/eeepc*.c
37133713

37143714
ASUS TF103C DOCK DRIVER
3715-
M: Hans de Goede <[email protected]>
3715+
M: Hans de Goede <[email protected]>
37163716
37173717
S: Maintained
37183718
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
@@ -5614,14 +5614,14 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb.git
56145614
F: drivers/usb/chipidea/
56155615

56165616
CHIPONE ICN8318 I2C TOUCHSCREEN DRIVER
5617-
M: Hans de Goede <[email protected]>
5617+
M: Hans de Goede <[email protected]>
56185618
56195619
S: Maintained
56205620
F: Documentation/devicetree/bindings/input/touchscreen/chipone,icn8318.yaml
56215621
F: drivers/input/touchscreen/chipone_icn8318.c
56225622

56235623
CHIPONE ICN8505 I2C TOUCHSCREEN DRIVER
5624-
M: Hans de Goede <[email protected]>
5624+
M: Hans de Goede <[email protected]>
56255625
56265626
S: Maintained
56275627
F: drivers/input/touchscreen/chipone_icn8505.c
@@ -6919,7 +6919,7 @@ F: include/dt-bindings/pmu/exynos_ppmu.h
69196919
F: include/linux/devfreq-event.h
69206920

69216921
DEVICE RESOURCE MANAGEMENT HELPERS
6922-
M: Hans de Goede <[email protected]>
6922+
M: Hans de Goede <[email protected]>
69236923
R: Matti Vaittinen <[email protected]>
69246924
S: Maintained
69256925
F: include/linux/devm-helpers.h
@@ -7518,7 +7518,7 @@ F: drivers/gpu/drm/gud/
75187518
F: include/drm/gud.h
75197519

75207520
DRM DRIVER FOR GRAIN MEDIA GM12U320 PROJECTORS
7521-
M: Hans de Goede <[email protected]>
7521+
M: Hans de Goede <[email protected]>
75227522
S: Maintained
75237523
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
75247524
F: drivers/gpu/drm/tiny/gm12u320.c
@@ -7918,7 +7918,7 @@ F: drivers/gpu/drm/ci/xfails/vkms*
79187918
F: drivers/gpu/drm/vkms/
79197919

79207920
DRM DRIVER FOR VIRTUALBOX VIRTUAL GPU
7921-
M: Hans de Goede <[email protected]>
7921+
M: Hans de Goede <[email protected]>
79227922
79237923
S: Maintained
79247924
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
@@ -8319,7 +8319,7 @@ F: drivers/gpu/drm/panel/
83198319
F: include/drm/drm_panel.h
83208320

83218321
DRM PRIVACY-SCREEN CLASS
8322-
M: Hans de Goede <[email protected]>
8322+
M: Hans de Goede <[email protected]>
83238323
83248324
S: Maintained
83258325
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
@@ -10223,7 +10223,7 @@ S: Maintained
1022310223
F: Documentation/devicetree/bindings/connector/gocontroll,moduline-module-slot.yaml
1022410224

1022510225
GOODIX TOUCHSCREEN
10226-
M: Hans de Goede <[email protected]>
10226+
M: Hans de Goede <[email protected]>
1022710227
1022810228
S: Maintained
1022910229
F: drivers/input/touchscreen/goodix*
@@ -10262,7 +10262,7 @@ F: include/dt-bindings/clock/google,gs101.h
1026210262
K: [gG]oogle.?[tT]ensor
1026310263

1026410264
GPD POCKET FAN DRIVER
10265-
M: Hans de Goede <[email protected]>
10265+
M: Hans de Goede <[email protected]>
1026610266
1026710267
S: Maintained
1026810268
F: drivers/platform/x86/gpd-pocket-fan.c
@@ -11423,7 +11423,7 @@ F: drivers/i2c/busses/i2c-via.c
1142311423
F: drivers/i2c/busses/i2c-viapro.c
1142411424

1142511425
I2C/SMBUS INTEL CHT WHISKEY COVE PMIC DRIVER
11426-
M: Hans de Goede <[email protected]>
11426+
M: Hans de Goede <[email protected]>
1142711427
1142811428
S: Maintained
1142911429
F: drivers/i2c/busses/i2c-cht-wc.c
@@ -12013,13 +12013,13 @@ S: Supported
1201312013
F: sound/soc/intel/
1201412014

1201512015
INTEL ATOMISP2 DUMMY / POWER-MANAGEMENT DRIVER
12016-
M: Hans de Goede <[email protected]>
12016+
M: Hans de Goede <[email protected]>
1201712017
1201812018
S: Maintained
1201912019
F: drivers/platform/x86/intel/atomisp2/pm.c
1202012020

1202112021
INTEL ATOMISP2 LED DRIVER
12022-
M: Hans de Goede <[email protected]>
12022+
M: Hans de Goede <[email protected]>
1202312023
1202412024
S: Maintained
1202512025
F: drivers/platform/x86/intel/atomisp2/led.c
@@ -13680,7 +13680,7 @@ S: Maintained
1368013680
F: drivers/platform/x86/lenovo-wmi-hotkey-utilities.c
1368113681

1368213682
LETSKETCH HID TABLET DRIVER
13683-
M: Hans de Goede <[email protected]>
13683+
M: Hans de Goede <[email protected]>
1368413684
1368513685
S: Maintained
1368613686
T: git git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
@@ -13730,7 +13730,7 @@ F: drivers/ata/sata_gemini.c
1373013730
F: drivers/ata/sata_gemini.h
1373113731

1373213732
LIBATA SATA AHCI PLATFORM devices support
13733-
M: Hans de Goede <[email protected]>
13733+
M: Hans de Goede <[email protected]>
1373413734
1373513735
S: Maintained
1373613736
F: drivers/ata/ahci_platform.c
@@ -14100,7 +14100,7 @@ F: Documentation/admin-guide/ldm.rst
1410014100
F: block/partitions/ldm.*
1410114101

1410214102
LOGITECH HID GAMING KEYBOARDS
14103-
M: Hans de Goede <[email protected]>
14103+
M: Hans de Goede <[email protected]>
1410414104
1410514105
S: Maintained
1410614106
T: git git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
@@ -14782,7 +14782,7 @@ F: Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml
1478214782
F: drivers/power/supply/max17040_battery.c
1478314783

1478414784
MAXIM MAX17042 FAMILY FUEL GAUGE DRIVERS
14785-
R: Hans de Goede <[email protected]>
14785+
R: Hans de Goede <[email protected]>
1478614786
R: Krzysztof Kozlowski <[email protected]>
1478714787
R: Marek Szyprowski <[email protected]>
1478814788
R: Sebastian Krzyszkowiak <[email protected]>
@@ -15584,7 +15584,7 @@ Q: https://patchwork.kernel.org/project/netdevbpf/list/
1558415584
F: drivers/net/ethernet/mellanox/mlxfw/
1558515585

1558615586
MELLANOX HARDWARE PLATFORM SUPPORT
15587-
M: Hans de Goede <[email protected]>
15587+
M: Hans de Goede <[email protected]>
1558815588
M: Ilpo Järvinen <[email protected]>
1558915589
M: Vadim Pasternak <[email protected]>
1559015590
@@ -16541,7 +16541,7 @@ S: Maintained
1654116541
F: drivers/platform/surface/surface_gpe.c
1654216542

1654316543
MICROSOFT SURFACE HARDWARE PLATFORM SUPPORT
16544-
M: Hans de Goede <[email protected]>
16544+
M: Hans de Goede <[email protected]>
1654516545
M: Ilpo Järvinen <[email protected]>
1654616546
M: Maximilian Luz <[email protected]>
1654716547
@@ -17709,7 +17709,7 @@ F: tools/include/nolibc/
1770917709
F: tools/testing/selftests/nolibc/
1771017710

1771117711
NOVATEK NVT-TS I2C TOUCHSCREEN DRIVER
17712-
M: Hans de Goede <[email protected]>
17712+
M: Hans de Goede <[email protected]>
1771317713
1771417714
S: Maintained
1771517715
F: Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml
@@ -22711,7 +22711,7 @@ K: fu[57]40
2271122711
K: [^@]sifive
2271222712

2271322713
SILEAD TOUCHSCREEN DRIVER
22714-
M: Hans de Goede <[email protected]>
22714+
M: Hans de Goede <[email protected]>
2271522715
2271622716
2271722717
S: Maintained
@@ -22744,7 +22744,7 @@ F: Documentation/devicetree/bindings/i3c/silvaco,i3c-master.yaml
2274422744
F: drivers/i3c/master/svc-i3c-master.c
2274522745

2274622746
SIMPLEFB FB DRIVER
22747-
M: Hans de Goede <[email protected]>
22747+
M: Hans de Goede <[email protected]>
2274822748
2274922749
S: Maintained
2275022750
F: Documentation/devicetree/bindings/display/simple-framebuffer.yaml
@@ -22873,7 +22873,7 @@ F: Documentation/hwmon/emc2103.rst
2287322873
F: drivers/hwmon/emc2103.c
2287422874

2287522875
SMSC SCH5627 HARDWARE MONITOR DRIVER
22876-
M: Hans de Goede <[email protected]>
22876+
M: Hans de Goede <[email protected]>
2287722877
2287822878
S: Supported
2287922879
F: Documentation/hwmon/sch5627.rst
@@ -23528,7 +23528,7 @@ S: Supported
2352823528
F: Documentation/process/stable-kernel-rules.rst
2352923529

2353023530
STAGING - ATOMISP DRIVER
23531-
M: Hans de Goede <[email protected]>
23531+
M: Hans de Goede <[email protected]>
2353223532
M: Mauro Carvalho Chehab <[email protected]>
2353323533
R: Sakari Ailus <[email protected]>
2353423534
@@ -23824,7 +23824,7 @@ F: arch/m68k/sun3*/
2382423824
F: drivers/net/ethernet/i825xx/sun3*
2382523825

2382623826
SUN4I LOW RES ADC ATTACHED TABLET KEYS DRIVER
23827-
M: Hans de Goede <[email protected]>
23827+
M: Hans de Goede <[email protected]>
2382823828
2382923829
S: Maintained
2383023830
F: Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
@@ -25592,7 +25592,7 @@ F: Documentation/hid/hiddev.rst
2559225592
F: drivers/hid/usbhid/
2559325593

2559425594
USB INTEL XHCI ROLE MUX DRIVER
25595-
M: Hans de Goede <[email protected]>
25595+
M: Hans de Goede <[email protected]>
2559625596
2559725597
S: Maintained
2559825598
F: drivers/usb/roles/intel-xhci-usb-role-switch.c
@@ -25783,7 +25783,7 @@ F: Documentation/firmware-guide/acpi/intel-pmc-mux.rst
2578325783
F: drivers/usb/typec/mux/intel_pmc_mux.c
2578425784

2578525785
USB TYPEC PI3USB30532 MUX DRIVER
25786-
M: Hans de Goede <[email protected]>
25786+
M: Hans de Goede <[email protected]>
2578725787
2578825788
S: Maintained
2578925789
F: drivers/usb/typec/mux/pi3usb30532.c
@@ -25812,7 +25812,7 @@ F: drivers/usb/host/uhci*
2581225812

2581325813
USB VIDEO CLASS
2581425814
M: Laurent Pinchart <[email protected]>
25815-
M: Hans de Goede <[email protected]>
25815+
M: Hans de Goede <[email protected]>
2581625816
2581725817
S: Maintained
2581825818
W: http://www.ideasonboard.org/uvc/
@@ -26343,7 +26343,7 @@ F: include/uapi/linux/virtio_snd.h
2634326343
F: sound/virtio/*
2634426344

2634526345
VIRTUAL BOX GUEST DEVICE DRIVER
26346-
M: Hans de Goede <[email protected]>
26346+
M: Hans de Goede <[email protected]>
2634726347
M: Arnd Bergmann <[email protected]>
2634826348
M: Greg Kroah-Hartman <[email protected]>
2634926349
S: Maintained
@@ -26352,7 +26352,7 @@ F: include/linux/vbox_utils.h
2635226352
F: include/uapi/linux/vbox*.h
2635326353

2635426354
VIRTUAL BOX SHARED FOLDER VFS DRIVER
26355-
M: Hans de Goede <[email protected]>
26355+
M: Hans de Goede <[email protected]>
2635626356
2635726357
S: Maintained
2635826358
F: fs/vboxsf/*
@@ -26606,7 +26606,7 @@ F: drivers/mmc/host/wbsd.*
2660626606

2660726607
WACOM PROTOCOL 4 SERIAL TABLETS
2660826608
M: Julian Squires <[email protected]>
26609-
M: Hans de Goede <[email protected]>
26609+
M: Hans de Goede <[email protected]>
2661026610
2661126611
S: Maintained
2661226612
F: drivers/input/tablet/wacom_serial4.c
@@ -26773,7 +26773,7 @@ F: include/linux/wwan.h
2677326773
F: include/uapi/linux/wwan.h
2677426774

2677526775
X-POWERS AXP288 PMIC DRIVERS
26776-
M: Hans de Goede <[email protected]>
26776+
M: Hans de Goede <[email protected]>
2677726777
S: Maintained
2677826778
F: drivers/acpi/pmic/intel_pmic_xpower.c
2677926779
N: axp288
@@ -26865,14 +26865,14 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/mm
2686526865
F: arch/x86/mm/
2686626866

2686726867
X86 PLATFORM ANDROID TABLETS DSDT FIXUP DRIVER
26868-
M: Hans de Goede <[email protected]>
26868+
M: Hans de Goede <[email protected]>
2686926869
2687026870
S: Maintained
2687126871
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
2687226872
F: drivers/platform/x86/x86-android-tablets/
2687326873

2687426874
X86 PLATFORM DRIVERS
26875-
M: Hans de Goede <[email protected]>
26875+
M: Hans de Goede <[email protected]>
2687626876
M: Ilpo Järvinen <[email protected]>
2687726877
2687826878
S: Maintained

drivers/platform/x86/amd/hsmp/hsmp.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static int __hsmp_send_message(struct hsmp_socket *sock, struct hsmp_message *ms
9797
short_sleep = jiffies + msecs_to_jiffies(HSMP_SHORT_SLEEP);
9898
timeout = jiffies + msecs_to_jiffies(HSMP_MSG_TIMEOUT);
9999

100-
while (time_before(jiffies, timeout)) {
100+
while (true) {
101101
ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_resp_off, &mbox_status, HSMP_RD);
102102
if (ret) {
103103
dev_err(sock->dev, "Error %d reading mailbox status\n", ret);
@@ -106,6 +106,10 @@ static int __hsmp_send_message(struct hsmp_socket *sock, struct hsmp_message *ms
106106

107107
if (mbox_status != HSMP_STATUS_NOT_READY)
108108
break;
109+
110+
if (!time_before(jiffies, timeout))
111+
break;
112+
109113
if (time_before(jiffies, short_sleep))
110114
usleep_range(50, 100);
111115
else
@@ -210,13 +214,7 @@ int hsmp_send_message(struct hsmp_message *msg)
210214
return -ENODEV;
211215
sock = &hsmp_pdev.sock[msg->sock_ind];
212216

213-
/*
214-
* The time taken by smu operation to complete is between
215-
* 10us to 1ms. Sometime it may take more time.
216-
* In SMP system timeout of 100 millisecs should
217-
* be enough for the previous thread to finish the operation
218-
*/
219-
ret = down_timeout(&sock->hsmp_sem, msecs_to_jiffies(HSMP_MSG_TIMEOUT));
217+
ret = down_interruptible(&sock->hsmp_sem);
220218
if (ret < 0)
221219
return ret;
222220

drivers/platform/x86/amd/pmc/pmc-quirks.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,15 @@ static const struct dmi_system_id fwbug_list[] = {
225225
DMI_MATCH(DMI_BOARD_NAME, "WUJIE14-GX4HRXL"),
226226
}
227227
},
228+
/* https://bugzilla.kernel.org/show_bug.cgi?id=220116 */
229+
{
230+
.ident = "PCSpecialist Lafite Pro V 14M",
231+
.driver_data = &quirk_spurious_8042,
232+
.matches = {
233+
DMI_MATCH(DMI_SYS_VENDOR, "PCSpecialist"),
234+
DMI_MATCH(DMI_PRODUCT_NAME, "Lafite Pro V 14M"),
235+
}
236+
},
228237
{}
229238
};
230239

drivers/platform/x86/amd/pmc/pmc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ static int amd_pmc_setup_smu_logging(struct amd_pmc_dev *dev)
157157
return -ENOMEM;
158158
}
159159

160+
memset_io(dev->smu_virt_addr, 0, sizeof(struct smu_metrics));
161+
160162
/* Start the logging */
161163
amd_pmc_send_cmd(dev, 0, NULL, SMU_MSG_LOG_RESET, false);
162164
amd_pmc_send_cmd(dev, 0, NULL, SMU_MSG_LOG_START, false);

0 commit comments

Comments
 (0)