Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3333675pxj; Mon, 24 May 2021 04:26:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgBcFC8C2Gwd/y7Wmc8JGGTJL5Azj7Ce7xa8DAb+2HBHKp0fQYZele47/yvFn6CIRx2NON X-Received: by 2002:a92:c54a:: with SMTP id a10mr15515275ilj.140.1621855613892; Mon, 24 May 2021 04:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621855613; cv=none; d=google.com; s=arc-20160816; b=wnJyn7wytczQrzYBtXy4lCawf0l1l0d+ySTUQJXrNp0n1wbFGTbbbhIdOkHxS9GTR2 uFm4FTzbpM+LUHl59y9b9w1Wtw5Vf445/Zl7oV/7E6He0hnsm/vaPTgBq/gb2wkMhVfP tspWJHadXzX3N/PIax0LiYXB3jxMWENMCiVEtRCv/zCzWX1p4QJMxI1bD7uTQXnPTXYO dRyAqlsQUAl22CTN1JOR6owlOou6OZS4It+0NfIjZHXnzTEEWqWx25yZ3nTDjmFcqtHx TzFnZ7OAuVZcdVJQ2OvnRcVoqqBJEGNgek0mlfvMu3j6gqDLHOUpJg9qUBEVU34C5KbG 2ZPw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :wdcironportexception:ironport-sdr:ironport-sdr:ironport-sdr :dkim-signature; bh=DI54gDc0L/mZFb6K7SIW5fnEIprffSS9tAATU2MZl0Q=; b=wOPTF8bjpjC/JLD9WJzTWQgQGAGAPb5taCoBGa0UilC+b6m4tXLz0Pvur0gNSbMj8j QKBneazyqiDYO7euJ8YYJcf8FB1SDywjSj3rN/gvXRMyZg5UWVtfj4EYzpOU/vfRiRkv lN4pMZfVmRCYOzWlieh4UG1U+NEAxpq1/spH4AXhdw5JSh1enx/TsSxR1srxjrST/aQF /tUug6dXk8q/ObDz5oZCCAwNJvIq67/gblZXB43FX+/gSCdvP9LHfP7L0RJGw1knNynt eSVjjrrs84OVswNdcYnZPFyP5I++5uYlKzqu8rc2IfZe5JEwc8bUtMvAgOsLPRDkweJZ YTmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="Xc45/dqk"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si12476575ilt.118.2021.05.24.04.26.40; Mon, 24 May 2021 04:26:53 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="Xc45/dqk"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232888AbhEXLZn (ORCPT + 99 others); Mon, 24 May 2021 07:25:43 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:21990 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232848AbhEXLZV (ORCPT ); Mon, 24 May 2021 07:25:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1621855433; x=1653391433; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2slTZFlzYas3SOwwmRMcQOgCDAott0ELfJUt8Y1jKJ0=; b=Xc45/dqkB+vDNLeX0Kg1kqZjJ39zNH/r0uLpgnQ2cdMx4XmFXXxsNZqi F7a7m8cli8dZb7dlk+y4wSepbMsj0tDrRqrVxjtVO0n489FBI+SBglcU+ +YiA1I3vkPEIX+rlPHxtezudk5+u/o3URYcrg6oBCh5EGtnokpH2zjq3+ jwGT39m1BtDfMPPzyreL8L1bIgqfFE46Z4J6EyUNEYicATYhQmSvgm5ir alIZ/msD04xmSEhYGP6s5WRkRM3D267DB2RNi8avscF8MuEaiWweVvpBw qx8sAiOqkd6F1wqhcu9ju5xJJDl2ZjY87G1sx2wYxcJ6xGmwiwLCnE6gY w==; IronPort-SDR: ufdYh5Z7vSIzh+jDdEEjma1gpADTpc1NR6Q4K2VfFc4FMnpjKyck7jvPJsY6FTvdcVWMgnlMCv 6wY5JkhD+dr6hM4UpgfnQvKF/kcrH/t1xuhWBnZn95CbfRMD2b+WrGfLOyXK8TpT3HxF9EYUo3 dTkoJP0o1GFRsV43H8eUjMuGv4DPEOsUnSk/iwV6p3FaPCdG8CEIiRY43/1bzkePh1kYhVeEhd jqcY/CtFcVvADsA0Zae3nJIEHuGdkIbTkg6FFitqjbNHWHl5JNgEOf3OHTuW3f2hKDTh5JcbxZ 1pc= X-IronPort-AV: E=Sophos;i="5.82,319,1613404800"; d="scan'208";a="169230689" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2021 19:23:53 +0800 IronPort-SDR: 54s55FL/CN7ss4W5Y/rJpbKfaUcdnkCzomxxbbjnmy093ur2OYdmzzMXfNws/iPqCvuCAk8whh +IPErjutYxGrQnxzP3akvOU1QMj2XhqYsVQZL0xfKNiYwpzg8gTi9brvwOqy++Nxqvz9lCU8YG gDl5BgQ74+4MKgykhalI9q/G0GAk55KZfr/t1XlKokZJlGWE7TAv7nbf7ScGuyD+cO0JyKAsW8 1DYdljVSEVhFp+Zp0f/YpKNToguMPf2RTaTKN8ChhLbOnHNTG84PGQ9s6SCat4T5rwk9o9QoCY Ne6zRKkfGWskeld9ePE8kym7 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 04:02:08 -0700 IronPort-SDR: 6uLKFkry0a/w/L1q1ijz/FUQaadZyo8OsBYqPiQg2r3muBehyFlCr/lkvSAqWUPtzBCYWUbBiE V4PO5NB65tNLVw2qx+szesq5577Y7CpagcrGCwxp4ITO7t2P14VOf99/1D2WfD9cGth7pa0+IB HzQ+N6MvJvE2l9lT9LxAM40SPM65G6dmoFCJnOLuAskTPdzD2GXCDEYRvPDNF+yWY7FKDvD7Ji 21Qqc5FsGnm3Y9oCqRbhbTyQmtX9y66z5kmjJeVWxMvOOoGJttcCywAGqVI6P40EzNAxGyyMhs GiA= WDCIronportException: Internal Received: from bxygm33.sdcorp.global.sandisk.com ([10.0.231.247]) by uls-op-cesaip01.wdc.com with ESMTP; 24 May 2021 04:23:49 -0700 From: Avri Altman To: "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, Bart Van Assche , yongmyung lee , Daejun Park , alim.akhtar@samsung.com, asutoshd@codeaurora.org, Zang Leigang , Avi Shchislowski , Bean Huo , cang@codeaurora.org, stanley.chu@mediatek.com, Avri Altman Subject: [PATCH v9 10/12] scsi: ufshpb: Do not send umap_all in host control mode Date: Mon, 24 May 2021 14:19:11 +0300 Message-Id: <20210524111913.61303-11-avri.altman@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210524111913.61303-1-avri.altman@wdc.com> References: <20210524111913.61303-1-avri.altman@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HPB-WRITE-BUFFER with buffer-id = 0x3h is supported in device control mode only. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c index 47f9021caa29..585515c560a4 100644 --- a/drivers/scsi/ufs/ufshpb.c +++ b/drivers/scsi/ufs/ufshpb.c @@ -2459,7 +2459,8 @@ static void ufshpb_hpb_lu_prepared(struct ufs_hba *hba) ufshpb_set_state(hpb, HPB_PRESENT); if ((hpb->lu_pinned_end - hpb->lu_pinned_start) > 0) queue_work(ufshpb_wq, &hpb->map_work); - ufshpb_issue_umap_all_req(hpb); + if (!hpb->is_hcm) + ufshpb_issue_umap_all_req(hpb); } else { dev_err(hba->dev, "destroy HPB lu %d\n", hpb->lun); ufshpb_destroy_lu(hba, sdev); -- 2.25.1