Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp919689rwb; Thu, 18 Aug 2022 14:57:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wJOVJu5M/NDxruFw2w+G4S60vgRz71n7gOtkGi+Lpt0Rvyw2Tw6T+MUIN++PIi5AEjO9z X-Received: by 2002:a17:907:7628:b0:730:b755:4414 with SMTP id jy8-20020a170907762800b00730b7554414mr3060777ejc.11.1660859854115; Thu, 18 Aug 2022 14:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660859854; cv=none; d=google.com; s=arc-20160816; b=Okhkg7gx7Yzh4sK4pDN6oc03gdCsGuO8LRt3yIxQ8cMhn0PXPqOgZufebqbJiXgiR/ n/maCKoeImeJ184LfA5EpSnGa1HIKakd44iAYHKaiBi75kkdbi1NgECnxv7GCEwCihMX jvy2prlx/RQIpXGbH+WZx6lTxFzco8nDWR4KdAn2CWEbmA3D9JJXHu90jCUhM/r0l+jK pB0q38BzScnBW97IPU+z/DbjSXJ1AsfWEjqSWB2qWsuVmkY52DJsNhr0jO8xC3pNANWL vjkk/NE7dDCXtHeGk41e6Mz/It2fF4y5kGMXDceAE5/BxrZ3IXEi7zGH7ryk5bw0rXCN lWyQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nnDiGKt2cp5C5L8N+MbVZJchp1q0vSw7OR2CPyDDuVc=; b=c3780N1u0TExPOgdMm6DWFN2OmBqwxxUqid00CCse2BW0CHRSGrK0CFbMABuS5zMxD qqkYWi/pvd2ty9Rpspb7Tq/u78+J0s7BVpXcWO963H3K+eHhKSUxa43ZvlL4jrcuHY+G aPOx6ONxd0A+oyzhjaIzE6NflS+kJECdWPvs+sBEq+L2DxE1aR6trZqwBLibeasXS5u1 057cY/rhQ+Rei6p8Id8BzMQ4rabgR659j9MROaWPC6aiiBM7m9rVj7CN8aCSt2GMvCe0 M9iLmy/C1fznohDuU8DBwWHx9O1mArSIKwPAb974hZdk0v6FiEHEH3iVzipizEJP2x6L SspQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EBmaQban; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d23-20020a50fe97000000b0043d0a1ec60bsi1596226edt.393.2022.08.18.14.57.08; Thu, 18 Aug 2022 14:57:34 -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=@collabora.com header.s=mail header.b=EBmaQban; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243674AbiHRVr0 (ORCPT + 99 others); Thu, 18 Aug 2022 17:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238862AbiHRVrY (ORCPT ); Thu, 18 Aug 2022 17:47:24 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CADF0C88B8; Thu, 18 Aug 2022 14:47:23 -0700 (PDT) Received: from notapiano (unknown [70.107.189.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id D240C66019FB; Thu, 18 Aug 2022 22:47:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1660859242; bh=4gpnxl75xpqaey0GgS05hQ2JXOenf1aNFuT3t037TNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EBmaQbanWlisUZo1v/tUYoK4/8bd1j2jFm+u8dfqyZyuoSE/phFCvdoPoFPZhKznK nPeMwAmGGLT5K17WA4PUxXe0K1C348e+lgDNFTWzgzFIM9aVaP9DzGGaWCova5fRSw p4DLeWH/351NFNk74MtG0Pp+P6P+JGvL4vePwP79wuPrh9+HdDpPPAJXlBnQHW3joR WfLEjwp6fINYl9EkAFnP+iMaFp318UG778MjeJ/iBvJr4xqscK80dGDR47Id72M6OF 3nQzJxx9bIMXimOoL56w8Lt+vvTtpq8SvlxQRYDIKjC2dKF9bEHyy3ghx6TFTQ5gPO 97/mIlif/FRJA== Date: Thu, 18 Aug 2022 17:47:15 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: "Nancy.Lin" Cc: Rob Herring , Matthias Brugger , Chun-Kuang Hu , Philipp Zabel , wim@linux-watchdog.org, AngeloGioacchino Del Regno , linux@roeck-us.net, David Airlie , Daniel Vetter , Nathan Chancellor , Nick Desaulniers , "jason-jh . lin" , Yongqiang Niu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, dri-devel@lists.freedesktop.org, llvm@lists.linux.dev, singo.chang@mediatek.com, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v25 07/10] soc: mediatek: mmsys: add mmsys for support 64 reset bits Message-ID: <20220818214715.spbyic34szubx3gi@notapiano> References: <20220711075245.10492-1-nancy.lin@mediatek.com> <20220711075245.10492-8-nancy.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220711075245.10492-8-nancy.lin@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Nancy, On Mon, Jul 11, 2022 at 03:52:42PM +0800, Nancy.Lin wrote: [..] > static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = { > .clk_driver = "clk-mt2701-mm", > .routes = mmsys_default_routing_table, > @@ -86,6 +88,7 @@ static const struct mtk_mmsys_driver_data mt8173_mmsys_driver_data = { > .routes = mmsys_default_routing_table, > .num_routes = ARRAY_SIZE(mmsys_default_routing_table), > .sw0_rst_offset = MT8183_MMSYS_SW0_RST_B, > + .num_resets = 32, > }; > > static const struct mtk_mmsys_match_data mt8173_mmsys_match_data = { > @@ -100,6 +103,7 @@ static const struct mtk_mmsys_driver_data mt8183_mmsys_driver_data = { > .routes = mmsys_mt8183_routing_table, > .num_routes = ARRAY_SIZE(mmsys_mt8183_routing_table), > .sw0_rst_offset = MT8183_MMSYS_SW0_RST_B, > + .num_resets = 32, > }; > > static const struct mtk_mmsys_match_data mt8183_mmsys_match_data = { > @@ -114,6 +118,7 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = { > .routes = mmsys_mt8186_routing_table, > .num_routes = ARRAY_SIZE(mmsys_mt8186_routing_table), > .sw0_rst_offset = MT8186_MMSYS_SW0_RST_B, > + .num_resets = 32, > }; [..] > @@ -351,18 +362,6 @@ static int mtk_mmsys_probe(struct platform_device *pdev) > return ret; > } > > - spin_lock_init(&mmsys->lock); > - > - mmsys->rcdev.owner = THIS_MODULE; > - mmsys->rcdev.nr_resets = 32; The number of resets was previously always set to 32, and now you're instead setting it based on num_resets from each machine. The issue is, you're forgetting a bunch of them. mt8192 didn't get a num_reset, so this commit breaks the display on mt8192 based devices. But mt8192 isn't the only one, there are other platforms missing this property. Please set num_resets to 32 in every single one of them, otherwise there will be display regressions. Thanks, N?colas