drivers/gpu/drm/xe/xe_reg_whitelist.c:107:1: sparse: sparse: directive in macro's argument list

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "low confidence static check warning: drivers/gpu/drm/xe/xe_reg_whitelist.c:107:1: sparse: sparse: directive in macro's argument list"
:::::: 

BCC: [email protected]
CC: [email protected]
CC: [email protected]
TO: Gustavo Sousa <[email protected]>
CC: "Thomas Hellström" <[email protected]>
CC: Matt Roper <[email protected]>
CC: Violet Monti <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53
commit: e23fafb8594ea886ee03e005cc32dfda24f417cf drm/xe/rtp: Add struct types for RTP tables
date:   8 days ago
:::::: branch date: 2 days ago
:::::: commit date: 8 days ago
config: um-randconfig-r132-20260709 (https://download.01.org/0day-ci/archive/20260709/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/[email protected]/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
| Fixes: e23fafb8594e ("drm/xe/rtp: Add struct types for RTP tables")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/xe/xe_reg_whitelist.c:107:1: sparse: sparse: directive in macro's argument list
   drivers/gpu/drm/xe/xe_reg_whitelist.c:109:1: sparse: sparse: directive in macro's argument list
   drivers/gpu/drm/xe/xe_reg_whitelist.c:114:1: sparse: sparse: directive in macro's argument list
   drivers/gpu/drm/xe/xe_reg_whitelist.c:117:1: sparse: sparse: directive in macro's argument list
   drivers/gpu/drm/xe/xe_reg_whitelist.c:128:1: sparse: sparse: directive in macro's argument list

vim +107 drivers/gpu/drm/xe/xe_reg_whitelist.c

b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   43  
e23fafb8594ea8 Gustavo Sousa             2026-06-01   44  static const struct xe_rtp_table_sr register_whitelist = XE_RTP_TABLE_SR(
dd08ebf6c3525a Matthew Brost             2023-03-30   45  	{ XE_RTP_NAME("WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865"),
dd08ebf6c3525a Matthew Brost             2023-03-30   46  	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, 1210), ENGINE_CLASS(RENDER)),
844c0700a675a5 Lucas De Marchi           2023-01-25   47  	  XE_RTP_ACTIONS(WHITELIST(PS_INVOCATION_COUNT,
dd08ebf6c3525a Matthew Brost             2023-03-30   48  				   RING_FORCE_TO_NONPRIV_ACCESS_RD |
844c0700a675a5 Lucas De Marchi           2023-01-25   49  				   RING_FORCE_TO_NONPRIV_RANGE_4))
dd08ebf6c3525a Matthew Brost             2023-03-30   50  	},
dd08ebf6c3525a Matthew Brost             2023-03-30   51  	{ XE_RTP_NAME("1508744258, 14012131227, 1808121037"),
dd08ebf6c3525a Matthew Brost             2023-03-30   52  	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, 1210), ENGINE_CLASS(RENDER)),
d9b79ad275e7a9 Lucas De Marchi           2023-04-27   53  	  XE_RTP_ACTIONS(WHITELIST(COMMON_SLICE_CHICKEN1, 0))
dd08ebf6c3525a Matthew Brost             2023-03-30   54  	},
dd08ebf6c3525a Matthew Brost             2023-03-30   55  	{ XE_RTP_NAME("1806527549"),
dd08ebf6c3525a Matthew Brost             2023-03-30   56  	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, 1210), ENGINE_CLASS(RENDER)),
844c0700a675a5 Lucas De Marchi           2023-01-25   57  	  XE_RTP_ACTIONS(WHITELIST(HIZ_CHICKEN, 0))
dd08ebf6c3525a Matthew Brost             2023-03-30   58  	},
dd08ebf6c3525a Matthew Brost             2023-03-30   59  	{ XE_RTP_NAME("allow_read_ctx_timestamp"),
dd08ebf6c3525a Matthew Brost             2023-03-30   60  	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, 1260), FUNC(match_not_render)),
844c0700a675a5 Lucas De Marchi           2023-01-25   61  	  XE_RTP_ACTIONS(WHITELIST(RING_CTX_TIMESTAMP(0),
dd08ebf6c3525a Matthew Brost             2023-03-30   62  				RING_FORCE_TO_NONPRIV_ACCESS_RD,
844c0700a675a5 Lucas De Marchi           2023-01-25   63  				XE_RTP_ACTION_FLAG(ENGINE_BASE)))
dd08ebf6c3525a Matthew Brost             2023-03-30   64  	},
b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   65  	{ XE_RTP_NAME("allow_read_queue_timestamp"),
b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   66  	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(3500, 3511), FUNC(match_multi_queue_class)),
b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   67  	  XE_RTP_ACTIONS(WHITELIST(RING_QUEUE_TIMESTAMP(0),
b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   68  				   RING_FORCE_TO_NONPRIV_ACCESS_RD,
b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   69  				   XE_RTP_ACTION_FLAG(ENGINE_BASE)))
b619bbcda1389c Umesh Nerlige Ramappa     2026-05-07   70  	},
844c0700a675a5 Lucas De Marchi           2023-01-25   71  	{ XE_RTP_NAME("16014440446"),
dd08ebf6c3525a Matthew Brost             2023-03-30   72  	  XE_RTP_RULES(PLATFORM(PVC)),
3512a78a3cefcd Lucas De Marchi           2023-04-27   73  	  XE_RTP_ACTIONS(WHITELIST(XE_REG(0x4400),
dd08ebf6c3525a Matthew Brost             2023-03-30   74  				   RING_FORCE_TO_NONPRIV_DENY |
844c0700a675a5 Lucas De Marchi           2023-01-25   75  				   RING_FORCE_TO_NONPRIV_RANGE_64),
3512a78a3cefcd Lucas De Marchi           2023-04-27   76  			 WHITELIST(XE_REG(0x4500),
dd08ebf6c3525a Matthew Brost             2023-03-30   77  				   RING_FORCE_TO_NONPRIV_DENY |
844c0700a675a5 Lucas De Marchi           2023-01-25   78  				   RING_FORCE_TO_NONPRIV_RANGE_64))
dd08ebf6c3525a Matthew Brost             2023-03-30   79  	},
25063811d9c1f3 Niranjana Vishwanathapura 2023-08-17   80  	{ XE_RTP_NAME("16017236439"),
25063811d9c1f3 Niranjana Vishwanathapura 2023-08-17   81  	  XE_RTP_RULES(PLATFORM(PVC), ENGINE_CLASS(COPY)),
25063811d9c1f3 Niranjana Vishwanathapura 2023-08-17   82  	  XE_RTP_ACTIONS(WHITELIST(BCS_SWCTRL(0),
25063811d9c1f3 Niranjana Vishwanathapura 2023-08-17   83  				   RING_FORCE_TO_NONPRIV_DENY,
25063811d9c1f3 Niranjana Vishwanathapura 2023-08-17   84  				   XE_RTP_ACTION_FLAG(ENGINE_BASE)))
25063811d9c1f3 Niranjana Vishwanathapura 2023-08-17   85  	},
570a8fc233b2ad Lucas De Marchi           2023-12-07   86  	{ XE_RTP_NAME("16020183090"),
570a8fc233b2ad Lucas De Marchi           2023-12-07   87  	  XE_RTP_RULES(GRAPHICS_VERSION(2004), GRAPHICS_STEP(A0, B0),
570a8fc233b2ad Lucas De Marchi           2023-12-07   88  		       ENGINE_CLASS(RENDER)),
570a8fc233b2ad Lucas De Marchi           2023-12-07   89  	  XE_RTP_ACTIONS(WHITELIST(CSBE_DEBUG_STATUS(RENDER_RING_BASE), 0))
570a8fc233b2ad Lucas De Marchi           2023-12-07   90  	},
d24f7d1f62e2ed Tapani Pälli              2025-10-29   91  	{ XE_RTP_NAME("14024997852"),
2882094e0db192 Arvind Yadav              2026-02-12   92  	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001, 3005), ENGINE_CLASS(RENDER)),
d24f7d1f62e2ed Tapani Pälli              2025-10-29   93  	  XE_RTP_ACTIONS(WHITELIST(FF_MODE,
d24f7d1f62e2ed Tapani Pälli              2025-10-29   94  				   RING_FORCE_TO_NONPRIV_ACCESS_RW),
d24f7d1f62e2ed Tapani Pälli              2025-10-29   95  			 WHITELIST(VFLSKPD,
d24f7d1f62e2ed Tapani Pälli              2025-10-29   96  				   RING_FORCE_TO_NONPRIV_ACCESS_RW))
d24f7d1f62e2ed Tapani Pälli              2025-10-29   97  	},
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06   98  	{ XE_RTP_NAME("14024997852"),
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06   99  	  XE_RTP_RULES(GRAPHICS_VERSION(3510), GRAPHICS_STEP(A0, B0),
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06  100  		       ENGINE_CLASS(RENDER)),
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06  101  	  XE_RTP_ACTIONS(WHITELIST(FF_MODE,
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06  102  				   RING_FORCE_TO_NONPRIV_ACCESS_RW),
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06  103  			 WHITELIST(VFLSKPD,
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06  104  				   RING_FORCE_TO_NONPRIV_ACCESS_RW))
835cd6cbb0d0e4 Shekhar Chauhan           2026-02-06  105  	},
ed455775c5a68b Ashutosh Dixit            2025-12-01  106  
e70086a3a06d27 Ashutosh Dixit            2026-06-15 @107  #define WHITELIST_DENY(r, f) WHITELIST(r, (f) | RING_FORCE_TO_NONPRIV_DENY)
e70086a3a06d27 Ashutosh Dixit            2026-06-15  108  

:::::: The code at line 107 was first introduced by commit
:::::: e70086a3a06d276b4a5d9a2c51c9330c6cf72780 drm/xe/rtp: Add RING_FORCE_TO_NONPRIV_DENY to OA whitelists

:::::: TO: Ashutosh Dixit <[email protected]>
:::::: CC: Thomas Hellström <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.