From patchwork Sun Nov 20 19:49:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bean Huo X-Patchwork-Id: 13050126 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86349C433FE for ; Sun, 20 Nov 2022 19:49:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbiKTTtq (ORCPT ); Sun, 20 Nov 2022 14:49:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiKTTtp (ORCPT ); Sun, 20 Nov 2022 14:49:45 -0500 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 277322E693; Sun, 20 Nov 2022 11:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1668973778; s=strato-dkim-0002; d=iokpp.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=RVtd19QTogD2yYL3jTxA/XSweBr4JdnzuC2fmS8/Tx0=; b=mmb6bSpuTqHtpgsz6XngdlhkIkCzSWQ/tfFsXyFs8mtOU47fwD+zL3StU2tEmmUPD4 Fx1KkSf8zO89PkoaMWsSv4Jesy3a3RF19avQeZUjMHFaO0+amfMFAD+jldiH7WdK9Qm0 1Nr9hfJ3gHkkCNuX8nFaJf5C1/kzcsYS/6YXVMwmxb4KVdbzXIDX4C26CIYmnWV2XoDj Jrcl2Cxc/WhW0gQyP1+/TjgsQ0NWthiz7eGledZHlhiRds5ImZ7ocTbVz/QE5qwYR+Mm ndTYUnC2QRii6PJsdtUynscOaP7eaptS8+uei5ZaTHOR3OkfLmatet/mwNfjzXZf44FQ QRxw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":LmkFe0i9dN8c2t4QQyGBB/NDXvjDB6pBSedrgBzPc9DUyubU4DD1QLj68UeUr1+U1RvWtIfZ/7Q8ZGqEBlwxF4QH61wYa9UK/y81Dg==" X-RZG-CLASS-ID: mo00 Received: from blinux.speedport.ip by smtp.strato.de (RZmta 48.2.1 AUTH) with ESMTPSA id z9cfbfyAKJnaWNV (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 20 Nov 2022 20:49:36 +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: [PATCH v1 0/6] UFS Advanced RPMB Date: Sun, 20 Nov 2022 20:49:24 +0100 Message-Id: <20221120194930.90283-1-beanhuo@iokpp.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Changelog: RFC -- V1: 1. Split the patch and Remove RFC 2. Add all 8 types of rpmb operations 3. Fix one EHS copy error in ufshcd_advanced_rpmb_req_handler() 4. Fix several issues raised by Avri in the RFC patch: https://patchwork.kernel.org/project/linux-scsi/patch/20221107131038.201724-3-beanhuo@iokpp.de/#25081912 Bean Huo (6): ufs: ufs_bsg: Remove unnecessary length checkup ufs: ufs_bsg: Cleanup ufs_bsg_request ufs: core: Split ufshcd_map_sg ufs: core: Advanced RPMB detection ufs: core: Pass EHS length into ufshcd_prepare_req_desc_hdr() ufs: core: Add advanced RPMB support in ufs_bsg drivers/ufs/core/ufs_bsg.c | 137 ++++++++++++++++--------- drivers/ufs/core/ufshcd.c | 170 +++++++++++++++++++++++++------ include/uapi/scsi/scsi_bsg_ufs.h | 46 ++++++++- include/ufs/ufs.h | 29 ++++++ include/ufs/ufshcd.h | 6 +- include/ufs/ufshci.h | 1 + 6 files changed, 309 insertions(+), 80 deletions(-)