Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp527741lqs; Tue, 5 Mar 2024 08:38:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQJ4hk49zn0AiQncksPRtPO5x3UX9QKWDYCHuIx33NCmCHHoW1DXFlYMaMFmPtJpDLYV7/zeXYXyxNxV2nM61oFbyMP0nVCqdBZLJ8Pw== X-Google-Smtp-Source: AGHT+IEJW8oNbVb1c1NB6p2sBXlRoaz7IraKUf2kZ2ITdIrYnjZQ2dHxW/4FDIQCzIQMjJHKlKiH X-Received: by 2002:ac8:5bd5:0:b0:42e:ab06:1a3 with SMTP id b21-20020ac85bd5000000b0042eab0601a3mr3633395qtb.19.1709656688744; Tue, 05 Mar 2024 08:38:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709656688; cv=pass; d=google.com; s=arc-20160816; b=CdyZq+0OGMyeL8oSSDEQYRiF1i4gv0Ky6RMG8CFXbjP8a+dkDy7sOt0V6L0IUSqgD1 fwKzIJ2OC+2ycQV9Hwwo6KVt9hEg43YkMnEs1wLD2JdU9nr7kobT3W/Zhodn/SsZqf7o pZJjasIcauYPlYAjl+mnEwv+SDLgohvNtnxTb9MrUOxlq92DqCO3KOj/leR/J2DQ489W PWfHAH5pW8Q2v5OD1INpmSwU0HPFyn75mYECxDXCwL5shbgB06D0zUyQNRmluMLBzGuC phROdz3TLdLazWdl2w7YlRRNidnTHyU7vEuwYCQsOctxYrogszzg+YYQUokFPFsFTpDW AJ8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=4+MYy7OZrk0mn8GWXY4I8q6DUEbRnqfsGbwPSkxAdSE=; fh=3ZQA2mA36fVt0q0r3pFobXFiL2GJ65I7iy6VYkBLcK0=; b=hpMv30KjHqT0UQ+6srqGI+4slL53UjMl+GzSiypKVZ2btUTXvBlV8oY5SNVtWppCEb owdJLmSzI4UndFrKc818oWJ0DqyVJMck20QLceSxT/bB4txjbnypsKPHqX17gS5EXbZn 6Fa5tmxc3wWj4T6FwjS8QJRvYGpyEHV6JOlfNDaktD1tfSBUlSuZoHGA4gjZ/T4PCYUs dwzk/LI8qHjfSo3Rza1Ut6IC7CWe4sRFrCawiZjleFN0iK8r9/DLWEEwKHI/9WzkjKrC TLlr7TlvSZEDz75u3M8tWgrdK8eM+Em03hB6g66nJIgQWr7agz4lm+dt7JNmJf3AqEbp oRaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=y867hByO; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RFTJ1q3f; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-92698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d20-20020a05622a15d400b0042ef28bcc54si5046266qty.525.2024.03.05.08.38.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 08:38:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=y867hByO; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RFTJ1q3f; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-92698-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E99741C24BA8 for ; Tue, 5 Mar 2024 16:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBACD9470; Tue, 5 Mar 2024 16:37:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="y867hByO"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="RFTJ1q3f" Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (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 CD0878BF6; Tue, 5 Mar 2024 16:37:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709656674; cv=none; b=FvpzV5DO5x0rnNGC3JCu8a4HFxPn9BwjkQAnS2Uq17IEF0MokZ9mX4BfERK1lU8xc9YJXLds+d3aQ1IkKX1nVpd606oSzWkGZfa/2pmCDrB+IYPcA+0YmGW7uy39bE3bh/FyAut/NPexjTD5W2ws9TU509rfGQoKTm9lE3mp264= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709656674; c=relaxed/simple; bh=47j0dzSAzW5MEYKvxBhKLHXT49ngHPXkavyrh/wLtwE=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=uQ93rbOQs5satx7nI1ave47xobHNwSLe65PODT5buWMqGHPcy72RrgwhLq0ixOG2Yq8Vi/Q4C8QmY2Yg96l/SxHDYHLr0vKfsjjzC8GUoZY/Adv27HmXDwqOVIpQjHRASNTD8eLnwI2eDzPFGIXL1eUfzvACkdnzzXjngecBdlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=y867hByO; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=RFTJ1q3f; arc=none smtp.client-ip=103.168.172.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id C347213800DB; Tue, 5 Mar 2024 11:37:51 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 05 Mar 2024 11:37:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1709656671; x=1709743071; bh=4+MYy7OZrk0mn8GWXY4I8q6DUEbRnqfsGbwPSkxAdSE=; b= y867hByOENgGFnknD+qxt6Ld/N3IMCjlyvyKCoZ3sIGZ8wTAi1a6mnPsxuq8KMq1 CdODqy244HYamI/6S6Y8HasndG17kRb5ZE1c/TIHw6NhIkO4gmSjdVNIdNQkW9M4 BdvcfbHPUhXiN3MtXgrVN/+rPakw/OOfgwXThwFbP/Os+pGnRQ8NrKlUemYuQSiR vwRcGVWnfEBjBo99bI7oB7XB94pViyoVyhfy94bSwMH9n4oLY8kkhqfX/842Jdt0 aUKlP/gEFMwYFwNXp7SRKo9gx08vxznpzfbaCcoyOjMulNqGnPPQhW5KuxEqp8Oz bRJkKxFebPcpbgpse5oTbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709656671; x= 1709743071; bh=4+MYy7OZrk0mn8GWXY4I8q6DUEbRnqfsGbwPSkxAdSE=; b=R FTJ1q3fzCgrr8z5nU3v5Ct6180xNjeq0/DUbMPBZS4TdrzVJl7jPpNLHyFy4gzs1 3UQ/JkN/y55NEVyhZsOcg4lP6COl0CBjMt/wlpwKEeQiMTlxw8hQEnpJnMaAOPsQ lJbFh1dZXHB92Uyy5Fb+eiP7tiWHjBIRHpt8SxZ2FwESX2YC6mvW97nF3kLrTLD+ IQOeeX7I/qSe+8FjoNLFzknjUUkCc5drBUv76BB4LqM9oedtrbU8tiBP7gOJoMxj Noh3DOJYviBJNvUeAOSPc6c8veW4YbpJcNcyzd6CmnvcQjS+IQ8fVyjcZaaff90o oMKZ60RA2ooSH5p5nuNgA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheelgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepgfekueelgeeigefhudduledtkeefffejueelheelfedutedttdfgveeufeef ieegnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6DFC4B600BF; Tue, 5 Mar 2024 11:37:51 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-208-g3f1d79aedb-fm-20240301.002-g3f1d79ae Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <1859f2a9-b3fa-4d41-86e6-aa0a18fddad4@app.fastmail.com> In-Reply-To: References: <20240227153132.2611499-1-jens.wiklander@linaro.org> <20240227153132.2611499-2-jens.wiklander@linaro.org> Date: Tue, 05 Mar 2024 17:37:31 +0100 From: "Arnd Bergmann" To: "Avri Altman" , "Linus Walleij" , "Jens Wiklander" Cc: "linux-kernel@vger.kernel.org" , "linux-mmc @ vger . kernel . org" , "op-tee@lists.trustedfirmware.org" , "Shyam Saini" , "Ulf Hansson" , "Jerome Forissier" , "Sumit Garg" , "Ilias Apalodimas" , "Bart Van Assche" , "Randy Dunlap" , "Ard Biesheuvel" , "Greg Kroah-Hartman" , "Tomas Winkler" , =?UTF-8?Q?Alex_Benn=C3=A9e?= Subject: Re: [PATCH v3 1/3] rpmb: add Replay Protected Memory Block (RPMB) subsystem Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Mar 5, 2024, at 17:33, Avri Altman wrote: >> On Tue, Feb 27, 2024 at 4:31=E2=80=AFPM Jens Wiklander wrote: >>=20 >> I would mention in the commit that the subsystem is currently only us= ed with >> eMMC but is designed to be used also by UFS and NVME. Nevertheless, n= o big >> deal so: > Moreover, as the years went by, the differences between mmc and ufs=20 > grew: > In mmc there are 7 rpmb operations, in ufs 9. > In mmc the rpmb frame is 512Bytes, also in legacy ufs (up to including=20 > ufs3.1), but in ufs4.0 onward it can be 4k with extended header. > See e.g.=20 > https://patchwork.kernel.org/project/linux-scsi/patch/20221107131038.2= 01724-3-beanhuo@iokpp.de/ > In mmc the rpmb sequence is atomic, in ufs not. > In ufs rpmb is a wlun in mmc a partition. > Both protocols support in multi-region rpmb, but there are some=20 > differences there. How sure are we then that the user-visible ABI is sufficiently abstract to cover all the hardware implementations? Are any of the changes you mention going to be noticed by userspace or are they only visible to the kernel driver? Arnd