Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1864349rwb; Fri, 19 Aug 2022 10:39:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR589+GV6oMdVC41YP+jSlIqg0Tjj9jrkaFL4PD3HRK80wt8UoLuRGZviZfnU1jnMSr9PXMe X-Received: by 2002:a17:90b:1c12:b0:1fa:e52a:bd88 with SMTP id oc18-20020a17090b1c1200b001fae52abd88mr4185464pjb.24.1660930761743; Fri, 19 Aug 2022 10:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930761; cv=none; d=google.com; s=arc-20160816; b=CdDDlkIKRqPDeTwgYsR8SpZEX1/RtrUJVH5p2k/Lks/rtZLi/xqEZ9SZZ5ZA+XNFGt yDHIacYWhiu9aLmxvvku8Qyn8gHRZpFAr2Thijno/5oFEINxPjkTI/rQcqTFpF+LcFej OXU+9GjxvLsmLqZPUQO/JmfyUkeJ4+6/1MhmBxQqjgnUOtFslwAeBUFZSe50KLdN8esD DI9hHxsx5o6aNDw7/jPxNAJEhOCN7hFet8TXIKaw02JPqNKQEU/xgoWKKwPxH1vokdsm iDhZzstcvV05jiEvHjI84nm6ofnemlP7c+zLeWlum4ULGyhVH90Tr5VCcJnDzeMZ1cou 0mzA== 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=Wx5OcgBrLKQPh1h7x/un1NBWFBatdFZpvi7XaRaC26I=; b=TNEhyfZtGQgToyxHqGMTJ8+laUcz5o9pai3yx+dNmNJTB/ztwiu3pYemATgTm3wWu+ 6Y6AyvwnVvqZ/jg+vHpDSmKA91nJuq7bvNe59NPagf/kavzeA4wHRwXB49R1BAHO75+e uvHCxon1Ilj5k/Vvun4TzqOXLVX7H0D+IV2yGziuNYwS/eexgCb2FBrVCTPMhGCsSAZe uz1gtxsfuuV53MwmSfQIwX3X3RuBeLmSQIkXeaciNNeKKJEHOBsYtDcAoRXtEcDkPttK TcVTKMrlTo0YpNY1Sg5k/i5TYvylyI53WwIMoRiDHo2wuZIDQLSsmt19i5NPGyTcn1tz IFUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XU+NaLhq; 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 e65-20020a636944000000b0041e1bbc16a8si4335052pgc.608.2022.08.19.10.39.11; Fri, 19 Aug 2022 10:39:21 -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=XU+NaLhq; 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 S1351599AbiHSQIt (ORCPT + 99 others); Fri, 19 Aug 2022 12:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351645AbiHSQGM (ORCPT ); Fri, 19 Aug 2022 12:06:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024FA107D8F; Fri, 19 Aug 2022 08:55:36 -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 D3AEE615E7; Fri, 19 Aug 2022 15:55:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4ECDC433C1; Fri, 19 Aug 2022 15:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924503; bh=FG0AToaJi0SRD0xqh9uzlQHgPR9bQtc0vDYZ0TK4hCw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XU+NaLhqkwO0UmC8CeMU7oJVDN+gZuUq1pdcESUN3ZlqGa3G1Va23ZJJ4masc6tp5 mn397eHkQPpxWutE8kh0eJ13oOiwYsEkDmp4ZNLWwaGSx1Duo+BKOSc+PJQNjRxwaI 4QeKfeAHAgez727TM4fBp8bRIcw/dmpJYgpcLUNs= 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.10 192/545] drm/vc4: dsi: Correct pixel order for DSI0 Date: Fri, 19 Aug 2022 17:39:22 +0200 Message-Id: <20220819153837.952820943@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 f4ccca922e44..f4e64db07d4e 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -319,7 +319,8 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc) 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