Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp202205ybv; Thu, 6 Feb 2020 21:12:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw1f59DQzFZAjf7TdIuuDQFMTjl7PnXMsuPeQ+o7XmX+/lbaXzA97mcQ9Ay1AFtALs40QGO X-Received: by 2002:a9d:6a06:: with SMTP id g6mr1228082otn.305.1581052325181; Thu, 06 Feb 2020 21:12:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581052325; cv=none; d=google.com; s=arc-20160816; b=VHspZOWKXFAxvYWF76+d5EzBKgvygFN5S9cEdV25E8abSuQUzX7yv00khifmHrVA94 cTMg/gOuNoOwd2E7wDiTYwX2eSfxIqFfPqxqLku8GJb7n9Ff2xIGGnOhK/1cwBkQWVjF lyucbLkGaJZ/Tn5PCYAidPjQz9j1MIyL0I1qd3kQZ+bOQ/kD5BZoAtOnDyfortObnylU 64w0mr/glNqZoUAvkKg36ZBl+7NZObY/8JeV9/9abqWcw4TEyyPGFRh+Pk5CH9bXJdmy tXvXxVFvFk5dahsKchEs+WtlOpgnmCVq0KjsWoecmn/ufAsZTSLupJpmvHWAaNbqcnng tLjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=p+IeH4SGi1r0YN2Gbqakkkdvr0f2lVt6cKftto4BSS0=; b=sgH/YfdKguCysP5/o9RBPmGQR15VeTfy6uAhF4CyVG2SHUdewdoeV1m2j6W1k1SRnz VqKkhT7b97ZR34cArKRKBcj2qokbITM4fAV2Am6Pr6lesLaF8q9wPt1n4iRyz0U42u4c e0MNo/53ZlVVg/qVqPZ82nujh7DLL2pMouHNuKqQnQiNehu1AOVRp+4qbvyxTXUWG+hm 27exn1SNPV9Ql02VVUm/TGuGEzTDRVnu3Msz/8LNBrWlurWSlw2T4Z78oB4Au+hDw+oN UrVhN1nq1T/YQr2SmK19IlnPQS6SnP+KsLOX45NI6ksrGts4bYuV6WcWqKZ5WtijvxZp Hmbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=XfUcCUUY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si1087066otr.97.2020.02.06.21.11.52; Thu, 06 Feb 2020 21:12:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=XfUcCUUY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726619AbgBGFKk (ORCPT + 99 others); Fri, 7 Feb 2020 00:10:40 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:36606 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbgBGFKj (ORCPT ); Fri, 7 Feb 2020 00:10:39 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1581052238; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=p+IeH4SGi1r0YN2Gbqakkkdvr0f2lVt6cKftto4BSS0=; b=XfUcCUUYd2x1j/tcgcU8QTEStisVJIR1IAD9ZqL8ym4XSOpDwHHrtuzNLWAWoxDIDXVANG+c JQp976sO5UkBmdloOXCSJgS9MmTvgQV1sDLgiucvmLCEH0q/sEjbPYkNBQNZi4hBg0IyT0x4 xRWj4WqZLvBbxCu21QvXLVURCmk= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e3cf14e.7fa315918c38-smtp-out-n03; Fri, 07 Feb 2020 05:10:38 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 994F3C447A3; Fri, 7 Feb 2020 05:10:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id AF1EDC433CB; Fri, 7 Feb 2020 05:10:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 07 Feb 2020 13:10:35 +0800 From: Can Guo To: Avri Altman Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Stanley Chu , Bart Van Assche , Venkat Gopalakrishnan , Tomas Winkler , Thomas Gleixner , Pedro Sousa , open list Subject: Re: [PATCH v7 8/8] scsi: ufs: Select INITIAL adapt for HS Gear4 In-Reply-To: <08101e2924d6262579beec488fcbd93f@codeaurora.org> References: <1580978008-9327-1-git-send-email-cang@codeaurora.org> <1580978008-9327-9-git-send-email-cang@codeaurora.org> <08101e2924d6262579beec488fcbd93f@codeaurora.org> Message-ID: X-Sender: cang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-07 10:56, Can Guo wrote: > On 2020-02-06 21:20, Avri Altman wrote: >> Hi Can, >> >> >>> ADAPT is added specifically for HS Gear4 mode only, select INITIAL >>> adapt >>> before do power mode change to G4 and select no adapt before switch >>> to >>> non-G4 modes. >> >> UFSHCI 3.0 says: >> 7.4.1 Adapt >> The use of Adapt isn't mandatory but the specification provides some >> guidelines on its use. >> The HCI should perform an Initial Adapt in the following cases if the >> link is running at HS-G4 >> speed: >> - If DME_RESET is initiated. >> - If an unused line is activated for HS-G4. >> - If UECDME.EC is triggered with bit 3 set to '1'. >> - If a change between Rate A and Rate B in HS-G4 is performed. >> >> If it's not mandatory - why are we setting this for all vendors on all >> platforms? >> Or am I miss-reading the spec? >> >> Thanks, >> Avri > > Hi Avri, > > Yes, it is not mandatory, but I don't know a flash vendor that > refuses to use ADAPT so far, it is even recommended by flash vendors. > So there is no meaning of adding a specific quirk for it, as all flash > vendors need this quirk. Otherwise, we would need to add another vops > to allow platform vendors to control it before send PMC. > > Any other suggestions? > > FYI, ADAPT sequence is used to train an M-RX equalizer. It gives both > sides better signal integrity against the influence caused by > temperature and voltage variations. ADAPT is also used by Quality of > Service Monitoring for HS-G4. > > As for the usage of it, here is just setting the type of it before > PMC to HS-G4, HW will use ADAPT, only if both sides support ADAPT, > when it is required as what the spec is saying. > > Thanks, > > Can Guo. Hi Avri, I will drop this one for now as it may take some time to nail down it. I will come back with a separate patch series for it later. Thanks for the review. Can Guo.