Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp675543pxb; Thu, 5 Nov 2020 09:59:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJze2axWgjzpR9QOE0UN3fOPqM/MWb/xzGyxpBQESZTzMNjIi1QvG1WWTHb/t0CrtVgyE/6d X-Received: by 2002:a17:906:1a07:: with SMTP id i7mr3379235ejf.473.1604599165359; Thu, 05 Nov 2020 09:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604599165; cv=none; d=google.com; s=arc-20160816; b=BX2RaPNpSfJvro8yL+p4SK2364FfskO+e5n5JI9oHO1lDrhF4RQyK6AxaS0hjJAGAC gWlDZYYReouFJbbg0rgbuv8/9AOwUEXX0TnCimNxjgtmZ6TvwfewNFcS/t2E8LKE+hr9 U0wKikzjk028fr9I0M4oMKCraOKfQiH5Z25HzKZ0UGH1Qywf1Uwe7LYubIj7uH7a60U6 ilbpxFT8S5ytKRydRCV9atQP85w6eW6hRIszRv5X4wiwb9f6NHRx709Kw10j+HPivhwC +fggEJYt4s/rogvtlSseFeECogzwm1a1CmNhp/+1+iYsTNnTNS9uAt4dXLhh7OZ/wyo6 eY4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=3JMdj1dQ3pa9VkB6Obb0Avm+02/f5nhMqmxgnQPks6w=; b=BXHuGinKhvMp50mWSOTGRn50crvemZll+lD/wznUX8+yQl1u+GFDdXNi47SMHZE0Dc 2hMb8SXSwGgqLuNCVT+dp3ZGrx33DmobD7KL0aJnzn59E5lLs23wik7LLMX6WaYzu+sH E29QZ+QCbWLBVgOwMtyb7Ns9pqbL8atNhtR6JDOrs/98Tp8M9wPWPokjmFB2ksjI6fgT PM8s5OTiAZTLOO47g8t6KEqPIjskbuuvb+rt7hgyCmwRyohLCI36+SdxvSYEjKJCWE2B wy4HdmyOvv1kTQ0okaXOmqssMN9IwWxszIRdYQGnJBENp55iZvD1NvwO3FiSwjr8Fypp 47Bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s8si1706220edh.227.2020.11.05.09.59.01; Thu, 05 Nov 2020 09:59:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727836AbgKER5k (ORCPT + 99 others); Thu, 5 Nov 2020 12:57:40 -0500 Received: from foss.arm.com ([217.140.110.172]:38970 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgKER5k (ORCPT ); Thu, 5 Nov 2020 12:57:40 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4144114BF; Thu, 5 Nov 2020 09:57:39 -0800 (PST) Received: from [192.168.2.22] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9142B3F719; Thu, 5 Nov 2020 09:57:37 -0800 (PST) Subject: Re: [PATCH v2 3/5] ARM: implement support for SMCCC TRNG entropy source To: kernel test robot , Will Deacon , Catalin Marinas , Ard Biesheuvel , Russell King Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Sudeep Holla , Mark Rutland , Mark Brown References: <20201105125656.25259-4-andre.przywara@arm.com> <202011060104.RRRtFPOR-lkp@intel.com> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Organization: ARM Ltd. Message-ID: <9b13b9c3-66a5-8dbb-868d-f826ae29a11a@arm.com> Date: Thu, 5 Nov 2020 17:56:32 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <202011060104.RRRtFPOR-lkp@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/2020 17:15, kernel test robot wrote: > Hi Andre, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v5.10-rc2 next-20201105] > [cannot apply to arm64/for-next/core kvmarm/next arm-perf/for-next/perf] > [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/Andre-Przywara/ARM-arm64-Add-SMCCC-TRNG-entropy-service/20201105-205934 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4ef8451b332662d004df269d4cdeb7d9f31419b5 > config: arm-randconfig-s031-20201105 (attached as .config) > compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.3-76-gf680124b-dirty > # https://github.com/0day-ci/linux/commit/1f0c18ec0b7aa0a67d7cdea2b1beb5e7b38c5f4b > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Andre-Przywara/ARM-arm64-Add-SMCCC-TRNG-entropy-service/20201105-205934 > git checkout 1f0c18ec0b7aa0a67d7cdea2b1beb5e7b38c5f4b > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > arm-linux-gnueabi-ld: drivers/char/random.o: in function `arch_get_random_seed_long': >>> arch/arm/include/asm/archrandom.h:48: undefined reference to `arm_smccc_1_1_get_conduit' >>> arm-linux-gnueabi-ld: arch/arm/include/asm/archrandom.h:48: undefined reference to `smccc_trng_available' Found it, we should use "depends on HAVE_ARM_SMCCC_DISCOVERY" instead of HAVE_ARM_SMCCC, because only the former guarantees the build of smccc.c. Will fix it in the next version, (given we keep this arch random part). Thanks, Andre > > vim +48 arch/arm/include/asm/archrandom.h > > 42 > 43 static inline bool __must_check arch_get_random_seed_long(unsigned long *v) > 44 { > 45 struct arm_smccc_res res; > 46 > 47 if (smccc_trng_available) { > > 48 arm_smccc_1_1_invoke(ARM_SMCCC_TRNG_RND32, 8 * sizeof(*v), &res); > 49 > 50 if (res.a0 != 0) > 51 return false; > 52 > 53 *v = res.a3; > 54 return true; > 55 } > 56 > 57 return false; > 58 } > 59 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >