lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53ED1A87.6000400@ladisch.de>
Date:	Thu, 14 Aug 2014 22:22:31 +0200
From:	Clemens Ladisch <clemens@...isch.de>
To:	Guenter Roeck <linux@...ck-us.net>,
	Aravind Gopalakrishnan <aravind.gopalakrishnan@....com>
CC:	jdelvare@...e.de, rdunlap@...radead.org, tglx@...utronix.de,
	mingo@...hat.com, hpa@...or.com, bp@...e.de,
	dan.carpenter@...cle.com, lm-sensors@...sensors.org,
	linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH V2] hwmon, k10temp: Add support for F15h M60h

Guenter Roeck wrote:> On Thu, Aug 14, 2014 at 11:54:22AM -0500, Aravind Gopalakrishnan wrote:
>> This patch adds temperature monitoring support for F15h M60h processor.
>>  - Add new pci device id for the relevant processor
>>  - The functionality of REG_REPORTED_TEMPERATURE is moved to
>>    D0F0xBC_xD820_0CA4 [Reported Temperature Control]
>>    - So, use this to get CUR_TEMP value
>>    - Since we need an indirect register access, protect this with
>>      a mutex lock
>>  - Add Kconfig, Doc entries to indicate support for this processor.
>>
>> Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@....com>
>> ---
>> Changes in V2:
>>  - Prevent race with other code that may require indirect NB_SMU_REG access
>>  - Fix some minor style issues
>>
>>  Documentation/hwmon/k10temp   |  2 +-
>>  arch/x86/include/asm/amd_nb.h |  2 ++
>>  arch/x86/kernel/amd_nb.c      | 15 +++++++++++++++
>>  drivers/hwmon/Kconfig         |  6 +++---
>>  drivers/hwmon/k10temp.c       | 22 +++++++++++++++++++---
>>  5 files changed, 40 insertions(+), 7 deletions(-)
>>
> [ ... ]
>
>> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
>> index 02d3d85..0234a08 100644
>> --- a/drivers/hwmon/Kconfig
>> +++ b/drivers/hwmon/Kconfig
>> @@ -275,13 +275,13 @@ config SENSORS_K8TEMP
>>
>>  config SENSORS_K10TEMP
>>  	tristate "AMD Family 10h+ temperature sensor"
>> -	depends on X86 && PCI
>> +	depends on X86 && PCI && AMD_NB
>
> Is the added dependency acceptable ?

Yes, it is automatically set from CPU_SUP_AMD.


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists