Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp32817pxh; Thu, 7 Apr 2022 13:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKAwANraHS4aXzLmNx1xhsCVNL3SHsoFNvdXUjcKXkK23J2+zSPjWO3hAt6/Nb94hymca6 X-Received: by 2002:a17:902:cf0d:b0:156:1cc:f08f with SMTP id i13-20020a170902cf0d00b0015601ccf08fmr15653429plg.42.1649361995975; Thu, 07 Apr 2022 13:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361995; cv=none; d=google.com; s=arc-20160816; b=pT7zhVEXLyjFW2DMgbYYlGbjUsryczGT0Pt2Z2Q1rG6fS2mC4bn5ClRSTLP/s132bu kbPccvnmkBUL+qcWqSU+HMTc2XLWkM0YJxD31aKfCctd1dh14jZHjJL6z1MmAk15rIsC b+znXzmDTnn8FnoPbQ8eS7Fqmf2F+OevujGNLrLSn7FLhndD43W4DIj0quWw7wFvjBW9 XwHADaysAJPgZNA/2QR1X1UeKT7X61XG2GL7qByk32a/XZdW5d9JloWo6hD1vvNSbxLJ o7MgyyMfQHWJxU80V10pikhjtwe2uIzNWKxhTE+9WgNmKhbS7viDQhkLouaOUDkBfHuR Lf/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=HLM2327HfIQSb5AwGCuDE4o35NVw/WE2roNt9nbAMpw=; b=S3WDUlGcTC+QAON5daWU3qDyi34HuvRqwoWTxs0v9uNUhUFR6kYnWGgmtqVWGxogJT V8T356fDlFCd1gPQ63iscsMgQZNHzwGYNS3myWIH40ji/9lqYl99hL7ZR0XWSr1FNMOi LF8isolfY+ojaT8CCNZouEvVNCUHh1g9LTokl1usIUhIRgh+FCZJhxCrWMws41GqLZBB La2AwgHPm7eHUvhOgmBa6JaHx05HQR52CQa7astgq0clg2ScMiNIEZeVVIGohWlApLdO 831I7Ul1YoOLp3ge9ykkndu4ObxMhhwT+QYLMWm9jAdB6tlUHFRREeS+HzkdNzDZFNST uGLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Uu0jDkO/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j13-20020aa78d0d000000b004fa3a8e00c0si17592305pfe.375.2022.04.07.13.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:06:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Uu0jDkO/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA112235840; Thu, 7 Apr 2022 12:30:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345735AbiDGQbU (ORCPT + 99 others); Thu, 7 Apr 2022 12:31:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345705AbiDGQbS (ORCPT ); Thu, 7 Apr 2022 12:31:18 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 591912654B; Thu, 7 Apr 2022 09:29:18 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id r13so12003866ejd.5; Thu, 07 Apr 2022 09:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=HLM2327HfIQSb5AwGCuDE4o35NVw/WE2roNt9nbAMpw=; b=Uu0jDkO/ISBZICB6UeYcaaVPdLs6mjY2zO5CvUzLhZJCfpu8rA64Wq5eNmFnobcm6O Li+yxDMAOMAzGY/9DGEIN7ndNquDMY+cyx7B40iPEivyszYbPYsjc3PQAxfH4dG5lFAh 2SjWXNwE6LmV9D7kDuA+nI1eS4+eQsvPWeq1gpMm8BJAS1AN+pGthkLIAgAwHVTo2Dih 2DeOu2Yqelv0pqLjAKhy5rOxOaQgDQ8EU57P1iPvPUGl0EXkfCUJFXQek8blf5AR3Voe m985dF7kqK5lPRCsaEmKFw6R+nRKJlLeEg9eNrl7fAUgQF2ZRmiG1RKlHwoAkjJjVgb1 hBNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=HLM2327HfIQSb5AwGCuDE4o35NVw/WE2roNt9nbAMpw=; b=AP9DTDci4U1JsZJHxqyh8oSIPAhrlMjMmzDfNBBBAXbAdyZqxyTipPVvAyhm4xH0NA 5z7kwLcAM8EsnoTqN18Ukf45K3Z/1TegpdxiWk9XvdBRhoR6sfiBzSMg2HLJMXkRBN8G Lr3z+EMHCons7I6IKsjeTnfldgpNepg4ACVncpdTvBbUTjvV6fyPl5Pl1PukSXx9bn+N eRbcOJm9vvuxJG8FdyE23aQT84YgbWpW4eEMIlTtCH5QawHVq/AiI+v6osyXD5umuL0D 7TIpcHiP7VYt+vwcSUnjcn4HLWbXAgLpeuG1+4VtmMKE+tnLiqwHQpVc1BWHzURoRHLs bF7A== X-Gm-Message-State: AOAM533m9n9WjDF9tHupbN0PY/Q3f1r+psBNZRrMjS8UsJWjdxNVJOnn yJsyAfGukomcFr+4De0oqHo= X-Received: by 2002:a17:907:c309:b0:6e8:4e5:6504 with SMTP id tl9-20020a170907c30900b006e804e56504mr13829576ejc.706.1649348941346; Thu, 07 Apr 2022 09:29:01 -0700 (PDT) Received: from [192.168.3.2] (p5dd1ed70.dip0.t-ipconnect.de. [93.209.237.112]) by smtp.googlemail.com with ESMTPSA id d2-20020a1709067a0200b006df8c996b36sm7790329ejo.26.2022.04.07.09.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 09:29:00 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 0/4] rpmb subsystem, uapi and virtio-rpmb driver From: Bean Huo To: Bart Van Assche , Alex =?ISO-8859-1?Q?Benn=E9e?= Cc: linux-kernel@vger.kernel.org, maxim.uvarov@linaro.org, joakim.bech@linaro.org, ulf.hansson@linaro.org, ilias.apalodimas@linaro.org, arnd@linaro.org, ruchika.gupta@linaro.org, tomas.winkler@intel.com, yang.huang@intel.com, bing.zhu@intel.com, Matti.Moell@opensynergy.com, hmo@opensynergy.com, linux-mmc@vger.kernel.org, linux-scsi@vger.kernel.org Date: Thu, 07 Apr 2022 18:28:59 +0200 In-Reply-To: References: <20220405093759.1126835-1-alex.bennee@linaro.org> <8b3ce88f65fd11523a4d2daab3c617f7089eb1ce.camel@gmail.com> <87r16bk013.fsf@linaro.org> <87ee2ajuky.fsf@linaro.org> <310d20a04bdaf40672592d9ffa950606d2ceaff7.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.0-1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-04-06 at 13:20 -0700, Bart Van Assche wrote: > On 4/6/22 11:12, Bean Huo wrote: > > It is from the ufs-utils. > >=20 > > So, do you vote to add the UFS RPMB driver based on this new > > framework > > to resolve this conflict? >=20 > Are any applications using the RPMB code from ufs-utils? It seems to > me=20 > that the ufs-utils code doe not handle SCSI unit attentions > correctly.=20 > If a POWER ON unit attention is received as reply to a SECURITY > PROTOCOL=20 > OUT transaction, the write counter should be reread instead of > retrying=20 > the SECURITY PROTOCOL OUT command with the same write counter. >=20 Not much sure how customers use this tool, based on my little information from the field, the customer developed their own RPMB code in the application. Here utils code is good example for them to study and verify RPMB functinalities. > Regarding adding a UFS RPMB driver: that seems useful to me since=20 > multiple applications make use of the UFS RPMB functionality. My=20 > understanding is that currently storageproxyd multiplexes UFS RPMB=20 > accesses in Android. >=20 I have the same opinion with you, if we have an unified RPMB access interface, and adding RPMB driver in the kernel, thus is better to manage RPMB. Kind regards, Bean > Thanks, >=20 > Bart.