Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1312323ybg; Wed, 29 Jul 2020 10:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeBnrn2CqBJ1cA9ll8y2yuunVa458w+7Q7QG6bfG4xTl+f8vWR2lEj9sGWgQFpPyMZBIyi X-Received: by 2002:a17:907:20f8:: with SMTP id rh24mr30594937ejb.309.1596044938739; Wed, 29 Jul 2020 10:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596044938; cv=none; d=google.com; s=arc-20160816; b=xVnbC+kcSKwmCXFywTFLJalSACbsRjYO9PxmmwcOsC1gUy8/fjw3Z2F0DSqMqyvtl9 G5gqVtI7ZPxkhnzFYUxnmegmwXyu1tzHo38iq+2y/CnR6mej5agHFMMsXAXKXKmRz3kT WB0BiwnClOrqza/X1W7rG8wFpY6Gg+EtZJN8tF3Pa6l4kewBpas6udst31gU4QM5xrDF fJ/s8GqC/EO3ySl17Ec2D5ytybM3uEclwQm3lkQrpXw2k66/4oUVLT/HDQvn2W5ix92o GwdEYN4/5+ZViGx2oCrqXtwQ/JJ+nixmMlMyAycfPJe/MUo7WbXZE/trG4v6opArcOGi GYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WlqRhgzgQcue/GR0Zrfuhfw08PXoX9nLL9Uz68gPB6A=; b=R8Tx0pyW/7X87v2VUkR7NAmgksC7wSSetBrTap8jLTry2furUueCP/4lVd9iVDXyBJ GbT1A7ObFYi9YjGvHwc0i1Boqu4M4urfMUObm2N0ESQ8qa/I5TYInZNqQ61h2Umf92VD HQ515KgzMugwZ4oXxe5YqlpvHmDRI+dlc/r8d9gnD26EmCyMYrD9O/4CeJE6h9BqBA3s wNoh9e/JG2gTphIXUjY7tgDOR+4w7a5Rv6vPAVeGm83HRhYKE3gBwlPollzDFNWKOSw4 +6L/q+KLq1OEUclgOAB1Q3Q7cjFLiwADVnrQov+dQPtPq3jRR55BrqaDaaN3lBBa0Igf 6fFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=J0L2YvLf; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx8si1625688edb.170.2020.07.29.10.48.36; Wed, 29 Jul 2020 10:48:58 -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=@nvidia.com header.s=n1 header.b=J0L2YvLf; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727109AbgG2RsP (ORCPT + 99 others); Wed, 29 Jul 2020 13:48:15 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:13637 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbgG2RsN (ORCPT ); Wed, 29 Jul 2020 13:48:13 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 29 Jul 2020 10:47:28 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 29 Jul 2020 10:48:13 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 29 Jul 2020 10:48:13 -0700 Received: from [10.2.160.194] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 29 Jul 2020 17:48:12 +0000 Subject: Re: [RFC PATCH v5 12/14] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done To: Dmitry Osipenko , , , , , , , CC: , , , , , , References: <1595883452-17343-1-git-send-email-skomatineni@nvidia.com> <1595883452-17343-13-git-send-email-skomatineni@nvidia.com> <69903c67-8e5f-11c2-45ec-c76b97634aba@nvidia.com> From: Sowjanya Komatineni Message-ID: Date: Wed, 29 Jul 2020 10:55:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1596044848; bh=WlqRhgzgQcue/GR0Zrfuhfw08PXoX9nLL9Uz68gPB6A=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=J0L2YvLfggXNKWADlDM+eCasPdwHDhj8F+Z6cwBwODvdJFoV2n8lYuQcuHfyfzvUI vnkhEBtuw+vWMyAF5+squmzJmLFqetZTUqbj9XcubCnkZGgRAI22Cpshh0PgJr1il5 BS8yGVHJM2i7Ibvw+OwrI+UyEQsHCcLl+sbtVzD9yBzXx2YxMKm3tJ6jn5V97/7SAQ vZNkq66AKKSMpA5j83S0TAxvj/jHoMnTo8YyqI32pJieVruFYA5jQMR/f2To1qqrW3 26SAa+IKuSI3+ub8djJ3wryyw44LszGsqF9ZKOyZqfOgNPGE/gMI60Lorswa7s2Ohl s+EUOh1AfxNOQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/29/20 10:08 AM, Dmitry Osipenko wrote: > 28.07.2020 19:04, Sowjanya Komatineni =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > ... >>>> +void tegra_mipi_cancel_calibration(struct tegra_mipi_device *device) >>>> +{ >>> Doesn't MIPI_CAL need to be reset here? >> No need to reset MIPI CAL > Could you please explain why. There is a calibration state-machine that > apparently needs to be returned into initial state, does it return by > itself? > > TRM says that MIPI block needs to be reset before of starting > calibration process. The reset is completely missing in the driver, I > assume it needs to be corrected with another patch. TRM documented incorrectly. There is no need to reset MIPI_CAL. MIPI CAL is FSM and it does not hang and done bit is to indicate if=20 results are applied to pads or not. If we don't see done bit set meaning, MIPI CAL did not see LP-11 and=20 results are not applied to pads. Also while multiple streams can happen in parallel and we can't reset=20 MIPI CAL as other CSI channel streams (using other pads) may also be=20 going thru calibration process in parallel depending and also DSI pads=20 also are calibrated thru same MIPI CAL controller.