lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 11 Aug 2021 15:14:48 +0800
From:   kernel test robot <lkp@...el.com>
To:     Lyude Paul <lyude@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Ben Skeggs <bskeggs@...hat.com>
Subject: [skeggsb:devel 3/28]
 drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:40:17: sparse: sparse: cast
 removes address space '__iomem' of expression

tree:   https://github.com/skeggsb/linux devel
head:   7f0de5bc23ca2a31b4faccc68b4416a2f627bf4b
commit: b353550478fb642e81dd1932f47517e8e04a2ee8 [3/28] drm/nouveau/kms/nv140-: Use hard-coded wndws or core channel for CRC channel
config: x86_64-randconfig-s021-20210810 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # https://github.com/skeggsb/linux/commit/b353550478fb642e81dd1932f47517e8e04a2ee8
        git remote add skeggsb https://github.com/skeggsb/linux
        git fetch --no-tags skeggsb devel
        git checkout b353550478fb642e81dd1932f47517e8e04a2ee8
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:40:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:40:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:41:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:41:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:43:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:43:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:44:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/nouveau/dispnv50/crcc57d.c:44:17: sparse: sparse: cast removes address space '__iomem' of expression

vim +/__iomem +40 drivers/gpu/drm/nouveau/dispnv50/crcc57d.c

    12	
    13	static int crcc57d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source,
    14				   struct nv50_crc_notifier_ctx *ctx)
    15	{
    16		struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
    17		const int i = head->base.index;
    18		u32 crc_args = NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) |
    19			       NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) |
    20			       NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, SECONDARY_CRC, NONE) |
    21			       NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CRC_DURING_SNOOZE, DISABLE);
    22		int ret;
    23	
    24		switch (source) {
    25		case NV50_CRC_SOURCE_TYPE_SOR:
    26			crc_args |= NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, PRIMARY_CRC, SOR(or));
    27			break;
    28		case NV50_CRC_SOURCE_TYPE_SF:
    29			crc_args |= NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, PRIMARY_CRC, SF);
    30			break;
    31		default:
    32			break;
    33		}
    34	
    35		ret = PUSH_WAIT(push, 4);
    36		if (ret)
    37			return ret;
    38	
    39		if (source) {
  > 40			PUSH_MTHD(push, NVC57D, HEAD_SET_CONTEXT_DMA_CRC(i), ctx->ntfy.handle);
    41			PUSH_MTHD(push, NVC57D, HEAD_SET_CRC_CONTROL(i), crc_args);
    42		} else {
    43			PUSH_MTHD(push, NVC57D, HEAD_SET_CRC_CONTROL(i), 0);
    44			PUSH_MTHD(push, NVC57D, HEAD_SET_CONTEXT_DMA_CRC(i), 0);
    45		}
    46	
    47		return 0;
    48	}
    49	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (38335 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ