Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp728471pxf; Thu, 25 Mar 2021 12:37:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqCxTb0+iYLfznUartDR1WzX7mE4kHxB/iuUzlU94FzmIZgsc93f3bY70Q/x/G6B1imLpw X-Received: by 2002:aa7:c7d5:: with SMTP id o21mr10896033eds.166.1616701045167; Thu, 25 Mar 2021 12:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616701045; cv=none; d=google.com; s=arc-20160816; b=UYW3Q9s/XoOhDYCFzDd08we5wRef2PHocm8ln/TbAo/hxCCfeQk1pjNnepfbXa9GMi r0F/pRQiExQx22MR/OBUYHX0p58FokazfhRWmP360yshOq+7BmyWPvN1P+6BKisLTj+q HAU8/DkmGUeM1PbM9XRrynkPWcHRp4GKn71VY6Hwz1ccC926uf+XKgi7LbnAaqgzUHX3 hifQjWXh4aEir3Xqq+/uFw8XCphlkNiRLJ3mqgt54OUJHk7zk6f6INcN0bnSTmnNGjHh 4LF0T9IsccMWUYfQRADnPKni6Z4tvB5gge7ipN7uxdbwoWMYDS359WUdFXFs2oIh/XA7 goqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from; bh=AKzFTAoEmX8zPUJ4eQk4zPku8Aei5Ous5OKh0e6tGYE=; b=NCPPb9PKgwDKToGMGEG/u73VYflCLehUmkcg5ptMtxZZiXJPnz6bIjiOu9fi7SVEa4 hG3c4QhaSMHmB0dhPhiHS2rAJSyUPPLvapZqB0OGsjsN2DSatjqLhhUJXn1PZn9seYhg b6SkgAPmW2i8dRcrJbLSGG8uEsDoYMDduOAYywTu5r6LasMvhnAdZMMJRjnf4YnT2uvT jN5UOLRRZvDiiH2sSzomww/nHlrnWuOIL0+fP6xRmculTE73LQQV8c6fHd7Mf2nQAIEK fk+/E/4D/N7Pf9RIJqj+oxD3KC8np0U4fcYf9cwIqryC3C8RRjt8ZeVHDYmB5UV9TooX hkTA== 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=gnu.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si4987223ejw.277.2021.03.25.12.37.02; Thu, 25 Mar 2021 12:37:25 -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=gnu.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbhCYTdq (ORCPT + 99 others); Thu, 25 Mar 2021 15:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbhCYTd2 (ORCPT ); Thu, 25 Mar 2021 15:33:28 -0400 Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 384C6C06174A; Thu, 25 Mar 2021 12:33:28 -0700 (PDT) Received: from fencepost.gnu.org ([2001:470:142:3::e]:58621) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPVjN-0003nh-Pj; Thu, 25 Mar 2021 15:33:21 -0400 Received: from host-37-191-226-238.lynet.no ([37.191.226.238]:41772 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lPVjL-0005TK-0E; Thu, 25 Mar 2021 15:33:20 -0400 From: Marius Bakke To: ricky_wu@realtek.com Cc: arnd@arndb.de, bhelgaas@google.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, puranjay12@gmail.com, rui_feng@realsil.com.cn, ulf.hansson@linaro.org, vailbhavgupta40@gamail.com Subject: Sudden poweroffs when idle on ThinkPad x290s since v5.10-rc1 (bisected to 7c33e3c4c79a) In-Reply-To: 20200907100731.7722-1-ricky_wu@realtek.com Date: Thu, 25 Mar 2021 20:33:16 +0100 Message-ID: <87tuozm3k3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, After updating to the 5.10 kernel, my laptop will spontaneously poweroff when idle after some time (between 30 minutes and three days). I have bisected it down to a rtsx driver update in 7c33e3c4c79a: commit 7c33e3c4c79ac5def79e7c773e38a7113eb14204 Author: Ricky Wu Date: Mon Sep 7 18:07:31 2020 +0800 misc: rtsx: Add power saving functions and fix driving parameter =20=20=20=20 v4: split power down flow and power saving function to two patch =20=20=20=20 v5: fix up modified change under the --- line =20=20=20=20 Add rts522a L1 sub-state support Save more power on rts5227 rts5249 rts525a rts5260 Fix rts5260 driving parameter =20=20=20=20 Signed-off-by: Ricky Wu Link: https://lore.kernel.org/r/20200907100731.7722-1-ricky_wu@realtek.= com Signed-off-by: Greg Kroah-Hartman drivers/misc/cardreader/rts5227.c | 112 +++++++++++++++++++++++++++- drivers/misc/cardreader/rts5249.c | 145 +++++++++++++++++++++++++++++++++= +++- drivers/misc/cardreader/rts5260.c | 28 +++---- drivers/misc/cardreader/rtsx_pcr.h | 17 +++++ 4 files changed, 283 insertions(+), 19 deletions(-) (See also .) I'm not sure whether this is a driver or hardware problem and am seeking feedback on how to further debug the issue. FWIW the problem does not seem to reproduce on an AMD ThinkPad T14 Gen 1 with the same RTS522A PCIe card reader (on stock Arch 5.10.16 kernel). Thanks & happy hacking, Marius --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCYFzlfA8cbWFyaXVzQGdu dS5vcmcACgkQ6HGLpZEUEHf4ngD+LGctGYG2EYdNavgHwhsvYsfyjXRMo6lrr+fO NCX2074A/3dOuSD880jXBrGi/NymBDhkUGID/X0MwUrzxoYzXwgN =DJhI -----END PGP SIGNATURE----- --=-=-=--