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 D5CD5C6FA8E for ; Sun, 26 Feb 2023 01:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjBZBMv (ORCPT ); Sat, 25 Feb 2023 20:12:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbjBZBMt (ORCPT ); Sat, 25 Feb 2023 20:12:49 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C5DCC671 for ; Sat, 25 Feb 2023 17:12:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677373967; x=1708909967; h=date:from:to:cc:subject:message-id:mime-version; bh=FV85YiK1AtCQ/6RiIIY7dv0TrsnxjjA4gwHj+2HXxIA=; b=NugDPcbeY6a/BmeC/iQ225yxWgWplc5GVWafxnFGP/v4OXO/0gmHk54+ hesIkjLsIx2vM5rdRgECLv5HDTzHvSVSFosVtTzmRDtTRuUCqAHhog/Q0 3z8uJIBcy6YYVN8b0u+UqrVdUE+36V/9ZFN/7fxby3hKedUouw+U3vE2u XYyDwLxARtsnzOARGXgwnj8BXd0ojeXN06Lbr7WqBPQs71xI37wcNfA3J 7YR4DctrjG98ymkrvBhlbA3A6OUnKNUiNn9TahK1u9vDkY1eYZvrhgB09 qYPQZaU2nWbgiIcirxWAsjFb/qfSyyKubFa+rXu07gV5d4WtoviKkofQZ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10632"; a="361225912" X-IronPort-AV: E=Sophos;i="5.97,328,1669104000"; d="scan'208";a="361225912" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2023 17:12:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10632"; a="673305421" X-IronPort-AV: E=Sophos;i="5.97,328,1669104000"; d="scan'208";a="673305421" Received: from lkp-server01.sh.intel.com (HELO 3895f5c55ead) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 25 Feb 2023 17:12:46 -0800 Received: from kbuild by 3895f5c55ead with local (Exim 4.96) (envelope-from ) id 1pW5an-0003U7-0r; Sun, 26 Feb 2023 01:12:45 +0000 Date: Sun, 26 Feb 2023 09:12:20 +0800 From: kernel test robot To: Suman Anna Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Bjorn Andersson Subject: drivers/remoteproc/ti_k3_dsp_remoteproc.c:432:17: sparse: sparse: cast removes address space '__iomem' of expression Message-ID: <202302260940.ffLLk40s-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1ec35eadc3b448c91a6b763371a7073444e95f9d commit: b8431920391d36c273f63a29eab0dfc7e884dd17 remoteproc: k3-dsp: Add support for IPC-only mode for all K3 DSPs date: 12 months ago config: arm64-randconfig-s051-20230226 (https://download.01.org/0day-ci/archive/20230226/202302260940.ffLLk40s-lkp@intel.com/config) compiler: aarch64-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b8431920391d36c273f63a29eab0dfc7e884dd17 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b8431920391d36c273f63a29eab0dfc7e884dd17 # 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=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.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 where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302260940.ffLLk40s-lkp@intel.com/ 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://github.com/intel/lkp-tests