Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1098046pxb; Wed, 6 Apr 2022 08:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBQflqj0EF7PoKqsHGIMBUxP06VFJK7sdFyFYvKmiHq4kLx6SshEyu0OK3N+mjn/HtrH3Y X-Received: by 2002:a17:903:2283:b0:154:613:eb14 with SMTP id b3-20020a170903228300b001540613eb14mr9201693plh.32.1649259604755; Wed, 06 Apr 2022 08:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649259604; cv=none; d=google.com; s=arc-20160816; b=FTZ5XUIkG61YsP5DXf3A3ayqQbVcxpAwnC2y+DpIls1Lm38CO6YjiWkHKpiKFS8kZi EkEGnlKNzkqa7AEwVg8VPCucPoRRlpMgB8YhYFRR29XI6NTm8yRmS7l5utXIH/y6nVgp EA4pGJyyb/L7kv7dORAOtGMj2VK4DCFtiWPsZdPRzMv/bskXdPBRb6vKFln+BzltQFP0 +Ffej8Rjbh9fuQSOZKXM4FAT70tNJjKo/y6aefwIollwGmtj41TwnDmDmbw5YmTodHUY bfDbiEquWMTjKMwtpU5vBpjW0YFiZrrVGAh9OJggpzmSLRhVWtdLTM0/d0bwdxm64aiN CDGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=whOdS+ZcH7sIpEntYe8CJFTcnKkZdKG28Xb/p70XMvo=; b=KQtd51TYRTTTFu95sPJH5G+bDpcylzamEk1d5Py26upN6az7QrOUp/k8N8+1q1WwTq ZU5P3vBlVkLGIClaWa8fGj3GShMM+Ehi3+MuIs1yT9qVJy83cPS3knJYVxnJedhDcsJf fca4cHavmIIeLV3S+mtEulThQlL48dVpRFc93FY56dRc2+6UKjjeBTfEh9dlcRtMUDnz oRVW6GYR1Rd3UOX6N2JseXlgQ0QsCgs/WZI20hUMzkbp2Wcwd2onoUEC4BBsjZdBiFkf RGOZrXC2dPnxGerkj1GLL2Uia6/z1u8RbY+O/BSTESntR6Se7iSRPEmqeAzc9t4YIlUw 9BYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JsHKfdW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p10-20020a17090ab90a00b001c7021d5cf2si4454086pjr.127.2022.04.06.08.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JsHKfdW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07A3637A18C; Wed, 6 Apr 2022 08:07:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235678AbiDFPJJ (ORCPT + 99 others); Wed, 6 Apr 2022 11:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235776AbiDFPIt (ORCPT ); Wed, 6 Apr 2022 11:08:49 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898213B93A6 for ; Wed, 6 Apr 2022 05:02:51 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id g20so2328768edw.6 for ; Wed, 06 Apr 2022 05:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=whOdS+ZcH7sIpEntYe8CJFTcnKkZdKG28Xb/p70XMvo=; b=JsHKfdW83fLPaATYi8d9V3sljgvsb0oN7RRpWT6JB80/10uDk+SQamUjz4rob4ZZS0 gpka4IkmpVK6jnRr8X2aNLtGHqzOjKiM0WQE3+Uy9zMVEejPzHP+aTUse0FLHKtxo317 Rh4ephi89YgTP7m13Ladzc1N+VqpWWIaw76MYLR5gPZqVY4jnvJ55WcIK2D4KbzCEtNU +JV6+V1KVZ/izMtnIZqPqWqhJmXK7Qeo7Vc1i7RSdjLG9qqq6Uo0xHbhojxwh6mP4S2f 8oeJHaXtzLyGDYh4waFsXrD37rwYqLPmR5fdTDK7kVDH/zVBJxSQsRx6DatNT+8FnZsU IozQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=whOdS+ZcH7sIpEntYe8CJFTcnKkZdKG28Xb/p70XMvo=; b=DTwKG3X081yEyd1TuVP2+aEv/6zGuABAbi1dssUkcQa41pcdDifXo7ypXhQKFbS+Pu 5BkojhSJsoFDFjyDf2mVrGbsFo0yv+Ij3dagjTovtgsPX+PaVe/Gal7Q9c1qSBZ67lvR bsyq4Lozzp9D0+AUxbgMhMerVARuBZ2BVRDQtA1FR8+ek85aIGPC8mcAawvDDL6ddnF1 En+qkPpjWiRHso07mLim6XCmHPiG0QPW+z+66nm/8Z4RVfDM0ZB3HV46acw46ECqS1UZ AiCBXdkB6k0uYBtzpkaHvmLjGuAWMKYKPWcgBvD+tGXwvkigcbmM+KNfOwXUBiYLhVPF rxYg== X-Gm-Message-State: AOAM5302YAqMcTGHChT5ozXQxS4e5b3tBDBdfpmrb7OZN71PrLy2DEyB 5L9ml8oQSS/LaJjEb0F7gIBTY0mGAVKxEA== X-Received: by 2002:a05:6402:51d4:b0:410:a328:3c86 with SMTP id r20-20020a05640251d400b00410a3283c86mr8318099edd.55.1649246062857; Wed, 06 Apr 2022 04:54:22 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id j8-20020aa7c0c8000000b0041934547989sm7922351edp.55.2022.04.06.04.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:54:21 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 179711FFB7; Wed, 6 Apr 2022 12:54:21 +0100 (BST) References: <20220405093759.1126835-1-alex.bennee@linaro.org> <8b3ce88f65fd11523a4d2daab3c617f7089eb1ce.camel@gmail.com> <87r16bk013.fsf@linaro.org> User-agent: mu4e 1.7.12; emacs 28.1.50 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Bean Huo 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 Subject: Re: [PATCH v2 0/4] rpmb subsystem, uapi and virtio-rpmb driver Date: Wed, 06 Apr 2022 12:22:00 +0100 In-reply-to: Message-ID: <87ee2ajuky.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Bean Huo writes: > On Tue, 2022-04-05 at 16:43 +0100, Alex Benn=C3=A9e wrote: >>=20 >> Bean Huo writes: >>=20 >> > Hi Alex, >> >=20 >> > Thanks for this unified RPMB interface, I wanted to verify this on >> > our >> > UFS, it seems you didn't add the UFS access interface in this >> > version=20 >> > from your userspace tools, right? >>=20 >> No I didn't but it should be easy enough to add some function pointer >> redirection everywhere one of the op_* functions calls a vrpmb_* >> function. Do you already have a UFS RPMB device driver? >>=20 > > Hi Alex, > Thanks for your feedback. > > We now access UFS RPMB through the RPMB LUN BSG device, RPMB is a well- > known LU and we have a userspace tool to access it. > > I see that if we're going to use your interface, "static struct > rpmb_ops" should be registered from a lower-level driver, for example > in a UFS driver, yes there should be no problem with this registration, > but I don't know with the current way Compared, what are the advantages > to add a driver. maybe the main advantage is that we will have an > unified user space tool for RPMB. right? Pretty much. The main issue for virtio-rpmb is it doesn't really fit neatly into the block stack because all it does is the RPMB part so a non-block orientate API makes sense. Can you point be to where the UFS driver does it's current RPMB stuff? > > Kind regards, > Bean --=20 Alex Benn=C3=A9e