Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7489273rwd; Tue, 20 Jun 2023 01:49:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bFu6jL+4j9Is05FU+8ZnXW+GaZUDQgwbUTpIcnaPHKYbRMnJIzUQK0mGt4GuC9cpEyzlt X-Received: by 2002:a05:6358:a1d:b0:130:f1e5:acc6 with SMTP id 29-20020a0563580a1d00b00130f1e5acc6mr3105467rwa.8.1687250992960; Tue, 20 Jun 2023 01:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687250992; cv=none; d=google.com; s=arc-20160816; b=U66+JE2Qq+/SK4AfjMGTXrV0kKQCH6oYJiLqCHMQ6hP0zOLM7sFyNBy6qnPD1gRbjR NISOkMFaQ+wniAAL2vAH0Jzf3Ox2RuJBcnpb/IxyFArlAb7RQLu40Kmt7GR9LBFQY8oT S5h5ctAhxswuCs7NrwJfWq7XDADMX9mNcu+v8wxlnkyTVPrh6auuW1F26DO6LF/SBQYG 8fpdJj4WK+L5eItgw2PYx2HrmpJhhJTrIm1vYsCdPuGyJvUF7YYbU1RvOAA3Eijf/lLA z0FVPtd4TWIf58ZVQhiQdOlTFypvX94xVXA0CMLhNcEbqTUUz1+S/c2Cehxe/9fkNj83 iapA== 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:dkim-signature; bh=EIrbJmqy/3Vf0N7FpI6m7T71Id31JtkQqGa+BTSQE/g=; b=iYpJGirevj0mbiOSvcF/8uaEpnAQnfTHjsD0FFP0IhOgnwhJGXc24gZnndUYFAAyeT mW2+UhfUruNX9rtqRNNUETg1wCD+jQtPB7LjvSo7OXMVDOrDmHm9lQXJgtFkPI/Lnstn 55jWw6eCtjBfck/537WQ6hj8Xc/8H/6JoI+uR6sGLfO3wTZl0x0zx6OJewtNcRVnSwXj D9SuVm+yXG1IKy72YG2myKa3jyygaX3PhO4EQvf/+fRf+Sv6Mrigk85rxG9atki3ZTp9 5O5X+O/iaqxm0g3cSyckdq2bfKMb7C+c0KW7YAmDDu45rcmqEru2CcNOtilBg2eFZKmi mswQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="lqKPIr/7"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i195-20020a636dcc000000b005533ed46a70si1227358pgc.814.2023.06.20.01.49.39; Tue, 20 Jun 2023 01:49:52 -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=@intel.com header.s=Intel header.b="lqKPIr/7"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231485AbjFTIIb (ORCPT + 99 others); Tue, 20 Jun 2023 04:08:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjFTII3 (ORCPT ); Tue, 20 Jun 2023 04:08:29 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4195B1; Tue, 20 Jun 2023 01:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687248508; x=1718784508; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pCyzHH0zuxlBkZMM80mYSrc2xnVOlYDQN4lfoJ3bmCM=; b=lqKPIr/7WcLBAMUp/mjekRhaiTuM87XKR7NeMMtxnzLF0YeTgqjpEQAR l4z9PBrA1+hMJcgggXfeuIqM+VVL+aWP3bz3C5AwksbI/3f2A1ptvkwQ4 H7f6rHxgZNyPnyO6ZyztpHqKBSa3gZRONq3jWintOZxBzVy05Nw0RkfJg xhzx060k/KDovGqo4KwWzsQaQYcbyyVNUh3JelsKh3DQ314XAVGnwk/Sv KAXpiw1I1tPSB0UyWYC2JQxR9S+/40gVcNh7YHxDahlirld9WypT/ryQR NuBJGWefI3cRu8Y5Uu6yJKHECeQBZlmiNAuw+DWXqZ/dtFgg+UFgF+Su1 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="362338439" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="362338439" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 01:08:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10746"; a="783976537" X-IronPort-AV: E=Sophos;i="6.00,256,1681196400"; d="scan'208";a="783976537" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 20 Jun 2023 01:08:02 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qBWPC-0005f2-0g; Tue, 20 Jun 2023 08:08:02 +0000 Date: Tue, 20 Jun 2023 16:07:21 +0800 From: kernel test robot To: Markus Schneider-Pargmann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger Cc: oe-kbuild-all@lists.linux.dev, Chun-Jie Chen , AngeloGioacchino Del Regno , Tinghan Shen , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Markus Schneider-Pargmann Subject: Re: [PATCH v5 8/8] soc: mediatek: pm-domains: Add support for MT8365 Message-ID: <202306201523.rqsnbV9X-lkp@intel.com> References: <20230619085344.2885311-9-msp@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619085344.2885311-9-msp@baylibre.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Markus, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on krzk-dt/for-next linus/master v6.4-rc7 next-20230620] [cannot apply to mbgg-mediatek/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Markus-Schneider-Pargmann/dt-bindings-power-Add-MT8365-power-domains/20230619-165759 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/20230619085344.2885311-9-msp%40baylibre.com patch subject: [PATCH v5 8/8] soc: mediatek: pm-domains: Add support for MT8365 config: arm64-randconfig-s043-20230619 (https://download.01.org/0day-ci/archive/20230620/202306201523.rqsnbV9X-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230620/202306201523.rqsnbV9X-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306201523.rqsnbV9X-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/soc/mediatek/mtk-pm-domains.c: note: in included file: >> drivers/soc/mediatek/mt8365-pm-domains.h:69:56: sparse: sparse: cast truncates bits from constant value (180 becomes 80) vim +69 drivers/soc/mediatek/mt8365-pm-domains.h 8 9 /* 10 * MT8365 power domain support 11 */ 12 13 #define MT8365_BUS_PROT_INFRA_WR_TOPAXI(_mask) \ 14 BUS_PROT_INFRA_WR(_mask, \ 15 MT8365_INFRA_TOPAXI_PROTECTEN_SET, \ 16 MT8365_INFRA_TOPAXI_PROTECTEN_CLR, \ 17 MT8365_INFRA_TOPAXI_PROTECTEN_STA1) 18 19 #define MT8365_BUS_PROT_INFRA_WR_TOPAXI_1(_mask) \ 20 BUS_PROT_INFRA_WR(_mask, \ 21 MT8365_INFRA_TOPAXI_PROTECTEN_1_SET, \ 22 MT8365_INFRA_TOPAXI_PROTECTEN_1_CLR, \ 23 MT8365_INFRA_TOPAXI_PROTECTEN_1_STA1) 24 25 #define MT8365_BUS_PROT_SMI_WR_CLAMP_EN_PORT(port) \ 26 BUS_PROT_SMI_WR(BIT(port), \ 27 MT8365_SMI_COMMON_CLAMP_EN_SET, \ 28 MT8365_SMI_COMMON_CLAMP_EN_CLR, \ 29 MT8365_SMI_COMMON_CLAMP_EN) 30 31 #define MT8365_BUS_PROT_WAY_EN(_set_mask, _set, _sta_mask, _sta) \ 32 _BUS_PROT(_set_mask, _set, _set, _sta_mask, _sta, \ 33 BUS_PROT_COMPONENT_INFRA | \ 34 BUS_PROT_STA_COMPONENT_INFRA_NAO | \ 35 BUS_PROT_INVERTED | \ 36 BUS_PROT_REG_UPDATE) 37 38 static const struct scpsys_domain_data scpsys_domain_data_mt8365[] = { 39 [MT8365_POWER_DOMAIN_MM] = { 40 .name = "mm", 41 .sta_mask = PWR_STATUS_DISP, 42 .ctl_offs = 0x30c, 43 .pwr_sta_offs = 0x0180, 44 .pwr_sta2nd_offs = 0x0184, 45 .sram_pdn_bits = GENMASK(8, 8), 46 .sram_pdn_ack_bits = GENMASK(12, 12), 47 .bp_cfg = { 48 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 49 MT8365_INFRA_TOPAXI_PROTECTEN_1_MM2INFRA_AXI_GALS_MST_0 | 50 MT8365_INFRA_TOPAXI_PROTECTEN_1_MM2INFRA_AXI_GALS_MST_1), 51 MT8365_BUS_PROT_INFRA_WR_TOPAXI( 52 MT8365_INFRA_TOPAXI_PROTECTEN_MM_M0 | 53 MT8365_INFRA_TOPAXI_PROTECTEN_MDMCU_M1 | 54 MT8365_INFRA_TOPAXI_PROTECTEN_MM2INFRA_AXI_GALS_SLV_0 | 55 MT8365_INFRA_TOPAXI_PROTECTEN_MM2INFRA_AXI_GALS_SLV_1), 56 MT8365_BUS_PROT_WAY_EN( 57 MT8365_INFRA_TOPAXI_SI0_WAY_EN_MMAPB_S, 58 MT8365_INFRA_TOPAXI_SI0_CTL, 59 MT8365_INFRA_NAO_TOPAXI_SI0_CTRL_UPDATED, 60 MT8365_INFRA_NAO_TOPAXI_SI0_STA), 61 MT8365_BUS_PROT_WAY_EN( 62 MT8365_INFRA_TOPAXI_SI2_WAY_EN_PERI_M1, 63 MT8365_INFRA_TOPAXI_SI2_CTL, 64 MT8365_INFRA_NAO_TOPAXI_SI2_CTRL_UPDATED, 65 MT8365_INFRA_NAO_TOPAXI_SI2_STA), 66 MT8365_BUS_PROT_INFRA_WR_TOPAXI( 67 MT8365_INFRA_TOPAXI_PROTECTEN_MMAPB_S), 68 }, > 69 .caps = MTK_SCPD_STRICT_BUS_PROTECTION | MTK_SCPD_HAS_INFRA_NAO, 70 }, 71 [MT8365_POWER_DOMAIN_VENC] = { 72 .name = "venc", 73 .sta_mask = PWR_STATUS_VENC, 74 .ctl_offs = 0x0304, 75 .pwr_sta_offs = 0x0180, 76 .pwr_sta2nd_offs = 0x0184, 77 .sram_pdn_bits = GENMASK(8, 8), 78 .sram_pdn_ack_bits = GENMASK(12, 12), 79 .bp_cfg = { 80 MT8365_BUS_PROT_SMI_WR_CLAMP_EN_PORT(1), 81 }, 82 }, 83 [MT8365_POWER_DOMAIN_AUDIO] = { 84 .name = "audio", 85 .sta_mask = PWR_STATUS_AUDIO, 86 .ctl_offs = 0x0314, 87 .pwr_sta_offs = 0x0180, 88 .pwr_sta2nd_offs = 0x0184, 89 .sram_pdn_bits = GENMASK(12, 8), 90 .sram_pdn_ack_bits = GENMASK(17, 13), 91 .bp_cfg = { 92 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 93 MT8365_INFRA_TOPAXI_PROTECTEN_1_PWRDNREQ_MP1_L2C_AFIFO | 94 MT8365_INFRA_TOPAXI_PROTECTEN_1_AUDIO_BUS_AUDIO_M), 95 }, 96 .caps = MTK_SCPD_ACTIVE_WAKEUP, 97 }, 98 [MT8365_POWER_DOMAIN_CONN] = { 99 .name = "conn", 100 .sta_mask = PWR_STATUS_CONN, 101 .ctl_offs = 0x032c, 102 .pwr_sta_offs = 0x0180, 103 .pwr_sta2nd_offs = 0x0184, 104 .sram_pdn_bits = 0, 105 .sram_pdn_ack_bits = 0, 106 .bp_cfg = { 107 MT8365_BUS_PROT_INFRA_WR_TOPAXI( 108 MT8365_INFRA_TOPAXI_PROTECTEN_AP2CONN_AHB), 109 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 110 MT8365_INFRA_TOPAXI_PROTECTEN_1_CONN2INFRA_AXI_GALS_MST), 111 MT8365_BUS_PROT_INFRA_WR_TOPAXI( 112 MT8365_INFRA_TOPAXI_PROTECTEN_CONN2INFRA_AHB), 113 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 114 MT8365_INFRA_TOPAXI_PROTECTEN_1_INFRA2CONN_AHB_GALS_SLV), 115 }, 116 .caps = MTK_SCPD_ACTIVE_WAKEUP | MTK_SCPD_KEEP_DEFAULT_OFF, 117 }, 118 [MT8365_POWER_DOMAIN_MFG] = { 119 .name = "mfg", 120 .sta_mask = PWR_STATUS_MFG, 121 .ctl_offs = 0x0338, 122 .pwr_sta_offs = 0x0180, 123 .pwr_sta2nd_offs = 0x0184, 124 .sram_pdn_bits = GENMASK(9, 8), 125 .sram_pdn_ack_bits = GENMASK(13, 12), 126 .bp_cfg = { 127 MT8365_BUS_PROT_INFRA_WR_TOPAXI(BIT(25)), 128 MT8365_BUS_PROT_INFRA_WR_TOPAXI( 129 MT8365_INFRA_TOPAXI_PROTECTEN_MFG_M0 | 130 MT8365_INFRA_TOPAXI_PROTECTEN_INFRA2MFG), 131 }, 132 }, 133 [MT8365_POWER_DOMAIN_CAM] = { 134 .name = "cam", 135 .sta_mask = BIT(25), 136 .ctl_offs = 0x0344, 137 .pwr_sta_offs = 0x0180, 138 .pwr_sta2nd_offs = 0x0184, 139 .sram_pdn_bits = GENMASK(9, 8), 140 .sram_pdn_ack_bits = GENMASK(13, 12), 141 .bp_cfg = { 142 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 143 MT8365_INFRA_TOPAXI_PROTECTEN_1_CAM2MM_AXI_GALS_MST), 144 MT8365_BUS_PROT_SMI_WR_CLAMP_EN_PORT(2), 145 }, 146 }, 147 [MT8365_POWER_DOMAIN_VDEC] = { 148 .name = "vdec", 149 .sta_mask = BIT(31), 150 .ctl_offs = 0x0370, 151 .pwr_sta_offs = 0x0180, 152 .pwr_sta2nd_offs = 0x0184, 153 .sram_pdn_bits = GENMASK(8, 8), 154 .sram_pdn_ack_bits = GENMASK(12, 12), 155 .bp_cfg = { 156 MT8365_BUS_PROT_SMI_WR_CLAMP_EN_PORT(3), 157 }, 158 }, 159 [MT8365_POWER_DOMAIN_APU] = { 160 .name = "apu", 161 .sta_mask = BIT(16), 162 .ctl_offs = 0x0378, 163 .pwr_sta_offs = 0x0180, 164 .pwr_sta2nd_offs = 0x0184, 165 .sram_pdn_bits = GENMASK(14, 8), 166 .sram_pdn_ack_bits = GENMASK(21, 15), 167 .bp_cfg = { 168 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 169 MT8365_INFRA_TOPAXI_PROTECTEN_1_APU2AP | 170 MT8365_INFRA_TOPAXI_PROTECTEN_1_APU_CBIP_GALS_MST), 171 MT8365_BUS_PROT_SMI_WR_CLAMP_EN_PORT(4), 172 }, 173 }, 174 [MT8365_POWER_DOMAIN_DSP] = { 175 .name = "dsp", 176 .sta_mask = BIT(17), 177 .ctl_offs = 0x037C, 178 .pwr_sta_offs = 0x0180, 179 .pwr_sta2nd_offs = 0x0184, 180 .sram_pdn_bits = GENMASK(11, 8), 181 .sram_pdn_ack_bits = GENMASK(15, 12), 182 .bp_cfg = { 183 MT8365_BUS_PROT_INFRA_WR_TOPAXI_1( 184 MT8365_INFRA_TOPAXI_PROTECTEN_1_PWRDNREQ_INFRA_GALS_ADB | 185 MT8365_INFRA_TOPAXI_PROTECTEN_1_AUDIO_BUS_DSP_M | 186 MT8365_INFRA_TOPAXI_PROTECTEN_1_AUDIO_BUS_DSP_S), 187 }, 188 .caps = MTK_SCPD_ACTIVE_WAKEUP, 189 }, 190 }; 191 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki