Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2957542rwb; Fri, 11 Nov 2022 18:36:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sxZ8rKyuYowRV+GFngZlZ9u5FdXbwNBRI+4OdInS3LIOPH6wDw93qooCs/RHJWJyEbEpX X-Received: by 2002:a63:1818:0:b0:46b:8eb:4c7e with SMTP id y24-20020a631818000000b0046b08eb4c7emr4038810pgl.374.1668220576800; Fri, 11 Nov 2022 18:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668220576; cv=none; d=google.com; s=arc-20160816; b=ubGKuF+Y4wmxyxKs4SqRVcefA3+mP4CDXN6ggWKcMXBSA7gNzTT4yzEJJZ+8KZp1Yl W0L1Ovr9sRJ4brBVi2EM3O9ZRShedLsqXL79/qIU8T1ZtgP75KymN91Bh7ZbSjNU6+16 3E307Pk2im2JbtVmX3+mvIHIpgPWMGLr7Km2cIYlU7OqVFGxL1tHHnaanVlPXi9jph0/ Y6fEc9KsZJQ4qwYLCYSwC47VoLNviAipQsYytpY7cvwa/k7e3oMoXbxAO7QT16IeaNxr T9vtk4HmImh6zPHWQBx805sEqFOsveiRcfd72VlOmbchMdEUo6Myefw5k9sFEChw0OJu uDXg== 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=e20ZLPO+RHD53tLzgaxS5/zERc9w8kgLGSu1X+TZwbU=; b=XkKgnY5Dflk9lRB/VKtnUIn5xxLFr70K7SvkFm2K0+Zz/HQyz6PFuJGVuiWUGonGE3 F1TnZsS010RDJWH+wcWRop4Y0L89Jln+h7/4AC1TlJtVXhUGsJlvuDAfDYBCaRSaYal9 Wg/gPuin1P+pk1uf2C/jDZoYpt12kTqhOf81dBBBiVYf7zLQRbL6uhcKW8AYTRiTYIFs W5auKoZop9///dyG1v2Q1bgThWqimHXqv+aqw1rgh+Zb50e/FbZkGoclBx+WHAw8doHh 8iG8OBvAQVpLyzgqAEfDQv/bZIx4u9y0JhSYqVgZwEnotXyqrdwrJStUVSLuQ3IXaR8n FEcA== 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 y186-20020a638ac3000000b0046fbaeb1247si4072278pgd.48.2022.11.11.18.36.05; Fri, 11 Nov 2022 18:36:16 -0800 (PST) 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 S234051AbiKLCHs (ORCPT + 91 others); Fri, 11 Nov 2022 21:07:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiKLCHp (ORCPT ); Fri, 11 Nov 2022 21:07:45 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48818606BD; Fri, 11 Nov 2022 18:07:44 -0800 (PST) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N8Jlg1600zbngv; Sat, 12 Nov 2022 10:03:59 +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; Sat, 12 Nov 2022 10:07:42 +0800 Received: from localhost.localdomain (10.28.79.22) 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; Sat, 12 Nov 2022 10:07:41 +0800 From: Huisong Li To: , CC: , , , , , , , , , , , Subject: [PATCH V3 0/2] Optimize PCC OpRegion code and reset pcc_chan_count Date: Sat, 12 Nov 2022 10:05:26 +0800 Message-ID: <20221112020528.7837-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20221110015034.7943-1-lihuisong@huawei.com> References: <20221110015034.7943-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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 This series clarifies the dependency of PCC OpRegion on interrupt and reset pcc_chan_count to zero in case of PCC probe failure. --- - v3: fix commit log and goto tags. - v2: drop the patch that rename platform interrupt bit macro --- Huisong Li (2): ACPI: PCC: Setup PCC Opregion handler only if platform interrupt is available mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure drivers/acpi/acpi_pcc.c | 47 +++++++++++++++++++++++++---------------- drivers/mailbox/pcc.c | 1 + 2 files changed, 30 insertions(+), 18 deletions(-) -- 2.22.0