From: kernel test robot <lkp@intel.com>
To: "Iuliana Prodan (OSS)" <iuliana.prodan@oss.nxp.com>,
Bjorn Andersson <andersson@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
"S.J. Wang" <shengjiu.wang@nxp.com>,
Fabio Estevam <festevam@gmail.com>,
Daniel Baluta <daniel.baluta@nxp.com>,
Paul Olaru <paul.olaru@nxp.com>,
Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>,
Iuliana Prodan <iuliana.prodan@nxp.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-imx <linux-imx@nxp.com>,
linux-remoteproc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Pengutronix Kernel Team <kernel@pengutronix.de>
Subject: Re: [PATCH v2] remoteproc: imx_dsp_rproc: add custom memory copy implementation for i.MX DSP Cores
Date: Sat, 4 Feb 2023 15:23:49 +0800 [thread overview]
Message-ID: <202302041520.m9CY8p6U-lkp@intel.com> (raw)
In-Reply-To: <20230131170436.31280-1-iuliana.prodan@oss.nxp.com>
Hi Iuliana,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on remoteproc/rproc-next]
[also build test WARNING on linus/master v6.2-rc6]
[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/Iuliana-Prodan-OSS/remoteproc-imx_dsp_rproc-add-custom-memory-copy-implementation-for-i-MX-DSP-Cores/20230201-011011
base: git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git rproc-next
patch link: https://lore.kernel.org/r/20230131170436.31280-1-iuliana.prodan%40oss.nxp.com
patch subject: [PATCH v2] remoteproc: imx_dsp_rproc: add custom memory copy implementation for i.MX DSP Cores
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230204/202302041520.m9CY8p6U-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/65bca8739891378a92cf6a5774e2ad72630a4276
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Iuliana-Prodan-OSS/remoteproc-imx_dsp_rproc-add-custom-memory-copy-implementation-for-i-MX-DSP-Cores/20230201-011011
git checkout 65bca8739891378a92cf6a5774e2ad72630a4276
# 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=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/remoteproc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:15,
from include/linux/clk.h:13,
from drivers/remoteproc/imx_dsp_rproc.c:6:
drivers/remoteproc/imx_dsp_rproc.c: In function 'imx_dsp_rproc_memcpy':
>> drivers/remoteproc/imx_dsp_rproc.c:732:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
732 | if (!IS_ALIGNED((u64)dest, 4))
| ^
include/linux/align.h:13:44: note: in definition of macro 'IS_ALIGNED'
13 | #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
| ^
>> drivers/remoteproc/imx_dsp_rproc.c:732:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
732 | if (!IS_ALIGNED((u64)dest, 4))
| ^
include/linux/align.h:13:58: note: in definition of macro 'IS_ALIGNED'
13 | #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
| ^
drivers/remoteproc/imx_dsp_rproc.c: In function 'imx_dsp_rproc_memset':
drivers/remoteproc/imx_dsp_rproc.c:776:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
776 | if (!IS_ALIGNED((u64)addr, 4))
| ^
include/linux/align.h:13:44: note: in definition of macro 'IS_ALIGNED'
13 | #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
| ^
drivers/remoteproc/imx_dsp_rproc.c:776:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
776 | if (!IS_ALIGNED((u64)addr, 4))
| ^
include/linux/align.h:13:58: note: in definition of macro 'IS_ALIGNED'
13 | #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
| ^
vim +732 drivers/remoteproc/imx_dsp_rproc.c
717
718 /*
719 * Custom memory copy implementation for i.MX DSP Cores
720 *
721 * The IRAM is part of the HiFi DSP.
722 * According to hw specs only 32-bits writes are allowed.
723 */
724 static int imx_dsp_rproc_memcpy(void *dest, const void *src, size_t size)
725 {
726 const u8 *src_byte = src;
727 u32 affected_mask;
728 u32 tmp;
729 int i, q, r;
730
731 /* destination must be 32bit aligned */
> 732 if (!IS_ALIGNED((u64)dest, 4))
733 return -EINVAL;
734
735 q = size / 4;
736 r = size % 4;
737
738 /* __iowrite32_copy use 32bit size values so divide by 4 */
739 __iowrite32_copy(dest, src, q);
740
741 if (r) {
742 affected_mask = (1 << (8 * r)) - 1;
743
744 /* first read the 32bit data of dest, then change affected
745 * bytes, and write back to dest.
746 * For unaffected bytes, it should not be changed
747 */
748 tmp = ioread32(dest + q * 4);
749 tmp &= ~affected_mask;
750
751 /* avoid reading after end of source */
752 for (i = 0; i < r; i++)
753 tmp |= (src_byte[q * 4 + i] << (8 * i));
754
755 iowrite32(tmp, dest + q * 4);
756 }
757
758 return 0;
759 }
760
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
prev parent reply other threads:[~2023-02-04 7:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 17:04 [PATCH v2] remoteproc: imx_dsp_rproc: add custom memory copy implementation for i.MX DSP Cores Iuliana Prodan (OSS)
2023-02-01 0:27 ` Peng Fan
2023-02-01 8:41 ` Iuliana Prodan
2023-02-04 7:23 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302041520.m9CY8p6U-lkp@intel.com \
--to=lkp@intel.com \
--cc=andersson@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=festevam@gmail.com \
--cc=iuliana.prodan@nxp.com \
--cc=iuliana.prodan@oss.nxp.com \
--cc=kernel@pengutronix.de \
--cc=laurentiu.mihalcea@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=paul.olaru@nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=shengjiu.wang@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox