Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1563337pxb; Thu, 14 Apr 2022 08:45:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyunCE8XHgxzn5R1Azhoi0339mzMHPFIoze3vX6Ds5xPH8skchmI+TEVKcOMZRuoa6pmPhO X-Received: by 2002:a17:90b:4ad2:b0:1c7:cee:b126 with SMTP id mh18-20020a17090b4ad200b001c70ceeb126mr4248495pjb.219.1649951138734; Thu, 14 Apr 2022 08:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649951138; cv=none; d=google.com; s=arc-20160816; b=px+Qjjm+znz1K6ZGkwsew6R5oKY98TcfWrG0+nrlptWUOPX2yNUJsFHimE+PCJjFod lebzvCMDjDacGor5kUmzN7pom1JDvsWC4Fe/JUE5HS1ndsCSiF9wFXPJkYDoiHDZiLQG edWH6v6aDt9+QapOi2w02we/XYvBFxJ4AF2/efQ9l+SkIH73TXB9oC5f/jMbYW2s/5pa 7xdeNtScJzWzJIWK5drJkpY/qxiqwMbyfBC50lKRfN7CEWbCa4R5hOsu4d+C8DbnjaaC yMCosaFlrIlvUygiKI2PasnFWzeZy1ykrlCtUDABQ/5XLBRLMqPpXW5oXe04s7DhDq48 Lrrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o6aYxcvUneI95bTdsz28eCaOVBdeKnTjyTuYgm31g58=; b=ihMkNmRQwsQ4qKFFT0pAoqFUuckqWk1cW1ZItz/HWbNpodP1u21ue/JuxwWfmH1mw8 DlFBYrokd77b1fDBr9p+A4d0rFruxRwBRHsJrDKc9SrbCdGp5Erg7fCaW+TDBINEq6Q9 lf1rAJJvFI43xlNDzcLxdyP4Mp9RrM02ardEYhWwoUlzuiihxFAnSZbYlB3S/SNOCCmT jSKGsPR1K+DjT9m4qhF55WDFbeMM7/b2APhCKFtSPJjnyk5cwAKyBNli5k8f18kLdOvr KpTBsYp3/Vq4mzuGlw//j4j2wbt3cZUc7HcUW6LhxdhpB70+aJqHwMytBxIQA4ia5v9B npdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ar3JAMnH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a654643000000b0039cc448271dsi8394564pgr.571.2022.04.14.08.45.24; Thu, 14 Apr 2022 08:45:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ar3JAMnH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238457AbiDMToA (ORCPT + 99 others); Wed, 13 Apr 2022 15:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237993AbiDMTn6 (ORCPT ); Wed, 13 Apr 2022 15:43:58 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DFEE78073 for ; Wed, 13 Apr 2022 12:41:36 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id g18so6029936ejc.10 for ; Wed, 13 Apr 2022 12:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=o6aYxcvUneI95bTdsz28eCaOVBdeKnTjyTuYgm31g58=; b=Ar3JAMnHPCsIfQYgcOes+uiSzpnx2R4RdaeNwBiYdyffO5H4jlupRKtMT1blWMazuk tjVoI3SSwl54uS9M3FkXwQePiClm6RACTE/aXHpYtDIRLtOo03dbhCVQitsMd4w3dFd8 czqlfics96/Kpux4eQ2ek8DDhjaj8YRi39er2T83Pv/WnUs4r3dPgAtkzpGfE5BvtZLd 2fAt15A/DSqyFYyrnl54U7zparp6BwDfcWc9xUuy3y/qMp/oZ790IL4hV0y5uIvSNRuK 0elHxdOKzwMOa/VazktVd6X0o2vuu8fEdDPYovN1jRitw/MVI/utxIcOkAM4oZd7AZIW bJzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=o6aYxcvUneI95bTdsz28eCaOVBdeKnTjyTuYgm31g58=; b=sTpdl9eOJmTPXpBk8BsAg2TTB9efSEEqh8w7bsx8id6eze8EbArf3XDAUQBjy/OVNh xxxyA/IYBSyphSzP+bWqT2hN8IAYs5GnKEh/yCJuWNxwipNrWmGpiFCpxQeaFg1st7cO N5uoeiTK0cxDyrZIlKI5XZ5k+wnWP7vbalYLd+z0hI+/E4vVwQ+0Ky48mHCz4pfmkRva xEE9kjf1r4cfQ7PT8butGLTau46vm6gsIeLysnzmFJbmnHBVai/GaLxMkAZVf65uudPR KpvZhD241iywuDZdNX+xHF+fEadRgn25tCqrYPvPdppElLWU0qQex5m0wXpCR5wG1uKn lsGA== X-Gm-Message-State: AOAM531U5i3TNpjFCRqCPdJjB2Yc6pvw83yHxRXrhKzzgrMgH0Of2oIP FZ+y3UPY3VQH+K6Rwi8uJ+o= X-Received: by 2002:a17:906:6a14:b0:6e8:a87d:3f2f with SMTP id qw20-20020a1709066a1400b006e8a87d3f2fmr10779140ejc.300.1649878894821; Wed, 13 Apr 2022 12:41:34 -0700 (PDT) Received: from darkstar.example.org (host-79-21-204-193.retail.telecomitalia.it. [79.21.204.193]) by smtp.gmail.com with ESMTPSA id h7-20020a1709066d8700b006d4b4d137fbsm287200ejt.50.2022.04.13.12.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 12:41:34 -0700 (PDT) Date: Wed, 13 Apr 2022 21:41:32 +0200 From: Michele Ballabio To: Alex Deucher Cc: LKML , regressions@lists.linux.dev, Maling list - DRI developers , amd-gfx list Subject: Re: AMDGPU: regression on 5.17.1 Message-ID: <20220413214132.6aaa061a@darkstar.example.org> In-Reply-To: References: <20220403132322.51c90903@darkstar.example.org> <20220404213940.09a56d15@darkstar.example.org> <20220409182831.185e5d92@darkstar.example.org> <20220413193337.16ecc808@darkstar.example.org> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Apr 2022 14:14:42 -0400 Alex Deucher wrote: > On Wed, Apr 13, 2022 at 1:33 PM Michele Ballabio > wrote: > > > > On Mon, 11 Apr 2022 14:34:37 -0400 > > Alex Deucher wrote: > > > > > On Sat, Apr 9, 2022 at 12:28 PM Michele Ballabio > > > wrote: > > > > > > > > On Tue, 5 Apr 2022 10:23:16 -0400 > > > > Alex Deucher wrote: > > > > > > > > > On Mon, Apr 4, 2022 at 3:39 PM Michele Ballabio > > > > > wrote: > > > > > > > > > > > > On Mon, 4 Apr 2022 13:03:41 -0400 > > > > > > Alex Deucher wrote: > > > > > > > > > > > > > On Sun, Apr 3, 2022 at 10:19 AM Michele Ballabio > > > > > > > wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > I've hit a regression on 5.17.1 (haven't tested > > > > > > > > 5.17.0, but 5.16-stable didn't have this problem). > > > > > > > > > > > > > > > > The machine is a Ryzen 5 1600 with AMD graphics (RX > > > > > > > > 560). > > > > > > > > > > > > > > > > The regression I hit seems to trigger when the machine > > > > > > > > is left idle at boot (I don't boot straight to X, I > > > > > > > > boot to a tty, login and then start X). The machine > > > > > > > > after a while blanks the screen. Usually, the screen > > > > > > > > unblanks as the keyboard is hit or the mouse moves, but > > > > > > > > with kernel 5.17.1 the screen does not wake up. The > > > > > > > > machine seems to run mostly fine: I can login from ssh, > > > > > > > > but I cannot reboot or halt it: a sysrq sequence is > > > > > > > > needed for that. Note that if the screen goes blank > > > > > > > > under X, it wakes up fine. > > > > > > > > > > > > > > > > Below a dmesg and two traces from syslog (they're quite > > > > > > > > similar). > > > > > > > > > > > > > > Can you bisect? Does setting amdgpu.runpm=0 help? > > > > > > > > > > > > I can try to bisect, should I narrow the search to > > > > > > drivers/gpu/drm/ ? > > > > > > > > > > I would just do a full bisect if possible in case the change > > > > > happens to be outside of drm. > > > > > > > > > > > > > > > > > Setting amdgpu.runpm=0 works, the display now unblanks > > > > > > without problems. > > > > > > > > > > > > > Hi, > > > > I bisected this, and the first bad commit is > > > > [087451f372bf76d971184caa258807b7c35aac8f] drm/amdgpu: use > > > > generic fb helpers instead of setting up AMD own's. > > > > > > > > Let me know if you need some more testing. > > > > > > Thanks. Do the attached patches fix the issue? > > > > > > Thanks, > > > > > > Alex > > > > Sorry, no. I applied them both on top of 5.17.1. > > Thanks. Please try the attached patch. > > Thanks, > > Alex I applied the v2 patch on top of 5.17.1 and it works as expected. Tested-by: Michele Ballabio Thanks, Michele Ballabio