Added missing bitfields for ctx flush and add err
print for ctx flush failure.
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
struct {
uint64_t cptr : 46;
uint64_t inval : 1;
+ uint64_t reserved_47_63 : 17;
} s;
};
uint64_t u;
struct {
uint64_t cptr : 46;
+ uint64_t reserved_46_63 : 18;
} s;
};
{
union cpt_lf_ctx_flush reg;
- if (lf == NULL)
+ if (lf == NULL) {
+ plt_err("Could not trigger CTX flush");
return -ENOTSUP;
+ }
reg.u = 0;
reg.s.inval = inval;