Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1738577ybg; Thu, 4 Jun 2020 18:27:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqAETdd0pYJTwj5odXeYVKLN2Y3e4ZtDmUQZDCPcJ6EMt1my1fAK+waKJzH5ZkfB1TyG21 X-Received: by 2002:a05:6402:2070:: with SMTP id bd16mr6847124edb.35.1591320437753; Thu, 04 Jun 2020 18:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591320437; cv=none; d=google.com; s=arc-20160816; b=0qH9qOmb/7a52yFMgT1cvlJ+Ow9FNDGBvnqizp4zJkwY5Z0m3Pt4vPHlOo3q5KM8Ak rIl69msQyu/14+OT6TV3ULUYIiYfUU43qNQOwCc5W3a+cXsNMEX03pIg4Sg9QtNVYrFw 8KRzBoShuXRY0gEoBrFFUJ8KglaJ/CE1XFYOEzvrVfEW4LLJMOFyZKpHLVEpYe322CmA 2/y2kNamO6jPpnl21lsU4zOxHXAzCMsd9V3yZ0bAQESN6TnK10HT28hC+amN7rLZVZK5 5JgI3oEB8d6hB5gMp4rRfcpjeML+jpCteYm/cul2r0F/6Iah5sGPplh2euuWiee/f//5 sdmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:content-transfer-encoding:date :message-id:in-reply-to:cc:to:from:reply-to:subject:mime-version :dkim-signature:dkim-filter; bh=eWOwq3gc8L6F3LRSI4hZGh75IoHndYy1Qji02XbvxJE=; b=gHRWTXDJaJu5v/75o/LFYmoy7MQlnINVlOKevguSJv3+i03kXOlgwAp1ulFeBDds/1 iGj9xkSwu9FOUrCniRK5G4Q7Zdj30r0sjB+QA5UCuTUrRTdSWffwvt60arBM8zIEW/qE GOjSffNryDCiA8KffnonMJwWLZSK9ddB+tATdDEE1TyumZHVfu6qts0Bv7IGBGSg+5+Z ZSGV7HMMiQatTdzaTDAnBAgIfMdNZFKTIRmEj0BEsi7E3Q2wtCjfCb/6byKugPF5teEJ 2jYxmI3falrQNMjc4fRXYblXQBFwdXwn9Ps/WETJK1wNyL9SkL20jrP95n9Vm49OX6la LcYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=o3YUkD21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si2935664edk.57.2020.06.04.18.26.55; Thu, 04 Jun 2020 18:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=o3YUkD21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726099AbgFEBZF (ORCPT + 99 others); Thu, 4 Jun 2020 21:25:05 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39180 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbgFEBZE (ORCPT ); Thu, 4 Jun 2020 21:25:04 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200605012502epoutp04add9324edb6c04a2f3f9e207a70dd2ed~VgWIzwG8z2598425984epoutp04R for ; Fri, 5 Jun 2020 01:25:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200605012502epoutp04add9324edb6c04a2f3f9e207a70dd2ed~VgWIzwG8z2598425984epoutp04R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1591320302; bh=eWOwq3gc8L6F3LRSI4hZGh75IoHndYy1Qji02XbvxJE=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=o3YUkD219xA3sP/JyODXgksOCaThvWhWMAX/Rfw6dIXq48E9MUfU2G4cel4XN0QjN gBb2YCouSTlbL97RYskopXx+n+maMYrKy7laLzYba/J3XRZUZCvB5eT4wTqvcCoITD /dq82qtjR90Z3biuDUsyNW1ZFmACHDBypfa2G4HY= Received: from epcpadp1 (unknown [182.195.40.11]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20200605012501epcas1p13794fcfee22420754980cde7ed237ef2~VgWIX-sn02926929269epcas1p1j; Fri, 5 Jun 2020 01:25:01 +0000 (GMT) Mime-Version: 1.0 Subject: [RFC PATCH 1/5] scsi: ufs: Add UFS feature related parameter Reply-To: daejun7.park@samsung.com From: Daejun Park To: Daejun Park , ALIM AKHTAR , "avri.altman@wdc.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "beanhuo@micron.com" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , "tomas.winkler@intel.com" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sang-yoon Oh , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , Adel Choi , BoRam Shin X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <231786897.01591320001492.JavaMail.epsvc@epcpadp1> X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <963815509.21591320301642.JavaMail.epsvc@epcpadp1> Date: Fri, 05 Jun 2020 10:22:06 +0900 X-CMS-MailID: 20200605012206epcms2p563210b047b39666d1a1f800952e7f478 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y X-Hop-Count: 3 X-CMS-RootMailID: 20200605011604epcms2p8bec8ef6682583d7248dc7d9dc1bfc882 References: <231786897.01591320001492.JavaMail.epsvc@epcpadp1> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a patch for parameters to be used for UFS features layer and HPB module. Signed-off-by: Daejun Park --- drivers/scsi/ufs/ufs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h index c70845d41449..4a4cb790e34c 100644 --- a/drivers/scsi/ufs/ufs.h +++ b/drivers/scsi/ufs/ufs.h @@ -146,6 +146,7 @@ enum flag_idn { QUERY_FLAG_IDN_WB_EN = 0x0E, QUERY_FLAG_IDN_WB_BUFF_FLUSH_EN = 0x0F, QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8 = 0x10, + QUERY_FLAG_IDN_HPB_RESET = 0x11, }; /* Attribute idn for Query requests */ @@ -229,6 +230,9 @@ enum unit_desc_param { UNIT_DESC_PARAM_PHY_MEM_RSRC_CNT = 0x18, UNIT_DESC_PARAM_CTX_CAPABILITIES = 0x20, UNIT_DESC_PARAM_LARGE_UNIT_SIZE_M1 = 0x22, + UNIT_DESC_HPB_LU_MAX_ACTIVE_REGIONS = 0x23, + UNIT_DESC_HPB_LU_PIN_REGION_START_OFFSET = 0x25, + UNIT_DESC_HPB_LU_NUM_PIN_REGIONS = 0x27, UNIT_DESC_PARAM_WB_BUF_ALLOC_UNITS = 0x29, }; @@ -269,6 +273,8 @@ enum device_desc_param { DEVICE_DESC_PARAM_PSA_MAX_DATA = 0x25, DEVICE_DESC_PARAM_PSA_TMT = 0x29, DEVICE_DESC_PARAM_PRDCT_REV = 0x2A, + DEVICE_DESC_PARAM_HPB_VER = 0x40, + DEVICE_DESC_PARAM_HPB_CONTROL = 0x42, DEVICE_DESC_PARAM_EXT_UFS_FEATURE_SUP = 0x4F, DEVICE_DESC_PARAM_WB_PRESRV_USRSPC_EN = 0x53, DEVICE_DESC_PARAM_WB_TYPE = 0x54, @@ -317,6 +323,10 @@ enum geometry_desc_param { GEOMETRY_DESC_PARAM_ENM4_MAX_NUM_UNITS = 0x3E, GEOMETRY_DESC_PARAM_ENM4_CAP_ADJ_FCTR = 0x42, GEOMETRY_DESC_PARAM_OPT_LOG_BLK_SIZE = 0x44, + GEOMETRY_DESC_HPB_REGION_SIZE = 0x48, + GEOMETRY_DESC_HPB_NUMBER_LU = 0x49, + GEOMETRY_DESC_HPB_SUBREGION_SIZE = 0x4A, + GEOMETRY_DESC_HPB_DEVICE_MAX_ACTIVE_REGIONS = 0x4B, GEOMETRY_DESC_PARAM_WB_MAX_ALLOC_UNITS = 0x4F, GEOMETRY_DESC_PARAM_WB_MAX_WB_LUNS = 0x53, GEOMETRY_DESC_PARAM_WB_BUFF_CAP_ADJ = 0x54, @@ -571,6 +581,7 @@ struct ufs_dev_info { u8 *model; u16 wspecversion; u32 clk_gating_wait_us; + u8 b_ufs_feature_sup; u32 d_ext_ufs_feature_sup; u8 b_wb_buffer_type; u32 d_wb_alloc_units; -- 2.17.1