Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3673338rwb; Tue, 20 Sep 2022 03:05:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65VB+cDSFBrH1k5pFYA6u6D3HOG/Yp1STBmmXp44ps3A5dWz4SigSIpuaV0dJORNRJUAmf X-Received: by 2002:a17:906:5d07:b0:781:c281:f6e4 with SMTP id g7-20020a1709065d0700b00781c281f6e4mr1671907ejt.744.1663668358402; Tue, 20 Sep 2022 03:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663668358; cv=none; d=google.com; s=arc-20160816; b=ku1U2dI+cfDH11xPzs7+zO1acr0oCwFN54iJxGSPbzehy06ih5I24Nzm5YZmGH2MyS c6kuZxKwSF9ATXHpv42qmEZQFlK4NEOpQG5Nb7qfRcrA400OWPSoCFInlCbhgGGhUBNs E4fxGZalc1RvIsbY1ykdkkWV+jrRcTZX7r2ij0BoDeekXnexgENlk6JVx+OOZDicq3D2 fKMUHSEhanDJ+3fUuVa+VdtKmO8319Gde/DykFhXfPu8fMCtXrnQS87dgDKZEoOpMvyC UwyP5iP78g/syfawtoaIxry6A5Yjmd5aurPdZ+xxtAJMlD/z3fUHmySKp0MFaG0xiRNT zpgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ls2yREbFIXyg1wVs292P82Gel85qqj/Tqz5R7y1UK+w=; b=nsktdSUpqqHvNuZGfguckY0HIKT7UONV7dtAI6Hd3VXH60eaVsJSflx0PHtpWanIYh upMs6L35AFlSjCy5knlRUvVx7QvVkAIxHc9rItz3GhyKlG5StyJhfNezfFh0QHAsMDAL xiwVZ8sbp/bOR7nNSeSMw8o5K7pFAkimf4864ywEkrTCFZyd5HK174dyCI3X5A6MboCD pHto5jTAmIHGywxxG/bOyystXBxM2N9/SVsk6wDTjuvpnE+/Fh7hac1s6OBjWlbAx4Sy utNLecfou8XmAdopZ4aSQ46dpLLSeyKqhLVAQZIlxQJ5txSaHn5mILDegj4v+rufd++c y0TQ== 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 v11-20020a056402348b00b0043ce8b2c72dsi1107211edc.36.2022.09.20.03.05.32; Tue, 20 Sep 2022 03:05:58 -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 S230294AbiITJsQ (ORCPT + 99 others); Tue, 20 Sep 2022 05:48:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbiITJry (ORCPT ); Tue, 20 Sep 2022 05:47:54 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E8C16BCC0; Tue, 20 Sep 2022 02:47:48 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MWxSX6xytz14QcJ; Tue, 20 Sep 2022 17:43:40 +0800 (CST) Received: from kwepemm600004.china.huawei.com (7.193.23.242) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 17:47:45 +0800 Received: from localhost.localdomain (10.69.192.56) 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; Tue, 20 Sep 2022 17:47:45 +0800 From: Huisong Li To: , CC: , , , , , Subject: [PATCH 2/2] ACPI: PCC: fix Tx done interface in handler Date: Tue, 20 Sep 2022 17:45:00 +0800 Message-ID: <20220920094500.11283-3-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220920094500.11283-1-lihuisong@huawei.com> References: <20220920094500.11283-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 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. Fixes: 77e2a04745ff ("ACPI: PCC: Implement OperationRegion handler for the PCC Type 3 subtype") Signed-off-by: Huisong Li --- drivers/acpi/acpi_pcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_pcc.c b/drivers/acpi/acpi_pcc.c index a1052fe998bf..95d2dc274bd9 100644 --- a/drivers/acpi/acpi_pcc.c +++ b/drivers/acpi/acpi_pcc.c @@ -118,7 +118,7 @@ acpi_pcc_address_space_handler(u32 function, acpi_physical_address addr, } } - mbox_client_txdone(data->pcc_chan->mchan, ret); + mbox_chan_txdone(data->pcc_chan->mchan, ret); memcpy_fromio(value, data->pcc_comm_addr, data->ctx.length); -- 2.33.0