From: kernel test robot <lkp@intel.com>
To: Michal Wilczynski <michal.wilczynski@intel.com>,
intel-wired-lan@lists.osuosl.org
Cc: kbuild-all@lists.01.org, Michal Wilczynski <michal.wilczynski@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH net-next v6 4/4] ice: Add txbalancing devlink param
Date: Thu, 21 Jul 2022 01:17:16 +0800 [thread overview]
Message-ID: <202207210108.7ZpVcgDQ-lkp@intel.com> (raw)
In-Reply-To: <20220720144004.14250-5-michal.wilczynski@intel.com>
Hi Michal,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Michal-Wilczynski/ice-Support-5-layer-tx-scheduler-topology/20220720-224322
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5fb859f79f4f49d9df16bac2b3a84a6fa3aaccf1
config: x86_64-randconfig-a002 (https://download.01.org/0day-ci/archive/20220721/202207210108.7ZpVcgDQ-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/15b804e74b266402a1af3d04b1b3106d06670c23
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Michal-Wilczynski/ice-Support-5-layer-tx-scheduler-topology/20220720-224322
git checkout 15b804e74b266402a1af3d04b1b3106d06670c23
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/intel/ice/ice_devlink.c:389:5: warning: no previous prototype for 'ice_get_tx_topo_user_sel' [-Wmissing-prototypes]
389 | int ice_get_tx_topo_user_sel(struct ice_pf *pf, bool *txbalance_ena)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/intel/ice/ice_devlink.c:421:1: warning: no previous prototype for 'ice_update_tx_topo_user_sel' [-Wmissing-prototypes]
421 | ice_update_tx_topo_user_sel(struct ice_pf *pf, bool txbalance_ena)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ice_get_tx_topo_user_sel +389 drivers/net/ethernet/intel/ice/ice_devlink.c
379
380 /**
381 * ice_get_tx_topo_user_sel - Read user's choice from flash
382 * @pf: pointer to pf structure
383 * @txbalance_ena: value read from flash will be saved here
384 *
385 * Reads user's preference for Tx Scheduler Topology Tree from PFA TLV.
386 *
387 * Returns zero when read was successful, negative values otherwise.
388 */
> 389 int ice_get_tx_topo_user_sel(struct ice_pf *pf, bool *txbalance_ena)
390 {
391 struct ice_aqc_nvm_tx_topo_user_sel usr_sel = {};
392 struct ice_hw *hw = &pf->hw;
393 int status;
394
395 status = ice_acquire_nvm(hw, ICE_RES_READ);
396 if (status)
397 return status;
398
399 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_TX_TOPO_MOD_ID, 0,
400 sizeof(usr_sel), &usr_sel, true, true, NULL);
401 ice_release_nvm(hw);
402
403 *txbalance_ena = usr_sel.data & ICE_AQC_NVM_TX_TOPO_USER_SEL;
404
405 return status;
406 }
407
408 /**
409 * ice_update_tx_topo_user_sel - Save user's preference in flash
410 * @pf: pointer to pf structure
411 * @txbalance_ena: value to be saved in flash
412 *
413 * When txbalance_ena is set to true it means user's preference is to use
414 * five layer Tx Scheduler Topology Tree, when it is set to false then it is
415 * nine layer. This choice should be stored in PFA TLV field and should be
416 * picked up by driver, next time during init.
417 *
418 * Returns zero when save was successful, negative values otherwise.
419 */
420 int
> 421 ice_update_tx_topo_user_sel(struct ice_pf *pf, bool txbalance_ena)
422 {
423 struct ice_aqc_nvm_tx_topo_user_sel usr_sel = {};
424 struct ice_hw *hw = &pf->hw;
425 int status;
426
427 status = ice_acquire_nvm(hw, ICE_RES_WRITE);
428 if (status)
429 return status;
430
431 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_TX_TOPO_MOD_ID, 0,
432 sizeof(usr_sel), &usr_sel, true, true, NULL);
433 if (status)
434 goto exit_release_res;
435
436 if (txbalance_ena)
437 usr_sel.data |= ICE_AQC_NVM_TX_TOPO_USER_SEL;
438 else
439 usr_sel.data &= ~ICE_AQC_NVM_TX_TOPO_USER_SEL;
440
441 status = ice_write_one_nvm_block(pf, ICE_AQC_NVM_TX_TOPO_MOD_ID, 2,
442 sizeof(usr_sel.data), &usr_sel.data,
443 true, NULL, NULL);
444
445 exit_release_res:
446 ice_release_nvm(hw);
447
448 return status;
449 }
450
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
next prev parent reply other threads:[~2022-07-20 17:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-20 14:40 [Intel-wired-lan] [PATCH net-next v6 0/4] ice: Support 5 layer tx scheduler topology Michal Wilczynski
2022-07-20 14:40 ` [Intel-wired-lan] [PATCH net-next v6 1/4] ice: Support 5 layer topology Michal Wilczynski
2022-07-20 14:40 ` [Intel-wired-lan] [PATCH net-next v6 2/4] ice: Adjust the VSI/Aggregator layers Michal Wilczynski
2022-07-20 14:40 ` [Intel-wired-lan] [PATCH net-next v6 3/4] ice: Enable switching default tx scheduler topology Michal Wilczynski
2022-07-20 14:40 ` [Intel-wired-lan] [PATCH net-next v6 4/4] ice: Add txbalancing devlink param Michal Wilczynski
2022-07-20 17:17 ` kernel test robot [this message]
2022-07-20 23:17 ` Tony Nguyen
2022-07-21 14:46 ` Wilczynski, Michal
2022-07-21 1:13 ` kernel test robot
2022-07-20 23:17 ` [Intel-wired-lan] [PATCH net-next v6 0/4] ice: Support 5 layer tx scheduler topology Tony Nguyen
2022-07-21 12:03 ` Wilczynski, Michal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202207210108.7ZpVcgDQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=kbuild-all@lists.01.org \
--cc=michal.wilczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox