<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hwmon/k10temp.c, branch linux-6.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-08-03T08:26:06Z</updated>
<entry>
<title>hwmon: (k10temp) Enable AMD3255 Proc to show negative temperature</title>
<updated>2023-08-03T08:26:06Z</updated>
<author>
<name>Baskaran Kannan</name>
</author>
<published>2023-07-27T16:21:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6790a9b035e5676044b65b380d05034c56ad5b4'/>
<id>urn:sha1:c6790a9b035e5676044b65b380d05034c56ad5b4</id>
<content type='text'>
commit e146503ac68418859fb063a3a0cd9ec93bc52238 upstream.

Industrial processor i3255 supports temperatures -40 deg celcius
to 105 deg Celcius. The current implementation of k10temp_read_temp
rounds off any negative temperatures to '0'. To fix this,
the following changes have been made.

A flag 'disp_negative' is added to struct k10temp_data to support
AMD i3255 processors. Flag 'disp_negative' is set if 3255 processor
is found during k10temp_probe.  Flag 'disp_negative' is used to
determine whether to round off negative temperatures to '0' in
k10temp_read_temp.

Signed-off-by: Baskaran Kannan &lt;Baski.Kannan@amd.com&gt;
Link: https://lore.kernel.org/r/20230727162159.1056136-1-Baski.Kannan@amd.com
Fixes: aef17ca12719 ("hwmon: (k10temp) Only apply temperature offset if result is positive")
Cc: stable@vger.kernel.org
[groeck: Fixed multi-line comment]
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Add PCI ID for family 19, model 78h</title>
<updated>2023-05-08T09:36:19Z</updated>
<author>
<name>Mario Limonciello</name>
</author>
<published>2023-04-27T05:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d8accfaa0ab65e4282c8e58950f7d688342cd86'/>
<id>urn:sha1:7d8accfaa0ab65e4282c8e58950f7d688342cd86</id>
<content type='text'>
Enable k10temp on this system.

  [ bp: Massage. ]

Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Borislav Petkov (AMD) &lt;bp@alien8.de&gt;
Acked-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Link: https://lore.kernel.org/r/20230427053338.16653-3-mario.limonciello@amd.com
</content>
</entry>
<entry>
<title>hwmon: k10temp: constify pointers to hwmon_channel_info</title>
<updated>2023-04-19T14:08:36Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2023-04-06T20:30:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4dd50f3c1d6521d8f4a688bb00d0228fbe65b2b8'/>
<id>urn:sha1:4dd50f3c1d6521d8f4a688bb00d0228fbe65b2b8</id>
<content type='text'>
Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.

Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Check range scale when CUR_TEMP register is read-write</title>
<updated>2023-04-19T14:06:38Z</updated>
<author>
<name>Babu Moger</name>
</author>
<published>2023-04-13T21:39:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c072385348e3ac5229145644055d3e2afb5b3db'/>
<id>urn:sha1:0c072385348e3ac5229145644055d3e2afb5b3db</id>
<content type='text'>
Spec says, when CUR_TEMP_TJ_SEL == 3 and CUR_TEMP_RANGE_SEL == 0,
it should use RangeUnadjusted is 0, which is (CurTmp*0.125 -49) C. The
CUR_TEMP register is read-write when CUR_TEMP_TJ_SEL == 3 (bit 17-16).

Add the check to detect it.

Sensors command's output before the patch.
$sensors
 k10temp-pci-00c3
 Adapter: PCI adapter
 Tctl:         +76.6°C &lt;- Wrong value
 Tccd1:        +26.5°C
 Tccd2:        +27.5°C
 Tccd3:        +27.2°C
 Tccd4:        +27.5°C
 Tccd5:        +26.0°C
 Tccd6:        +26.2°C
 Tccd7:        +25.0°C
 Tccd8:        +26.5°C

Sensors command's output after the patch.
$sensors
 k10temp-pci-00c3
 Adapter: PCI adapter
 Tctl:         +28.8°C &lt;- corrected value
 Tccd1:        +27.5°C
 Tccd2:        +28.5°C
 Tccd3:        +28.5°C
 Tccd4:        +28.5°C
 Tccd5:        +27.0°C
 Tccd6:        +27.5°C
 Tccd7:        +27.0°C
 Tccd8:        +27.5°C

Signed-off-by: Babu Moger &lt;babu.moger@amd.com&gt;
Fixes: 1b59788979ac ("hwmon: (k10temp) Add temperature offset for Ryzen 2700X")
Link: https://lore.kernel.org/r/20230413213958.847634-1-babu.moger@amd.com
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp): Add support for new family 17h and 19h models</title>
<updated>2022-07-20T15:39:11Z</updated>
<author>
<name>Mario Limonciello</name>
</author>
<published>2022-07-19T19:52:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d906fa730827456711ce29c1f2994a0ccaff49dc'/>
<id>urn:sha1:d906fa730827456711ce29c1f2994a0ccaff49dc</id>
<content type='text'>
Add the support for CCD offsets used on family 17h models A0h-AFh,
and family 19h models 60h-7Fh.

  [ bp: Merge into a single patch. ]

Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Acked-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Link: https://lore.kernel.org/r/20220719195256.1516-1-mario.limonciello@amd.com
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Support up to 12 CCDs on AMD Family of processors</title>
<updated>2021-12-26T23:02:05Z</updated>
<author>
<name>Babu Moger</name>
</author>
<published>2021-11-24T16:03:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8bb050cd5cf494f3d0cb45a6b54a476af09edb8d'/>
<id>urn:sha1:8bb050cd5cf494f3d0cb45a6b54a476af09edb8d</id>
<content type='text'>
The current driver can read the temperatures from upto 8 CCDs
(Core-Complex Die).

The newer AMD Family 19h Models 10h-1Fh and A0h-AFh can support up to
12 CCDs. Update the driver to read up to 12 CCDs.

Signed-off-by: Babu Moger &lt;babu.moger@amd.com&gt;
Link: https://lore.kernel.org/r/163776976762.904164.5618896687524494215.stgit@bmoger-ubuntu
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Add support for AMD Family 19h Models 10h-1Fh and A0h-AFh</title>
<updated>2021-12-26T23:02:05Z</updated>
<author>
<name>Babu Moger</name>
</author>
<published>2021-11-08T21:51:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3cf90efa13678d2de2f9f7e44e26353996db842a'/>
<id>urn:sha1:3cf90efa13678d2de2f9f7e44e26353996db842a</id>
<content type='text'>
Add thermal info support for AMD Family 19h Models 10h-1Fh and A0h-AFh.
Thermal info is supported via a new PCI device ID at offset 0x300h.

Signed-off-by: Babu Moger &lt;babu.moger@amd.com&gt;
Link: https://lore.kernel.org/r/163640829419.955062.12539219969781039915.stgit@bmoger-ubuntu
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Remove unused definitions</title>
<updated>2021-12-26T23:02:05Z</updated>
<author>
<name>Babu Moger</name>
</author>
<published>2021-11-08T21:51:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f707bcb5d1cb4c47d27c688c859dcdb70e3c7065'/>
<id>urn:sha1:f707bcb5d1cb4c47d27c688c859dcdb70e3c7065</id>
<content type='text'>
Usage of these definitions were removed after the commit 0a4e668b5d52
("hwmon: (k10temp) Remove support for displaying voltage and current on Zen CPUs").
So, cleanup them up.

Signed-off-by: Babu Moger &lt;babu.moger@amd.com&gt;
Link: https://lore.kernel.org/r/163640828776.955062.15863375803675701204.stgit@bmoger-ubuntu
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Remove residues of current and voltage</title>
<updated>2021-09-13T00:56:36Z</updated>
<author>
<name>suma hegde</name>
</author>
<published>2021-09-02T17:41:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=23c69b90365c8280b627aa969393d828ff47ac14'/>
<id>urn:sha1:23c69b90365c8280b627aa969393d828ff47ac14</id>
<content type='text'>
Commit id "b00647c46c9d7f6ee1ff6aaf335906101755e614",
adds reporting current and voltage to k10temp.c

The commit id "0a4e668b5d52eed8026f5d717196b02b55fb2dc6",
removed reporting current and voltage from k10temp.c

The curr and in(voltage) entries are not removed from
"k10temp_info" structure. Removing those residue entries.
while at it, update k10temp driver documentation

Signed-off-by: suma hegde &lt;suma.hegde@amd.com&gt;
Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Link: https://lore.kernel.org/r/20210902174155.7365-2-nchatrad@amd.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
<entry>
<title>hwmon: (k10temp) Add support for yellow carp</title>
<updated>2021-08-27T20:54:58Z</updated>
<author>
<name>Mario Limonciello</name>
</author>
<published>2021-08-27T20:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25572c818d2e40b5d7231a9dc49bd45a6b6c3dfa'/>
<id>urn:sha1:25572c818d2e40b5d7231a9dc49bd45a6b6c3dfa</id>
<content type='text'>
Yellow carp matches same behavior as green sardine and other Zen3
products, but have different CCD offsets.

Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Acked-by: Borislav Petkov &lt;bp@suse.de&gt;
Link: https://lore.kernel.org/r/20210827201527.24454-3-mario.limonciello@amd.com
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
</content>
</entry>
</feed>
