Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1745546rwb; Mon, 7 Nov 2022 05:24:55 -0800 (PST) X-Google-Smtp-Source: AMsMyM5muVmueSogCda0Xk4QowgW+/7X4QWSFdwTsK7EoNJqd5EbqZ7M0mo7ZAs751WZb4yu1adc X-Received: by 2002:a17:907:1c8a:b0:782:1a0d:3373 with SMTP id nb10-20020a1709071c8a00b007821a0d3373mr46031220ejc.135.1667827495447; Mon, 07 Nov 2022 05:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667827495; cv=none; d=google.com; s=arc-20160816; b=d6rQCu0b7rkTEgpc89uX/xHeIKfUggbJG02+tsm2VtbLKE1NyF5Lx41z5u7pD9MXVK GERWqa+mcOlNa+5OnmXVFFPul1BHndM9NncwNEJWB4jODrZxd8wSIpejhK/hSNeezRRl pAQAt634Jmq49MPM2mnaNBlLGYKXEn1Y3VqJzMfKRT/oOMAgzx4ys880dzn35vS8XRKs zYEiTMZTvfiD9lbtHALbfRtJW8Ud33BPc44KuTVgoHMS/L9KU0Tydg4GDO+5LpMBxXss bGlIoqL4FsMnyYB5xGg6rQgT64Prp3g+Zq9OcY44tr95Z08s4+UroisISrFBhmny2LkB ZPDw== 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:date:subject:cc:to:from:dkim-signature; bh=+rhn3V8+zDKpCdIBPe9SURIvaAZ23v/3ueIpZJEDWQ0=; b=WWhiBCC+DlYxXWkJ57vWuLziCLGc398fQhUCNxkKJTrxuEWYQoRVGLIA0gjarXyqle xIYuw58JTHITGdN6DY5NjYA91xkF2g9gnYmtZE7bcyCdRIlwyt2c7wDtBTHKK5oHE4ke KidCo0X4kEwaY1Tx9jlBSZmEvXd3ktxOshZFN0fksXPb+8Rc8/pTpxYV9B8DOsOW0aXn ZemnyLikcXHEoSNujW8DZ/P0+95l0eEhShM3+CywbYSXQY0O3qD1nFtKF8UTclsujZcd oMkO00xeN8h/brgayujmJPWIyzNcPlAL4RGbJuXUK4adE+PWz3cI3cNYyZF1Ca4ZnA52 iPwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b="g6dwblg/"; 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 b9-20020a056402278900b004637e16cfa4si9738937ede.599.2022.11.07.05.24.32; Mon, 07 Nov 2022 05:24:55 -0800 (PST) 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; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b="g6dwblg/"; 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 S232180AbiKGNLH (ORCPT + 93 others); Mon, 7 Nov 2022 08:11:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbiKGNLD (ORCPT ); Mon, 7 Nov 2022 08:11:03 -0500 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB15F1C118; Mon, 7 Nov 2022 05:11:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1667826654; s=strato-dkim-0002; d=iokpp.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=+rhn3V8+zDKpCdIBPe9SURIvaAZ23v/3ueIpZJEDWQ0=; b=g6dwblg/pDuVaigLWqElocSfGdhVaheY0cG1ITQ8y4QosjDFfaX1NhXPo9UFzO0eZ3 UwUNFupM+mLeeywVbst7wuVjX+piHoYp22OwcvdIZNszkpcYsey76+iJ294L7Tg3CfYH yJs0n/Gp0siCPkRvnsveshmza6L32rtnidpIyUBxtUKPo2LbaaA47N+95AwRn1ZqSxSI QJAO+os50OFPH/qy00eRhgNiN7HYnb85n3bhXfelS8wKBw4HZDT/EWMNdX8SnjM7PDLV QlZCFMAiYBq7SrZttfbLk8fk7RcY8GLA8NwJhCxNXmSfjWG1eoMqv6W78GZ7H8ZTtRmW ygxw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":LmkFe0i9dN8c2t4QQyGBB/NDXvjDB6pBSedrgBzPc9DUyubU4DD1QLj68UeUr1+U1RvWtIeMr7Q/U8vM/+oObyVBycbphAC+CkWyag==" X-RZG-CLASS-ID: mo00 Received: from blinux.speedport.ip by smtp.strato.de (RZmta 48.2.1 AUTH) with ESMTPSA id z9cfbfyA7DArjG8 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 7 Nov 2022 14:10:53 +0100 (CET) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, daejun7.park@samsung.com, quic_cang@quicinc.com, quic_nguyenb@quicinc.com, quic_xiaosenh@quicinc.com, quic_richardp@quicinc.com, quic_asutoshd@quicinc.com, hare@suse.de Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Bean Huo Subject: [RFC PATCH v1 0/2] UFS Advanced RPMB Date: Mon, 7 Nov 2022 14:10:36 +0100 Message-Id: <20221107131038.201724-1-beanhuo@iokpp.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE 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 In UFS 4.0, it introduced advanced RPMB, which can significantly improve RPMB's command performance, enhancing its atomic operation. We don't know which implementation will please everyone, mark this advanced RPMB patch as RFC. Any suggestions to make the patch a master patch are welcome. Based on suggestions and feedback from Hannes Reinecke and Bart, we can use job_bsg->request and job_bsg->reply to pass EHS packets without changing the BSG V4 structure and BSG core. So we push RFC patch just to start Advanced RPMB mainlining Bean Huo (2): ufs: core: Advanced RPMB detection ufs: core: Add advanced RPMB support in ufs_bsg drivers/ufs/core/ufs_bsg.c | 115 +++++++++++++--------- drivers/ufs/core/ufshcd.c | 161 ++++++++++++++++++++++++------- include/uapi/scsi/scsi_bsg_ufs.h | 30 +++++- include/ufs/ufs.h | 3 + include/ufs/ufshcd.h | 5 + 5 files changed, 233 insertions(+), 81 deletions(-) -- 2.25.1