From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2B6AC433EF for ; Sun, 13 Mar 2022 20:01:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235529AbiCMUCf (ORCPT ); Sun, 13 Mar 2022 16:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235414AbiCMUCd (ORCPT ); Sun, 13 Mar 2022 16:02:33 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D28D28B6FF for ; Sun, 13 Mar 2022 13:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647201685; x=1678737685; h=date:from:to:cc:subject:message-id:mime-version; bh=cF0u47VI4xpqVlJhCKEkwDcXX7ymSy1moqEf3rNW2U0=; b=alFuW5mcaJfaMbRfjVGyFDO2WW+AwBsf6X0v04D9ARufM6DGgAMHhOLJ BF4TKfD3xfFWlll3OTclgTyysWvxabTLUg3zWx/FrPGFifajZuLEoDTj8 s90iHMXitvBkRew4MFbAdeQRjzKVvW7U0xCcX1357JUZVhcohwQpBtnGr IO3kZ3lgqhC5JMciZwC0fEwIthNo+T3Yjoc0ztCoGhHYiIt/T6dJRxWey Bc6ywO6A0Q/vbTUp8nN93Mac6ZEQZtVUbUPwSbVS9VQbnoEUO+EJnZxDO Nqi6WcmyV5OVsZELFGoPRO/JOSf2fFDGjRFd5R4DEBSTsIoUsb17ZMGeB Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10285"; a="280651362" X-IronPort-AV: E=Sophos;i="5.90,179,1643702400"; d="scan'208";a="280651362" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2022 13:01:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,179,1643702400"; d="scan'208";a="497372310" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 13 Mar 2022 13:01:06 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nTUOn-0009Ex-V6; Sun, 13 Mar 2022 20:01:05 +0000 Date: Mon, 14 Mar 2022 04:00:56 +0800 From: kernel test robot To: Suman Anna Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Bjorn Andersson Subject: [remoteproc:rproc-next 12/16] drivers/remoteproc/ti_k3_dsp_remoteproc.c:432:17: sparse: sparse: cast removes address space '__iomem' of expression Message-ID: <202203140359.gndeqxEk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git rproc-next head: 59983c74fc42eb2448df693113bf725abbda05f9 commit: b8431920391d36c273f63a29eab0dfc7e884dd17 [12/16] remoteproc: k3-dsp: Add support for IPC-only mode for all K3 DSPs config: arm64-randconfig-s032-20220313 (https://download.01.org/0day-ci/archive/20220314/202203140359.gndeqxEk-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.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-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git/commit/?id=b8431920391d36c273f63a29eab0dfc7e884dd17 git remote add remoteproc git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git git fetch --no-tags remoteproc rproc-next git checkout b8431920391d36c273f63a29eab0dfc7e884dd17 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/remoteproc/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/remoteproc/ti_k3_dsp_remoteproc.c:432:17: sparse: sparse: cast removes address space '__iomem' of expression vim +/__iomem +432 drivers/remoteproc/ti_k3_dsp_remoteproc.c 402 403 /* 404 * This function implements the .get_loaded_rsc_table() callback and is used 405 * to provide the resource table for a booted DSP in IPC-only mode. The K3 DSP 406 * firmwares follow a design-by-contract approach and are expected to have the 407 * resource table at the base of the DDR region reserved for firmware usage. 408 * This provides flexibility for the remote processor to be booted by different 409 * bootloaders that may or may not have the ability to publish the resource table 410 * address and size through a DT property. This callback is invoked only in 411 * IPC-only mode. 412 */ 413 static struct resource_table *k3_dsp_get_loaded_rsc_table(struct rproc *rproc, 414 size_t *rsc_table_sz) 415 { 416 struct k3_dsp_rproc *kproc = rproc->priv; 417 struct device *dev = kproc->dev; 418 419 if (!kproc->rmem[0].cpu_addr) { 420 dev_err(dev, "memory-region #1 does not exist, loaded rsc table can't be found"); 421 return ERR_PTR(-ENOMEM); 422 } 423 424 /* 425 * NOTE: The resource table size is currently hard-coded to a maximum 426 * of 256 bytes. The most common resource table usage for K3 firmwares 427 * is to only have the vdev resource entry and an optional trace entry. 428 * The exact size could be computed based on resource table address, but 429 * the hard-coded value suffices to support the IPC-only mode. 430 */ 431 *rsc_table_sz = 256; > 432 return (struct resource_table *)kproc->rmem[0].cpu_addr; 433 } 434 --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org