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] [day] [month] [year] [list]
Date:	Mon, 28 Sep 2015 09:13:50 -0700
From:	Jacob Pan <jacob.jun.pan@...ux.intel.com>
To:	Pengyu Ma <pengyu.ma@...driver.com>
Cc:	"Rafael J. Wysocki" <rjw@...ysocki.net>,
	<rafael.j.wysocki@...el.com>, <linux-kernel@...r.kernel.org>,
	"Box, David E" <david.e.box@...el.com>,
	"Anvin, H Peter" <h.peter.anvin@...el.com>
Subject: Re: [PATCH] powercap / RAPL : remove dependency on iosf_mbi

On Sat, 26 Sep 2015 11:42:56 +0800
Pengyu Ma <pengyu.ma@...driver.com> wrote:

> $ objdump --dwarf drivers/powercap/intel_rapl.o |grep iosf
>      <65ad>   DW_AT_name        : (indirect string, offset: 0x3644): 
> iosf_mbi_read
>      <65f7>   DW_AT_name        : (indirect string, offset: 0x496): 
> iosf_mbi_write
>    5    3    0    0    iosf_mbi.h
>    0x00000490 656c5f69 6400696f 73665f6d 62695f77 el_id.iosf_mbi_w
>    0x00003640 72656700 696f7366 5f6d6269 5f726561 reg.iosf_mbi_rea
> 
> $ grep -i iosf_mbi .config
> # CONFIG_IOSF_MBI is not set
> 
> It is compiled and included by header file.
> 
Please refer to this table from my earlier email. Pasted below.
 RAPL\IOSF    Y    M    N
>> ___________________________________________________
>>   Y        OK      DC*     Warn on Atom**
>>   M        OK    OK    Warn on Atom
>>   N        OK    OK    OK
>> ___________________________________________________
*DC = don't compile.

The problem is the case when RAPL=y, IOSF=m.

Jacob

> Pengyu
> 
> On 09/25/2015 12:33 AM, Jacob Pan wrote:
> > On Thu, 24 Sep 2015 18:03:32 +0800
> > Pengyu Ma <pengyu.ma@...driver.com> wrote:
> >
> >>> So the problematic case is when RAPL=Y IOSF=M
> >>> Since real IOSF functions are available when
> >>> #if IS_ENABLED(CONFIG_IOSF_MBI)
> >>> There will be no dummy functions for RAPL to reference in this
> >>> case.
> >> iosf_mbi_write/read will warn itself.
> > it does not compile.
> 

[Jacob Pan]
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ