Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5081801pxu; Tue, 22 Dec 2020 07:59:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJy49E1nt/ObWsXS6J2OiZbU8M1v+7cOM/D71o9Bbj6U7pj3IKmCTL79R0MgyV09h/SWhjHs X-Received: by 2002:a17:906:6a8a:: with SMTP id p10mr19734909ejr.169.1608652783744; Tue, 22 Dec 2020 07:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608652783; cv=none; d=google.com; s=arc-20160816; b=krsDNuudE1//5Ftw7YwoHxjXX+axRHMgdfNfXKZdxFXN5omS+o99uTR2RoFqGpMGuk Fq47j85Z8HgQ7+jthf7YiWjTlS/qwTh+WEox9zMd0DVzm+nLnZNtqaMG7Shkyk0mjlO7 +xIT6UfQO5hQcVgPA/eiTKsETbic7gi9rm3vBdpyGyxgELzG7nmhDBMru5usY1o1onsn 0Ufp/XEgr/2v65vShjgbelqF/vBr1zYf7C539x2aD9cXMvGHbneJn28a6mM47H67IPYf Gv1yHORJom8siS6G3IQtK7Z9TK7RAToOfds7psGAhK0yvuM9DzUHMcZccL2lV6E7BHUh u6PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=lAyUmoQic4+fNn9u+kgcT01LUrmFA7NayTXxCgFatZg=; b=qAFSZCYfObgKRFMs0hNMVlqKdelNTShdimnVnuldjYDEnp5jwzkQQOYtVwo+wvMvY6 5jrCxKG7DUo6xsiq5J6cdPb7iLau2wmcO91//0d7bHjo99Bf2Z6TOb1ecJt3YIWANMxb AAiXfntoKtHCQivCqtP5kdmXiVh6GCf6ithhjJDe9f7snD1412uzghCvKuQy0y+e8mvK mG2NvHwS4NdmzAuq5kqCXJhcrhzeHV7znko0Lsl2wpK9eQLhBtNPrzI9UaRWlW13uNwX Es0Pb5dfGTNh1t0qvupm8nWWAc8xPGiGNLSogIueN1MfP52Kh+ykxg3pxKbKlkDuQEX6 a3EQ== 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 h4si2028931edf.490.2020.12.22.07.59.19; Tue, 22 Dec 2020 07:59:43 -0800 (PST) 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 S1727094AbgLVP55 (ORCPT + 99 others); Tue, 22 Dec 2020 10:57:57 -0500 Received: from mail.ispras.ru ([83.149.199.84]:53634 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbgLVP55 (ORCPT ); Tue, 22 Dec 2020 10:57:57 -0500 Received: from monopod.intra.ispras.ru (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTPS id 6C92040D4004; Tue, 22 Dec 2020 15:57:15 +0000 (UTC) Date: Tue, 22 Dec 2020 18:57:15 +0300 (MSK) From: Alexander Monakov To: "Deucher, Alexander" cc: "platform-driver-x86@vger.kernel.org" , "S-k, Shyam-sundar" , Hans de Goede , "linux-kernel@vger.kernel.org" Subject: RE: amd-pmc s2idle driver issues In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Dec 2020, Deucher, Alexander wrote: > > Yes. Out-of-the-box it's a "modern standby" laptop. There's a "hidden" > > bios menu with extra settings that apparently allows to select legacy S3. > > I did not change it, so I'm testing the "modern" mode. > > > > Note that this driver fetches SMU version from MMIO, which looks odd to > > me: > > elsewhere (i.e. in the amdgpu driver) SMU version is retrieved by issuing the > > corresponding SMU command, as far as I can tell. > > There are multiple interfaces to the SMU. It's shared by the entire SoC on > APUs. Just pointing that out because evidently this interface does not work on this laptop, producing all-ones instead of something resembling a version number. Which APU generations does this driver support? If it does not support Renoir (yet?) it should be documented in the Kconfig text. Is Renoir support related to missing AMD0005 ACPI id binding, and borked version number info? Alexander