From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35FAEC433F5 for ; Tue, 21 Dec 2021 19:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PJztN7N9wEfOWRlyQNSNix+U516Nmx6AhfqiouvdaZg=; b=fhNb1AChunXhL9 XPjXM8KxouWW0sQEGqVoj7VZo6KeXpQOyBVGruO0cwV8QhRlR5ozD24VONNATXhbbdO+LQy8CEttt 7xwviClHOI/Gkgg+5TJB+BstT4qRKzDniPWqwpbaXQMRajp1wyr4mt4ckaOyBU/sVHizKqAtbXlOm 50lAgqmY/TvqF6uY73U+/LLeoxg9WhlqYz2AOOZW0Pru8VjmgrSyn/SeoyOl752M4H8Q+TgL0p9/9 8h14Gke3+bqq0CrNkRQMtQUdNMenyOEmhzQGytM++3z+hOX97N+tWd8/BIFRX5sYd+A7tlKsJoK36 M64Z3QrKSBXpN1yJkWeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzkyf-008HII-OH; Tue, 21 Dec 2021 19:39:13 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzkyb-008HHB-AJ for linux-arm-kernel@lists.infradead.org; Tue, 21 Dec 2021 19:39:11 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 1BLJctab003942; Tue, 21 Dec 2021 13:38:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1640115535; bh=kxlTsvQ14/FMb4Iz0aWnvKzaGod9t//Snzz1vZNca1U=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=M1pygQ99dJaV0qJru8DI2dVhY8BisHDjGozgz8s371zl46eNutTJsTVaGZCZGIGhE BA+mSQGSp7mhWpox12+FlMJc2soCYuevS8YU9BewVVGYMKRv40aAki/aH88oY9qUzN hmjgeyPGIWe9PefeLsOUmly8AUKtC+I68cTI8e5w= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 1BLJctBl114542 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 21 Dec 2021 13:38:55 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 21 Dec 2021 13:38:55 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 21 Dec 2021 13:38:55 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 1BLJcsdF056610; Tue, 21 Dec 2021 13:38:55 -0600 Date: Wed, 22 Dec 2021 01:08:54 +0530 From: Pratyush Yadav To: Cristian Marussi CC: , , , , , , , , Subject: Re: [PATCH v8 01/11] firmware: arm_scmi: Add configurable polling mode for transports Message-ID: <20211221193852.pmb4nu43zzu6trqt@ti.com> References: <20211220195646.44498-1-cristian.marussi@arm.com> <20211220195646.44498-2-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211220195646.44498-2-cristian.marussi@arm.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211221_113909_461017_DF93D376 X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 20/12/21 07:56PM, Cristian Marussi wrote: > SCMI communications along TX channels can optionally be provided of a > completion interrupt; when such interrupt is not available, command > transactions should rely on polling, where the SCMI core takes care to > repeatedly evaluate the transport-specific .poll_done() function, if > available, to determine if and when a request was fully completed or > timed out. > > Such mechanism is already present and working on a single transfer base: > SCMI protocols can indeed enable hdr.poll_completion on specific commands > ahead of each transfer and cause that transaction to be handled with > polling. > > Introduce a couple of flags to be able to enforce such polling behaviour > globally at will: > > - scmi_desc.force_polling: to statically switch the whole transport to > polling mode. > > - scmi_chan_info.no_completion_irq: to switch a single channel dynamically > to polling mode if, at runtime, is determined that no completion > interrupt was available for such channel. > > Signed-off-by: Cristian Marussi This patch breaks linux-next build for me with LLVM. drivers/firmware/arm_scmi/driver.c:869:6: error: variable 'i_' is uninitialized when used within its own initialization [-Werror,-Wuninitialized] if (IS_POLLING_ENABLED(cinfo, info)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/firmware/arm_scmi/driver.c:59:33: note: expanded from macro 'IS_POLLING_ENABLED' IS_TRANSPORT_POLLING_CAPABLE(i_)); \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/firmware/arm_scmi/driver.c:45:19: note: expanded from macro 'IS_TRANSPORT_POLLING_CAPABLE' typeof(__i) i_ = __i; \ ~~ ^~~ 1 error generated. -- Regards, Pratyush Yadav Texas Instruments Inc. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel