Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1018045rwl; Fri, 4 Nov 2022 08:54:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xtx/OMqUMXyon9V9AXMIG6sRHHMNnmjF9oCysUp1sm2KOGTYd65hi0FsLQUhn5PqEPr4P X-Received: by 2002:a17:907:7b8a:b0:7ae:3957:f4e1 with SMTP id ne10-20020a1709077b8a00b007ae3957f4e1mr2999916ejc.720.1667577239915; Fri, 04 Nov 2022 08:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667577239; cv=none; d=google.com; s=arc-20160816; b=E92OZGsJeY8ZtQW682aE8Vhm4OlGMPunbswKFlLhjA/V5FfdxN/heDJ/nfX0oy8zjm BU8WPRsG9w0QbWiUWBXBS3+TZtAQA7oDEWzC6IgwOz/U5oAU1OjGC3qX0eZ+w+gzz+hd PV0bRIYZ3CHKLXsfkQjm5S/lb6EbQVKZpfz5o1wGFsVyB5406ygQiGIBaZ83fhAhSZ1X Bpqq7fJGdXvHUQwUFyvtUr3FGFu22yi3m8G30vXhlxAcBCQKLPXetxRdxAfhDk5xCzDE nWZ30uO8wxZvChr+F8mJvygjQaYQZgDuVW5YkwJNdVdliVtGtIID6+rNYlwrZ15RB7JY RcVA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XorI32+jcrwegGq4zaDkvMag1X9kElREnSq6zYm4ypY=; b=x0ns9te4bBU2a4ha9MUuG2OxlGEV7FZm6rftQA2Wp67+b364mWxt3TM+ow12NNnZSy SOTLRLdZxk2ITjs4/cTkaQMCw4y3xBDe1K9te6Rx/jqbnrD16Ck5qXY/Ci0DRjqpWWpL RpAoi/fIpRLDNlmB5aQTon4K9bsATajVGPdK1+rd8G7J+Qlo2+pL3piF668m6TNOSuyR Tsh41Dt89Ad9o+DzqZ/j8lIVmLli7HdAvgbfgvdZQH64QAZdOOkthoApLHUo6ulTEl9N rtxy5BSUQ7MG5ISazXKA3mipPVmq+JDLpUkpwPMtAwqGYN+XSicHGeU6t6AwlEcqtOXl 6oqg== 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 g12-20020a170906538c00b0078de536a3cdsi3879617ejo.119.2022.11.04.08.53.36; Fri, 04 Nov 2022 08:53:59 -0700 (PDT) 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 S232358AbiKDPPi (ORCPT + 96 others); Fri, 4 Nov 2022 11:15:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbiKDPPg (ORCPT ); Fri, 4 Nov 2022 11:15:36 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCC5710D9; Fri, 4 Nov 2022 08:15:34 -0700 (PDT) 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 ACD4F1FB; Fri, 4 Nov 2022 08:15:40 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E331F3F703; Fri, 4 Nov 2022 08:15:32 -0700 (PDT) Date: Fri, 4 Nov 2022 15:15:30 +0000 From: Sudeep Holla To: Robbie King Cc: "lihuisong (C)" , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, rafael.j.wysocki@intel.com, wanghuiqiang@huawei.com, huangdaode@huawei.com, tanxiaofei@huawei.com, Sudeep Holla Subject: Re: [RFC] ACPI: PCC: Support shared interrupt for multiple subspaces Message-ID: <20221104151530.44sms3fnarqnvvsl@bogus> References: <20221016034043.52227-1-lihuisong@huawei.com> <20221027155323.7xmpjfrh7qmil6o3@bogus> <20221031104036.bv6a7i6hxrmtpj23@bogus> <925f360d-e6b3-6004-de22-f39eaa86a750@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Fri, Nov 04, 2022 at 11:04:22AM -0400, Robbie King wrote: > Hello Huisong, your raising of the shared interrupt issue is very timely, I > am working to implement "Extended PCC subspaces (types 3 and 4)" using PCC > on the ARM RDN2 reference platform as a proof of concept, and encountered > this issue as well. FWIW, I am currently testing using Sudeep's patch with > the "chan_in_use" flag removed, and so far have not encountered any issues. > Interesting, do you mean the patch I post in this thread but without the whole chan_in_use flag ? > I think the RDN2 may provide an example of a write only interrupt > acknowledge mechanism mentioned by Sudeep. > Yes. > The RDN2 reference design uses the MHUv2 IP for the doorbell mechanism. If > my implementation is correct (and it quite possibly is not), acknowledging > the DB interrupt from the platform is accomplished by writing a 1 to the > appropriate bit in the receiver channel window CH_CLR register, which is > documented as: > > Channel flag clear. > Write 0b1 to a bit clears the corresponding bit in the CH_ST and CH_ST_MSK. > Writing 0b0 has no effect. > Each bit always reads as 0b0. > Correct, on this MHUv[1-2], it is write only register and it reads zero. So basically you will ignore the interrupt if we apply the logic Huisong proposed initially. > in the "Arm Corstone SSE-700 Subsystem Technical Reference Manual". > > Apologies if I am off in the weeds here as I have only been working with > PCC/SCMI for a very short period of time. Good to know info :). -- Regards, Sudeep