Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp971754pxb; Thu, 23 Sep 2021 14:53:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1GGW20YXzgmNIYY5yvudmvw0lZ2xXrvFmefF/eqXtOxM/se4v3lIIeom3LbAqs6/50sGg X-Received: by 2002:a6b:ec03:: with SMTP id c3mr6022071ioh.179.1632433985035; Thu, 23 Sep 2021 14:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632433985; cv=none; d=google.com; s=arc-20160816; b=FSAfweWW51xmC/vmsqg6EbnleQJxeVLQzjgI2ZoJimQ1d/+u/LVOXv8EDH5vEIltZA KyLVjA6cjeQbza0TJ/k8qJN+U+L7JWgdClrCjWbPk1Kg0Xfk1ZM5BkB2l4RuHXSWVHd+ PieQaVYJ4ugvpBHncVaeRuRD2OZsysi/ITj5V1qvHVHHxFxgm1/0hvBm6gJJYONVjK7R yHqCDqs7/DJukkA+Opueg0Z7QJvleevAe3sX9pt65SABIL67GAB6XO9vx8LXK2A70kLj I8l87XfHVKahfosmgouULLjNJspAiucBuIpRDqKZfTEt+4WK130203aL8WM/NiG74mOR j4hg== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JiSJZ8Y9NFfPBI5BSNs3+0SwRHFMafHYNJk/nxiazdg=; b=TKQ7S/2YV4ZgD2k6GT453u5D2dvPDG8J+d5b7jFZYgE7RhIEldlIICbBGqV029JH1g pPJLuJdH8hMjwhOG5+Ad2wLa6hZX7OF/ehNGc8nxh9v4TATUCqA+QVJ5N348z27TMHfK k6tQLWC8uj3Aiz9muk9nWnXC/9VvLYOdYoSQia9AzhSlZlQfV76slo1lRhn3SJLKW8Fw WuRFpJravQaqSGpmRpnFPwB0KKbQ1SVH0eDjL6lA7TCKT2DgnHvd/+qKeAcX9Xpnt7GR Mtse1WZKM7LlpoB19daNTL8wS2h29u2SH4QhpZqp2Ut/Gwu3bzC50KoozDzxkLh7KlRZ y1cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FkZoG+0v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si9870935jaj.126.2021.09.23.14.52.51; Thu, 23 Sep 2021 14:53:05 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FkZoG+0v; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236135AbhIWVwZ (ORCPT + 99 others); Thu, 23 Sep 2021 17:52:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbhIWVwX (ORCPT ); Thu, 23 Sep 2021 17:52:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E97661152; Thu, 23 Sep 2021 21:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632433851; bh=G33CELDjpkIi7/i+uSBAnuvjXvPt234/sYyyXuqZrI4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FkZoG+0vEIqOypwkpQR8BTY8ITWbpIDNzfdC9qV1Pr48wxfdh+QKa1AwxlMeVhzDY syAvS70GO0Pewf6cCUDNZFtBSf0H5UVv0/p0MJRapqMNhVU6Epzd3PaTgNNYbedU4d xFdWheJpNjs8xsJIeZ59I5K4h/5J4uI2BXhV7rLA/qFb+us7nE0IHjGXXeolcfaLly vI+tPFsYps4kb1WRuYYI0/5O5rd5A4Akp4ycO1HcZNRCZZEKAVswqYxQ3/FDeJ2GgF MGxVLv17ZhHdrhpoUku43f8Y4qFvnODKOlYRHXUvW9T7IhwEyzVpFDRMX1OcjmpLrp F6HzVHtZUb1jA== Date: Thu, 23 Sep 2021 14:50:47 -0700 From: Nathan Chancellor To: Sanket Goswami Cc: Shyam-sundar.S-k@amd.com, hdegoede@redhat.com, mgross@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] platform/x86: amd-pmc: Export Idlemask values based on the APU Message-ID: References: <20210916124002.2529-1-Sanket.Goswami@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916124002.2529-1-Sanket.Goswami@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 06:10:02PM +0530, Sanket Goswami wrote: > IdleMask is the metric used by the PM firmware to know the status of each > of the Hardware IP blocks monitored by the PM firmware. > > Knowing this value is key to get the information of s2idle suspend/resume > status. This value is mapped to PMC scratch registers, retrieve them > accordingly based on the CPU family and the underlying firmware support. > > Co-developed-by: Shyam Sundar S K > Signed-off-by: Shyam Sundar S K > Signed-off-by: Sanket Goswami This patch as commit f6045de1f532 ("platform/x86: amd-pmc: Export Idlemask values based on the APU") in -next causes the following errors when CONFIG_DEBUG_FS is disabled: drivers/platform/x86/amd-pmc.c:424:2: error: implicit declaration of function 'amd_pmc_idlemask_read' [-Werror,-Wimplicit-function-declaration] amd_pmc_idlemask_read(pdev, dev, NULL); ^ drivers/platform/x86/amd-pmc.c:424:2: note: did you mean 'amd_pmc_reg_read'? drivers/platform/x86/amd-pmc.c:131:19: note: 'amd_pmc_reg_read' declared here static inline u32 amd_pmc_reg_read(struct amd_pmc_dev *dev, int reg_offset) ^ drivers/platform/x86/amd-pmc.c:448:2: error: implicit declaration of function 'amd_pmc_idlemask_read' [-Werror,-Wimplicit-function-declaration] amd_pmc_idlemask_read(pdev, dev, NULL); ^ drivers/platform/x86/amd-pmc.c:536:2: error: implicit declaration of function 'amd_pmc_get_smu_version' [-Werror,-Wimplicit-function-declaration] amd_pmc_get_smu_version(dev); ^ 3 errors generated. Should these functions be stubbed or should there be a different fix? Cheers, Nathan