amdtemp(4): Fix typo in a sysctl description- s/temparature/temperature/MFC after: 5 days
newbus: replace leftover device unit wildcardsReviewed by: imp, jhbApproved by: imp (mentor)Differential Revision: https://reviews.freebsd.org/D50913
amdsmn(4), amdtemp(4): Add support for AMD Family 1Ah (Zen5) CPUsI found the '1AH_MxxH_ROOT' PCI device IDs in the Linux "AMD K8Northbridge" driver [1][5]. Since Family 19h (Zen3, Zen4) uses the s
amdsmn(4), amdtemp(4): Add support for AMD Family 1Ah (Zen5) CPUsI found the '1AH_MxxH_ROOT' PCI device IDs in the Linux "AMD K8Northbridge" driver [1][5]. Since Family 19h (Zen3, Zen4) uses the sameregisters as Family 17h (Zen1, Zen2), I tried using those same registersfor Family 1Ah (Zen5) as well, and they worked.I pulled the 1Ah model ranges from Linux as well [2][3][4][6].Added some additional logging under 'bootverbose', and used a localvariable and macro for the stepping, rather than repeatedly using themask directly.Consistently report the CPUID (family, model, stepping) using two,zero-padded, un-prefixed, uppercase nybbles, with an 'h' suffix. This isthe format used in documentation and in Linux.My own testing with various models of Zen4 EPYC 9xx4 ("Genoa") showsthat their CPUID models are in the range 0x10 .. 0x1f. Similar testingwith various models of Zen5 EPYC 9xx5 ("Turin") shows that their CPUIDmodels are in the range 0x00 ... 0x2f.[1] 2023-08-10: https://github.com/torvalds/linux/commit/c640166[2] 2024-01-23: https://github.com/torvalds/linux/commit/3e4147f[3] 2024-01-25: https://github.com/torvalds/linux/commit/b9328fd[4] 2024-04-24: https://github.com/torvalds/linux/commit/2718a7f[5] 2024-07-28: https://github.com/torvalds/linux/commit/59c3400[6] 2024-07-30: https://github.com/torvalds/linux/commit/bf5641eSponsored by: VduraMFC after: 3 daysReviewed by: delphijDifferential Revision: https://reviews.freebsd.org/D50278
show more ...
amdsmn(4), amdtemp(4): add support for Zen 5Zen 5 support, tested on Ryzen 7 9700XPR: 284010MFC after: 1 week
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpusTested on AMD 5700GPR: 284009MFC after: 1 week
amdtemp: add support for AMD Family 19h Models 40h-4FhPR: 281962MFC after: 2 weeks
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processorsAdds support for AMD Ryzen 7 "Phoenix" processors (family 0x19,model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers. This
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processorsAdds support for AMD Ryzen 7 "Phoenix" processors (family 0x19,model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers. Thisenables temperature readings of these CPUs via sysctl.The sensors function identically to those for the "Raphael" processors(model 0x60-0x6f); only the PCI device ID differs.PR: kern/280942Relnotes: yesMFC after: 3 days
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYSponsored by: Netflix
amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh.Tested on AMD Threadripper 7960X.PR: kern/278311Tested by: jboMFC after: 1 week
pci_cfgreg: Add a PCI domain argument to the low-level register APIThis commit changes the API of pci_cfgreg(read|write) to add a domainargument (referred to as a segment in ACPI parlance) (note t
pci_cfgreg: Add a PCI domain argument to the low-level register APIThis commit changes the API of pci_cfgreg(read|write) to add a domainargument (referred to as a segment in ACPI parlance) (note that thisis not the same as a NUMA domain, but something PCI-specific). Thisdoes not yet enable access to domains other than 0, but updates theAPI to support domains.Places that use hard-coded bus/slot/function addresses have beenupdated to hardcode a domain of 0. A few places that have the PCIdomain (segment) available such as the acpi_pcib_acpi.c Host-PCIbridge driver pass the PCI domain.The hpt27xx(4) and hptnr(4) drivers fail to attach to a device not ondomain 0 since they provide APIs to their binary blobs that onlypermit bus/slot/function addressing.The x86 non-ACPI PCI bus drivers all hardcode a domain of 0 as they donot support multiple domains.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D42827
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
amdsmn(4), amdtemp(4): add support for Zen 4Zen 4 support, tested on Ryzen 9 7900Reviewed by: imp (previous version), mhorneApproved by: mhorneObtained from: http://jyurai.ddo.jp/~amorita/diary
amdsmn(4), amdtemp(4): add support for Zen 4Zen 4 support, tested on Ryzen 9 7900Reviewed by: imp (previous version), mhorneApproved by: mhorneObtained from: http://jyurai.ddo.jp/~amorita/diary/?date=20221102#p01Differential Revision: https://reviews.freebsd.org/D41049
amdtemp: Fix missing 49 degree offset on current EPYC CPUsOn an EPYC 7313P, the temperature reported by amdtemp was off, becausethe offset was not applied. Turns out it needs to be applied with on
amdtemp: Fix missing 49 degree offset on current EPYC CPUsOn an EPYC 7313P, the temperature reported by amdtemp was off, becausethe offset was not applied. Turns out it needs to be applied with onemore condition: https://lkml.org/lkml/2023/4/13/1095Reviewed by: mhorneTested by: mike.jakubik@gmail.comMFC after: 1 weekSponsored by: https://www.patreon.com/valpackettPull Request: https://github.com/freebsd/freebsd-src/pull/754
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
dev/amd*: Remove unused devclass arguments to DRIVER_MODULE.
amdtemp: Remove CTLFLAG_NEEDGIANT from sysctls.It seems to be needed only to serialize very old K8 registers access.Introduce separate lock for that and remove Giant dependency.MFC after: 2 weeks
amdtemp: plug set-but-not-used varsSponsored by: Rubicon Communications, LLC ("Netgate")
Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversingchanges made to a10253cffea84c0c980a36ba6776b00ed96c3e3b.A mism
Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversingchanges made to a10253cffea84c0c980a36ba6776b00ed96c3e3b.A mismerge of a merge to catch up to main resulted in files beingcommitted which should not have been.
wpa: Import wpa_supplicant/hostapd commit 14ab4a816This is the November update to vendor/wpa committed upstream 2021-11-26.MFC after: 1 month
amdtemp: Revert related part of "Make CPU children" commit.While it still looks like previous code worked by coincidence, thischange broke things even more instead of fixing.Reported by: avg@MF
amdtemp: Revert related part of "Make CPU children" commit.While it still looks like previous code worked by coincidence, thischange broke things even more instead of fixing.Reported by: avg@MFC after: 1 week
Make CPU children explicitly share parent unit numbers.Before this device unit number match was coincidental and broke if Idisabled some CPU device(s). Aside of cosmetics, for some drivers(may b
Make CPU children explicitly share parent unit numbers.Before this device unit number match was coincidental and broke if Idisabled some CPU device(s). Aside of cosmetics, for some drivers(may be considered broken) it caused talking to wrong CPUs.
amdtemp(4): Add missing Family 17h modelsAdd missing model numbers M20h (Dali, Zen1), M60H (Renoir, Zen2), andM90H (Van Gogh, Zen2).Submitted by: Greg V <greg AT unrelenting.technology>
amdsmn(4), amdtemp(4): add support for Family 19h (Zen 3)Zen 3 "Vermeer" support, tested on Ryzen 9 5950X.Model numbers from https://en.wikichip.org/wiki/amd/cpuid "ExtendedModel" column.Submi
amdsmn(4), amdtemp(4): add support for Family 19h (Zen 3)Zen 3 "Vermeer" support, tested on Ryzen 9 5950X.Model numbers from https://en.wikichip.org/wiki/amd/cpuid "ExtendedModel" column.Submitted by: Greg V <greg AT unrelenting.technology>Differential Revision: https://reviews.freebsd.org/D27552
amdtemp(4), amdsmn(4): Attach to Ryzen 4000 APU (Zen 2, "Renoir")PR: 249864Reported by: Florian Millet <florian.millet AT laposte.net>Tested by: Florian Millet
123