<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    That stuff is already available as current_link_speed and
    current_link_width in sysfs.<br>
    <br>
    I'm a bit reluctant duplicating this information in the IOCTL
    interface.<br>
    <br>
    Christian. <br>
    <br>
    <div class="moz-cite-prefix">Am 30.12.22 um 23:07 schrieb Marek
      Olšák:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAxE2A720cJguG5b+0zbP=G4TxTjpqKBvOqDXXAP0LWHZEuj0A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">For computing PCIe bandwidth in userspace and
        troubleshooting PCIe<br>
        bandwidth issues.<br>
        <br>
        For example, my Navi21 has been limited to PCIe gen 1 and this
        is<br>
        the first time I noticed it after 2 years.<br>
        <br>
        Note that this intentionally fills a hole and padding<br>
        in drm_amdgpu_info_device.<br>
        <br>
        <div>Signed-off-by: Marek Olšák <<a
            href="mailto:marek.olsak@amd.com" moz-do-not-send="true"
            class="moz-txt-link-freetext">marek.olsak@amd.com</a>></div>
        <div><br>
        </div>
        <div>The patch is attached.</div>
        <div><br>
        </div>
        <div>Marek<br>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>