All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Arinzon <darinzon@amazon.com>,
	David Miller <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
	David Arinzon <darinzon@amazon.com>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>,
	Richard Cochran <richardcochran@gmail.com>,
	"Woodhouse, David" <dwmw@amazon.com>,
	"Machulsky, Zorik" <zorik@amazon.com>,
	"Matushevsky, Alexander" <matua@amazon.com>,
	Saeed Bshara <saeedb@amazon.com>, "Wilson, Matt" <msw@amazon.com>,
	"Liguori, Anthony" <aliguori@amazon.com>,
	"Bshara, Nafea" <nafea@amazon.com>,
	"Schmeilin, Evgeny" <evgenys@amazon.com>,
	"Belgazal, Netanel" <netanel@amazon.com>,
	"Saidi, Ali" <alisaidi@amazon.com>,
	"Herrenschmidt, Benjamin" <benh@amazon.com>,
	"Kiyanovski, Arthur" <akiyano@amazon.com>,
	"Dagan, Noam" <ndagan@amazon.com>,
	"Bernstein, Amit" <amitbern@amazon.com>,
	"Agroskin, Shay" <shayagr@amazon.com>,
	"Abboud, Osama" <osamaabb@amazon.com>,
	"Ostrovsky, Evgeny" <evostrov@amazon.com>,
	"Tabachnik, Ofir" <ofirt@amazon.com>,
	"Machnikowski, Maciek" <maciek@machnikowski.net>
Subject: Re: [PATCH v2 net-next 1/3] net: ena: Add PHC support in the ENA driver
Date: Sat, 2 Nov 2024 00:37:09 +0800	[thread overview]
Message-ID: <202411020050.npvLNJ7N-lkp@intel.com> (raw)
In-Reply-To: <20241031085245.18146-2-darinzon@amazon.com>

Hi David,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/David-Arinzon/net-ena-Add-PHC-support-in-the-ENA-driver/20241031-165503
base:   net-next/main
patch link:    https://lore.kernel.org/r/20241031085245.18146-2-darinzon%40amazon.com
patch subject: [PATCH v2 net-next 1/3] net: ena: Add PHC support in the ENA driver
config: arm64-randconfig-001-20241101 (https://download.01.org/0day-ci/archive/20241102/202411020050.npvLNJ7N-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241102/202411020050.npvLNJ7N-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411020050.npvLNJ7N-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/amazon/ena/ena_com.c: In function 'ena_com_phc_config':
>> drivers/net/ethernet/amazon/ena/ena_com.c:1702:49: error: expected ')' before 'ENA_ADMIN_PHC_CONFIG'
    1702 |                                   &get_feat_resp
         |                                                 ^
         |                                                 )
    1703 |                                   ENA_ADMIN_PHC_CONFIG,
         |                                   ~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/amazon/ena/ena_com.c:1701:34: note: to match this '('
    1701 |         ret = ena_com_get_feature(ena_dev,
         |                                  ^
>> drivers/net/ethernet/amazon/ena/ena_com.c:1701:15: error: too few arguments to function 'ena_com_get_feature'
    1701 |         ret = ena_com_get_feature(ena_dev,
         |               ^~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/amazon/ena/ena_com.c:1037:12: note: declared here
    1037 | static int ena_com_get_feature(struct ena_com_dev *ena_dev,
         |            ^~~~~~~~~~~~~~~~~~~


vim +1702 drivers/net/ethernet/amazon/ena/ena_com.c

  1691	
  1692	int ena_com_phc_config(struct ena_com_dev *ena_dev)
  1693	{
  1694		struct ena_com_phc_info *phc = &ena_dev->phc;
  1695		struct ena_admin_get_feat_resp get_feat_resp;
  1696		struct ena_admin_set_feat_resp set_feat_resp;
  1697		struct ena_admin_set_feat_cmd set_feat_cmd;
  1698		int ret = 0;
  1699	
  1700		/* Get device PHC default configuration */
> 1701		ret = ena_com_get_feature(ena_dev,
> 1702					  &get_feat_resp
  1703					  ENA_ADMIN_PHC_CONFIG,
  1704					  0);
  1705		if (unlikely(ret)) {
  1706			netdev_err(ena_dev->net_device,
  1707				   "Failed to get PHC feature configuration, error: %d\n",
  1708				   ret);
  1709			return ret;
  1710		}
  1711	
  1712		/* Supporting only readless PHC retrieval */
  1713		if (get_feat_resp.u.phc.type != ENA_ADMIN_PHC_TYPE_READLESS) {
  1714			netdev_err(ena_dev->net_device, "Unsupported PHC type, error: %d\n",
  1715				   -EOPNOTSUPP);
  1716			return -EOPNOTSUPP;
  1717		}
  1718	
  1719		/* Update PHC doorbell offset according to device value,
  1720		 * used to write req_id to PHC bar
  1721		 */
  1722		phc->doorbell_offset = get_feat_resp.u.phc.doorbell_offset;
  1723	
  1724		/* Update PHC expire timeout according to device
  1725		 * or default driver value
  1726		 */
  1727		phc->expire_timeout_usec = (get_feat_resp.u.phc.expire_timeout_usec) ?
  1728					    get_feat_resp.u.phc.expire_timeout_usec :
  1729					    ENA_PHC_DEFAULT_EXPIRE_TIMEOUT_USEC;
  1730	
  1731		/* Update PHC block timeout according to device
  1732		 * or default driver value
  1733		 */
  1734		phc->block_timeout_usec = (get_feat_resp.u.phc.block_timeout_usec) ?
  1735					   get_feat_resp.u.phc.block_timeout_usec :
  1736					   ENA_PHC_DEFAULT_BLOCK_TIMEOUT_USEC;
  1737	
  1738		/* Sanity check - expire timeout must not be above skip timeout */
  1739		if (phc->expire_timeout_usec > phc->block_timeout_usec)
  1740			phc->expire_timeout_usec = phc->block_timeout_usec;
  1741	
  1742		/* Prepare PHC config feature command */
  1743		memset(&set_feat_cmd, 0x0, sizeof(set_feat_cmd));
  1744		set_feat_cmd.aq_common_descriptor.opcode = ENA_ADMIN_SET_FEATURE;
  1745		set_feat_cmd.feat_common.feature_id = ENA_ADMIN_PHC_CONFIG;
  1746		set_feat_cmd.u.phc.output_length = sizeof(*phc->virt_addr);
  1747		ret = ena_com_mem_addr_set(ena_dev,
  1748					   &set_feat_cmd.u.phc.output_address,
  1749					   phc->phys_addr);
  1750		if (unlikely(ret)) {
  1751			netdev_err(ena_dev->net_device, "Failed setting PHC output address, error: %d\n",
  1752				   ret);
  1753			return ret;
  1754		}
  1755	
  1756		/* Send PHC feature command to the device */
  1757		ret = ena_com_execute_admin_command(&ena_dev->admin_queue,
  1758						    (struct ena_admin_aq_entry *)&set_feat_cmd,
  1759						    sizeof(set_feat_cmd),
  1760						    (struct ena_admin_acq_entry *)&set_feat_resp,
  1761						    sizeof(set_feat_resp));
  1762	
  1763		if (unlikely(ret)) {
  1764			netdev_err(ena_dev->net_device,
  1765				   "Failed to enable PHC, error: %d\n",
  1766				   ret);
  1767			return ret;
  1768		}
  1769	
  1770		phc->active = true;
  1771		netdev_dbg(ena_dev->net_device, "PHC is active in the device\n");
  1772	
  1773		return ret;
  1774	}
  1775	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2024-11-01 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-31  8:52 [PATCH v2 net-next 0/3] PHC support in ENA driver David Arinzon
2024-10-31  8:52 ` [PATCH v2 net-next 1/3] net: ena: Add PHC support in the " David Arinzon
2024-11-01 16:37   ` kernel test robot [this message]
2024-11-02  0:11   ` kernel test robot
2024-10-31  8:52 ` [PATCH v2 net-next 2/3] net: ena: PHC silent reset David Arinzon
2024-10-31  8:52 ` [PATCH v2 net-next 3/3] net: ena: Add PHC documentation David Arinzon

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=202411020050.npvLNJ7N-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akiyano@amazon.com \
    --cc=aliguori@amazon.com \
    --cc=alisaidi@amazon.com \
    --cc=amitbern@amazon.com \
    --cc=benh@amazon.com \
    --cc=darinzon@amazon.com \
    --cc=davem@davemloft.net \
    --cc=dwmw@amazon.com \
    --cc=edumazet@google.com \
    --cc=evgenys@amazon.com \
    --cc=evostrov@amazon.com \
    --cc=kuba@kernel.org \
    --cc=maciek@machnikowski.net \
    --cc=matua@amazon.com \
    --cc=msw@amazon.com \
    --cc=nafea@amazon.com \
    --cc=ndagan@amazon.com \
    --cc=netanel@amazon.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ofirt@amazon.com \
    --cc=osamaabb@amazon.com \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=saeedb@amazon.com \
    --cc=shayagr@amazon.com \
    --cc=zorik@amazon.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 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.