From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F31521F936; Wed, 8 Oct 2025 10:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759917836; cv=none; b=jNNvlzfRvFBEeGBzUfTxdt3t73ez9zqlclgvWUtrDTN4/s/ABPGwi2zppccKLIOnIvF9IcnfLVFJo6agGd4ur4DOzXd+/z1T6Vk77lbgbA0/23AFcqS95jq8V19ijFa33afnmR7ZmRyD8p6sOlydjZ4ZvIGjwi6wCGz+DuEfwOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759917836; c=relaxed/simple; bh=aQJ/0+iGWKDwwnMAakhsdbAuMELNmoe4VBITImDOsvw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VyO5J5QktXtaRTlpybz/IECO+I84Z3qpIVwO8Kusg/Sqel7JTCeo9o4GKG8BS9fnXm0tPOo5gQteSSDdAP7Ivf2wToUjEKuGPTbcVnDUOOkgOEkTUWcrQDbPN0CsbDlGAl7aOSjC9tkb8y7hf4Z34iGtiPjDjy8luEnBTZ0UDWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 DF09822EE; Wed, 8 Oct 2025 03:03:44 -0700 (PDT) Received: from pluto (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CA9413F738; Wed, 8 Oct 2025 03:03:51 -0700 (PDT) Date: Wed, 8 Oct 2025 11:03:43 +0100 From: Cristian Marussi To: Artem Shimko Cc: cristian.marussi@arm.com, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com Subject: Re: [PATCH v3] firmware: arm_scmi: Fix premature SCMI_XFER_FLAG_IS_RAW clearing in raw mode Message-ID: References: <20251008091057.1969260-1-a.shimko.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251008091057.1969260-1-a.shimko.dev@gmail.com> On Wed, Oct 08, 2025 at 12:10:57PM +0300, Artem Shimko wrote: > The SCMI_XFER_FLAG_IS_RAW flag was being cleared prematurely in > scmi_xfer_raw_put() before transfer completion was properly acknowledged > by the raw message handlers. > > Move the SCMI_XFER_FLAG_IS_RAW and SCMI_XFER_FLAG_CHAN_SET flag clearing > from scmi_xfer_raw_put() to __scmi_xfer_put() to ensure flags remain set > throughout the entire raw message processing pipeline until the transfer > returns to the free pool. > > Fixes: 3095a3e25d8f ("firmware: arm_scmi: Add xfer helpers to provide raw access") > Suggested-by: Cristian Marussi > Signed-off-by: Artem Shimko Perfect, LGTM. Reviewed-by: Cristian Marussi Thanks, Cristian