From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C153E133987; Tue, 2 Jul 2024 07:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719905308; cv=none; b=ZUVym+pvfBA/BGasIsR0Bjsxm6+4+6e9HMHXg9fWS0HUuPRmyqELkMRS9MePXCQq4BwPxmSTDBvW4as2EStnPviUlFvHNTUW1r4XhG3YlhsF87J/uFFEfTFB7vtjyGBzYJlV8cJkKOYDXXHprfUXwvVwW9rtp9BF/X8T51laTG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719905308; c=relaxed/simple; bh=+G9ORUrBUv9a/KnYMu5t8kezquGhj4+2CEx9gv7oeJw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=okEFj/MTX+4z8blOg5JtMXQe25jatm7hPcrU3kH8gTmfiCF1oncO9Ucip6ehnMZOmG3I4h7SZtjbK85LP6i75c3p9YsKxeRgirPq3CJB9TdlF+oTKmbA/hadePzwKqb8dObwr0Krzau70fYxoPcfeuFdEra6YgM459FhwOVvGOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iYN4rARC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iYN4rARC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 514DBC116B1; Tue, 2 Jul 2024 07:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719905308; bh=+G9ORUrBUv9a/KnYMu5t8kezquGhj4+2CEx9gv7oeJw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iYN4rARCVPZ5D5bMzDOcOqyUMHkmWXuxml6g4BGWZ3IISsZBN3EVV1ahsWlbYBnT6 hOQV9u9dPswb0CFjVqHpEVkGfaegXgVIcYQepefWI2HB6+OFZnY6D+HOq0eU0mMD6U 1nnO2LAtYZXRGRqJnr3EFE36STNS2il2EkBYPQjv4JoJpLG+VXljlLlTAy390Bph7Z i3dZr4T13T/2kE6cZlBwL56ET3wR9h9WhvUhmMq3h4xFaARKHo1rf7Z/M6iZdIMG1o iIJiYAbGGwoZVqjFM8sCvtXHQMIp4YUSUcPkxXugegIPuL20ILhIzvoGY2K5wj/+uV EZZzx/Ey4yRuA== Date: Tue, 2 Jul 2024 00:28:26 -0700 From: Eric Biggers To: Bart Van Assche Cc: linux-scsi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-fscrypt@vger.kernel.org, Alim Akhtar , Avri Altman , "Martin K . Petersen" , Peter Griffin , =?iso-8859-1?Q?Andr=E9?= Draszik , William McVicker Subject: Re: [PATCH 6/6] scsi: ufs: exynos: Add support for Flash Memory Protector (FMP) Message-ID: <20240702072826.GA121190@sol.localdomain> References: <20240611223419.239466-1-ebiggers@kernel.org> <20240611223419.239466-7-ebiggers@kernel.org> <4dfd06ba-7d95-435b-95e1-e864a33447b9@acm.org> Precedence: bulk X-Mailing-List: linux-fscrypt@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: <4dfd06ba-7d95-435b-95e1-e864a33447b9@acm.org> On Fri, Jun 14, 2024 at 10:08:49AM -0700, Bart Van Assche wrote: > On 6/11/24 3:34 PM, Eric Biggers wrote: > > +#define FMP_DATA_UNIT_SIZE SZ_4K > > A Samsung employee told me that the Exynos encryption data unit size is configurable > and also that it is set by the following code: > > hci_writel(ufs, PRDT_SET_SIZE(12), HCI_TXPRDT_ENTRY_SIZE); > hci_writel(ufs, PRDT_SET_SIZE(12), HCI_RXPRDT_ENTRY_SIZE); > > How about introducing a new macro that represents the TX PRDT entry size, the RX PRDT > entry size and the encryption data unit size? > Done in v2. - Eric