Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp925672rwr; Thu, 27 Apr 2023 09:50:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4IzRcj7AuQiuMQDmQFZX0+CwTY5kaisS08eAEl2C20ksiNPgXTVKxWB5iSP8pZ7hx0nlBe X-Received: by 2002:a17:903:124c:b0:1a6:6bdb:b548 with SMTP id u12-20020a170903124c00b001a66bdbb548mr2694846plh.1.1682614251062; Thu, 27 Apr 2023 09:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682614251; cv=none; d=google.com; s=arc-20160816; b=ei8Ly1mtzOm1lsZwrZZeMMK17LoiOkyvBx4611mE83qb0GFOZWGcK5tE1iVkZrCuCU 6nosiUTqn5lap1/YzTDu3au9newmk+9eWVkQ8IhxeiVlHiQYkS0Ilo4R0XnfykfG95nS 6bDNXKh+bXwYdGms073+5o53yGcBvObzAPuXcYh8PMfhjGcyiIQvipeuGsUHMLnmYMWx Tv70GLXblXJv7x7lk1PaB8feXJ0bEc9Qkxh7UpZL+NvDpE4duCeD/RRhHPcsb2C8RM4e IFcUKBFlY6WnhGbOwOk9d4z8+fhVQQEOUCimuVe12TBd1WEmbqhpzI3pJhv0ebo3QUB+ vmow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=HiN1vy1mSxqhl1zJqbAkCPU+zBt2KnjXhO+teZk7Uco=; b=AgdPr2R/PT9FfXrSpeViZgS/QSHdtiWHlWAStQtH3skYZpO6CBxWSo7TwMfo0/iOoB BRX89OnwGdDEwN+2E3dEQXLI103que/tZ1Hg89j/q7g1L1QsRBytp3XjHLJqS+Cw6LsG uEzuKWNpVbozCkxSk+pLvq9FbQat8x80ZgLMwJv9Xwv+tF2KafJY4XQOg+ds9lMJAdXT zCS5EisoEqgNt0xNSQsy+i3B5JX9PBq2cvqVjQRvvp6SouIRKgXS1eIyqXz9OdS3T/Zn JsGJqvzZVOxPb8az4dxyDy45KF2U87zM1PKdWcRhA9N3ueiQFWCuy2Xdn3UzRxUyWNHY qdhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UotPGb6R; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ft5-20020a17090b0f8500b002478f3a1cbcsi12522pjb.135.2023.04.27.09.50.40; Thu, 27 Apr 2023 09:50:51 -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=@kernel.org header.s=k20201202 header.b=UotPGb6R; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244295AbjD0Qq5 (ORCPT + 99 others); Thu, 27 Apr 2023 12:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244209AbjD0Qqy (ORCPT ); Thu, 27 Apr 2023 12:46:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60DF40DA; Thu, 27 Apr 2023 09:46:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5FA3063E59; Thu, 27 Apr 2023 16:46:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8330AC4339B; Thu, 27 Apr 2023 16:46:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682614012; bh=17fxjxInOE1pmRBAKjYLZA9hzBwswVGO+5F5rsMk/j0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=UotPGb6RzP9FJ5Ib3+QAdAFc3dZJ/3yHIGuEKxZUDZQ2lbgNTnY5pkk8t5D6jj2JJ 5jt8ethLENcrL636wO9GpQZK/E5hOXMUBVwh2VMZchq3YN5yo6Nmx0xl1HO3vfuwIC jardQAHlD5oxZhNjD3TUp8JNpACgX48zuX2SW5/UHJGkk6X2yD7Wr7vpSGlXkMUBn4 yeMJXlbAz6zou5ToaGX/fByz0M/f3RPZCDU7xXcDL7RtudSjSNM+zpnsi/2oJSmknv HHs8YkbpWe2wqj+hKeME7h3ZGbGRb+FzAuNgw4xLju6SXOt3eeSoPeTZxidhgUNfrD xX4yuyE2tB15g== Date: Thu, 27 Apr 2023 11:46:51 -0500 From: Bjorn Helgaas To: Mario Limonciello Cc: Bjorn Helgaas , Hans de Goede , Shyam Sundar S K , Sanket Goswami , Richard gong , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 1/2] amd_nb: Add PCI ID for family 19h model 78h Message-ID: <20230427164651.GA255475@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230427053338.16653-2-mario.limonciello@amd.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, Apr 27, 2023 at 12:33:36AM -0500, Mario Limonciello wrote: > s2idle previously worked on this system, but it regressed in kernel > 6.4 due to commit 310e782a99c7 ("platform/x86/amd: pmc: Utilize SMN > index 0 for driver probe"). > > The reason for the regression is that before this commit the SMN > communication was hardcoded, but after amd_smn_read() is used which > relies upon the misc PCI ID used by DF function 3 being included in > a table. The ID was missing for model 78h, so this meant that the > amd_smn_read() wouldn't work. > > Add the missing ID into amd_nb, restoring s2idle on this system. Is there a long-term solution for this that will not require adding new IDs every time new hardware comes out? drivers/platform/x86/amd/pmc.c already matches ACPI IDs; maybe there's some way for the platform to provide the information you need via ACPI or something? Bjorn