Instead of high_memory use is_vmalloc_addr to validate that the address is
not in the vmalloc range.
Cc: Kefeng Wang
Cc: Christophe Leroy
Signed-off-by: Aneesh Kumar K.V
-
---
arch/powerpc/include/asm/page.h | 10 --
arch/powerpc/mm/mem.c | 11 +++
2 files changed,
Le 04/07/2022 à 08:39, Aneesh Kumar K.V a écrit :
> Instead of high_memory use is_vmalloc_addr to validate that the address is
> not in the vmalloc range.
Do we really need even more extra checks, and a function that is not
inlined anymore ?
virt_addr_valid() used to be pretty simple. Some
No functional change in this patch. This was done so that
the previous change (commit ac790d09885d ("powerpc/memhotplug:
Add add_pages override for PPC")) can be easily backported.
Cc: Michal Hocko
Signed-off-by: Aneesh Kumar K.V
---
arch/powerpc/Kconfig | 5 +
arch/x86/Kconfig | 5
For both CONFIG_NUMA enabled/disabled use mem_topology_setup to
update max/min_low_pfn.
This also add min_low_pfn update to CONFIG_NUMA which was initialized
to zero before.
Signed-off-by: Aneesh Kumar K.V
---
arch/powerpc/mm/numa.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote:
>On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote:
>> gcc e500 compiler does not support -mcpu=powerpc option. When it is
>> specified then gcc throws compile error:
>>
>> gcc: error: unrecognized argument in option ‘-mcpu=powerpc’
>>
Am 2022-07-04 12:55, schrieb Dan Carpenter:
The of_iomap() function returns NULL on failure, it never returns
error pointers.
Fixes: ab4988d6a393 ("soc: fsl: guts: embed fsl_guts_get_svr() in
probe()")
Signed-off-by: Dan Carpenter
---
drivers/soc/fsl/guts.c | 4 ++--
1 file changed, 2
On Tue, 28 Jun 2022 16:48:54 +0200, Christophe Leroy wrote:
> With KUAP, the TLB miss handler bails out when an access to user
> memory is performed with a nul TID.
>
> But the normal TLB miss routine which is only used early during boot
> does the check regardless for all memory areas, not only
On Fri, 3 Jun 2022 15:08:14 +0200, Christophe Leroy wrote:
> When KASAN is enabled, as shown by the Oops below, the 2k limit is not
> enough to allow stack dump after a stack overflow detection when
> CONFIG_DEBUG_STACKOVERFLOW is selected:
>
> do_IRQ: stack overflow: 1984
> CPU: 0
On Thu, 9 Jun 2022 12:16:40 +0200, Christophe Leroy wrote:
> Since commit 48cf12d88969 ("powerpc/irq: Inline call_do_irq() and
> call_do_softirq()"), __do_irq() is not used outside irq.c
>
> Reorder functions and make __do_irq() static and
> drop the declaration in irq.h.
>
>
> [...]
Applied
On Wed, Jun 29, 2022 at 06:30:23PM +, Christophe Leroy wrote:
> The problem is that that function has size 0:
>
> 03d0 l F .text
> qdisc_root_sleeping_lock.part.0
I'm somewhat confused; how is an empty STT_FUNC a valid construct on
Power?
On 7/4/22 12:43 PM, Christophe Leroy wrote:
>
>
> Le 04/07/2022 à 08:39, Aneesh Kumar K.V a écrit :
>> Instead of high_memory use is_vmalloc_addr to validate that the address is
>> not in the vmalloc range.
>
>
> Do we really need even more extra checks, and a function that is not
> inlined
Le 04/07/2022 à 09:45, Aneesh Kumar K V a écrit :
> On 7/4/22 12:43 PM, Christophe Leroy wrote:
>>
>>
>> Le 04/07/2022 à 08:39, Aneesh Kumar K.V a écrit :
>>> Instead of high_memory use is_vmalloc_addr to validate that the address is
>>> not in the vmalloc range.
>>
>>
>> Do we really need even
On Wed, 18 May 2022 10:32:27 +0200, Christophe Leroy wrote:
> Use READ_ONCE() and WRITE_ONCE() instead of open coding
> read and write of local PACA irq_soft_mask.
>
> For the write, add a barrier to keep the memory clobber
> that was there previously.
>
>
> [...]
Applied to powerpc/next.
On Tue, 31 May 2022 17:19:50 +0800, Haowen Bai wrote:
> Eliminate direct accesses to the driver_data field.
>
>
Applied to powerpc/next.
[1/1] powerpc/papr_scm: use dev_get_drvdata
https://git.kernel.org/powerpc/c/d9abe36df74976231baa5abc4d399d11b504ace2
cheers
On Wed, 18 May 2022 09:40:15 +0200, Christophe Leroy wrote:
> More than half of irq.c is dedicated to PPC64.
>
> Move PPC64 code out of irq.c into irq_64.c
>
>
Applied to powerpc/next.
[1/2] powerpc/irq: Split irq.c
On Fri, 24 Jun 2022 10:55:50 +0200, Pali Rohár wrote:
> CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core
> PowerPC Freescale P2020 CPU and are based on Freescale P2020RDB-PC-A board.
> Hardware design is fully open source, all firmware and hardware design
> files are
On Thu, Jun 30, 2022 at 04:07:47PM +0530, Naveen N. Rao wrote:
> Objtool classifies 'ud2' as INSN_BUG, and 'int3' as INSN_TRAP. In x86 BUG(),
Yes, ud2 is the traditional 'kill' instruction and a number of emulators
treat it as such, however it also being the shortest encoding (2 bytes)
for #UD
On Tue, 31 May 2022 16:59:36 +1000, Michael Ellerman wrote:
> The ppc_inst_as_str() macro tries to make printing variable length,
> aka "prefixed", instructions convenient. It mostly succeeds, but it does
> hide an on-stack buffer, which triggers stack protector.
>
> More problematically it
On Thu, 16 Jun 2022 17:07:05 +1000, Michael Ellerman wrote:
> These were missed when the respective tests were added, add them now.
>
>
Applied to powerpc/next.
[1/1] selftests/powerpc: Add missing files to .gitignores
On Thu, Jun 30, 2022 at 10:58:11AM -0500, Segher Boessenkool wrote:
> On Thu, Jun 30, 2022 at 04:07:47PM +0530, Naveen N. Rao wrote:
> > Objtool classifies 'ud2' as INSN_BUG, and 'int3' as INSN_TRAP. In x86
> > BUG(), there is no need for an annotation since objtool assumes that
> > 'ud2'
On Sat, Jun 25, 2022 at 06:46:54AM +, Christophe Leroy wrote:
>
>
> Le 24/06/2022 à 20:32, Sathvika Vasireddy a écrit :
> > objtool is throwing *unannotated intra-function call*
> > warnings with a few instructions that are marked
> > unreachable. Remove unreachable() from WARN_ON()
> > to
On Tue, 14 Jun 2022 12:32:23 +0200, Christophe Leroy wrote:
> Mapping without BATs doesn't bring any added value to the user.
>
> Remove that option.
>
>
Applied to powerpc/next.
[1/3] powerpc/32: Remove the 'nobats' kernel parameter
On Thu, 23 Jun 2022 10:56:57 +0200, Christophe Leroy wrote:
> Rewrite p4d_populate() as a static inline function instead of
> a macro.
>
> This change allows typechecking and would have helped detecting
> a recently found bug in map_kernel_page().
>
>
> [...]
Applied to powerpc/next.
[1/1]
On Wed, 18 May 2022 10:48:55 +0200, Christophe Leroy wrote:
> Use WRITE_ONCE() instead of opencoding the saving of current
> stack pointeur.
>
>
Applied to powerpc/next.
[1/1] powerpc/irq: remove inline assembly in hard_irq_disable macro
On Thu, 30 Jun 2022 14:16:54 +0200, Jason A. Donenfeld wrote:
> The of node for the rng must be created much later in boot. Otherwise it
> tries to connect to a parent that doesn't yet exist, resulting on this
> splat:
>
> [0.000478] kobject: '(null)' ((ptrval)): is not initialized,
The of_iomap() function returns NULL on failure, it never returns
error pointers.
Fixes: ab4988d6a393 ("soc: fsl: guts: embed fsl_guts_get_svr() in probe()")
Signed-off-by: Dan Carpenter
---
drivers/soc/fsl/guts.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
On Mon, 20 Jun 2022 08:21:22 +0200, Christophe Leroy wrote:
> Since commit 634093c59a12 ("powerpc/mm: enable
> ARCH_HAS_VM_GET_PAGE_PROT"), _PAGE_SAO is used only in
> arch/powerpc/mm/book3s64/pgtable.c
>
> The _PAGE_SAO stub defined as 0 for book3e/64 can be removed.
>
>
> [...]
Applied to
On Tue, 28 Jun 2022 16:43:35 +0200, Christophe Leroy wrote:
> On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one
> for supervisor. As soon as one of the two bits is set, the page has
> to be display as RW. But the way it is implemented today requires both
> bits to be set in
On Sat, 11 Jun 2022 08:51:57 +0200, Christophe Leroy wrote:
> Commit f9b3cd245784 ("Kconfig.debug: make DEBUG_INFO selectable from a
> choice") broke the selection of CONFIG_DEBUG_INFO by powerpc defconfigs.
>
> It is now necessary to select one of the three DEBUG_INFO_DWARF*
> options to get
On Fri, 6 May 2022 11:14:24 +0200, Christophe Leroy wrote:
> Trying to remove asm/ppc_asm.h from all places that don't need it
> leads to several failures linked to firmware_has_feature().
>
> To fix it, include asm/firmware.h in all files using
> firmware_has_feature()
>
> All users found with:
On Thu, 29 Apr 2021 10:32:08 +0530, Madhavan Srinivasan wrote:
> struct perf_event_attr supports exclude counting of idle task.
> This is sent to kernel via perf_event_attr.exclude_idle and
> in perf tool, user can use ":I" event modifier to enable this
> for specific event.
>
> Monitor Mode
On Thu, 26 May 2022 08:57:35 +0200, Juerg Haefliger wrote:
> Replace some stray tabs with whitespaces and remove an extra empty
> line.
>
> Juerg Haefliger (2):
> powerpc: Kconfig: Replace tabs with whitespaces
> powerpc: Kconfig.debug: Remove extra empty line
>
> [...]
Applied to
On Fri, 10 Jun 2022 21:25:47 +0530, Hari Bathini wrote:
> This patchset adds atomic operations to the eBPF instruction set on
> powerpc. The instructions that are added here can be summarised with
> this list of kernel operations for ppc64:
>
> * atomic[64]_[fetch_]add
> * atomic[64]_[fetch_]and
On Mon, 23 May 2022 18:43:53 +0200, Laurent Dufour wrote:
> There is no need to read the H_BLOCK_REMOVE characteristics when running in
> Radix mode because this hcall is never called.
>
> Furthermore since the commit 387e220a2e5e ("powerpc/64s: Move hash MMU
> support code under
On Fri, 20 May 2022 13:52:29 +0200, Juerg Haefliger wrote:
> Replace single quotes with double quotes which seems to be the convention
> for strings.
>
>
Applied to powerpc/next.
[1/1] powerpc/powernv: Kconfig: Replace single quotes
We should call of_node_put() for the reference returned by
of_parse_phandle() which will increase the refcount.
Fixes: 42d0349784c7 ("soc/fsl/qbman: Add common routine for QBMan private
allocations")
Co-authored-by: Miaoqian Lin
Signed-off-by: Liang He
---
drivers/soc/fsl/qbman/dpaa_sys.c |
On Monday 04 July 2022 20:23:29 Michael Ellerman wrote:
> On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote:
> >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote:
> >> gcc e500 compiler does not support -mcpu=powerpc option. When it is
> >> specified then gcc throws compile error:
> >>
> >>
On Sat, Jun 25, 2022 at 12:02:33AM +0530, Sathvika Vasireddy wrote:
> Make relocation types architecture specific.
>
> Signed-off-by: Sathvika Vasireddy
> ---
> tools/objtool/arch/x86/include/arch/elf.h | 2 ++
> tools/objtool/check.c | 2 +-
> 2 files changed, 3
On 2 July 2022 8:42:06 pm AEST, "Jason A. Donenfeld" wrote:
>Hi Benjamin, Paul,
>
>On Thu, Jun 30, 2022 at 07:24:05PM +0530, Sachin Sant wrote:
>> > On 30-Jun-2022, at 5:46 PM, Jason A. Donenfeld wrote:
>> >
>> > The of node for the rng must be created much later in boot. Otherwise it
>> >
On Wed, 1 Jun 2022 14:01:17 +1000, Alexey Kardashevskiy wrote:
> PowerVM has a stricter policy about allocating TCEs for LPARs and
> often there is not enough TCEs for 1:1 mapping, this adds the supported
> numbers into dev_info() to help analyzing bugreports.
>
>
Applied to powerpc/next.
On Sun, 22 May 2022 19:52:56 +0530, Athira Rajeev wrote:
> commit 2c9ac51b850d ("powerpc/perf: Fix PMU callbacks to clear
> pending PMI before resetting an overflown PMC") added a new
> function "pmi_irq_pending" in hw_irq.h. This function is to check
> if there is a PMI marked as pending in Paca
On Fri, 10 Jun 2022 19:10:38 +0530, Athira Rajeev wrote:
> Patch series extends the perf interface selftests
> to cover scenarios for event code checking,
> group constraints, and also thresholding/branch related
> interface tests in sampling area.
>
> In this series, patches 1 to 14 adds
On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote:
> On Monday 04 July 2022 20:23:29 Michael Ellerman wrote:
> > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote:
> > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote:
> > >> gcc e500 compiler does not support -mcpu=powerpc option. When it is
>
On Mon, Jul 04, 2022 at 12:44:30PM +, Christophe Leroy wrote:
>
>
> Le 04/07/2022 à 14:05, Peter Zijlstra a écrit :
> > On Sat, Jun 25, 2022 at 06:46:54AM +, Christophe Leroy wrote:
> >>
> >>
> >> Le 24/06/2022 à 20:32, Sathvika Vasireddy a écrit :
> >>> objtool is throwing *unannotated
Le 04/07/2022 à 14:05, Peter Zijlstra a écrit :
> On Sat, Jun 25, 2022 at 06:46:54AM +, Christophe Leroy wrote:
>>
>>
>> Le 24/06/2022 à 20:32, Sathvika Vasireddy a écrit :
>>> objtool is throwing *unannotated intra-function call*
>>> warnings with a few instructions that are marked
>>>
On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote:
> On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote:
> > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote:
> > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote:
> > > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote:
> > > >> gcc
Le 04/07/2022 à 13:14, Peter Zijlstra a écrit :
> On Sat, Jun 25, 2022 at 12:02:33AM +0530, Sathvika Vasireddy wrote:
>> Make relocation types architecture specific.
>>
>> Signed-off-by: Sathvika Vasireddy
>> ---
>> tools/objtool/arch/x86/include/arch/elf.h | 2 ++
>> tools/objtool/check.c
On Mon, Jul 04, 2022 at 03:53:50PM +, Christophe Leroy wrote:
>
>
> Le 04/07/2022 à 13:14, Peter Zijlstra a écrit :
> > On Sat, Jun 25, 2022 at 12:02:33AM +0530, Sathvika Vasireddy wrote:
> >> Make relocation types architecture specific.
> >>
> >> Signed-off-by: Sathvika Vasireddy
> >> ---
Le 04/07/2022 à 13:45, Peter Zijlstra a écrit :
> On Wed, Jun 29, 2022 at 06:30:23PM +, Christophe Leroy wrote:
>
>
>> The problem is that that function has size 0:
>>
>> 03d0 l F .text
>> qdisc_root_sleeping_lock.part.0
>
> I'm somewhat confused;
On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote:
> On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote:
> > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc
> > CFLAGS_CPU-$(CONFIG_PPC_85xx) := -mcpu=8540
> > CFLAGS_CPU-$(CONFIG_PPC8xx) := -mcpu=860
> > CFLAGS_CPU-$(CONFIG_PPC44x) :=
On Monday 04 July 2022 15:22:03 Arnd Bergmann wrote:
> On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote:
> > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote:
>
> > > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc
> > > CFLAGS_CPU-$(CONFIG_PPC_85xx) := -mcpu=8540
> > >
On Mon, Jul 4, 2022 at 3:29 PM Pali Rohár wrote:
>
> And still what to do with 4bf4f42a2feb ("powerpc/kbuild: Set default
> generic machine type for 32-bit compile")? I'm somehow lost there...
As far as I can tell, that is not needed, as long as every configuration
sets a specific -mcpu= option,
for_each_compatible_node() will automaitically increase and decrease
the refcount of the device_node object. There is no need to call
additional of_node_get(). It is better to keep the original meaning
of refcounting as there is no any new reference created.
Signed-off-by: Liang He
---
I do not
In fsl_setup_msi_irqs(), we should use of_node_put() for the
refernece 'np' returned by of_parse_phandle() which increases
the refcount.
Fixes: 895d603f945ba ("powerpc/fsl_msi: add support for the fsl, msi property
in PCI nodes")
Co-authored-by: Miaoqian Lin
Signed-off-by: Liang He
---
There
https://bugzilla.kernel.org/show_bug.cgi?id=213733
Erhard F. (erhar...@mailbox.org) changed:
What|Removed |Added
Status|NEW |RESOLVED
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
fixes-test
branch HEAD: 887502826549caa7e4215fd9e628f48f14c0825a powerpc/powernv: delay
rng platform device creation until later in boot
elapsed time: 753m
configs tested: 83
configs skipped: 101
The following
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
merge
branch HEAD: 2de1dc71f21dda721fe9a4608d417aa9006ed92b Automatic merge of
'next' into merge (2022-07-04 21:48)
elapsed time: 752m
configs tested: 52
configs skipped: 2
The following configs have been built
On Tue, Jun 28, 2022 at 10:02:48PM +0800, Yang Yingliang wrote:
> In case of error, of_iomap() returns NULL pointer not ERR_PTR().
> The IS_ERR() test in the return value check should be replaced
> with NULL test and return -ENOMEM as error value.
>
> Fixes: ab4988d6a393 ("soc: fsl: guts: embed
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
next-test
branch HEAD: 054994d9eef39921bcb8924ca15913174fe37f8a Merge branch
'topic/ppc-kvm' into next-test
elapsed time: 752m
configs tested: 92
configs skipped: 3
The following configs have been built
tree/branch:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: b6f1f2fa2bddd69ff46a190b8120bd440fd50563 Add linux-next specific
files for 20220704
Error/Warning: (recently discovered and may have been fixed)
drivers/pci/endpoint/functions/pci-epf-vntb.c
60 matches
Mail list logo