Received: by 10.213.65.68 with SMTP id h4csp802709imn; Tue, 13 Mar 2018 23:55:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELtowAkyDW7GeQoE1YOOBZXBAcfpNqKfuv7K3CfAoudraFHqRN13CTZ2AriIpHVgeTvG4J7Y X-Received: by 10.101.74.74 with SMTP id a10mr2870529pgu.32.1521010513255; Tue, 13 Mar 2018 23:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521010513; cv=none; d=google.com; s=arc-20160816; b=hka+jkdlRLZqbUcVMq85lSkzvSJWukD8kV+mxsvxC95dcLb8kuzD5C1Bg0O3uQohwc MKEraQHC96vAZWsvll85lyIJIyX0YOrG2vv8L3Uk2CzrfkJ2+0NNS8esxl0ZVEbQ1xl8 niOBuS1ap0hKE8rIC0iVxLf472fbBAc1md7oYsgBZhDmg83cOfax3pRTa1JaIgP/TdiT INnex4yOpQGAhWXRJ6IOiNTzCVEkKsm4MLIH7Mmo83EV4enrDCFSoZ6lulP5IteUTBKH vhYI7IUnwcD0ab3KqkVq1Z3FcEJBmkizcDyAcKco+ZCL31zt+VL7oXcSTV2/KuGCEyjZ bbeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=SxcWIDncfWFEicSr6zIS10fH9BoIK7dUZS0EWRzWBAQ=; b=XDqtappO5jrewfmKv0uEZXPaR1+xp8kjzEX6VKZVVwNBgDFTXcs1s9vuZ4HKUmzOxL MFP2+mkZRRnH2EgTj71K0DU+/zInJ3xHXiSY4FrU+So/ZlMtdicEfQlO04GC2x/884w3 BvQRIY0LsnGew09cEsaGHX8Ts4IpCJpmtbJX/5vAXlSE0Fd2XPt9lXpn3t9V9Rh0Ad4J g26ulBaM6B1RHgTsGqoPmhHIVGEfYoSAYMOqEyGvaxBZLSjpmnnSFuM4+u0q/bNBAJKe 24ITJjP/iKujyLcRCRzDeXv03Ub2Vbrb81lAg272cCOT5QHKA6Kn1KZlc00BOIYC34IA DTHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=cy8siWss; dkim=pass header.i=@codeaurora.org header.s=default header.b=UFYKQBf4; 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 z1si538069pgn.564.2018.03.13.23.54.59; Tue, 13 Mar 2018 23:55:13 -0700 (PDT) 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=pass header.i=@codeaurora.org header.s=default header.b=cy8siWss; dkim=pass header.i=@codeaurora.org header.s=default header.b=UFYKQBf4; 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 S1753498AbeCNGyH (ORCPT + 99 others); Wed, 14 Mar 2018 02:54:07 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44362 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbeCNGyF (ORCPT ); Wed, 14 Mar 2018 02:54:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 131826095F; Wed, 14 Mar 2018 06:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521010445; bh=xRyoVeQZoKvJBDLZC1tfJKQA2UdLPKYaP+zAbQB94d4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=cy8siWssyKfWmUr4+3U4XRaX71/86JyMajwxUVpvf4s8bbqKa+82LceE+3wBq4lZp 8q8ZTmRC8qz4S7PhxrOXlfnqPdoW3By2C5AGXPbvq+BN3gh0+xYA3fXV1wgKOueyFY rovc+6jDgjRnb9Pn6iXz+C+JHtQo/G6KbRRX9qnY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.84] (unknown [182.71.117.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: architt@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B283D60452; Wed, 14 Mar 2018 06:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521010443; bh=xRyoVeQZoKvJBDLZC1tfJKQA2UdLPKYaP+zAbQB94d4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=UFYKQBf4bzG3treB0uuY2tZpQC/XSrgmUZVi/QMiM4DA/JoC7H+/Un5fs4HESsdk6 cVdIFg8ywFHvYUYZou8GDiHKiU0d3y/iwR9xUhiUT5vnQK7H9uxFkKPE8d3miwgcLT 6vJN1H6FccPu7ld8xVsUIP/fwj6R3wNNam4dsvzs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B283D60452 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=architt@codeaurora.org Subject: Re: [PATCH v5 26/36] drm/bridge: analogix_dp: Properly disable aux chan retries on rockchip To: Enric Balletbo i Serra , inki.dae@samsung.com, thierry.reding@gmail.com, hjc@rock-chips.com, seanpaul@chromium.org, airlied@linux.ie, tfiga@chromium.org, heiko@sntech.de Cc: dri-devel@lists.freedesktop.org, dianders@chromium.org, a.hajda@samsung.com, ykk@rock-chips.com, kernel@collabora.com, m.szyprowski@samsung.com, linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, rydberg@bitmath.org, krzk@kernel.org, linux-rockchip@lists.infradead.org, kgene@kernel.org, linux-input@vger.kernel.org, orjan.eide@arm.com, wxt@rock-chips.com, jeffy.chen@rock-chips.com, linux-arm-kernel@lists.infradead.org, mark.yao@rock-chips.com, wzz@rock-chips.com, hl@rock-chips.com, jingoohan1@gmail.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, kyungmin.park@samsung.com, Laurent.pinchart@ideasonboard.com, kuankuan.y@gmail.com, hshi@chromium.org, =?UTF-8?Q?St=c3=a9phane_Marchesin?= References: <20180309222327.18689-1-enric.balletbo@collabora.com> <20180309222327.18689-27-enric.balletbo@collabora.com> From: Archit Taneja Message-ID: <4044e328-09e4-a0d1-61d4-164fed221c8f@codeaurora.org> Date: Wed, 14 Mar 2018 12:23:49 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309222327.18689-27-enric.balletbo@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 10 March 2018 03:53 AM, Enric Balletbo i Serra wrote: > From: Douglas Anderson > > The comments in analogix_dp_init_aux() claim that we're disabling aux > channel retries, but then right below it for Rockchip it sets them to > 3. If we actually need 3 retries for Rockchip then we could adjust > the comment, but it seems more likely that we want the same retry > behavior across all platforms. Reviewed-by: Archit Taneja Thanks, Archit > > Cc: Stéphane Marchesin > Cc: 征增 王 > Signed-off-by: Douglas Anderson > Signed-off-by: Sean Paul > Signed-off-by: Thierry Escande > Signed-off-by: Enric Balletbo i Serra > Tested-by: Marek Szyprowski > --- > > drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c > index 58e8a28e99aa..a5f2763d72e4 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c > @@ -481,15 +481,16 @@ void analogix_dp_init_aux(struct analogix_dp_device *dp) > > analogix_dp_reset_aux(dp); > > - /* Disable AUX transaction H/W retry */ > + /* AUX_BIT_PERIOD_EXPECTED_DELAY doesn't apply to Rockchip IP */ > if (dp->plat_data && is_rockchip(dp->plat_data->dev_type)) > - reg = AUX_BIT_PERIOD_EXPECTED_DELAY(0) | > - AUX_HW_RETRY_COUNT_SEL(3) | > - AUX_HW_RETRY_INTERVAL_600_MICROSECONDS; > + reg = 0; > else > - reg = AUX_BIT_PERIOD_EXPECTED_DELAY(3) | > - AUX_HW_RETRY_COUNT_SEL(0) | > - AUX_HW_RETRY_INTERVAL_600_MICROSECONDS; > + reg = AUX_BIT_PERIOD_EXPECTED_DELAY(3); > + > + /* Disable AUX transaction H/W retry */ > + reg |= AUX_HW_RETRY_COUNT_SEL(0) | > + AUX_HW_RETRY_INTERVAL_600_MICROSECONDS; > + > writel(reg, dp->reg_base + ANALOGIX_DP_AUX_HW_RETRY_CTL); > > /* Receive AUX Channel DEFER commands equal to DEFFER_COUNT*64 */ >