<div dir="ltr"><span style="font-size:12.8px">>> I'm not sure if intelmetool support </span><span style="font-size:12.8px">Skylake as well.</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Investigated more. The coreboot intelmetool is the latest one, as I understood (comparing one from github and coreboot).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">And Sunrise Point is NOT supported (look into latest coreboot's coreboot/util/intelmetool/intelmetool.h). You can try to add it (as Device ID), manually, peek around the C code, and see if this can help you.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Zoran</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 28, 2016 at 5:26 PM, Zoran Stojsavljevic <span dir="ltr"><<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Shawn,<div><br></div><div>Please, follow my CLI transcript from my Future Fedora 26 VM over WIN10 (now rawhide) with Fedora 4.8.15 kernel implanted (kernel 4.10.0-rc0 gives me lot of  griefs, I do not trust it, so I eliminated it for now):</div><div><br></div><div><div>[zoran@localhost ~]$ cd projects/</div><div>[zoran@localhost projects]$ mkdir intelmetool</div><div>[zoran@localhost projects]$ cd intelmetool/</div><div>[zoran@localhost intelmetool]$ pwd</div><div>/home/zoran/projects/<wbr>intelmetool</div><div><b><i><u><font color="#ff0000">[zoran@localhost intelmetool]$ uname -r</font></u></i></b></div><div><b><i><u><font color="#ff0000">4.8.15-300.fc25.x86_64</font></u></i></b></div><div><b><i><u><font color="#ff0000">[zoran@localhost intelmetool]$ git clone <a href="https://github.com/zamaudio/intelmetool.git" target="_blank">https://github.com/zamaudio/<wbr>intelmetool.git</a></font></u></i></b></div><div><b><i><u><font color="#ff0000">Cloning into 'intelmetool'...</font></u></i></b></div><div><b><i><u><font color="#ff0000">remote: Counting objects: 214, done.</font></u></i></b></div><div><b><i><u><font color="#ff0000">remote: Total 214 (delta 0), reused 0 (delta 0), pack-reused 214</font></u></i></b></div><div><b><i><u><font color="#ff0000">Receiving objects: 100% (214/214), 72.42 KiB | 0 bytes/s, done.</font></u></i></b></div><div><b><i><u><font color="#ff0000">Resolving deltas: 100% (125/125), done.</font></u></i></b></div><div>[zoran@localhost intelmetool]$ ls -al</div><div>total 12</div><div>drwxrwxr-x.  3 zoran zoran 4096 Dec 28 17:06 .</div><div>drwxrwxr-x. 10 zoran zoran 4096 Dec 28 17:05 ..</div><div>drwxrwxr-x.  3 zoran zoran 4096 Dec 28 17:06 intelmetool</div><div>[zoran@localhost intelmetool]$ cd intelmetool/</div><div>[zoran@localhost intelmetool]$ ls -al</div><div>total 100</div><div>drwxrwxr-x. 3 zoran zoran  4096 Dec 28 17:06 .</div><div>drwxrwxr-x. 3 zoran zoran  4096 Dec 28 17:06 ..</div><div>drwxrwxr-x. 8 zoran zoran  4096 Dec 28 17:06 .git</div><div>-rw-rw-r--. 1 zoran zoran    16 Dec 28 17:06 .gitignore</div><div>-rw-rw-r--. 1 zoran zoran  8956 Dec 28 17:06 intelmetool.c</div><div>-rw-rw-r--. 1 zoran zoran  9783 Dec 28 17:06 intelmetool.h</div><div>-rw-rw-r--. 1 zoran zoran   532 Dec 28 17:06 LICENSE</div><div>-rw-rw-r--. 1 zoran zoran   351 Dec 28 17:06 Makefile</div><div>-rw-rw-r--. 1 zoran zoran 16810 Dec 28 17:06 me.c</div><div>-rw-rw-r--. 1 zoran zoran 10622 Dec 28 17:06 me.h</div><div>-rw-rw-r--. 1 zoran zoran  7246 Dec 28 17:06 me_status.c</div><div>-rw-rw-r--. 1 zoran zoran  1109 Dec 28 17:06 mmap.c</div><div>-rw-rw-r--. 1 zoran zoran   224 Dec 28 17:06 mmap.h</div><div>-rw-rw-r--. 1 zoran zoran    90 Dec 28 17:06 README.md</div><div>[zoran@localhost intelmetool]$ su -m</div><div>Password: </div><div>[root@localhost intelmetool]# make</div><div>gcc -Wall -O0 -g -I. -c me_status.c  -o me_status.o</div><div>gcc -Wall -O0 -g -I. -c me.c  -o me.o</div><div>me.c: In function ‘mei_dump’:</div><div>me.c:63:18: warning: variable ‘csr’ set but not used [-Wunused-but-set-variable]</div><div>  struct mei_csr *csr;</div><div>                  ^~~</div><div>gcc -Wall -O0 -g -I. -c mmap.c  -o mmap.o</div><div>mmap.c: In function ‘map_physical_exact’:</div><div>mmap.c:11:26: warning: passing argument 1 of ‘mmap’ makes pointer from integer without a cast [-Wint-conversion]</div><div>         virt_addr = mmap(mapto, len, PROT_WRITE | PROT_READ, MAP_SHARED|MAP_FIXED,</div><div>                          ^~~~~</div><div>In file included from mmap.h:4:0,</div><div>                 from mmap.c:1:</div><div>/usr/include/sys/mman.h:57:14: note: expected ‘void *’ but argument is of type ‘uint64_t {aka long unsigned int}’</div><div> extern void *mmap (void *__addr, size_t __len, int __prot,</div><div>              ^~~~</div><div>gcc -Wall -O0 -g -I. -o intelmetool intelmetool.o me_status.o me.o mmap.o -lpci</div><div>[root@localhost intelmetool]# date</div><div>Wed Dec 28 17:07:26 CET 2016</div><div>[root@localhost intelmetool]# ls -al</div><div>total 228</div><div>drwxrwxr-x. 3 zoran zoran  4096 Dec 28 17:07 .</div><div>drwxrwxr-x. 3 zoran zoran  4096 Dec 28 17:06 ..</div><div>drwxrwxr-x. 8 zoran zoran  4096 Dec 28 17:06 .git</div><div>-rw-rw-r--. 1 zoran zoran    16 Dec 28 17:06 .gitignore</div><div><b><i><u><font color="#ff0000">-rwxr-xr-x. 1 root  root  47008 Dec 28 17:07 intelmetool</font></u></i></b></div><div>-rw-rw-r--. 1 zoran zoran  8956 Dec 28 17:06 intelmetool.c</div><div>-rw-rw-r--. 1 zoran zoran  9783 Dec 28 17:06 intelmetool.h</div><div>-rw-rw-r--. 1 zoran zoran 22144 Dec 28 17:06 intelmetool.o</div><div>-rw-rw-r--. 1 zoran zoran   532 Dec 28 17:06 LICENSE</div><div>-rw-rw-r--. 1 zoran zoran   351 Dec 28 17:06 Makefile</div><div>-rw-rw-r--. 1 zoran zoran 16810 Dec 28 17:06 me.c</div><div>-rw-rw-r--. 1 zoran zoran 10622 Dec 28 17:06 me.h</div><div>-rw-r--r--. 1 root  root  28984 Dec 28 17:07 me.o</div><div>-rw-rw-r--. 1 zoran zoran  7246 Dec 28 17:06 me_status.c</div><div>-rw-r--r--. 1 root  root  15704 Dec 28 17:07 me_status.o</div><div>-rw-rw-r--. 1 zoran zoran  1109 Dec 28 17:06 mmap.c</div><div>-rw-rw-r--. 1 zoran zoran   224 Dec 28 17:06 mmap.h</div><div>-rw-r--r--. 1 root  root   7648 Dec 28 17:07 mmap.o</div><div>-rw-rw-r--. 1 zoran zoran    90 Dec 28 17:06 README.md</div><div><b><i><u><font color="#ff0000">[root@localhost intelmetool]# ./intelmetool </font></u></i></b></div><div><b><i><u><font color="#ff0000">ME is not present on your board because we found a `82371AB/EB/MB PIIX4 ISA`, you are safe, exiting</font></u></i></b></div><div>[root@localhost intelmetool]#<b><i><u><font color="#000000"><br></font></u></i></b></div><div><b><i><u><font color="#000000">_______</font></u></i></b></div><div><br></div></div><div><i><u>Do <b>NOT</b> forget: I run Fedora rawhide on VMWorkstation 12.5.2 Type 2 HYP on the top of WIN10 64 Pro!</u></i></div><div><br></div><div>Please, do the same on Mint18 distro on raw HW, and see if this will give you some different results then what you have presently?</div><span class=""><div><br></div><div>Please, let us know!</div><div><br></div><div>Zoran</div></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 28, 2016 at 11:06 AM, Shawn <span dir="ltr"><<a href="mailto:citypw@gmail.com" target="_blank">citypw@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Zoran,<br>
<br>
I created hwdb.bin via:<br>
<br>
# udevadm hwdb --update<br>
<br>
The result is still "segfault". dmesg:<br>
<br>
[  972.044664] intelmetool[5055]: segfault at 16 ip 000000000040169e<br>
sp 000072ed96a44680 error 4 in intelmetool[400000+6000]<br>
[  972.044674] grsec: Segmentation fault occurred at 0000000000000016<br>
in /usr/local/bin/intelmetool[int<wbr>elmetool:5055] uid/euid:0/0<br>
gid/egid:0/0, parent /bin/bash[bash:4332] uid/euid:0/0 gid/egid:0/0<br>
[  972.044685] grsec: denied resource overstep by requesting 4096 for<br>
RLIMIT_CORE against limit 0 for<br>
/usr/local/bin/intelmetool[int<wbr>elmetool:5055] uid/euid:0/0<br>
gid/egid:0/0, parent /bin/bash[bash:4332] uid/euid:0/0 gid/egid:0/0<br>
<div class="m_-3072280422497818118HOEnZb"><div class="m_-3072280422497818118h5"><br>
<br>
On Mon, Dec 26, 2016 at 9:49 PM, Zoran Stojsavljevic<br>
<<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a><wbr>> wrote:<br>
> Not sure if your strace log has anything to do with intelmetool.<br>
><br>
> I did on your strace log the following (and in RED is possible cause of your<br>
> problems):<br>
><br>
> [zoran@localhost projects]$ cat crash.log | grep ENOENT<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> open("/usr/share/misc/pci.ids.<wbr>gz", O_RDONLY) = -1 ENOENT (No such file or<br>
> directory)<br>
> connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket<wbr>"}, 110) = -1<br>
> ENOENT (No such file or directory)<br>
> connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket<wbr>"}, 110) = -1<br>
> ENOENT (No such file or directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or<br>
> directory)<br>
> open("/root/.pciids-cache", O_RDONLY)   = -1 ENOENT (No such file or<br>
> directory)<br>
> open("/etc/systemd/hwdb/hwdb.b<wbr>in", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such<br>
> file or directory)<br>
> open("/etc/udev/hwdb.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or<br>
> directory)<br>
> open("/usr/lib/systemd/hwdb/hw<wbr>db.bin", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No<br>
> such file or directory)<br>
> open("/lib/systemd/hwdb/hwdb.b<wbr>in", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such<br>
> file or directory)<br>
> [zoran@localhost projects]$<br>
><br>
> I guess, you have one very important missing file in your Linux<br>
> configuration, this one: /etc/systemd/hwdb/hwdb.bin... /etc/udev/hwdb.bin ?!<br>
><br>
> Here is good read:<br>
> <a href="https://www.freedesktop.org/software/systemd/man/hwdb.html" rel="noreferrer" target="_blank">https://www.freedesktop.org/so<wbr>ftware/systemd/man/hwdb.html</a><br>
> <a href="http://www.dsm.fordham.edu/cgi-bin/man-cgi.pl?topic=systemd-hwdb&ampsect=8" rel="noreferrer" target="_blank">http://www.dsm.fordham.edu/cgi<wbr>-bin/man-cgi.pl?topic=systemd-<wbr>hwdb&ampsect=8</a><br>
><br>
> Have no idea who is creating this file, but you can check your Linux distro<br>
> / tree with the following paths to find hwdb.bin:<br>
><br>
> /etc/systemd/hwdb/hwdb.bin<br>
> /etc/udev/hwdb.bin                    <<======= In my Fedora rawhide VM<br>
> (future Fedora 26) I have here hwdb.bin =======<br>
> /usr/lib/systemd/hwdb/hwdb.bin<br>
> /lib/systemd/hwdb/hwdb.bin<br>
><br>
> If you don't have in any, please, create one with the following link:<br>
> <a href="http://www.dsm.fordham.edu/cgi-bin/man-cgi.pl?topic=systemd-hwdb&ampsect=8" rel="noreferrer" target="_blank">http://www.dsm.fordham.edu/cgi<wbr>-bin/man-cgi.pl?topic=systemd-<wbr>hwdb&ampsect=8</a><br>
><br>
> Please, let us know!<br>
><br>
> Zoran<br>
><br>
> On Mon, Dec 26, 2016 at 3:42 PM, Shawn <<a href="mailto:citypw@gmail.com" target="_blank">citypw@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> intelmetool occurs "segfault" on my laptop running Mint 18 with<br>
>> PaX/Grsecurity 4.7.10. The PCI info:<br>
>><br>
>> -[0000:00]-+-00.0  Intel Corporation Sky Lake Host Bridge/DRAM<br>
>> Registers [8086:1904]<br>
>>            +-02.0  Intel Corporation Sky Lake Integrated Graphics<br>
>> [8086:1916]<br>
>>            +-04.0  Intel Corporation Skylake Processor Thermal<br>
>> Subsystem [8086:1903]<br>
>>            +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI<br>
>> Controller [8086:9d2f]<br>
>>            +-14.2  Intel Corporation Sunrise Point-LP Thermal<br>
>> subsystem [8086:9d31]<br>
>>            +-15.0  Intel Corporation Sunrise Point-LP Serial IO I2C<br>
>> Controller [8086:9d60]<br>
>>            +-15.1  Intel Corporation Sunrise Point-LP Serial IO I2C<br>
>> Controller [8086:9d61]<br>
>>            +-16.0  Intel Corporation Sunrise Point-LP CSME HECI<br>
>> [8086:9d3a]<br>
>>            +-1c.0-[01]----00.0  NVIDIA Corporation GM107M [GeForce GTX<br>
>> 960M] [10de:139b]<br>
>>            +-1c.4-[02]----00.0  Samsung Electronics Co Ltd NVMe SSD<br>
>> Controller [144d:a802]<br>
>>            +-1c.6-[03]----00.0  Qualcomm Atheros Killer E2400 Gigabit<br>
>> Ethernet Controller [1969:e0a1]<br>
>>            +-1c.7-[04]----00.0  Qualcomm Atheros QCA6174 802.11ac<br>
>> Wireless Network Adapter [168c:003e]<br>
>>            +-1d.0-[05]----00.0  Samsung Electronics Co Ltd NVMe SSD<br>
>> Controller [144d:a802]<br>
>>            +-1d.2-[06-3e]--<br>
>>            +-1f.0  Intel Corporation Sunrise Point-LP LPC Controller<br>
>> [8086:9d48]<br>
>>            +-1f.2  Intel Corporation Sunrise Point-LP PMC [8086:9d21]<br>
>>            +-1f.3  Intel Corporation Sunrise Point-LP HD Audio [8086:9d70]<br>
>>            \-1f.4  Intel Corporation Sunrise Point-LP SMBus [8086:9d23]<br>
>><br>
>> The crash log was attached! I'm not sure if intelmetool support<br>
>> Skylake as well. One tiny feature of PaX/Grsecurity prevent the ioperm<br>
>> for killing the potential threats in case which<br>
>> the adversary re-flash the SPI ROM once they get the root priv. It<br>
>> does affect flashrom but intelmetool. I also ran intelmetool on the<br>
>> distro( Mint 18) kernel and got the same result.<br>
>><br>
>><br>
>> --<br>
>> GNU powered it...<br>
>> GPL protect it...<br>
>> God blessing it...<br>
>><br>
>> regards<br>
>> Shawn<br>
>><br>
>> --<br>
>> coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
>> <a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/mailm<wbr>an/listinfo/coreboot</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
GNU powered it...<br>
GPL protect it...<br>
God blessing it...<br>
<br>
regards<br>
Shawn<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>