public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kostap@marvell.com, linux-pm@vger.kernel.org,
	linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, Julia.Lawall@inria.fr, amitk@kernel.org,
	daniel.lezcano@linaro.org, rui.zhang@intel.com,
	miquel.raynal@bootlin.com, sboyd@kernel.org,
	mturquette@baylibre.com
Subject: Re: [PATCH v3 1/2] thermal: armada: ap806: use firmware SiP services for thermal operations
Date: Fri, 12 Feb 2021 00:47:51 +0800	[thread overview]
Message-ID: <202102120023.qIHkOZ0P-lkp@intel.com> (raw)
In-Reply-To: <20210211140240.23778-2-kostap@marvell.com>

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

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on clk/clk-next]
[also build test WARNING on linus/master v5.11-rc7 next-20210211]
[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]

url:    https://github.com/0day-ci/linux/commits/kostap-marvell-com/Enable-usage-of-Marvell-FW-SIP-services/20210211-220917
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: i386-randconfig-s002-20210211 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-215-g0fb77bb6-dirty
        # https://github.com/0day-ci/linux/commit/f3d1a200c085eb2518257982a822f06711a7ce95
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review kostap-marvell-com/Enable-usage-of-Marvell-FW-SIP-services/20210211-220917
        git checkout f3d1a200c085eb2518257982a822f06711a7ce95
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


"sparse warnings: (new ones prefixed by >>)"
>> drivers/thermal/armada_thermal.c:295:52: sparse: sparse: Using plain integer as NULL pointer
   drivers/thermal/armada_thermal.c:644:57: sparse: sparse: Using plain integer as NULL pointer

vim +295 drivers/thermal/armada_thermal.c

   279	
   280	static void armada_ap806_init(struct platform_device *pdev,
   281				      struct armada_thermal_priv *priv)
   282	{
   283		struct armada_thermal_data *data = priv->data;
   284		u32 reg;
   285		int ret;
   286	
   287		/*
   288		 * The ap806 thermal sensor registers are part of DFX which is secured
   289		 * by latest firmware, therefore accessing relevant registers from
   290		 * not-secure world will not be possible. In that case Arm Trusted
   291		 * Firmware exposes thermal operations as firmware run-time service. If
   292		 * SMC initialization succeeds, perform other thermal operations using
   293		 * SMC, otherwise (old fw case) fallback to regmap handling.
   294		 */
 > 295		ret = thermal_smc(MV_SIP_DFX_THERMAL_INIT, 0x0, 0, 0);
   296		if (ret == SMCCC_RET_SUCCESS) {
   297			dev_info(&pdev->dev, "firmware support\n");
   298			THERMAL_SUPPORTED_IN_FIRMWARE(priv) = true;
   299			return;
   300		}
   301	
   302		regmap_read(priv->syscon, data->syscon_control0_off, &reg);
   303		reg &= ~CONTROL0_TSEN_RESET;
   304		reg |= CONTROL0_TSEN_START | CONTROL0_TSEN_ENABLE;
   305	
   306		/* Sample every ~2ms */
   307		reg |= CONTROL0_TSEN_OSR_MAX << CONTROL0_TSEN_OSR_SHIFT;
   308	
   309		/* Enable average (2 samples by default) */
   310		reg &= ~CONTROL0_TSEN_AVG_BYPASS;
   311	
   312		regmap_write(priv->syscon, data->syscon_control0_off, reg);
   313	}
   314	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

  reply	other threads:[~2021-02-11 17:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11 14:02 [PATCH v3 0/2] Enable usage of Marvell FW SIP services kostap
2021-02-11 14:02 ` [PATCH v3 1/2] thermal: armada: ap806: use firmware SiP services for thermal operations kostap
2021-02-11 16:47   ` kernel test robot [this message]
2021-02-11 18:34   ` kernel test robot
2021-02-11 22:20   ` kernel test robot
2021-02-11 14:02 ` [PATCH v3 2/2] clk: mvebu: use firmware SiP service for accessing dfx register set kostap

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=202102120023.qIHkOZ0P-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Julia.Lawall@inria.fr \
    --cc=amitk@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kostap@marvell.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=mturquette@baylibre.com \
    --cc=rui.zhang@intel.com \
    --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