Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-18 Thread Omer Shpigelman
On 6/17/24 14:48, Leon Romanovsky wrote: > [Some people who received this message don't often get email from > l...@kernel.org. Learn why this is important at > https://aka.ms/LearnAboutSenderIdentification ] > > On Mon, Jun 17, 2024 at 08:08:26AM +, Omer Shpigelman wrote: >> On 6/13/24 16:0

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-18 Thread Omer Shpigelman
On 6/17/24 18:02, Andrew Lunn wrote: > [Some people who received this message don't often get email from > and...@lunn.ch. Learn why this is important at > https://aka.ms/LearnAboutSenderIdentification ] > > On Mon, Jun 17, 2024 at 04:05:57PM +0200, Markus Elfring wrote: >> … >>> +++ b/drivers/ne

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-18 Thread Omer Shpigelman
On 6/15/24 03:05, Stephen Hemminger wrote: > [You don't often get email from step...@networkplumber.org. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > >> +#define HBL_AUX2NIC(aux_dev) \ >> + ({ \ >> + struct hbl_aux_dev *__aux_dev = (aux_dev);

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-18 Thread Omer Shpigelman
On 6/13/24 16:01, Przemek Kitszel wrote: > [Some people who received this message don't often get email from > przemyslaw.kits...@intel.com. Learn why this is important at > https://aka.ms/LearnAboutSenderIdentification ] > > On 6/13/24 10:21, Omer Shpigelman wrote: >> Add the hbl_cn driver which

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-17 Thread Andrew Lunn
On Mon, Jun 17, 2024 at 04:05:57PM +0200, Markus Elfring wrote: > … > > +++ b/drivers/net/ethernet/intel/hbl_cn/common/hbl_cn.c > > @@ -0,0 +1,5954 @@ > … > > +int hbl_cn_read_spmu_counters(struct hbl_cn_port *cn_port, u64 out_data[], > > u32 *num_out_data) > > +{ > … > > + mutex_lock(&cn_port->

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-17 Thread Markus Elfring
… > +++ b/drivers/net/ethernet/intel/hbl_cn/common/hbl_cn.c > @@ -0,0 +1,5954 @@ … > +int hbl_cn_read_spmu_counters(struct hbl_cn_port *cn_port, u64 out_data[], > u32 *num_out_data) > +{ … > + mutex_lock(&cn_port->cnt_lock); > + rc = port_funcs->spmu_sample(cn_port, *num_out_data, out_data

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-17 Thread Leon Romanovsky
On Mon, Jun 17, 2024 at 08:08:26AM +, Omer Shpigelman wrote: > On 6/13/24 16:01, Przemek Kitszel wrote: > > [Some people who received this message don't often get email from > > przemyslaw.kits...@intel.com. Learn why this is important at > > https://aka.ms/LearnAboutSenderIdentification ] >

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-14 Thread Stephen Hemminger
> +#define HBL_AUX2NIC(aux_dev) \ > + ({ \ > + struct hbl_aux_dev *__aux_dev = (aux_dev); \ > + ((__aux_dev)->type == HBL_AUX_DEV_ETH) ? \ > + container_of(__aux_dev, struct hbl_cn_device, en_aux_dev) : \ > + container_of(__aux_dev, struct hbl_c

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-13 Thread Przemek Kitszel
On 6/13/24 15:01, Przemek Kitszel wrote: On 6/13/24 10:21, Omer Shpigelman wrote: [...] + +int hbl_cn_read_spmu_counters(struct hbl_cn_port *cn_port, u64 out_data[], u32 *num_out_data) +{ +    struct hbl_cn_device *hdev = cn_port->hdev; +    struct hbl_cn_asic_port_funcs *port_funcs; +    s

Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

2024-06-13 Thread Przemek Kitszel
On 6/13/24 10:21, Omer Shpigelman wrote: Add the hbl_cn driver which will serve both Ethernet and InfiniBand drivers. hbl_cn is the layer which is used by the satellite drivers for many shared operations that are needed by both EN and IB subsystems like QPs, CQs etc. The CN driver is initialized