Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4823592rwb; Tue, 20 Sep 2022 21:57:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4PPLfHfWrrnodGIyHArkOqM4PuNW502vURKcUn7mUJNA0bym+94kzHgUJ9WorS7Y926ad7 X-Received: by 2002:a62:1b8f:0:b0:54b:8114:e762 with SMTP id b137-20020a621b8f000000b0054b8114e762mr23613105pfb.7.1663736267023; Tue, 20 Sep 2022 21:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663736267; cv=none; d=google.com; s=arc-20160816; b=YWLvaZs9fQWHT0xYHPleNhTdYTLkkKm5hgrwKNNt6U5zKtxEnLL7i2fjojGqHTJVln pk562kG4T1wGh22wjeOKJY5dcV0BXyRglnvQDdw6YBw8cd5SjTWtn0x8tWbzUNkONj6L N6VU2nBkrSCmLUBr8K01LavChgffUkuroibVeLJ/1uOVty7rlPrUXnUXSopiwzRoFxzd yol9BZjDKCR/g0FSErOWWC3x5EXqXYa4A1Pb97pn+LH15CIAZH8BnRVbo9ATyBOVy84h MCzf4w9PznYoNKS4A6DbXo48A/yyIt1kfOE5LGBrJ38XAP37iYIil/mfHW8fPEVOZygs MCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jfbRXlDuKXHxq9BdkjnKt4aCEl9bPcKF6srrUT14qN4=; b=YWTaNK2tOPM1dHKyN2xqPnuOiH2CR907L0cmYSYWrn1qImXNaVFUUe7zWgmqc3LvFM kwIDXWZjaw5P9jZ4oog0iek9xFXWKDXpvIznjkUQ1K4ipWRZ27NOiiDNQ6mhzOiUrYfL ihuHpXobG0luHEMw/ZCP28NM2qNeLz0MfaGLRgs2PguhnV8UMqlGM/GmqPdnPMJOud5y X0N+4eQgX+4rt2DVFLzFi3rlYWuEDEoQIbnc/K9RfdWZHS73GW3XWZHNvGQYSgIxLJpN LyvdQgZ98adyHwaC66u1c1OykpVBh2a7I4A2v37+CIzpfUGjjNmPfcINLXf0yF+1e0BR wiLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Tlx0GdJ/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j70-20020a638049000000b0042a560b1cd2si1837281pgd.248.2022.09.20.21.57.22; Tue, 20 Sep 2022 21:57:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Tlx0GdJ/"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiIUEv1 (ORCPT + 99 others); Wed, 21 Sep 2022 00:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiIUEvJ (ORCPT ); Wed, 21 Sep 2022 00:51:09 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8179E7D7B5 for ; Tue, 20 Sep 2022 21:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663735866; x=1695271866; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UW395vIxglVQDSDO3HwtYk1twddnHI3slTRWZcVfxnY=; b=Tlx0GdJ/368jeMwn4yrTd8n0j3I7gPvZyb3IkOSQEQ0bgg+fNRkOHtxo GWL05JPLcauRsiHuA2ms2hri6sVNkIkvY+E/e6qI1Xl4FnmEuKl/FGtcD gvWwqdiPN+7VhcUjXMqxZb/s7hhv8srdiKJ5EZ28i9X5fk1GfSf+rnj2M 8OKtOqJEYsdiOzlVrwTPDQh0am6Azc5E9uu5gaVRv+pJjzbmQse3CM02I DzeQ7+EPtTbUE982owfjF/2ZIX3uEhaqLr92LHoloyNwUAAL9bKv1znLX U6IuBUYHPG+HFNDP7LrdvQYId+TeInEQ8AzpSgdL1uaTlx1PKawShoJX/ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="286968369" X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="286968369" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 21:51:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,332,1654585200"; d="scan'208";a="652379705" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 20 Sep 2022 21:51:04 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oarhP-0003FB-2A; Wed, 21 Sep 2022 04:51:03 +0000 Date: Wed, 21 Sep 2022 12:50:59 +0800 From: kernel test robot To: Peter Harliman Liem , atenart@kernel.org, herbert@gondor.apana.org.au Cc: kbuild-all@lists.01.org, linux-crypto@vger.kernel.org, linux-lgm-soc@maxlinear.com, Peter Harliman Liem Subject: Re: [PATCH 2/3] crypto: inside-secure - Add fw_little_endian option Message-ID: <202209211245.XnqzyM7N-lkp@intel.com> References: <29cf210c9adce088bc50248ad46255d883bd5edc.1663660578.git.pliem@maxlinear.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29cf210c9adce088bc50248ad46255d883bd5edc.1663660578.git.pliem@maxlinear.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Peter, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on herbert-cryptodev-2.6/master] [also build test WARNING on herbert-crypto-2.6/master linus/master v6.0-rc6 next-20220920] [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/Peter-Harliman-Liem/crypto-inside-secure-Expand-soc-data-structure/20220920-170235 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: parisc-randconfig-s051-20220921 (https://download.01.org/0day-ci/archive/20220921/202209211245.XnqzyM7N-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/637d1b2810d1e9da47b6a637f9cea7c5bb4bf765 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Peter-Harliman-Liem/crypto-inside-secure-Expand-soc-data-structure/20220920-170235 git checkout 637d1b2810d1e9da47b6a637f9cea7c5bb4bf765 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash drivers/crypto/inside-secure/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/crypto/inside-secure/safexcel.c:326:31: sparse: sparse: cast to restricted __le32 >> drivers/crypto/inside-secure/safexcel.c:326:31: sparse: sparse: cast to restricted __le32 >> drivers/crypto/inside-secure/safexcel.c:326:31: sparse: sparse: cast to restricted __le32 >> drivers/crypto/inside-secure/safexcel.c:326:31: sparse: sparse: cast to restricted __le32 >> drivers/crypto/inside-secure/safexcel.c:326:31: sparse: sparse: cast to restricted __le32 >> drivers/crypto/inside-secure/safexcel.c:326:31: sparse: sparse: cast to restricted __le32 drivers/crypto/inside-secure/safexcel.c:328:31: sparse: sparse: cast to restricted __be32 vim +326 drivers/crypto/inside-secure/safexcel.c 315 316 static int eip197_write_firmware(struct safexcel_crypto_priv *priv, 317 const struct firmware *fw) 318 { 319 const u32 *data = (const u32 *)fw->data; 320 u32 val; 321 int i; 322 323 /* Write the firmware */ 324 for (i = 0; i < fw->size / sizeof(u32); i++) { 325 if (priv->data->fw_little_endian) > 326 val = le32_to_cpu(data[i]); 327 else 328 val = be32_to_cpu(data[i]); 329 330 writel(val, 331 priv->base + EIP197_CLASSIFICATION_RAMS + 332 i * sizeof(*data)); 333 } 334 335 /* Exclude final 2 NOPs from size */ 336 return i - EIP197_FW_TERMINAL_NOPS; 337 } 338 -- 0-DAY CI Kernel Test Service https://01.org/lkp