Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Support for AMD Family 17h Processors #16
Comments
xpander69
commented
Mar 11, 2017
•
|
Any Updates? |
sjug
commented
Mar 12, 2017
|
Is this tool actively maintained? |
|
Not paid, not 24/7. This was always supposed to be a shadow repository. Unfortunately the main repository is gone. |
sjug
commented
Mar 12, 2017
|
@groeck How much work is it to add sensor compatibility with new processors and motherboards? Ryzen is a pretty big deal, maybe you can crowdfund something if that would help? What can we do to help short of learning C? |
|
Money isn't an issue. Time is. |
xpander69
commented
Mar 12, 2017
|
thanks for explaining. |
|
Datasheet for Family 17h CPUs is not published by AMD. Adding temperature sensor support to the kernel driver will require additional technical information which is not currently available. Specifically, it is not known in which PCI device the temperature sensor resides, and if the registers are identical to earlier chips. |
qantourisc
referenced this issue
in groeck/it87
Apr 7, 2017
Open
Informations report for Gigabyte GA-AX370 Gaming 5 #16
sarnex
commented
Apr 21, 2017
|
https://support.amd.com/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf Does that datasheet contain anything useful? Thanks |
|
@sarnex: Unfortunately not. The required information is traditionally in the "BIOS and Kernel |
BeerSerc
commented
Apr 21, 2017
•
|
Please ignore my comment, I had a cached version opened which didn't have the latest comments, my bad! |
|
@sarnex @BeerSerc : Some additional information: I was told that the document needed is in fact the PPR. Problem is that there are two versions of this document, one that is public and one that is available only under NDA. The version available under NDA supposedly includes the required information. |
sjug
commented
May 7, 2017
|
Great news, how do we sign the NDA and get the document? |
sarnex
commented
May 8, 2017
|
On Sun, May 7, 2017 at 7:51 PM, Sebastian Jug ***@***.***> wrote:
Great news, how do we sign the NDA and get the document?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGvNDF4kNBHvSEUIj5gykgOWAYD35p8eks5r3ljvgaJpZM4MY9zR>
.
I assume if someone does get ahold of it by signing the NDA, they won't be
able to release code based on information in it.
|
|
@sarnex: Yes, that is exactly the problem. |
Skaronator
referenced this issue
in OpenMediaVault-Plugin-Developers/openmediavault-sensors
Jun 26, 2017
Open
No graphs appear in OMV sensors, only a sad graph icon. #7
tomreyn
commented
Jun 30, 2017
|
Related:
At the time of writing, the latest Processor Programming Reference (PPR) for AMD Family 17h Models 00h-0Fh Processors (publication #54945) is revision 1.14, released 5/3/2017. And it seems the information buyers of this CPU require to reliably make use of the product is still missing. |
AlexandreBonneau
commented
Jul 28, 2017
|
Anybody here contacted AMD to ask for such info? |
johnbridgman
commented
Jul 29, 2017
•
|
Is lack of information still an issue ? If so I can ask around internally, either to get it released publicly or under NDA with an exemption allowing use of the knowledge in open source driver development (we had to do that at least once for sensitive areas of the GPU). I am on the GPU side of AMD so will probably have to ask a few dumb questions re: exactly what we are looking for... what I'm a bit fuzzy on is "on die" temperature logic vs "on motherboard" logic which I believe are what are being discussed in the following thread: https://linuxconfig.org/monitor-amd-ryzen-temperatures-in-linux-with-latest-kernel-modules The reason for my confusion is that from what I remember all of the temperature measurement for our CPUs on Linux has been via motherboard logic (which I thought was hooked up to one or more sensors on the CPU) rather than on-die logic, but that is only what I have picked up from casual browsing while setting up my own systems at home. If the "motherboard sensors" are not reporting temperature information from the CPU chip then what temperatures are they reporting ? Last dumb question - what is the relationship between the the modules (eg it87) in Guenter's repo and the corresponding copies in upstream kernel drivers/hwmon ? Upstream seems to be a couple of months older at first glance - guessing Guenter's repo is the development tree and changes there eventually go upstream ? Thanks, |
|
@johnbridgman: Sure, if you can get an exception, that would help. Which information is needed: The PCI ID and location of the REPORTED_TEMP_CTRL_OFFSET register (or whatever it is called on family 17h; the name is from family 15h model 0x60 and 0x70) as well as the location of the index register to read it. The index register on family 15h is 0xb8, the offset is 0xd8200ca4. Also, it would help to know if there is a means to read the temperature offset from the CPU (20 degrees C for 1700X and 1800X), or if it is necessary to calculate the offset from the CPU type. Re drivers here - yes, those are development versions, and sometimes experimental. Normally I keep drivers in sync with upstream, but the it87 driver has deviated so much that I'll need several weeks to bring the drivers in sync. Unfortunately I don't have that time right now. |
rozhuk-im
commented
Sep 4, 2017
|
echo $((0x |
|
@rozhuk-im: That helped, thanks. Patch for the k10temp driver submitted upstream. Too late for the v4.14 kernel, but it will be available in v4.15. |
groeck
closed this
Sep 5, 2017
cemeyer
commented
Sep 5, 2017
|
@groeck Re: https://lkml.org/lkml/2017/9/4/503 , FYI At least some (1950X and I think 1920X) Threadripper CPU models have a 27°C offset too, if you want to try to correct a few more models automatically. |
|
On 09/04/2017 06:53 PM, Conrad Meyer wrote:
@groeck <https://github.com/groeck> Re: https://lkml.org/lkml/2017/9/4/503 , FYI At least some (1950X and I think 1920X) Threadripper CPU models have a 27°C offset too, if you want to try to correct a few more models automatically.
Fun part with the Threadripper CPU is that they have the same CPU model number.
The same microcode runs on both Ryzen and Threadripper. This means I will also
need a means to detect the affected CPU models, probably based on the model string.
Any idea what the CPU model string (as reported by /proc/cpuinfo) is ?
For 1700X, as example, it is "AMD Ryzen 7 1700X Eight-Core Processor".
I suspect it might be "AMD Ryzen Threadripper 1950X ...", but that is just
a guess and not good enough here.
Thanks,
Guenter
|
cemeyer
commented
Sep 5, 2017
|
My system isn't running Linux, but FreeBSD reports "AMD Ryzen Threadripper 1950X 16-Core Processor" in the early boot messages. |
AlexandreBonneau
commented
Sep 5, 2017
|
For info the Ryzen 5 1600 |
Robyer
referenced this issue
in openhardwaremonitor/openhardwaremonitor
Sep 5, 2017
Open
AMD Ryzen Support for reading CPU voltage and Temperature #957
|
Ryzen 5 should not have temperature offsets. |
|
On Tue, Sep 05, 2017 at 01:53:02AM +0000, Conrad Meyer wrote:
@groeck Re: https://lkml.org/lkml/2017/9/4/503 , FYI At least some (1950X and I think 1920X) Threadripper CPU models have a 27°C offset too, if you want to try to correct a few more models automatically.
Yes, and I am told from AMD that older models have various offsets
as well. This is going to be fun in a negative sense :-(.
Guenter
|
cemeyer
commented
Sep 5, 2017
|
Yeah, it's awful. I don't know what AMD is thinking. In FreeBSD we just punt on the issue and have the user configure an offset if they want to. |
ar1111
commented
Sep 11, 2017
|
@groeck Here's what I see in /proc/cpuinfo for the Threadripper 1950x: vendor_id : AuthenticAMD |
Goddard
commented
Sep 22, 2017
|
Here is output of cat /proc/cpuinfo sudo cat /proc/cpuinfo processor : 1 and repeats 32 times of course |
ElvishJerricco
commented
Oct 14, 2017
|
Is it currently possible to use |
|
linux-next has support for it. For convenience I created a repository named 'k10temp' which supports it. |
ElvishJerricco
commented
Oct 14, 2017
|
I had a bunch of issues with v4.14rc4 that make me fairly sure |
|
Hard for me to say; I don't know what you mean with "rebase". Do you mean you cherry-picked the patches on top of v4.13.5 ? That is pretty much what I did as well, though I only have ryzen systems, not threadripper. Threadripper does have pci device 1022:1463 (two of them, actually), so the driver should work. Questions then would be if dmesg shows anything, if the driver is loaded, and if "lspci -vv -d 1022:1463" shows anything useful. |
ElvishJerricco
commented
Oct 15, 2017
|
The driver does seem to work for those two pci devices. But is that representative of the CPU temp? |
cemeyer
commented
Oct 15, 2017
|
Yes? It's the documented temperature sensor for the CPU. |
ElvishJerricco
commented
Oct 15, 2017
|
OH geez that's embarrassing. Sorry, I'm really out of my element here. I thought there'd be one per core, like on all my other machines. |
e-dard
commented
Oct 19, 2017
|
@groeck not sure if this is useful or not since there are already comments for the 1950X above, but here is
|
|
On Thu, Oct 19, 2017 at 07:57:47AM +0000, Edd Robinson wrote:
@groeck not sure if this is useful or not since there are already comments for the 1950X above, but here is `/proc/cpuinfo` for the `1920X`. It's as you might expect:
```
processor : 0
vendor_id : AuthenticAMD
cpu family : 23
model : 1
model name : AMD Ryzen Threadripper 1920X 12-Core Processor
```
Yes, that one is covered. Tempterature offset is assumed to be 27 degrees C.
Guenter
|
aliensonneptune
commented
Nov 3, 2017
|
Okay, so I'm a noob to the whole Ryzen shebang, after all of the aforementioned updates would sensors return for Ryzen 3 1200 on latest Ubuntu out of box? Or would I have to mess with it? |
|
The changes are not yet upstream, so the latest Ubuntu won't be sufficient. Upstream kernel 4.15 will support Ryzen (and Threadripper) temperature sensors. |
Goddard
commented
Nov 3, 2017
•
|
Some rumblings 18.04 will have it so I assume through HWE people on older version like 16.04 might get it as well? |
tomreyn
commented
Nov 3, 2017
|
Maybe, but this issue tracker of a software which also happens to be available on your favorite Linux distribution is definitely not the right place to discuss whether a certain kernel version will be available in a certain release of this (your) favorite Linux distributions release. |
|
I am not involved in Canonical's decisions about Linux kernel releases, sorry. |
Goddard
commented
Nov 4, 2017
•
|
It would be cool if we had a way to private message people on GitHub for instances like this. Sorry, totally off-topic I know. |
whompy
commented
Nov 13, 2017
|
I just noticed a bug in the present code:
Not sure if there is a better place to report bugs on this, so I threw it here (Sorry!) |
|
Thanks for the k10temp report. It might be better to report k10temp issues in the k10temp repository or upstream. |
FireFrenzy
commented
Dec 16, 2017
|
For what its worth HWInfo64 can read the core temp, and on my 1950x (Aorus gaming 7) the offset does indeed appear to be 27 degree between Tdie and Tcng or whatever the short hand for "reported temps" is... Now i am not good enough to find logfiles or whatever but if you all can explain the steps to me i am more then willing to provide whatever data i can since i love me some OHWM |
|
Not sure what the (remaining) problem is. sensors-detect from ToT here supports reporting family 17h sensors, and k10temp in the ToT kernel does as well. The problem reported by whompy@ has been fixed as well. If there is still a problem, please open a separate issue and provide details. |
sarnex commentedMar 10, 2017
•
Edited 1 time
-
sarnex
Mar 10, 2017
Hi,
The new AMD Ryzen chips are Family 17h, and are unsupported by lm-sensors.
Please add support for them, and let me know if you need any information, as I have one.
Thanks,
Sarnex