[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202601280228.CbJgYMRG-lkp@intel.com>
Date: Wed, 28 Jan 2026 02:56:12 +0800
From: kernel test robot <lkp@...el.com>
To: Ruidong Tian <tianruidong@...ux.alibaba.com>, catalin.marinas@....com,
will@...nel.org, lpieralisi@...nel.org, guohanjun@...wei.com,
sudeep.holla@....com, rafael@...nel.org, robin.murphy@....com,
mark.rutland@....com, tony.luck@...el.com, bp@...en8.de,
tglx@...utronix.de
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev, lenb@...nel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-acpi@...r.kernel.org, linux-perf-users@...r.kernel.org,
linux-edac@...r.kernel.org, mchehab@...nel.org,
xueshuai@...ux.alibaba.com, zhuo.song@...ux.alibaba.com,
oliver.yang@...ux.alibaba.com,
Ruidong Tian <tianruidong@...ux.alibaba.com>
Subject: Re: [PATCH v6 15/16] ras: AEST: support vendor node CMN700
Hi Ruidong,
kernel test robot noticed the following build warnings:
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on rafael-pm/linux-next rafael-pm/bleeding-edge linus/master v6.19-rc7 next-20260126]
[cannot apply to tip/smp/core]
[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/Ruidong-Tian/ACPI-AEST-Parse-the-AEST-table/20260122-180219
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link: https://lore.kernel.org/r/20260122094656.73399-16-tianruidong%40linux.alibaba.com
patch subject: [PATCH v6 15/16] ras: AEST: support vendor node CMN700
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260128/202601280228.CbJgYMRG-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260128/202601280228.CbJgYMRG-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601280228.CbJgYMRG-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/ras/aest/aest-cmn.c:209:19: warning: variable 'hnd_base' set but not used [-Wunused-but-set-variable]
209 | u64 errgsr_addr, hnd_base;
| ^
1 warning generated.
vim +/hnd_base +209 drivers/ras/aest/aest-cmn.c
203
204 static int aest_cmn_reorgnize_node(struct aest_device *adev,
205 struct acpi_aest_node *anode, u64 base)
206 {
207 struct aest_node *cmn_node;
208 u64 hnd_offset, cmn_node_offset, reg, logic_id, type, node_id;
> 209 u64 errgsr_addr, hnd_base;
210 struct aest_record *record;
211 int ret, node_index;
212 struct cmn_vendor_data *vendor_data;
213
214 if (anode->interface_hdr->type !=
215 ACPI_AEST_NODE_SINGLE_RECORD_MEMORY_MAPPED) {
216 aest_dev_err(adev, "CMN just use single memory mapping\n");
217 return -ENODEV;
218 }
219
220 hnd_offset = *((u64 *)anode->vendor->vendor_specific_data);
221 cmn_node_offset = *((u64 *)&anode->vendor->vendor_specific_data[8]);
222
223 reg = readq_relaxed((void *)base + cmn_node_offset + CMN_NODE_INFO);
224
225 logic_id = FIELD_GET(CMN_NI_LOGICAL_ID, reg);
226 type = FIELD_GET(CMN_NI_NODE_TYPE, reg);
227 node_id = FIELD_GET(CMN_NI_NODE_ID, reg);
228
229 hnd_base = base + hnd_offset;
230 node_index = cmn_config->node_id_map[type];
231 errgsr_addr = base + cmn_config->errgsr_offset(hnd_offset, node_index);
232
233 // node not register, create it
234 cmn_node = &adev->nodes[node_index];
235 if (!cmn_node->errgsr) {
236 ret = aest_cmn_init_node(adev, cmn_node, anode, type,
237 errgsr_addr);
238 if (ret)
239 return -ENOMEM;
240 }
241
242 aest_dev_dbg(adev, "node type %llx, id %llx, offset %llx\n", type,
243 logic_id, cmn_node_offset);
244
245 if (!test_bit(0, anode->record_implemented))
246 clear_bit(logic_id, cmn_node->record_implemented);
247
248 if (!test_bit(0, anode->status_reporting))
249 clear_bit(logic_id, cmn_node->status_reporting);
250
251 record = &cmn_node->records[logic_id];
252 record->name =
253 devm_kasprintf(adev->dev, GFP_KERNEL, "record%lld", logic_id);
254 if (!record->name)
255 return -ENOMEM;
256 record->regs_base = devm_ioremap(
257 adev->dev, (resource_size_t)anode->interface_hdr->address,
258 sizeof(struct ras_ext_regs));
259 if (!record->regs_base)
260 return -ENOMEM;
261 record->addressing_mode = test_bit(0, anode->addressing_mode);
262 record->node = cmn_node;
263 record->index = logic_id;
264 record->access = &aest_access[anode->interface_hdr->type];
265
266 vendor_data = devm_kzalloc(adev->dev, sizeof(struct cmn_vendor_data),
267 GFP_KERNEL);
268 vendor_data->node_type = type;
269 vendor_data->node_id = node_id;
270 vendor_data->logic_id = logic_id;
271
272 record->vendor_data = vendor_data;
273 record->vendor_data_size = sizeof(struct cmn_vendor_data);
274
275 aest_record_dbg(record, "base %llx\n", anode->interface_hdr->address);
276
277 return 0;
278 }
279
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists