<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [4.17-rc1] RIP: smu7_populate_single_firmware_entry.isra.6+0x57/0xc0 [amdgpu] RSP: ffffa17901efb930"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105760#c21">Comment # 21</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [4.17-rc1] RIP: smu7_populate_single_firmware_entry.isra.6+0x57/0xc0 [amdgpu] RSP: ffffa17901efb930"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105760">bug 105760</a>
              from <span class="vcard"><a class="email" href="mailto:kugel@rockbox.org" title="Thomas Martitz <kugel@rockbox.org>"> <span class="fn">Thomas Martitz</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=140560" name="attach_140560" title="workaround">attachment 140560</a> <a href="attachment.cgi?id=140560&action=edit" title="workaround">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=105760&attachment=140560'>[review]</a>
workaround

The attached workaround makes resuming generally work on my system. The problem
seems to be that the memory that smu_data->header is pointing to changes behind
the code's back. (I used printk inside smu7_populate_single_firmware_entry()
and saw that the pointer (&toc->entry[0]) passed to it is widely different from
what the caller sees, so I think the structure pointed to by toc gets
overwritten)

I assume this is some mapped memory and some HW component in the GPU writes to
it while the CPU is using it, isn't it? If so, the proper fix would be to
prevent that but I don't know what's the proper way of doing it in this
context.

I hope the experts can take a look into the patch for more insight and a real
fix.</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>