Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp789455rwd; Tue, 16 May 2023 07:46:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zRLEXDr3He4kY3883jFb5wbwbzFoKIifZVdz5FZQsXCpNFSaI6FHD5xp/24N7O84VFSUB X-Received: by 2002:a17:90b:108f:b0:252:a4e2:9eaf with SMTP id gj15-20020a17090b108f00b00252a4e29eafmr16305218pjb.28.1684248401438; Tue, 16 May 2023 07:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684248401; cv=none; d=google.com; s=arc-20160816; b=bgxzQregihLCMcercJkW989mKGfRa+lkYEILr5vm8E4EuFhC/e4+CNUyphK74okv1V dvGJiDNdcH5l3BpeHBt+2cvVFrqnB9QOTnNJ1/Kfwd5ahhIrz//SgwSHYY3BdgfibXe5 WzFtry+51uvDCpK+2QABUvi2RmRqtMOM3PGskrPOjJF/9gmKTeFzn0kHZHmjdibzZSmU BJsQzCSNrif9+s+hPc2+z6L5tPQ2AWwB386XKbYaZxUF32xM/pePVn96e+cT0VBSALXS E+5KNnPNLmGc61inUMeN1tynY9klvjDhn685/w2lknVIra4Pq6/SaLbxLck5paE6dJuC fKBw== 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=+NyFApEErQfESLmc1CgfvOqY5Hn8ZWYpEFRlag/1yxo=; b=DwD2sflQ4ORPP8aSOp3ro4vCD9N94abjl5LqR/HehLlOoknj1tX8RPprJlfBsmPlgh /L3VXW3HFD1cZCvfDXd9UcIxxmKOr6frRwvs3DHhDRD+FMXDHCQld+6lPFBR768U7Ytf c//bXHxSKPOOSgjhxfc8iwyQck+PiFDojNMcbf2b5I1T/S5ilUSBiAbtpEI+A1PRIGNc L54FwwkWieCd6BFCF99yhH+HbdAPD2OMzC4gNIOmj4wR7ptxWgsHtvknlXa0c2J6gKw9 u7/H86ILjUAUlZQE/guD+g/erErxX8RVFpCQB+unZZADjuVZnLta0BVlylGPtIlur4+M MGQw== 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 kk9-20020a17090b4a0900b002508259bbbbsi1986184pjb.125.2023.05.16.07.46.28; Tue, 16 May 2023 07:46:41 -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 S234003AbjEPOfi (ORCPT + 99 others); Tue, 16 May 2023 10:35:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233784AbjEPOfh (ORCPT ); Tue, 16 May 2023 10:35:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3771195; Tue, 16 May 2023 07:35:35 -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 E064C1FB; Tue, 16 May 2023 07:36:19 -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 BCE423F7BD; Tue, 16 May 2023 07:35:32 -0700 (PDT) Date: Tue, 16 May 2023 15:35:30 +0100 From: Sudeep Holla To: "lihuisong (C)" Cc: Arnd Bergmann , Bjorn Andersson , Matthias Brugger , AngeloGioacchino Del Regno , Shawn Guo , linux-kernel@vger.kernel.org, soc@kernel.org, wanghuiqiang@huawei.com, tanxiaofei@huawei.com, liuyonglong@huawei.com, huangdaode@huawei.com, Sudeep Holla , linux-acpi@vger.kernel.org, Len Brown , "Rafael J. Wysocki" , devicetree@vger.kernel.org, Rob Herring , Frank Rowand , Krzysztof Kozlowski Subject: Re: [PATCH] soc: hisilicon: Support HCCS driver on Kunpeng SoC Message-ID: <20230516143530.venhj4gax6stinah@bogus> References: <20230424073020.4039-1-lihuisong@huawei.com> <20230425103040.znv66k364ant6klq@bogus> <20230425131918.5tf5vot4h7jf54xk@bogus> <20230515130807.pdvx7bxwjkfdsmsr@bogus> <20230516122931.il4ai7fyxdo5gsff@bogus> 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,T_SCC_BODY_TEXT_LINE 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 Tue, May 16, 2023 at 10:13:58PM +0800, lihuisong (C) wrote: [...] > > But I still need the device-flags to report if use PCC operation Region. > If so I have to dig one address register from comm subspace, right? [...] > Thanks for you bringing it up. > Indeed, this HCCS_DEV_FLAGS_INTR_B is not good. > I'm going to replace it with PCC operation Region flag. From the above 2, I am getting a sense that all these flags dance is for sharing a PCC subspace ID between this driver and the firmware PCC Opregion ? If so that may not work as the current implementation of PCC Opregion assumes the exclusive access to the channel. Since it is initialised quite early, Opregion must succeed to get the mbox channel acquired and this driver must fail if they are sharing the channel. Making the sharing across firmware and this driver may need changes in the PCC Opregion support code. One possible way is to acquire and release the channel for each transaction which will be definitely overhead. -- Regards, Sudeep