[PATCH iproute2-next] devlink: Add missing region option to devlink man page

2018-11-08 Thread Alex Vesker
The region field was not added to the devlink man page. Fixes: 8b4fbf0bed8e6 ("devlink: Add support for devlink-region access") Signed-off-by: Alex Vesker --- man/man8/devlink.8 | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/man/man8/devlink.8 b/man/man8

Re: [pull request][net-next 00/10] Mellanox, mlx5 and devlink updates 2018-07-31

2018-08-29 Thread Alex Vesker
e snapshot support via devlink: (Alex Vesker) Last three patches, add the support for capturing region snapshot of the firmware crspace during critical errors, using devlink region_snapshot parameter. -Saeed. ---- Alex Vesker (3):

[PATCH iproute2 net-next] devlink: Add support for devlink-region access

2018-07-17 Thread Alex Vesker
Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- devlink/devlink.c | 485 +- man/man8/devlink-region.8 | 131 + man/man8/devlink.8| 1 + 3 files changed, 616 insertions(+), 1 deletion(-) create mode 100644 man/man8

Re: [PATCH net-next v3 02/11] devlink: Add callback to query for snapshot id before snapshot create

2018-07-15 Thread Alex Vesker
On 7/13/2018 3:51 AM, Jakub Kicinski wrote: On Thu, 12 Jul 2018 15:13:09 +0300, Alex Vesker wrote: To restrict the driver with the snapshot ID selection a new callback is introduced for the driver to get the snapshot ID before creating a new snapshot. This will also allow giving the same ID

[PATCH net-next v3 06/11] devlink: Add support for region snapshot delete command

2018-07-12 Thread Alex Vesker
Add support for DEVLINK_CMD_REGION_DEL used for deleting a snapshot from a region. The snapshot ID is required. Also added notification support for NEW and DEL of snapshots. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/uapi/linux/devlink.h | 2 + net/core/devlink.c

[PATCH net-next v3 09/11] net/mlx4_core: Add Crdump FW snapshot support

2018-07-12 Thread Alex Vesker
address regions are registered on init and snapshots are attached once a new snapshot is collected by the driver. Signed-off-by: Alex Vesker Signed-off-by: Tariq Toukan Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlx4/Makefile | 2 +- drivers/net/ethernet/mellanox/mlx4/catas.c

[PATCH net-next v3 11/11] net/mlx4_core: Use devlink region_snapshot parameter

2018-07-12 Thread Alex Vesker
This parameter enables capturing region snapshot of the crspace during critical errors. The default value of this parameter is disabled, it can be enabled using devlink param commands. It is possible to configure during runtime and also driver init. Signed-off-by: Alex Vesker Signed-off-by: Jiri

[PATCH net-next v3 07/11] devlink: Add support for region snapshot read command

2018-07-12 Thread Alex Vesker
are provided a snapshot read will done. This is used for both snapshot access and will be used in the same way to access current data on the region. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/uapi/linux/devlink.h | 7 ++ net/core/devlink.c | 182

[PATCH net-next v3 02/11] devlink: Add callback to query for snapshot id before snapshot create

2018-07-12 Thread Alex Vesker
To restrict the driver with the snapshot ID selection a new callback is introduced for the driver to get the snapshot ID before creating a new snapshot. This will also allow giving the same ID for multiple snapshots taken of different regions on the same time. Signed-off-by: Alex Vesker Signed

[PATCH net-next v3 10/11] devlink: Add generic parameters region_snapshot

2018-07-12 Thread Alex Vesker
region_snapshot - When set enables capturing region snapshots Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko Reviewed-by: Moshe Shemesh --- include/net/devlink.h | 4 net/core/devlink.c| 5 + 2 files changed, 9 insertions(+) diff --git a/include/net/devlink.h b/include/net

[PATCH net-next v3 08/11] net/mlx4_core: Add health buffer address capability

2018-07-12 Thread Alex Vesker
of readable data followed by a lock which is used to block volatile CR space access. Signed-off-by: Alex Vesker Signed-off-by: Tariq Toukan Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlx4/fw.c | 5 - drivers/net/ethernet/mellanox/mlx4/fw.h | 1 + drivers/net/ethernet/mellanox

[PATCH net-next v3 04/11] devlink: Add support for region get command

2018-07-12 Thread Alex Vesker
Add support for DEVLINK_CMD_REGION_GET command which is used for querying for the supported DEV/REGION values of devlink devices. The support is both for doit and dumpit. Reply includes: BUS_NAME, DEVICE_NAME, REGION_NAME, REGION_SIZE Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko

[PATCH net-next v3 05/11] devlink: Extend the support querying for region snapshot IDs

2018-07-12 Thread Alex Vesker
Extend the support for DEVLINK_CMD_REGION_GET command to also return the IDs of the snapshot currently present on the region. Each reply will include a nested snapshots attribute that can contain multiple snapshot attributes each with an ID. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko

[PATCH net-next v3 03/11] devlink: Add support for creating region snapshots

2018-07-12 Thread Alex Vesker
will be deleted using the destructor function when destroying a region or when a snapshot delete command from devlink user tool. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/net/devlink.h | 13 +++ net/core/devlink.c| 95

[PATCH net-next v3 00/11] devlink: Add support for region access

2018-07-12 Thread Alex Vesker
Add a parameter to enable devlink region snapshot -Allocate snapshot memory using kvmalloc -Introduce destructor function devlink_snapshot_data_dest_t to avoid double allocation v2->v3: -Fix incorrect comment in devlink.h for DEVLINK_ATTR_REGION_SIZE from u32 to u64 Alex Vesker (11): devlin

[PATCH net-next v3 01/11] devlink: Add support for creating and destroying regions

2018-07-12 Thread Alex Vesker
, register-space. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/net/devlink.h | 22 ++ net/core/devlink.c| 84 +++ 2 files changed, 106 insertions(+) diff --git a/include/net/devlink.h b/include/net/devlink.h index

[PATCH net-next v2 11/11] net/mlx4_core: Use devlink region_snapshot parameter

2018-07-11 Thread Alex Vesker
This parameter enables capturing region snapshot of the crspace during critical errors. The default value of this parameter is disabled, it can be enabled using devlink param commands. It is possible to configure during runtime and also driver init. Signed-off-by: Alex Vesker Signed-off-by: Jiri

[PATCH net-next v2 04/11] devlink: Add support for region get command

2018-07-11 Thread Alex Vesker
Add support for DEVLINK_CMD_REGION_GET command which is used for querying for the supported DEV/REGION values of devlink devices. The support is both for doit and dumpit. Reply includes: BUS_NAME, DEVICE_NAME, REGION_NAME, REGION_SIZE Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko

[PATCH net-next v2 03/11] devlink: Add support for creating region snapshots

2018-07-11 Thread Alex Vesker
will be deleted using the destructor function when destroying a region or when a snapshot delete command from devlink user tool. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/net/devlink.h | 13 +++ net/core/devlink.c| 95

[PATCH net-next v2 05/11] devlink: Extend the support querying for region snapshot IDs

2018-07-11 Thread Alex Vesker
Extend the support for DEVLINK_CMD_REGION_GET command to also return the IDs of the snapshot currently present on the region. Each reply will include a nested snapshots attribute that can contain multiple snapshot attributes each with an ID. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko

[PATCH net-next v2 07/11] devlink: Add support for region snapshot read command

2018-07-11 Thread Alex Vesker
are provided a snapshot read will done. This is used for both snapshot access and will be used in the same way to access current data on the region. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/uapi/linux/devlink.h | 7 ++ net/core/devlink.c | 182

[PATCH net-next v2 02/11] devlink: Add callback to query for snapshot id before snapshot create

2018-07-11 Thread Alex Vesker
To restrict the driver with the snapshot ID selection a new callback is introduced for the driver to get the snapshot ID before creating a new snapshot. This will also allow giving the same ID for multiple snapshots taken of different regions on the same time. Signed-off-by: Alex Vesker Signed

[PATCH net-next v2 06/11] devlink: Add support for region snapshot delete command

2018-07-11 Thread Alex Vesker
Add support for DEVLINK_CMD_REGION_DEL used for deleting a snapshot from a region. The snapshot ID is required. Also added notification support for NEW and DEL of snapshots. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/uapi/linux/devlink.h | 2 + net/core/devlink.c

[PATCH net-next v2 08/11] net/mlx4_core: Add health buffer address capability

2018-07-11 Thread Alex Vesker
of readable data followed by a lock which is used to block volatile CR space access. Signed-off-by: Alex Vesker Signed-off-by: Tariq Toukan Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlx4/fw.c | 5 - drivers/net/ethernet/mellanox/mlx4/fw.h | 1 + drivers/net/ethernet/mellanox

[PATCH net-next v2 09/11] net/mlx4_core: Add Crdump FW snapshot support

2018-07-11 Thread Alex Vesker
address regions are registered on init and snapshots are attached once a new snapshot is collected by the driver. Signed-off-by: Alex Vesker Signed-off-by: Tariq Toukan Signed-off-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlx4/Makefile | 2 +- drivers/net/ethernet/mellanox/mlx4/catas.c

[PATCH net-next v2 01/11] devlink: Add support for creating and destroying regions

2018-07-11 Thread Alex Vesker
, register-space. Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko --- include/net/devlink.h | 22 ++ net/core/devlink.c| 84 +++ 2 files changed, 106 insertions(+) diff --git a/include/net/devlink.h b/include/net/devlink.h index

[PATCH net-next v2 00/11] devlink: Add support for region access

2018-07-11 Thread Alex Vesker
Add a parameter to enable devlink region snapshot -Allocate snapshot memory using kvmalloc -Introduce destructor function devlink_snapshot_data_dest_t to avoid double allocation Alex Vesker (11): devlink: Add support for creating and destroying regions devlink: Add callback to query for snaps

[PATCH net-next v2 10/11] devlink: Add generic parameters region_snapshot

2018-07-11 Thread Alex Vesker
region_snapshot - When set enables capturing region snapshots Signed-off-by: Alex Vesker Signed-off-by: Jiri Pirko Reviewed-by: Moshe Shemesh --- include/net/devlink.h | 4 net/core/devlink.c| 5 + 2 files changed, 9 insertions(+) diff --git a/include/net/devlink.h b/include/net

Re: [PATCH net-next 0/9] devlink: Add support for region access

2018-04-04 Thread Alex Vesker
On 3/31/2018 8:21 PM, David Ahern wrote: On 3/31/18 9:53 AM, Andrew Lunn wrote: I want to be able to login to a customer and accessing this snapshot without any previous configuration from the user and not asking for enabling the feature and then waiting for a repro...this will help debugging

Re: [PATCH net-next v2 1/2] fs/crashdd: add API to collect hardware dump in second kernel

2018-04-02 Thread Alex Vesker
On 4/2/2018 12:12 PM, Jiri Pirko wrote: Fri, Mar 30, 2018 at 05:11:29PM CEST, and...@lunn.ch wrote: Please see: http://patchwork.ozlabs.org/project/netdev/list/?series=36524 I bevieve that the solution in the patchset could be used for your usecase too. Hi Jiri

Re: [PATCH net-next 0/9] devlink: Add support for region access

2018-03-31 Thread Alex Vesker
On 3/31/2018 1:26 AM, David Ahern wrote: On 3/30/18 1:39 PM, Alex Vesker wrote: On 3/30/2018 7:57 PM, David Ahern wrote: On 3/30/18 8:34 AM, Andrew Lunn wrote: And it seems to want contiguous pages. How well does that work after the system has been running for a while and memory

Re: [PATCH net-next 0/9] devlink: Add support for region access

2018-03-30 Thread Alex Vesker
On 3/30/2018 7:57 PM, David Ahern wrote: On 3/30/18 8:34 AM, Andrew Lunn wrote: And it seems to want contiguous pages. How well does that work after the system has been running for a while and memory is fragmented? The allocation can be changed, there is no read need for contiguous pages. It

Re: [PATCH net-next 0/9] devlink: Add support for region access

2018-03-29 Thread Alex Vesker
On 3/29/2018 10:51 PM, Andrew Lunn wrote: Show all of the exposed regions with region sizes: $ devlink region show pci/:00:05.0/cr-space: size 1048576 snapshot [1 2] So you have 2Mbytes of snapshot data. Is this held in the device, or kernel memory? This is allocated in devlink, the

Re: [PATCH net-next 0/9] devlink: Add support for region access

2018-03-29 Thread Alex Vesker
On 3/29/2018 8:13 PM, Andrew Lunn wrote: On Thu, Mar 29, 2018 at 07:07:43PM +0300, Alex Vesker wrote: This is a proposal which will allow access to driver defined address regions using devlink. Each device can create its supported address regions and register them. A device which exposes

[PATCH net-next 1/9] devlink: Add support for creating and destroying regions

2018-03-29 Thread Alex Vesker
, register-space. Signed-off-by: Alex Vesker <va...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- include/net/devlink.h | 22 ++ net/core/devlink.c| 84 +++ 2 files changed, 106 insertions(+) diff --git a

[PATCH net-next 2/9] devlink: Add callback to query for snapshot id before snapshot create

2018-03-29 Thread Alex Vesker
To restrict the driver with the snapshot ID selection a new callback is introduced for the driver to get the snapshot ID before creating a new snapshot. This will also allow giving the same ID for multiple snapshots taken of different regions on the same time. Signed-off-by: Alex Vesker <

[PATCH net-next 7/9] devlink: Add support for region snapshot read command

2018-03-29 Thread Alex Vesker
are provided a snapshot read will done. This is used for both snapshot access and will be used in the same way to access current data on the region. Signed-off-by: Alex Vesker <va...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- include/uapi/linux/devlink.h | 7

[PATCH net-next 5/9] devlink: Extend the support querying for region snapshot IDs

2018-03-29 Thread Alex Vesker
Extend the support for DEVLINK_CMD_REGION_GET command to also return the IDs of the snapshot currently present on the region. Each reply will include a nested snapshots attribute that can contain multiple snapshot attributes each with an ID. Signed-off-by: Alex Vesker <va...@mellanox.com>

[PATCH net-next 4/9] devlink: Add support for region get command

2018-03-29 Thread Alex Vesker
Add support for DEVLINK_CMD_REGION_GET command which is used for querying for the supported DEV/REGION values of devlink devices. The support is both for doit and dumpit. Reply includes: BUS_NAME, DEVICE_NAME, REGION_NAME, REGION_SIZE Signed-off-by: Alex Vesker <va...@mellanox.com> Sign

[PATCH net-next 3/9] devlink: Add support for creating region snapshots

2018-03-29 Thread Alex Vesker
region. The snapshot are can be deleted from devlink user tool or when destroying a region. Signed-off-by: Alex Vesker <va...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- include/net/devlink.h | 9 + net/core/devli

[PATCH net-next 8/9] net/mlx4_core: Add health buffer address capability

2018-03-29 Thread Alex Vesker
of readable data followed by a lock which is used to block volatile CR space access. Signed-off-by: Alex Vesker <va...@mellanox.com> Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx4/fw.c | 5 - dr

[PATCH net-next 9/9] net/mlx4_core: Add Crdump FW snapshot support

2018-03-29 Thread Alex Vesker
address regions are registered on init and snapshots are attached once a new snapshot is collected by the driver. Signed-off-by: Alex Vesker <va...@mellanox.com> Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- drivers/net/ethe

[PATCH net-next 0/9] devlink: Add support for region access

2018-03-29 Thread Alex Vesker
-health snapshot 1 address 0 length 16 0014 95dc 0014 9514 0035 1670 0034 db30 For more information you can check devlink-region.8 man page Future: There is a plan to extend the support to include a write command as well as performing read and dump live region Alex Vesker

[PATCH net-next 6/9] devlink: Add support for region snapshot delete command

2018-03-29 Thread Alex Vesker
Add support for DEVLINK_CMD_REGION_DEL used for deleting a snapshot from a region. The snapshot ID is required. Also added notification support for NEW and DEL of snapshots. Signed-off-by: Alex Vesker <va...@mellanox.com> Signed-off-by: Jiri Pirko <j...@mellanox.com> --- includ

Re: [for-next 08/12] net/mlx5e: IPoIB, Use hash-table to map between QPN to child netdev

2017-10-24 Thread Alex Vesker
On 10/23/2017 6:47 PM, Jason Gunthorpe wrote: On Sat, Oct 14, 2017 at 11:48:23AM -0700, Saeed Mahameed wrote: From: Alex Vesker <va...@mellanox.com> This change is needed for PKEY support, since the RQs are shared between the child interface and the parent. The parent is responsible fo