Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670786 > unrolled thread

[PATCH] arm64: remove a redundancy in sysreg.h

Started byStefan Traby <stefan@hello-penguin.com>
First post2017-06-20 15:50 +0200
Last post2017-06-20 18:10 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] arm64: remove a redundancy in sysreg.h Stefan Traby <stefan@hello-penguin.com> - 2017-06-20 15:50 +0200
    Re: [PATCH] arm64: remove a redundancy in sysreg.h Marc Zyngier <marc.zyngier@arm.com> - 2017-06-20 16:00 +0200
      Re: [PATCH] arm64: remove a redundancy in sysreg.h Will Deacon <will.deacon@arm.com> - 2017-06-20 16:10 +0200
        Re: [PATCH] arm64: remove a redundancy in sysreg.h Will Deacon <will.deacon@arm.com> - 2017-06-20 17:50 +0200
          Re: [PATCH] arm64: remove a redundancy in sysreg.h Marc Zyngier <marc.zyngier@arm.com> - 2017-06-20 18:10 +0200

#1670786 — [PATCH] arm64: remove a redundancy in sysreg.h

FromStefan Traby <stefan@hello-penguin.com>
Date2017-06-20 15:50 +0200
Subject[PATCH] arm64: remove a redundancy in sysreg.h
Message-ID<tUrHB-Q2-45@gated-at.bofh.it>
This is really trivial; there is a dup
(1 << 16) in the code

Signed-off-by: Stefan Traby <stefan@hello-penguin.com>
---
 arch/arm64/include/asm/sysreg.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
index 2d3e155b185f..580965129fea 100644
--- a/arch/arm64/include/asm/sysreg.h
+++ b/arch/arm64/include/asm/sysreg.h
@@ -139,8 +139,8 @@
 #define SCTLR_ELx_M	1
 
 #define SCTLR_EL2_RES1	((1 << 4)  | (1 << 5)  | (1 << 11) | (1 << 16) | \
-			 (1 << 16) | (1 << 18) | (1 << 22) | (1 << 23) | \
-			 (1 << 28) | (1 << 29))
+			 (1 << 18) | (1 << 22) | (1 << 23) | (1 << 28) | \
+			 (1 << 29))
 
 #define SCTLR_ELx_FLAGS	(SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \
 			 SCTLR_ELx_SA | SCTLR_ELx_I)
-- 
2.11.0


-- 

  ciao - 
    Stefan

[toc] | [next] | [standalone]


#1670792

FromMarc Zyngier <marc.zyngier@arm.com>
Date2017-06-20 16:00 +0200
Message-ID<tUrRg-Tl-29@gated-at.bofh.it>
In reply to#1670786
On 20/06/17 14:30, Stefan Traby wrote:
> This is really trivial; there is a dup
> (1 << 16) in the code
> 
> Signed-off-by: Stefan Traby <stefan@hello-penguin.com>
> ---
>  arch/arm64/include/asm/sysreg.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> index 2d3e155b185f..580965129fea 100644
> --- a/arch/arm64/include/asm/sysreg.h
> +++ b/arch/arm64/include/asm/sysreg.h
> @@ -139,8 +139,8 @@
>  #define SCTLR_ELx_M	1
>  
>  #define SCTLR_EL2_RES1	((1 << 4)  | (1 << 5)  | (1 << 11) | (1 << 16) | \
> -			 (1 << 16) | (1 << 18) | (1 << 22) | (1 << 23) | \
> -			 (1 << 28) | (1 << 29))
> +			 (1 << 18) | (1 << 22) | (1 << 23) | (1 << 28) | \
> +			 (1 << 29))
>  
>  #define SCTLR_ELx_FLAGS	(SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \
>  			 SCTLR_ELx_SA | SCTLR_ELx_I)
> 

Acked-by: Marc Zyngier <marc.zyngier@arm.com>

Catalin, Will: do you want to get that through arm64? Alternatively, I
get stash it in the KVM tree.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

[toc] | [prev] | [next] | [standalone]


#1670800

FromWill Deacon <will.deacon@arm.com>
Date2017-06-20 16:10 +0200
Message-ID<tUs0W-1bG-19@gated-at.bofh.it>
In reply to#1670792
On Tue, Jun 20, 2017 at 02:54:15PM +0100, Marc Zyngier wrote:
> On 20/06/17 14:30, Stefan Traby wrote:
> > This is really trivial; there is a dup
> > (1 << 16) in the code
> > 
> > Signed-off-by: Stefan Traby <stefan@hello-penguin.com>
> > ---
> >  arch/arm64/include/asm/sysreg.h | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> > index 2d3e155b185f..580965129fea 100644
> > --- a/arch/arm64/include/asm/sysreg.h
> > +++ b/arch/arm64/include/asm/sysreg.h
> > @@ -139,8 +139,8 @@
> >  #define SCTLR_ELx_M	1
> >  
> >  #define SCTLR_EL2_RES1	((1 << 4)  | (1 << 5)  | (1 << 11) | (1 << 16) | \
> > -			 (1 << 16) | (1 << 18) | (1 << 22) | (1 << 23) | \
> > -			 (1 << 28) | (1 << 29))
> > +			 (1 << 18) | (1 << 22) | (1 << 23) | (1 << 28) | \
> > +			 (1 << 29))
> >  
> >  #define SCTLR_ELx_FLAGS	(SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \
> >  			 SCTLR_ELx_SA | SCTLR_ELx_I)
> > 
> 
> Acked-by: Marc Zyngier <marc.zyngier@arm.com>
> 
> Catalin, Will: do you want to get that through arm64? Alternatively, I
> get stash it in the KVM tree.

I can pick it up.

Will

[toc] | [prev] | [next] | [standalone]


#1670889

FromWill Deacon <will.deacon@arm.com>
Date2017-06-20 17:50 +0200
Message-ID<tUtzI-238-21@gated-at.bofh.it>
In reply to#1670800
On Tue, Jun 20, 2017 at 03:05:39PM +0100, Will Deacon wrote:
> On Tue, Jun 20, 2017 at 02:54:15PM +0100, Marc Zyngier wrote:
> > On 20/06/17 14:30, Stefan Traby wrote:
> > > This is really trivial; there is a dup
> > > (1 << 16) in the code
> > > 
> > > Signed-off-by: Stefan Traby <stefan@hello-penguin.com>
> > > ---
> > >  arch/arm64/include/asm/sysreg.h | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> > > index 2d3e155b185f..580965129fea 100644
> > > --- a/arch/arm64/include/asm/sysreg.h
> > > +++ b/arch/arm64/include/asm/sysreg.h
> > > @@ -139,8 +139,8 @@
> > >  #define SCTLR_ELx_M	1
> > >  
> > >  #define SCTLR_EL2_RES1	((1 << 4)  | (1 << 5)  | (1 << 11) | (1 << 16) | \
> > > -			 (1 << 16) | (1 << 18) | (1 << 22) | (1 << 23) | \
> > > -			 (1 << 28) | (1 << 29))
> > > +			 (1 << 18) | (1 << 22) | (1 << 23) | (1 << 28) | \
> > > +			 (1 << 29))
> > >  
> > >  #define SCTLR_ELx_FLAGS	(SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \
> > >  			 SCTLR_ELx_SA | SCTLR_ELx_I)
> > > 
> > 
> > Acked-by: Marc Zyngier <marc.zyngier@arm.com>
> > 
> > Catalin, Will: do you want to get that through arm64? Alternatively, I
> > get stash it in the KVM tree.
> 
> I can pick it up.

D'oh, didn't realise that SCTLR_EL2_RES1 was only introduced in -rc5, so I
can't easily take this via arm64 for-next/core (which is based on -rc3). I
don't think it justifies sending as a fix, so if you could take it via KVM
after all, then that would be helpful.

Acked-by: Will Deacon <will.deacon@arm.com>

Sorry for the confusion,

Will

[toc] | [prev] | [next] | [standalone]


#1670908

FromMarc Zyngier <marc.zyngier@arm.com>
Date2017-06-20 18:10 +0200
Message-ID<tUtT4-2pP-13@gated-at.bofh.it>
In reply to#1670889
On 20/06/17 16:43, Will Deacon wrote:
> On Tue, Jun 20, 2017 at 03:05:39PM +0100, Will Deacon wrote:
>> On Tue, Jun 20, 2017 at 02:54:15PM +0100, Marc Zyngier wrote:
>>> On 20/06/17 14:30, Stefan Traby wrote:
>>>> This is really trivial; there is a dup
>>>> (1 << 16) in the code
>>>>
>>>> Signed-off-by: Stefan Traby <stefan@hello-penguin.com>
>>>> ---
>>>>  arch/arm64/include/asm/sysreg.h | 4 ++--
>>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
>>>> index 2d3e155b185f..580965129fea 100644
>>>> --- a/arch/arm64/include/asm/sysreg.h
>>>> +++ b/arch/arm64/include/asm/sysreg.h
>>>> @@ -139,8 +139,8 @@
>>>>  #define SCTLR_ELx_M	1
>>>>  
>>>>  #define SCTLR_EL2_RES1	((1 << 4)  | (1 << 5)  | (1 << 11) | (1 << 16) | \
>>>> -			 (1 << 16) | (1 << 18) | (1 << 22) | (1 << 23) | \
>>>> -			 (1 << 28) | (1 << 29))
>>>> +			 (1 << 18) | (1 << 22) | (1 << 23) | (1 << 28) | \
>>>> +			 (1 << 29))
>>>>  
>>>>  #define SCTLR_ELx_FLAGS	(SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \
>>>>  			 SCTLR_ELx_SA | SCTLR_ELx_I)
>>>>
>>>
>>> Acked-by: Marc Zyngier <marc.zyngier@arm.com>
>>>
>>> Catalin, Will: do you want to get that through arm64? Alternatively, I
>>> get stash it in the KVM tree.
>>
>> I can pick it up.
> 
> D'oh, didn't realise that SCTLR_EL2_RES1 was only introduced in -rc5, so I
> can't easily take this via arm64 for-next/core (which is based on -rc3). I
> don't think it justifies sending as a fix, so if you could take it via KVM
> after all, then that would be helpful.
> 
> Acked-by: Will Deacon <will.deacon@arm.com>
> 
> Sorry for the confusion,

No worries, I'll stash it on our -next branch.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web