Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3242471pxb; Sun, 7 Feb 2021 02:46:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXZK+rQI5SRiOI3WZH1KtiuGmTL4jI04Hp4OeUDa19Xw2cdxbdwtGifcAUZzxXIohSSuDo X-Received: by 2002:aa7:c0cd:: with SMTP id j13mr12164386edp.319.1612694809879; Sun, 07 Feb 2021 02:46:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612694809; cv=none; d=google.com; s=arc-20160816; b=oo88E4p/TVp1zUPhhTL4zJ/HtAb5/p9gK++UFcA40yZTFv1JeG/W3G5f8hFipYCSll RAj43cjCsBadKTVz/WssxGyNAqOnLk+HuYbg+QxlbXYNmIV16LBpHRE7lclJsemMwyfw FngnXNj1gmu1SdYRoJXWaoRAk56BAgNE/nKgVew11t6b8aNQyqdfDTf0CISSJOB6MGVo jeRl8A7h7rgqjFkq8gNNu5I9wEAkZiz2MQCOWJqe+svLn1AgkMYUovj84wra5j5Ei919 dax312S8eTAAjCa+IXOFEhSGcrNFN9AcDbzQE6I6Nk6tmPXzusFyEvWUnVWOD0pMXEj6 xgGA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=3IGbIM3G5/TPBw50jfxVOTum5oKaSu4oHa8fy1eVeCg=; b=cdBijTGucq2/TFNmY6uC9wN0PIK0FsTMPKkH1Lnm7X6ac8umO47SAHcuNi4cUXi2tR paKbXNEezC8Sj0OaPcr2ej8HGwfhfVKb3f45TLJoul3s5Vm+KQ1s7eG/NbLiBIYL94u8 7XNQmptJvt17by17Ve802kiFoq8bd208Uaria/3O/JauU4mxjwSeNXk8alund5HlxqY0 U0JyZs8M8XIeyZrOyNbz25Z09LV9649WkLwGsQAZyEjz0BoQ/940VCyesXQT7jXUrYqR p5KJDunxLdlG9sl3XN0U0SGatqtM4HLSYzQghT5cKzFf7EHqVtLjll7qrJFP+aYikA72 7B5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZhqUx+/O"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy13si2641633ejb.62.2021.02.07.02.46.26; Sun, 07 Feb 2021 02:46:49 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="ZhqUx+/O"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbhBGKpm (ORCPT + 99 others); Sun, 7 Feb 2021 05:45:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbhBGKpk (ORCPT ); Sun, 7 Feb 2021 05:45:40 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08D2DC06174A; Sun, 7 Feb 2021 02:45:00 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id hs11so20122831ejc.1; Sun, 07 Feb 2021 02:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=3IGbIM3G5/TPBw50jfxVOTum5oKaSu4oHa8fy1eVeCg=; b=ZhqUx+/OVXJaazlJ1KTjrpIlkFBKBh6euygDDz7fw5of/OoOAD8j+nf/p+Ct6QPme8 Az0TXMycKD7OMzgMg225sA18v3cgMjSqbV0wrisZ2cGLpx5vCwtqFP01XAObDPolrz1T gT3ZuDIW7I+Nqw5wBooMvVvqQBefSutMhLqZmMqIgzFkcq3acZgfEAmiklzgOnA7A67p Ru0Q12A6O83Jz/4Lt+zpcTfs4k7+HbInuL4YZkXgDo9iQLViw0eXOnmsr5cTWunoPXqO swpHArmO/6iNilkvtFKkLXBtTkCJrvx5wXSGoxVztnVobcbgTaVm7n49CGIp5SwcOaqT wqAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=3IGbIM3G5/TPBw50jfxVOTum5oKaSu4oHa8fy1eVeCg=; b=h/PeTNCAz28dTIiNAFw8pgoOZsvB+IPDJ9kp/buPB0DMndI1DJM05dMR538He1TgXh J/s9gqu9irhg+3lWIoIOLEcRtdUvSmFq4UaZdhFDGX3GMSckiDcf6/poMkR6r9/eLzOd asl0+fMAxaVkAi3mLFUE93jvi2iim8irTk+7LXT5MDmyMUkKlbmQdTK5/z4dphoixPrw 8ZzDQTriEjxZQKLAP3pBRPPcA2prV2meKAitOEwPQntgMrTs5KDXpApxXzzPJbgfuJI6 QDVQhZwFZ7yA5g2nR7I42v/AVSsiAO2m0twwVXjBXOPVmGiXG0jD3G0yp1eKRy1VHeua 4m8Q== X-Gm-Message-State: AOAM532UHXLbFvXY28GEbbjV1hP0DB46GFtvInKiOlT8uYM+hYGTeCoK iShLjxb11PqL1NnRoDNLilk= X-Received: by 2002:a17:906:b106:: with SMTP id u6mr11973612ejy.313.1612694698816; Sun, 07 Feb 2021 02:44:58 -0800 (PST) Received: from ubuntu-laptop (ip5f5bee1b.dynamic.kabel-deutschland.de. [95.91.238.27]) by smtp.googlemail.com with ESMTPSA id e24sm1855425ejb.121.2021.02.07.02.44.57 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 02:44:58 -0800 (PST) Message-ID: <19a3cf32c556455f43f9c0f61a408eda65f6d7ec.camel@gmail.com> Subject: Re: [PATCH v19 3/3] scsi: ufs: Prepare HPB read for cached sub-region From: Bean Huo To: Can Guo Cc: Avri Altman , daejun7.park@samsung.com, Greg KH , jejb@linux.ibm.com, martin.petersen@oracle.com, asutoshd@codeaurora.org, stanley.chu@mediatek.com, bvanassche@acm.org, ALIM AKHTAR , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Sung-Jun Park , yongmyung lee , Jinyoung CHOI , BoRam Shin , SEUNGUK SHIN Date: Sun, 07 Feb 2021 11:44:56 +0100 In-Reply-To: References: <20210129052848epcms2p6e5797efd94e6282b76ad9ae6c99e3ab5@epcms2p6> <20210129053042epcms2p538e7fa396c3c2104594c44e48be53eb8@epcms2p5> <7f25ccb1d857131baa1c0424c4542e33@codeaurora.org> <12a011cd895dc9be5ec6c4f964b6011af492f06d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2021-02-07 at 15:36 +0800, Can Guo wrote: > > > > Thanks, I tested Daejun's patchset before, it is also ok (I don't > > know > > which version patchset). maybe we can keep current implementation > > as > > default, then if there is conflict, and submit the quirk. > > > > Yeah, you've tested it, are you sure that Micron's UFS devices are OK > with this specific code line? > > Micron UFS FW team has confirmed that Micron's HPB entries read out > by > "HPB Buffer Read" cmd are in big-endian byte ordering. Aha, I think you didn't check with right person :), ping me, let me tell you this confusing story. and see my HPB patch, I didn't the same with here: https://patchwork.kernel.org/project/linux-scsi/patch/20200504142032.16619-6-beanhuo@micron.com/ Bean