Re: [gentoo-user] Re: Abnormal processor temperature.

2023-12-08 Thread Dr Rainer Woitok
Michael,

On Wednesday, 2023-11-29 17:56:37 +, you wrote:

> ...
> It depends on the hardware, this is what I have enabled on an AMD MoBo:
> 
> ~ $ grep SPI /usr/src/linux/.config
> ...
> CONFIG_SCSI_SPI_ATTRS=y
> CONFIG_SPI=y
> CONFIG_SPI_MASTER=y
> ...
> CONFIG_SPI_AMD=m
> ...
> CONFIG_SPI_DYNAMIC=y
> ...
> CONFIG_RTC_I2C_AND_SPI=y

Thanks for the info.  Apart from "CONFIG_SPI_AMD=m" this is what I've
now configured too.

Sincerely,
  Rainer



Re: [gentoo-user] Re: Abnormal processor temperature.

2023-11-29 Thread Michael
On Wednesday, 29 November 2023 17:34:48 GMT Dr Rainer Woitok wrote:
> Michael,
> 
> On Tuesday, 2023-11-28 10:13:56 +, you wrote:
> > ...
> > I suggested enabling the SPI modules because they are used by the CPU to
> > communicate with various sensors, adjust clock frequency between
> > components
> > and thereafter to receive signals a/synchronously to control temperatures.
> 
> What exactly do you suggest?  My kernel (6.1.57) configuration contains:
> 
>$ grep SPI /usr/src/linux/.config|grep -v SPIN
>CONFIG_SCSI_SPI_ATTRS=y
># CONFIG_SPI is not set
># SPI RTC drivers
>CONFIG_RTC_I2C_AND_SPI=y
># SPI and I2C RTC drivers
>$
> 
> I played a little  with the  "/" and "?" commands  of "make menuconfig",
> activated "CONFIG_SPI"  and found a lot of controllers and drivers,  but
> nothing obvious to enable additionally.   However, apparently activating
> "CONFIG_SPI" also activated
> 
>CONFIG_NET_VENDOR_ADI=y
>CONFIG_SND_SPI=y
>CONFIG_SPI_DYNAMIC=y
>CONFIG_SPI_MASTER=y
> 
> Is this what you are suggesting?
> 
> Sincerely,
>   Rainer

It depends on the hardware, this is what I have enabled on an AMD MoBo:

~ $ grep SPI /usr/src/linux/.config
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
# CONFIG_INET6_ESPINTCP is not set
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set
# SPI Master Controller Drivers
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_NXP_FLEXSPI is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_MICROCHIP_CORE is not set
# CONFIG_SPI_MICROCHIP_CORE_QSPI is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_ROCKCHIP is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_ZYNQMP_GQSPI is not set
CONFIG_SPI_AMD=m
# SPI Multiplexer support
# CONFIG_SPI_MUX is not set
# SPI Protocol Masters
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not set
CONFIG_SPI_DYNAMIC=y
# SPI GPIO expanders
# end of SPI GPIO expanders
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_SND_SPI is not set
# SPI RTC drivers
CONFIG_RTC_I2C_AND_SPI=y
# SPI and I2C RTC drivers
# CONFIG_HWSPINLOCK is not set


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: Abnormal processor temperature.

2023-11-29 Thread Dr Rainer Woitok
Michael,

On Tuesday, 2023-11-28 10:13:56 +, you wrote:

> ...
> I suggested enabling the SPI modules because they are used by the CPU to 
> communicate with various sensors, adjust clock frequency between components 
> and thereafter to receive signals a/synchronously to control temperatures.  

What exactly do you suggest?  My kernel (6.1.57) configuration contains:

   $ grep SPI /usr/src/linux/.config|grep -v SPIN
   CONFIG_SCSI_SPI_ATTRS=y
   # CONFIG_SPI is not set
   # SPI RTC drivers
   CONFIG_RTC_I2C_AND_SPI=y
   # SPI and I2C RTC drivers
   $

I played a little  with the  "/" and "?" commands  of "make menuconfig",
activated "CONFIG_SPI"  and found a lot of controllers and drivers,  but
nothing obvious to enable additionally.   However, apparently activating
"CONFIG_SPI" also activated

   CONFIG_NET_VENDOR_ADI=y
   CONFIG_SND_SPI=y
   CONFIG_SPI_DYNAMIC=y
   CONFIG_SPI_MASTER=y

Is this what you are suggesting?

Sincerely,
  Rainer



Re: [gentoo-user] Re: Abnormal processor temperature.

2023-11-28 Thread Michael
On Monday, 27 November 2023 23:14:14 GMT Laurence Perkins wrote:
> > -Original Message-
> > From: Grant Edwards 
> > Sent: Wednesday, November 22, 2023 8:36 AM
> > To: gentoo-user@lists.gentoo.org
> > Subject: [gentoo-user] Re: Abnormal processor temperature.
> > 
> > On 2023-11-21, Laurence Perkins  wrote:
> > > I have a system here running an Intel N97 processor, which is idling
> > > at 70-80C on Gentoo with all cores 99% idle.  This is 40 degrees
> > > hotter than it runs on Ubuntu or Windows 10.
> > > 
> > > Powertop confirms that the CPU is spending nearly all of its time in
> > > idle mode.
> > 
> > Are clock speeds being scaled down when idle?  Or does the N97's "idle
> > mode" preclude the need to scale down clock speed when not busy to avoid
> > high temps?
> That was part of my confusion, because even when I used cpupower to lock all
> cores to 800MHz, it kept running hot.
> 
> Michael's suggestion of adding the SPI modules to the kernel appears to have
> fixed it.  I'm not sure why the gentoo-kernel-bin that I tried didn't work
> at that rate, but I'm going to have to activate the
> "somebody-else's-problem" field on that one.
> 
> LMP

I suggested enabling the SPI modules because they are used by the CPU to 
communicate with various sensors, adjust clock frequency between components 
and thereafter to receive signals a/synchronously to control temperatures.  
Theoretically, a fail-safe system would thermally throttle, or over-cool the 
CPU, when any of the critical SPI signals is lost.  I can't say I understand 
why without some temperature sensor feedback the CPU decided to overclock 
itself.  I would have thought these days oscillator crystals or equivalent 
capacitor circuitry would be internal to the CPU die, so the CPU frequency 
control would be self-contained.  Either way, this seems to have been the 
problem.

signature.asc
Description: This is a digitally signed message part.


RE: [gentoo-user] Re: Abnormal processor temperature.

2023-11-27 Thread Laurence Perkins



> -Original Message-
> From: Grant Edwards  
> Sent: Wednesday, November 22, 2023 8:36 AM
> To: gentoo-user@lists.gentoo.org
> Subject: [gentoo-user] Re: Abnormal processor temperature.
> 
> On 2023-11-21, Laurence Perkins  wrote:
> 
> > I have a system here running an Intel N97 processor, which is idling 
> > at 70-80C on Gentoo with all cores 99% idle.  This is 40 degrees 
> > hotter than it runs on Ubuntu or Windows 10.
> >
> > Powertop confirms that the CPU is spending nearly all of its time in 
> > idle mode.
> 
> Are clock speeds being scaled down when idle?  Or does the N97's "idle mode" 
> preclude the need to scale down clock speed when not busy to avoid high temps?
> 
> 

That was part of my confusion, because even when I used cpupower to lock all 
cores to 800MHz, it kept running hot.

Michael's suggestion of adding the SPI modules to the kernel appears to have 
fixed it.  I'm not sure why the gentoo-kernel-bin that I tried didn't work at 
that rate, but I'm going to have to activate the "somebody-else's-problem" 
field on that one.

LMP




[gentoo-user] Re: Abnormal processor temperature.

2023-11-22 Thread Grant Edwards
On 2023-11-21, Laurence Perkins  wrote:

> I have a system here running an Intel N97 processor, which is idling
> at 70-80C on Gentoo with all cores 99% idle.  This is 40 degrees
> hotter than it runs on Ubuntu or Windows 10.
>
> Powertop confirms that the CPU is spending nearly all of its time in
> idle mode.

Are clock speeds being scaled down when idle?  Or does the N97's "idle
mode" preclude the need to scale down clock speed when not busy to
avoid high temps?