Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8978290rwb; Thu, 24 Nov 2022 06:38:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf6g7QI7/zUkiw6ga4kJOv0TH8lRtrkuRE1OyJNdPRk2O+fjBN0wh5KcedJSD6j3OwRcLDgB X-Received: by 2002:a17:902:ecc3:b0:188:fe18:6686 with SMTP id a3-20020a170902ecc300b00188fe186686mr13783697plh.147.1669300709166; Thu, 24 Nov 2022 06:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669300709; cv=none; d=google.com; s=arc-20160816; b=HFyasmSHkmodviwfxdwOL75QPxkTmaM5eaDAaBTOe8mOgffPO8CA92cqIOa0NlK6VY ZDJaTVb896reY4BPVDkx50RPw3n+jvNcw+dvG170sNwhuKue3b+gEK3pegHu/TjM4mUS yNyGwBYFWBXOQRcn56019S4NJa76U0XGHJ8w5Y4f/sn8DaPJWlLrbZwvClaT0GO8DeZ8 NUDkENIgh/ik6VNqUh1HhsiNbKpzt9AFB9iP3DSOVv23zfIVvY6qR5Rvt+8K6bgWwSox 2SfGNQFnXpA0rA46opqUsSTu9WZSsl3EXqz8Uyizvt1aw3z5hOqnhOhO9ekD8foTpVVN iwdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=N9oW16HYX3iAV4RMXhA2HWWLv8JzOf57d4lMCTV+4Eo=; b=K8X/U69qgpx/HSIYv/GiunYtH7F2OMWFHqNHXRICe3qu1WqKSM7DHLxaVB3sGJOwTP N6YZFEJbEdrV9THcZjkaJ1uytppjM6FOSHlQGK3vTVUlngEVLIkJMZwcqwbgyElCvJt/ oSgh1ouBSjPyEhjR0EYpipNxkBIk1DJPjTLXlCmkQi4alwnXwYCa/6OZfIdDWxKI++Tt 0jEso2NcAS2Owqkm3INrg/G0wS41Wdco/R+akA6oCF6iRhpFpj0n6TYXXhGHe2WopeF9 PNaltHDpoXWLN102uCb3MusW7Dzpe3ijYl3jzlD+Uqe9+9UGFIhQEQIb2UU/w8wxP644 9yCw== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m192-20020a633fc9000000b0046afa55b6a5si1029481pga.708.2022.11.24.06.38.17; Thu, 24 Nov 2022 06:38:29 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbiKXNqb (ORCPT + 86 others); Thu, 24 Nov 2022 08:46:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbiKXNq0 (ORCPT ); Thu, 24 Nov 2022 08:46:26 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0632A100B3E for ; Thu, 24 Nov 2022 05:46:25 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 50B8623A; Thu, 24 Nov 2022 05:46:31 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CB5873F73B; Thu, 24 Nov 2022 05:46:23 -0800 (PST) Date: Thu, 24 Nov 2022 13:46:21 +0000 From: Sudeep Holla To: =?utf-8?B?546L5rSq6L6J?= Cc: Mark Rutland , Cristian Maruss , Sudeep Holla , Jassi Brar , linux-arm-kernel , linux-kernel Subject: Re: [PATCH 3/3] arm_scpi: modify to support acpi Message-ID: <20221124134621.tmlfk7pqbmbkmzal@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On Thu, Nov 24, 2022 at 08:23:58PM +0800, 王洪辉 wrote: > When boot from uefi on phytium ft2004(arm64) platform, can't show temp & > freq of cpu, but well if boot from uboot for same kernel binary file. Yes the same binary must work if you use right ACPI methods/AML/tables. Everything needed is there in the kernel, you need to write correct ACPI firmware/tables. > So i modified arm_scpi.c and scpi-hwmon.c as patch, and tested ok. > Yes tested to be OK, but definitely not acceptable. Please look at the ACPI spec and improve your firmware to use what you need here. I have given all the pointers now. -- Regards, Sudeep