The NetBSD Project

CVS log for src/sys/arch/x86/pci/amdzentemp.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7.2.6 / (download) - annotate - [select for diffs], Tue Aug 22 16:12:54 2023 UTC (5 months, 4 weeks ago) by martin
Branch: netbsd-8
Changes since 1.7.2.5: +9 -4 lines
Diff to previous 1.7.2.5 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1888):

	sys/arch/x86/pci/amdzentemp.c: revision 1.20
	sys/arch/x86/pci/amdsmn.c: revision 1.17
	sys/arch/x86/pci/amdzentemp.c: revision 1.19

Add Zen4 Ryzen "Phoenix" support.
Add Zen2 Mendocino APU support.
Add Zen4 Phoenix support.

Revision 1.9.2.5 / (download) - annotate - [select for diffs], Tue Aug 22 16:10:21 2023 UTC (5 months, 4 weeks ago) by martin
Branch: netbsd-9
Changes since 1.9.2.4: +9 -4 lines
Diff to previous 1.9.2.4 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1720):

	sys/arch/x86/pci/amdzentemp.c: revision 1.20
	sys/arch/x86/pci/amdsmn.c: revision 1.17
	sys/arch/x86/pci/amdzentemp.c: revision 1.19

Add Zen4 Ryzen "Phoenix" support.
Add Zen2 Mendocino APU support.
Add Zen4 Phoenix support.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Tue Aug 22 16:07:34 2023 UTC (5 months, 4 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.16.2.1: +9 -4 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #335):

	sys/arch/x86/pci/amdzentemp.c: revision 1.20
	sys/arch/x86/pci/amdsmn.c: revision 1.17
	sys/arch/x86/pci/amdzentemp.c: revision 1.19

Add Zen4 Ryzen "Phoenix" support.
Add Zen2 Mendocino APU support.
Add Zen4 Phoenix support.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 28 02:05:26 2023 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.19: +8 -4 lines
Diff to previous 1.19 (colored)

Add Zen2 Mendocino APU support.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jul 28 00:11:15 2023 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Add Zen4 Ryzen "Phoenix" support.

Revision 1.7.2.5 / (download) - annotate - [select for diffs], Wed Jun 21 18:58:22 2023 UTC (8 months ago) by martin
Branch: netbsd-8
Changes since 1.7.2.4: +26 -19 lines
Diff to previous 1.7.2.4 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1825):

	sys/arch/x86/pci/amdsmn.c: revision 1.16
	sys/arch/x86/pci/amdzentemp.c: revision 1.17
	sys/arch/x86/pci/amdzentemp.c: revision 1.18

Reduce diff against DragonFly. No functional change.
amdsmn(4),amdzentemp(4): Add Zen3+ Rembrandt(19h/4xh) & Zen4 Genoa(19h/1xh).

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Wed Jun 21 18:56:58 2023 UTC (8 months ago) by martin
Branch: netbsd-9
Changes since 1.9.2.3: +26 -19 lines
Diff to previous 1.9.2.3 (colored) to branchpoint 1.9 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1644):

	sys/arch/x86/pci/amdsmn.c: revision 1.16
	sys/arch/x86/pci/amdzentemp.c: revision 1.17
	sys/arch/x86/pci/amdzentemp.c: revision 1.18

Reduce diff against DragonFly. No functional change.
amdsmn(4),amdzentemp(4): Add Zen3+ Rembrandt(19h/4xh) & Zen4 Genoa(19h/1xh).

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 16:58:11 2023 UTC (8 months ago) by martin
Branch: netbsd-10
Changes since 1.16: +26 -19 lines
Diff to previous 1.16 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #198):

	sys/arch/x86/pci/amdsmn.c: revision 1.16
	sys/arch/x86/pci/amdzentemp.c: revision 1.17
	sys/arch/x86/pci/amdzentemp.c: revision 1.18

Reduce diff against DragonFly. No functional change.
amdsmn(4),amdzentemp(4): Add Zen3+ Rembrandt(19h/4xh) & Zen4 Genoa(19h/1xh).

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 28 12:36:52 2023 UTC (12 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.17: +14 -2 lines
Diff to previous 1.17 (colored)

amdsmn(4),amdzentemp(4): Add Zen3+ Rembrandt(19h/4xh) & Zen4 Genoa(19h/1xh).

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jan 28 07:45:21 2023 UTC (12 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.16: +14 -19 lines
Diff to previous 1.16 (colored)

Reduce diff against DragonFly. No functional change.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Mon Jan 23 12:28:51 2023 UTC (12 months, 4 weeks ago) by martin
Branch: netbsd-8
Changes since 1.7.2.3: +3 -2 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1789):

	sys/arch/x86/pci/amdzentemp.c: revision 1.16

match zen3 "cezanne" (ryzen 5000-series APU.)

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Mon Jan 23 12:27:33 2023 UTC (12 months, 4 weeks ago) by martin
Branch: netbsd-9
Changes since 1.9.2.2: +3 -2 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1572):

	sys/arch/x86/pci/amdzentemp.c: revision 1.16

match zen3 "cezanne" (ryzen 5000-series APU.)

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 24 21:03:38 2022 UTC (14 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

match zen3 "cezanne" (ryzen 5000-series APU.)

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Tue Oct 11 18:22:44 2022 UTC (16 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.7.2.2: +268 -31 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1773):

	share/man/man4/man4.x86/amdsmn.4		1.4,1.5
	share/man/man4/man4.x86/amdzentemp.4		1.7
	sys/arch/x86/pci/amdsmn.c			1.7-1.9,1.13,1.14
	sys/arch/x86/pci/amdzentemp.c			1.8-1.10,1.12-1.15

adjust for possible 49K offset

presence of this offset is indicated by a set 19th bit which is shifted away
this brings the temperature to "normal" levels on my ryzen 2700
(I assumed the same 49K offset as the k10temp project)

correct for known temperature bias values.

Update to support Family 15h Model 60 temperature sensors.

Changes based on FreeBSD amdtemp driver changes by Conrad Meyer.

XXX: Some code duplication between this driver and amdtemp as
     parts of the 15h refresh code share more in common with
     older CPUs while accessing the device more like 17h.

Don't mix sign and unsigned operands. Just use size_t for the loop.

Apply previous change ("Don't mix sign and unsigned operands. Just use
size_t for the loop.") to another loop variable.

amdzentemp(4): Add Zen 3 support.

amdzentemp(4): Add support for per CCD temperature sensor from FreeBSD.

Fix build failure on i386.

Rename for AMD F15/6X device. No functional change.
amdsmn(4),amdzentemp(4): Add support for 17h/6xh and 19h/6xh.

Note that these drivers are present on some newer AMD Family 15h
processors.

amdsmn.4: Now support AMD Family 19h processors.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Tue Oct 11 18:16:20 2022 UTC (16 months, 1 week ago) by martin
Branch: netbsd-9
Changes since 1.9.2.1: +179 -25 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1539):

	share/man/man4/man4.x86/amdsmn.4: revision 1.5
	sys/arch/x86/pci/amdsmn.c: revision 1.14
	sys/arch/x86/pci/amdzentemp.c: revision 1.12-1.15

amdzentemp(4): Add Zen 3 support.

amdzentemp(4): Add support for per CCD temperature sensor from FreeBSD.

Fix build failure on i386.

amdsmn(4),amdzentemp(4): Add support for 17h/6xh and 19h/6xh.

amdsmn.4: Now support AMD Family 19h processors.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 1 15:50:05 2022 UTC (16 months, 2 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.14: +12 -4 lines
Diff to previous 1.14 (colored)

amdsmn(4),amdzentemp(4): Add support for 17h/6xh and 19h/6xh.

Revision 1.11.6.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:26 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.11: +171 -25 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync w/ HEAD.

Revision 1.11.10.1 / (download) - annotate - [select for diffs], Sun Jun 6 20:30:51 2021 UTC (2 years, 8 months ago) by cjep
Branch: cjep_sun2x
Changes since 1.11: +171 -25 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jun 6 11:35:22 2021 UTC (2 years, 8 months ago) by nonaka
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1
Changes since 1.13: +5 -4 lines
Diff to previous 1.13 (colored)

Fix build failure on i386.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jun 6 08:45:18 2021 UTC (2 years, 8 months ago) by nonaka
Branch: MAIN
Changes since 1.12: +169 -25 lines
Diff to previous 1.12 (colored)

amdzentemp(4): Add support for per CCD temperature sensor from FreeBSD.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 5 01:38:22 2021 UTC (2 years, 8 months ago) by nonaka
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

amdzentemp(4): Add Zen 3 support.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 25 15:26:18 2020 UTC (3 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf, cjep_sun2x
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Merge the bouyer-xenpvh branch, bringing in Xen PV drivers support under HVM
guests in GENERIC.
Xen support can be disabled at runtime with
boot -c
disable hypervisor

Revision 1.9.8.1 / (download) - annotate - [select for diffs], Sat Apr 25 11:23:57 2020 UTC (3 years, 9 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.9: +88 -22 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Fri Apr 24 17:46:44 2020 UTC (3 years, 9 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.9: +88 -22 lines
Diff to previous 1.9 (colored)

Pull up following revision(s) (requested by simonb in ticket #851):

	share/man/man4/man4.x86/amdzentemp.4: revision 1.7
	share/man/man4/man4.x86/amdsmn.4: revision 1.4
	sys/arch/x86/pci/amdsmn.c: revision 1.7
	sys/arch/x86/pci/amdsmn.c: revision 1.8
	sys/arch/x86/pci/amdsmn.c: revision 1.9
	sys/arch/x86/pci/amdzentemp.c: revision 1.10

Update to support Family 15h Model 60 temperature sensors.

Changes based on FreeBSD amdtemp driver changes by Conrad Meyer.
XXX: Some code duplication between this driver and amdtemp as
     parts of the 15h refresh code share more in common with
     older CPUs while accessing the device more like 17h.
--
Note that these drivers are present on some newer AMD Family 15h
processors.
--
Don't mix sign and unsigned operands. Just use size_t for the loop.
--
Apply previous change ("Don't mix sign and unsigned operands. Just use
size_t for the loop.") to another loop variable.
--

Revision 1.7.6.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:12 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.7.6.2: +86 -20 lines
Diff to previous 1.7.6.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 20 11:03:02 2020 UTC (3 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2
Changes since 1.9: +88 -22 lines
Diff to previous 1.9 (colored)

Update to support Family 15h Model 60 temperature sensors.

Changes based on FreeBSD amdtemp driver changes by Conrad Meyer.

XXX: Some code duplication between this driver and amdtemp as
     parts of the 15h refresh code share more in common with
     older CPUs while accessing the device more like 17h.

Revision 1.7.6.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:11 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.7.6.1: +17 -3 lines
Diff to previous 1.7.6.1 (colored) to branchpoint 1.7 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 16 09:12:51 2019 UTC (4 years, 8 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, bouyer-xenpvh-base1, bouyer-xenpvh-base, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-9, bouyer-xenpvh
Changes since 1.8: +17 -3 lines
Diff to previous 1.8 (colored)

correct for known temperature bias values.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:53 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

Sync with HEAD

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:42 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 25 19:10:41 2018 UTC (5 years, 6 months ago) by para
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, isaki-audio2-base, isaki-audio2
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

adjust for possible 49K offset

presence of this offset is indicated by a set 19th bit which is shifted away
this brings the temperature to "normal" levels on my ryzen 2700
(I assumed the same 49K offset as the k10temp project)

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Feb 5 13:06:55 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.7.2.1: +252 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #524):

	distrib/sets/lists/man/mi                       1.1574
	distrib/sets/lists/modules/md.amd64             1.73
	distrib/sets/lists/modules/md.i386              1.76
	share/man/man4/amdtemp.4                        1.11
	share/man/man4/man4.x86/Makefile                1.17
	share/man/man4/man4.x86/amdsmn.4                1.1-1.3
	share/man/man4/man4.x86/amdzentemp.4            1.1-1.6
	sys/arch/amd64/conf/ALL                         1.79,1.80
	sys/arch/amd64/conf/GENERIC                     1.482,1.484
	sys/arch/amd64/conf/XEN3_DOM0                   1.146,1.147
	sys/arch/x86/pci/amdsmn.c                       1.1-1.2
	sys/arch/x86/pci/amdsmn.h                       1.1
	sys/arch/x86/pci/amdzentemp.c                   1.1-1.7
	sys/arch/x86/pci/files.pci                      1.22,1.23
	sys/modules/amdzentemp/amdzentemp.ioconf        1.2


Add amdzentemp from FreeBSD via Ian Clark.

man pages for amdsmn and amdzentemp.

Some clean-up on the HISTORY and AUTHORS sections, and addition of a BUGS
section to document the fact that we don't yet handle the required temp
offset, nor do we expose the available thermal-trip value.

Add missing article 'a'

KNF: Put back the blank line following the empty variable declarations
Put back the variable declaration, too, and mark it __diagused
Otherwise a DIAGNOSTIC kernel will complain about the variable being
undeclared.

Correct placement of __diagused attribute.

Modularize the amdsmn(4) driver, and update dependency for amdzentemp(4),
Create amdsmn(4) amd amdzentemp(4) modules for X86.

Revision 1.7.2.1, Fri Jan 26 23:01:44 2018 UTC (6 years ago) by martin
Branch: netbsd-8
Changes since 1.7: +0 -252 lines
FILE REMOVED

file amdzentemp.c was added on branch netbsd-8 on 2018-02-05 13:06:55 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 26 23:01:44 2018 UTC (6 years ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.6: +4 -6 lines
Diff to previous 1.6 (colored)

sc->sc_sensor cannot be NULL since it was just allocated with KM_SLEEP
(which cannot fail).  So remove the NULL-check.  CID/1428644

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 25 23:37:33 2018 UTC (6 years ago) by pgoyette
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Modularize the amdsmn(4) driver, and update dependency for amdzentemp(4)

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 25 22:37:42 2018 UTC (6 years ago) by pgoyette
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Correct placement of __diagused attribute

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 25 22:14:01 2018 UTC (6 years ago) by pgoyette
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

Put back the variable declaration, too, and mark it __diagused

Otherwise a DIAGNOSTIC kernel will complain about the variable being
undeclared.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 25 21:23:36 2018 UTC (6 years ago) by pgoyette
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

KNF: Put back the blank line following the empty variable declarations

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 25 15:01:05 2018 UTC (6 years ago) by prlw1
Branch: MAIN
Changes since 1.1: +2 -4 lines
Diff to previous 1.1 (colored)

Unused variable build fix. (now void *aux is unused)

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jan 25 01:22:21 2018 UTC (6 years ago) by christos
Branch: MAIN

Add amdzentemp from FreeBSD via Ian Clark

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>