|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v10 17/32] ARM: vITS: add command handling stub and MMIO emulation
Hi Andre, On 26/05/17 18:35, Andre Przywara wrote: This code is wrong. The mask applies to shift and not the shifted result. I fixed with: return (its_cmd[word] >> shift) * (BIT(size) - 1).Though, BIT(size) - 1 would not work if size == 64. I would replace by GENMASK(0, size - 1) to be safe in all the case. [...] Would it be possible to dump the full command (i.e command[0...3]) here and ... + break; + } + + write_u64_atomic(&its->creadr, (its->creadr + ITS_CMD_SIZE) % + ITS_CMD_BUFFER_SIZE(its->cbaser)); + + if ( ret ) + gdprintk(XENLOG_WARNING, + "vGITS: ITS command error %d while handling command %lu\n", + ret, its_cmd_get_command(command)); ... here? This could be helpful whilst debugging vITS command emulation. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |