Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3728021pxu; Sun, 20 Dec 2020 13:21:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAX86Z7zAfcOk674Gn6BbWEG3nUllFr7IZPy1FlG97TMAL8omxz237qIOyB3LSrCJBD84R X-Received: by 2002:a17:906:77ce:: with SMTP id m14mr13370959ejn.10.1608499309154; Sun, 20 Dec 2020 13:21:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608499309; cv=none; d=google.com; s=arc-20160816; b=nfgKLU2ux/ksxNkPBF5K1Q0FYxz8rYBbUAzqhMJv7TE8zuCq4UapvJ46/JZTcoMz/p 0iwdnaWLDfAEwpkX9l5LC82fa2EZm7MaMsxZy6aKVHX8DoiCcJYgT+RcKSMedllrOksH OGtqhTYAu+fVZqtPaAwr5TWOdTx74XwGKIFFIU/Yd93EyFGVvNTCQ7PjGjAYg8qeZhxa XRhIZxp0mlRNFdNyFF7XQ1ksxM75n/zRwQ1ItFg82doCEV4kM+nbly3SfZ//c535/vLj R8dfjO3CdbKD3ypaQKLSP3rIk3MhkCJllHDy+XeWYqoM/AjZK2BJiIzAiYvIqt26Zuae 3QYg== 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:message-id:subject:cc:to :from:date; bh=+NrcnPgGZLLRY3+eZOVWlHUwSHR/37Y/+KQ3X+MlAbc=; b=rU+YAoHNl8lMNZsuCVdpoXnsxuZxkWENyZU5uPbSUYAdjV6+IWOf6qTRflTYdFWhlW GEU6SDLbE0bcZbAMvunTowEm7ktSxB8VydatB4iS7LzdDHtScDA1ivV/9Ttdm81ekKRA 5pRtBlmfIansZGhuMrlRuZjPjtmOaHhKKY1VQp1T3e2xu5N+Md9T8FyhSbUeHrP5NIed fo84VNq7oMOgyYTz6ajOxchU1Ui8sJvf6oNAE0bJ5xttTGdf1Lo6Uy4aUxTbAUxdrwjh krghuICVf7UgrQirPZKtEyOm2RKuPnj/h1wJAAnSoNwNmKG0XLAJg1nmPq0cIkYSywYR FXgw== 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 lx7si1438196ejb.280.2020.12.20.13.21.26; Sun, 20 Dec 2020 13:21:49 -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 S1727364AbgLTVTP (ORCPT + 99 others); Sun, 20 Dec 2020 16:19:15 -0500 Received: from mail.ispras.ru ([83.149.199.84]:36432 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726623AbgLTVTP (ORCPT ); Sun, 20 Dec 2020 16:19:15 -0500 X-Greylist: delayed 374 seconds by postgrey-1.27 at vger.kernel.org; Sun, 20 Dec 2020 16:19:14 EST Received: from monopod.intra.ispras.ru (unknown [10.10.3.121]) by mail.ispras.ru (Postfix) with ESMTPS id 9A64540A1DA4; Sun, 20 Dec 2020 21:12:14 +0000 (UTC) Date: Mon, 21 Dec 2020 00:12:14 +0300 (MSK) From: Alexander Monakov To: platform-driver-x86@vger.kernel.org cc: Shyam Sundar S K , Hans de Goede , Alexander.Deucher@amd.com, linux-kernel@vger.kernel.org Subject: amd-pmc s2idle driver issues Message-ID: 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 Hi folks, I've tried the "platform/x86: amd-pmc: Add AMD platform support for S2Idle" patch on my Acer Swift SF314-42 laptop (Renoir SoC, Ryzen 4500U CPU) and hit the following issues: 1. The driver doesn't bind to any device. It has the following binding table: +static const struct acpi_device_id amd_pmc_acpi_ids[] = { + {"AMDI0005", 0}, + {"AMD0004", 0}, + { } +}; This laptop has "AMD0005" instead. Adding it to the list allows the driver to successfully probe. 2. The debugfs interface does not seem to be very helpful. It shows SMU FW Info: ffffffff It's not very informative. The code seems to be fetching SMU version from mmio, so I guess the file should be saying "FW version" rather than "FW Info", and then, I think version number is not supposed to be "-1". (and I'm afraid I cannot use the driver, as there seems to be an issue with GPU resume: sometimes the screen is frozen or black after resume, so I need to reboot the laptop :( ) Alexander