Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4090513pxa; Sun, 9 Aug 2020 23:45:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2esX/GDoVF5OJkMNLu9Cy2sb3EuWLyU3ZxYfZlGlw5utFeKXhkR1hF0ZsQAixTeffo7oS X-Received: by 2002:a50:a2e6:: with SMTP id 93mr18987503edm.147.1597041919063; Sun, 09 Aug 2020 23:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597041919; cv=none; d=google.com; s=arc-20160816; b=k6ZC71RZBJMWt3IrjGsVTvB/wmYO1CMGu9XgrkHQ55TQz1gQKA1AC6rnGIWK4P7Uox Qg9tNe7AbEEROwnVWEnb65KatCARUotj1ff8/jcTMNj7YdtkFXvFqBuKBGBlcNJIv/Sn 9FRqOeZCKVQUwP08tk6zccQ/A90z/i6tn19Uuv/goVCjlUwDCzABvIcwpOR3bLp18Fr9 FIwa+Q1XwARpYNxw5X8fXdZIA0f1ne0XsmTLn/jGKySkfgA7nfOt/GdHgpMJN8JduZjh +STWO1nU4IWEEWBnXuWLq0S0huNP0Jg+2TPPXliDbKpeL/YtNCyZDqnqP2FZC+bUNe// Wnwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=sexvxiG5m052fdQQf+p3zIz1v2fDAcqNy311Uffp1QA=; b=QzEPmAOhGPfORyARnhmVqA9wD92s/TVMCJslKFvTR0V7LaZ7D7VKBivDKSFqhV0A8i KFouOZFwTL79CL39p/2dNOdLXD4AUPPOElUl32o0HA8+IuEucjt9qmHOsgIYj4Mkl2ea jnxui3mmgVfV/WLYdqulK+vrqqv5Ag0v6huxW9S3KmH7deXJFidcnV28vWo8rflpJVYH ub661HbeD6f5oC07PyRGefCZuX3SBXc4GiPxKcZheEcrDyRu0gIdU8PPFz4TSL0D63VN 2POazJWqZyAYDyyocGTYIKmS8k5t1EPJhjI9IhmQNqAeG2thzMB2tKZkZL6Mf/lZiUq1 031g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo4si9627994ejb.455.2020.08.09.23.44.55; Sun, 09 Aug 2020 23:45:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725846AbgHJGoA (ORCPT + 99 others); Mon, 10 Aug 2020 02:44:00 -0400 Received: from mail.ispras.ru ([83.149.199.84]:43662 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbgHJGn7 (ORCPT ); Mon, 10 Aug 2020 02:43:59 -0400 Received: from monopod.intra.ispras.ru (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTPS id 435F440A2060; Mon, 10 Aug 2020 06:43:57 +0000 (UTC) Date: Mon, 10 Aug 2020 09:43:57 +0300 (MSK) From: Alexander Monakov To: Ignat Insarov cc: linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Alex Deucher Subject: Re: Non-deterministically boot into dark screen with `amdgpu` In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="168458499-1805300261-1597041837=:2454" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --168458499-1805300261-1597041837=:2454 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Hi, you should Сс a specialized mailing list and a relevant maintainer, otherwise your email is likely to be ignored as LKML is an incredibly high-volume list. Adding amd-gfx and Alex Deucher. More thoughts below. On Sun, 9 Aug 2020, Ignat Insarov wrote: > Hello! > > This is an issue report. I am not familiar with the Linux kernel > development procedure, so please direct me to a more appropriate or > specialized medium if this is not the right avenue. > > My laptop (Ryzen 7 Pro CPU/GPU) boots into dark screen more often than > not. Screen blackness correlates with a line in the `systemd` journal > that says `RAM width Nbits DDR4`, where N is either 128 (resulting in > dark screen) or 64 (resulting in a healthy boot). The number seems to > be chosen at random with bias towards 128. This has been going on for > a while so here is some statistics: > > * 356 boots proceed far enough to attempt mode setting. > * 82 boots set RAM width to 64 bits and presumably succeed. > * 274 boots set RAM width to 128 bits and presumably fail. > > The issue is prevented with the `nomodeset` kernel option. > > I reported this previously (about a year ago) on the forum of my Linux > distribution.[1] The issue still persists as of linux 5.8.0. > > The details of my graphics controller, as well as some journal > excerpts, can be seen at [1]. One thing that has changed since then is > that on failure, there now appears a null pointer dereference error. I > am attaching the log of kernel messages from the most recent failed > boot — please request more information if needed. > > I appreciate any directions and advice as to how I may go about fixing > this annoyance. > > [1]: https://bbs.archlinux.org/viewtopic.php?id=248273 On the forum you show that in the "success" case there's one less "BIOS signature incorrect" message. This implies that amdgpu_get_bios() in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c gets the video BIOS from a different source. If that happens every time (one "signature incorrect" message for "success", two for "failure") that may be relevant to the problem you're experiencing. If you don't mind patching and rebuilding the kernel I suggest adding debug printks to the aforementioned function to see exactly which methods fail with wrong signature and which succeeds. Also might be worthwhile to check if there's a BIOS update for your laptop. Alexander --168458499-1805300261-1597041837=:2454--