Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1292412rwb; Thu, 22 Sep 2022 12:54:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ch8CQ60tVeLehrDQhV+1sfJRCcETLu4IwIZhguHvH8pKVgGERm5Dl1aefqbmPChoN1Uwi X-Received: by 2002:aa7:cd4a:0:b0:44e:8541:1f6f with SMTP id v10-20020aa7cd4a000000b0044e85411f6fmr4945863edw.404.1663876455078; Thu, 22 Sep 2022 12:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663876455; cv=none; d=google.com; s=arc-20160816; b=lWckukIFAo6Om6lpGGJNCC13ouarV7Ym+F1QZOEgtDATJPsFfxZfb5dipKDh/jfOBH q868OnnhHFT8nnIoqfXZndJUhJaL6gPZi3P1mI/QuvDSSlrinCiR6OoXtFNYxMSxwwR2 QsHpSKrPCoeqRzyxHfRVHGxAJ+nt89xaPOjY/XNoLRWgMx+g8x6b8FwqQmEEUuPeSHky tSUnqYATCKbfPvciFaLIo6qoYduJOzIG1ZfqjZQQQkv4DgiThs3Sto/l+PefWTdMWYiU 4uYMVktt1bDCwasT3nNJNSJUwRBpnHEGrfrvErlAxvtQyZ08tAyD9Ig46rVc0amf1Fru hl3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=i2fFh03PmN9dsDrlqa6Na6TJ/xoZxneYKaZlpWqCHQA=; b=Ci6kGeB9y2U5lrAJpH86/5ozkSoFaRZlPImB2SbXDpoGecIdjMyTi3IwbygG/YWuSY 8DhBYPDXJvn8dGkoWCnzgWG/QJTvbQsVD2VOH9FJ0ykeOG1gCqcjSAYijnsfvU/qY3Md LmSuUIRx7XEXoyOHbKO1JkAJW8M3wFB7Y/sxVmC9G5qvew1gBOSOnP1Fe70DsYrF/B7b I5hRkEnqKTzAfjAZ9xj/Kwr8fGNoWOM3ims7xzVOYW/u4bee00DirkJocomXRMSBYOUf NLvTes8plevPxA+lW2j+UAIaW2ZjxLiDRFIQHwlxKUiXqv/S2s/kfk+NjzZ8jh9jUvrf MU7g== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a056402414b00b0044ea553d7cdsi5892510eda.105.2022.09.22.12.53.49; Thu, 22 Sep 2022 12:54:15 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232445AbiIVTKc (ORCPT + 99 others); Thu, 22 Sep 2022 15:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232108AbiIVTKa (ORCPT ); Thu, 22 Sep 2022 15:10:30 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2925DAB1B9; Thu, 22 Sep 2022 12:10:28 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id q11so6867416qkc.12; Thu, 22 Sep 2022 12:10:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=i2fFh03PmN9dsDrlqa6Na6TJ/xoZxneYKaZlpWqCHQA=; b=QXRkaQZFyhXLSP5u4FyY7F18yANkzZ8nSltCmZB3/cuc4AkIWpkFrquPxrf8zo/RVN SmVo+nB6TMUh/mNq7uN5P8+FSOWNin5j6D8gzWOrK1iecICBwAx8AiRrVqATXQlcze5M GBOP107yUe90vIwkQl9OX16UW+bxunOMQPzheyGe376ZgDfU8eeJfwyTTeJSXbe+h65u DGrpTwg5QSImJsIu9ey0qiezvAvKG2XnjOkXLkxjYBGDqGyiuTBNBGcLIJVPnWaV+Fvn 6kif2bfTDDRf06e0+dHgfsq205RS8aZluoR8QqPowxopCSj/v3+kbFtOTQMjKl+iu/Tw sdNg== X-Gm-Message-State: ACrzQf1e4n4kjBhMzuuSYy5rgPY1qpyZQCjv7PXKVEWYInSLEyR278nP 6XUpDJ6eDvHFahZsfPT+MbWIdNSDLAiykKkPil0= X-Received: by 2002:a05:620a:46ac:b0:6ce:3e55:fc21 with SMTP id bq44-20020a05620a46ac00b006ce3e55fc21mr3205441qkb.285.1663873826996; Thu, 22 Sep 2022 12:10:26 -0700 (PDT) MIME-Version: 1.0 References: <20220920094500.11283-1-lihuisong@huawei.com> <20220920094500.11283-3-lihuisong@huawei.com> <20220921154319.bsczh2nftuypeucs@bogus> In-Reply-To: <20220921154319.bsczh2nftuypeucs@bogus> From: "Rafael J. Wysocki" Date: Thu, 22 Sep 2022 21:10:16 +0200 Message-ID: Subject: Re: [PATCH 2/2] ACPI: PCC: fix Tx done interface in handler To: Sudeep Holla , Huisong Li Cc: ACPI Devel Maling List , Linux Kernel Mailing List , "Rafael J. Wysocki" , Rafael Wysocki , wanghuiqiang@huawei.com, huangdaode@huawei.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Sep 21, 2022 at 5:43 PM Sudeep Holla wrote: > > 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 Applied as 6.1 material along with the [1/2]. I used the above text in quotes as the subject and changelog instead of the original pieces. Thanks!