Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5610085rwb; Wed, 21 Sep 2022 09:59:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ZJjOpaM5CGoHnqRFcSA1ttLrU/RieESzOBqXAWWQPEpLVQgnizleOQVjtmiPjllT8X1cQ X-Received: by 2002:a17:90b:1b4f:b0:202:b066:322 with SMTP id nv15-20020a17090b1b4f00b00202b0660322mr10160372pjb.226.1663779567347; Wed, 21 Sep 2022 09:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663779567; cv=none; d=google.com; s=arc-20160816; b=NnllohHQUMyUVpY9Tb8JoT5FzQP3Ri7HdGJtoHOqXALdU2kVAyhq7MLaPL256XNBDU nmt8lHafa1lL/kR9W6gf/7b+L1hcMq9Xkkef75anGSYuJV7KNYq/b9j/R2cu4OqH0tV4 VE2tuvMbH/jppXs8QnDzYNuaOzicou0gr3yedfP4RP+mCdSuWr1Fh9Scon2P/bSeLTMc UKmgPtUrJ6DyooH+jFnnoWz4SDlGikwu+MWfoQM5tll5E2rqowRmcN/ONtDj2DbepnlE KT8hYNZVz8q2eMY4iDPwFtSj5RY5emn5iYfl6n75SU6dyGrkaTRYVWUQGxLMZLFFw1zQ PMmA== 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; bh=7btWJoPlPSzVroNkdqcjUE75Q921wAsnxQP66HoqmT4=; b=CkXvzGH9aMjNJpXXhh0f67XI6z+HK+4tSHwAInJOAr02/CcEDlSVp+NaBqxCMUbDEV 3yePoV/rwAuP9X5obBL8BQKk/2tP4s1gJnkc5Z2UUXJy+HHw8JW+tY9T/+k6OJsHz2Ip FWGQCUkmwXhi7o634S9xxGyfmTKSsZsiOXTwxKsuDoMEsckTkkK17qHIT3vdCAKSOhmE 2Qh/T8sTslnRdbGtaB7dTZESg0+NMnOLBN5Vum7nws/sWsMdiVDW72Hqaj5A6yqhmaOn bVvxbWcNcfYSJ9Kxit3HG7flMu5BJqnmS5hSi89tnM3HHenuSEz9M0Rnu/7Hb4iBBdQ0 UAVg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a170903228900b00176b29e4909si3779524plh.571.2022.09.21.09.59.13; Wed, 21 Sep 2022 09:59:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbiIUPtT (ORCPT + 99 others); Wed, 21 Sep 2022 11:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbiIUPsj (ORCPT ); Wed, 21 Sep 2022 11:48:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D7BE7C316; Wed, 21 Sep 2022 08:47:41 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 16A0113D5; Wed, 21 Sep 2022 08:47:47 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8A7DF3F73D; Wed, 21 Sep 2022 08:47:39 -0700 (PDT) Date: Wed, 21 Sep 2022 16:47:37 +0100 From: Sudeep Holla To: Huisong Li Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, rafael.j.wysocki@intel.com, wanghuiqiang@huawei.com, huangdaode@huawei.com Subject: Re: [PATCH 1/2] ACPI: PCC: replace wait_for_completion() Message-ID: <20220921154737.az3d4ndxs3u3zwbl@bogus> References: <20220920094500.11283-1-lihuisong@huawei.com> <20220920094500.11283-2-lihuisong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220920094500.11283-2-lihuisong@huawei.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Tue, Sep 20, 2022 at 05:44:59PM +0800, Huisong Li wrote: > Currently, the function waiting for completion of mailbox operation is > 'wait_for_completion()'. The PCC method will be permanently blocked if > this mailbox message fails to execute. So this patch replaces it with > 'wait_for_completion_timeout()'. And set the timeout interval to an > arbitrary retries on top of nominal to prevent the remote processor is > slow to respond to PCC commands. > Sounds good to me. The only concern(may be not serious) is what happens if we receive response from the platform after the timeout. I have tested for that in non ACPI non PCC context. I don't have a setup to trigger that with ACPI PCC + this patch to test. Other than that, I am fine with this: Reviewed-by: Sudeep Holla -- Regards, Sudeep