Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp171283rwb; Wed, 21 Sep 2022 19:51:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5NpbTZe+MG6Bnjy9zmUADtEHbdJaIhBsbupGQcIBFchkYr9T8GeD4TG5cXSgQuYjc2INKD X-Received: by 2002:a17:907:6ea0:b0:77e:c2e5:a35b with SMTP id sh32-20020a1709076ea000b0077ec2e5a35bmr935035ejc.566.1663815068709; Wed, 21 Sep 2022 19:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663815068; cv=none; d=google.com; s=arc-20160816; b=jzgCyzaK1kSojJ4BnptT7T4g6RWXxZ5P85sgR6gVGKeUQqdj98BaUlwb8/LBChiOTV 0YAQNkLisZqMFTfx1e0uVbRl3rItKxVHaUVlPZBqza3sZU3iyCwC5D/UAJPJDSCo0lag KMyl1M2pOAuCnILhc2EvhC1CQ7KEj0Hot4MB23MSpGSb7mP6fuROQJfKiOWTaLiN4VAa tGkO1xNAM7In1Jo14LlVTkXkvc5JZ5HZHvzE/kiOIuaY7OGuDDL/tsJJVXyRFREku3bB On+ri8ly0s0iOLoVX2CcHUj282RL5OVMRpEve/yAL7o+m5aE+NCqC9wE6cUHlH4+603h uzag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=st5tUW77UWGBhJuVNFycPMPD5sAy+9Rf0T55ujxhuzc=; b=GcFj/rTwZ7sPcpSTwnA71lcpZHw69f7pCgNnO8TgKNI7m17KO1MIQessei87ytg/oc upPHn81vpYqszZZM6VcBaaCyHrkVTfSNjCmN4R7nOuVGl17+itIdRQ7wmexWgX1MUt7A Hv/aHrv/Op0H7OHpl/+vKIwLaHucyd+02ocaFk7COkyiIz580r5wgKFGInZplw/FrFFj wNDMQ7cmjxKWm4MRqZfS5NcIcn7Sozp6dLs3TAk4YFcINq0pS049OF+ZRthWW1ZOyk0g 9x2pGnZ8jaDiiuHo23Fe5EAIlrjlY5irjrLD2lXaa3T1fP0SaH9Kb61d/fadsvNPzmpr S/YQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a170906844d00b0077b2ad71224si3750807ejy.136.2022.09.21.19.50.43; Wed, 21 Sep 2022 19:51:08 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbiIVCaz (ORCPT + 99 others); Wed, 21 Sep 2022 22:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbiIVCay (ORCPT ); Wed, 21 Sep 2022 22:30:54 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38DAFABF0C; Wed, 21 Sep 2022 19:30:53 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MXzfn15J7zMpQl; Thu, 22 Sep 2022 10:26:09 +0800 (CST) Received: from kwepemm600004.china.huawei.com (7.193.23.242) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 10:30:51 +0800 Received: from [10.67.103.231] (10.67.103.231) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 10:30:50 +0800 Message-ID: <3af017ce-87fb-168d-9ef0-60c7a43487a3@huawei.com> Date: Thu, 22 Sep 2022 10:30:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH 2/2] ACPI: PCC: fix Tx done interface in handler To: Sudeep Holla CC: , , , , , References: <20220920094500.11283-1-lihuisong@huawei.com> <20220920094500.11283-3-lihuisong@huawei.com> <20220921154319.bsczh2nftuypeucs@bogus> From: "lihuisong (C)" In-Reply-To: <20220921154319.bsczh2nftuypeucs@bogus> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.231] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 在 2022/9/21 23:43, Sudeep Holla 写道: > 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. Great minds think alike???? > > 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. > " Thank you for your suggestion. I will fix it in V2. > With that: > > Reviewed-by: Sudeep Holla >