search for: mlx5_get

Displaying 8 results from an estimated 8 matches for "mlx5_get".

2020 Aug 05
0
[PATCH V4 linux-next 00/12] VDPA support for Mellanox ConnectX devices
...| ^~~~~~~~~~~~~~ ./include/linux/mlx5/device.h:96:1: note: in expansion of macro ?__mlx5_dw_off? 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^~~~~~~~~~~~~ ./include/linux/mlx5/device.h:1355:2: note: in expansion of macro ?MLX5_GET? 1355 | MLX5_GET(device_virtio_emulation_cap, \ | ^~~~~~~~ drivers/vdpa/mlx5/net/main.c:24:15: note: in expansion of macro ?MLX5_CAP_DEV_VDPA_EMULATION? 24 | event_mode = MLX5_CAP_DEV_VDPA_EMULATION(mdev, event_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included f...
2020 Aug 05
0
[PATCH V4 linux-next 00/12] VDPA support for Mellanox ConnectX devices
...~~~~~~~~~~ > > ./include/linux/mlx5/device.h:96:1: note: in expansion of macro ?__mlx5_dw_off? > > 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ > > | ^~~~~~~~~~~~~ > > ./include/linux/mlx5/device.h:1355:2: note: in expansion of macro ?MLX5_GET? > > 1355 | MLX5_GET(device_virtio_emulation_cap, \ > > | ^~~~~~~~ > > drivers/vdpa/mlx5/net/main.c:24:15: note: in expansion of macro ?MLX5_CAP_DEV_VDPA_EMULATION? > > 24 | event_mode = MLX5_CAP_DEV_VDPA_EMULATION(mdev, event_mode); > > |...
2023 Aug 31
2
[PATCH v2] vdpa/mlx5: Fix firmware error on creation of 1k VQs
...err = mlx5_cmd_exec_inout(mdev, query_hca_cap, in, out); + if (err) { + mlx5_vdpa_warn(&ndev->mvdev, + "Failed reading vdpa umem capabilities with err %d\n", err); + goto out; + } + + caps = MLX5_ADDR_OF(query_hca_cap_out, out, capability); + + ndev->umem_1_buffer_param_a = MLX5_GET(virtio_emulation_cap, caps, umem_1_buffer_param_a); + ndev->umem_1_buffer_param_b = MLX5_GET(virtio_emulation_cap, caps, umem_1_buffer_param_b); + + ndev->umem_2_buffer_param_a = MLX5_GET(virtio_emulation_cap, caps, umem_2_buffer_param_a); + ndev->umem_2_buffer_param_b = MLX5_GET(virtio_em...
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...^~~~~~~~~~~~~~ include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off' 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^~~~~~~~~~~~~ include/linux/mlx5/device.h:1364:2: note: in expansion of macro 'MLX5_GET' 1364 | MLX5_GET(device_virtio_emulation_cap, \ | ^~~~~~~~ drivers/vdpa/mlx5/net/mlx5_vnet.c:1469:17: note: in expansion of macro 'MLX5_CAP_DEV_VDPA_EMULATION' 1469 | dev_features = MLX5_CAP_DEV_VDPA_EMULATION(mvdev->mdev, device_features_bits_mask); |...
2020 Jul 16
0
[PATCH vhost next 08/10] vdpa/mlx5: Add support library for mlx5 VDPA implementation
...^~~~~~~~~~~~~~ include/linux/mlx5/device.h:96:1: note: in expansion of macro '__mlx5_dw_off' 96 | __mlx5_dw_off(typ, fld))) >> __mlx5_dw_bit_off(typ, fld)) & \ | ^~~~~~~~~~~~~ drivers/vdpa/mlx5/core/resources.c:72:10: note: in expansion of macro 'MLX5_GET' 72 | *uid = MLX5_GET(create_uctx_out, out, uid); | ^~~~~~~~ In file included from include/linux/mlx5/driver.h:52, from drivers/vdpa/mlx5/core/resources.c:4: >> include/linux/mlx5/device.h:50:57: error: dereferencing pointer to incomplete t...
2023 Mar 27
0
[PATCH] vdpa/mlx5: Avoid losing link state updates
...ate_in, in, op_mod, opmod); > + MLX5_SET(query_vport_state_in, in, vport_number, vport); > + if (vport) > + MLX5_SET(query_vport_state_in, in, other_vport, 1); > + > + err = mlx5_cmd_exec_inout(mdev, query_vport_state, in, out); > + if (err) > + return 0; > + > + return MLX5_GET(query_vport_state_out, out, state); > +} > + > +static bool get_link_state(struct mlx5_vdpa_dev *mvdev) > +{ > + if (query_vport_state(mvdev->mdev, MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT, 0) == > + VPORT_STATE_UP) > + return true; > + > + return false; > +} > +...
2023 Apr 03
0
[Patch v3] vdpa/mlx5: Avoid losing link state updates
...t) > >> + MLX5_SET(query_vport_state_in, in, other_vport, 1); > >> + > >> + err = mlx5_cmd_exec_inout(mdev, query_vport_state, in, out); > >> + if (err) > >> + return 0; > >> + > >> + return MLX5_GET(query_vport_state_out, out, state); > >> +} > >> + > >> +static bool get_link_state(struct mlx5_vdpa_dev *mvdev) > >> +{ > >> + if (query_vport_state(mvdev->mdev, MLX5_VPORT_STATE_OP_MOD_VNIC_VPORT, 0) == > >> + VPORT_STATE_UP...
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...gt; + if (!vqp->fw) > + MLX5_SET64(qpc, qpc, dbr_addr, vqp->db.dma); > + MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP); > + err = mlx5_cmd_exec(mdev, in, inlen, out, sizeof(out)); > + kfree(in); > + if (err) > + goto err_kzalloc; > + > + vqp->mqp.uid = MLX5_GET(create_qp_in, in, uid); > + vqp->mqp.qpn = MLX5_GET(create_qp_out, out, qpn); > + > + if (!vqp->fw) > + rx_post(vqp, mvq->num_ent); > + > + return 0; > + > +err_kzalloc: > + if (!vqp->fw) > + mlx5_db_free(ndev->mvdev.mdev, &vqp->db); > +err_d...