Re: [RFC] irqchip/gic-its: fix command queue pointer comparison bug

2019-05-12 Thread Heyi Guo
Sorry, this patch still has issue when the queue is almost full, for the sample window becomes very small. How about we calculating the delta of each time read and then accumulating it to compare with the to_idr? This can guarantee to get real rd_idx with more than 1 wraps. Thanks, Heyi On

[RFC] irqchip/gic-its: fix command queue pointer comparison bug

2019-05-11 Thread Heyi Guo
When we run several VMs with PCI passthrough and GICv4 enabled, not pinning vCPUs, we will occasionally see below warnings in dmesg: ITS queue timeout (65440 65504 480) ITS cmd its_build_vmovp_cmd failed The reason for the above issue is that in BUILD_SINGLE_CMD_FUNC: 1. Post the write command. 2