From: Mahmood Naderan Date: Tue, 26 Oct 2010 15:33:35 +0000 Subject: Re: [lm-sensors] k10temp is detected but not shown Message-Id: <91832.24982.qm@web111718.mail.gq1.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0279570507581538240==" List-Id: References: <578838.74607.qm@web111714.mail.gq1.yahoo.com> In-Reply-To: <578838.74607.qm@web111714.mail.gq1.yahoo.com> To: lm-sensors@vger.kernel.org --===============0279570507581538240== Content-Type: multipart/alternative; boundary="0-288797836-1288107215=:24982" --0-288797836-1288107215=:24982 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable >I suspect he has Magny Cours processors. They are multi-chip modules with = two =0A>CPU chips per >package. /proc/cpuinfo will >tell you which cores ar= e in which =0A>sockets=0AYes. I think "physical id"=A0shows the socket numb= er=0A=A0=0A>$ numactl --cpunodebind=3D0 mprime -b4 -t=0A>You should see the= temperatures diverge for the sensors in the same socket.=0AYes I saw that= =A0the first two temperature are the same but different from other =0Atwo= =A0 =0A=0A=0A// Naderan *Mahmood;=0A=0A=0A=0A=0A___________________________= _____=0AFrom: Philip Pokorny =0ATo: Jean Del= vare =0ACc: Clemens Ladisch ; lm-se= nsors =0ASent: Tue, October 26, 2010 6:34:22 PM= =0ASubject: Re: [lm-sensors] k10temp is detected but not shown=0A=0A=0A=0AO= n Oct 26, 2010, at 7:15 AM, Jean Delvare wrote:=0A=0A>= Hi Clemens,=0A> =0A> On Tue, 26 Oct 2010 15:53:29 +0200, Clemens Ladisch w= rote:=0A>> Jean Delvare wrote:=0A>>>>> Doh. You are aware that Core i7 CPUs= are made by Intel and Family 10h=0A>>>>> (aka K10) CPUs are made by AMD, a= ren't you? They are different CPU=0A>>>>> models, they don't have to be des= igned the same way.=0A>>>> =0A>>>> I know that :)=0A>>>> I thought maybe th= at is a standard and each cpu temperature must be show=0A>>>> separetly.=0A= >>> =0A>>> There is no such standard.=0A>> =0A>> And on the newest CPUs, In= tel has switched to one temperature sensor per=0A>> package.=0A> =0A> Reall= y? Starting with which CPU model?=0A> =0A>>> On Tue, 26 Oct 2010 06:06:53 -= 0700 (PDT), Mahmood Naderan wrote:=0A>>>> One more question, Is it possible= to find out which two modules are tied to =0A>>>one=0A>>>> processor?=0A>>= > =0A>>> Modules?=0A=0AI suspect he has Magny Cours processors. They are mu= lti-chip modules with two =0ACPU chips per package. /proc/cpuinfo will tell= you which cores are in which =0Asockets.=0A=0A=0A=0A>>>> Is it true that [= 00c3 and 00cb] are for one physical cpu and [00d3 and 00db] =0A>>>>are=0A>>= >> for the other cpu?=0A>> =0A>> I conclude from this question that you hav= e two CPUs, and that each CPU=0A>> has two temperature sensors.=0A>> =0A>> = The temperature sensor is part of the PCI device that associated with=0A>> = the CPU's internal northbridge.=A0 IIRC the six-core CPUs have two=0A>> nor= thbridges, for whatever technical reason, so they present two=0A>> temparat= ure sensors to the OS.=0A>> =0A>> It looks as if the two sensors in each CP= U have the same value.=A0 Is this=0A>> always the case?=0A>> =0A>> (I don't= know where the c3/cb/d3/db names come from.)=0A> =0A> This is the PCI bus = number in compact hexadecimal form:=0A> =0A> 00:18.3 -> 00c3=0A> 00:19.3 ->= 00cb=0A> 00:1a.3 -> 00d3=0A> 00:1b.3 -> 00db=0A> =0A> We had to find a uni= que ID to differentiate between them, and that ID=0A> had to fit in an int = to make libsensors happy.=0A> =0A>>> All entries in cpuinfo look the same, = so I can't explain why some have=0A>>> the critical limit and some don't.= =0A>> =0A>> The limit is set by the BIOS.=A0 I'd guess the BIOS knows that = two sensors=0A>> are actually the same, an so doesn't bother to set the lim= it on the=0A>> superfluous ones.=0A>> =0A>> I'll look into the datasheet to= see if this situation (two northbridges=0A>> per CPU) is documented and ca= n be detected so that the driver can ignore=0A>> these superfluous sensors.= =0A> =0A> If these sensors exist, I see no valid reason to ignore them. Two= =0A> sensors can be useful, to slightly increase the resolution by combinin= g=0A> them, or simply in case one of them get unreliable for whatever reaso= n.=0A> =0A=0AIf these are Magny Cours, then they are definitely different s= ensors and they =0Acome from the different CPU chips in the package. If you= ran a load on only one =0ACPU chip:=0A=0A$ numactl --cpunodebind=3D0 mprim= e -b4 -t=0A=0AYou should see the temperatures diverge for the sensors in th= e same socket.=0A=0APhil P.=0A_____________________________________________= __=0Alm-sensors mailing list=0Alm-sensors@lm-sensors.org=0Ahttp://lists.lm-= sensors.org/mailman/listinfo/lm-sensors=0A=0A=0A=0A --0-288797836-1288107215=:24982 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A
>I suspect he has Magny Cours processors. The= y are multi-chip modules with two CPU chips per >package. /proc/cpuinfo = will >tell you which cores are in which sockets
=0A
Yes. I think "physical i= d" shows the socket number
=0A
 
=0A
>$ numactl --cpunodebind=3D0 mpri= me -b4 -t
>You should see the temperatures diverge for the sensors in= the same socket.
=0A
Yes I saw that the first two temperature are the sam= e but different from other two 
=0A
 
=0A=0A
// Naderan *Mahmood;
=0A

=0A

=0A<= DIV style=3D"FONT-FAMILY: tahoma, new york, times, serif; FONT-SIZE: 12pt">= =0A
=0AFrom: Philip Pokorny <ppokorny@penguincomputing.com= >
To: Jean Delvare &l= t;khali@linux-fr.org>
Cc:= Clemens Ladisch <clemens@ladisch.de>; lm-sensors <lm-sensors@= lm-sensors.org>
Sent:= Tue, October 26, 2010 6:34:22 PM
S= ubject: Re: [lm-sensors] k10temp is detected but not shown



On Oct 26, 2010, at 7:15 AM, Jean Delvare <khali@linux= -fr.org> wrote:

> Hi Clemens,
>
> On Tue, 26 = Oct 2010 15:53:29 +0200, Clemens Ladisch wrote:
>> Jean Delvare wr= ote:
>>>>> Doh. You are aware that Core i7 CPUs are made = by Intel and Family 10h
>>>>> (aka K10) CPUs are made by AMD, aren't you? They are different CPU
>>&= gt;>> models, they don't have to be designed the same way.
>>= ;>>
>>>> I know that :)
>>>> I thought= maybe that is a standard and each cpu temperature must be show
>>= >> separetly.
>>>
>>> There is no such stand= ard.
>>
>> And on the newest CPUs, Intel has switched to= one temperature sensor per
>> package.
>
> Really? S= tarting with which CPU model?
>
>>> On Tue, 26 Oct 2010 = 06:06:53 -0700 (PDT), Mahmood Naderan wrote:
>>>> One more q= uestion, Is it possible to find out which two modules are tied to one
&g= t;>>> processor?
>>>
>>> Modules?

= I suspect he has Magny Cours processors. They are multi-chip modules with t= wo CPU chips per package. /proc/cpuinfo will tell you which cores are in which sockets.



>>>> Is it true that [00c= 3 and 00cb] are for one physical cpu and [00d3 and 00db] are
>>>= ;> for the other cpu?
>>
>> I conclude from this ques= tion that you have two CPUs, and that each CPU
>> has two temperat= ure sensors.
>>
>> The temperature sensor is part of the= PCI device that associated with
>> the CPU's internal northbridge= .  IIRC the six-core CPUs have two
>> northbridges, for whate= ver technical reason, so they present two
>> temparature sensors t= o the OS.
>>
>> It looks as if the two sensors in each C= PU have the same value.  Is this
>> always the case?
>&= gt;
>> (I don't know where the c3/cb/d3/db names come from.)
&= gt;
> This is the PCI bus number in compact hexadecimal form:
>= ;
> 00:18.3 -> 00c3
> 00:19.3 -> 00cb
> 00:1a.3 -> 00d3
> 00:1b.3 -> 00db
>
> We had to f= ind a unique ID to differentiate between them, and that ID
> had to f= it in an int to make libsensors happy.
>
>>> All entries= in cpuinfo look the same, so I can't explain why some have
>>>= the critical limit and some don't.
>>
>> The limit is s= et by the BIOS.  I'd guess the BIOS knows that two sensors
>>= are actually the same, an so doesn't bother to set the limit on the
>= ;> superfluous ones.
>>
>> I'll look into the datashe= et to see if this situation (two northbridges
>> per CPU) is docum= ented and can be detected so that the driver can ignore
>> these s= uperfluous sensors.
>
> If these sensors exist, I see no valid= reason to ignore them. Two
> sensors can be useful, to slightly incr= ease the resolution by combining
> them, or simply in case one of them get unreliable for whatever reason.
>

If these are M= agny Cours, then they are definitely different sensors and they come from t= he different CPU chips in the package. If you ran a load on only one CPU ch= ip:

$ numactl --cpunodebind=3D0 mprime -b4 -t

You should see = the temperatures diverge for the sensors in the same socket.

Phil P.=
_______________________________________________
lm-sensors mailing l= ist
lm-sensors@lm-sensors.org
http://lists.lm-sens= ors.org/mailman/listinfo/lm-sensors

=0A=0A --0-288797836-1288107215=:24982-- --===============0279570507581538240== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors --===============0279570507581538240==--