Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3660200pxp; Tue, 15 Mar 2022 03:46:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2HTdsxpObCTgUtoY1/auFGOb/RiW64WHBnAGhmn+aOSbuw9w9BROdweB42q0gK5Oy6FXb X-Received: by 2002:a50:e696:0:b0:413:3846:20a9 with SMTP id z22-20020a50e696000000b00413384620a9mr24327545edm.96.1647341162954; Tue, 15 Mar 2022 03:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647341162; cv=none; d=google.com; s=arc-20160816; b=q8Zjs+0jlGt0RHVMhqiu7MN4fIMOVq+bGOoMwHDQdWBrtB0zXjmboo6x9vY3NOaaYw dZav4BLppyhFjV5TDE1WERcCEH0dg6hwUojDcrGWMamWtBlm/AsyK4QzqUsOZ8vogZBd 8vZYAdYj0IBx/PmP/mzOZnGzU3EDO/SQlmosZNUGOmRhb3dyRfqzhGlf+YNB/N8MjpbZ uswypddBi1rRraMqA0aIyQs5yWFuF1bS0bsfqqR+SbfWuvL9w0J+N5r+dhVLPEsYDxBI 7LYOJsxay9TSLYTTVpEPKBPStjOXErpf6/J+oLNULBAYbxl2VvJLSGZyUjqLHqG/Orgf 9kHw== 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=/h7pqgNT8bl9UI/Vm9uXkydX7aXdlyO0bKwVREOgCyQ=; b=kLt8eilsDhA7wEV/1lyYcpdJrH96H1keZ3RFKtMu8dHF63eZxA4DEQDhwtX6uLBwW2 jqa/FoyKJ3meAN1zkA9EXj2STQH1lXCQleeVzl4g6GQGSclGMu1NTC792rSrVYHN1kxQ NE+39IOGD4+VM8sklucm0juP+7UDPFP5xpT3mvEBnUv1Kyi60iL3ExPLtIDr5CLMe8Ua Xlnq4H75zWpbODlvPl4oK4C7HDgPyd4QgjPsTNzs9EYdbYbvab5rOkm09hf0B7HmpqdK N4QxTxBO6w3PjxEjV7190b2hOKUNCDXnITYjFqGfyyOtAKOvx22VvFA60VobPJWj3N6I Ob1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CNNFhF5N; 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 h13-20020a056402280d00b0041668e4b4d1si13104824ede.489.2022.03.15.03.45.38; Tue, 15 Mar 2022 03:46:02 -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=CNNFhF5N; 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 S241360AbiCNMZD (ORCPT + 99 others); Mon, 14 Mar 2022 08:25:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241879AbiCNMSc (ORCPT ); Mon, 14 Mar 2022 08:18:32 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 786D41FCC1; Mon, 14 Mar 2022 05:13:11 -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 sin.source.kernel.org (Postfix) with ESMTPS id 9FDB8CE1268; Mon, 14 Mar 2022 12:13:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28D2CC340EC; Mon, 14 Mar 2022 12:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647259987; bh=O0ug6X5FmoZy+XnlL4UfoS/smZJsR4Ea5iDiujXvNvg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CNNFhF5NgmPTuYq2DXNRQNpDuHvhcceYdfHgY/okm59uqTLtHVrGlEynVfnLAyTOW IJHIUv9SX8gNmhRVAxHxTfXW0Nm6t/7rZCeXtxxt3uGyPfZ0k5gy4/4wHJ98GEntO0 Lym7ywuHrJpDPtBSzAOfCIZ4wrcRywh4QYEd7uEY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, AngeloGioacchino Del Regno , Alyssa Rosenzweig , "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Matthias Brugger , Sasha Levin Subject: [PATCH 5.16 008/121] soc: mediatek: mt8192-mmsys: Fix dither to dsi0 paths input sel Date: Mon, 14 Mar 2022 12:53:11 +0100 Message-Id: <20220314112744.357937888@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112744.120491875@linuxfoundation.org> References: <20220314112744.120491875@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAD_ENC_HEADER,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: AngeloGioacchino Del Regno [ Upstream commit c432cd598a185afefba1ac3b0ee226f222f71341 ] In commit d687e056a18f ("soc: mediatek: mmsys: Add mt8192 mmsys routing table"), the mmsys routing table for mt8192 was introduced but the input selector for DITHER->DSI0 has no value assigned to it. This means that we are clearing bit 0 instead of setting it, blocking communication between these two blocks; due to that, any display that is connected to DSI0 will not work, as no data will go through. The effect of that issue is that, during bootup, the DRM will block for some time, while atomically waiting for a vblank that never happens; later, the situation doesn't get better, leaving the display in a non-functional state. To fix this issue, fix the route entry in the table by assigning the dither input selector to MT8192_DISP_DSI0_SEL_IN. Fixes: d687e056a18f ("soc: mediatek: mmsys: Add mt8192 mmsys routing table") Signed-off-by: AngeloGioacchino Del Regno Tested-by: Alyssa Rosenzweig Reviewed-by: NĂ­colas F. R. A. Prado Link: https://lore.kernel.org/r/20220128142056.359900-1-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger Signed-off-by: Sasha Levin --- drivers/soc/mediatek/mt8192-mmsys.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mt8192-mmsys.h b/drivers/soc/mediatek/mt8192-mmsys.h index 6f0a57044a7b..6aae0b12b6ff 100644 --- a/drivers/soc/mediatek/mt8192-mmsys.h +++ b/drivers/soc/mediatek/mt8192-mmsys.h @@ -53,7 +53,8 @@ static const struct mtk_mmsys_routes mmsys_mt8192_routing_table[] = { MT8192_AAL0_SEL_IN_CCORR0 }, { DDP_COMPONENT_DITHER, DDP_COMPONENT_DSI0, - MT8192_DISP_DSI0_SEL_IN, MT8192_DSI0_SEL_IN_DITHER0 + MT8192_DISP_DSI0_SEL_IN, MT8192_DSI0_SEL_IN_DITHER0, + MT8192_DSI0_SEL_IN_DITHER0 }, { DDP_COMPONENT_RDMA0, DDP_COMPONENT_COLOR0, MT8192_DISP_RDMA0_SOUT_SEL, MT8192_RDMA0_SOUT_COLOR0, -- 2.34.1