Re: [PATCH] net/i40e: fix unsigned stat widths
by kernel test robot
Hi Joe,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tnguy-next-queue/dev-queue]
[also build test WARNING on net/master horms-ipvs/master net-next/master v5.16-rc4 next-20211208]
[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]
url: https://github.com/0day-ci/linux/commits/Joe-Damato/net-i40e-fix-unsigned...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
config: i386-randconfig-c001-20211207 (https://download.01.org/0day-ci/archive/20211209/202112091109.hhwYyNeJ-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/0day-ci/linux/commit/0231b0742caf367642f2a31147e272cf4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Joe-Damato/net-i40e-fix-unsigned-stat-widths/20211209-025738
git checkout 0231b0742caf367642f2a31147e272cf48cff9d5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/intel/i40e/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/intel/i40e/i40e_debugfs.c:245:4: warning: format specifies type 'int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
vsi->rx_buf_failed, vsi->rx_page_failed);
^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info'
dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:245:24: warning: format specifies type 'int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
vsi->rx_buf_failed, vsi->rx_page_failed);
^~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info'
dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
2 warnings generated.
vim +245 drivers/net/ethernet/intel/i40e/i40e_debugfs.c
c3c7ea27bec070 Mitch Williams 2016-06-20 109
02e9c290814cc1 Jesse Brandeburg 2013-09-11 110 /**
e625f71ba1faa0 Shannon Nelson 2013-11-26 111 * i40e_dbg_dump_vsi_seid - handles dump vsi seid write into command datum
02e9c290814cc1 Jesse Brandeburg 2013-09-11 112 * @pf: the i40e_pf created in command write
02e9c290814cc1 Jesse Brandeburg 2013-09-11 113 * @seid: the seid the user put in
02e9c290814cc1 Jesse Brandeburg 2013-09-11 114 **/
02e9c290814cc1 Jesse Brandeburg 2013-09-11 115 static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid)
02e9c290814cc1 Jesse Brandeburg 2013-09-11 116 {
02e9c290814cc1 Jesse Brandeburg 2013-09-11 117 struct rtnl_link_stats64 *nstat;
02e9c290814cc1 Jesse Brandeburg 2013-09-11 118 struct i40e_mac_filter *f;
02e9c290814cc1 Jesse Brandeburg 2013-09-11 119 struct i40e_vsi *vsi;
278e7d0b9d6864 Jacob Keller 2016-10-05 120 int i, bkt;
02e9c290814cc1 Jesse Brandeburg 2013-09-11 121
02e9c290814cc1 Jesse Brandeburg 2013-09-11 122 vsi = i40e_dbg_find_vsi(pf, seid);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 123 if (!vsi) {
02e9c290814cc1 Jesse Brandeburg 2013-09-11 124 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 125 "dump %d: seid not found\n", seid);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 126 return;
02e9c290814cc1 Jesse Brandeburg 2013-09-11 127 }
02e9c290814cc1 Jesse Brandeburg 2013-09-11 128 dev_info(&pf->pdev->dev, "vsi seid %d\n", seid);
de1017f76a9ba9 Shannon Nelson 2015-12-23 129 if (vsi->netdev) {
de1017f76a9ba9 Shannon Nelson 2015-12-23 130 struct net_device *nd = vsi->netdev;
de1017f76a9ba9 Shannon Nelson 2015-12-23 131
de1017f76a9ba9 Shannon Nelson 2015-12-23 132 dev_info(&pf->pdev->dev, " netdev: name = %s, state = %lu, flags = 0x%08x\n",
de1017f76a9ba9 Shannon Nelson 2015-12-23 133 nd->name, nd->state, nd->flags);
de1017f76a9ba9 Shannon Nelson 2015-12-23 134 dev_info(&pf->pdev->dev, " features = 0x%08lx\n",
de1017f76a9ba9 Shannon Nelson 2015-12-23 135 (unsigned long int)nd->features);
de1017f76a9ba9 Shannon Nelson 2015-12-23 136 dev_info(&pf->pdev->dev, " hw_features = 0x%08lx\n",
de1017f76a9ba9 Shannon Nelson 2015-12-23 137 (unsigned long int)nd->hw_features);
de1017f76a9ba9 Shannon Nelson 2015-12-23 138 dev_info(&pf->pdev->dev, " vlan_features = 0x%08lx\n",
de1017f76a9ba9 Shannon Nelson 2015-12-23 139 (unsigned long int)nd->vlan_features);
de1017f76a9ba9 Shannon Nelson 2015-12-23 140 }
02e9c290814cc1 Jesse Brandeburg 2013-09-11 141 dev_info(&pf->pdev->dev,
0da36b9774cc24 Jacob Keller 2017-04-19 142 " flags = 0x%08lx, netdev_registered = %i, current_netdev_flags = 0x%04x\n",
0da36b9774cc24 Jacob Keller 2017-04-19 143 vsi->flags, vsi->netdev_registered, vsi->current_netdev_flags);
0da36b9774cc24 Jacob Keller 2017-04-19 144 for (i = 0; i < BITS_TO_LONGS(__I40E_VSI_STATE_SIZE__); i++)
0da36b9774cc24 Jacob Keller 2017-04-19 145 dev_info(&pf->pdev->dev,
0da36b9774cc24 Jacob Keller 2017-04-19 146 " state[%d] = %08lx\n",
0da36b9774cc24 Jacob Keller 2017-04-19 147 i, vsi->state[i]);
2ddb80c9c4b181 Shannon Nelson 2015-02-27 148 if (vsi == pf->vsi[pf->lan_vsi])
2ddb80c9c4b181 Shannon Nelson 2015-02-27 149 dev_info(&pf->pdev->dev, " MAC address: %pM SAN MAC: %pM Port MAC: %pM\n",
2ddb80c9c4b181 Shannon Nelson 2015-02-27 150 pf->hw.mac.addr,
2ddb80c9c4b181 Shannon Nelson 2015-02-27 151 pf->hw.mac.san_addr,
2ddb80c9c4b181 Shannon Nelson 2015-02-27 152 pf->hw.mac.port_addr);
278e7d0b9d6864 Jacob Keller 2016-10-05 153 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) {
02e9c290814cc1 Jesse Brandeburg 2013-09-11 154 dev_info(&pf->pdev->dev,
1bc87e807a6510 Jacob Keller 2016-10-05 155 " mac_filter_hash: %pM vid=%d, state %s\n",
1bc87e807a6510 Jacob Keller 2016-10-05 156 f->macaddr, f->vlan,
1bc87e807a6510 Jacob Keller 2016-10-05 157 i40e_filter_state_string[f->state]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 158 }
5951cf9495bcd2 Jacob Keller 2016-11-21 159 dev_info(&pf->pdev->dev, " active_filters %u, promisc_threshold %u, overflow promisc %s\n",
c3c7ea27bec070 Mitch Williams 2016-06-20 160 vsi->active_filters, vsi->promisc_threshold,
0da36b9774cc24 Jacob Keller 2017-04-19 161 (test_bit(__I40E_VSI_OVERFLOW_PROMISC, vsi->state) ?
c3c7ea27bec070 Mitch Williams 2016-06-20 162 "ON" : "OFF"));
02e9c290814cc1 Jesse Brandeburg 2013-09-11 163 nstat = i40e_get_vsi_stats_struct(vsi);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 164 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 165 " net_stats: rx_packets = %lu, rx_bytes = %lu, rx_errors = %lu, rx_dropped = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 166 (unsigned long int)nstat->rx_packets,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 167 (unsigned long int)nstat->rx_bytes,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 168 (unsigned long int)nstat->rx_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 169 (unsigned long int)nstat->rx_dropped);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 170 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 171 " net_stats: tx_packets = %lu, tx_bytes = %lu, tx_errors = %lu, tx_dropped = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 172 (unsigned long int)nstat->tx_packets,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 173 (unsigned long int)nstat->tx_bytes,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 174 (unsigned long int)nstat->tx_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 175 (unsigned long int)nstat->tx_dropped);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 176 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 177 " net_stats: multicast = %lu, collisions = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 178 (unsigned long int)nstat->multicast,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 179 (unsigned long int)nstat->collisions);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 180 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 181 " net_stats: rx_length_errors = %lu, rx_over_errors = %lu, rx_crc_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 182 (unsigned long int)nstat->rx_length_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 183 (unsigned long int)nstat->rx_over_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 184 (unsigned long int)nstat->rx_crc_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 185 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 186 " net_stats: rx_frame_errors = %lu, rx_fifo_errors = %lu, rx_missed_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 187 (unsigned long int)nstat->rx_frame_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 188 (unsigned long int)nstat->rx_fifo_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 189 (unsigned long int)nstat->rx_missed_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 190 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 191 " net_stats: tx_aborted_errors = %lu, tx_carrier_errors = %lu, tx_fifo_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 192 (unsigned long int)nstat->tx_aborted_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 193 (unsigned long int)nstat->tx_carrier_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 194 (unsigned long int)nstat->tx_fifo_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 195 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 196 " net_stats: tx_heartbeat_errors = %lu, tx_window_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 197 (unsigned long int)nstat->tx_heartbeat_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 198 (unsigned long int)nstat->tx_window_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 199 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 200 " net_stats: rx_compressed = %lu, tx_compressed = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 201 (unsigned long int)nstat->rx_compressed,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 202 (unsigned long int)nstat->tx_compressed);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 203 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 204 " net_stats_offsets: rx_packets = %lu, rx_bytes = %lu, rx_errors = %lu, rx_dropped = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 205 (unsigned long int)vsi->net_stats_offsets.rx_packets,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 206 (unsigned long int)vsi->net_stats_offsets.rx_bytes,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 207 (unsigned long int)vsi->net_stats_offsets.rx_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 208 (unsigned long int)vsi->net_stats_offsets.rx_dropped);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 209 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 210 " net_stats_offsets: tx_packets = %lu, tx_bytes = %lu, tx_errors = %lu, tx_dropped = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 211 (unsigned long int)vsi->net_stats_offsets.tx_packets,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 212 (unsigned long int)vsi->net_stats_offsets.tx_bytes,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 213 (unsigned long int)vsi->net_stats_offsets.tx_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 214 (unsigned long int)vsi->net_stats_offsets.tx_dropped);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 215 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 216 " net_stats_offsets: multicast = %lu, collisions = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 217 (unsigned long int)vsi->net_stats_offsets.multicast,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 218 (unsigned long int)vsi->net_stats_offsets.collisions);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 219 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 220 " net_stats_offsets: rx_length_errors = %lu, rx_over_errors = %lu, rx_crc_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 221 (unsigned long int)vsi->net_stats_offsets.rx_length_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 222 (unsigned long int)vsi->net_stats_offsets.rx_over_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 223 (unsigned long int)vsi->net_stats_offsets.rx_crc_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 224 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 225 " net_stats_offsets: rx_frame_errors = %lu, rx_fifo_errors = %lu, rx_missed_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 226 (unsigned long int)vsi->net_stats_offsets.rx_frame_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 227 (unsigned long int)vsi->net_stats_offsets.rx_fifo_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 228 (unsigned long int)vsi->net_stats_offsets.rx_missed_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 229 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 230 " net_stats_offsets: tx_aborted_errors = %lu, tx_carrier_errors = %lu, tx_fifo_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 231 (unsigned long int)vsi->net_stats_offsets.tx_aborted_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 232 (unsigned long int)vsi->net_stats_offsets.tx_carrier_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 233 (unsigned long int)vsi->net_stats_offsets.tx_fifo_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 234 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 235 " net_stats_offsets: tx_heartbeat_errors = %lu, tx_window_errors = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 236 (unsigned long int)vsi->net_stats_offsets.tx_heartbeat_errors,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 237 (unsigned long int)vsi->net_stats_offsets.tx_window_errors);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 238 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 239 " net_stats_offsets: rx_compressed = %lu, tx_compressed = %lu\n",
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 240 (unsigned long int)vsi->net_stats_offsets.rx_compressed,
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 241 (unsigned long int)vsi->net_stats_offsets.tx_compressed);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 242 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 243 " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 244 vsi->tx_restart, vsi->tx_busy,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 @245 vsi->rx_buf_failed, vsi->rx_page_failed);
9f65e15b4f9823 Alexander Duyck 2013-09-28 246 rcu_read_lock();
02e9c290814cc1 Jesse Brandeburg 2013-09-11 247 for (i = 0; i < vsi->num_queue_pairs; i++) {
6aa7de059173a9 Mark Rutland 2017-10-23 248 struct i40e_ring *rx_ring = READ_ONCE(vsi->rx_rings[i]);
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 249
9f65e15b4f9823 Alexander Duyck 2013-09-28 250 if (!rx_ring)
9f65e15b4f9823 Alexander Duyck 2013-09-28 251 continue;
9f65e15b4f9823 Alexander Duyck 2013-09-28 252
02e9c290814cc1 Jesse Brandeburg 2013-09-11 253 dev_info(&pf->pdev->dev,
bd6cd4e6dd38a3 Jesse Brandeburg 2017-08-29 254 " rx_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\n",
bd6cd4e6dd38a3 Jesse Brandeburg 2017-08-29 255 i, *rx_ring->state,
9f65e15b4f9823 Alexander Duyck 2013-09-28 256 rx_ring->queue_index,
9f65e15b4f9823 Alexander Duyck 2013-09-28 257 rx_ring->reg_idx);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 258 dev_info(&pf->pdev->dev,
1a557afc4dd59b Jesse Brandeburg 2016-04-20 259 " rx_rings[%i]: rx_buf_len = %d\n",
1a557afc4dd59b Jesse Brandeburg 2016-04-20 260 i, rx_ring->rx_buf_len);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 261 dev_info(&pf->pdev->dev,
b32bfa17246d83 Jesse Brandeburg 2016-04-18 262 " rx_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\n",
b32bfa17246d83 Jesse Brandeburg 2016-04-18 263 i,
9f65e15b4f9823 Alexander Duyck 2013-09-28 264 rx_ring->next_to_use,
9f65e15b4f9823 Alexander Duyck 2013-09-28 265 rx_ring->next_to_clean,
9f65e15b4f9823 Alexander Duyck 2013-09-28 266 rx_ring->ring_active);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 267 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 268 " rx_rings[%i]: rx_stats: packets = %lld, bytes = %lld, non_eop_descs = %lld\n",
9f65e15b4f9823 Alexander Duyck 2013-09-28 269 i, rx_ring->stats.packets,
9f65e15b4f9823 Alexander Duyck 2013-09-28 270 rx_ring->stats.bytes,
9f65e15b4f9823 Alexander Duyck 2013-09-28 271 rx_ring->rx_stats.non_eop_descs);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 272 dev_info(&pf->pdev->dev,
420136cccb3b04 Mitch Williams 2013-12-18 273 " rx_rings[%i]: rx_stats: alloc_page_failed = %lld, alloc_buff_failed = %lld\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 274 i,
420136cccb3b04 Mitch Williams 2013-12-18 275 rx_ring->rx_stats.alloc_page_failed,
420136cccb3b04 Mitch Williams 2013-12-18 276 rx_ring->rx_stats.alloc_buff_failed);
f16704e5e8aed1 Mitch Williams 2016-01-13 277 dev_info(&pf->pdev->dev,
f16704e5e8aed1 Mitch Williams 2016-01-13 278 " rx_rings[%i]: rx_stats: realloc_count = %lld, page_reuse_count = %lld\n",
f16704e5e8aed1 Mitch Williams 2016-01-13 279 i,
f16704e5e8aed1 Mitch Williams 2016-01-13 280 rx_ring->rx_stats.realloc_count,
f16704e5e8aed1 Mitch Williams 2016-01-13 281 rx_ring->rx_stats.page_reuse_count);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 282 dev_info(&pf->pdev->dev,
7be78aa444794d Mitch Williams 2018-01-22 283 " rx_rings[%i]: size = %i\n",
7be78aa444794d Mitch Williams 2018-01-22 284 i, rx_ring->size);
a75e8005d506f3 Kan Liang 2016-02-19 285 dev_info(&pf->pdev->dev,
40588ca6513729 Alexander Duyck 2017-12-29 286 " rx_rings[%i]: itr_setting = %d (%s)\n",
40588ca6513729 Alexander Duyck 2017-12-29 287 i, rx_ring->itr_setting,
40588ca6513729 Alexander Duyck 2017-12-29 288 ITR_IS_DYNAMIC(rx_ring->itr_setting) ? "dynamic" : "fixed");
02e9c290814cc1 Jesse Brandeburg 2013-09-11 289 }
02e9c290814cc1 Jesse Brandeburg 2013-09-11 290 for (i = 0; i < vsi->num_queue_pairs; i++) {
6aa7de059173a9 Mark Rutland 2017-10-23 291 struct i40e_ring *tx_ring = READ_ONCE(vsi->tx_rings[i]);
6995b36c0fc3dd Jesse Brandeburg 2015-08-28 292
9f65e15b4f9823 Alexander Duyck 2013-09-28 293 if (!tx_ring)
9f65e15b4f9823 Alexander Duyck 2013-09-28 294 continue;
1b60f3c41654a8 Jesse Brandeburg 2013-11-28 295
02e9c290814cc1 Jesse Brandeburg 2013-09-11 296 dev_info(&pf->pdev->dev,
bd6cd4e6dd38a3 Jesse Brandeburg 2017-08-29 297 " tx_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\n",
bd6cd4e6dd38a3 Jesse Brandeburg 2017-08-29 298 i, *tx_ring->state,
9f65e15b4f9823 Alexander Duyck 2013-09-28 299 tx_ring->queue_index,
9f65e15b4f9823 Alexander Duyck 2013-09-28 300 tx_ring->reg_idx);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 301 dev_info(&pf->pdev->dev,
4668607aa30b38 Mitch Williams 2016-01-13 302 " tx_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\n",
4668607aa30b38 Mitch Williams 2016-01-13 303 i,
9f65e15b4f9823 Alexander Duyck 2013-09-28 304 tx_ring->next_to_use,
9f65e15b4f9823 Alexander Duyck 2013-09-28 305 tx_ring->next_to_clean,
9f65e15b4f9823 Alexander Duyck 2013-09-28 306 tx_ring->ring_active);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 307 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 308 " tx_rings[%i]: tx_stats: packets = %lld, bytes = %lld, restart_queue = %lld\n",
9f65e15b4f9823 Alexander Duyck 2013-09-28 309 i, tx_ring->stats.packets,
9f65e15b4f9823 Alexander Duyck 2013-09-28 310 tx_ring->stats.bytes,
9f65e15b4f9823 Alexander Duyck 2013-09-28 311 tx_ring->tx_stats.restart_queue);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 312 dev_info(&pf->pdev->dev,
c304fdac6cc0aa Alexander Duyck 2013-09-28 313 " tx_rings[%i]: tx_stats: tx_busy = %lld, tx_done_old = %lld\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 314 i,
9f65e15b4f9823 Alexander Duyck 2013-09-28 315 tx_ring->tx_stats.tx_busy,
9f65e15b4f9823 Alexander Duyck 2013-09-28 316 tx_ring->tx_stats.tx_done_old);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 317 dev_info(&pf->pdev->dev,
7be78aa444794d Mitch Williams 2018-01-22 318 " tx_rings[%i]: size = %i\n",
7be78aa444794d Mitch Williams 2018-01-22 319 i, tx_ring->size);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 320 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 321 " tx_rings[%i]: DCB tc = %d\n",
9f65e15b4f9823 Alexander Duyck 2013-09-28 322 i, tx_ring->dcb_tc);
a75e8005d506f3 Kan Liang 2016-02-19 323 dev_info(&pf->pdev->dev,
40588ca6513729 Alexander Duyck 2017-12-29 324 " tx_rings[%i]: itr_setting = %d (%s)\n",
40588ca6513729 Alexander Duyck 2017-12-29 325 i, tx_ring->itr_setting,
40588ca6513729 Alexander Duyck 2017-12-29 326 ITR_IS_DYNAMIC(tx_ring->itr_setting) ? "dynamic" : "fixed");
02e9c290814cc1 Jesse Brandeburg 2013-09-11 327 }
890c402c7b1131 Ciara Loftus 2020-06-23 328 if (i40e_enabled_xdp_vsi(vsi)) {
890c402c7b1131 Ciara Loftus 2020-06-23 329 for (i = 0; i < vsi->num_queue_pairs; i++) {
890c402c7b1131 Ciara Loftus 2020-06-23 330 struct i40e_ring *xdp_ring = READ_ONCE(vsi->xdp_rings[i]);
890c402c7b1131 Ciara Loftus 2020-06-23 331
890c402c7b1131 Ciara Loftus 2020-06-23 332 if (!xdp_ring)
890c402c7b1131 Ciara Loftus 2020-06-23 333 continue;
890c402c7b1131 Ciara Loftus 2020-06-23 334
890c402c7b1131 Ciara Loftus 2020-06-23 335 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 336 " xdp_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\n",
890c402c7b1131 Ciara Loftus 2020-06-23 337 i, *xdp_ring->state,
890c402c7b1131 Ciara Loftus 2020-06-23 338 xdp_ring->queue_index,
890c402c7b1131 Ciara Loftus 2020-06-23 339 xdp_ring->reg_idx);
890c402c7b1131 Ciara Loftus 2020-06-23 340 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 341 " xdp_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\n",
890c402c7b1131 Ciara Loftus 2020-06-23 342 i,
890c402c7b1131 Ciara Loftus 2020-06-23 343 xdp_ring->next_to_use,
890c402c7b1131 Ciara Loftus 2020-06-23 344 xdp_ring->next_to_clean,
890c402c7b1131 Ciara Loftus 2020-06-23 345 xdp_ring->ring_active);
890c402c7b1131 Ciara Loftus 2020-06-23 346 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 347 " xdp_rings[%i]: tx_stats: packets = %lld, bytes = %lld, restart_queue = %lld\n",
890c402c7b1131 Ciara Loftus 2020-06-23 348 i, xdp_ring->stats.packets,
890c402c7b1131 Ciara Loftus 2020-06-23 349 xdp_ring->stats.bytes,
890c402c7b1131 Ciara Loftus 2020-06-23 350 xdp_ring->tx_stats.restart_queue);
890c402c7b1131 Ciara Loftus 2020-06-23 351 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 352 " xdp_rings[%i]: tx_stats: tx_busy = %lld, tx_done_old = %lld\n",
890c402c7b1131 Ciara Loftus 2020-06-23 353 i,
890c402c7b1131 Ciara Loftus 2020-06-23 354 xdp_ring->tx_stats.tx_busy,
890c402c7b1131 Ciara Loftus 2020-06-23 355 xdp_ring->tx_stats.tx_done_old);
890c402c7b1131 Ciara Loftus 2020-06-23 356 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 357 " xdp_rings[%i]: size = %i\n",
890c402c7b1131 Ciara Loftus 2020-06-23 358 i, xdp_ring->size);
890c402c7b1131 Ciara Loftus 2020-06-23 359 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 360 " xdp_rings[%i]: DCB tc = %d\n",
890c402c7b1131 Ciara Loftus 2020-06-23 361 i, xdp_ring->dcb_tc);
890c402c7b1131 Ciara Loftus 2020-06-23 362 dev_info(&pf->pdev->dev,
890c402c7b1131 Ciara Loftus 2020-06-23 363 " xdp_rings[%i]: itr_setting = %d (%s)\n",
890c402c7b1131 Ciara Loftus 2020-06-23 364 i, xdp_ring->itr_setting,
890c402c7b1131 Ciara Loftus 2020-06-23 365 ITR_IS_DYNAMIC(xdp_ring->itr_setting) ?
890c402c7b1131 Ciara Loftus 2020-06-23 366 "dynamic" : "fixed");
890c402c7b1131 Ciara Loftus 2020-06-23 367 }
890c402c7b1131 Ciara Loftus 2020-06-23 368 }
9f65e15b4f9823 Alexander Duyck 2013-09-28 369 rcu_read_unlock();
02e9c290814cc1 Jesse Brandeburg 2013-09-11 370 dev_info(&pf->pdev->dev,
a75e8005d506f3 Kan Liang 2016-02-19 371 " work_limit = %d\n",
a75e8005d506f3 Kan Liang 2016-02-19 372 vsi->work_limit);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 373 dev_info(&pf->pdev->dev,
1a557afc4dd59b Jesse Brandeburg 2016-04-20 374 " max_frame = %d, rx_buf_len = %d dtype = %d\n",
bec60fc42b2853 Jesse Brandeburg 2016-04-18 375 vsi->max_frame, vsi->rx_buf_len, 0);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 376 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 377 " num_q_vectors = %i, base_vector = %i\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 378 vsi->num_q_vectors, vsi->base_vector);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 379 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 380 " seid = %d, id = %d, uplink_seid = %d\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 381 vsi->seid, vsi->id, vsi->uplink_seid);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 382 dev_info(&pf->pdev->dev,
15369ac3e39777 Maciej Fijalkowski 2019-05-28 383 " base_queue = %d, num_queue_pairs = %d, num_tx_desc = %d, num_rx_desc = %d\n",
15369ac3e39777 Maciej Fijalkowski 2019-05-28 384 vsi->base_queue, vsi->num_queue_pairs, vsi->num_tx_desc,
15369ac3e39777 Maciej Fijalkowski 2019-05-28 385 vsi->num_rx_desc);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 386 dev_info(&pf->pdev->dev, " type = %i\n", vsi->type);
3118025a070f33 Mitch Williams 2017-04-12 387 if (vsi->type == I40E_VSI_SRIOV)
3118025a070f33 Mitch Williams 2017-04-12 388 dev_info(&pf->pdev->dev, " VF ID = %i\n", vsi->vf_id);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 389 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 390 " info: valid_sections = 0x%04x, switch_id = 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 391 vsi->info.valid_sections, vsi->info.switch_id);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 392 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 393 " info: sw_reserved[] = 0x%02x 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 394 vsi->info.sw_reserved[0], vsi->info.sw_reserved[1]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 395 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 396 " info: sec_flags = 0x%02x, sec_reserved = 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 397 vsi->info.sec_flags, vsi->info.sec_reserved);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 398 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 399 " info: pvid = 0x%04x, fcoe_pvid = 0x%04x, port_vlan_flags = 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 400 vsi->info.pvid, vsi->info.fcoe_pvid,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 401 vsi->info.port_vlan_flags);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 402 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 403 " info: pvlan_reserved[] = 0x%02x 0x%02x 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 404 vsi->info.pvlan_reserved[0], vsi->info.pvlan_reserved[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 405 vsi->info.pvlan_reserved[2]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 406 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 407 " info: ingress_table = 0x%08x, egress_table = 0x%08x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 408 vsi->info.ingress_table, vsi->info.egress_table);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 409 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 410 " info: cas_pv_stag = 0x%04x, cas_pv_flags= 0x%02x, cas_pv_reserved = 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 411 vsi->info.cas_pv_tag, vsi->info.cas_pv_flags,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 412 vsi->info.cas_pv_reserved);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 413 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 414 " info: queue_mapping[0..7 ] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 415 vsi->info.queue_mapping[0], vsi->info.queue_mapping[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 416 vsi->info.queue_mapping[2], vsi->info.queue_mapping[3],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 417 vsi->info.queue_mapping[4], vsi->info.queue_mapping[5],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 418 vsi->info.queue_mapping[6], vsi->info.queue_mapping[7]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 419 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 420 " info: queue_mapping[8..15] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 421 vsi->info.queue_mapping[8], vsi->info.queue_mapping[9],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 422 vsi->info.queue_mapping[10], vsi->info.queue_mapping[11],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 423 vsi->info.queue_mapping[12], vsi->info.queue_mapping[13],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 424 vsi->info.queue_mapping[14], vsi->info.queue_mapping[15]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 425 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 426 " info: tc_mapping[] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 427 vsi->info.tc_mapping[0], vsi->info.tc_mapping[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 428 vsi->info.tc_mapping[2], vsi->info.tc_mapping[3],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 429 vsi->info.tc_mapping[4], vsi->info.tc_mapping[5],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 430 vsi->info.tc_mapping[6], vsi->info.tc_mapping[7]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 431 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 432 " info: queueing_opt_flags = 0x%02x queueing_opt_reserved[0..2] = 0x%02x 0x%02x 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 433 vsi->info.queueing_opt_flags,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 434 vsi->info.queueing_opt_reserved[0],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 435 vsi->info.queueing_opt_reserved[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 436 vsi->info.queueing_opt_reserved[2]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 437 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 438 " info: up_enable_bits = 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 439 vsi->info.up_enable_bits);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 440 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 441 " info: sched_reserved = 0x%02x, outer_up_table = 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 442 vsi->info.sched_reserved, vsi->info.outer_up_table);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 443 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 444 " info: cmd_reserved[] = 0x%02x 0x%02x 0x%02x 0x0%02x 0x%02x 0x%02x 0x%02x 0x0%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 445 vsi->info.cmd_reserved[0], vsi->info.cmd_reserved[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 446 vsi->info.cmd_reserved[2], vsi->info.cmd_reserved[3],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 447 vsi->info.cmd_reserved[4], vsi->info.cmd_reserved[5],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 448 vsi->info.cmd_reserved[6], vsi->info.cmd_reserved[7]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 449 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 450 " info: qs_handle[] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 451 vsi->info.qs_handle[0], vsi->info.qs_handle[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 452 vsi->info.qs_handle[2], vsi->info.qs_handle[3],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 453 vsi->info.qs_handle[4], vsi->info.qs_handle[5],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 454 vsi->info.qs_handle[6], vsi->info.qs_handle[7]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 455 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 456 " info: stat_counter_idx = 0x%04x, sched_id = 0x%04x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 457 vsi->info.stat_counter_idx, vsi->info.sched_id);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 458 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 459 " info: resp_reserved[] = 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 460 vsi->info.resp_reserved[0], vsi->info.resp_reserved[1],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 461 vsi->info.resp_reserved[2], vsi->info.resp_reserved[3],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 462 vsi->info.resp_reserved[4], vsi->info.resp_reserved[5],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 463 vsi->info.resp_reserved[6], vsi->info.resp_reserved[7],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 464 vsi->info.resp_reserved[8], vsi->info.resp_reserved[9],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 465 vsi->info.resp_reserved[10], vsi->info.resp_reserved[11]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 466 dev_info(&pf->pdev->dev, " idx = %d\n", vsi->idx);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 467 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 468 " tc_config: numtc = %d, enabled_tc = 0x%x\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 469 vsi->tc_config.numtc, vsi->tc_config.enabled_tc);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 470 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {
02e9c290814cc1 Jesse Brandeburg 2013-09-11 471 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 472 " tc_config: tc = %d, qoffset = %d, qcount = %d, netdev_tc = %d\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 473 i, vsi->tc_config.tc_info[i].qoffset,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 474 vsi->tc_config.tc_info[i].qcount,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 475 vsi->tc_config.tc_info[i].netdev_tc);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 476 }
02e9c290814cc1 Jesse Brandeburg 2013-09-11 477 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 478 " bw: bw_limit = %d, bw_max_quanta = %d\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 479 vsi->bw_limit, vsi->bw_max_quanta);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 480 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {
02e9c290814cc1 Jesse Brandeburg 2013-09-11 481 dev_info(&pf->pdev->dev,
02e9c290814cc1 Jesse Brandeburg 2013-09-11 482 " bw[%d]: ets_share_credits = %d, ets_limit_credits = %d, max_quanta = %d\n",
02e9c290814cc1 Jesse Brandeburg 2013-09-11 483 i, vsi->bw_ets_share_credits[i],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 484 vsi->bw_ets_limit_credits[i],
02e9c290814cc1 Jesse Brandeburg 2013-09-11 485 vsi->bw_ets_max_quanta[i]);
02e9c290814cc1 Jesse Brandeburg 2013-09-11 486 }
02e9c290814cc1 Jesse Brandeburg 2013-09-11 487 }
02e9c290814cc1 Jesse Brandeburg 2013-09-11 488
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [net-next v2 2/2] net: sched: support hash/classid selecting tx queue
by kernel test robot
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/xiangxia-m-yue-gmail-com/net-sch...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1fe5b01262844be03de98afdd56d1d393df04d7e
config: i386-randconfig-r023-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090603.PxlqXFRw-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/0day-ci/linux/commit/522fbcfdde012bc46d29aa216bdfa73f5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review xiangxia-m-yue-gmail-com/net-sched-allow-user-to-select-txqueue/20211208-223656
git checkout 522fbcfdde012bc46d29aa216bdfa73f512adcbd
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash mm/ net/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> net/sched/act_skbedit.c:39:11: warning: variable 'hash' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
else if (params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/sched/act_skbedit.c:42:34: note: uninitialized use occurs here
queue_mapping = queue_mapping + hash % mapping_mod;
^~~~
net/sched/act_skbedit.c:39:7: note: remove the 'if' if its condition is always true
else if (params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/sched/act_skbedit.c:32:10: note: initialize the variable 'hash' to silence this warning
u32 hash;
^
= 0
1 warning generated.
vim +39 net/sched/act_skbedit.c
26
27 static u16 tcf_skbedit_hash(struct tcf_skbedit_params *params,
28 struct sk_buff *skb)
29 {
30 u16 queue_mapping = params->queue_mapping;
31 u16 mapping_mod = params->mapping_mod;
32 u32 hash;
33
34 if (!(params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH_MASK))
35 return netdev_cap_txqueue(skb->dev, queue_mapping);
36
37 if (params->flags & SKBEDIT_F_QUEUE_MAPPING_CLASSID)
38 hash = jhash_1word(task_get_classid(skb), 0);
> 39 else if (params->flags & SKBEDIT_F_QUEUE_MAPPING_HASH)
40 hash = skb_get_hash(skb);
41
42 queue_mapping = queue_mapping + hash % mapping_mod;
43 return netdev_cap_txqueue(skb->dev, queue_mapping);
44 }
45
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH 17/18] drm: rockchip: Add VOP2 driver
by kernel test robot
Hi Sascha,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on rockchip/for-next]
[also build test ERROR on drm/drm-next drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-rc4]
[cannot apply to drm-tip/drm-tip tegra-drm/drm/tegra/for-next airlied/drm-next next-20211208]
[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]
url: https://github.com/0day-ci/linux/commits/Sascha-Hauer/drm-rockchip-RK356x...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211209/202112090830.YVovXyce-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.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/0day-ci/linux/commit/8d57a528cbdfec4716a21d22d3d6c04c4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sascha-Hauer/drm-rockchip-RK356x-VOP2-support/20211208-231502
git checkout 8d57a528cbdfec4716a21d22d3d6c04c40451355
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c: In function 'vop2_dither_setup':
>> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1489:22: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
1489 | *dsp_ctrl |= FIELD_PREP(RK3568_VP_DSP_CTRL__DITHER_DOWN_SEL,
| ^~~~~~~~~~
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c: In function 'vop2_setup_cluster_alpha':
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1861:33: warning: variable 'top_win_pstate' set but not used [-Wunused-but-set-variable]
1861 | struct drm_plane_state *top_win_pstate;
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +1489 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
1463
1464 static void vop2_dither_setup(struct drm_crtc *crtc, uint32_t *dsp_ctrl)
1465 {
1466 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(crtc->state);
1467
1468 switch (vcstate->bus_format) {
1469 case MEDIA_BUS_FMT_RGB565_1X16:
1470 *dsp_ctrl |= RK3568_VP_DSP_CTRL__DITHER_DOWN_EN;
1471 break;
1472 case MEDIA_BUS_FMT_RGB666_1X18:
1473 case MEDIA_BUS_FMT_RGB666_1X24_CPADHI:
1474 case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
1475 *dsp_ctrl |= RK3568_VP_DSP_CTRL__DITHER_DOWN_EN;
1476 *dsp_ctrl |= RGB888_TO_RGB666;
1477 break;
1478 case MEDIA_BUS_FMT_YUV8_1X24:
1479 case MEDIA_BUS_FMT_UYYVYY8_0_5X24:
1480 *dsp_ctrl |= RK3568_VP_DSP_CTRL__PRE_DITHER_DOWN_EN;
1481 break;
1482 default:
1483 break;
1484 }
1485
1486 if (vcstate->output_mode != ROCKCHIP_OUT_MODE_AAAA)
1487 *dsp_ctrl |= RK3568_VP_DSP_CTRL__PRE_DITHER_DOWN_EN;
1488
> 1489 *dsp_ctrl |= FIELD_PREP(RK3568_VP_DSP_CTRL__DITHER_DOWN_SEL,
1490 DITHER_DOWN_ALLEGRO);
1491 }
1492
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[linux-next:master 5567/5842] fs/f2fs/sysfs.c:491 __sbi_store() warn: unsigned 't' is never less than zero.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4eee8d0b64ecc3231040fa68ba750317ffca5c52
commit: 38f953da2e3517444394000211c11cc82e67eb13 [5567/5842] f2fs: add gc_urgent_high_remaining sysfs node
config: i386-randconfig-m021-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090853.JdT0VEOq-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
fs/f2fs/sysfs.c:491 __sbi_store() warn: unsigned 't' is never less than zero.
vim +/t +491 fs/f2fs/sysfs.c
332
333 static ssize_t __sbi_store(struct f2fs_attr *a,
334 struct f2fs_sb_info *sbi,
335 const char *buf, size_t count)
336 {
337 unsigned char *ptr;
338 unsigned long t;
339 unsigned int *ui;
340 ssize_t ret;
341
342 ptr = __struct_ptr(sbi, a->struct_type);
343 if (!ptr)
344 return -EINVAL;
345
346 if (!strcmp(a->attr.name, "extension_list")) {
347 const char *name = strim((char *)buf);
348 bool set = true, hot;
349
350 if (!strncmp(name, "[h]", 3))
351 hot = true;
352 else if (!strncmp(name, "[c]", 3))
353 hot = false;
354 else
355 return -EINVAL;
356
357 name += 3;
358
359 if (*name == '!') {
360 name++;
361 set = false;
362 }
363
364 if (!strlen(name) || strlen(name) >= F2FS_EXTENSION_LEN)
365 return -EINVAL;
366
367 down_write(&sbi->sb_lock);
368
369 ret = f2fs_update_extension_list(sbi, name, hot, set);
370 if (ret)
371 goto out;
372
373 ret = f2fs_commit_super(sbi, false);
374 if (ret)
375 f2fs_update_extension_list(sbi, name, hot, !set);
376 out:
377 up_write(&sbi->sb_lock);
378 return ret ? ret : count;
379 }
380
381 if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) {
382 const char *name = strim((char *)buf);
383 struct ckpt_req_control *cprc = &sbi->cprc_info;
384 int class;
385 long data;
386 int ret;
387
388 if (!strncmp(name, "rt,", 3))
389 class = IOPRIO_CLASS_RT;
390 else if (!strncmp(name, "be,", 3))
391 class = IOPRIO_CLASS_BE;
392 else
393 return -EINVAL;
394
395 name += 3;
396 ret = kstrtol(name, 10, &data);
397 if (ret)
398 return ret;
399 if (data >= IOPRIO_NR_LEVELS || data < 0)
400 return -EINVAL;
401
402 cprc->ckpt_thread_ioprio = IOPRIO_PRIO_VALUE(class, data);
403 if (test_opt(sbi, MERGE_CHECKPOINT)) {
404 ret = set_task_ioprio(cprc->f2fs_issue_ckpt,
405 cprc->ckpt_thread_ioprio);
406 if (ret)
407 return ret;
408 }
409
410 return count;
411 }
412
413 ui = (unsigned int *)(ptr + a->offset);
414
415 ret = kstrtoul(skip_spaces(buf), 0, &t);
416 if (ret < 0)
417 return ret;
418 #ifdef CONFIG_F2FS_FAULT_INJECTION
419 if (a->struct_type == FAULT_INFO_TYPE && t >= (1 << FAULT_MAX))
420 return -EINVAL;
421 if (a->struct_type == FAULT_INFO_RATE && t >= UINT_MAX)
422 return -EINVAL;
423 #endif
424 if (a->struct_type == RESERVED_BLOCKS) {
425 spin_lock(&sbi->stat_lock);
426 if (t > (unsigned long)(sbi->user_block_count -
427 F2FS_OPTION(sbi).root_reserved_blocks)) {
428 spin_unlock(&sbi->stat_lock);
429 return -EINVAL;
430 }
431 *ui = t;
432 sbi->current_reserved_blocks = min(sbi->reserved_blocks,
433 sbi->user_block_count - valid_user_blocks(sbi));
434 spin_unlock(&sbi->stat_lock);
435 return count;
436 }
437
438 if (!strcmp(a->attr.name, "discard_granularity")) {
439 if (t == 0 || t > MAX_PLIST_NUM)
440 return -EINVAL;
441 if (!f2fs_block_unit_discard(sbi))
442 return -EINVAL;
443 if (t == *ui)
444 return count;
445 *ui = t;
446 return count;
447 }
448
449 if (!strcmp(a->attr.name, "migration_granularity")) {
450 if (t == 0 || t > sbi->segs_per_sec)
451 return -EINVAL;
452 }
453
454 if (!strcmp(a->attr.name, "trim_sections"))
455 return -EINVAL;
456
457 if (!strcmp(a->attr.name, "gc_urgent")) {
458 if (t == 0) {
459 sbi->gc_mode = GC_NORMAL;
460 } else if (t == 1) {
461 sbi->gc_mode = GC_URGENT_HIGH;
462 if (sbi->gc_thread) {
463 sbi->gc_thread->gc_wake = 1;
464 wake_up_interruptible_all(
465 &sbi->gc_thread->gc_wait_queue_head);
466 wake_up_discard_thread(sbi, true);
467 }
468 } else if (t == 2) {
469 sbi->gc_mode = GC_URGENT_LOW;
470 } else {
471 return -EINVAL;
472 }
473 return count;
474 }
475 if (!strcmp(a->attr.name, "gc_idle")) {
476 if (t == GC_IDLE_CB) {
477 sbi->gc_mode = GC_IDLE_CB;
478 } else if (t == GC_IDLE_GREEDY) {
479 sbi->gc_mode = GC_IDLE_GREEDY;
480 } else if (t == GC_IDLE_AT) {
481 if (!sbi->am.atgc_enabled)
482 return -EINVAL;
483 sbi->gc_mode = GC_AT;
484 } else {
485 sbi->gc_mode = GC_NORMAL;
486 }
487 return count;
488 }
489
490 if (!strcmp(a->attr.name, "gc_urgent_high_remaining")) {
> 491 if (t < 0)
492 return -EINVAL;
493
494 spin_lock(&sbi->gc_urgent_high_lock);
495 sbi->gc_urgent_high_limited = t == 0 ? false : true;
496 sbi->gc_urgent_high_remaining = t;
497 spin_unlock(&sbi->gc_urgent_high_lock);
498
499 return count;
500 }
501
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH] net/i40e: fix unsigned stat widths
by kernel test robot
Hi Joe,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tnguy-next-queue/dev-queue]
[also build test WARNING on net/master horms-ipvs/master net-next/master v5.16-rc4 next-20211208]
[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]
url: https://github.com/0day-ci/linux/commits/Joe-Damato/net-i40e-fix-unsigned...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20211209/202112090744.QwfPrzIW-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.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/0day-ci/linux/commit/0231b0742caf367642f2a31147e272cf4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Joe-Damato/net-i40e-fix-unsigned-stat-widths/20211209-025738
git checkout 0231b0742caf367642f2a31147e272cf48cff9d5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/net/ethernet/intel/i40e/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from include/linux/skbuff.h:31,
from include/linux/tcp.h:17,
from include/net/tcp.h:20,
from drivers/net/ethernet/intel/i40e/i40e.h:7,
from drivers/net/ethernet/intel/i40e/i40e_debugfs.c:9:
drivers/net/ethernet/intel/i40e/i40e_debugfs.c: In function 'i40e_dbg_dump_vsi_seid':
>> drivers/net/ethernet/intel/i40e/i40e_debugfs.c:243:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
243 | " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt'
150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:242:9: note: in expansion of macro 'dev_info'
242 | dev_info(&pf->pdev->dev,
| ^~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:243:71: note: format string is defined here
243 | " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n",
| ~^
| |
| int
| %lld
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from include/linux/skbuff.h:31,
from include/linux/tcp.h:17,
from include/net/tcp.h:20,
from drivers/net/ethernet/intel/i40e/i40e.h:7,
from drivers/net/ethernet/intel/i40e/i40e_debugfs.c:9:
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:243:18: warning: format '%d' expects argument of type 'int', but argument 6 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
243 | " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt'
150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:242:9: note: in expansion of macro 'dev_info'
242 | dev_info(&pf->pdev->dev,
| ^~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:243:92: note: format string is defined here
243 | " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n",
| ~^
| |
| int
| %lld
vim +243 drivers/net/ethernet/intel/i40e/i40e_debugfs.c
c3c7ea27bec070f Mitch Williams 2016-06-20 109
02e9c290814cc14 Jesse Brandeburg 2013-09-11 110 /**
e625f71ba1faa0c Shannon Nelson 2013-11-26 111 * i40e_dbg_dump_vsi_seid - handles dump vsi seid write into command datum
02e9c290814cc14 Jesse Brandeburg 2013-09-11 112 * @pf: the i40e_pf created in command write
02e9c290814cc14 Jesse Brandeburg 2013-09-11 113 * @seid: the seid the user put in
02e9c290814cc14 Jesse Brandeburg 2013-09-11 114 **/
02e9c290814cc14 Jesse Brandeburg 2013-09-11 115 static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid)
02e9c290814cc14 Jesse Brandeburg 2013-09-11 116 {
02e9c290814cc14 Jesse Brandeburg 2013-09-11 117 struct rtnl_link_stats64 *nstat;
02e9c290814cc14 Jesse Brandeburg 2013-09-11 118 struct i40e_mac_filter *f;
02e9c290814cc14 Jesse Brandeburg 2013-09-11 119 struct i40e_vsi *vsi;
278e7d0b9d6864a Jacob Keller 2016-10-05 120 int i, bkt;
02e9c290814cc14 Jesse Brandeburg 2013-09-11 121
02e9c290814cc14 Jesse Brandeburg 2013-09-11 122 vsi = i40e_dbg_find_vsi(pf, seid);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 123 if (!vsi) {
02e9c290814cc14 Jesse Brandeburg 2013-09-11 124 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 125 "dump %d: seid not found\n", seid);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 126 return;
02e9c290814cc14 Jesse Brandeburg 2013-09-11 127 }
02e9c290814cc14 Jesse Brandeburg 2013-09-11 128 dev_info(&pf->pdev->dev, "vsi seid %d\n", seid);
de1017f76a9ba9c Shannon Nelson 2015-12-23 129 if (vsi->netdev) {
de1017f76a9ba9c Shannon Nelson 2015-12-23 130 struct net_device *nd = vsi->netdev;
de1017f76a9ba9c Shannon Nelson 2015-12-23 131
de1017f76a9ba9c Shannon Nelson 2015-12-23 132 dev_info(&pf->pdev->dev, " netdev: name = %s, state = %lu, flags = 0x%08x\n",
de1017f76a9ba9c Shannon Nelson 2015-12-23 133 nd->name, nd->state, nd->flags);
de1017f76a9ba9c Shannon Nelson 2015-12-23 134 dev_info(&pf->pdev->dev, " features = 0x%08lx\n",
de1017f76a9ba9c Shannon Nelson 2015-12-23 135 (unsigned long int)nd->features);
de1017f76a9ba9c Shannon Nelson 2015-12-23 136 dev_info(&pf->pdev->dev, " hw_features = 0x%08lx\n",
de1017f76a9ba9c Shannon Nelson 2015-12-23 137 (unsigned long int)nd->hw_features);
de1017f76a9ba9c Shannon Nelson 2015-12-23 138 dev_info(&pf->pdev->dev, " vlan_features = 0x%08lx\n",
de1017f76a9ba9c Shannon Nelson 2015-12-23 139 (unsigned long int)nd->vlan_features);
de1017f76a9ba9c Shannon Nelson 2015-12-23 140 }
02e9c290814cc14 Jesse Brandeburg 2013-09-11 141 dev_info(&pf->pdev->dev,
0da36b9774cc24b Jacob Keller 2017-04-19 142 " flags = 0x%08lx, netdev_registered = %i, current_netdev_flags = 0x%04x\n",
0da36b9774cc24b Jacob Keller 2017-04-19 143 vsi->flags, vsi->netdev_registered, vsi->current_netdev_flags);
0da36b9774cc24b Jacob Keller 2017-04-19 144 for (i = 0; i < BITS_TO_LONGS(__I40E_VSI_STATE_SIZE__); i++)
0da36b9774cc24b Jacob Keller 2017-04-19 145 dev_info(&pf->pdev->dev,
0da36b9774cc24b Jacob Keller 2017-04-19 146 " state[%d] = %08lx\n",
0da36b9774cc24b Jacob Keller 2017-04-19 147 i, vsi->state[i]);
2ddb80c9c4b1810 Shannon Nelson 2015-02-27 148 if (vsi == pf->vsi[pf->lan_vsi])
2ddb80c9c4b1810 Shannon Nelson 2015-02-27 149 dev_info(&pf->pdev->dev, " MAC address: %pM SAN MAC: %pM Port MAC: %pM\n",
2ddb80c9c4b1810 Shannon Nelson 2015-02-27 150 pf->hw.mac.addr,
2ddb80c9c4b1810 Shannon Nelson 2015-02-27 151 pf->hw.mac.san_addr,
2ddb80c9c4b1810 Shannon Nelson 2015-02-27 152 pf->hw.mac.port_addr);
278e7d0b9d6864a Jacob Keller 2016-10-05 153 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) {
02e9c290814cc14 Jesse Brandeburg 2013-09-11 154 dev_info(&pf->pdev->dev,
1bc87e807a6510e Jacob Keller 2016-10-05 155 " mac_filter_hash: %pM vid=%d, state %s\n",
1bc87e807a6510e Jacob Keller 2016-10-05 156 f->macaddr, f->vlan,
1bc87e807a6510e Jacob Keller 2016-10-05 157 i40e_filter_state_string[f->state]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 158 }
5951cf9495bcd2d Jacob Keller 2016-11-21 159 dev_info(&pf->pdev->dev, " active_filters %u, promisc_threshold %u, overflow promisc %s\n",
c3c7ea27bec070f Mitch Williams 2016-06-20 160 vsi->active_filters, vsi->promisc_threshold,
0da36b9774cc24b Jacob Keller 2017-04-19 161 (test_bit(__I40E_VSI_OVERFLOW_PROMISC, vsi->state) ?
c3c7ea27bec070f Mitch Williams 2016-06-20 162 "ON" : "OFF"));
02e9c290814cc14 Jesse Brandeburg 2013-09-11 163 nstat = i40e_get_vsi_stats_struct(vsi);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 164 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 165 " net_stats: rx_packets = %lu, rx_bytes = %lu, rx_errors = %lu, rx_dropped = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 166 (unsigned long int)nstat->rx_packets,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 167 (unsigned long int)nstat->rx_bytes,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 168 (unsigned long int)nstat->rx_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 169 (unsigned long int)nstat->rx_dropped);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 170 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 171 " net_stats: tx_packets = %lu, tx_bytes = %lu, tx_errors = %lu, tx_dropped = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 172 (unsigned long int)nstat->tx_packets,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 173 (unsigned long int)nstat->tx_bytes,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 174 (unsigned long int)nstat->tx_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 175 (unsigned long int)nstat->tx_dropped);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 176 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 177 " net_stats: multicast = %lu, collisions = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 178 (unsigned long int)nstat->multicast,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 179 (unsigned long int)nstat->collisions);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 180 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 181 " net_stats: rx_length_errors = %lu, rx_over_errors = %lu, rx_crc_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 182 (unsigned long int)nstat->rx_length_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 183 (unsigned long int)nstat->rx_over_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 184 (unsigned long int)nstat->rx_crc_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 185 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 186 " net_stats: rx_frame_errors = %lu, rx_fifo_errors = %lu, rx_missed_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 187 (unsigned long int)nstat->rx_frame_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 188 (unsigned long int)nstat->rx_fifo_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 189 (unsigned long int)nstat->rx_missed_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 190 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 191 " net_stats: tx_aborted_errors = %lu, tx_carrier_errors = %lu, tx_fifo_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 192 (unsigned long int)nstat->tx_aborted_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 193 (unsigned long int)nstat->tx_carrier_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 194 (unsigned long int)nstat->tx_fifo_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 195 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 196 " net_stats: tx_heartbeat_errors = %lu, tx_window_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 197 (unsigned long int)nstat->tx_heartbeat_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 198 (unsigned long int)nstat->tx_window_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 199 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 200 " net_stats: rx_compressed = %lu, tx_compressed = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 201 (unsigned long int)nstat->rx_compressed,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 202 (unsigned long int)nstat->tx_compressed);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 203 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 204 " net_stats_offsets: rx_packets = %lu, rx_bytes = %lu, rx_errors = %lu, rx_dropped = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 205 (unsigned long int)vsi->net_stats_offsets.rx_packets,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 206 (unsigned long int)vsi->net_stats_offsets.rx_bytes,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 207 (unsigned long int)vsi->net_stats_offsets.rx_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 208 (unsigned long int)vsi->net_stats_offsets.rx_dropped);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 209 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 210 " net_stats_offsets: tx_packets = %lu, tx_bytes = %lu, tx_errors = %lu, tx_dropped = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 211 (unsigned long int)vsi->net_stats_offsets.tx_packets,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 212 (unsigned long int)vsi->net_stats_offsets.tx_bytes,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 213 (unsigned long int)vsi->net_stats_offsets.tx_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 214 (unsigned long int)vsi->net_stats_offsets.tx_dropped);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 215 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 216 " net_stats_offsets: multicast = %lu, collisions = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 217 (unsigned long int)vsi->net_stats_offsets.multicast,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 218 (unsigned long int)vsi->net_stats_offsets.collisions);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 219 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 220 " net_stats_offsets: rx_length_errors = %lu, rx_over_errors = %lu, rx_crc_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 221 (unsigned long int)vsi->net_stats_offsets.rx_length_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 222 (unsigned long int)vsi->net_stats_offsets.rx_over_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 223 (unsigned long int)vsi->net_stats_offsets.rx_crc_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 224 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 225 " net_stats_offsets: rx_frame_errors = %lu, rx_fifo_errors = %lu, rx_missed_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 226 (unsigned long int)vsi->net_stats_offsets.rx_frame_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 227 (unsigned long int)vsi->net_stats_offsets.rx_fifo_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 228 (unsigned long int)vsi->net_stats_offsets.rx_missed_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 229 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 230 " net_stats_offsets: tx_aborted_errors = %lu, tx_carrier_errors = %lu, tx_fifo_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 231 (unsigned long int)vsi->net_stats_offsets.tx_aborted_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 232 (unsigned long int)vsi->net_stats_offsets.tx_carrier_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 233 (unsigned long int)vsi->net_stats_offsets.tx_fifo_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 234 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 235 " net_stats_offsets: tx_heartbeat_errors = %lu, tx_window_errors = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 236 (unsigned long int)vsi->net_stats_offsets.tx_heartbeat_errors,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 237 (unsigned long int)vsi->net_stats_offsets.tx_window_errors);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 238 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 239 " net_stats_offsets: rx_compressed = %lu, tx_compressed = %lu\n",
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 240 (unsigned long int)vsi->net_stats_offsets.rx_compressed,
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 241 (unsigned long int)vsi->net_stats_offsets.tx_compressed);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 242 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 @243 " tx_restart = %d, tx_busy = %d, rx_buf_failed = %d, rx_page_failed = %d\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 244 vsi->tx_restart, vsi->tx_busy,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 245 vsi->rx_buf_failed, vsi->rx_page_failed);
9f65e15b4f98239 Alexander Duyck 2013-09-28 246 rcu_read_lock();
02e9c290814cc14 Jesse Brandeburg 2013-09-11 247 for (i = 0; i < vsi->num_queue_pairs; i++) {
6aa7de059173a98 Mark Rutland 2017-10-23 248 struct i40e_ring *rx_ring = READ_ONCE(vsi->rx_rings[i]);
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 249
9f65e15b4f98239 Alexander Duyck 2013-09-28 250 if (!rx_ring)
9f65e15b4f98239 Alexander Duyck 2013-09-28 251 continue;
9f65e15b4f98239 Alexander Duyck 2013-09-28 252
02e9c290814cc14 Jesse Brandeburg 2013-09-11 253 dev_info(&pf->pdev->dev,
bd6cd4e6dd38a35 Jesse Brandeburg 2017-08-29 254 " rx_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\n",
bd6cd4e6dd38a35 Jesse Brandeburg 2017-08-29 255 i, *rx_ring->state,
9f65e15b4f98239 Alexander Duyck 2013-09-28 256 rx_ring->queue_index,
9f65e15b4f98239 Alexander Duyck 2013-09-28 257 rx_ring->reg_idx);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 258 dev_info(&pf->pdev->dev,
1a557afc4dd59b8 Jesse Brandeburg 2016-04-20 259 " rx_rings[%i]: rx_buf_len = %d\n",
1a557afc4dd59b8 Jesse Brandeburg 2016-04-20 260 i, rx_ring->rx_buf_len);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 261 dev_info(&pf->pdev->dev,
b32bfa17246d836 Jesse Brandeburg 2016-04-18 262 " rx_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\n",
b32bfa17246d836 Jesse Brandeburg 2016-04-18 263 i,
9f65e15b4f98239 Alexander Duyck 2013-09-28 264 rx_ring->next_to_use,
9f65e15b4f98239 Alexander Duyck 2013-09-28 265 rx_ring->next_to_clean,
9f65e15b4f98239 Alexander Duyck 2013-09-28 266 rx_ring->ring_active);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 267 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 268 " rx_rings[%i]: rx_stats: packets = %lld, bytes = %lld, non_eop_descs = %lld\n",
9f65e15b4f98239 Alexander Duyck 2013-09-28 269 i, rx_ring->stats.packets,
9f65e15b4f98239 Alexander Duyck 2013-09-28 270 rx_ring->stats.bytes,
9f65e15b4f98239 Alexander Duyck 2013-09-28 271 rx_ring->rx_stats.non_eop_descs);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 272 dev_info(&pf->pdev->dev,
420136cccb3b042 Mitch Williams 2013-12-18 273 " rx_rings[%i]: rx_stats: alloc_page_failed = %lld, alloc_buff_failed = %lld\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 274 i,
420136cccb3b042 Mitch Williams 2013-12-18 275 rx_ring->rx_stats.alloc_page_failed,
420136cccb3b042 Mitch Williams 2013-12-18 276 rx_ring->rx_stats.alloc_buff_failed);
f16704e5e8aed1d Mitch Williams 2016-01-13 277 dev_info(&pf->pdev->dev,
f16704e5e8aed1d Mitch Williams 2016-01-13 278 " rx_rings[%i]: rx_stats: realloc_count = %lld, page_reuse_count = %lld\n",
f16704e5e8aed1d Mitch Williams 2016-01-13 279 i,
f16704e5e8aed1d Mitch Williams 2016-01-13 280 rx_ring->rx_stats.realloc_count,
f16704e5e8aed1d Mitch Williams 2016-01-13 281 rx_ring->rx_stats.page_reuse_count);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 282 dev_info(&pf->pdev->dev,
7be78aa444794d4 Mitch Williams 2018-01-22 283 " rx_rings[%i]: size = %i\n",
7be78aa444794d4 Mitch Williams 2018-01-22 284 i, rx_ring->size);
a75e8005d506f37 Kan Liang 2016-02-19 285 dev_info(&pf->pdev->dev,
40588ca6513729e Alexander Duyck 2017-12-29 286 " rx_rings[%i]: itr_setting = %d (%s)\n",
40588ca6513729e Alexander Duyck 2017-12-29 287 i, rx_ring->itr_setting,
40588ca6513729e Alexander Duyck 2017-12-29 288 ITR_IS_DYNAMIC(rx_ring->itr_setting) ? "dynamic" : "fixed");
02e9c290814cc14 Jesse Brandeburg 2013-09-11 289 }
02e9c290814cc14 Jesse Brandeburg 2013-09-11 290 for (i = 0; i < vsi->num_queue_pairs; i++) {
6aa7de059173a98 Mark Rutland 2017-10-23 291 struct i40e_ring *tx_ring = READ_ONCE(vsi->tx_rings[i]);
6995b36c0fc3dd9 Jesse Brandeburg 2015-08-28 292
9f65e15b4f98239 Alexander Duyck 2013-09-28 293 if (!tx_ring)
9f65e15b4f98239 Alexander Duyck 2013-09-28 294 continue;
1b60f3c41654a8f Jesse Brandeburg 2013-11-28 295
02e9c290814cc14 Jesse Brandeburg 2013-09-11 296 dev_info(&pf->pdev->dev,
bd6cd4e6dd38a35 Jesse Brandeburg 2017-08-29 297 " tx_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\n",
bd6cd4e6dd38a35 Jesse Brandeburg 2017-08-29 298 i, *tx_ring->state,
9f65e15b4f98239 Alexander Duyck 2013-09-28 299 tx_ring->queue_index,
9f65e15b4f98239 Alexander Duyck 2013-09-28 300 tx_ring->reg_idx);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 301 dev_info(&pf->pdev->dev,
4668607aa30b387 Mitch Williams 2016-01-13 302 " tx_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\n",
4668607aa30b387 Mitch Williams 2016-01-13 303 i,
9f65e15b4f98239 Alexander Duyck 2013-09-28 304 tx_ring->next_to_use,
9f65e15b4f98239 Alexander Duyck 2013-09-28 305 tx_ring->next_to_clean,
9f65e15b4f98239 Alexander Duyck 2013-09-28 306 tx_ring->ring_active);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 307 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 308 " tx_rings[%i]: tx_stats: packets = %lld, bytes = %lld, restart_queue = %lld\n",
9f65e15b4f98239 Alexander Duyck 2013-09-28 309 i, tx_ring->stats.packets,
9f65e15b4f98239 Alexander Duyck 2013-09-28 310 tx_ring->stats.bytes,
9f65e15b4f98239 Alexander Duyck 2013-09-28 311 tx_ring->tx_stats.restart_queue);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 312 dev_info(&pf->pdev->dev,
c304fdac6cc0aab Alexander Duyck 2013-09-28 313 " tx_rings[%i]: tx_stats: tx_busy = %lld, tx_done_old = %lld\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 314 i,
9f65e15b4f98239 Alexander Duyck 2013-09-28 315 tx_ring->tx_stats.tx_busy,
9f65e15b4f98239 Alexander Duyck 2013-09-28 316 tx_ring->tx_stats.tx_done_old);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 317 dev_info(&pf->pdev->dev,
7be78aa444794d4 Mitch Williams 2018-01-22 318 " tx_rings[%i]: size = %i\n",
7be78aa444794d4 Mitch Williams 2018-01-22 319 i, tx_ring->size);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 320 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 321 " tx_rings[%i]: DCB tc = %d\n",
9f65e15b4f98239 Alexander Duyck 2013-09-28 322 i, tx_ring->dcb_tc);
a75e8005d506f37 Kan Liang 2016-02-19 323 dev_info(&pf->pdev->dev,
40588ca6513729e Alexander Duyck 2017-12-29 324 " tx_rings[%i]: itr_setting = %d (%s)\n",
40588ca6513729e Alexander Duyck 2017-12-29 325 i, tx_ring->itr_setting,
40588ca6513729e Alexander Duyck 2017-12-29 326 ITR_IS_DYNAMIC(tx_ring->itr_setting) ? "dynamic" : "fixed");
02e9c290814cc14 Jesse Brandeburg 2013-09-11 327 }
890c402c7b11313 Ciara Loftus 2020-06-23 328 if (i40e_enabled_xdp_vsi(vsi)) {
890c402c7b11313 Ciara Loftus 2020-06-23 329 for (i = 0; i < vsi->num_queue_pairs; i++) {
890c402c7b11313 Ciara Loftus 2020-06-23 330 struct i40e_ring *xdp_ring = READ_ONCE(vsi->xdp_rings[i]);
890c402c7b11313 Ciara Loftus 2020-06-23 331
890c402c7b11313 Ciara Loftus 2020-06-23 332 if (!xdp_ring)
890c402c7b11313 Ciara Loftus 2020-06-23 333 continue;
890c402c7b11313 Ciara Loftus 2020-06-23 334
890c402c7b11313 Ciara Loftus 2020-06-23 335 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 336 " xdp_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\n",
890c402c7b11313 Ciara Loftus 2020-06-23 337 i, *xdp_ring->state,
890c402c7b11313 Ciara Loftus 2020-06-23 338 xdp_ring->queue_index,
890c402c7b11313 Ciara Loftus 2020-06-23 339 xdp_ring->reg_idx);
890c402c7b11313 Ciara Loftus 2020-06-23 340 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 341 " xdp_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\n",
890c402c7b11313 Ciara Loftus 2020-06-23 342 i,
890c402c7b11313 Ciara Loftus 2020-06-23 343 xdp_ring->next_to_use,
890c402c7b11313 Ciara Loftus 2020-06-23 344 xdp_ring->next_to_clean,
890c402c7b11313 Ciara Loftus 2020-06-23 345 xdp_ring->ring_active);
890c402c7b11313 Ciara Loftus 2020-06-23 346 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 347 " xdp_rings[%i]: tx_stats: packets = %lld, bytes = %lld, restart_queue = %lld\n",
890c402c7b11313 Ciara Loftus 2020-06-23 348 i, xdp_ring->stats.packets,
890c402c7b11313 Ciara Loftus 2020-06-23 349 xdp_ring->stats.bytes,
890c402c7b11313 Ciara Loftus 2020-06-23 350 xdp_ring->tx_stats.restart_queue);
890c402c7b11313 Ciara Loftus 2020-06-23 351 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 352 " xdp_rings[%i]: tx_stats: tx_busy = %lld, tx_done_old = %lld\n",
890c402c7b11313 Ciara Loftus 2020-06-23 353 i,
890c402c7b11313 Ciara Loftus 2020-06-23 354 xdp_ring->tx_stats.tx_busy,
890c402c7b11313 Ciara Loftus 2020-06-23 355 xdp_ring->tx_stats.tx_done_old);
890c402c7b11313 Ciara Loftus 2020-06-23 356 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 357 " xdp_rings[%i]: size = %i\n",
890c402c7b11313 Ciara Loftus 2020-06-23 358 i, xdp_ring->size);
890c402c7b11313 Ciara Loftus 2020-06-23 359 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 360 " xdp_rings[%i]: DCB tc = %d\n",
890c402c7b11313 Ciara Loftus 2020-06-23 361 i, xdp_ring->dcb_tc);
890c402c7b11313 Ciara Loftus 2020-06-23 362 dev_info(&pf->pdev->dev,
890c402c7b11313 Ciara Loftus 2020-06-23 363 " xdp_rings[%i]: itr_setting = %d (%s)\n",
890c402c7b11313 Ciara Loftus 2020-06-23 364 i, xdp_ring->itr_setting,
890c402c7b11313 Ciara Loftus 2020-06-23 365 ITR_IS_DYNAMIC(xdp_ring->itr_setting) ?
890c402c7b11313 Ciara Loftus 2020-06-23 366 "dynamic" : "fixed");
890c402c7b11313 Ciara Loftus 2020-06-23 367 }
890c402c7b11313 Ciara Loftus 2020-06-23 368 }
9f65e15b4f98239 Alexander Duyck 2013-09-28 369 rcu_read_unlock();
02e9c290814cc14 Jesse Brandeburg 2013-09-11 370 dev_info(&pf->pdev->dev,
a75e8005d506f37 Kan Liang 2016-02-19 371 " work_limit = %d\n",
a75e8005d506f37 Kan Liang 2016-02-19 372 vsi->work_limit);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 373 dev_info(&pf->pdev->dev,
1a557afc4dd59b8 Jesse Brandeburg 2016-04-20 374 " max_frame = %d, rx_buf_len = %d dtype = %d\n",
bec60fc42b28534 Jesse Brandeburg 2016-04-18 375 vsi->max_frame, vsi->rx_buf_len, 0);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 376 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 377 " num_q_vectors = %i, base_vector = %i\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 378 vsi->num_q_vectors, vsi->base_vector);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 379 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 380 " seid = %d, id = %d, uplink_seid = %d\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 381 vsi->seid, vsi->id, vsi->uplink_seid);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 382 dev_info(&pf->pdev->dev,
15369ac3e397771 Maciej Fijalkowski 2019-05-28 383 " base_queue = %d, num_queue_pairs = %d, num_tx_desc = %d, num_rx_desc = %d\n",
15369ac3e397771 Maciej Fijalkowski 2019-05-28 384 vsi->base_queue, vsi->num_queue_pairs, vsi->num_tx_desc,
15369ac3e397771 Maciej Fijalkowski 2019-05-28 385 vsi->num_rx_desc);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 386 dev_info(&pf->pdev->dev, " type = %i\n", vsi->type);
3118025a070f334 Mitch Williams 2017-04-12 387 if (vsi->type == I40E_VSI_SRIOV)
3118025a070f334 Mitch Williams 2017-04-12 388 dev_info(&pf->pdev->dev, " VF ID = %i\n", vsi->vf_id);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 389 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 390 " info: valid_sections = 0x%04x, switch_id = 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 391 vsi->info.valid_sections, vsi->info.switch_id);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 392 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 393 " info: sw_reserved[] = 0x%02x 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 394 vsi->info.sw_reserved[0], vsi->info.sw_reserved[1]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 395 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 396 " info: sec_flags = 0x%02x, sec_reserved = 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 397 vsi->info.sec_flags, vsi->info.sec_reserved);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 398 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 399 " info: pvid = 0x%04x, fcoe_pvid = 0x%04x, port_vlan_flags = 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 400 vsi->info.pvid, vsi->info.fcoe_pvid,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 401 vsi->info.port_vlan_flags);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 402 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 403 " info: pvlan_reserved[] = 0x%02x 0x%02x 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 404 vsi->info.pvlan_reserved[0], vsi->info.pvlan_reserved[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 405 vsi->info.pvlan_reserved[2]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 406 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 407 " info: ingress_table = 0x%08x, egress_table = 0x%08x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 408 vsi->info.ingress_table, vsi->info.egress_table);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 409 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 410 " info: cas_pv_stag = 0x%04x, cas_pv_flags= 0x%02x, cas_pv_reserved = 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 411 vsi->info.cas_pv_tag, vsi->info.cas_pv_flags,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 412 vsi->info.cas_pv_reserved);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 413 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 414 " info: queue_mapping[0..7 ] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 415 vsi->info.queue_mapping[0], vsi->info.queue_mapping[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 416 vsi->info.queue_mapping[2], vsi->info.queue_mapping[3],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 417 vsi->info.queue_mapping[4], vsi->info.queue_mapping[5],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 418 vsi->info.queue_mapping[6], vsi->info.queue_mapping[7]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 419 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 420 " info: queue_mapping[8..15] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 421 vsi->info.queue_mapping[8], vsi->info.queue_mapping[9],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 422 vsi->info.queue_mapping[10], vsi->info.queue_mapping[11],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 423 vsi->info.queue_mapping[12], vsi->info.queue_mapping[13],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 424 vsi->info.queue_mapping[14], vsi->info.queue_mapping[15]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 425 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 426 " info: tc_mapping[] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 427 vsi->info.tc_mapping[0], vsi->info.tc_mapping[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 428 vsi->info.tc_mapping[2], vsi->info.tc_mapping[3],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 429 vsi->info.tc_mapping[4], vsi->info.tc_mapping[5],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 430 vsi->info.tc_mapping[6], vsi->info.tc_mapping[7]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 431 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 432 " info: queueing_opt_flags = 0x%02x queueing_opt_reserved[0..2] = 0x%02x 0x%02x 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 433 vsi->info.queueing_opt_flags,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 434 vsi->info.queueing_opt_reserved[0],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 435 vsi->info.queueing_opt_reserved[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 436 vsi->info.queueing_opt_reserved[2]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 437 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 438 " info: up_enable_bits = 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 439 vsi->info.up_enable_bits);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 440 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 441 " info: sched_reserved = 0x%02x, outer_up_table = 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 442 vsi->info.sched_reserved, vsi->info.outer_up_table);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 443 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 444 " info: cmd_reserved[] = 0x%02x 0x%02x 0x%02x 0x0%02x 0x%02x 0x%02x 0x%02x 0x0%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 445 vsi->info.cmd_reserved[0], vsi->info.cmd_reserved[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 446 vsi->info.cmd_reserved[2], vsi->info.cmd_reserved[3],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 447 vsi->info.cmd_reserved[4], vsi->info.cmd_reserved[5],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 448 vsi->info.cmd_reserved[6], vsi->info.cmd_reserved[7]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 449 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 450 " info: qs_handle[] = 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 451 vsi->info.qs_handle[0], vsi->info.qs_handle[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 452 vsi->info.qs_handle[2], vsi->info.qs_handle[3],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 453 vsi->info.qs_handle[4], vsi->info.qs_handle[5],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 454 vsi->info.qs_handle[6], vsi->info.qs_handle[7]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 455 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 456 " info: stat_counter_idx = 0x%04x, sched_id = 0x%04x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 457 vsi->info.stat_counter_idx, vsi->info.sched_id);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 458 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 459 " info: resp_reserved[] = 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 460 vsi->info.resp_reserved[0], vsi->info.resp_reserved[1],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 461 vsi->info.resp_reserved[2], vsi->info.resp_reserved[3],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 462 vsi->info.resp_reserved[4], vsi->info.resp_reserved[5],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 463 vsi->info.resp_reserved[6], vsi->info.resp_reserved[7],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 464 vsi->info.resp_reserved[8], vsi->info.resp_reserved[9],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 465 vsi->info.resp_reserved[10], vsi->info.resp_reserved[11]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 466 dev_info(&pf->pdev->dev, " idx = %d\n", vsi->idx);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 467 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 468 " tc_config: numtc = %d, enabled_tc = 0x%x\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 469 vsi->tc_config.numtc, vsi->tc_config.enabled_tc);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 470 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {
02e9c290814cc14 Jesse Brandeburg 2013-09-11 471 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 472 " tc_config: tc = %d, qoffset = %d, qcount = %d, netdev_tc = %d\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 473 i, vsi->tc_config.tc_info[i].qoffset,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 474 vsi->tc_config.tc_info[i].qcount,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 475 vsi->tc_config.tc_info[i].netdev_tc);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 476 }
02e9c290814cc14 Jesse Brandeburg 2013-09-11 477 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 478 " bw: bw_limit = %d, bw_max_quanta = %d\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 479 vsi->bw_limit, vsi->bw_max_quanta);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 480 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {
02e9c290814cc14 Jesse Brandeburg 2013-09-11 481 dev_info(&pf->pdev->dev,
02e9c290814cc14 Jesse Brandeburg 2013-09-11 482 " bw[%d]: ets_share_credits = %d, ets_limit_credits = %d, max_quanta = %d\n",
02e9c290814cc14 Jesse Brandeburg 2013-09-11 483 i, vsi->bw_ets_share_credits[i],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 484 vsi->bw_ets_limit_credits[i],
02e9c290814cc14 Jesse Brandeburg 2013-09-11 485 vsi->bw_ets_max_quanta[i]);
02e9c290814cc14 Jesse Brandeburg 2013-09-11 486 }
02e9c290814cc14 Jesse Brandeburg 2013-09-11 487 }
02e9c290814cc14 Jesse Brandeburg 2013-09-11 488
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[davidhildenbrand:foll_unshare 1/2] net/phonet/sysctl.c:24:8: error: field designator 'seqcount' does not refer to any field in type 'seqcount_t' (aka 'struct seqcount')
by kernel test robot
tree: git://github.com/davidhildenbrand/linux foll_unshare
head: f4b54ddc31ca94dedc57a3aab1f42d348537a31b
commit: f270db76384cb1df5a7f1b67226a8c8515583e5f [1/2] seqlock: provide lockdep-free raw_seqcount_t variant
config: riscv-buildonly-randconfig-r003-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090736.d9HFdWOz-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/davidhildenbrand/linux/commit/f270db76384cb1df5a7f1b67...
git remote add davidhildenbrand git://github.com/davidhildenbrand/linux
git fetch --no-tags davidhildenbrand foll_unshare
git checkout f270db76384cb1df5a7f1b67226a8c8515583e5f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash net/phonet/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from net/phonet/sysctl.c:17:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from net/phonet/sysctl.c:17:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from net/phonet/sysctl.c:17:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> net/phonet/sysctl.c:24:8: error: field designator 'seqcount' does not refer to any field in type 'seqcount_t' (aka 'struct seqcount')
static DEFINE_SEQLOCK(local_port_range_lock);
^
include/linux/seqlock.h:907:18: note: expanded from macro 'DEFINE_SEQLOCK'
seqlock_t sl = __SEQLOCK_UNLOCKED(sl)
^
include/linux/seqlock.h:888:15: note: expanded from macro '__SEQLOCK_UNLOCKED'
.seqcount = SEQCNT_SPINLOCK_ZERO(lockname, &(lockname).lock), \
^
include/linux/seqlock.h:358:42: note: expanded from macro 'SEQCNT_SPINLOCK_ZERO'
#define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock)
^
include/linux/seqlock.h:353:15: note: expanded from macro 'SEQCOUNT_LOCKNAME_ZERO'
.seqcount = SEQCNT_ZERO(seq_name.seqcount), \
^
include/linux/seqlock.h:141:30: note: expanded from macro 'SEQCNT_ZERO'
#define SEQCNT_ZERO(name) { .seqcount = RAW_SEQCNT_ZERO(), SEQCOUNT_DEP_MAP_INIT(name) }
^
7 warnings and 1 error generated.
vim +24 net/phonet/sysctl.c
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 23
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 @24 static DEFINE_SEQLOCK(local_port_range_lock);
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 25 static int local_port_range_min[2] = {0, 0};
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 26 static int local_port_range_max[2] = {1023, 1023};
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 27 static int local_port_range[2] = {DYNAMIC_PORT_MIN, DYNAMIC_PORT_MAX};
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 28 static struct ctl_table_header *phonet_table_hrd;
87ab4e20b445c6d Remi Denis-Courmont 2008-09-22 29
:::::: The code at line 24 was first introduced by commit
:::::: 87ab4e20b445c6d2d2727ab4f96fa17f7259511e Phonet: proc interface for port range
:::::: TO: Remi Denis-Courmont <remi.denis-courmont(a)nokia.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH v3 11/18] tcp: ipv4: Add AO signing for skb-less replies
by kernel test robot
Hi Leonard,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 1fe5b01262844be03de98afdd56d1d393df04d7e]
url: https://github.com/0day-ci/linux/commits/Leonard-Crestez/tcp-Initial-supp...
base: 1fe5b01262844be03de98afdd56d1d393df04d7e
config: openrisc-randconfig-r014-20211208 (https://download.01.org/0day-ci/archive/20211209/202112090745.LdVOpiG4-lk...)
compiler: or1k-linux-gcc (GCC) 11.2.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/0day-ci/linux/commit/8d4bf3a9b770cb44bf4e37e794e63f7db...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20211208-194125
git checkout 8d4bf3a9b770cb44bf4e37e794e63f7db7a08cb6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash net/ipv4/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
net/ipv4/tcp_ipv4.c: In function 'tcp_v4_send_ack':
>> net/ipv4/tcp_ipv4.c:909:52: warning: parameter 'key' set but not used [-Wunused-but-set-parameter]
909 | struct tcp_md5sig_key *key,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
vim +/key +909 net/ipv4/tcp_ipv4.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 901
^1da177e4c3f41 Linus Torvalds 2005-04-16 902 /* The code following below sending ACKs in SYN-RECV and TIME-WAIT states
^1da177e4c3f41 Linus Torvalds 2005-04-16 903 outside socket context is ugly, certainly. What can I do?
^1da177e4c3f41 Linus Torvalds 2005-04-16 904 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 905
e2d118a1cb5e60 Lorenzo Colitti 2016-11-04 906 static void tcp_v4_send_ack(const struct sock *sk,
e62a123b8ef7c5 Eric Dumazet 2016-01-21 907 struct sk_buff *skb, u32 seq, u32 ack,
ee684b6f283004 Andrey Vagin 2013-02-11 908 u32 win, u32 tsval, u32 tsecr, int oif,
88ef4a5a78e634 KOVACS Krisztian 2008-10-01 @909 struct tcp_md5sig_key *key,
66b13d99d96a1a Eric Dumazet 2011-10-24 910 int reply_flags, u8 tos)
^1da177e4c3f41 Linus Torvalds 2005-04-16 911 {
cf533ea53ebfae Eric Dumazet 2011-10-21 912 const struct tcphdr *th = tcp_hdr(skb);
^1da177e4c3f41 Linus Torvalds 2005-04-16 913 struct {
^1da177e4c3f41 Linus Torvalds 2005-04-16 914 struct tcphdr th;
714e85be355722 Al Viro 2006-11-14 915 __be32 opt[(TCPOLEN_TSTAMP_ALIGNED >> 2)
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 916 #ifdef CONFIG_TCP_MD5SIG
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 917 + (TCPOLEN_MD5SIG_ALIGNED >> 2)
8d4bf3a9b770cb Leonard Crestez 2021-12-08 918 #elif defined(CONFIG_TCP_AUTHOPT)
8d4bf3a9b770cb Leonard Crestez 2021-12-08 919 + (TCPOLEN_AUTHOPT_OUTPUT >> 2)
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 920 #endif
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 921 ];
^1da177e4c3f41 Linus Torvalds 2005-04-16 922 } rep;
e2d118a1cb5e60 Lorenzo Colitti 2016-11-04 923 struct net *net = sock_net(sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 924 struct ip_reply_arg arg;
00483690552c5f Jon Maxwell 2018-05-10 925 struct sock *ctl_sk;
d6fb396cfaa71a Eric Dumazet 2019-06-13 926 u64 transmit_time;
^1da177e4c3f41 Linus Torvalds 2005-04-16 927
^1da177e4c3f41 Linus Torvalds 2005-04-16 928 memset(&rep.th, 0, sizeof(struct tcphdr));
7174259e6ced15 Arnaldo Carvalho de Melo 2006-11-17 929 memset(&arg, 0, sizeof(arg));
^1da177e4c3f41 Linus Torvalds 2005-04-16 930
^1da177e4c3f41 Linus Torvalds 2005-04-16 931 arg.iov[0].iov_base = (unsigned char *)&rep;
^1da177e4c3f41 Linus Torvalds 2005-04-16 932 arg.iov[0].iov_len = sizeof(rep.th);
ee684b6f283004 Andrey Vagin 2013-02-11 933 if (tsecr) {
cfb6eeb4c86059 YOSHIFUJI Hideaki 2006-11-14 934 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
^1da177e4c3f41 Linus Torvalds 2005-04-16 935 (TCPOPT_TIMESTAMP << 8) |
^1da177e4c3f41 Linus Torvalds 2005-04-16 936 TCPOLEN_TIMESTAMP);
ee684b6f283004 Andrey Vagin 2013-02-11 937 rep.opt[1] = htonl(tsval);
ee684b6f283004 Andrey Vagin 2013-02-11 938 rep.opt[2] = htonl(tsecr);
cb48cfe8079ddd Craig Schlenter 2007-01-09 939 arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED;
^1da177e4c3f41 Linus Torvalds 2005-04-16 940 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 941
^1da177e4c3f41 Linus Torvalds 2005-04-16 942 /* Swap the send and the receive. */
^1da177e4c3f41 Linus Torvalds 2005-04-16 943 rep.th.dest = th->source;
^1da177e4c3f41 Linus Torvalds 2005-04-16 944 rep.th.source = th->dest;
^1da177e4c3f41 Linus Torvalds 2005-04-16 945 rep.th.doff = arg.iov[0].iov_len / 4;
^1da177e4c3f41 Linus Torvalds 2005-04-16 946 rep.th.seq = htonl(seq);
^1da177e4c3f41 Linus Torvalds 2005-04-16 947 rep.th.ack_seq = htonl(ack);
^1da177e4c3f41 Linus Torvalds 2005-04-16 948 rep.th.ack = 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 949 rep.th.window = htons(win);
^1da177e4c3f41 Linus Torvalds 2005-04-16 950
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[tobetter:odroid-5.16.y 47/75] drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.16.y
head: 04f296b5f991198f16f76ba15a23e9e00e30aac4
commit: 2c677a9186d050d7da424a02db0ab29d4796bb7d [47/75] ODROID-COMMON: power:reset: Add odroid support
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211209/202112090748.XBcFY507-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.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/tobetter/linux/commit/2c677a9186d050d7da424a02db0ab29d...
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.16.y
git checkout 2c677a9186d050d7da424a02db0ab29d4796bb7d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/power/reset/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset' [-Wmissing-prototypes]
63 | void odroid_card_reset(void)
| ^~~~~~~~~~~~~~~~~
drivers/power/reset/odroid-reboot.c: In function 'odroid_restart_probe':
drivers/power/reset/odroid-reboot.c:141:17: error: 'arm_pm_restart' undeclared (first use in this function); did you mean 'alarm_restart'?
141 | arm_pm_restart = do_odroid_restart;
| ^~~~~~~~~~~~~~
| alarm_restart
drivers/power/reset/odroid-reboot.c:141:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/odroid_card_reset +63 drivers/power/reset/odroid-reboot.c
62
> 63 void odroid_card_reset(void)
64 {
65 int ret = 0;
66
67 if ((sd_vqsw == 0) && (sd_vmmc == 0))
68 return;
69
70 if (sd_vqen == 0) {
71 gpio_free(sd_vqsw);
72 gpio_free(sd_vmmc);
73 ret = gpio_request_one(sd_vqsw,
74 GPIOF_OUT_INIT_LOW, "REBOOT");
75 CHECK_RET(ret);
76 mdelay(10);
77 ret = gpio_direction_output(sd_vqsw, 1);
78 CHECK_RET(ret);
79 ret = gpio_request_one(sd_vmmc,
80 GPIOF_OUT_INIT_LOW, "REBOOT");
81 CHECK_RET(ret);
82 mdelay(10);
83 ret = gpio_direction_output(sd_vqsw, 0);
84 CHECK_RET(ret);
85 ret = gpio_direction_output(sd_vmmc, 1);
86 CHECK_RET(ret);
87 mdelay(5);
88 gpio_free(sd_vqsw);
89 gpio_free(sd_vmmc);
90 } else {
91 gpio_free(sd_vqsw);
92 gpio_free(sd_vqen);
93 gpio_free(sd_vmmc);
94
95 ret = gpio_request_one(sd_vqsw,
96 GPIOF_OUT_INIT_LOW, "REBOOT");
97 CHECK_RET(ret);
98 ret = gpio_request_one(sd_vqen,
99 GPIOF_OUT_INIT_LOW, "REBOOT");
100 CHECK_RET(ret);
101 ret = gpio_request_one(sd_vmmc,
102 GPIOF_OUT_INIT_LOW, "REBOOT");
103 CHECK_RET(ret);
104 mdelay(100);
105 ret = gpio_direction_input(sd_vqen);
106 CHECK_RET(ret);
107 ret = gpio_direction_input(sd_vmmc);
108 CHECK_RET(ret);
109 ret = gpio_direction_input(sd_vqsw);
110 CHECK_RET(ret);
111 mdelay(5);
112 gpio_free(sd_vqen);
113 gpio_free(sd_vmmc);
114 gpio_free(sd_vqsw);
115 }
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[tobetter:odroid-5.16.y 2/75] drivers/gpu/drm/exynos/exynos_hdmi.c:728:10: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 360 to 104
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.16.y
head: 04f296b5f991198f16f76ba15a23e9e00e30aac4
commit: 4815fc21476f578fcfe6e1dc48f32f1f952acd01 [2/75] ODROID-XU4: drm/exynos: add new HDMI PHY pll and resolutions + pre-build EDIDs
config: arm-randconfig-c002-20211209 (https://download.01.org/0day-ci/archive/20211209/202112090757.DdbQ7gPu-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/tobetter/linux/commit/4815fc21476f578fcfe6e1dc48f32f1f...
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.16.y
git checkout 4815fc21476f578fcfe6e1dc48f32f1f952acd01
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/exynos/ dtbs
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/exynos/exynos_hdmi.c:728:10: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 360 to 104 [-Wconstant-conversion]
0x8D, 0x168, 0xF5, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
^~~~~
drivers/gpu/drm/exynos/exynos_hdmi.c:727:37: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 400 to 144 [-Wconstant-conversion]
0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF,
^~~~~
drivers/gpu/drm/exynos/exynos_hdmi.c:727:30: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 1048 to 24 [-Wconstant-conversion]
0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF,
^~~~~
drivers/gpu/drm/exynos/exynos_hdmi.c:727:22: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 5656 to 24 [-Wconstant-conversion]
0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF,
^~~~~~
4 warnings generated.
vim +728 drivers/gpu/drm/exynos/exynos_hdmi.c
397
398 static const struct hdmiphy_config hdmiphy_5420_configs[] = {
399 {
400 .pixel_clock = 25200000,
401 .conf = {
402 0x01, 0x52, 0x3F, 0x55, 0x40, 0x01, 0x00, 0xC8,
403 0x82, 0xC8, 0xBD, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
404 0x06, 0x80, 0x01, 0x84, 0x05, 0x02, 0x24, 0x66,
405 0x54, 0xF4, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
406 },
407 },
408 {
409 .pixel_clock = 27000000,
410 .conf = {
411 0x01, 0xD1, 0x22, 0x51, 0x40, 0x08, 0xFC, 0xE0,
412 0x98, 0xE8, 0xCB, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
413 0x06, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
414 0x54, 0xE4, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
415 },
416 },
417 {
418 .pixel_clock = 27027000,
419 .conf = {
420 0x01, 0xD1, 0x2D, 0x72, 0x40, 0x64, 0x12, 0xC8,
421 0x43, 0xE8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
422 0x26, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
423 0x54, 0xE3, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
424 },
425 },
426 {
427 .pixel_clock = 31490000,
428 .conf = {
429 0x01, 0xD1, 0x34, 0x74, 0x44, 0x3C, 0x3A, 0xC2,
430 0x81, 0xE8, 0x3B, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
431 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
432 0x54, 0xC3, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
433 },
434 },
435 {
436 .pixel_clock = 32000000,
437 .conf = {
438 0x01, 0x51, 0x28, 0x55, 0x44, 0x40, 0x00, 0xC8,
439 0x02, 0xC8, 0xF0, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
440 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
441 0x54, 0x80, 0x25, 0x01, 0x00, 0x00, 0x01, 0x80,
442 },
443 },
444 /*
445 * To support Vu5A, pixel clock 33.9MHz is needed
446 * but we don't have the exact HDMI PHY table
447 * so as a workaround, the closest table will be used.
448 */
449 {
450 .pixel_clock = 33900000,
451 .conf = {
452 0x01, 0x51, 0x28, 0x55, 0x44, 0x40, 0x00, 0xC8,
453 0x02, 0xC8, 0xF0, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
454 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
455 0x54, 0x80, 0x25, 0x01, 0x00, 0x00, 0x01, 0x80,
456 },
457 },
458 {
459 .pixel_clock = 36000000,
460 .conf = {
461 0x01, 0x51, 0x2D, 0x55, 0x40, 0x40, 0x00, 0xC8,
462 0x02, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
463 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
464 0x54, 0xAB, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
465 },
466 },
467 {
468 .pixel_clock = 40000000,
469 .conf = {
470 0x01, 0xD1, 0x21, 0x31, 0x40, 0x3C, 0x28, 0xC8,
471 0x87, 0xE8, 0xC8, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
472 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
473 0x54, 0x9A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
474 },
475 },
476 /*
477 * To support Vu7A+, pixel clock 49MHz is needed
478 * but we don't have the exact HDMI PHY table
479 * so as a workaround, the closest table will be used.
480 */
481 {
482 .pixel_clock = 49000000,
483 .conf = {
484 0x01, 0x51, 0x2A, 0x32, 0x42, 0x30, 0x00, 0xC4,
485 0x83, 0xE8, 0xFC, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
486 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
487 0x54, 0x7A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
488 },
489 },
490 {
491 .pixel_clock = 50400000,
492 .conf = {
493 0x01, 0x51, 0x2A, 0x32, 0x42, 0x30, 0x00, 0xC4,
494 0x83, 0xE8, 0xFC, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
495 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
496 0x54, 0x7A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
497 },
498 },
499 {
500 .pixel_clock = 65000000,
501 .conf = {
502 0x01, 0xD1, 0x36, 0x34, 0x40, 0x0C, 0x04, 0xC8,
503 0x82, 0xE8, 0x45, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
504 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
505 0x54, 0xBD, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
506 },
507 },
508 {
509 .pixel_clock = 71000000,
510 .conf = {
511 0x01, 0xD1, 0x3B, 0x35, 0x40, 0x0C, 0x04, 0xC8,
512 0x85, 0xE8, 0x63, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
513 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
514 0x54, 0x57, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
515 },
516 },
517 {
518 .pixel_clock = 73250000,
519 .conf = {
520 0x01, 0xD1, 0x1F, 0x10, 0x40, 0x78, 0x8D, 0xC8,
521 0x81, 0xE8, 0xB7, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
522 0x56, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
523 0x54, 0xA8, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
524 },
525 },
526 {
527 .pixel_clock = 74170000,
528 .conf = {
529 0x01, 0xD1, 0x1F, 0x10, 0x40, 0x5B, 0xEF, 0xC8,
530 0x81, 0xE8, 0xB9, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
531 0x56, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
532 0x54, 0xA6, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
533 },
534 },
535 {
536 .pixel_clock = 74250000,
537 .conf = {
538 0x01, 0xD1, 0x1F, 0x10, 0x40, 0x40, 0xF8, 0x08,
539 0x81, 0xE8, 0xBA, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
540 0x26, 0x80, 0x09, 0x84, 0x05, 0x22, 0x24, 0x66,
541 0x54, 0xA5, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
542 },
543 },
544 {
545 .pixel_clock = 80140000,
546 .conf = {
547 0x01, 0xD1, 0x21, 0x11, 0x40, 0x3C, 0x2F, 0xC8,
548 0x87, 0xE8, 0xC8, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
549 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
550 0x54, 0x99, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
551 },
552 },
553 {
554 .pixel_clock = 83500000,
555 .conf = {
556 0x01, 0xD1, 0x23, 0x11, 0x40, 0x0C, 0xFB, 0xC8,
557 0x85, 0xE8, 0xD1, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
558 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
559 0x54, 0x4A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
560 },
561 },
562 {
563 .pixel_clock = 84750000,
564 .conf = {
565 0x01, 0xD1, 0x23, 0x11, 0x40, 0x30, 0x1E, 0xC7,
566 0x84, 0xE8, 0xD4, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
567 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
568 0x54, 0x48, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
569 },
570 },
571 {
572 .pixel_clock = 85860000,
573 .conf = {
574 0x01, 0xD1, 0x24, 0x11, 0x40, 0x30, 0xD2, 0xC8,
575 0x84, 0xE8, 0xD5, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
576 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
577 0x54, 0x48, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
578 },
579 },
580 {
581 .pixel_clock = 88750000,
582 .conf = {
583 0x01, 0xD1, 0x25, 0x11, 0x40, 0x18, 0xFF, 0xC8,
584 0x83, 0xE8, 0xDE, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
585 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
586 0x54, 0x45, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
587 },
588 },
589 {
590 .pixel_clock = 89750000,
591 .conf = {
592 0x01, 0xD1, 0x25, 0x11, 0x40, 0x30, 0x26, 0xC9,
593 0x83, 0xE8, 0xE0, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
594 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
595 0x54, 0x89, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
596 },
597 },
598 {
599 .pixel_clock = 104990000,
600 .conf = {
601 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x78, 0xC3, 0xC2,
602 0x81, 0xE8, 0x06, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
603 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
604 0x54, 0x3B, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
605 },
606 },
607 {
608 .pixel_clock = 106500000,
609 .conf = {
610 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x0C, 0x09, 0xC8,
611 0x84, 0xE8, 0x0A, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
612 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
613 0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
614 },
615 },
616 {
617 .pixel_clock = 106560000,
618 .conf = {
619 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x78, 0x73, 0xCA,
620 0x85, 0xE8, 0x0B, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
621 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
622 0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
623 },
624 },
625 {
626 .pixel_clock = 107800000,
627 .conf = {
628 0x01, 0x51, 0x2D, 0x15, 0x40, 0x01, 0x00, 0xC8,
629 0x82, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
630 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
631 0x54, 0xC7, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
632 },
633 },
634 {
635 .pixel_clock = 108000000,
636 .conf = {
637 0x01, 0x51, 0x2D, 0x15, 0x40, 0x01, 0x00, 0xC8,
638 0x82, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
639 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
640 0x54, 0xC7, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
641 },
642 },
643 {
644 .pixel_clock = 115500000,
645 .conf = {
646 0x01, 0xD1, 0x30, 0x14, 0x40, 0x0C, 0x03, 0xC8,
647 0x88, 0xE8, 0x21, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
648 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
649 0x54, 0x6A, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
650 },
651 },
652 {
653 .pixel_clock = 119000000,
654 .conf = {
655 0x01, 0xD1, 0x31, 0x14, 0x40, 0x78, 0x41, 0xCB,
656 0x89, 0xE8, 0x28, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
657 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
658 0x54, 0x68, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
659 },
660 },
661 {
662 .pixel_clock = 122000000,
663 .conf = {
664 0x01, 0xD1, 0x33, 0x14, 0x40, 0x30, 0xF0, 0xC8,
665 0x85, 0xE8, 0x31, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
666 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
667 0x54, 0x65, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
668 },
669 },
670 {
671 .pixel_clock = 125590000,
672 .conf = {
673 0x01, 0xD1, 0x34, 0x14, 0x40, 0x78, 0x4F, 0xC2,
674 0x81, 0xE8, 0x3A, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
675 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
676 0x54, 0x87, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
677 },
678 },
679 {
680 .pixel_clock = 146250000,
681 .conf = {
682 0x01, 0xD1, 0x3D, 0x15, 0x40, 0x18, 0xFD, 0xC8,
683 0x83, 0xE8, 0x6E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
684 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
685 0x54, 0x54, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
686 },
687 },
688 {
689 .pixel_clock = 148500000,
690 .conf = {
691 0x01, 0xD1, 0x1F, 0x00, 0x40, 0x40, 0xF8, 0x08,
692 0x81, 0xE8, 0xBA, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
693 0x26, 0x80, 0x09, 0x84, 0x05, 0x22, 0x24, 0x66,
694 0x54, 0x4B, 0x25, 0x03, 0x00, 0x80, 0x01, 0x80,
695 },
696 },
697 {
698 .pixel_clock = 154000000,
699 .conf = {
700 0x01, 0xD1, 0x20, 0x01, 0x40, 0x30, 0x08, 0xCC,
701 0x8C, 0xE8, 0xC1, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
702 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
703 0x54, 0x3F, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
704 },
705 },
706 {
707 .pixel_clock = 162000000,
708 .conf = {
709 0x01, 0xD1, 0x22, 0x01, 0x40, 0x30, 0xD4, 0xCD,
710 0x89, 0xE8, 0xC9, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
711 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
712 0x54, 0x31, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
713 },
714 },
715 {
716 .pixel_clock = 164100000,
717 .conf = {
718 0x01, 0xD1, 0x22, 0x89, 0x49, 0xB0, 0x15, 0xCE,
719 0x8A, 0xF8, 0xCD, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
720 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
721 0x54, 0x2B, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80,
722 },
723 },
724 {
725 .pixel_clock = 196900000,
726 .conf = {
727 0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF,
> 728 0x8D, 0x168, 0xF5, 0xD8, 0x45, 0xA0, 0xAC, 0x80,
729 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
730 0x54, 0xFA, 0x24, 0x03, 0x00, 0x00, 0x01, 0x80,
731 },
732 },
733 {
734 .pixel_clock = 204800000,
735 .conf = {
736 0x01, 0xD1, 0x2B, 0x02, 0x40, 0x30, 0xE0, 0xC8,
737 0x85, 0xE8, 0x00, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
738 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86,
739 0x54, 0x3C, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80,
740 },
741 },
742 };
743
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks