Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp266933lqh; Fri, 31 May 2024 00:04:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgUFY7MREB3mIRg9UOzZjEtoKuEPwO/3AKH4su9SquzApLiyBTZ+9NiBqPIb0R6d+moCJyaWHSQv84lHqfCkhmPliSEeDNXJ1zzvZw8w== X-Google-Smtp-Source: AGHT+IHbZWMxyCu/tAbnWWacjt3UJMLxs7WUA/sTuAQR1C/4PQh3rHYTxI/ztc6VEEKwc44j1cRu X-Received: by 2002:a17:906:a44d:b0:a62:187b:e7f5 with SMTP id a640c23a62f3a-a6821b771c0mr59878666b.57.1717139077867; Fri, 31 May 2024 00:04:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717139077; cv=pass; d=google.com; s=arc-20160816; b=zd3V+rOiBPVWD67e3sRyKhh75zv6NNW7xZOnjhM/it27TAzn0cDy9aQFQ52aHAzR4V pMyI2wXAEP3P9YdApxYaJXA7hACyyHkVuJcA9ZvxGHEA+FlxPyvHjV6yxMy1h2HLqZMZ 6PvqLokrBPWAUg7BZjG3oPmrPzECrOIOWG6b0lPHyNt/xi0QT6DGlRSUax8fb7MiW7jp bc5quilgQibrwgLYoL43iAR0z8eC3jeW7Flax/c++oE5618n9FT6aH8Gy9caUsAO36R6 B3rMj0f3lUVyyQ8egOf1zRJI+0SRM6VtephBdiWrzQE+WiT0TPfsPvjw0wtBuZY3OIld yOSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=lcn/WRn4tuYxb3wZ5bV1UpkIeHIxRpNeQzxNuetkF6Q=; fh=DaNOjZzFE+UtsQubFUzsHCE8ODCYcKG6DSJbRB5QBWg=; b=XzD9sQAOexv53k/YT8Od/GOW7YruAyT50kywx+/oIurNXSNLcZ2NWlZRN3Fj57fafu 4HrKm8MOniJsylGcvc+xKFStCbf4neEmGv2gDmDln+ka/dyqP0FlBAeU2AH5xWDETg9/ hbD0kX8lWWAIBqi5OznnIhfxe7G90s6meUTru10uTKKrhXlMOxOwZV3eoFgytjo6fxMm Iy/Vv5b+rQ1zWI3SPfuo8Xm3gwy+a+LpPBYQJ+vH3W9JSEm/oVatJoFWW/fSdGjDLx36 2d8DoghqFR1pEekJ32YGP98ULD/2EwORpqVtDD2R0NfeY8b6DNujtO3x4KETmhuqcbNc bgPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-kernel+bounces-196391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196391-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eb7238dcsi57528966b.1044.2024.05.31.00.04.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 00:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-kernel+bounces-196391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196391-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 60B621F24501 for ; Fri, 31 May 2024 07:04:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69A3180029; Fri, 31 May 2024 07:04:29 +0000 (UTC) Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A822217E9 for ; Fri, 31 May 2024 07:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.0.225.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717139068; cv=none; b=qaK9sgGK/UsPsBQ0ktOdheWFzyVPb3O55rgERlWGWJL0K0nzdInEvpcMuF0OIKPtkNY5JQk7BxjPNX5x9NqXziDejNUshXvfmFMzcOee2SwWZdbFarYILgiS5MdQ126+4EvNhyzVF1AuqY2BQniGdvQFPGNHyIzoDjn9/OAjRmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717139068; c=relaxed/simple; bh=lcn/WRn4tuYxb3wZ5bV1UpkIeHIxRpNeQzxNuetkF6Q=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=nKSPwHiz8Q9HUAbJxXEV3Zz/iQi89Gp5G77yP9weXtC7R5ux6s1BXtX0CG7wx+r8To0D38bNOw5dr3tHy6QFKyoL4dLpANBHonBbZKDT095Znb9UrLj/at6tvFtnJATgYrvMAvUM6KdsjorxNeCgZMT4cZ4eva2GsfB/0YcIRck= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com; spf=pass smtp.mailfrom=zhaoxin.com; arc=none smtp.client-ip=210.0.225.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zhaoxin.com X-ASG-Debug-ID: 1717139062-086e23110716a50001-xx1T2L Received: from ZXSHMBX3.zhaoxin.com (ZXSHMBX3.zhaoxin.com [10.28.252.165]) by mx1.zhaoxin.com with ESMTP id TOX1gDREyvcukL0n (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 31 May 2024 15:04:22 +0800 (CST) X-Barracuda-Envelope-From: LindaChai@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHMBX3.zhaoxin.com (10.28.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 31 May 2024 15:04:21 +0800 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 31 May 2024 15:04:21 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.165 Received: from zxbjmbx1.zhaoxin.com ([::1]) by zxbjmbx1.zhaoxin.com ([fe80::b125:97ff:1c5d:c6ca%3]) with mapi id 15.01.2507.027; Fri, 31 May 2024 15:04:21 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.163 From: "Linda Chai(BJ-RD)" To: "ricardo.neri-calderon@linux.intel.com" CC: "Cobe Chen(BJ-RD)" , LeoLiu-oc , "Linda Chai(BJ-RD)" , "Tim Guo(BJ-RD)" , Tony W Wang-oc , "acpica-devel@lists.linux.dev" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" , "j.granados@samsung.com" , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , "mcgrof@kernel.org" , "mingo@redhat.com" , "peterz@infradead.org" , "rafael@kernel.org" , "robert.moore@intel.com" , "tglx@linutronix.de" , "viresh.kumar@linaro.org" , "x86@kernel.org" Subject: Re: [PATCH 3/3] ACPI: cpufreq: Add ITMT support when CPPC enabled for Zhaoxin CPUs Thread-Topic: Re: [PATCH 3/3] ACPI: cpufreq: Add ITMT support when CPPC enabled for Zhaoxin CPUs X-ASG-Orig-Subj: Re: [PATCH 3/3] ACPI: cpufreq: Add ITMT support when CPPC enabled for Zhaoxin CPUs Thread-Index: AdqzKGx5se4bWMonTx2xsC8Nn5RcCA== Date: Fri, 31 May 2024 07:04:21 +0000 Message-ID: <48a2010eaf4e4eb9963117724ea93d61@zhaoxin.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Barracuda-Connect: ZXSHMBX3.zhaoxin.com[10.28.252.165] X-Barracuda-Start-Time: 1717139062 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 7590 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.00 X-Barracuda-Spam-Status: No, SCORE=-2.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=THREAD_INDEX, THREAD_TOPIC X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.125586 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.01 THREAD_INDEX thread-index: AcO7Y8iR61tzADqsRmmc5wNiFHEOig== 0.01 THREAD_TOPIC Thread-Topic: ...(Japanese Subject)...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i0gICAgICAgICAgICBpZiAoY3BwY19wZXJmLmhpZ2hlc3RfcGVyZiA8 IG1pbl9oaWdoZXN0X3BlcmYpDQotICAgICAgICAgICAgICAgICAgIG1pbl9oaWdoZXN0X3BlcmYg PSBjcHBjX3BlcmYuaGlnaGVzdF9wZXJmOw0KLQ0KLSAgICAgICAgICAgIGlmIChtYXhfaGlnaGVz dF9wZXJmID4gbWluX2hpZ2hlc3RfcGVyZikgew0KLSAgICAgICAgICAgICAgICAgICAvKg0KLSAg ICAgICAgICAgICAgICAgICAqIFRoaXMgY29kZSBjYW4gYmUgcnVuIGR1cmluZyBDUFUgb25saW5l IHVuZGVyIHRoZQ0KLSAgICAgICAgICAgICAgICAgICAqIENQVSBob3RwbHVnIGxvY2tzLCBzbyBz Y2hlZF9zZXRfaXRtdF9zdXBwb3J0KCkNCi0gICAgICAgICAgICAgICAgICAgKiBjYW5ub3QgYmUg Y2FsbGVkIGZyb20gaGVyZS4gIFF1ZXVlIHVwIGEgd29yayBpdGVtDQotICAgICAgICAgICAgICAg ICAgICogdG8gaW52b2tlIGl0Lg0KLSAgICAgICAgICAgICAgICAgICAqLw0KLSAgICAgICAgICAg ICAgICAgICBzY2hlZHVsZV93b3JrKCZzY2hlZF9pdG10X3dvcmspOw0KLSAgICAgICAgICAgIH0N Ci0gICAgIH0NCisgICAgIHNjaGVkX3NldF9pdG10X2NvcmVfcHJpbyhoaWdoZXN0X3BlcmYsIGNw dSk7DQp9DQoNCiBzdGF0aWMgaW50IGludGVsX3BzdGF0ZV9nZXRfY3BwY19ndWFyYW50ZWVkKGlu dCBjcHUpDQpUaGFua3MNCkxpbmRhDQoNCg0KDQrkv53lr4blo7DmmI7vvJoNCuacrOmCruS7tuWQ q+acieS/neWvhuaIluS4k+acieS/oeaBr++8jOS7heS+m+aMh+WumuaUtuS7tuS6uuS9v+eUqOOA guS4peemgeWvueacrOmCruS7tuaIluWFtuWGheWuueWBmuS7u+S9leacque7j+aOiOadg+eahOaf pemYheOAgeS9v+eUqOOAgeWkjeWItuaIlui9rOWPkeOAgg0KQ09ORklERU5USUFMIE5PVEU6DQpU aGlzIGVtYWlsIGNvbnRhaW5zIGNvbmZpZGVudGlhbCBvciBsZWdhbGx5IHByaXZpbGVnZWQgaW5m b3JtYXRpb24gYW5kIGlzIGZvciB0aGUgc29sZSB1c2Ugb2YgaXRzIGludGVuZGVkIHJlY2lwaWVu dC4gQW55IHVuYXV0aG9yaXplZCByZXZpZXcsIHVzZSwgY29weWluZyBvciBmb3J3YXJkaW5nIG9m IHRoaXMgZW1haWwgb3IgdGhlIGNvbnRlbnQgb2YgdGhpcyBlbWFpbCBpcyBzdHJpY3RseSBwcm9o aWJpdGVkLg0K