From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B340130C155 for ; Tue, 14 Jul 2026 22:26:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784068015; cv=none; b=V/6n3kUZaKyiYry4RtA1WEUI1qyAUK7DsVDSz2Kmkxs0wM7AdjGn0JXuPRDiEgl3Ub8uteIANfCwGY8+aOWYw9J8ljx8GEKHkoFcB/3Faq8N4GrSvIOwmQq/aBfEaWe/1fJ4BEQqf6aIEbTXV4F/V2trZWuxs0Rk4ordBbvVZLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784068015; c=relaxed/simple; bh=+FeKRUHLXLp4J+Wd+LruAaF2eOH82CyJM7MFIjVn/gU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ViJzrl/04eXLp78soGNPbaYNMbNekQvGbqkyzDmMNanYM6EPf2fDDbgG8YKFoUflrTvUNrkPgYQ8WXhkHGX2jevvZmQ9zEOP2beJ7R1lGN04BR60OL2J6MjLdwAxM6as1voVAQzK+mMdrXGo9/dEirfQe4Uqdb1gFoDPdVc40f4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fxJlJ8V/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fxJlJ8V/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 285391F000E9; Tue, 14 Jul 2026 22:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784068014; bh=0xfED/wvpP0vOCNoeurgtlhf6ME7jPCOoT2dOeXMtko=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=fxJlJ8V/a/hU72G3EBc7Xr+PopYK7BySrBsaa0XvgY7EB2Q6+FjUU1VDwTp1CsjQI sVoTbcQMIlke89xQ727JrMdnMOUdPImhInfVtgtSlTtlrTHG4WxDx6pYE7xo3tE5GY wK5WxXK/94E97rnGnJ2w/ylY6YKGDhv/pMq6qRPuX4b6Ebb7bKz0oekWHtJis3qhoC 5uTWPxpJwZI+9D6WrsHPBT2y+AvZVe7jxlV8xDA05HGiXMPZi0I8R9sjD8vs6xMMP2 gmv/PWdKHGSvmGYSA7Bw2mEIcriHSe+xS4K5CidIHum9JB9/c0FBCujGBP5Gr9OB0+ FdF6ejqenbbuA== Message-ID: Date: Tue, 14 Jul 2026 17:26:53 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/2] firmware: stratix10-svc: async and teardown fixes Content-Language: en-US To: Adrian Ng Ho Yin , linux-kernel@vger.kernel.org Cc: tze.yee.ng@altera.com References: From: Dinh Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/14/26 00:37, Adrian Ng Ho Yin wrote: > This series addresses two issues in the stratix10 service layer's > asynchronous transaction handling. > > Patch 1 adds INTEL_SIP_SMC_STATUS_NO_RESPONSE (0x3) to the SMC status > definitions and handles it in stratix10_svc_async_poll() alongside > INTEL_SIP_SMC_STATUS_BUSY. Both statuses indicate the Secure Device > Manager has not yet produced a response and should cause callers to > retry rather than treating the poll as a hard failure. Without this, > the unrecognised status code falls through to the error path and is > mapped to -EINVAL, making "not ready yet" indistinguishable from a > real error. > > Patch 2 fixes the teardown ordering in stratix10_svc_drv_remove() > reported by sashiko (https://lore.kernel.org/all/cd6460b2-7f53-4ac6-8f68-172e7853f63f@kernel.org/). > Previously, stratix10_svc_async_exit() was called before client > devices were unregistered, leaving a window where child devices could > issue service requests after the async infrastructure had already been > destroyed. The fix unregisters client devices first so all in-flight > calls drain before the underlying channels and threads are torn down. > > --- > changelog: > v1->v2: > * update commit message to include Fixes tag and Cc: stable@vger.kernel.org. > --- > Adrian Ng Ho Yin (2): > firmware: stratix10-svc: handle NO_RESPONSE in async poll > firmware: stratix10-svc: fix teardown order in remove to prevent race > Both patches applied! Thanks, Dinh