[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fwts-devel
Subject:    Re: MTRR test fail
From:       Alex Hung <alex.hung () canonical ! com>
Date:       2018-05-02 21:24:50
Message-ID: CAJ=jquY7BUtMNK1CynnFZa1TCNnSpFYKgyjF9qg396Uoch5Dsw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


Alternatively, you can have firmware to set
​
0xb5000000 to 0xb5ffffff as cachable in a MTRR register to make sure it is
always cached.

On Wed, May 2, 2018 at 12:54 PM, Alex Hung <alex.hung@canonical.com> wrote:

> Hi Clifton,
>
> CPU's Cache is complex. FWTS checks various places that is known to OS but
> it seems that there are CPU registers FWTS is unable to check.
>
> Especially, FWTS is not able to check CR0 register in Intel's CPU. This
> register has a global switch for cache - CD & NW (see details @ Intel ® 64
> and IA-32 Architectures Software Developer's Manual 3) or
> https://github.com/seporaitis/xv6-public/wiki/CPU-Registers-CR0). If CD &
> NW are correctly configured, you can ignore FWTS's MTRR error messages.
>
> On Fri, Apr 27, 2018 at 2:17 AM, Clifton Lai <CliftonL@hyvesolutions.com>
> wrote:
>
>> Hi Fwts developers
>>
>>
>>
>> When running mtrr test via fwts-live 18.03.00, the result.log always
>> shows "failed".
>>
>> Here is output
>>
>> "FAILED [MEDIUM] MTRRIncorrectAttr: Test 1, Memory range
>> ​​
>> 0xb5000000 to 0xb5ffffff
>>
>> (0000:3d:00.1) has incorrect attribute Uncached."
>>
>>
>>
>> According to the wiki page, https://wiki.ubuntu.com/Firmwa
>> reTestSuite/Reference/mtrr,
>>
>> adding kernel parameter "enable_mtrr_cleanup" to run mtrr test again, it
>> still fail the test.
>>
>>
>>
>> Is there any method to solve this issue?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Best Regards
>>
>> Clifton
>>
>>
>>
>> CliftonL@hyvesolutions.com
>>
>> *[image: 1]*
>>
>>
>>
>> --
>> fwts-devel mailing list
>> fwts-devel@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/fwts-devel
>>
>>
>
>
> --
> Cheers,
> Alex Hung
>



-- 
Cheers,
Alex Hung

[Attachment #7 (text/html)]

<div dir="ltr"><div class="gmail_default" \
style="font-family:verdana,sans-serif">Alternatively, you can have firmware to set \
<div style="font-family:verdana,sans-serif;display:inline" \
class="gmail_default">​</div>0xb5000000 to 0xb5ffffff as cachable in a MTRR \
register to make sure it is always cached.<br></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Wed, May 2, 2018 at 12:54 PM, Alex Hung <span dir="ltr">&lt;<a \
href="mailto:alex.hung@canonical.com" \
target="_blank">alex.hung@canonical.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif">Hi \
Clifton,<br><br></div><div style="font-family:verdana,sans-serif">CPU&#39;s Cache is \
complex. FWTS checks various places that is known to OS but it seems that there are \
CPU registers FWTS is unable to check. <br></div><div \
style="font-family:verdana,sans-serif"><br></div><div \
style="font-family:verdana,sans-serif">Especially, FWTS is not able to check CR0 \
register in Intel&#39;s CPU. This register has a global switch for cache - CD &amp; \
NW (see details @ Intel ® 64 and IA-32 Architectures Software Developer's Manual 3) \
or <a href="https://github.com/seporaitis/xv6-public/wiki/CPU-Registers-CR0" \
target="_blank">https://github.com/seporaitis/<wbr>xv6-public/wiki/CPU-Registers-<wbr>CR0</a>). \
If CD &amp; NW are correctly configured, you can ignore FWTS&#39;s MTRR error \
messages.<br></div></div><div class="gmail_extra"><br><div \
class="gmail_quote"><div><div class="h5">On Fri, Apr 27, 2018 at 2:17 AM, Clifton Lai \
<span dir="ltr">&lt;<a href="mailto:CliftonL@hyvesolutions.com" \
target="_blank">CliftonL@hyvesolutions.com</a>&gt;</span> \
wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-2061390272686824972m_-5271596536122002498WordSection1">
<p class="MsoNormal">Hi Fwts developers<u></u><u></u></p>
<p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">When running mtrr test via fwts-live 18.03.00, the result.log \
always shows "failed".<u></u><u></u></p> <p class="MsoNormal">Here is \
output<u></u><u></u></p> <p class="MsoNormal">"FAILED [MEDIUM] MTRRIncorrectAttr: \
Test 1, Memory range </p><div style="font-family:verdana,sans-serif;display:inline" \
class="gmail_default">​​</div>0xb5000000 to 0xb5ffffff<u></u><u></u><p></p> <p \
class="MsoNormal">(0000:3d:00.1) has incorrect attribute Uncached."<u></u><u></u></p> \
<p class="MsoNormal"><u></u>  <u></u></p> <p class="MsoNormal">According to the wiki \
page, <a href="https://wiki.ubuntu.com/FirmwareTestSuite/Reference/mtrr" \
target="_blank"> https://wiki.ubuntu.com/Firmwa<wbr>reTestSuite/Reference/mtrr</a>,<u></u><u></u></p>
 <p class="MsoNormal">adding kernel parameter <span \
style="font-size:10.0pt;font-family:&quot;DejaVu \
Sans&quot;,sans-serif;color:#333333;background:white"> \
&quot;enable_mtrr_cleanup&quot; </span>to run mtrr test again, it still fail the \
test.<u></u><u></u></p> <p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">Is there any method to solve this issue?<u></u><u></u></p>
<p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">Best Regards<u></u><u></u></p>
<p class="MsoNormal">Clifton<u></u><u></u></p>
<p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal"><a href="mailto:CliftonL@hyvesolutions.com" \
target="_blank">CliftonL@hyvesolutions.com</a><u></u><u></u></p> <p \
class="MsoNormal"><b><span style="font-size:16.0pt;font-family:&quot;Kunstler \
Script&quot;;color:#1f497d"><img style="width:1.875in;height:.6145in" \
id="m_-2061390272686824972m_-5271596536122002498Picture_x0020_1" \
src="cid:image001.png@01D3DE49.C58A4B30" alt="1" width="180" height="59" \
border="0"></span></b><u></u><u></u></p> <p class="MsoNormal"><u></u>  <u></u></p>
</div>
</div>

<br></div></div><span class="HOEnZb"><font color="#888888">-- <br>
fwts-devel mailing list<br>
<a href="mailto:fwts-devel@lists.ubuntu.com" \
target="_blank">fwts-devel@lists.ubuntu.com</a><br> Modify settings or unsubscribe \
at: <a href="https://lists.ubuntu.com/mailman/listinfo/fwts-devel" rel="noreferrer" \
target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/fwts-devel</a><br> \
<br></font></span></blockquote></div><span class="HOEnZb"><font \
color="#888888"><br><br clear="all"><br>-- <br><div \
class="m_-2061390272686824972gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr">Cheers,<br>Alex Hung<br></div></div> </font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr">Cheers,<br>Alex Hung<br></div></div> \
</div></div>


["image001.png" (image/png)]
[Attachment #9 (text/plain)]

-- 
fwts-devel mailing list
fwts-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/fwts-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic