| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 34/35] arm : acpi workarounds for firmware/linux dependencies
 Hi Parth, On 05/02/2015 18:30, Parth Dixit wrote: On 5 February 2015 at 11:08, Julien Grall <julien.grall@xxxxxxxxxx> wrote:Hi Parth, On 04/02/2015 14:02, parth.dixit@xxxxxxxxxx wrote:From: Parth Dixit <parth.dixit@xxxxxxxxxx> Some bugs are identified in edk2 and some of the functionality is not yet merged. This patch contains workarounds for themWhile I understand some workaround (based on your cover letter), some of them is unclear to me and need explanation.Sure, ask them, i'll reply to it. I asked them on the previous mail. It seems you answered all of them, thanks :) Signed-off-by: Parth Dixit <parth.dixit@xxxxxxxxxx> ---[..] Ok. + + route_irq_to_guest(d,irq,NULL);Hmmm, do you really plan to keep that here? What's your plan for this?yes, but i am open to suggestions , if you think there is a better place i'll move it there. Ok, when we discussed about it in december that wasn't the plan.While I'm okay for the IRQ configuration (setting level/edge), the routing should not be done here. First at all, route_irq_to_guest could fail and enable doesn't handle this use. Then, DOM0 (aka the hardware domain) may not be able to use all the interrupts (think about pass-through). 
So, for IRQ routing there is 2 possibles solutions:
        1) Route all the SPIs to the guest in Xen
        2) Let DOM0 Linux requesting to route the IRQ via a PHYSDEV_op
IIRC, we deciced to choose the first solution for now. Even though none 
of the solutions are perfect.
 I didn't have access on my IRC log in the plane. So I wasn't able to find the discussion. AFAIR, this issue was because we are allocating a chunk bigger than PAGE_SIZE in acpi_tb_resize_root_table_list. x86 manage to never allocate a chunk bigger than PAGE_SIZE. So I'm not sure why ARM64 requires too. This would need more debug. This macro is used to know if the memory has been allocated by the boot allocator of the memory pool. 
So 2 solutions:
        1) We find a better way to use detect it
        2) We avoid to allocate big chunk
I'm not sure which one is the easiest/better one.
Regards,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |