From: bugzilla-daemon@freedesktop.org Subject: [Bug 107784] [AMD tahiti XT] displayport broken Date: Sun, 09 Sep 2018 03:46:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1400458370==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B511C6E1FA for ; Sun, 9 Sep 2018 03:46:16 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1400458370== Content-Type: multipart/alternative; boundary="15364647760.dFD9709b.17350" Content-Transfer-Encoding: 7bit --15364647760.dFD9709b.17350 Date: Sun, 9 Sep 2018 03:46:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D107784 --- Comment #20 from Sylvain BERTRAND --- Found the bug, very probably. It seems to be an upstream bug: a 32bits multiplication overflow on TSC frequency introduced in recent TSC cleanup: ---------------------------------------------------------------------------= ----- commit cf7a63ef4e0203f6f33284c69e8188d91422de83 Author: Pavel Tatashin Date: Thu Jul 19 16:55:38 2018 -0400 x86/tsc: Calibrate tsc only once During boot tsc is calibrated twice: once in tsc_early_delay_calibrate(= ), and the second time in tsc_init(). Rename tsc_early_delay_calibrate() to tsc_early_init(), and rework it so the calibration is done only early, and make tsc_init() to use the valu= es already determined in tsc_early_init(). Sometimes it is not possible to determine tsc early, as the subsystem t= hat is required is not yet initialized, in such case try again later in tsc_init(). ---------------------------------------------------------------------------= ----- One nasty thing: this commit is broken, it does not compile, hence it's a bisect "skipped" commit. Roughly, if you have a cpu with a frequency above 4.2GHz (max unsigned 32bi= ts), linux time subsystem gets broken leading to the timeouts in displayport programming. Ofc, my cpu runs at 4.7GHz. --=20 You are receiving this mail because: You are the assignee for the bug.= --15364647760.dFD9709b.17350 Date: Sun, 9 Sep 2018 03:46:16 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 20 on bug 10778= 4 from Sylvain BERTRAND
Found the bug, very probably.

It seems to be an upstream bug: a 32bits multiplication overflow on TSC
frequency introduced in recent TSC cleanup:

---------------------------------------------------------------------------=
-----
commit cf7a63ef4e0203f6f33284c69e8188d91422de83
Author: Pavel Tatashin <pasha.tatashin@oracle.com>
Date:   Thu Jul 19 16:55:38 2018 -0400

    x86/tsc: Calibrate tsc only once

    During boot tsc is calibrated twice: once in tsc_early_delay_calibrate(=
),
    and the second time in tsc_init().

    Rename tsc_early_delay_calibrate() to tsc_early_init(), and rework it so
    the calibration is done only early, and make tsc_init() to use the valu=
es
    already determined in tsc_early_init().

    Sometimes it is not possible to determine tsc early, as the subsystem t=
hat
    is required is not yet initialized, in such case try again later in
    tsc_init().
---------------------------------------------------------------------------=
-----

One nasty thing: this commit is broken, it does not compile, hence it's a
bisect "skipped" commit.

Roughly, if you have a cpu with a frequency above 4.2GHz (max unsigned 32bi=
ts),
linux time subsystem gets broken leading to the timeouts in displayport
programming. Ofc, my cpu runs at 4.7GHz.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15364647760.dFD9709b.17350-- --===============1400458370== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1400458370==--