<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Screen corruption on Cayman with dpm enabled"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66932#c23">Comment # 23</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Screen corruption on Cayman with dpm enabled"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66932">bug 66932</a>
              from <span class="vcard"><a class="email" href="mailto:g02maran@gmail.com" title="Martin Andersson <g02maran@gmail.com>"> <span class="fn">Martin Andersson</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=66932#c21">comment #21</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=66932#c19">comment #19</a>)
> > I wasn't very clear in my #12 comment, but what I was trying to say it is
> > something fishy about "reg_block->asRegIndexBuf". It is defined in
> > atombios.h as:
> > ATOM_MEMORY_SETTING_DATA_BLOCK  asRegDataBuf[1];
> >

> It's a variably sized array and the size varies depending on the system. 
> The size of that array is defined by usRegIndexTblSize.  Hence the
> calculation to determine the number of elements:

> num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) /
> sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1;</span >

ok, wasn't aware of that. My compiler is:
gcc (GCC) 4.8.1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>