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 7D55872606; Mon, 9 Jun 2025 14:16:34 +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=1749478598; cv=none; b=dlZgjs4Ul4ecPI5M8pyYXzYSMbFrSeZwboUzZlCihSiXsYbi5OICGvQmtp+iNMNJYv3HNqCIlSleHutfZrz9WFnk1bsVLUBpvP1J0+sgDdeZ/9aoNAEyCX0r3C93NVSeFC4dnYpT7u93nKYXwRTT50QKutzQn4E5V56Xoa1dBWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749478598; c=relaxed/simple; bh=u5CJGd9vHy4T1wz11wL77N5cGB075vD93+4oSRBDdUg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JD6XcwkuHGxlJ89M120UVn2xnZpmXSdsNLPE9USJytGhv5cVG48dKSXp2d7WfjjS0WNsom+7q721St2Ns80ChzOv4iq8ImBN3RlhyYQKNmLMKWba/PMfn/kzwFKCcHmFqKBmGfpokM/BjM88nfi4bilbA9+FgcsTfvZvD58KxTI= 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 9EE3C150C; Mon, 9 Jun 2025 07:16:14 -0700 (PDT) Received: from u103485.austin.arm.com (u103485.arm.com [10.118.30.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 49A4B3F673; Mon, 9 Jun 2025 07:16:33 -0700 (PDT) From: Prachotan Bathi To: Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Stuart Yoder Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Prachotan Bathi Subject: [PATCH v1 0/1] tpm_ffa_crb: handle tpm busy return code Date: Mon, 9 Jun 2025 09:15:59 -0500 Message-ID: <20250609141600.3601340-1-prachotan.bathi@arm.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Platforms supporting direct message request v2 can support SPs that support multiple services. If the TPM service is sharing the SP with another service, it could get an error code of BUSY if the other service is in process. We need a way for the driver to retry sending the message to the TPM service until it succeeds or we know that no forward progress can be made. This patch adds a parameterized variable (default 2000ms) that indicates the maximum time to keep retrying for. Prachotan Bathi (1): tpm_ffa_crb: handle tpm busy return code drivers/char/tpm/tpm_crb_ffa.c | 74 +++++++++++++++++++++++----------- 1 file changed, 50 insertions(+), 24 deletions(-) -- 2.43.0