Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp989724pxb; Fri, 15 Apr 2022 17:35:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSU18M4M26BfkH+yI0aixBHnCNESotN7WNDHy6Cgl4NtIGj7mfQrpHvXu57eRUG9Lt9+5T X-Received: by 2002:a63:4c0f:0:b0:39d:b7f6:fdb9 with SMTP id z15-20020a634c0f000000b0039db7f6fdb9mr1128599pga.601.1650069312219; Fri, 15 Apr 2022 17:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069312; cv=none; d=google.com; s=arc-20160816; b=Kr1PJc2zxUYfLh+WgmfOP/9+bQ/5hgZQAByI17CH+s2qJEYNdlLnRHEJwEjnDZWMbB zyPmQX/Xm3Sa8sUHgGcp8C+bysoWHHf4Gcb8qR2I92OGb8Fm0q75d3WVrLHoKsKPBsNC 2qOf0CL89aQcgyT1N6qVArXgVhkygh0R9X+EOSrpH6ySQKB2/FLEqyNDTwdvAMmg6j2N F4PPg805n5KfsQRbdc/KSRRB19jslynik1aMykeHN4vCOYbOjOI+eRaAhy1aZwXD76dV 3y1YSl7KRF1K3GlJ5dIaYQ7sR4xd7JY2tpoXKgnC7DR4kQcu8ymjaRpoKRH7OLNsSjJ2 T2vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=a+eBKXg+HvEOWqCYxJUK4jczCUZDQAIkE1tarFAa5PQ=; b=xP46vLZqjxogOfW5SWw+hWWkSGTgtnXjYQ+ZJaUyICMmXQeipqe0ZU2fl4Q49q+b88 DQve7Z7nQntM41uexRNLPN5rCsHYVloDxfwjFdf52TRYZlupXUFtF8LpRETZJ81LGI1t RhEDrqOcjSGszPH+Pj8qLt95KIIFxSbqGU9ibRhpyPFJzrlVTBevTNEg4rXb7EHIZ5wP 3PEfVPULmb6dWfICamBCUiwKUTxg8xlQxVfCG/Jwei4y9vOpEVBiBjiqxKk6GMV73CJH 9kMF+chyXhny/EKqJfKHXhJo/bQ8P2ZDiVw8+tBGXMVwkCahfnbrncjMJ0mNSJe6ifUc /4Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=POyZeHcW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u11-20020a63ef0b000000b003821d32f04csi2952793pgh.116.2022.04.15.17.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:35:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=POyZeHcW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A5B6F3A5F; Fri, 15 Apr 2022 17:31:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343871AbiDNWK3 (ORCPT + 99 others); Thu, 14 Apr 2022 18:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244107AbiDNWK1 (ORCPT ); Thu, 14 Apr 2022 18:10:27 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F96ADD61; Thu, 14 Apr 2022 15:07:59 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id g18so12500792ejc.10; Thu, 14 Apr 2022 15:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=a+eBKXg+HvEOWqCYxJUK4jczCUZDQAIkE1tarFAa5PQ=; b=POyZeHcWT1no5HjX1bNC8NvYTtOBHqFwIiC+OxkhZfXmSoyfEEq+yGr0w5GRkl+4M/ cjAAzAbPkdKCUd78AbBDRBDKBws7momKROy6V13z74cZZ4HRfvaD9AlFYAb4NH7wb4s2 9c8e/PSlXRnWz4MarGy5iIwMz3v0Zn+L9ink5i61suX7E0ZKfO6W6HE0BGdJiPhPmT6r EkFE89fAEraKstWMgYy+T6ExJmM6O060n37UVUIKhV2ML3EDO7peh0Ffv8lwu/+SA7xs 6Dzq2ZyUNb7MOEzm8AFCqNGcLaBVxPjFDblAeDmrURkxTSEXf7TfzLX5LXh3OXv3IrQG uZqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=a+eBKXg+HvEOWqCYxJUK4jczCUZDQAIkE1tarFAa5PQ=; b=Kiam+A5lmabEQgKDtobqcz+vJiMSbZfhVL1fJLZRA6IBE4fAeKnAiIldQ+yDBoGcb5 NIQlFW2ByxfBFTERKG6fm88OKFsJb/QNtYx592WuOzqQhFkhAefr/9Jcf3o4snIdZgXC tCjnND5XTf59jv+4viiz/PVfdB1AiluO2a54Ielh3FuJATbP7EqHMnD0qNvxXWe+/wqx EEREW17MLD8cLCQFv0uRpPQifPUGplNpIxgcLcLBsPxBHxRWAKBfidnzBZgxg4veHL/r G/ljB+vlxItIBpQDnKlG2t5rOAtiH17323gApxv0CZ0UHSvv7HlQP6uTwmtAd0pKcil9 12hQ== X-Gm-Message-State: AOAM530uqPUJIxvrvV3jK1fdUOg1NKBVNVFGo3DXzGhy2TD8koL2Ib5d s+l1DTJjyQMziiAUy2MdQ9c= X-Received: by 2002:a17:906:65d5:b0:6ba:3133:dfb9 with SMTP id z21-20020a17090665d500b006ba3133dfb9mr4135427ejn.56.1649974077944; Thu, 14 Apr 2022 15:07:57 -0700 (PDT) Received: from [192.168.3.2] (p5dd1ed70.dip0.t-ipconnect.de. [93.209.237.112]) by smtp.googlemail.com with ESMTPSA id k15-20020a50ce4f000000b00420119333c1sm1687605edj.62.2022.04.14.15.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 15:07:57 -0700 (PDT) Message-ID: <44108a7ad56dd6984523af35cfa003f4ed7be41e.camel@gmail.com> Subject: Re: [PATCH 1/1] scsi: ufs: remove redundant HPB unmap From: Bean Huo To: Po-Wen Kao , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger Cc: wsd_upstream@mediatek.com, peter.wang@mediatek.com, stanley.chu@mediatek.com, alice.chao@mediatek.com, chun-hung.wu@mediatek.com, cc.chou@mediatek.com, chaotian.jing@mediatek.com, jiajie.hao@mediatek.com, yohan.joung@sk.com, jason.li@sk.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Date: Fri, 15 Apr 2022 00:07:56 +0200 In-Reply-To: <004b55d8-fcd3-136c-526c-6ada025d6a1c@mediatek.com> References: <20220412073131.10644-1-powen.kao@mediatek.com> <781bfe33efb1e44d22f71e6711da7d15be9d3ab4.camel@gmail.com> <7550da4043ae45ffd58399f1ee696238a5689f25.camel@gmail.com> <004b55d8-fcd3-136c-526c-6ada025d6a1c@mediatek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.0-1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 2022-04-14 at 12:49 +0800, Po-Wen Kao wrote: > Hi Bean, >=20 > The general idea looks good. >=20 > As ufshpb_issue_umap_all_req in ufshpb_state_toggle won't actually > runs=20 > at cold boot probe due to the fact that sdev are not present yet, > this=20 > should avoid sending HPB command before UAC being cleared while keeps > HPB mapping clean when rest flow occurs. >=20 > Just a concern, shouldn't ufshpb_issue_umap_all_req be send for each=20 > sdev's corresponding hpb? >=20 Hi Po Wen, I replied in another email that setting the flag resets all active regions in the device, which is a more efficient way, I have submitted a fix for HPB device mode, your review and testing are welcome. Kind regards, Bean > Looking forward to your further fixes. >=20 >=20