From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34D6CC433FE for ; Mon, 15 Nov 2021 23:32:23 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C28A66324A for ; Mon, 15 Nov 2021 23:32:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C28A66324A Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HtQTJ6WCzz2yLJ for ; Tue, 16 Nov 2021 10:32:20 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=VAWFxsqp; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=google.com (client-ip=2a00:1450:4864:20::430; helo=mail-wr1-x430.google.com; envelope-from=edtanous@google.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=VAWFxsqp; dkim-atps=neutral Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HtQSb0qp5z2xBx for ; Tue, 16 Nov 2021 10:31:40 +1100 (AEDT) Received: by mail-wr1-x430.google.com with SMTP id d5so33839555wrc.1 for ; Mon, 15 Nov 2021 15:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QrycoOYyZ4WCJs9zryIQsbsTehh6WzIRsEG0If2ueuQ=; b=VAWFxsqpPo6fyW1ZI+uyUY2dF8zeozY+hDIzT5+mlNqROW1gFs48D0RB689M8563Mg S4r1JDJQPfICEiG4X3hfgfwBnXbsuXC4VqsQNbvKQVqrZKFJ0ErQfvmHR6tIvdGQ7WkS vem3xesdGgyCTwVjsqQMEI8vUT4RHh7IXjoqEpr+9Zq6ym+T01gMuifzu4LNTgKbwHy3 zLIpFyjozzN3rGsjb/ICnyC4FgBMDOaI4KcUOatlH05TD+BQdqFeifHKCB6dav+CB5iC ZDkXwEIUmlqCfFgHbpue14J7O7SODS/0ZC6azdljQ39wIGq6QpZO1Rsb+O3sILc3Z6XW tlrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QrycoOYyZ4WCJs9zryIQsbsTehh6WzIRsEG0If2ueuQ=; b=EQKBMu4ASa4/UwcaECqQlXQJfLMicddxJPE9F11Oqqk/KuKS5OWi7C3XRjzGoniI8P hnLJuZIguwI3yj1WkNkEYduhDnU/ltPZNdG1JQm5r/Fm6fWd0KyxsEiEVi2uhZSYLhrw THQbCh2UAQMY3vbpBfmcALk8gn4fxXG/89iIQHRhzowwlvq557NjpUPhjkSh3ZWHVITM 2c5K6bBsAixfEwHRtgq+z1/9XklCcJDb5jgSgtD655VyfLtlONHHBkYM7pT4M9EKEFEA xYNdHbE/lS1BIUKyiKj18t+jweC5aJHTecNq62pcbI9soQTTATRa/2sJqf+ozDKpacPO p+qQ== X-Gm-Message-State: AOAM530p+2NXQx8szGOV6aCFQ8UIK1CntE753oSImJ9RNFSa+WnzlqRO JhV6Dm0qvLHUyCEGzvsZ3x7dVz2LBnOOsVFhB36sVA== X-Google-Smtp-Source: ABdhPJxzhaSacdS1GO4Em3T5JcbemPiYYM3xTr61SbkTNgINmBa0hsx85rYhu5QjDrOX2sNk4UHTmDeybLA5qU5xM6Y= X-Received: by 2002:adf:ce03:: with SMTP id p3mr3658986wrn.145.1637019094972; Mon, 15 Nov 2021 15:31:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ed Tanous Date: Mon, 15 Nov 2021 15:31:23 -0800 Message-ID: Subject: Re: phosphor-pid-control: PWM not changing back from Manual to Auto mode To: Charles Boyer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "venture@google.com" , "openbmc@lists.ozlabs.org" , "krellan@google.com" , "vveerach@google.com" , Lancelot Kao , Mustafa Shehabi Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Mon, Nov 15, 2021 at 3:20 PM Charles Boyer w= rote: > > Hello Josh and Ed, > > I used the OEM IPMI command to enter Manual mode of phosphor-pid-control,= and then I set the PWM value. After leaving Manual mode, I would expect sw= ampd to bring the PWM back to the value from before entering Manual mode. H= owever, the PWM remains the value I set in Manual mode. Although, when I in= duced a temperature sensor to approach its setpoint, I observed the PWM to = change. > > I believe the reason is because of https://github.com/openbmc/phosphor-pi= d-control/blob/cca9c659889d149c06e95bab4b8808db4f1e3eab/dbus/dbuswrite.cpp#= L69. My system uses DBus fan sensors, so the fan controller will call upon = DbusWritePercent::write, which writes the calculated output value (ovalue) = if it is different than the oldValue. When I enter Manual mode and set the = PWM, the oldValue does not change; when I exit Manual mode, the ovalue and = oldValue are the same as before Manual mode, so it skips the PWM write. > > How can the PWM "immediately" return to its original value from before Ma= nual mode? This is a known issue. as the insecure validation feature was defined, it required a full bmc reboot to reset all state at the end of a validation/debug/tuning session. This is one instance of many where "best effort" clearly isn't good enough, although I'd be happy to see patches to make the behavior better. > > Thanks, > Charles >