[PATCH v2] powerpc/boot: Set LANG=C in wrapper script

2021-10-26 Thread Christophe Leroy
While trying to build a simple Image for ACADIA platform, I got the following error: WRAParch/powerpc/boot/simpleImage.acadia INFO: Uncompressed kernel (size 0x6ae7d0) overlaps the address of the wrapper(0x40) INFO: Fixing the link_address of wrapper to

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-10-26 Thread Paul Moore
On Tue, Oct 26, 2021 at 6:55 AM Michael Ellerman wrote: > > Stephen Rothwell writes: > > Hi all, > > > > Today's linux-next merge of the audit tree got conflicts in: > > > > arch/powerpc/kernel/audit.c > > arch/powerpc/kernel/compat_audit.c > > > > between commit: > > > > 566af8cda399

Re: [PATCH v5 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
Hi, Miroslav On 2021/10/26 下午5:35, Miroslav Benes wrote: > Hi, > >> diff --git a/include/linux/trace_recursion.h >> b/include/linux/trace_recursion.h >> index abe1a50..2bc1522 100644 >> --- a/include/linux/trace_recursion.h >> +++ b/include/linux/trace_recursion.h >> @@ -135,6 +135,9 @@ static

Re: [PATCH v2] perf vendor events power10: Add metric events json file for power10 platform

2021-10-26 Thread kajoljain
On 10/25/21 5:36 PM, Paul A. Clarke wrote: > On Mon, Oct 25, 2021 at 02:23:15PM +1100, Michael Ellerman wrote: >> "Paul A. Clarke" writes: >>> Thanks for the changes! >>> More nits below (many left over from prior review)... >>> >>> On Fri, Oct 22, 2021 at 11:55:05AM +0530, Kajol Jain wrote:

[PATCH v1] powerpc/64s/interrupt: Fix check_return_regs_valid false positive

2021-10-26 Thread Nicholas Piggin
The check_return_regs_valid can cause a false positive if the return regs are marked as norestart and they are an HSRR type interrupt, because the low bit in the bottom of regs->trap causes interrupt type matching to fail. This can occcur for example on bare metal with a HV privileged doorbell

Re: [PATCH v2] macintosh/via-pmu-led: make disk activity usage a parameter.

2021-10-26 Thread Hill Ma
Thanks for the review. On Tue, Oct 26, 2021 at 6:08 AM Nathan Lynch wrote: > > Hello, > > Hill Ma writes: > > Whether to use the LED as a disk activity is a user preference. > > Some like this usage while others find the LED too bright. So it > > might be a good idea to make this choice a

Re: [PATCH] mm/migrate.c: Remove MIGRATE_PFN_LOCKED

2021-10-26 Thread Felix Kuehling
Am 2021-10-25 um 12:16 a.m. schrieb Alistair Popple: > MIGRATE_PFN_LOCKED is used to indicate to migrate_vma_prepare() that a > source page was already locked during migrate_vma_collect(). If it > wasn't then the a second attempt is made to lock the page. However if > the first attempt failed it's

[PATCH 1/2] powerpc/watchdog: prevent printk and send IPI while holding the wd lock

2021-10-26 Thread Laurent Dufour
When handling the Watchdog interrupt, long processing should not be done while holding the __wd_smp_lock. This prevents the other CPUs to grab it and to process Watchdog timer interrupts. Furhtermore, this could lead to the following situation: CPU x detect lockup on CPU y and grab the

Re: [PATCH v3] powerpc/boot: Set LC_ALL=C in wrapper script

2021-10-26 Thread Segher Boessenkool
On Tue, Oct 26, 2021 at 03:48:29PM +0200, Christophe Leroy wrote: > While trying to build a simple Image for ACADIA platform, I got the > following error: > > WRAParch/powerpc/boot/simpleImage.acadia > INFO: Uncompressed kernel (size 0x6ae7d0) overlaps the address of the >

[PATCH 2/2] powerpc/watchdog: ensure watchdog data accesses are protected

2021-10-26 Thread Laurent Dufour
The wd_smp_cpus_pending CPU mask should be accessed under the protection of the __wd_smp_lock. This prevents false alarm to be raised when the system is under an heavy stress. This has been seen while doing LPM on large system with a big workload. Signed-off-by: Laurent Dufour ---

[PATCH 0/2] powerpc prevents deadlock in the watchdog path

2021-10-26 Thread Laurent Dufour
While doing LPM on large system (for instance a Brazos system with 1024 CPUs and 12TB of memory) with an heavy load (I ran 'stress-ng --futex 500 -vm 5'), watchdog hard lockup are seen when the hypervisor is taking too much time handling the page tables to track page's changes. When this happens,

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-10-26 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the audit tree got conflicts in: > > arch/powerpc/kernel/audit.c > arch/powerpc/kernel/compat_audit.c > > between commit: > > 566af8cda399 ("powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC") > > from the powerpc

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-26 Thread John Paul Adrian Glaubitz
Hi Michael! > The Linux kernel for powerpc since v5.2 has a bug which allows a > malicious KVM guest to crash the host, when the host is running on > Power8. > > Only machines using Linux as the hypervisor, aka. KVM, powernv or bare > metal, are affected by the bug. Machines running PowerVM are

[PATCH] powerpc/xmon: fix task state output

2021-10-26 Thread Denis Kirjanov
p_state is unsigned since the commit 2f064a59a11f The patch also uses TASK_RUNNING instead of null. Fixes: 2f064a59a11f ("sched: Change task_struct::state") Signed-off-by: Denis Kirjanov --- arch/powerpc/xmon/xmon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH v2] perf vendor events power10: Add metric events json file for power10 platform

2021-10-26 Thread kajoljain
On 10/22/21 8:19 PM, Paul A. Clarke wrote: > Thanks for the changes! > More nits below (many left over from prior review)... > > On Fri, Oct 22, 2021 at 11:55:05AM +0530, Kajol Jain wrote: >> Add pmu metric json file for power10 platform. >> >> Signed-off-by: Kajol Jain >> --- >> Changelog v1

Re: [PATCH v5 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread Steven Rostedt
On Tue, 26 Oct 2021 17:48:10 +0800 王贇 wrote: > > The two comments should be updated too since Steven removed the "bit == 0" > > trick. > > Could you please give more hint on how will it be correct? > > I get the point that bit will no longer be 0, there are only -1 or > 0 now > so

Re: [PATCH v2] macintosh/via-pmu-led: make disk activity usage a parameter.

2021-10-26 Thread Nathan Lynch
Hello, Hill Ma writes: > Whether to use the LED as a disk activity is a user preference. > Some like this usage while others find the LED too bright. So it > might be a good idea to make this choice a runtime parameter rather > than compile-time config. Users already have the ability to change

[PATCH v3] powerpc/boot: Set LC_ALL=C in wrapper script

2021-10-26 Thread Christophe Leroy
While trying to build a simple Image for ACADIA platform, I got the following error: WRAParch/powerpc/boot/simpleImage.acadia INFO: Uncompressed kernel (size 0x6ae7d0) overlaps the address of the wrapper(0x40) INFO: Fixing the link_address of wrapper to

Re: [PATCH v5 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread Miroslav Benes
Hi, > diff --git a/include/linux/trace_recursion.h b/include/linux/trace_recursion.h > index abe1a50..2bc1522 100644 > --- a/include/linux/trace_recursion.h > +++ b/include/linux/trace_recursion.h > @@ -135,6 +135,9 @@ static __always_inline int trace_get_context_bit(void) > # define

Re: [PATCH][next] powerpc/vas: Fix potential NULL pointer dereference

2021-10-26 Thread Gustavo A. R. Silva
On Mon, Oct 18, 2021 at 02:09:31PM -0700, Tyrel Datwyler wrote: > On 10/14/21 10:03 PM, Gustavo A. R. Silva wrote: > > (!ptr && !ptr->foo) strikes again. :) > > > > The expression (!ptr && !ptr->foo) is bogus and in case ptr is NULL, > > it leads to a NULL pointer dereference: ptr->foo. > > > >

[powerpc:next] BUILD SUCCESS 319fa1a52e438a6e028329187783a25ad498c4e6

2021-10-26 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next branch HEAD: 319fa1a52e438a6e028329187783a25ad498c4e6 powerpc/pseries/mobility: ignore ibm, platform-facilities updates elapsed time: 1963m configs tested: 64 configs skipped: 3 The following configs have

Re: [PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-10-26 Thread Palmer Dabbelt
On Sat, 09 Oct 2021 10:20:20 PDT (-0700), a...@ghiti.fr wrote: Arf, I have sent this patchset with the wrong email address. @Palmer tell me if you want me to resend it correctly. Sorry for being kind of slow here. It's fine: there's a "From:" in the patch, and git picks those up so it'll

Re: [PATCH] powerpc/xmon: fix task state output

2021-10-26 Thread Michael Ellerman
Denis Kirjanov writes: > p_state is unsigned since the commit 2f064a59a11f > > The patch also uses TASK_RUNNING instead of null. > > Fixes: 2f064a59a11f ("sched: Change task_struct::state") > Signed-off-by: Denis Kirjanov > --- > arch/powerpc/xmon/xmon.c | 3 +-- > 1 file changed, 1

Re: [PATCH v5 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
On 2021/10/26 下午8:01, Steven Rostedt wrote: > On Tue, 26 Oct 2021 17:48:10 +0800 > 王贇 wrote: > >>> The two comments should be updated too since Steven removed the "bit == 0" >>> trick. >> >> Could you please give more hint on how will it be correct? >> >> I get the point that bit will no

Re: [PATCH 2/3] powerpc/book3e: Fix set_memory_x() and set_memory_nx()

2021-10-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 26, 2021 3:39 pm: > set_memory_x() calls pte_mkexec() which sets _PAGE_EXEC. > set_memory_nx() calls pte_exprotec() which clears _PAGE_EXEC. > > Book3e has 2 bits, UX and SX, which defines the exec rights > resp. for user (PR=1) and for kernel

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-26 Thread Nicholas Piggin
Excerpts from John Paul Adrian Glaubitz's message of October 26, 2021 6:48 pm: > Hi Michael! > >> The Linux kernel for powerpc since v5.2 has a bug which allows a >> malicious KVM guest to crash the host, when the host is running on >> Power8. >> >> Only machines using Linux as the hypervisor,

Re: [PATCH][next] powerpc/vas: Fix potential NULL pointer dereference

2021-10-26 Thread Gustavo A. R. Silva
On Wed, Oct 27, 2021 at 09:30:53AM +1100, Michael Ellerman wrote: [..] > > I think I'll take this in my tree. > > I've already put it in powerpc/next: > > > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next=61cb9ac66b30374c7fd8a8b2a3c4f8f432c72e36 Oh, great. :)

Re: [PATCH v2] macintosh/via-pmu-led: make disk activity usage a parameter.

2021-10-26 Thread Michael Ellerman
Hill Ma writes: > Thanks for the review. > > On Tue, Oct 26, 2021 at 6:08 AM Nathan Lynch wrote: >> >> Hello, >> >> Hill Ma writes: >> > Whether to use the LED as a disk activity is a user preference. >> > Some like this usage while others find the LED too bright. So it >> > might be a good

Re: [PATCH v6 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
On 2021/10/27 上午10:55, Steven Rostedt wrote: > On Wed, 27 Oct 2021 10:34:13 +0800 > 王贇 wrote: > >> +/* >> + * Preemption will be enabled (if it was previously enabled). >> + */ >> static __always_inline void trace_clear_recursion(int bit) >> { >> +WARN_ON_ONCE(bit < 0); > > Can you

[PATCH v7 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
As the documentation explained, ftrace_test_recursion_trylock() and ftrace_test_recursion_unlock() were supposed to disable and enable preemption properly, however currently this work is done outside of the function, which could be missing by mistake. And since the internal using of

[PATCH v7 0/2] fix & prevent the missing preemption disabling

2021-10-26 Thread 王贇
The testing show that perf_ftrace_function_call() are using smp_processor_id() with preemption enabled, all the checking on CPU could be wrong after preemption. As Peter point out, the section between ftrace_test_recursion_trylock/unlock() pair require the preemption to be disabled as

Re: [PATCH 1/2] powerpc/watchdog: prevent printk and send IPI while holding the wd lock

2021-10-26 Thread Nicholas Piggin
Excerpts from Laurent Dufour's message of October 27, 2021 2:27 am: > When handling the Watchdog interrupt, long processing should not be done > while holding the __wd_smp_lock. This prevents the other CPUs to grab it > and to process Watchdog timer interrupts. Furhtermore, this could lead to >

Re: [PATCH 2/3] powerpc/book3e: Fix set_memory_x() and set_memory_nx()

2021-10-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 27, 2021 2:55 pm: > > > Le 27/10/2021 à 06:44, Nicholas Piggin a écrit : >> Excerpts from Christophe Leroy's message of October 26, 2021 3:39 pm: >>> set_memory_x() calls pte_mkexec() which sets _PAGE_EXEC. >>> set_memory_nx() calls

instruction storage exception handling

2021-10-26 Thread Jacques de Laval
Hi, We are trying to upgrade kernel from 5.10 to 5.14.11. We have a Freescale/NXP T1023 SOC with two e5500 cores, and are running in 32-bit mode: CONFIG_PPC32=y # CONFIG_PPC64 is not set # # Processor support # # CONFIG_PPC_BOOK3S_32 is not set

Re: [PATCH v6] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
Hi, Steven, Miroslav Should have fixed the comments about bit value, besides, add a warn in trace_clear_recursion() to make sure the bit < 0 abusing case will get notified. Please let me know if there are any other issues :-) Regards, Michael Wang On 2021/10/27 上午10:11, 王贇 wrote: > As the

Re: [PATCH v5 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread Steven Rostedt
On Wed, 27 Oct 2021 09:54:13 +0800 王贇 wrote: > My apologize for the stupid comments... I'll send a v6 for this patch > only to fix that, please let me know if this is not a good way to fix > few lines of comments. Actually, please resend both patches, as a new patch set, on its own thread.

[PATCH v7 2/2] ftrace: do CPU checking after preemption disabled

2021-10-26 Thread 王贇
With CONFIG_DEBUG_PREEMPT we observed reports like: BUG: using smp_processor_id() in preemptible caller is perf_ftrace_function_call+0x6f/0x2e0 CPU: 1 PID: 680 Comm: a.out Not tainted Call Trace: dump_stack_lvl+0x8d/0xcf check_preemption_disabled+0x104/0x110 ?

Re: [PATCH][next] powerpc/vas: Fix potential NULL pointer dereference

2021-10-26 Thread Michael Ellerman
"Gustavo A. R. Silva" writes: > On Mon, Oct 18, 2021 at 02:09:31PM -0700, Tyrel Datwyler wrote: >> On 10/14/21 10:03 PM, Gustavo A. R. Silva wrote: >> > (!ptr && !ptr->foo) strikes again. :) >> > >> > The expression (!ptr && !ptr->foo) is bogus and in case ptr is NULL, >> > it leads to a NULL

Re: [PATCH v5 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
On 2021/10/27 上午10:26, Steven Rostedt wrote: > On Wed, 27 Oct 2021 09:54:13 +0800 > 王贇 wrote: > >> My apologize for the stupid comments... I'll send a v6 for this patch >> only to fix that, please let me know if this is not a good way to fix >> few lines of comments. > > Actually, please

Re: [PATCH 2/2] powerpc/watchdog: ensure watchdog data accesses are protected

2021-10-26 Thread Nicholas Piggin
Excerpts from Laurent Dufour's message of October 27, 2021 2:27 am: > The wd_smp_cpus_pending CPU mask should be accessed under the protection of > the __wd_smp_lock. > > This prevents false alarm to be raised when the system is under an heavy > stress. This has been seen while doing LPM on large

Re: instruction storage exception handling

2021-10-26 Thread Nicholas Piggin
Excerpts from Jacques de Laval's message of October 26, 2021 6:07 am: > Hi, > > We are trying to upgrade kernel from 5.10 to 5.14.11. We have a Freescale/NXP > T1023 SOC with two e5500 cores, and are running in 32-bit mode: > > CONFIG_PPC32=y > # CONFIG_PPC64 is not set > > #

Re: [PATCH 1/3] powerpc/nohash: Fix __ptep_set_access_flags() and ptep_set_wrprotect()

2021-10-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 26, 2021 3:39 pm: > Commit 26973fa5ac0e ("powerpc/mm: use pte helpers in generic code") > changed those two functions to use pte helpers to determine which > bits to clear and which bits to set. > > This change was based on the assumption that

[PATCH v6 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
As the documentation explained, ftrace_test_recursion_trylock() and ftrace_test_recursion_unlock() were supposed to disable and enable preemption properly, however currently this work is done outside of the function, which could be missing by mistake. And since the internal using of

[PATCH v6 0/2] fix & prevent the missing preemption disabling

2021-10-26 Thread 王贇
The testing show that perf_ftrace_function_call() are using smp_processor_id() with preemption enabled, all the checking on CPU could be wrong after preemption. As Peter point out, the section between ftrace_test_recursion_trylock/unlock() pair require the preemption to be disabled as

[PATCH v6 2/2] ftrace: do CPU checking after preemption disabled

2021-10-26 Thread 王贇
With CONFIG_DEBUG_PREEMPT we observed reports like: BUG: using smp_processor_id() in preemptible caller is perf_ftrace_function_call+0x6f/0x2e0 CPU: 1 PID: 680 Comm: a.out Not tainted Call Trace: dump_stack_lvl+0x8d/0xcf check_preemption_disabled+0x104/0x110 ?

[PATCH] livepatch: Fix build failure on 32 bits processors

2021-10-26 Thread Christophe Leroy
Trying to build livepatch on powerpc/32 results in: kernel/livepatch/core.c: In function 'klp_resolve_symbols': kernel/livepatch/core.c:221:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 221 | sym = (Elf64_Sym

Re: instruction storage exception handling

2021-10-26 Thread Christophe Leroy
Le 27/10/2021 à 06:10, Nicholas Piggin a écrit : Excerpts from Jacques de Laval's message of October 26, 2021 6:07 am: Hi, We are trying to upgrade kernel from 5.10 to 5.14.11. We have a Freescale/NXP T1023 SOC with two e5500 cores, and are running in 32-bit mode: CONFIG_PPC32=y

Re: instruction storage exception handling

2021-10-26 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 27, 2021 3:00 pm: > > > Le 27/10/2021 à 06:10, Nicholas Piggin a écrit : >> Excerpts from Jacques de Laval's message of October 26, 2021 6:07 am: >>> Hi, >>> >>> We are trying to upgrade kernel from 5.10 to 5.14.11. We have a >>> Freescale/NXP

Re: [PATCH 0/2] ftrace: make sure preemption disabled on recursion testing

2021-10-26 Thread Palmer Dabbelt
On Mon, 11 Oct 2021 22:39:16 PDT (-0700), yun.w...@linux.alibaba.com wrote: The testing show that perf_ftrace_function_call() are using smp_processor_id() with preemption enabled, all the checking on CPU could be wrong after preemption, PATCH 1/2 will fix that. Besides, as Peter point out, the

[PATCH v6] ftrace: disable preemption when recursion locked

2021-10-26 Thread 王贇
As the documentation explained, ftrace_test_recursion_trylock() and ftrace_test_recursion_unlock() were supposed to disable and enable preemption properly, however currently this work is done outside of the function, which could be missing by mistake. And since the internal using of

Re: [PATCH v6 1/2] ftrace: disable preemption when recursion locked

2021-10-26 Thread Steven Rostedt
On Wed, 27 Oct 2021 10:34:13 +0800 王贇 wrote: > +/* > + * Preemption will be enabled (if it was previously enabled). > + */ > static __always_inline void trace_clear_recursion(int bit) > { > + WARN_ON_ONCE(bit < 0); Can you send a v7 without the WARN_ON. This is an extremely hot path, and

Re: [PATCH 1/3] powerpc/nohash: Fix __ptep_set_access_flags() and ptep_set_wrprotect()

2021-10-26 Thread Christophe Leroy
Le 27/10/2021 à 06:23, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 26, 2021 3:39 pm: Commit 26973fa5ac0e ("powerpc/mm: use pte helpers in generic code") changed those two functions to use pte helpers to determine which bits to clear and which bits to set.

Re: [PATCH 2/3] powerpc/book3e: Fix set_memory_x() and set_memory_nx()

2021-10-26 Thread Christophe Leroy
Le 27/10/2021 à 06:44, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 26, 2021 3:39 pm: set_memory_x() calls pte_mkexec() which sets _PAGE_EXEC. set_memory_nx() calls pte_exprotec() which clears _PAGE_EXEC. Book3e has 2 bits, UX and SX, which defines the exec

Re: [PATCH v7 1/3] riscv: Introduce CONFIG_RELOCATABLE

2021-10-26 Thread Alexandre ghiti
Hi Palmer, On 10/26/21 11:29 PM, Palmer Dabbelt wrote: > On Sat, 09 Oct 2021 10:20:20 PDT (-0700), a...@ghiti.fr wrote: >> Arf, I have sent this patchset with the wrong email address. @Palmer >> tell me if you want me to resend it correctly. > > Sorry for being kind of slow here.  It's fine:

Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8

2021-10-26 Thread Michael Ellerman
John Paul Adrian Glaubitz writes: > Hi Michael! Hi Adrian, Thanks for testing ... >> The Linux kernel for powerpc since v5.2 has a bug which allows a >> malicious KVM guest to crash the host, when the host is running on >> Power8. >> >> Only machines using Linux as the hypervisor, aka. KVM,

Re: instruction storage exception handling

2021-10-26 Thread Christophe Leroy
Le 27/10/2021 à 07:25, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 27, 2021 3:00 pm: Le 27/10/2021 à 06:10, Nicholas Piggin a écrit : Excerpts from Jacques de Laval's message of October 26, 2021 6:07 am: Hi, We are trying to upgrade kernel from 5.10 to

Re: [PATCH 2/3] powerpc/book3e: Fix set_memory_x() and set_memory_nx()

2021-10-26 Thread Christophe Leroy
Le 27/10/2021 à 07:27, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 27, 2021 2:55 pm: Le 27/10/2021 à 06:44, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 26, 2021 3:39 pm: set_memory_x() calls pte_mkexec() which sets

Re: [PATCH v11 2/3] tty: hvc: pass DMA capable memory to put_chars()

2021-10-26 Thread Greg KH
On Tue, Oct 26, 2021 at 02:11:51PM +0800, Xianting Tian wrote: > > 在 2021/10/26 下午2:10, Greg KH 写道: > > On Tue, Oct 26, 2021 at 02:02:21PM +0800, Xianting Tian wrote: > > > 在 2021/10/26 下午1:10, Jiri Slaby 写道: > > > > On 15. 10. 21, 4:46, Xianting Tian wrote: > > > > > @@ -151,9 +142,11 @@ static

Re: [PATCH v11 2/3] tty: hvc: pass DMA capable memory to put_chars()

2021-10-26 Thread Xianting Tian
在 2021/10/26 下午1:10, Jiri Slaby 写道: On 15. 10. 21, 4:46, Xianting Tian wrote: @@ -151,9 +142,11 @@ static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] =   static void hvc_console_print(struct console *co, const char *b,     unsigned count)   { -    char c[N_OUTBUF] __ALIGNED__; +   

Re: [PATCH v11 2/3] tty: hvc: pass DMA capable memory to put_chars()

2021-10-26 Thread Greg KH
On Tue, Oct 26, 2021 at 02:02:21PM +0800, Xianting Tian wrote: > 在 2021/10/26 下午1:10, Jiri Slaby 写道: > > On 15. 10. 21, 4:46, Xianting Tian wrote: > > > @@ -151,9 +142,11 @@ static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] = > > >   static void hvc_console_print(struct console *co, const char *b, > >

Re: [PATCH v11 2/3] tty: hvc: pass DMA capable memory to put_chars()

2021-10-26 Thread Xianting Tian
在 2021/10/26 下午2:10, Greg KH 写道: On Tue, Oct 26, 2021 at 02:02:21PM +0800, Xianting Tian wrote: 在 2021/10/26 下午1:10, Jiri Slaby 写道: On 15. 10. 21, 4:46, Xianting Tian wrote: @@ -151,9 +142,11 @@ static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] =   static void hvc_console_print(struct console

Re: [PATCH v2 02/10] powerpc/book3e: Fix set_memory_x() and set_memory_nx()

2021-10-26 Thread Christophe Leroy
Le 25/10/2021 à 23:53, Christophe Leroy a écrit : On 23/10/2021 13:47, Christophe Leroy wrote: set_memory_x() calls pte_mkexec() which sets _PAGE_EXEC. set_memory_nx() calls pte_exprotec() which clears _PAGE_EXEC. Book3e has 2 bits, UX and SX, which defines the exec rights resp. for user