Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4408392ioa; Wed, 27 Apr 2022 03:15:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWaXpFmZdqjWtr4xlqTmOzv3cPMDdFcMVLfm4HTZxwqnxNiFuH5ZGpGeuVmgdzUYhNCalS X-Received: by 2002:a17:90b:4c88:b0:1d9:7158:876b with SMTP id my8-20020a17090b4c8800b001d97158876bmr17287269pjb.54.1651054516348; Wed, 27 Apr 2022 03:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651054516; cv=none; d=google.com; s=arc-20160816; b=XP8SSd6WmEikb3u/AeOYlvVQ7e+Tdko8/asbIlOXrs5Z2Rv6RsCzYZw9XDRkkhxYBL pa1dgt7hyK+r7Zl009MVDcwb3bGNq+QO5Ljun9QbWQnAOF82U/cKdKsxhG5OVuwWpJ4u qxnx04B3cvN8oMgfCVnritO0QNpFMRZxtrszkLEG0pQCy3xEm8n4qOIoFuVFzacjU+Vb BTMV6yoxtz517/QmJJlknZwqifJhw6u5tO1sA0Es+QJN1xTOtKYIDQ5ERFTPMx2eJE4Y 3wBryJmsks/3kNS3CQOG10lidPl219fSsXuAx9V9jTPgph1BXf3NkRb3ROo3avLSgoth gboQ== 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=Dhakw0e5ZSPa2dy8bzzfO97Ps8/UGe5wd7QSGn6HCIY=; b=McxWymKMuaFmmUBKTlYEX8iRIq3a8S0AWW2BFJ2N/VAD4sViubSdCHbGc1uml7/rj9 FgIf+0Ytv84oXgjZ9hDte47OMjAfX3CkL8plwuzHnq2HHote1cJGXIyGScGf4BeYZMPX Q6FZsw7HACzPh2wCWXuMAFSrQHoPGZHBFAaISzseUln/D34xuNR0gGUeTa75uXTCJQ5E 5rN+8p6alTrV0ummdqZu1VDtulAtTEJK2e4FIT7SzsVaNDN8P8fKOscAgzaIWDTBkkU8 r+Y86u7I5ibeGJKvXEFyKl8WYNNjIe8F4RvS5FqL5LJN7czVEJYw7emCE/jXuLQ57gac 6BKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gJItSOS0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id g11-20020a656ccb000000b003816043f089si1059412pgw.638.2022.04.27.03.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:15:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gJItSOS0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 AA6CD659E; Wed, 27 Apr 2022 02:36:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355571AbiDZV54 (ORCPT + 99 others); Tue, 26 Apr 2022 17:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236877AbiDZV5y (ORCPT ); Tue, 26 Apr 2022 17:57:54 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAD4131CED; Tue, 26 Apr 2022 14:54:46 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id l18so12095315ejc.7; Tue, 26 Apr 2022 14:54:46 -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=Dhakw0e5ZSPa2dy8bzzfO97Ps8/UGe5wd7QSGn6HCIY=; b=gJItSOS0nTNbKHQU4XxgReQTh/kj3eAdTGIZa9w3MrS5NEpYCZMBFFTdCvHBEsj6sP S83WMM+kpLxopmIBCl9yqJo3JVyKxTbEttoqfmM2qbRgGOerQPp5KCt74yNpc4HixsJm +1Z1pywC68sjhdoyLVi23Vp6ZiunQ//XUQTbRSo5TSVC5gU4OsfnyAD2QonCta3P870I qVxUI/LeF8jifIEPi2AfNLC0UJlkFLJ3txxKRzuiNSCAS4bfAPGBvILiesvGNcYS6ECi Is78Qv9CUc57PEI3NFYNasCiv+dzy+j/dJbxi7JI4dpxAwwZ+0QTEcZNPsDCDciCKqnP Ln9Q== 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=Dhakw0e5ZSPa2dy8bzzfO97Ps8/UGe5wd7QSGn6HCIY=; b=I39h9ko3ZeeQJPnMVIEgEnUcpPumAw81tXQ1cM9xzpWreyrT280q3F1rQ0RTg6VgkJ ikpTGueK9futm7TwMMOr1SeSRWxUoxlF1AT2kzWuIL7KVb0cgf2qn1TSozPvPGOW3f6j ktQPnlouvipUYonVustYhGjwnJJOtKJlu17T0TDiQkuigTy9NH4JtwCj1b50u4g6UWoA okb62koh17ejBr3ZOQz9xPV78rUQuNFWT25bf+5oPp97aXlkgMh+/8L0SaOI+M6m9mX9 9xqEAMOESxyMIUK6nMlk/5eNvO5hxQa1dEr1E0ItfGcTe3/awaVTcG809vUrhSNz/ufC mgKA== X-Gm-Message-State: AOAM530K7mqTH+EYCUDp2ulFXoCFDjIN+A3y0ggGEJdDDLYamPcwnJXO UmxjW0NIbFdweEgRISwVnss= X-Received: by 2002:a17:907:9628:b0:6f3:5fbe:c28 with SMTP id gb40-20020a170907962800b006f35fbe0c28mr21508181ejc.754.1651010084934; Tue, 26 Apr 2022 14:54:44 -0700 (PDT) Received: from [192.168.3.2] (p5dd1ed70.dip0.t-ipconnect.de. [93.209.237.112]) by smtp.googlemail.com with ESMTPSA id ia5-20020a170907a06500b006f392df973bsm3139305ejc.107.2022.04.26.14.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 14:54:44 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3 5/6] scsi: ufshpb: Add handing of device reset HPB regions Infos in HPB device mode From: Bean Huo To: Avri Altman , "alim.akhtar@samsung.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" , "keosung.park@samsung.com" , "peter.wang@mediatek.com" , "powen.kao@mediatek.com" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , keosung.park@samsung.com Date: Tue, 26 Apr 2022 23:54:43 +0200 In-Reply-To: References: <20220424220713.1253049-1-huobean@gmail.com> <20220424220713.1253049-6-huobean@gmail.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 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 Mon, 2022-04-25 at 06:43 +0000, Avri Altman wrote: > >=20 > > Therefore, for HPB device control mode, if the UFS device is reset > > via the > > RST_N > > pin, the active region information in the device will be reset. If > > the host side > > receives this notification from the device side, it is recommended > > to inactivate > > all active regions in the host's HPB cache. > While it makes sense to me, this interpretation of the spec takes > extreme action, > Compared to what it is today, and you probably need to get an ack > from Daejun.=20 >=20 Yes, but it seems he is quiet. Keoseong Park is on the email list and he has looked at the patch. If you have concerns, I can ping Keoseong Park to sync with Daejun. > If we are entering a zone in which each vendor is applying a > different logic -=20 > I think you need to facilitate that - maybe in a different patch set. >=20 Yes, it should be a different patch. I must say that this patch is based on the HPB Spec, say, if the device loses HPB info. The host side should also reset its HPB information, Otherwise, performance will degrade. Of course, it depends on the specific implementation of the vendor. If they don't report 02:HPB operations, this patch still doesn't change the original behavior. Kind regards, Bean