[PATCH] arm64: smccc: Add trace events to SMC calls.

kernel test robot lkp at intel.com
Sat Mar 4 09:38:29 PST 2023


Hi Rakesh,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/timers/core]
[also build test ERROR on arm/for-next arm/fixes arm64/for-next/core kvmarm/next soc/for-next xilinx-xlnx/master linus/master v6.2 next-20230303]
[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/Rakesh-Babu-Saladi/arm64-smccc-Add-trace-events-to-SMC-calls/20230304-210103
patch link:    https://lore.kernel.org/r/20230304125850.32687-1-rsaladi2%40marvell.com
patch subject: [PATCH] arm64: smccc: Add trace events to SMC calls.
config: parisc-buildonly-randconfig-r003-20230302 (https://download.01.org/0day-ci/archive/20230305/202303050132.lgJCOelW-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/ebdc6e981b26c56978d65ad39d650fd2a7862d1a
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Rakesh-Babu-Saladi/arm64-smccc-Add-trace-events-to-SMC-calls/20230304-210103
        git checkout ebdc6e981b26c56978d65ad39d650fd2a7862d1a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303050132.lgJCOelW-lkp@intel.com/

All errors (new ones prefixed by >>):

   hppa-linux-ld: drivers/usb/host/ohci-at91.o: in function `ohci_at91_port_suspend.isra.0':
>> drivers/usb/host/ohci-at91.c:332: undefined reference to `arm_smccc_smc'
   hppa-linux-ld: drivers/memory/mtk-smi.o: in function `mtk_smi_larb_config_port_gen2_general':
   drivers/memory/mtk-smi.c:269: undefined reference to `arm_smccc_smc'
   hppa-linux-ld: drivers/firmware/qcom_scm-legacy.o: in function `scm_legacy_call':
   drivers/firmware/qcom_scm-legacy.c:114: undefined reference to `arm_smccc_smc'
   hppa-linux-ld: drivers/firmware/qcom_scm-legacy.o: in function `scm_legacy_call_atomic':
   drivers/firmware/qcom_scm-legacy.c:234: undefined reference to `arm_smccc_smc'


vim +332 drivers/usb/host/ohci-at91.c

aa6e52a35d388e Thomas Petazzoni 2011-07-13  322  
1e073e3ed9ff9e Clément Léger    2022-06-07  323  static int ohci_at91_port_suspend(struct ohci_at91_priv *ohci_at91, u8 set)
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  324  {
1e073e3ed9ff9e Clément Léger    2022-06-07  325  	struct regmap *regmap = ohci_at91->sfr_regmap;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  326  	u32 regval;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  327  	int ret;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  328  
1e073e3ed9ff9e Clément Léger    2022-06-07  329  	if (ohci_at91->suspend_smc_id) {
1e073e3ed9ff9e Clément Léger    2022-06-07  330  		struct arm_smccc_res res;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  331  
1e073e3ed9ff9e Clément Léger    2022-06-07 @332  		arm_smccc_smc(ohci_at91->suspend_smc_id, set, 0, 0, 0, 0, 0, 0, &res);
1e073e3ed9ff9e Clément Léger    2022-06-07  333  		if (res.a0)
1e073e3ed9ff9e Clément Léger    2022-06-07  334  			return -EINVAL;
1e073e3ed9ff9e Clément Léger    2022-06-07  335  	} else if (regmap) {
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  336  		ret = regmap_read(regmap, AT91_SFR_OHCIICR, &regval);
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  337  		if (ret)
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  338  			return ret;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  339  
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  340  		if (set)
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  341  			regval |= AT91_OHCIICR_USB_SUSPEND;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  342  		else
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  343  			regval &= ~AT91_OHCIICR_USB_SUSPEND;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  344  
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  345  		regmap_write(regmap, AT91_SFR_OHCIICR, regval);
1e073e3ed9ff9e Clément Léger    2022-06-07  346  	}
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  347  
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  348  	return 0;
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  349  }
2e2aa1bc7eff90 Wenyou Yang      2016-08-23  350  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



More information about the linux-arm-kernel mailing list