Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1863413rdb; Tue, 3 Oct 2023 03:33:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVLKHxI3wzixwy99ca0V5q9dn4lxNsZBKBDSUVWEWHV+aXIFTgh7T/ydZonc6baqABLY4r X-Received: by 2002:a05:6a21:790a:b0:13a:59b1:c884 with SMTP id bg10-20020a056a21790a00b0013a59b1c884mr15817008pzc.40.1696329218234; Tue, 03 Oct 2023 03:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696329218; cv=none; d=google.com; s=arc-20160816; b=OXW+8Nfw1Hm5zfHE5B0NMqjmp+2QQLqL1rXzds6lmJgsFV3mefsnej5+0RWg9WC5o2 ZT4T74VoAtEwkSn/ibTUI5uYKN/Bk0NC0RjB7wUcgBJsSg3tdiJhnEnZMvhavWPcTZLj 6e/AWP7N99FF5pklSTkZ3rZ1CmDg+Uf01m6k12elwSlKj01FMk/qvqtzVA33rNcZtjGI w/xxWaBp3zOeJz4TQz6ubWM6Vuu9jeYi7gu7xSx2Q71NO8SGufKd/BJPL8BhMlwYcUhb V+pxgLWJHyUIWnjoLzpQrtXZGhFhgPREs6aC8DtnFE11Nx78KTp+U+QC3Z9RzvQCW0A6 AE9A== 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=6EpHxOcoOrOGt2V/uQ5S9dSdEFlWNVRZ2Pk3/vCq8GE=; fh=AWwrOG2kNvvkSnJRkj0dm4n3wNA2wRLtUnqULet8gPQ=; b=QzT2XQXi7aOEo7AREBmWU1Nn83c4VPoBPFj7JbdNAbUXJm74qnolwzUhFFLMDY2Bkb lLAU/inWXlysPzewtfmt52sE1blbIaiGI9A53nzStcs3q0frxPvI80FY4Hm0i6T2aF5Z e1P7ZhYc0wo8uS4nHvwkFA+WSAK/N87iJUhAG1wmZI0fXM9hd406ZICmT3fbYHHlZVX0 MS5e5LBCXKuU5mg8JCwzR38EyuDX6zZmIX+k38Kq9/iKn5dHnKk34OzFprucaGQVsnv8 KY4HNJgvuy3yOfx5KVQchg5KHx8zPEPnRvXJG+Ld4OqS8QFkigXs/JpHuN13kZSyRr8l L/pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q16-20020a63cc50000000b005659b757791si1161548pgi.384.2023.10.03.03.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 03:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id ED93E802FA3E; Tue, 3 Oct 2023 03:33:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231613AbjJCKd1 (ORCPT + 99 others); Tue, 3 Oct 2023 06:33:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbjJCKd0 (ORCPT ); Tue, 3 Oct 2023 06:33:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0C4EAC; Tue, 3 Oct 2023 03:33:22 -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 958B8C15; Tue, 3 Oct 2023 03:33:59 -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 7B0133F5A1; Tue, 3 Oct 2023 03:33:19 -0700 (PDT) Date: Tue, 3 Oct 2023 11:33:17 +0100 From: Sudeep Holla To: Nikunj Kela Cc: cristian.marussi@arm.com, robh+dt@kernel.org, Sudeep Holla , Brian Masney , krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v4 1/4] firmware: arm_scmi: Add polling support for completion in smc Message-ID: <20231003103317.pjfmf6uisahowmom@bogus> References: <20230718160833.36397-1-quic_nkela@quicinc.com> <20230911194359.27547-1-quic_nkela@quicinc.com> <20230911194359.27547-2-quic_nkela@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230911194359.27547-2-quic_nkela@quicinc.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 03:33:36 -0700 (PDT) On Mon, Sep 11, 2023 at 12:43:56PM -0700, Nikunj Kela wrote: > Currently, the return from the smc call assumes the completion of > the scmi request. However this may not be true in virtual platforms > that are using hvc doorbell. > Hmm, it is expectation from SMCCC for the fast calls. Is you HVC FID not a fast call. AFAIK, only TOS use yielding calls. Are you using them here ? If not, this must complete when the SMC/HVC returns. We added support for platforms indicating the same via interrupt. I would like to avoid adding this build config. Why does it require polling ? Broken firmware ? I would add a compatible for that. Or if the qcom always wants to do this way, just make it specific to the qcom compatible. I would avoid a config flag as it needs to be always enabled for single image and affects other platforms as well. So please drop this change. If this is absolutely needed, just add additional property which DT maintainers may not like as it is more like a policy or just make it compatible specific. -- Regards, Sudeep