Re: [PATCH V4 2/7] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-10 Thread Christophe Leroy
Le 11/04/2022 à 07:31, Anshuman Khandual a écrit : > > > On 4/9/22 17:06, Christophe Leroy wrote: >> >> >> Le 08/04/2022 à 14:53, Christophe Leroy a écrit : >>> >>> >>> Le 07/04/2022 à 12:32, Anshuman Khandual a écrit : This defines and exports a platform specific custom

Re: [PATCH V4 2/7] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-10 Thread Anshuman Khandual
On 4/9/22 17:06, Christophe Leroy wrote: > > > Le 08/04/2022 à 14:53, Christophe Leroy a écrit : >> >> >> Le 07/04/2022 à 12:32, Anshuman Khandual a écrit : >>> This defines and exports a platform specific custom vm_get_page_prot() via >>> subscribing ARCH_HAS_VM_GET_PAGE_PROT. While here,

Re: rcu_sched self-detected stall on CPU

2022-04-10 Thread Paul E. McKenney
On Sun, Apr 10, 2022 at 09:33:43PM +1000, Michael Ellerman wrote: > Zhouyi Zhou writes: > > On Fri, Apr 8, 2022 at 10:07 PM Paul E. McKenney wrote: > >> On Fri, Apr 08, 2022 at 06:02:19PM +0800, Zhouyi Zhou wrote: > >> > On Fri, Apr 8, 2022 at 3:23 PM Michael Ellerman > >> > wrote: > ... > >>

[powerpc:merge] BUILD SUCCESS 80a1583efa182af91e6a278e82b5431ec9fc8282

2022-04-10 Thread kernel test robot
defconfig powerpc randconfig-c003-20220410 i386 randconfig-c001 sh urquell_defconfig powerpc mpc8540_ads_defconfig mips tb0226_defconfig arcnsimosci_defconfig arm

[Bug 215803] ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x00000060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0

2022-04-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215803 --- Comment #4 from Daniel Kolesa (li...@octaforge.org) --- Also, just to be clear, reverting the commit I linked above does fix the problem for me. Here is a patch you can quickly test:

[Bug 215803] ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x00000060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0

2022-04-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215803 --- Comment #3 from Daniel Kolesa (li...@octaforge.org) --- It does not panic in my case though; I merely get stuck with the offb framebuffer console instead of it switching modes to the right thing -- You may reply to this email to add a

[Bug 215803] ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x00000060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0

2022-04-10 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215803 Daniel Kolesa (li...@octaforge.org) changed: What|Removed |Added CC||li...@octaforge.org

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Vladimir Oltean
On Sun, Apr 10, 2022 at 10:30:31PM +0200, Jakob Koschel wrote: > > On 10. Apr 2022, at 22:02, Vladimir Oltean wrote: > > > > On Sun, Apr 10, 2022 at 08:24:37PM +0200, Jakob Koschel wrote: > >> Btw, I just realized that the if (!pos) is not necessary. This should > >> simply do it: > >> > >>

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Jakob Koschel
> On 10. Apr 2022, at 22:02, Vladimir Oltean wrote: > > On Sun, Apr 10, 2022 at 08:24:37PM +0200, Jakob Koschel wrote: >> Btw, I just realized that the if (!pos) is not necessary. This should simply >> do it: >> >> diff --git a/drivers/net/dsa/sja1105/sja1105_vl.c >>

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Vladimir Oltean
On Sun, Apr 10, 2022 at 08:24:37PM +0200, Jakob Koschel wrote: > Btw, I just realized that the if (!pos) is not necessary. This should simply > do it: > > diff --git a/drivers/net/dsa/sja1105/sja1105_vl.c > b/drivers/net/dsa/sja1105/sja1105_vl.c > index b7e95d60a6e4..2d59e75a9e3d 100644 > ---

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Jakob Koschel
> On 10. Apr 2022, at 14:39, Jakob Koschel wrote: > > > >> On 10. Apr 2022, at 13:05, Vladimir Oltean wrote: >> >> On Sun, Apr 10, 2022 at 12:51:56PM +0200, Jakob Koschel wrote: >>> I've just looked at this again in a bit more detail while integrating it >>> into the patch series. >>>

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.18-2 tag

2022-04-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Apr 2022 23:23:35 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.18-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4ea3c6425269d33da53c79d539ce9554117cf4d4 Thank you! --

[PATCH v2] macintosh: via-pmu and via-cuda need RTC_LIB

2022-04-10 Thread Randy Dunlap
Fix build when RTC_LIB is not set/enabled. Eliminates these build errors: m68k-linux-ld: drivers/macintosh/via-pmu.o: in function `pmu_set_rtc_time': drivers/macintosh/via-pmu.c:1769: undefined reference to `rtc_tm_to_time64' m68k-linux-ld: drivers/macintosh/via-cuda.o: in function

Re: [PATCH] macintosh: fix via-pmu and via-cuda build without RTC_CLASS

2022-04-10 Thread Randy Dunlap
Hi-- On 4/10/22 00:03, Christophe Leroy wrote: > > > Le 09/04/2022 à 04:08, Randy Dunlap a écrit : >> Fix build when RTC_CLASS is not set/enabled. >> Eliminates these build errors: >> >> m68k-linux-ld: drivers/macintosh/via-pmu.o: in function `pmu_set_rtc_time': >>

[GIT PULL] Please pull powerpc/linux.git powerpc-5.18-2 tag

2022-04-10 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fixes for 5.18: The following changes since commit f82da161ea75dc4db21b2499e4b1facd36dab275: powerpc: restore removed #endif (2022-03-27 15:31:16 -0700) are available in the git repository at:

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Jakob Koschel
> On 10. Apr 2022, at 13:05, Vladimir Oltean wrote: > > On Sun, Apr 10, 2022 at 12:51:56PM +0200, Jakob Koschel wrote: >> I've just looked at this again in a bit more detail while integrating it >> into the patch series. >> >> I realized that this just shifts the 'problem' to using the

Re: [PATCH] powerpc/numa: Handle partially initialized numa nodes

2022-04-10 Thread Michael Ellerman
On Wed, 30 Mar 2022 19:21:23 +0530, Srikar Dronamraju wrote: > With commit 09f49dca570a ("mm: handle uninitialized numa nodes > gracefully") NODE_DATA for even a memoryless/cpuless node is partially > initialized at boot time. > > Before onlining the node, current Powerpc code checks for

Re: [PATCH 1/6] powerpc: Fix virt_addr_valid() for 64-bit Book3E & 32-bit

2022-04-10 Thread Michael Ellerman
On Thu, 7 Apr 2022 00:57:57 +1000, Michael Ellerman wrote: > From: Kefeng Wang > > mpe: On 64-bit Book3E vmalloc space starts at 0x8000. > > Because of the way __pa() works we have: > __pa(0x8000) == 0, and therefore > virt_to_pfn(0x8000) == 0, and

Re: [PATCH] powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S

2022-04-10 Thread Michael Ellerman
On Sun, 27 Mar 2022 09:32:26 +0200, Christophe Leroy wrote: > Using conditional branches between two files is hasardous, > they may get linked to far from each other. > > arch/powerpc/kvm/book3s_64_entry.o:(.text+0x3ec): relocation truncated > to fit: R_PPC64_REL14 (stub) against

Re: rcu_sched self-detected stall on CPU

2022-04-10 Thread Michael Ellerman
Zhouyi Zhou writes: > On Fri, Apr 8, 2022 at 10:07 PM Paul E. McKenney wrote: >> On Fri, Apr 08, 2022 at 06:02:19PM +0800, Zhouyi Zhou wrote: >> > On Fri, Apr 8, 2022 at 3:23 PM Michael Ellerman >> > wrote: ... >> > > I haven't seen it in my testing. But using Miguel's config I can >> > >

Re: [PATCH] powerpc/numa: Handle partially initialized numa nodes

2022-04-10 Thread Michael Ellerman
Srikar Dronamraju writes: > * Oscar Salvador [2022-04-06 18:19:00]: > >> On Wed, Mar 30, 2022 at 07:21:23PM +0530, Srikar Dronamraju wrote: >> > arch/powerpc/mm/numa.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/arch/powerpc/mm/numa.c

Re: [PATCH v2 1/2] powerpc/powernv: Get L1D flush requirements from device-tree

2022-04-10 Thread Michael Ellerman
Joel Stanley writes: > On Tue, 5 Apr 2022 at 06:13, Michael Ellerman wrote: >> >> Joel Stanley writes: >> > On Mon, 4 Apr 2022 at 10:15, Russell Currey wrote: >> >> >> >> The device-tree properties no-need-l1d-flush-msr-pr-1-to-0 and >> >> no-need-l1d-flush-kernel-on-user-access are the

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Vladimir Oltean
On Sun, Apr 10, 2022 at 12:51:56PM +0200, Jakob Koschel wrote: > I've just looked at this again in a bit more detail while integrating it into > the patch series. > > I realized that this just shifts the 'problem' to using the 'pos' iterator > variable after the loop. > If the scope of the list

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-10 Thread Jakob Koschel
Hey Vladimir, > On 9. Apr 2022, at 01:54, Jakob Koschel wrote: > > Hello Vladimir, > >> On 8. Apr 2022, at 13:41, Vladimir Oltean wrote: >> >> Hello Jakob, >> >> On Thu, Apr 07, 2022 at 12:28:47PM +0200, Jakob Koschel wrote: >>> In preparation to limit the scope of a list iterator to the

Re: [PATCH] macintosh: fix via-pmu and via-cuda build without RTC_CLASS

2022-04-10 Thread Christophe Leroy
Le 09/04/2022 à 04:08, Randy Dunlap a écrit : > Fix build when RTC_CLASS is not set/enabled. > Eliminates these build errors: > > m68k-linux-ld: drivers/macintosh/via-pmu.o: in function `pmu_set_rtc_time': > drivers/macintosh/via-pmu.c:1769: undefined reference to `rtc_tm_to_time64' >