Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5516512rwb; Wed, 21 Sep 2022 08:48:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6l/ZPphIBYbWoyT9DgGD4CVJcJQqZdSHgJewDK3j8bn+YYKvgjfaYaev+oRzOaDW2qG1qf X-Received: by 2002:a17:90a:31c5:b0:200:a749:4857 with SMTP id j5-20020a17090a31c500b00200a7494857mr10554534pjf.148.1663775332055; Wed, 21 Sep 2022 08:48:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663775332; cv=none; d=google.com; s=arc-20160816; b=Jbv1PRe1XZ60jNdgLUh0qgKHcqfpAOpkiLygXbMjKsLX0PmsWT46Kf8bIs4zYBvaYh 12Yi8oHDg/BqHVSCJSgikNRzXNFGybr2icMEG04FPMCshKJf4W9D76dxbaZAIxkeuIFr 4P4xioM6winhj3HGPnR6I6gTACHyBS9itzo/XrMuFdH7Yb4reTnvPdj03N0rXpwpNsLJ OdNM2ctn0AS9fRL+Gu4dGAXwKSrxHACLzrGXuk88YgslL2zdzIXtruOs7b3Xa7r4r9mY 0hDPw5/LuX0OuJX/nFqPLQZ9PAtcRvgO1488qAXnbNF6LkkuH3sZDlVH+SddoBqcF+5X S2UA== 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=LQP5La8rC8bqmZ6R6EkYDXjAq/PrKq9fVGEjyjwL71M=; b=vaQuRlBh2gN3e1GI2GrxB0XJ4cWLc/kqkySI7PlGrV5zdUjYjxPrITc+uTaz5kdtY4 QVf5pAqztcA454qsEkShXbIsSGRx1Uw8H9L6ZCOvmtjGq2wBeJCIynETdWYVhSQlheG0 xeJJ+G4D20L9TWOQdMoUYrl0/u0SGzVv1+UK7sW9dDHjlDVVHFRZ8/8DqO+D+A/wcZ+3 FaS7r7c8d6I9s9zeXYem37SXwwtwI5KS+jmhcacqenMr3jns1ZHnl8yDbF/KC4ribhxL JU+GbjJSZQ948+HCFpBTQ/to0tLAVajWIdTvn1dlRvMob4wXstKre0CYLQTl4/wztP/R jpeQ== 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 6-20020a630f46000000b00438ce2800fcsi3364158pgp.579.2022.09.21.08.48.17; Wed, 21 Sep 2022 08:48:52 -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 S229713AbiIUPnd (ORCPT + 99 others); Wed, 21 Sep 2022 11:43:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbiIUPnY (ORCPT ); Wed, 21 Sep 2022 11:43:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D722CE00E; Wed, 21 Sep 2022 08:43:23 -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 8E83F13D5; Wed, 21 Sep 2022 08:43:29 -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 0DBC83F73D; Wed, 21 Sep 2022 08:43:21 -0700 (PDT) Date: Wed, 21 Sep 2022 16:43:19 +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 2/2] ACPI: PCC: fix Tx done interface in handler Message-ID: <20220921154319.bsczh2nftuypeucs@bogus> References: <20220920094500.11283-1-lihuisong@huawei.com> <20220920094500.11283-3-lihuisong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220920094500.11283-3-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:45:00PM +0800, Huisong Li wrote: > A error, "Client can't run the TX ticker", is printed even if PCC command > executed successfully. This root cause is that PCC handler calls > 'mbox_client_txdone()' which depands on the client can received 'ACK' > packet. But PCC handler detects whether the command is complete through > the Tx ACK interrupt. So this patch fix it. > Thanks for fixing this. Someone mentioned about the error and it was in my TODO list. I would prefer to reword the subject and commit message as below: " ACPI: PCC: Fix Tx acknowledge in the PCC address space handler Currently, mbox_client_txdone() is called from the PCC address space handler and that expects the user the Tx state machine to be controlled by the client which is not the case and the below warning is thrown: | PCCT: Client can't run the TX ticker Let the controller run the state machine and the end of Tx can be acknowledge by calling mbox_chan_txdone() instead. " With that: Reviewed-by: Sudeep Holla -- Regards, Sudeep