Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 372D5C27C76 for ; Thu, 26 Jan 2023 00:14:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D1AE10E3B6; Thu, 26 Jan 2023 00:14:50 +0000 (UTC) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A25A10E8CE for ; Thu, 26 Jan 2023 00:14:49 +0000 (UTC) Received: by mail-il1-x136.google.com with SMTP id i17so59433ils.11 for ; Wed, 25 Jan 2023 16:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=33mXmPci7ffEe/wPaYjaikNTfCW2kUalaqkIdVKl8ks=; b=pwdFX3Xu1xnA+pgGszjAc+tF9g+fEW6Ra9k37TUO4/iQJ44CyD0rZLX+wg0SoJrEee 7H8xxAA2c7S1po/zokxR3UswjYrIVgP64seV/40hRMG8w1EEWLj+bIMlLMhNG+MzqU+7 +WF5HSsTWoSTnWayrh2Wn5UrGJ/6NcsuQDmkHDwj5yRBfAD7h/DaNfrapYj5tu/1dula dWuwbOOkaoUoOFiU4dFvWAxxO4fC88edDuwbJ4+EpecfGC2D5eTcFHfjzrebJv9+oEAq isXUY+q2Z/wjkgZ4LBZScfSpRUekGMXQ5ClwfF8x1lFmsFToYjkOkpsz7BCvjZ7Zu3PR wArw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=33mXmPci7ffEe/wPaYjaikNTfCW2kUalaqkIdVKl8ks=; b=llW68WoEySqAwA+BQxDb4PAPn+z4iQEKc2IldfFy2/hxmtyfbxJk9FIPbx/Z1CAN+t TAfASfhmVufxxel8x500b24z3zykbBGp8214VwLa80YvqMgfGAcdYAQYKTkLylkb+VGj CPA2M6+cqVRxQjjepLpfZin6VdD+EFgjYprIqSrjHMsCV7T1i6oiWYohdPUkhc7LI8hP yvAzv7Q/kv55FC33NQtOgSHPBN33QflrT0Y5Rwr0lld/ZAEstfb7mNw19rEuOpopwg+F TwQNsR67rIIpsddTXYskhy/wTYM4RxB7l1iLI7FwdWdW+LZs0Vf274PEWnLTl3R4wcgc uTyw== X-Gm-Message-State: AFqh2kr1w1NYzyx4U/z5erNrXW2aSCKMXroHthhhsMZIV4BDMzcuEAHh IOVdLtaARcdfSG33Cb8XN9I= X-Google-Smtp-Source: AMrXdXvDHmQu2YHwLLwC1P4K3im8S+6wxOlGwBonN7fLfVOl35EbgnDpuup8782kiLuu5jRY2NH31w== X-Received: by 2002:a92:d70e:0:b0:30d:aed2:20aa with SMTP id m14-20020a92d70e000000b0030daed220aamr23534362iln.29.1674692088205; Wed, 25 Jan 2023 16:14:48 -0800 (PST) Received: from localhost ([2602:47:d3e7:3200:aa5e:45ff:fed0:7395]) by smtp.gmail.com with ESMTPSA id h3-20020a92c263000000b0030db1001846sm1869074ild.82.2023.01.25.16.14.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 16:14:47 -0800 (PST) Content-Type: text/plain; charset=UTF-8 Date: Wed, 25 Jan 2023 17:14:47 -0700 From: "Matt Coffin" To: "Alex Deucher" , "Quan, Evan" Subject: Re: [PATCH 8/8] drm/amd/pm: drop the support for manual fan speed setting on SMU13.0.7 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Message-Id: X-Mailer: aerc 0.14.0 References: <20230105032259.2032789-1-evan.quan@amd.com> <20230105032259.2032789-8-evan.quan@amd.com> In-Reply-To: X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Lazar, Lijo" , "amd-gfx@lists.freedesktop.org" Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Wed Jan 11, 2023 at 7:47 AM MST, Alex Deucher wrote: > On Wed, Jan 11, 2023 at 8:23 AM Quan, Evan wrote: > > > > [AMD Official Use Only - General] > > > > Regarding the manual fan speed setting issue targeted by this patch, th= e SCPM feature of the new SMU13 asics prevents us from toggling the fan con= trol feature from auto to manual. This makes sense as a move towards using the same interface that other platforms are most likely using. > > About the capability in the OD table you mentioned, it might be a diffe= rent issue. I included some info/questions below; any hints you could give to point me in the right way to keep learning would be appreciated. > > Right. Manual fan control is no longer possible. As Evan said, you > can adjust the automatic fan curve using the OD interface, but that is > it. Sorry for the late reply; I became busy with day job. I've been working on implementing OD support (and a sysfs interface to set *any* OD setting by number, in contrast with pp_od_clk_voltage's pidgeon-holing into supporting only PP_OD_DPM_TABLE_COMMAND commands), at the very least for my own experimentation. The following is what I see when I read the OD table out from the SMU (assuming that the inclusion of another VF curve setting at index 4 in the header was a mistake, based on the values returned by the SMU). It seems that, at least in my case, my hardware is running in some kind of mode that would *not* allow changing of the fan curve? Is it possble that the header information in pm/inc/smu_v13_0_0_pptable.h is incorrect even beyond the potential idx 4 of ODSETTINGs? It appears also that transferring the OD table *back* to the SMU results in no error, but also no action taken, as subsequent reads to not reflect any changes. I'm thinking this is due to some values read in on the inital read of the table being invalid, but seemingly irrelevant given what is reported by the capabilities (see: FAN_CURVE[*]). Is there any hints you guys could offer in terms of 1. what might be mal-aligned or mis-labeled in the smu_v13 pptable header above? 2. What pre-requisites I might be missing to allow the support for ODCAP_FAN_CURVE? 3. Why the apparent values for some settings in the boot table seemingly wildly invalid? Will those somehow become valid once pre-requisites for OD operation are met? I also feel like I've strayed from the original topic of the proposed patch, and this probably belongs in it's own thread... but quite know how to preserve any context there (sorry). Thanks in advance for helping out an eager outsider, Matt Capabilities: SMU_13_0_0_ODCAP_GFXCLK_LIMITS[0] true SMU_13_0_0_ODCAP_GFXCLK_CURVE[1] true SMU_13_0_0_ODCAP_UCLK_LIMITS[2] true SMU_13_0_0_ODCAP_POWER_LIMIT[3] true SMU_13_0_0_ODCAP_FAN_ACOUSTIC_LIMIT[4] true SMU_13_0_0_ODCAP_FAN_SPEED_MIN[5] true SMU_13_0_0_ODCAP_TEMPERATURE_FAN[6] true SMU_13_0_0_ODCAP_TEMPERATURE_SYSTEM[7] true SMU_13_0_0_ODCAP_MEMORY_TIMING_TUNE[8] true SMU_13_0_0_ODCAP_FAN_ZERO_RPM_CONTROL[9] true SMU_13_0_0_ODCAP_AUTO_UV_ENGINE[10] true SMU_13_0_0_ODCAP_AUTO_OC_ENGINE[11] true SMU_13_0_0_ODCAP_AUTO_OC_MEMORY[12] true SMU_13_0_0_ODCAP_FAN_CURVE[13] false SMU_13_0_0_ODCAP_AUTO_FAN_ACOUSTIC_LIMIT[14] true SMU_13_0_0_ODCAP_POWER_MODE[15] false Limits: SMU_13_0_0_ODSETTING_GFXCLKFMAX[0] - [500,5000] SMU_13_0_0_ODSETTING_GFXCLKFMIN[1] - [500,5000] SMU_13_0_0_ODSETTING_CUSTOM_GFX_VF_CURVE_A[2] - [97,1500] SMU_13_0_0_ODSETTING_CUSTOM_GFX_VF_CURVE_B[3] - [97,1500] SMU_13_0_0_ODSETTING_CUSTOM_CURVE_VFT_FMIN[4] - [10,15] SMU_13_0_0_ODSETTING_UCLKFMIN[5] - [500,3200] SMU_13_0_0_ODSETTING_UCLKFMAX[6] - [500,3200] SMU_13_0_0_ODSETTING_POWERPERCENTAGE[7] - [25,105] SMU_13_0_0_ODSETTING_FANRPMMIN[8] - [50,110] SMU_13_0_0_ODSETTING_FANRPMACOUSTICLIMIT[9] - [0,1] SMU_13_0_0_ODSETTING_FANTARGETTEMPERATURE[10] - [0,1] SMU_13_0_0_ODSETTING_OPERATINGTEMPMAX[11] - [0,1] SMU_13_0_0_ODSETTING_ACTIMING[12] - [0,1] SMU_13_0_0_ODSETTING_FAN_ZERO_RPM_CONTROL[13] - [0,1] SMU_13_0_0_ODSETTING_AUTOUVENGINE[14] - [25,100] SMU_13_0_0_ODSETTING_AUTOOCENGINE[15] - [23,100] SMU_13_0_0_ODSETTING_AUTOOCMEMORY[16] - [25,100] SMU_13_0_0_ODSETTING_FAN_CURVE_TEMPERATURE_1[17] - [23,100] SMU_13_0_0_ODSETTING_FAN_CURVE_SPEED_1[18] - [25,100] SMU_13_0_0_ODSETTING_FAN_CURVE_TEMPERATURE_2[19] - [23,100] SMU_13_0_0_ODSETTING_FAN_CURVE_SPEED_2[20] - [25,100] SMU_13_0_0_ODSETTING_FAN_CURVE_TEMPERATURE_3[21] - [23,100] SMU_13_0_0_ODSETTING_FAN_CURVE_SPEED_3[22] - [25,100] SMU_13_0_0_ODSETTING_FAN_CURVE_TEMPERATURE_4[23] - [23,100] SMU_13_0_0_ODSETTING_FAN_CURVE_SPEED_4[24] - [0,0] SMU_13_0_0_ODSETTING_FAN_CURVE_TEMPERATURE_5[25] - [0,1] SMU_13_0_0_ODSETTING_FAN_CURVE_SPEED_5[26] - [0,0] SMU_13_0_0_ODSETTING_AUTO_FAN_ACOUSTIC_LIMIT[27] - [0,0] SMU_13_0_0_ODSETTING_POWER_MODE[28] - [0,0] Boot OD Table: GFXFLK: [600, 2945] UCLK: [97, 1249] FAN_CURVE[0]: 0 @ 0 FAN_CURVE[1]: 0 @ 0 FAN_CURVE[2]: 0 @ 0 FAN_CURVE[3]: 0 @ 0 FAN_CURVE[4]: 0 @ 0 FAN_CURVE[5]: 0 @ 0 FAN_MIN_PWM: 35 FAN_TARGET_TEMP: 94 FAN_ZERO_RPM_ENABLE: true FAN_MODE: 0