All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 06/21] mlx5: add header_split flag
Date: Fri, 19 Jun 2020 08:17:33 +0800	[thread overview]
Message-ID: <202006190855.mddY8cxV%lkp@intel.com> (raw)
In-Reply-To: <20200618160941.879717-7-jonathan.lemon@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4231 bytes --]

Hi Jonathan,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net/master]
[also build test WARNING on linus/master v5.8-rc1 next-20200618]
[cannot apply to char-misc/char-misc-testing net-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jonathan-Lemon/netgpu-networking-between-NIC-and-GPU-CPU/20200619-001526
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git ef7232da6bcd4294cbb2d424bc35885721570f01
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_alloc_rq':
drivers/net/ethernet/mellanox/mlx5/core/en_main.c:380:6: warning: unused variable 'num_xsk_frames' [-Wunused-variable]
380 |  u32 num_xsk_frames = 0;
|      ^~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13,
from include/asm-generic/bug.h:19,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/refcount.h:96,
from include/net/act_api.h:9,
from include/net/tc_act/tc_gact.h:5,
from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:33:
drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_build_rq_frags_info':
<<                  from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:42:
>> drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2097:24: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
2097 |              PAGE_SIZE :
include/linux/log2.h:176:4: note: in definition of macro 'roundup_pow_of_two'
176 |   (n == 1) ? 1 :            |    ^

vim +2097 drivers/net/ethernet/mellanox/mlx5/core/en_main.c

  2060	
  2061		if (!hd_split && mlx5e_rx_is_linear_skb(params, xsk)) {
  2062			int frag_stride;
  2063	
  2064			frag_stride = mlx5e_rx_get_linear_frag_sz(params, xsk);
  2065			frag_stride = roundup_pow_of_two(frag_stride);
  2066	
  2067			info->arr[0].frag_size = byte_count;
  2068			info->arr[0].frag_stride = frag_stride;
  2069			info->num_frags = 1;
  2070			info->wqe_bulk = PAGE_SIZE / frag_stride;
  2071			goto out;
  2072		}
  2073	
  2074		if (byte_count > PAGE_SIZE +
  2075		    (MLX5E_MAX_RX_FRAGS - 1) * frag_size_max)
  2076			frag_size_max = PAGE_SIZE;
  2077	
  2078		i = 0;
  2079	
  2080		if (hd_split) {
  2081			// Start with one fragment for all headers (implementing HDS)
  2082			info->arr[0].frag_size = TOTAL_HEADERS;
  2083			info->arr[0].frag_stride = roundup_pow_of_two(PAGE_SIZE);
  2084			buf_size += TOTAL_HEADERS;
  2085			// Now, continue with the payload frags.
  2086			i = 1;
  2087		}
  2088	
  2089		while (buf_size < byte_count) {
  2090			int frag_size = byte_count - buf_size;
  2091	
  2092			if (i < MLX5E_MAX_RX_FRAGS - 1)
  2093				frag_size = min(frag_size, frag_size_max);
  2094	
  2095			info->arr[i].frag_size = frag_size;
  2096			info->arr[i].frag_stride = roundup_pow_of_two(hd_split ?
> 2097								      PAGE_SIZE :
  2098								      frag_size);
  2099			info->arr[i].frag_source = hd_split;
  2100			buf_size += frag_size;
  2101			i++;
  2102		}
  2103		info->num_frags = i;
  2104		/* number of different wqes sharing a page */
  2105		info->wqe_bulk = 1 + (info->num_frags % 2);
  2106	
  2107	out:
  2108		info->wqe_bulk = max_t(u8, info->wqe_bulk, 8);
  2109		info->log_num_frags = order_base_2(info->num_frags);
  2110	}
  2111	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 66202 bytes --]

  parent reply	other threads:[~2020-06-19  0:17 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-18 16:09 [RFC PATCH 00/21] netgpu: networking between NIC and GPU/CPU Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 01/21] mm: add {add|release}_memory_pages Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 02/21] mm: Allow DMA mapping of pages which are not online Jonathan Lemon
2020-06-18 17:49   ` kernel test robot
2020-06-19  2:25   ` kernel test robot
2020-06-18 16:09 ` [RFC PATCH 03/21] tcp: Pad TCP options out to a fixed size Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 04/21] mlx5: add definitions for header split and netgpu Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 05/21] mlx5/xsk: check that xsk does not conflict with netgpu Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 06/21] mlx5: add header_split flag Jonathan Lemon
2020-06-18 18:12   ` Eric Dumazet
2020-06-18 20:25     ` Michal Kubecek
2020-06-18 22:45       ` Eric Dumazet
2020-06-18 21:50     ` Jonathan Lemon
2020-06-18 22:34       ` Eric Dumazet
2020-06-18 22:36       ` Eric Dumazet
2020-06-19  0:17   ` kernel test robot [this message]
2020-06-18 16:09 ` [RFC PATCH 07/21] mlx5: remove the umem parameter from mlx5e_open_channel Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 08/21] misc: add shqueue.h for prototyping Jonathan Lemon
2020-06-19  0:09   ` kernel test robot
2020-06-18 16:09 ` [RFC PATCH 09/21] include: add definitions for netgpu Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 10/21] mlx5: add netgpu queue functions Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 11/21] skbuff: add a zc_netgpu bitflag Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 12/21] mlx5: hook up the netgpu channel functions Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 13/21] netdevice: add SETUP_NETGPU to the netdev_bpf structure Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 14/21] kernel: export free_uid Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 15/21] netgpu: add network/gpu dma module Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 16/21] lib: have __zerocopy_sg_from_iter get netgpu pages for a sk Jonathan Lemon
2020-06-18 21:58   ` kernel test robot
2020-06-18 22:16   ` kernel test robot
2020-06-18 16:09 ` [RFC PATCH 17/21] net/core: add the SO_REGISTER_DMA socket option Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 18/21] tcp: add MSG_NETDMA flag for sendmsg() Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 19/21] core: add page recycling logic for netgpu pages Jonathan Lemon
2020-06-19  0:20   ` kernel test robot
2020-06-18 16:09 ` [RFC PATCH 20/21] core/skbuff: use skb_zdata for testing whether skb is zerocopy Jonathan Lemon
2020-06-18 16:09 ` [RFC PATCH 21/21] mlx5: add XDP_SETUP_NETGPU hook Jonathan Lemon

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=202006190855.mddY8cxV%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.