Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2669892rwd; Wed, 14 Jun 2023 06:06:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7SKMYqJo72aFq5KWh8UC0CMjGLIUiZPnbQm6rRL41Q8244eg+FmOpEUrbpUAK3hW5qmZXS X-Received: by 2002:a05:6402:1847:b0:505:d16:9374 with SMTP id v7-20020a056402184700b005050d169374mr1643073edy.9.1686748010291; Wed, 14 Jun 2023 06:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686748010; cv=none; d=google.com; s=arc-20160816; b=znb/Raelt4fB6ObX3alxQpMutIjF+5WxF7WX2w0seflI/vwn2BbZlFalP2LaxsckZv 486j2VJRufocADHatrN/oi7Jn7YoGDAJcudOz/nsKwMQKLrDOQLNFjLK9i6r0HqN9Xz3 S1hxb8jRXmJeopKglMS1E+288ZgRB7g0rsnebrVwFEOb/CpSFpsGI6AFms77e5kGjmYB dzb5XQATSoPStCXWvwOkDWvHYYrjVgCwAEfU3pk0oNJCc/GA+TDEJZZe3xzgTRB/xo5l QGaipTEIr6LNGoxpd7+PQMx/xPSUy1fZIsn3t0ue8MdRqI7t9gxAVLIiFUaZsFh9RDTF PuDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1N7i1LF6iNt143ERNxvkE6LA+Px7S6snEL+KMixUWqI=; b=iZvBJV6qTWmdBT88vWDhdLz+TMRKvHMAF/zgGNAC3kYl1yM5R4p8S6iPcAnVe+iKCH 7OJF69huZqIKctyjYWnfo4Vul3Zs9tJEMVygI26m4mW4kL5Emg00oVbP69hRKjLjnFaj HzmO/dwkzJCP4/4XDDoSyHLWEjonNrYoqWQ0lC95eVWOEUckZ1kDpO8VQQQEWPi9siDL Zy3MWNu73Jr4CraPKJhO3ESI27tvgFzPAFIk3KGvrwYANVrTpIccijHs4UZKeJlktWAC ZH3vW+Fm56UUEyt1t30AltuIVWiLbofNfEQyNM26F58aZpomziJ3ZMI2iqOFgu0q1saw TpGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020aa7c6c8000000b00516a4120454si8842240eds.538.2023.06.14.06.05.59; Wed, 14 Jun 2023 06:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244568AbjFNMXy (ORCPT + 99 others); Wed, 14 Jun 2023 08:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244606AbjFNMXm (ORCPT ); Wed, 14 Jun 2023 08:23:42 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79C591BFB for ; Wed, 14 Jun 2023 05:23:40 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 57B7D3F403; Wed, 14 Jun 2023 14:23:38 +0200 (CEST) Date: Wed, 14 Jun 2023 14:23:36 +0200 From: Marijn Suijten To: Dmitry Baryshkov Cc: Jessica Zhang , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , quic_abhinavk@quicinc.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] drm/msm/dpu: Add DPU_INTF_DATABUS_WIDEN feature flag for DPU >= 5.0 Message-ID: References: <20230525-add-widebus-support-v1-0-c7069f2efca1@quicinc.com> <20230525-add-widebus-support-v1-1-c7069f2efca1@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-06-14 15:01:59, Dmitry Baryshkov wrote: > On 14/06/2023 14:42, Marijn Suijten wrote: > > On 2023-06-13 18:57:11, Jessica Zhang wrote: > >> DPU 5.x+ supports a databus widen mode that allows more data to be sent > >> per pclk. Enable this feature flag on all relevant chipsets. > >> > >> Signed-off-by: Jessica Zhang > >> --- > >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 3 ++- > >> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 ++ > >> 2 files changed, 4 insertions(+), 1 deletion(-) > >> > >> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > >> index 36ba3f58dcdf..0be7bf0bfc41 100644 > >> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > >> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c > >> @@ -103,7 +103,8 @@ > >> (BIT(DPU_INTF_INPUT_CTRL) | \ > >> BIT(DPU_INTF_TE) | \ > >> BIT(DPU_INTF_STATUS_SUPPORTED) | \ > >> - BIT(DPU_DATA_HCTL_EN)) > >> + BIT(DPU_DATA_HCTL_EN) | \ > >> + BIT(DPU_INTF_DATABUS_WIDEN)) > > > > This doesn't work. DPU 5.0.0 is SM8150, which has DSI 6G 2.3. In the > > last patch for DSI you state and enable widebus for DSI 6G 2.5+ only, > > meaning DPU and DSI are now desynced, and the output is completely > > corrupted. Tested this on SM8350 which actually has DSI 2.5, and it is also corrupted with this series so something else on this series might be broken. > > Is the bound in dsi_host wrong, or do DPU and DSI need to communicate > > when widebus will be enabled, based on DPU && DSI supporting it? > > I'd prefer to follow the second approach, as we did for DP. DPU asks the > actual video output driver if widebus is to be enabled. Doesn't it seem very strange that DPU 5.x+ comes with a widebus feature, but the DSI does not until two revisions later? Or is this available on every interface, but only for a different (probably DP) encoder block? - Marijn