|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv3 5/7] plat/common: Find and register IRQ for arch_timer
Hi, On 24/09/2019 08:44, Justin He (Arm Technology China) wrote: -----Original Message----- From: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> Sent: 2019年9月20日 23:51 To: Julien Grall <Julien.Grall@xxxxxxx>; Justin He (Arm Technology China) <Justin.He@xxxxxxx>; Santiago Pagani <Santiago.Pagani@xxxxxxxxx>; minios-devel@xxxxxxxxxxxxxxxxxxxx; Simon Kuenzer <simon.kuenzer@xxxxxxxxx> Cc: Kaly Xin (Arm Technology China) <Kaly.Xin@xxxxxxx>; Wei Chen (Arm Technology China) <Wei.Chen@xxxxxxx>; Jianyong Wu (Arm Technology China) <Jianyong.Wu@xxxxxxx>; nd <nd@xxxxxxx> Subject: Re: [UNIKRAFT PATCHv3 5/7] plat/common: Find and register IRQ for arch_timer On 9/19/19 1:57 PM, Julien Grall wrote:Hi, On 17/09/2019 12:55, Sharan Santhanam wrote:Hello, On 9/17/19 12:44 PM, Julien Grall wrote:Hi, On 9/17/19 11:08 AM, Sharan Santhanam wrote:On 9/17/19 11:17 AM, Julien Grall wrote:On 9/17/19 9:44 AM, Justin He (Arm Technology China) wrote:Hi JulienHi,-----Original Message----- From: Julien Grall <julien.grall@xxxxxxx> Sent: 2019年9月17日 16:39 To: Justin He (Arm Technology China) <Justin.He@xxxxxxx>;SantiagoPagani <Santiago.Pagani@xxxxxxxxx>; minios-devel@xxxxxxxxxxxxxxxxxxxx; Simon Kuenzer <simon.kuenzer@xxxxxxxxx>; Sharan Santhanam <Sharan.Santhanam@xxxxxxxxx> Cc: Kaly Xin (Arm Technology China) <Kaly.Xin@xxxxxxx>; WeiChen(Arm Technology China) <Wei.Chen@xxxxxxx>; Jianyong Wu (ArmTechnologyChina) <Jianyong.Wu@xxxxxxx>; nd <nd@xxxxxxx> Subject: Re: [UNIKRAFT PATCHv3 5/7] plat/common: Find and register IRQ for arch_timer On 9/17/19 8:01 AM, Justin He (Arm Technology China) wrote:Hi Julien (welcome back from holiday 😊 )Hi, Thanks :).-----Original Message----- From: Julien Grall <julien.grall@xxxxxxx> Sent: 2019年9月17日 3:53 To: Justin He (Arm Technology China) <Justin.He@xxxxxxx>; Santiago Pagani <Santiago.Pagani@xxxxxxxxx>; minios-devel@xxxxxxxxxxxxxxxxxxxx; Simon Kuenzer <simon.kuenzer@xxxxxxxxx>; SharanSanthanam<Sharan.Santhanam@xxxxxxxxx> Cc: Kaly Xin (Arm Technology China) <Kaly.Xin@xxxxxxx>; WeiChen(ArmTechnology China) <Wei.Chen@xxxxxxx>; Jianyong Wu (ArmTechnologyChina) <Jianyong.Wu@xxxxxxx> Subject: Re: [UNIKRAFT PATCHv3 5/7] plat/common: Find and registerIRQfor arch_timer On 9/16/19 8:52 AM, Justin He (Arm Technology China) wrote:Hi SantiagoHi all, @Santiago, it is quite difficult to follow the thread when you start your answer with "COMMENT". May I ask you to configure your e-mail client to quote properly (i.e >)? Furthermore, disclaimer footer should be avoided on the mailing list. You are basically saying this is confidential but you send to everyone (mailing list are archived)...OKIt wasn't directed to you ;).[...]COMMENT: There is nothing that we would like to do here?Noteven disable the IRQ? As the timer is not stopped, when thecounteroverflowswe would get a new interrupt otherwise (although the overflow could happen in a very very long time, right?)In previous version, we added a generic_timer_mask_irq() in generic_timer_irq_handler. But as per the suggestion [1] from Julien,weremoved it. Besides, we referred to the minios logic at [2], it only called unmask and mask in block_domain (which is equivalent to unikraft's generic_timer_cpu_block)Looking at my comments again, I am not sure where Isuggested toremovegeneric_timer_mask_irq()... Can you expand it?Okay... sorry for my mistakes. I will add generic_timer_mask_irq() back. Well, if you want to get common code you will have to find a common naming. You have a few choices here: 1) Use the AArch64 names and alias the AArch32 names. This is what we do for Xen. 2) Use the AArch32 names and alias the AArch64 names. 3) Providing helper for every single registers.The AArch64 names have the advantage to tell you what is the lowest level they can be accessed fro Regarding Sharam's suggest, el0_get() implies you can only use with system register accessible at EL0 (i.e. userspace). Unikraft will also need to access system register only accessible at EL1. So you may want to think for a different name. Maybe {read, write}_sysreg()? I haven't suggested get because the counterpart 'put' does not seem suitable here. Cheers, -- Julien Grall _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |