All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC
@ 2020-11-11 11:52 Kefeng Wang
  2020-11-11 12:34 ` Pekka Enberg
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kefeng Wang @ 2020-11-11 11:52 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
  Cc: Atish Patra, Kefeng Wang

commit b91540d52a08 ("RISC-V: Add EFI runtime services") add
a duplicated PAGE_KERNEL_EXEC, kill it.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 arch/riscv/include/asm/pgtable.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
index 183f1f4b2ae6..73e8b5e5bb65 100644
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@ -99,7 +99,6 @@
 				| _PAGE_DIRTY)
 
 #define PAGE_KERNEL		__pgprot(_PAGE_KERNEL)
-#define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
 #define PAGE_KERNEL_READ	__pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
 #define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
 #define PAGE_KERNEL_READ_EXEC	__pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \
-- 
2.26.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC
  2020-11-11 11:52 [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC Kefeng Wang
@ 2020-11-11 12:34 ` Pekka Enberg
  2020-11-12  7:26 ` Atish Patra
  2020-12-14 11:30 ` Kefeng Wang
  2 siblings, 0 replies; 5+ messages in thread
From: Pekka Enberg @ 2020-11-11 12:34 UTC (permalink / raw)
  To: Kefeng Wang
  Cc: Atish Patra, linux-riscv, Albert Ou, Palmer Dabbelt, Paul Walmsley

On Wed, Nov 11, 2020 at 1:47 PM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>
> commit b91540d52a08 ("RISC-V: Add EFI runtime services") add
> a duplicated PAGE_KERNEL_EXEC, kill it.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Reviewed-by: Pekka Enberg <penberg@kernel.org>

> ---
>  arch/riscv/include/asm/pgtable.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
> index 183f1f4b2ae6..73e8b5e5bb65 100644
> --- a/arch/riscv/include/asm/pgtable.h
> +++ b/arch/riscv/include/asm/pgtable.h
> @@ -99,7 +99,6 @@
>                                 | _PAGE_DIRTY)
>
>  #define PAGE_KERNEL            __pgprot(_PAGE_KERNEL)
> -#define PAGE_KERNEL_EXEC       __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>  #define PAGE_KERNEL_READ       __pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
>  #define PAGE_KERNEL_EXEC       __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>  #define PAGE_KERNEL_READ_EXEC  __pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \
> --
> 2.26.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC
  2020-11-11 11:52 [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC Kefeng Wang
  2020-11-11 12:34 ` Pekka Enberg
@ 2020-11-12  7:26 ` Atish Patra
  2020-12-14 11:30 ` Kefeng Wang
  2 siblings, 0 replies; 5+ messages in thread
From: Atish Patra @ 2020-11-12  7:26 UTC (permalink / raw)
  To: Kefeng Wang
  Cc: Atish Patra, linux-riscv, Albert Ou, Palmer Dabbelt, Paul Walmsley

On Wed, Nov 11, 2020 at 3:47 AM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>
> commit b91540d52a08 ("RISC-V: Add EFI runtime services") add
> a duplicated PAGE_KERNEL_EXEC, kill it.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>  arch/riscv/include/asm/pgtable.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
> index 183f1f4b2ae6..73e8b5e5bb65 100644
> --- a/arch/riscv/include/asm/pgtable.h
> +++ b/arch/riscv/include/asm/pgtable.h
> @@ -99,7 +99,6 @@
>                                 | _PAGE_DIRTY)
>
>  #define PAGE_KERNEL            __pgprot(_PAGE_KERNEL)
> -#define PAGE_KERNEL_EXEC       __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>  #define PAGE_KERNEL_READ       __pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
>  #define PAGE_KERNEL_EXEC       __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>  #define PAGE_KERNEL_READ_EXEC  __pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \
> --
> 2.26.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

Apologies for the oversight. Thanks for the quick fix :).

Reviewed-by: Atish Patra <atish.patra@wdc.com>
-- 
Regards,
Atish

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC
  2020-11-11 11:52 [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC Kefeng Wang
  2020-11-11 12:34 ` Pekka Enberg
  2020-11-12  7:26 ` Atish Patra
@ 2020-12-14 11:30 ` Kefeng Wang
  2021-01-09 22:19   ` Palmer Dabbelt
  2 siblings, 1 reply; 5+ messages in thread
From: Kefeng Wang @ 2020-12-14 11:30 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
  Cc: Atish Patra, Palmer Dabbelt

Hi Palmer,  kindly ping..

On 2020/11/11 19:52, Kefeng Wang wrote:
> commit b91540d52a08 ("RISC-V: Add EFI runtime services") add
> a duplicated PAGE_KERNEL_EXEC, kill it.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>   arch/riscv/include/asm/pgtable.h | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
> index 183f1f4b2ae6..73e8b5e5bb65 100644
> --- a/arch/riscv/include/asm/pgtable.h
> +++ b/arch/riscv/include/asm/pgtable.h
> @@ -99,7 +99,6 @@
>   				| _PAGE_DIRTY)
>   
>   #define PAGE_KERNEL		__pgprot(_PAGE_KERNEL)
> -#define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>   #define PAGE_KERNEL_READ	__pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
>   #define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>   #define PAGE_KERNEL_READ_EXEC	__pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC
  2020-12-14 11:30 ` Kefeng Wang
@ 2021-01-09 22:19   ` Palmer Dabbelt
  0 siblings, 0 replies; 5+ messages in thread
From: Palmer Dabbelt @ 2021-01-09 22:19 UTC (permalink / raw)
  To: wangkefeng.wang; +Cc: Atish Patra, linux-riscv, aou, Paul Walmsley

On Mon, 14 Dec 2020 03:30:19 PST (-0800), wangkefeng.wang@huawei.com wrote:
> Hi Palmer,  kindly ping..
>
> On 2020/11/11 19:52, Kefeng Wang wrote:
>> commit b91540d52a08 ("RISC-V: Add EFI runtime services") add
>> a duplicated PAGE_KERNEL_EXEC, kill it.
>>
>> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
>> ---
>>   arch/riscv/include/asm/pgtable.h | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
>> index 183f1f4b2ae6..73e8b5e5bb65 100644
>> --- a/arch/riscv/include/asm/pgtable.h
>> +++ b/arch/riscv/include/asm/pgtable.h
>> @@ -99,7 +99,6 @@
>>   				| _PAGE_DIRTY)
>>
>>   #define PAGE_KERNEL		__pgprot(_PAGE_KERNEL)
>> -#define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>>   #define PAGE_KERNEL_READ	__pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
>>   #define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
>>   #define PAGE_KERNEL_READ_EXEC	__pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \

Thanks, this is on fixes.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-09 23:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 11:52 [PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC Kefeng Wang
2020-11-11 12:34 ` Pekka Enberg
2020-11-12  7:26 ` Atish Patra
2020-12-14 11:30 ` Kefeng Wang
2021-01-09 22:19   ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.