Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1416796pxb; Wed, 6 Apr 2022 18:19:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTMJ7LN5QkZPeXHZsbak84Sgy/Qzb4UDkQcpf4+DZcnxg4EhR0zA/B+yiRuFq+zqMXVyN1 X-Received: by 2002:a63:7b4a:0:b0:398:1337:e304 with SMTP id k10-20020a637b4a000000b003981337e304mr9319867pgn.371.1649294373078; Wed, 06 Apr 2022 18:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649294373; cv=none; d=google.com; s=arc-20160816; b=lmltmpkFbIlZZUVSAFhWpDTA6Q96mCCCj9tOnaU4Fpv8fKigH6IKHHUdVjYfGPXnmQ pJq4o25qX9j5TEQAL7yth6tsR/QNTUgj+0Ilkm2jgR1fKRHkdXLq824IFYGmL26j5ZFI 0ABifWW4a/aABP5dz/OXLLka4glnIQDA6jItbStzLTQDzpsiJLs/4B9ZvoQyB4knAtlb unaecLnuT3uzyK3TYTRIDp9iCFe7e0ZcuDcLnOXashEqjGIeOdLKPkH30XfISgE5fUXr A4/e3KkEoH/HK9FpKlOba7+ygUiN52s3aPnncqMYcm0ogqZ3u+waoetK4GdluGRP8S1V xgmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=3mCDtib46azYhoHX+oJIxgCRBmS2BXiXfAVoUab2E94=; b=ovpyk3zNaAuGmPJwfeMCWpFFE4xiWpWONCLNqXX0NAPrtPtNHc/ll2tQ+pepfZJKxk MsV9F29qwWNC0dGxvxJOiOILYkUgUFTMopC65LCR6GkyHkIZZ7cCS2ECmD/+wShR9M0j Y8UpF9Fd2OwXdiVnpvJeFyn5r04mG6sSIV8t2BtFMfuTsMAnCrV4P5ACk/ln9xuatvOW R5aFHeB0Mqf59SrSRkygzG6hGl07VUpjBtLGwHU6m7smylpSDjXjB+IbzYMg1wW0NTvQ TjhabhryYOhc1bQasWh3WadnFm1r3uOB4/kYC4wCrrPHjhngwNCY/PWNOM73K90bWv0y 1RnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi1-20020a17090b4b4100b001c664d0720bsi446145pjb.69.2022.04.06.18.18.57; Wed, 06 Apr 2022 18:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235662AbiDFVZ7 (ORCPT + 99 others); Wed, 6 Apr 2022 17:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235209AbiDFVZn (ORCPT ); Wed, 6 Apr 2022 17:25:43 -0400 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFD35B6; Wed, 6 Apr 2022 13:21:01 -0700 (PDT) Received: by mail-pl1-f176.google.com with SMTP id j8so2951085pll.11; Wed, 06 Apr 2022 13:21:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=3mCDtib46azYhoHX+oJIxgCRBmS2BXiXfAVoUab2E94=; b=G/IakRoTiAI0cvScoaTKDrEAtYKZlUYKKy1nKDsjiU+2JCkytRwqvIhWSlYkzzu2UP /pC8bSSOL9fXe1mntksjHBwt4/qDkr49OyaQdYurlfKhU3iB2T/LWCxGviFSxYqzktns ditxD6t8mR2QT/2g+Fo8NsvnUD09JKot3+3tJduNVRminyvWw0sJOk1f9rVLyXdRp+MV 1/15Ra1zkLd3GyrzmeT6KWROsuFtBZHjRg9lxjDh8oCfzNz3Cu0YPBb5VJreliZquwsc W6RMZtepyu6DRTxXOL3LTjjtSUCu6iQpJ+SHUQwm9vsnnG2NJyT2+EYtYR7xsj+dOfNn zjIA== X-Gm-Message-State: AOAM530LnSArg00wUxm7sZxts/G5W1SBNK0/D9KLfDwYH8QwHnDDOYjV EDW5zrt6ihIYJiiNOpEBRps= X-Received: by 2002:a17:90b:3a81:b0:1c6:834e:cd61 with SMTP id om1-20020a17090b3a8100b001c6834ecd61mr11840281pjb.149.1649276461210; Wed, 06 Apr 2022 13:21:01 -0700 (PDT) Received: from ?IPV6:2601:647:4000:d7:feaa:14ff:fe9d:6dbd? ([2601:647:4000:d7:feaa:14ff:fe9d:6dbd]) by smtp.gmail.com with ESMTPSA id y12-20020a17090a784c00b001c6bdafc995sm5468971pjl.3.2022.04.06.13.20.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 13:21:00 -0700 (PDT) Message-ID: Date: Wed, 6 Apr 2022 13:20:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 0/4] rpmb subsystem, uapi and virtio-rpmb driver Content-Language: en-US To: Bean Huo , =?UTF-8?Q?Alex_Benn=c3=a9e?= 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 References: <20220405093759.1126835-1-alex.bennee@linaro.org> <8b3ce88f65fd11523a4d2daab3c617f7089eb1ce.camel@gmail.com> <87r16bk013.fsf@linaro.org> <87ee2ajuky.fsf@linaro.org> <310d20a04bdaf40672592d9ffa950606d2ceaff7.camel@gmail.com> From: Bart Van Assche In-Reply-To: <310d20a04bdaf40672592d9ffa950606d2ceaff7.camel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 4/6/22 11:12, Bean Huo wrote: > It is from the ufs-utils. > > So, do you vote to add the UFS RPMB driver based on this new framework > to resolve this conflict? Are any applications using the RPMB code from ufs-utils? It seems to me that the ufs-utils code doe not handle SCSI unit attentions correctly. If a POWER ON unit attention is received as reply to a SECURITY PROTOCOL OUT transaction, the write counter should be reread instead of retrying the SECURITY PROTOCOL OUT command with the same write counter. Regarding adding a UFS RPMB driver: that seems useful to me since multiple applications make use of the UFS RPMB functionality. My understanding is that currently storageproxyd multiplexes UFS RPMB accesses in Android. Thanks, Bart.