From: kernel test robot <lkp@intel.com>
To: Ruidong Tian <tianruidong@linux.alibaba.com>,
catalin.marinas@arm.com, will@kernel.org, lpieralisi@kernel.org,
guohanjun@huawei.com, sudeep.holla@arm.com,
xueshuai@linux.alibaba.com, baolin.wang@linux.alibaba.com,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, rafael@kernel.org,
lenb@kernel.org, tony.luck@intel.com, bp@alien8.de,
yazen.ghannam@amd.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
tianruidong@linux.alibaba.com
Subject: Re: [PATCH v3 3/5] RAS/AEST: Introduce AEST inject interface to test AEST driver
Date: Fri, 17 Jan 2025 15:07:58 +0800 [thread overview]
Message-ID: <202501171406.o7oztilo-lkp@intel.com> (raw)
In-Reply-To: <20250115084228.107573-4-tianruidong@linux.alibaba.com>
Hi Ruidong,
kernel test robot noticed the following build errors:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge arm64/for-next/core ras/edac-for-next linus/master tip/smp/core v6.13-rc7 next-20250116]
[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-RAS-AEST-Initial-AEST-driver/20250115-164601
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20250115084228.107573-4-tianruidong%40linux.alibaba.com
patch subject: [PATCH v3 3/5] RAS/AEST: Introduce AEST inject interface to test AEST driver
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250117/202501171406.o7oztilo-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250117/202501171406.o7oztilo-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/202501171406.o7oztilo-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/ras/aest/aest-core.c:280:13: error: static declaration of 'aest_proc_record' follows non-static declaration
280 | static void aest_proc_record(struct aest_record *record, void *data)
| ^
drivers/ras/aest/aest.h:338:6: note: previous declaration is here
338 | void aest_proc_record(struct aest_record *record, void *data);
| ^
1 error generated.
vim +/aest_proc_record +280 drivers/ras/aest/aest-core.c
b6c745ae1213b2 Ruidong Tian 2025-01-15 279
b6c745ae1213b2 Ruidong Tian 2025-01-15 @280 static void aest_proc_record(struct aest_record *record, void *data)
b6c745ae1213b2 Ruidong Tian 2025-01-15 281 {
b6c745ae1213b2 Ruidong Tian 2025-01-15 282 struct ras_ext_regs regs = {0};
b6c745ae1213b2 Ruidong Tian 2025-01-15 283 int *count = data;
b6c745ae1213b2 Ruidong Tian 2025-01-15 284
b6c745ae1213b2 Ruidong Tian 2025-01-15 285 regs.err_status = record_read(record, ERXSTATUS);
b6c745ae1213b2 Ruidong Tian 2025-01-15 286 if (!(regs.err_status & ERR_STATUS_V))
b6c745ae1213b2 Ruidong Tian 2025-01-15 287 return;
b6c745ae1213b2 Ruidong Tian 2025-01-15 288
b6c745ae1213b2 Ruidong Tian 2025-01-15 289 (*count)++;
b6c745ae1213b2 Ruidong Tian 2025-01-15 290
b6c745ae1213b2 Ruidong Tian 2025-01-15 291 if (regs.err_status & ERR_STATUS_AV)
b6c745ae1213b2 Ruidong Tian 2025-01-15 292 regs.err_addr = record_read(record, ERXADDR);
b6c745ae1213b2 Ruidong Tian 2025-01-15 293
b6c745ae1213b2 Ruidong Tian 2025-01-15 294 regs.err_fr = record->fr;
b6c745ae1213b2 Ruidong Tian 2025-01-15 295 regs.err_ctlr = record_read(record, ERXCTLR);
b6c745ae1213b2 Ruidong Tian 2025-01-15 296
b6c745ae1213b2 Ruidong Tian 2025-01-15 297 if (regs.err_status & ERR_STATUS_MV) {
b6c745ae1213b2 Ruidong Tian 2025-01-15 298 regs.err_misc[0] = record_read(record, ERXMISC0);
b6c745ae1213b2 Ruidong Tian 2025-01-15 299 regs.err_misc[1] = record_read(record, ERXMISC1);
b6c745ae1213b2 Ruidong Tian 2025-01-15 300 if (record->node->version >= ID_AA64PFR0_EL1_RAS_V1P1) {
b6c745ae1213b2 Ruidong Tian 2025-01-15 301 regs.err_misc[2] = record_read(record, ERXMISC2);
b6c745ae1213b2 Ruidong Tian 2025-01-15 302 regs.err_misc[3] = record_read(record, ERXMISC3);
b6c745ae1213b2 Ruidong Tian 2025-01-15 303 }
b6c745ae1213b2 Ruidong Tian 2025-01-15 304
b6c745ae1213b2 Ruidong Tian 2025-01-15 305 if (record->node->info->interface_hdr->flags &
b6c745ae1213b2 Ruidong Tian 2025-01-15 306 AEST_XFACE_FLAG_CLEAR_MISC) {
b6c745ae1213b2 Ruidong Tian 2025-01-15 307 record_write(record, ERXMISC0, 0);
b6c745ae1213b2 Ruidong Tian 2025-01-15 308 record_write(record, ERXMISC1, 0);
b6c745ae1213b2 Ruidong Tian 2025-01-15 309 if (record->node->version >= ID_AA64PFR0_EL1_RAS_V1P1) {
b6c745ae1213b2 Ruidong Tian 2025-01-15 310 record_write(record, ERXMISC2, 0);
b6c745ae1213b2 Ruidong Tian 2025-01-15 311 record_write(record, ERXMISC3, 0);
b6c745ae1213b2 Ruidong Tian 2025-01-15 312 }
b6c745ae1213b2 Ruidong Tian 2025-01-15 313 /* ce count is 0 if record do not support ce */
b6c745ae1213b2 Ruidong Tian 2025-01-15 314 } else if (record->ce.count > 0)
b6c745ae1213b2 Ruidong Tian 2025-01-15 315 record_write(record, ERXMISC0, record->ce.reg_val);
b6c745ae1213b2 Ruidong Tian 2025-01-15 316 }
b6c745ae1213b2 Ruidong Tian 2025-01-15 317
b6c745ae1213b2 Ruidong Tian 2025-01-15 318 /* panic if unrecoverable and uncontainable error encountered */
b6c745ae1213b2 Ruidong Tian 2025-01-15 319 if ((regs.err_status & ERR_STATUS_UE) &&
b6c745ae1213b2 Ruidong Tian 2025-01-15 320 (regs.err_status & ERR_STATUS_UET) > ERR_STATUS_UET_UEU)
b6c745ae1213b2 Ruidong Tian 2025-01-15 321 aest_panic(record, ®s, "AEST: unrecoverable error encountered");
b6c745ae1213b2 Ruidong Tian 2025-01-15 322
b6c745ae1213b2 Ruidong Tian 2025-01-15 323 aest_log(record, ®s);
b6c745ae1213b2 Ruidong Tian 2025-01-15 324
b6c745ae1213b2 Ruidong Tian 2025-01-15 325 /* Write-one-to-clear the bits we've seen */
b6c745ae1213b2 Ruidong Tian 2025-01-15 326 regs.err_status &= ERR_STATUS_W1TC;
b6c745ae1213b2 Ruidong Tian 2025-01-15 327
b6c745ae1213b2 Ruidong Tian 2025-01-15 328 /* Multi bit filed need to write all-ones to clear. */
b6c745ae1213b2 Ruidong Tian 2025-01-15 329 if (regs.err_status & ERR_STATUS_CE)
b6c745ae1213b2 Ruidong Tian 2025-01-15 330 regs.err_status |= ERR_STATUS_CE;
b6c745ae1213b2 Ruidong Tian 2025-01-15 331
b6c745ae1213b2 Ruidong Tian 2025-01-15 332 /* Multi bit filed need to write all-ones to clear. */
b6c745ae1213b2 Ruidong Tian 2025-01-15 333 if (regs.err_status & ERR_STATUS_UET)
b6c745ae1213b2 Ruidong Tian 2025-01-15 334 regs.err_status |= ERR_STATUS_UET;
b6c745ae1213b2 Ruidong Tian 2025-01-15 335
b6c745ae1213b2 Ruidong Tian 2025-01-15 336 record_write(record, ERXSTATUS, regs.err_status);
b6c745ae1213b2 Ruidong Tian 2025-01-15 337 }
b6c745ae1213b2 Ruidong Tian 2025-01-15 338
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-01-17 7:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-15 8:42 [PATCH v3 0/5] ARM Error Source Table V2 Support Ruidong Tian
2025-01-15 8:42 ` [PATCH v3 1/5] ACPI/RAS/AEST: Initial AEST driver Ruidong Tian
2025-01-17 10:50 ` Tomohiro Misono (Fujitsu)
2025-02-06 8:32 ` Ruidong Tian
2025-02-14 9:14 ` Tomohiro Misono (Fujitsu)
2025-02-19 20:49 ` Borislav Petkov
2025-01-15 8:42 ` [PATCH v3 2/5] RAS/AEST: Introduce AEST driver sysfs interface Ruidong Tian
2025-01-18 2:37 ` kernel test robot
2025-02-19 20:55 ` Borislav Petkov
2025-01-15 8:42 ` [PATCH v3 3/5] RAS/AEST: Introduce AEST inject interface to test AEST driver Ruidong Tian
2025-01-17 7:07 ` kernel test robot [this message]
2025-01-15 8:42 ` [PATCH v3 4/5] RAS/ATL: Unified ATL interface for ARM64 and AMD Ruidong Tian
2025-01-17 6:14 ` kernel test robot
2025-02-19 21:00 ` Borislav Petkov
2025-01-15 8:42 ` [PATCH v3 5/5] trace, ras: add ARM RAS extension trace event Ruidong Tian
2025-02-19 20:30 ` [PATCH v3 0/5] ARM Error Source Table V2 Support Borislav Petkov
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=202501171406.o7oztilo-lkp@intel.com \
--to=lkp@intel.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=guohanjun@huawei.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lpieralisi@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rafael@kernel.org \
--cc=sudeep.holla@arm.com \
--cc=tianruidong@linux.alibaba.com \
--cc=tony.luck@intel.com \
--cc=will@kernel.org \
--cc=xueshuai@linux.alibaba.com \
--cc=yazen.ghannam@amd.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.