search for: qpc

Displaying 3 results from an estimated 3 matches for "qpc".

Did you mean: pc
2020 Jul 16
0
[PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices
...+ vqp->head += n; > + vqp->db.db[0] = cpu_to_be32(vqp->head); > +} > + > +static void qp_prepare(struct mlx5_vdpa_net *ndev, bool fw, void *in, > + struct mlx5_vdpa_virtqueue *mvq, u32 num_ent) > +{ > + struct mlx5_vdpa_qp *vqp; > + __be64 *pas; > + void *qpc; > + > + vqp = fw ? &mvq->fwqp : &mvq->vqqp; > + MLX5_SET(create_qp_in, in, uid, ndev->mvdev.res.uid); > + qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); > + if (vqp->fw) { > + /* Firmware QP is allocated by the driver for the firmware's > + * use so we c...
2020 Aug 06
1
[PATCH][next] vdpa/mlx5: fix memory allocation failure checks
...GFP_KERNEL); *out = kzalloc(MLX5_ST_SZ_BYTES(rtr2rts_qp_out), GFP_KERNEL); - if (!in || !out) + if (!*in || !*out) goto outerr; MLX5_SET(rtr2rts_qp_in, *in, opcode, cmd); @@ -927,16 +927,15 @@ static void alloc_inout(struct mlx5_vdpa_net *ndev, int cmd, void **in, int *inl MLX5_SET(qpc, qpc, rnr_retry, 7); break; default: - goto outerr; + goto outerr_nullify; } - if (!*in || !*out) - goto outerr; return; outerr: kfree(*in); kfree(*out); +outerr_nullify: *in = NULL; *out = NULL; } -- 2.27.0
2012 Feb 17
3
Re: Xen domU Timekeeping (a.k.a TSC/HPET issues)
...e hpet. Xen schedules an interrupt delivery for an hpet tick, but the vcpu is asleep. Could be an admin pause, a sleep on a wait queue, paused while qemu does its thing, paused while a mem event is processed... When the vcpu wakes up it receives the "late" hpet tick. We believe Windows 7 QPC also reads the TSC at that point. The TSC kept on ticking while the vcpu was paused. Windows does not know what to do about the discrepancy and reports a large time leap, usually consistent with a full round trip of the 32 bit hpet counter at the Xen-emulated 1/16GHz frequency. MSDN forums blame &...