mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Matt Redfearn <matt.redfearn@mips.com>
Cc: kbuild-all@01.org, James Hogan <jhogan@kernel.org>,
	Ralf Baechle <ralf@linux-mips.org>,
	linux-mips@linux-mips.org, Paul Burton <paul.burton@mips.com>,
	Ed Blake <ed.blake@sondrel.com>,
	Matt Redfearn <matt.redfearn@mips.com>,
	Dengcheng Zhu <dengcheng.zhu@mips.com>,
	linux-kernel@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>
Subject: Re: [PATCH] MIPS: pm-cps: Block system suspend when a JTAG probe is present
Date: Sun, 18 Feb 2018 11:23:30 +0800	[thread overview]
Message-ID: <201802181111.dE4ABCpb%fengguang.wu@intel.com> (raw)
In-Reply-To: <1518706759-9890-1-git-send-email-matt.redfearn@mips.com>

[-- Attachment #1: Type: text/plain, Size: 2634 bytes --]

Hi Matt,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.16-rc1 next-20180216]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Matt-Redfearn/MIPS-pm-cps-Block-system-suspend-when-a-JTAG-probe-is-present/20180218-082248
config: mips-64r6el_defconfig (attached as .config)
compiler: mips64el-linux-gnuabi64-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   arch/mips//kernel/pm-cps.c: In function 'cps_pm_power_notifier':
>> arch/mips//kernel/pm-cps.c:693:14: error: 'CPC_Cx_STAT_CONF_EJTAG_PROBE_MSK' undeclared (first use in this function); did you mean 'CPC_Cx_STAT_CONF_EJTAG_PROBE'?
      if (stat & CPC_Cx_STAT_CONF_EJTAG_PROBE_MSK) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 CPC_Cx_STAT_CONF_EJTAG_PROBE
   arch/mips//kernel/pm-cps.c:693:14: note: each undeclared identifier is reported only once for each function it appears in

vim +693 arch/mips//kernel/pm-cps.c

   673	
   674	#if defined(CONFIG_PM_SLEEP)
   675	static int cps_pm_power_notifier(struct notifier_block *this,
   676					 unsigned long event, void *ptr)
   677	{
   678		unsigned int stat;
   679	
   680		switch (event) {
   681		case PM_SUSPEND_PREPARE:
   682			stat = read_cpc_cl_stat_conf();
   683			/*
   684			 * If we're attempting to suspend the system and power down all
   685			 * of the cores, the JTAG detect bit indicates that the CPC will
   686			 * instead put the cores into clock-off state. In this state
   687			 * a connected debugger can cause the CPU to attempt
   688			 * interactions with the powered down system. At best this will
   689			 * fail. At worst, it can hang the NoC, requiring a hard reset.
   690			 * To avoid this, just block system suspend if a JTAG probe
   691			 * is detected.
   692			 */
 > 693			if (stat & CPC_Cx_STAT_CONF_EJTAG_PROBE_MSK) {
   694				pr_warn("JTAG probe is connected - abort suspend\n");
   695				return NOTIFY_BAD;
   696			}
   697			return NOTIFY_DONE;
   698		default:
   699			return NOTIFY_DONE;
   700		}
   701	}
   702	#endif /* CONFIG_PM_SLEEP */
   703	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 18825 bytes --]

  reply	other threads:[~2018-02-18  3:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 14:59 Matt Redfearn
2018-02-18  3:23 ` kbuild test robot [this message]
2018-02-19 10:11 ` [PATCH v2] " Matt Redfearn

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=201802181111.dE4ABCpb%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=dengcheng.zhu@mips.com \
    --cc=ed.blake@sondrel.com \
    --cc=jhogan@kernel.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=mark.rutland@arm.com \
    --cc=matt.redfearn@mips.com \
    --cc=paul.burton@mips.com \
    --cc=ralf@linux-mips.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

all inboxes | Powered by JetHome®