Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10228439rwb; Fri, 25 Nov 2022 02:30:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf78tYoR7PWgKA5RE7TSMwPRo3m1TU3bS5f7S5ay8VkFwTDvTWG7mpEeVmvVUQNMeNaXDk7M X-Received: by 2002:a05:6402:150:b0:468:fdc3:6b44 with SMTP id s16-20020a056402015000b00468fdc36b44mr16612643edu.388.1669372224232; Fri, 25 Nov 2022 02:30:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669372224; cv=none; d=google.com; s=arc-20160816; b=OQ73ga2cs4S3QYWhc07/fUCYrAH9t+SNGgFvdk0HswJ0NdsX+VVtA+kLB9ptfdNuRy 2i2SUwmfj/LYD8gyOsVH7x03hFT6CP4o5eSm7jBun9XznluGnTzX8nm80ckhIgHb/Wn7 bmZaioW7O4H6RplkBsIfiL+iQC8Li2MFiXlx1ySfc62ARgZOeE9a31L51XcgC11sY3g5 svdBGyXzaDTkDrHc566w+qLTGk+GB8xwsjEnXCP17nCD4xaZBFdF/XgTQEzFaRJLkUQc h59vPcSmT43YnXJjXtts12uZTvTx3/IjGSnmLQnqKCyPPO+s9ARh0PTQc3s1oKHBbLCF 61yg== 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=n7vxh7QWCJfd6Ti6CFl0DTfFtoRnh9Mli7yGUWx4NpA=; b=mBM3hzvyXc+qduVb3HbiRgmo2p0WjJAWVPjDVGAZhhRZADnQtxZdajombYpTFIiCxT /5y9hj0WcvJLJmwQPu7ZePHVxKTSnzCG1yUa2TdBwczMmJCWeyXfIG5bsz7+Q/x6E1SW fStg5mfmaTdc+NzOHi0O9pWpg+HkmjQJNWb9gaqfOpGRLlMgHqh7XOAEqwUOFExLWRpc VRB3xVFSymcqpiLjaLoQiuOwlsLC+x3Aj6fe16WBVJLIkwtfHBmUFnXJqtR+YQ5OUpme Zz67RFU0XJj2HVHjoL7UBaqqlVwZp/0r/uckfar82L+4zhDt3HvTqMzWqbKj+mTinanu IPmA== 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 di20-20020a170906731400b007adb2862222si2880504ejc.828.2022.11.25.02.30.02; Fri, 25 Nov 2022 02:30:24 -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 S229662AbiKYJ64 (ORCPT + 87 others); Fri, 25 Nov 2022 04:58:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiKYJ4u (ORCPT ); Fri, 25 Nov 2022 04:56:50 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4A5B03FB8B for ; Fri, 25 Nov 2022 01:54:44 -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 9416923A; Fri, 25 Nov 2022 01:54:50 -0800 (PST) Received: from bogus (unknown [10.57.6.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C763C3F73B; Fri, 25 Nov 2022 01:54:41 -0800 (PST) Date: Fri, 25 Nov 2022 09:54:38 +0000 From: Sudeep Holla To: =?utf-8?B?546L5rSq6L6J?= Cc: Hanjun Guo , Mark Rutland , Sudeep Holla , Cristian Maruss , Jassi Brar , linux-arm-kernel , linux-kernel Subject: Re: =?utf-8?B?UmXvvJpSZQ==?= =?utf-8?Q?=3A?= [PATCH 3/3] arm_scpi: modify to support acpi Message-ID: <20221125095438.o6li7xgib27x5nb7@bogus> References: <9732f012-f2f5-d770-c9b7-6005fa0c578f@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9732f012-f2f5-d770-c9b7-6005fa0c578f@huawei.com> 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 Fri, Nov 25, 2022 at 09:38:42AM +0800, Hanjun Guo wrote: > Hi Honghui, > > On 2022/11/24 22:17, 锟斤拷锟斤拷锟? wrote: > > Thanks! > > > > The uefi firmware was built include ACPI/AML, but current kernel code is > > not able to extract the info, the ACPI/AML driver of kernel is not enough > > for majority of devices , but fdt driver is. I think there's a lot of > > work to support more acpi driver. > > I think the firmware did the wrong thing about SCPI support, > please take a look at ACPI 6.5, chapter 14 Platform Communications > Channel (PCC). > Thanks Hanjun for pin pointing the exact references in the ACPI spec. Hi Wang, You seemed to be posting random patches to add SCPI support in ACPI. You will get a NACK on all unless you explore PCC and PCC OpRegion in ACPI and update your firmware to make it work on your platform. You had sent a patch updating the mailbox driver which is not present in the upstream. You must not need that driver when you use PCCT in the ACPI firmware, so please drop the driver and any changes to that as well. Without seeing the actual driver you are using with SCPI, I can't help much on how to use it with PCC. Please refer chapter 14 as Hanjun mention and check how to write one to your platform. Think PCCT as mailbox node equivalent in DT and you *must not* just add similar node in your ACPI DSDT with some custom HID/CID. Hope this helps and gives you better idea on the suggestions made so far. -- Regards, Sudeep