From: Ian Campbell Subject: Re: [RFC PATCH] xen/arm: remove check for generic timer support for arm64 Date: Tue, 23 Sep 2014 17:33:57 +0100 Message-ID: <1411490037.1781.105.camel@kazak.uk.xensource.com> References: <1411042429-17108-1-git-send-email-vijay.kilari@gmail.com> <1411042429-17108-4-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411042429-17108-4-git-send-email-vijay.kilari@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: vijay.kilari@gmail.com Cc: stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com, julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, manish.jaggi@caviumnetworks.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-09-18 at 17:43 +0530, vijay.kilari@gmail.com wrote: > From: Vijaya Kumar K > > Information about support for generic support is available in > IDR_PFR1 register in ARMv7. Where as this information is not > available in ARMv8 that supports only aarch64 bit mode. > ARMv8 being always supports generic timer, this check is not > required. > > For platforms that support only aarch64 mode, IDR_PFR1 is > not implemented I think this answers my question on "check on domain type against hardware support"... > Signed-off-by: Vijaya Kumar K But this patch is itself OK: Acked-by: Ian Campbell > --- > xen/include/asm-arm/cpufeature.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/xen/include/asm-arm/cpufeature.h b/xen/include/asm-arm/cpufeature.h > index aec9173..7a6d3de 100644 > --- a/xen/include/asm-arm/cpufeature.h > +++ b/xen/include/asm-arm/cpufeature.h > @@ -27,7 +27,11 @@ > #define cpu_has_jazelle (boot_cpu_feature32(jazelle) >= 0) > #define cpu_has_thumbee (boot_cpu_feature32(thumbee) == 1) > > +#ifdef CONFIG_ARM_32 > #define cpu_has_gentimer (boot_cpu_feature32(gentimer) == 1) > +#else > +#define cpu_has_gentimer (1) > +#endif > #define cpu_has_security (boot_cpu_feature32(security) > 0) > > #endif