Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3458170rwb; Tue, 8 Nov 2022 04:58:26 -0800 (PST) X-Google-Smtp-Source: AMsMyM7GoHt+m9llRCQ9tt0Ct5VJk8LEkLUyz63p3O6EW0x/BfETdGhONsZ4E39K4Aq9RE5o75YF X-Received: by 2002:a17:907:1de0:b0:7a7:6a8:1e61 with SMTP id og32-20020a1709071de000b007a706a81e61mr52179295ejc.468.1667912306279; Tue, 08 Nov 2022 04:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667912306; cv=none; d=google.com; s=arc-20160816; b=uGlJm0T62ANuJCl01uPbQpkTsJ5IYUpC6hw/1XWx4O2l1gPPHn0LbO1eL7844FzcIp s9I6EMn8yIkqNjgmi6mN1rRluAQNJca+lkRfS9Z3uwCEKSO4sU4vOUJx25lQVj+sRy5A h123CZqUxPYZZh1LCSPhut97POb4CiJ4H4l0YK3f3COUr/U1SV15v0Ms1/HZUyIiN1Gy Ot/wuIMMBMFUEpiHTOIFQaPooXq4gT2k8tsHrJJ4vZlp6OxYsIo69ct3tRvj2Fq5MYoF NIv3hnbYt9nh3D0c9LL4zngx0CfnMIVpXAKQ7dzNM0dEgYJ/bCO29Ghx66+J4lgnCf/+ xfcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=CDeUjuU4sBz/6tz8RZQW5Ah949tdKfZCOjZwcKlav/I=; b=DUNYep1Cd+os0BeFrZSEM7ecx5M5H/O4sBb3dUCBOmfQXkP9K4DuGzNMZeAO79V1wg 0OgxURb/SJA8UeFW2CsMM1iBHTrIhoWVscV8kbKWiKKOFIF7vMEPodPUnAVy414oeigS S3JA7KUeUkZnPWp4Aywc7VK41H05HzUIQoQgwsRdleqQ/b401fymy5V3DkQtn4Zyb2RQ zl38wI5PrHFHf8+1KbArogaNlo55imlI2fgzW9IzUH4HpoQv6gl24xvtlU8QfQLYP393 HSdXWAwWZrVM5mx2W/DZUjZzoO3bYh8iU4W1h1xVdnQ+TMKR9kqVpsPZktXtYu0/hb30 0HgA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb6-20020a1709077e8600b007ade82b9333si1626609ejc.43.2022.11.08.04.58.04; Tue, 08 Nov 2022 04:58:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233862AbiKHLs4 (ORCPT + 89 others); Tue, 8 Nov 2022 06:48:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233794AbiKHLsy (ORCPT ); Tue, 8 Nov 2022 06:48:54 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56A7B55BA; Tue, 8 Nov 2022 03:48:53 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Tue, 8 Nov 2022 19:43:54 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.29] Date: Tue, 8 Nov 2022 19:43:54 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: Moore , "Rafael J. Wysocki" , Wentland , Li , Siqueira , Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , Airlie , Vetter Cc: linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] ACPICA: Fix return X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <7ce6bd54.f8.184570dd1b6.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCXq+H6QGpj7csBAA--.64W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAEB2FEYx0DfAAAsm X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 cmV0dXJuIGlzIG5vdCBhIGZ1bmN0aW9uLCBwYXJlbnRoZXNlcyBhcmUgbm90IHJlcXVpcmVkCgpT aWduZWQtb2ZmLWJ5OiBLYWlMb25nIFdhbmcgPHdhbmdrYWlsb25nQGphcmkuY24+Ci0tLQogZHJp dmVycy9hY3BpL2FjcGljYS9ldnNjaS5jICAgICAgICAgICAgICAgICAgICAgfCAxMiArKysrKy0t LS0tLS0KIGRyaXZlcnMvZ3B1L2RybS9hbWQvZGlzcGxheS9kY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