From: kernel test robot <lkp@intel.com>
To: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>,
Drew Fustini <dfustini@oss.tenstorrent.com>,
Joel Stanley <jms@oss.tenstorrent.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-riscv@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, joel@jms.id.au, fustini@kernel.org,
mpe@kernel.org, mpe@oss.tenstorrent.com,
npiggin@oss.tenstorrent.com, agross@kernel.org,
agross@oss.tenstorrent.com
Subject: Re: [PATCH 3/8] clk: tenstorrent: Add Atlantis clock controller driver
Date: Fri, 16 Jan 2026 19:56:14 +0800 [thread overview]
Message-ID: <202601161951.u4TyUnmn-lkp@intel.com> (raw)
In-Reply-To: <20260115-atlantis-clocks-v1-3-7356e671f28b@oss.tenstorrent.com>
Hi Anirudh,
kernel test robot noticed the following build errors:
[auto build test ERROR on 9448598b22c50c8a5bb77a9103e2d49f134c9578]
url: https://github.com/intel-lab-lkp/linux/commits/Anirudh-Srinivasan/dt-bindings-soc-tenstorrent-Add-tenstorrent-atlantis-syscon/20260116-074618
base: 9448598b22c50c8a5bb77a9103e2d49f134c9578
patch link: https://lore.kernel.org/r/20260115-atlantis-clocks-v1-3-7356e671f28b%40oss.tenstorrent.com
patch subject: [PATCH 3/8] clk: tenstorrent: Add Atlantis clock controller driver
config: s390-randconfig-r132-20260116 (https://download.01.org/0day-ci/archive/20260116/202601161951.u4TyUnmn-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601161951.u4TyUnmn-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601161951.u4TyUnmn-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/tenstorrent/atlantis-ccu.c: In function 'atlantis_ccu_clocks_register':
>> drivers/clk/tenstorrent/atlantis-ccu.c:744:4: error: a label can only be part of a statement and a declaration is not a statement
744 | struct atlantis_clk_mux *mux =
| ^~~~~~
drivers/clk/tenstorrent/atlantis-ccu.c:783:4: error: a label can only be part of a statement and a declaration is not a statement
783 | struct atlantis_clk_divider *div =
| ^~~~~~
drivers/clk/tenstorrent/atlantis-ccu.c:801:4: error: a label can only be part of a statement and a declaration is not a statement
801 | struct atlantis_clk_gate *gate =
| ^~~~~~
drivers/clk/tenstorrent/atlantis-ccu.c:818:4: error: a label can only be part of a statement and a declaration is not a statement
818 | struct atlantis_clk_fixed_factor *factor =
| ^~~~~~
drivers/clk/tenstorrent/atlantis-ccu.c:840:4: error: a label can only be part of a statement and a declaration is not a statement
840 | struct atlantis_clk_gate_shared *gate_shared =
| ^~~~~~
vim +744 drivers/clk/tenstorrent/atlantis-ccu.c
710
711 static int atlantis_ccu_clocks_register(struct device *dev,
712 struct atlantis_ccu *ccu,
713 const struct atlantis_ccu_data *data)
714 {
715 struct regmap *regmap = ccu->regmap;
716 struct clk_hw_onecell_data *clk_data;
717 int i, ret;
718 size_t num_clks = data->num;
719
720 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, data->num),
721 GFP_KERNEL);
722 if (!clk_data)
723 return -ENOMEM;
724
725 ccu->clk_data = clk_data;
726
727 for (i = 0; i < data->num; i++) {
728 struct clk_hw *hw = data->hws[i];
729 const char *name = hw->init->name;
730 struct atlantis_clk_common *common =
731 hw_to_atlantis_clk_common(hw);
732 common->regmap = regmap;
733
734 /* Fixup missing handle to parent for gates/muxes/dividers */
735 if (hw->init->parent_hws && hw->init->num_parents == 1) {
736 const struct atlantis_clk_common *parent =
737 hw_to_atlantis_clk_common(
738 hw->init->parent_hws[0]);
739 hw->init->parent_hws[0] = clk_data->hws[parent->clkid];
740 }
741
742 switch (common->clk_type) {
743 case ATLANTIS_CLK_MUX:
> 744 struct atlantis_clk_mux *mux =
745 hw_to_atlantis_clk_mux(hw);
746
747 hw = devm_clk_hw_register_mux_parent_data_table(
748 ccu->dev, name, hw->init->parent_data,
749 hw->init->num_parents, hw->init->flags,
750 ccu->base + mux->config.reg_offset,
751 mux->config.shift, mux->config.width, 0, NULL,
752 &lock);
753
754 if (IS_ERR(hw)) {
755 dev_err(dev, "Cannot register clock %d - %s\n",
756 i, name);
757 return ret;
758 }
759
760 if (data == &atlantis_ccu_rcpu_data) {
761 switch (common->clkid) {
762 case CLK_RCPU_ROOT:
763 ret = clk_hw_set_parent(
764 hw,
765 clk_data->hws[CLK_RCPU_PLL]);
766 if (ret)
767 dev_err(ccu->dev,
768 "Failed to set RCPU ROOT MUX parent: %d\n",
769 ret);
770 break;
771 case CLK_NOCC_CLK:
772 ret = clk_hw_set_parent(
773 hw, clk_data->hws[CLK_NOC_PLL]);
774 if (ret)
775 dev_err(ccu->dev,
776 "Failed to set NOCC Mux parent: %d\n",
777 ret);
778 break;
779 }
780 }
781 break;
782 case ATLANTIS_CLK_DIVIDER:
783 struct atlantis_clk_divider *div =
784 hw_to_atlantis_clk_divider(hw);
785
786 hw = devm_clk_hw_register_divider_parent_hw(
787 ccu->dev, name, common->hw.init->parent_hws[0],
788 div->common.hw.init->flags,
789 ccu->base + div->config.reg_offset,
790 div->config.shift, div->config.width,
791 div->config.flags, &lock);
792
793 if (IS_ERR(hw)) {
794 dev_err(dev, "Cannot register clock %d - %s\n",
795 i, name);
796 return ret;
797 }
798
799 break;
800 case ATLANTIS_CLK_GATE:
801 struct atlantis_clk_gate *gate =
802 hw_to_atlantis_clk_gate(hw);
803
804 hw = devm_clk_hw_register_gate_parent_hw(
805 ccu->dev, name, common->hw.init->parent_hws[0],
806 hw->init->flags,
807 ccu->base + gate->config.reg_offset,
808 ffs(gate->config.enable) - 1, 0, &lock);
809
810 if (IS_ERR(hw)) {
811 dev_err(dev, "Cannot register clock %d - %s\n",
812 i, name);
813 return ret;
814 }
815
816 break;
817 case ATLANTIS_CLK_FIXED_FACTOR:
818 struct atlantis_clk_fixed_factor *factor =
819 hw_to_atlantis_clk_fixed_factor(hw);
820
821 if (hw->init->parent_data) {
822 hw = devm_clk_hw_register_fixed_factor_index(
823 dev, name,
824 hw->init->parent_data[0].index,
825 hw->init->flags, factor->config.mult,
826 factor->config.div);
827 } else {
828 hw = devm_clk_hw_register_fixed_factor_parent_hw(
829 dev, name, hw->init->parent_hws[0],
830 hw->init->flags, factor->config.mult,
831 factor->config.div);
832 }
833 if (IS_ERR(hw)) {
834 dev_err(dev, "Cannot register clock %d - %s\n",
835 i, name);
836 return ret;
837 }
838 break;
839 case ATLANTIS_CLK_GATE_SHARED:
840 struct atlantis_clk_gate_shared *gate_shared =
841 hw_to_atlantis_clk_gate_shared(hw);
842 gate_shared->config.refcount_lock = &refcount_lock;
843
844 ret = devm_clk_hw_register(dev, hw);
845
846 if (ret) {
847 dev_err(dev, "Cannot register clock %d - %s\n",
848 i, name);
849 return ret;
850 }
851
852 break;
853 default:
854
855 ret = devm_clk_hw_register(dev, hw);
856
857 if (ret) {
858 dev_err(dev, "Cannot register clock %d - %s\n",
859 i, name);
860 return ret;
861 }
862
863 break;
864 }
865 clk_data->hws[common->clkid] = hw;
866 }
867
868 clk_data->num = num_clks;
869
870 ret = devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get, clk_data);
871 if (ret)
872 dev_err(dev, "failed to add clock hardware provider (%d)\n",
873 ret);
874
875 return ret;
876 }
877
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-16 11:57 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 23:41 [PATCH 0/8] Add Tenstorrent Atlantis Clock/Reset Controller Anirudh Srinivasan
2026-01-15 23:42 ` [PATCH 1/8] dt-bindings: soc: tenstorrent: Add tenstorrent,atlantis-syscon Anirudh Srinivasan
2026-01-16 3:18 ` Rob Herring (Arm)
2026-01-16 4:03 ` Rob Herring
2026-01-16 21:48 ` Anirudh Srinivasan
2026-01-16 9:04 ` Krzysztof Kozlowski
2026-01-16 21:47 ` Anirudh Srinivasan
2026-01-15 23:42 ` [PATCH 2/8] soc: tenstorrent: Add header with Atlantis syscon register offsets Anirudh Srinivasan
2026-01-16 9:06 ` Krzysztof Kozlowski
2026-01-16 21:34 ` Anirudh Srinivasan
2026-01-15 23:42 ` [PATCH 3/8] clk: tenstorrent: Add Atlantis clock controller driver Anirudh Srinivasan
2026-01-16 2:05 ` Brian Masney
2026-01-16 9:00 ` Krzysztof Kozlowski
2026-01-16 20:32 ` Anirudh Srinivasan
2026-01-16 20:46 ` Anirudh Srinivasan
2026-01-16 11:56 ` kernel test robot [this message]
2026-01-15 23:42 ` [PATCH 4/8] dt-bindings: soc: tenstorrent: Add atlantis resets Anirudh Srinivasan
2026-01-16 9:02 ` Krzysztof Kozlowski
2026-01-16 9:03 ` Krzysztof Kozlowski
2026-01-16 21:25 ` Anirudh Srinivasan
2026-01-17 10:50 ` Krzysztof Kozlowski
2026-01-15 23:42 ` [PATCH 5/8] soc: tenstorrent: Add rcpu syscon reset register definitions Anirudh Srinivasan
2026-01-16 9:06 ` Krzysztof Kozlowski
2026-01-15 23:42 ` [PATCH 6/8] soc: tenstorrent: Add auxiliary device definitions for Atlantis Anirudh Srinivasan
2026-01-16 9:07 ` Krzysztof Kozlowski
2026-01-15 23:42 ` [PATCH 7/8] reset: tenstorrent: Add reset controller " Anirudh Srinivasan
2026-01-15 23:42 ` [PATCH 8/8] clk: tenstorrent: Add reset controller to Atlantis clock controller probe Anirudh Srinivasan
2026-01-16 9:08 ` Krzysztof Kozlowski
2026-01-16 21:30 ` Anirudh Srinivasan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202601161951.u4TyUnmn-lkp@intel.com \
--to=lkp@intel.com \
--cc=agross@kernel.org \
--cc=agross@oss.tenstorrent.com \
--cc=asrinivasan@oss.tenstorrent.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dfustini@oss.tenstorrent.com \
--cc=fustini@kernel.org \
--cc=jms@oss.tenstorrent.com \
--cc=joel@jms.id.au \
--cc=krzk@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mpe@kernel.org \
--cc=mpe@oss.tenstorrent.com \
--cc=mturquette@baylibre.com \
--cc=npiggin@oss.tenstorrent.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox