Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6953957rwr; Tue, 25 Apr 2023 06:20:37 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBf7kqtSadI3cvx0xexgPcjZNGERnAb0M0Mushs/O6AvAoZxu3eforPtxsuMfVqre2AXSV X-Received: by 2002:a17:903:234a:b0:1a6:413c:4a47 with SMTP id c10-20020a170903234a00b001a6413c4a47mr24982046plh.1.1682428836731; Tue, 25 Apr 2023 06:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682428836; cv=none; d=google.com; s=arc-20160816; b=ZOpH2PfpcCmkfiQKnQzeTJeZVDzObzBAzz6EVhQ1WOsYenxS7rCMCReee5HLdprRv6 HM4mJTwGyT4oqm7euOA0PTFXPXpiUzZ7qTF5zI0hL/nLZulAwP4VNbqDXWz/xHsIIhJr kX4BsOGzaaBgygyrl2CyCySkw6lhOlzwgyZyxYmHIzoqXOEmc0py4KSrcQXOTsmwSbEd MKZHSY9CTp+2B257Io9a95NciQPera64drFxNgvr0ytGtTrDIbbCvj08qpehV/EHN1fF ge+2Lo46iN/V1NNS+y390woY47WQxFBFe49eLiu/PqJpH9VQQCvZXlOLH6J34QANhhl4 Wfwg== 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=ZiIUYruvsRIzypjN9HDcNlXAscr3tIva/T9y7Cbnpv4=; b=GNQRzR/PmBh1NtCa02s4Odzi6CHkTqadhhITydl+ErMAaTU78TJBuuXsyb3ZJSUwcX oJvtfwv69Pnv7LnRskZeQjHKY6Jee2+WLqZThl5EX/zg/ntG5GGeZqftr0RNuYZVh1pH 2qLO8XqpipDX2mz9rG5m7gO45QD3iHvBN2rXwSHv5ujO9M4AWPhFHkgWpyrxIam7j4Pn 7ig4qxr98XT+NTyAC8DK3Op8tmYEEyBr9qIOnUCc9pGFN3G66+kA3Im21E4k9PsR8K62 MfSpvrv72/aSBDiM5IgQsLkZexG4TtAdao8FR+y7ArMdBPE94erxDgzGYttdHTu5h8m8 uLJQ== 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 w2-20020a1709026f0200b001a95c7e5ad9si8162976plk.352.2023.04.25.06.20.08; Tue, 25 Apr 2023 06:20:36 -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 S233702AbjDYNT1 (ORCPT + 99 others); Tue, 25 Apr 2023 09:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233255AbjDYNTZ (ORCPT ); Tue, 25 Apr 2023 09:19:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12022210C; Tue, 25 Apr 2023 06:19:24 -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 B2BA74B3; Tue, 25 Apr 2023 06:20:07 -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 574FE3F64C; Tue, 25 Apr 2023 06:19:21 -0700 (PDT) Date: Tue, 25 Apr 2023 14:19:18 +0100 From: Sudeep Holla To: "lihuisong (C)" Cc: Arnd Bergmann , Bjorn Andersson , Matthias Brugger , Sudeep Holla , 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, 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: <20230425131918.5tf5vot4h7jf54xk@bogus> References: <20230424073020.4039-1-lihuisong@huawei.com> <20230425103040.znv66k364ant6klq@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, Apr 25, 2023 at 09:00:31PM +0800, lihuisong (C) wrote: > > For firmware, DSD way is simpler and easier to manage these virtual platform > devices, and it's an usual way in kernel. Any specific examples you are referring here. We had lots of debate when DSD was introduced. It must be used only when there is no standard ACPI way to achieve the same. But in this I don't (yet) think that is the case. Further "simplicity" is remotely not the reason why you must use DSD. So until you provide me technical reasons as why _CRS can't work, I have to NACK this approach. DSD in this case seems like pure hack. > Driver only needs to get a fixed value, like pcc-id and type, here. > Yes and _CRS is used to get similar such properties in ACPI. It includes normally MMIO and interrupts and since GAS supports PCC and _CRS can contain GAS, you must simply use that. > Any vantage if using _CRS with GAS compared with DSD? Simple IMO, it is also existing standard to achieve things you are trying to here and DSD is not. You are defining new properties to make DSD work. So the real question is if _CRS can be used what is the point in defining DSD for that. Unless I hear more technical and solid reasoning, I see DSD as just hack and misuse here. It wasn't designed for that and must not be allowed to make use of it for such use case. Anyways in case we decide to take DSD route(after more deeper and technical discussions), as in the kernel docs, please refer [1] for DSD. You need to publish properties there so that no one comes up with similar but alternate solution to do exactly this. > > quite understand what magic the flags contain here to provide any info > > there. > This flag is used to report other properties, and every bit means a > property. > For instance, driver doesn't need to request PCC channel during the probing > phase if driver use PCC operation Region. Sorry I still don't understand it fully. -- Regards, Sudeep [1] https://github.com/UEFI/DSD-Guide