Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795898215; b=2S5jFApPWZatgipNiLPnsZjeGU2CzbQUMCnTD64shKQ26J9Z2tilPudSA91BQE87fP4e SFsqCtLJGhZQUVYtlDmE+XqgytsVa/fxWJi+ZEHIbzHoxAQNmdPDd900fJ9fVZFxU1MPs mVOxJFtLjpSCEiCZJvXYwz5XyoOnOxAj2mBruK9Vlm/+MsBXs/GUTgfZ0pxKY0V1UCNEr /O5pGicv6GJWJMJuN4aLMVhyF0uYHOSvruP23vgNPVxKzY/S3l10LFqfwr/S0Wvnzb5YF nhDDNvjiZpb4StZ9a9rk3VpYRA0z4f2fTBsEJmELSRFAv0sAc9VvdqP/j5INr5iRNZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795898215; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=oHPimgdGohmWoTW+4rK0fRuNt+VOm/HIGzKVC11EsaY=; b=SaNHuaQ1sG6HKg4DRoFVLcLh/rLj0znAFT9xMfZNQtOLYwkZREfL8Ftu+6ylmKq0odUr 4y5NhOawPd7i6Yi3E8cugWPCZzxuie1w2NrWFerXQV70E9F7f7KKo1Z8Cs1WRZf2ZSLQs QyyaWKu9JegWBS0MsrmZBbIbG29nm8b20m0+KusnS3ezv401LDoZvwP7TnfENdmVVrnW6 52P+hd/Bp3RGPJvRS5ouY7PdLEx0VFxICEaaUJhwGXUhKjY7CdKhpE5ADHN7KWxXRI7ta 980/udCV/0piM3Ej/rl2e00WT7S7RkaxwscGDYc+i4Y9FHTPS7SXApGL40M5PfXySBA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=PMYnr7x8; arc=none smtp.remote-ip=198.175.65.19 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85B68606A31C for ; Sat, 28 Nov 2026 20:36:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85B68606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=PMYnr7x8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795898213; x=1827434213; h=date:from:to:cc:subject:message-id; bh=e+VlGb5D5pdvgXd3ThlY8LWyIpgt2IX3uxbDiIho7Pg=; b=PMYnr7x8V3zmXLLZMKD304iQRjXLahig7WR8nEbuD60AJcrkVWV9fVOR AqJD5QDqO8iKrJEkw/lduj6Vyh0l6lSF6LLLBX6fwJTKhfoXJ9ca3CQed ruoWPJeOIq4lcQ+sc7Tn9VgbV0nfe0/FKWsDcZRPvsQZKgGyimyt50xMz 5zxYDVBPn4jd1WxBkgi7STRziKOuBE+qG2XIx1S2mbGnFrQWJNkmDss7C fsNNwgblZnqdWdhmX7RSdnOkiDfOmfc4ZqSamGLSnGzWcnI6rgXfJ15qy x98ATR0MDeZuaJOjIm0XKF0BSvme38Vq/P2cgjSz/FY3+K/6JmLb+qSKl A==; X-CSE-ConnectionGUID: q+HQZHMsRi23/kb0Xj36cA== X-CSE-MsgGUID: u9P4yaTOScmpSFgPVmLqtA== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4832847" X-IronPort-AV: E=Sophos;i="6.27,238,1787036400"; d="scan'208";a="4832847" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2026 12:36:53 -0800 X-CSE-ConnectionGUID: eZ41E/KFQKOvHnET58xZpg== X-CSE-MsgGUID: YKJdla7oSPy4gSK7yWRgyA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,238,1787036400"; d="scan'208";a="12769450" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa001.jf.intel.com with ESMTP; 28 Nov 2026 12:36:51 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXPA8-000000000mA-4Bd1; Sat, 28 Nov 2026 20:36:49 +0000 Date: Sat, 28 Nov 2026 21:35:52 +0100 From: kernel test robot To: Frank Min Cc: oe-kbuild-all@lists.linux.dev, Alex Deucher , Likun Gao , Hawking Zhang Subject: [linux-next:master 10662/13037] drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3042:73: sparse: sparse: incorrect type in argument 2 (different address spaces) Message-ID: <20261128213429.toQ99Le6-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e5aad2bdbbee783611d32599f89cea3f12f9593d commit: 927b76f7ad93303364ed2895154f61a41e371f10 [10662/13037] drm/amdgpu: Add gfx v13 ip block config: powerpc-randconfig-r2309-20261128 (https://download.01.org/0day-ci/archive/20261128/20261128213429.toQ99Le6-lkp@intel.com/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 765cd7a687f1325e8f7c2b1dc46de9c1facf578e) sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/20261128213429.toQ99Le6-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261128213429.toQ99Le6-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c: note: in included file: drivers/gpu/drm/amd/amdgpu/clearstate_gfx13.h:113:7: sparse: sparse: Using plain integer as NULL pointer drivers/gpu/drm/amd/amdgpu/clearstate_gfx13.h:118:7: sparse: sparse: Using plain integer as NULL pointer drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:506:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __le32 [usertype] @@ drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:506:28: sparse: expected unsigned int [usertype] drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:506:28: sparse: got restricted __le32 [usertype] drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:540:13: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:573:36: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:574:41: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:575:36: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:577:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:621:33: sparse: sparse: cast to restricted __le16 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:622:33: sparse: sparse: cast to restricted __le16 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:708:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __le32 [usertype] @@ drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:708:57: sparse: expected unsigned int [usertype] drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:708:57: sparse: got restricted __le32 [usertype] drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1172:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1173:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1178:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1179:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1189:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1190:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1195:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1196:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1206:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1207:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1212:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1213:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1227:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1228:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1232:25: sparse: sparse: cast to restricted __le16 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1233:25: sparse: sparse: cast to restricted __le16 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1239:41: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1240:35: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1245:41: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1246:35: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1254:41: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1255:35: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1260:41: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1261:35: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1278:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1279:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1306:33: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1307:27: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1312:33: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:1313:27: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2014:28: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2015:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2036:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2037:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2050:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2051:19: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2080:25: sparse: sparse: cast to restricted __le16 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2423:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2424:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2427:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2428:24: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2564:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2565:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2568:17: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2569:24: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2795:33: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2796:25: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2799:33: sparse: sparse: cast to restricted __le32 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:2800:24: sparse: sparse: cast to restricted __le32 >> drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3042:73: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *s @@ got struct v13_gfx_mqd *mqd @@ drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3042:73: sparse: expected void const volatile [noderef] __iomem *s drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3042:73: sparse: got struct v13_gfx_mqd *mqd >> drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3046:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *d @@ got struct v13_gfx_mqd *mqd @@ drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3046:37: sparse: expected void volatile [noderef] __iomem *d drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3046:37: sparse: got struct v13_gfx_mqd *mqd >> drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3380:74: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *s @@ got struct v13_compute_mqd *mqd @@ drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3380:74: sparse: expected void const volatile [noderef] __iomem *s drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3380:74: sparse: got struct v13_compute_mqd *mqd >> drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3384:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *d @@ got struct v13_compute_mqd *mqd @@ drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3384:37: sparse: expected void volatile [noderef] __iomem *d drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:3384:37: sparse: got struct v13_compute_mqd *mqd drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c:4628:21: sparse: sparse: cast to restricted __le32 vim +3042 drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c 3027 3028 static int gfx_v13_0_kgq_init_queue(struct amdgpu_ring *ring, bool reset) 3029 { 3030 struct amdgpu_device *adev = ring->adev; 3031 struct v13_gfx_mqd *mqd = ring->mqd_ptr; 3032 int mqd_idx = ring - &adev->gfx.gfx_ring[0]; 3033 3034 if (!reset && !amdgpu_in_reset(adev) && !adev->in_suspend) { 3035 memset((void *)mqd, 0, sizeof(*mqd)); 3036 mutex_lock(&adev->srbm_mutex); 3037 soc_v2_0_grbm_select(adev, ring->me, ring->pipe, ring->queue, 0); 3038 amdgpu_ring_init_mqd(ring); 3039 soc_v2_0_grbm_select(adev, 0, 0, 0, 0); 3040 mutex_unlock(&adev->srbm_mutex); 3041 if (adev->gfx.me.mqd_backup[mqd_idx]) > 3042 memcpy_fromio(adev->gfx.me.mqd_backup[mqd_idx], mqd, sizeof(*mqd)); 3043 } else { 3044 /* restore mqd with the backup copy */ 3045 if (adev->gfx.me.mqd_backup[mqd_idx]) > 3046 memcpy_toio(mqd, adev->gfx.me.mqd_backup[mqd_idx], sizeof(*mqd)); 3047 /* reset the ring */ 3048 ring->wptr = 0; 3049 *(u64 *)ring->wptr_cpu_addr = 0; 3050 amdgpu_ring_clear_ring(ring); 3051 } 3052 3053 return 0; 3054 } 3055 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki