Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1653734pxy; Thu, 29 Apr 2021 11:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC3R6xZd9zlFY2q17vOlSLGNrqOZUsVJ8VHRjsyxOUZtppBEySogY5bcKWVhzTry5otE/S X-Received: by 2002:a17:902:4:b029:ee:8f40:ecbf with SMTP id 4-20020a1709020004b02900ee8f40ecbfmr980493pla.28.1619720522035; Thu, 29 Apr 2021 11:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619720522; cv=none; d=google.com; s=arc-20160816; b=zw7uWvlbQ1/DEDAakwk1sYJFardB0n9FN6WmNgaWz/zLJFbp7A+M9knIPoZ1gfejNR mGqcNdwAAjR80gnnrxTgIpiUFyFFX7QC/906bJEl8qE08QxqSWoaNaCdof+SyFckqlgN /uGuMS3JJFFz11vzzR3JEMgR+KYaWmWYZFWAVdFvGsIaK1HwTYpx/m/yXHHBiR0qwIWN +CPWCGyQepw+c50HkXnvAmRhCUitpc/uQK5q61CkZFeIYLrnIA6rrHDDqWLszMkgqfXA tzzEJcOwwEDGy0cl7qJ4vKQ42m2Q7hOmK8j6AY1L68jVkNWDdBWeUyILjGrHo5DDEHNM 4Lag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qn9kzRdRLypsLGuwsWHINLPGN27LGJ4D1oTG14gSrhQ=; b=SKKS1apzCFwdoSfg3EiQburPEdx3rS2lhuWUzwUDhFWPEglac3ze0XtuDfhz3xP1ik u8qBZJNBOB+sTNsmw9HpmBx+UtvNXbkKr/L7PhtcSje6PhFAnXZ5zpUBBZLs9KP096Q7 EJvnubo3ZScGNl5o9BfzeZ3SdP0Upzxke+WoTHklXa8bPun6HdpUbm3VMbzBF/F12tqf Z259oOXPkN5uCTVMRbMGw1UbJUoIryJSNEllWXW/wSdaXBlMLIXqU7E3MWzm+uPRResX EfoKYp1ksAm01uzG831BCbhl+zRdWiik8A08P4AYFhNMO4WsRJEAagHsJiaQzlYHqE1Z IA5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XxMhfy7D; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si3964407pfm.340.2021.04.29.11.21.47; Thu, 29 Apr 2021 11:22:02 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XxMhfy7D; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241184AbhD2SUW (ORCPT + 99 others); Thu, 29 Apr 2021 14:20:22 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:57176 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241181AbhD2SUU (ORCPT ); Thu, 29 Apr 2021 14:20:20 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 13TIJB2E064801; Thu, 29 Apr 2021 13:19:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1619720351; bh=qn9kzRdRLypsLGuwsWHINLPGN27LGJ4D1oTG14gSrhQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=XxMhfy7DhE9uwt78+5kErww92qqIjMvt17+diJMmsltgv+9LOtJwyenI4lwnJy9SL DBcZyt75V1rWchPr+n4ecd8EbenekLHTf8Qg1CY7jTIT9c2zbhAvCIxF2tIahtcjQ0 2CGHGv6FbOa4ql+DcvCpP53SmH2zY5TTOYS9Wh9o= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 13TIJBdB131020 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 29 Apr 2021 13:19:11 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 29 Apr 2021 13:19:11 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 29 Apr 2021 13:19:11 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 13TIJAWs025236; Thu, 29 Apr 2021 13:19:11 -0500 Date: Thu, 29 Apr 2021 23:49:10 +0530 From: Pratyush Yadav To: Michael Walle CC: , , , , , , , , , , , , , Subject: Re: [RFC PATCH 4/6] spi: cadence-qspi: Use PHY for DAC reads if possible Message-ID: <20210429181908.bwb45eljn5nxscf6@ti.com> References: <20210311191216.7363-1-p.yadav@ti.com> <20210311191216.7363-5-p.yadav@ti.com> <2f26456e-59ff-2625-5d65-c1537052839d@microchip.com> <20210312101757.sqeyledbwjnpqdoy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/04/21 06:28PM, Michael Walle wrote: > Am 2021-03-12 11:17, schrieb Pratyush Yadav: > > On 12/03/21 09:13AM, Tudor.Ambarus@microchip.com wrote: > > > On 3/11/21 9:12 PM, Pratyush Yadav wrote: > > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > > > > > Check if a read is eligible for PHY and if it is, enable PHY and DQS. > > > > > > DQS as in data strobe? Shouldn't the upper layer inform the QSPI > > > controller > > > whether DS is required or not? > > > > Yes, DQS as in data strobe. I need to check this again, but IIRC the > > controller cannot run in PHY mode unless DS is used. Ideally the upper > > layer should indeed inform the controller whether DS is supported/in-use > > or not. That can be used to decide whether PHY mode (and consequently > > the DS line) is to be used or not. > > > > Currently there are only two flashes that use 8D-8D-8D mode (S28HS512T > > and MT35XU512ABA), and both of them drive the DS line. > > The LS1028A datasheet explicitly states that the calibration is only > used for non-DQS flashes. Which makes sense, because it just determine at > which point the input data is sampled. And if the flash provides a data > strobe, it already know when to sample it. What I am missing here? If there was 0 delay in transferring the signals from flash to SoC/controller, you would be right. But in practice there is a small but noticeable delay from when the flash launches the signal and when it is received by the device. So by the time the DQS signal reaches the SoC it might already be too late and the data lines might not be valid any more. The calibration accounts for these (and some others) delays. See [0] for a somewhat similar discussion I had with Tudor. [0] https://lore.kernel.org/linux-mtd/20210312181447.dlecnw2oed7jtxe7@ti.com/ -- Regards, Pratyush Yadav Texas Instruments Inc.