|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] arm/its: enable LPIs before mapping the collection table
On 28/04/2022 11:00, Rahul Singh wrote: Hi Julien,On 27 Apr 2022, at 6:59 pm, Julien Grall <julien@xxxxxxx> wrote: Hi Rahul, On 27/04/2022 17:14, Rahul Singh wrote:MAPC_LPI_OFF ITS command error can be reported to software if LPIs areLooking at the spec (ARM IHI 0069H), I can't find a command error named MAPC_LPI_OFF. Is it something specific to your HW?I found the issue on HW that implements GIC-600 and GIC-600 TRM specify the MAPC_LPI_OFF its command error. https://developer.arm.com/documentation/100336/0106/introduction/about-the-gic-600 {Table 3-15 ITS command and translation errors, records 13+ page 3-89} Please provide a pointer to the spec in the commit message. This would help the reviewer to know where MAPC_LPI_OFF come from.
In general, I expect change touching the GICv3 code based on the specification rather than "we think this is okay". This reduce the risk to make modification that could break other platforms (we can't possibly test all of them). Reading through the spec, the definition of GICR.EnableLPIs contains the following: "0b0 LPI support is disabled. Any doorbell interrupt generated as a result of a write to a virtual LPI register must be discarded, and any ITS translation requests or commands involving LPIs in this Redistributor are ignored. 0b1 LPI support is enabled. "So your change is correct. But the commit message needs to be updated with more details on which GIC HW the issue was seen and why your proposal is correct (i.e. quoting the spec). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |