Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2879589rwb; Mon, 15 Aug 2022 13:10:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Qj+o2bt4ove0Hg677jD2U7WEK4lWrrSQ93n5t7vv3XTmxp+/E49/KpSz6Ifnt03CitMhf X-Received: by 2002:a05:6402:50cb:b0:440:87d4:3ad2 with SMTP id h11-20020a05640250cb00b0044087d43ad2mr15869221edb.219.1660594250542; Mon, 15 Aug 2022 13:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594250; cv=none; d=google.com; s=arc-20160816; b=JVnAljankntM/wBn8WgoBpXOgONwoEhFPvtE/ZSZpaeU95NJ/Dd2GFlPmBnYk+lVxM wTnhShbnRzX7XjuimyQ3siMOnekDEVQRTcPypw3v1tODuFCrdea+599ZwBWx2SUvLT+5 x5CxDwSgmaXRavxVbZuuzzhicm2zYfmn3AgOnyDXJ/L0IGPJ8lBjDsba+Fdtxz2F3JRC aoTNSQB1uwvHFggqS1ggtcY5HImSq/bH+tZR67U4Gn1Xj0cZYtZ8qG4LzVjD44vJz/Sm s4MKhJUSkMOU4xRQTcljcNDAZlLX1YDvBLpPxOY1qkqm0peKGYmtf5RvFEfj2zhMRHkQ xU3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6vX35XmJ/fsho15Oi98cshJa+GjtEueS5zeMf6FSDB8=; b=USOWnXjh9N7VQE6upuH6UZzYlhNlAfO1AE9Hu2WzUoXhjuFme76Pna2WliLdjzoXZ0 LiXM5vv9eftNzJHbjw3WgiQ/R31q5sX1bHbxcpPiV8ZiB2tZlF9QJnd6Q8MQwSecwymg EVfSsMjC/ReGhLbejiCLU4dCXPyWzJfLPGcmkR/hwRKZQWqpolclEHKSrCsX2NHylT/z lPWPGJ38+qLOp75/IiyGw/8woE7BApCIEIWmCig05hp3dx0krt6UKci4xn+YTUqujDeN /t79VSlRKSf9Z5QSw9p043SgJZcXrN3RezXcvnuPeqWNqRxYHJsQDbBLhwnzANmmakGp AUgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=izCsol+6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd15-20020a1709069b8f00b007306645a7absi7636526ejc.849.2022.08.15.13.10.24; Mon, 15 Aug 2022 13:10: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=izCsol+6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244260AbiHOSxC (ORCPT + 99 others); Mon, 15 Aug 2022 14:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbiHOSsS (ORCPT ); Mon, 15 Aug 2022 14:48:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAC131DEE; Mon, 15 Aug 2022 11:28:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B555C61029; Mon, 15 Aug 2022 18:28:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8BDCC433C1; Mon, 15 Aug 2022 18:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588118; bh=sHq264QxcHklrIWI5OzuVs2T/IbfnxE+ODEb1yfrqOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=izCsol+6at4o7P8U586IeatCoYy8aIEDyZMVEhThLLGONWNcWPrWnwYedCzVvFklI KdHfs6y6dsWkyS50Q+sOUU3+Tpm9rWqJ1bxmCKR+PbT3fDZ4ggm/mG+9B179u0QmZO 1U9k+RZNTga2aGtygLIo8ZKxmufNfB4xW5H0BFXE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Stevenson , Maxime Ripard , Sasha Levin Subject: [PATCH 5.15 301/779] drm/vc4: dsi: Correct pixel order for DSI0 Date: Mon, 15 Aug 2022 19:59:05 +0200 Message-Id: <20220815180350.148481813@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Dave Stevenson [ Upstream commit edfe84ae0df16be1251b5a8e840d95f1f3827500 ] For slightly unknown reasons, dsi0 takes a different pixel format to dsi1, and that has to be set in the pixel valve. Amend the setup accordingly. Fixes: a86773d120d7 ("drm/vc4: Add support for feeding DSI encoders from the pixel valve.") Signed-off-by: Dave Stevenson Link: https://lore.kernel.org/r/20220613144800.326124-14-maxime@cerno.tech Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_crtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 88dbb282d15c..5a8c3c6c91af 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -330,7 +330,8 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc, struct drm_atomic_state *s u32 pixel_rep = (mode->flags & DRM_MODE_FLAG_DBLCLK) ? 2 : 1; bool is_dsi = (vc4_encoder->type == VC4_ENCODER_TYPE_DSI0 || vc4_encoder->type == VC4_ENCODER_TYPE_DSI1); - u32 format = is_dsi ? PV_CONTROL_FORMAT_DSIV_24 : PV_CONTROL_FORMAT_24; + bool is_dsi1 = vc4_encoder->type == VC4_ENCODER_TYPE_DSI1; + u32 format = is_dsi1 ? PV_CONTROL_FORMAT_DSIV_24 : PV_CONTROL_FORMAT_24; u8 ppc = pv_data->pixels_per_clock; bool debug_dump_regs = false; -- 2.35.1