[PATCH 2/2] m68k: introduce a virtual m68k machine

2021-03-23 Thread Laurent Vivier
This machine allows to have up to 3.2 GiB and 128 Virtio devices. It is based on android goldfish devices. Signed-off-by: Laurent Vivier --- arch/m68k/Kbuild | 1 + arch/m68k/Kconfig.machine | 17 +++ arch/m68k/configs/virt_defconfig

[PATCH 1/2] rtc: goldfish: remove dependency to OF

2021-03-23 Thread Laurent Vivier
We want to use the goldfish RTC on a machine without OF. As there is no real dependency on it, remove the OF dependency from the goldfish entry in Kconfig Signed-off-by: Laurent Vivier --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc

[PATCH 0/2] m68k: Add Virtual M68k Machine

2021-03-23 Thread Laurent Vivier
he machine on the Planet m68k channel: https://youtu.be/s_ve0bCC9q4 [Demo at 38:00] Thanks, Laurent Laurent Vivier (2): rtc: goldfish: remove dependency to OF m68k: introduce a virtual m68k machine arch/m68k/Kbuild | 1 + arch/m68k/Kconfig.machine

Re: [PATCH v4 06/14] vringh: add vringh_kiov_length() helper

2021-03-15 Thread Laurent Vivier
On 15/03/2021 17:34, Stefano Garzarella wrote: > This new helper returns the total number of bytes covered by > a vringh_kiov. > > Suggested-by: Jason Wang > Acked-by: Jason Wang > Signed-off-by: Stefano Garzarella > --- > include/linux/vringh.h | 11 +++ > 1 file changed, 11

Re: [PATCH] virtio-mmio: read[wl]()/write[wl] are already little-endian

2021-03-13 Thread Laurent Vivier
Le 11/03/2021 à 16:44, Michael S. Tsirkin a écrit : > On Tue, Mar 09, 2021 at 11:43:13PM +0100, Laurent Vivier wrote: >> read[wl]()/write[wl] already access memory in little-endian mode. > > But then they convert it to CPU right? We just convert it back ... In fact the pro

[PATCH] vhost: Fix vhost_vq_reset()

2021-03-12 Thread Laurent Vivier
ser_be is used before being set. To fix that, reverse the lines order as there is no other dependency between them. Signed-off-by: Laurent Vivier --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index a262e1

Re: [PATCH] virtio-mmio: read[wl]()/write[wl] are already little-endian

2021-03-11 Thread Laurent Vivier
Le 11/03/2021 à 16:44, Michael S. Tsirkin a écrit : > On Tue, Mar 09, 2021 at 11:43:13PM +0100, Laurent Vivier wrote: >> read[wl]()/write[wl] already access memory in little-endian mode. > > But then they convert it to CPU right? We just convert it back ... Yes, you're right. But

[PATCH] virtio-mmio: read[wl]()/write[wl] are already little-endian

2021-03-09 Thread Laurent Vivier
read[wl]()/write[wl] already access memory in little-endian mode. No need to convert the value with cpu_to_leXX()/leXX_to_cpu() Signed-off-by: Laurent Vivier --- drivers/virtio/virtio_mmio.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/virtio

Re: [PATCH] powerpc/pseries: Don't enforce MSI affinity with kdump

2021-02-12 Thread Laurent Vivier
virq = irq_create_mapping(NULL, hwirq); > + else > + virq = irq_create_mapping_affinity(NULL, hwirq, > +entry->affinity); > > if (!virq) { > pr_debug("rtas_msi: Failed mapping hwirq %d\n", hwirq); > Reviewed-by: Laurent Vivier

Re: [PATCH v8 1/1] ns: add binfmt_misc to the user namespace

2021-01-18 Thread Laurent Vivier
Le 08/01/2021 à 09:22, Jan Kiszka a écrit : > On 16.12.19 10:12, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previous level, but if the b

[tip: irq/urgent] powerpc/pseries: Pass MSI affinity to irq_create_mapping()

2020-11-30 Thread tip-bot2 for Laurent Vivier
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 9ea69a55b3b9a71cded9726af591949c1138f235 Gitweb: https://git.kernel.org/tip/9ea69a55b3b9a71cded9726af591949c1138f235 Author:Laurent Vivier AuthorDate:Thu, 26 Nov 2020 09:28:52 +01:00

[tip: irq/urgent] genirq/irqdomain: Add an irq_create_mapping_affinity() function

2020-11-30 Thread tip-bot2 for Laurent Vivier
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: bb4c6910c8b41623104c2e64a30615682689a54d Gitweb: https://git.kernel.org/tip/bb4c6910c8b41623104c2e64a30615682689a54d Author:Laurent Vivier AuthorDate:Thu, 26 Nov 2020 09:28:51 +01:00

[PATCH v4 2/2] powerpc/pseries: Pass MSI affinity to irq_create_mapping()

2020-11-26 Thread Laurent Vivier
pping() doesn't take an affinity parameter. As the previous patch has added the affinity parameter to irq_create_mapping() we can forward the affinity from rtas_setup_msi_irqs() to irq_domain_alloc_descs(). With this change, the virtqueues are correctly dispatched between the CPUs on pseries. Signed-of

[PATCH v4 1/2] genirq/irqdomain: Add an irq_create_mapping_affinity() function

2020-11-26 Thread Laurent Vivier
parameter that can conveniently passed down to irq_domain_alloc_descs(). irq_create_mapping() is then re-implemented as a wrapper around irq_create_mapping_affinity(). Signed-off-by: Laurent Vivier Reviewed-by: Greg Kurz --- include/linux/irqdomain.h | 12 ++-- kernel/irq/irqdomain.c

[PATCH v4 0/2] powerpc/pseries: fix MSI/X IRQ affinity on pseries

2020-11-26 Thread Laurent Vivier
leixner and Marc Zyngier. v2: add a wrapper around original irq_create_mapping() with the affinity parameter. Update comments Laurent Vivier (2): genirq/irqdomain: Add an irq_create_mapping_affinity() function powerpc/pseries: Pass MSI affinity to irq_create_mapping() arch/powerpc/pla

Re: [PATCH v3 2/2] powerpc/pseries: pass MSI affinity to irq_create_mapping()

2020-11-25 Thread Laurent Vivier
On 25/11/2020 17:05, Denis Kirjanov wrote: > On 11/25/20, Laurent Vivier wrote: >> With virtio multiqueue, normally each queue IRQ is mapped to a CPU. >> >> But since commit 0d9f0a52c8b9f ("virtio_scsi: use virtio IRQ affinity") >> this is broken on pseries.

[PATCH v3 1/2] genirq/irqdomain: Add an irq_create_mapping_affinity() function

2020-11-25 Thread Laurent Vivier
parameter that can conveniently passed down to irq_domain_alloc_descs(). irq_create_mapping() is then re-implemented as a wrapper around irq_create_mapping_affinity(). Signed-off-by: Laurent Vivier Reviewed-by: Greg Kurz --- include/linux/irqdomain.h | 12 ++-- kernel/irq/irqdomain.c

[PATCH v3 2/2] powerpc/pseries: pass MSI affinity to irq_create_mapping()

2020-11-25 Thread Laurent Vivier
e affinity parameter to irq_create_mapping() we can forward the affinity from rtas_setup_msi_irqs() to irq_domain_alloc_descs(). With this change, the virtqueues are correctly dispatched between the CPUs on pseries. BugId: https://bugzilla.redhat.com/show_bug.cgi?id=1702939 Signed-off-by: Laurent Vivie

[PATCH v3 0/2] powerpc/pseries: fix MSI/X IRQ affinity on pseries

2020-11-25 Thread Laurent Vivier
pper around original irq_create_mapping() with the affinity parameter. Update comments Laurent Vivier (2): genirq/irqdomain: Add an irq_create_mapping_affinity() function powerpc/pseries: pass MSI affinity to irq_create_mapping() arch/powerpc/platforms/pseries/msi.c | 3 ++- include/linux/irqdoma

Re: [PATCH v2 1/2] genirq: add an irq_create_mapping_affinity() function

2020-11-25 Thread Laurent Vivier
On 25/11/2020 15:54, Marc Zyngier wrote: > On 2020-11-25 14:09, Laurent Vivier wrote: >> On 25/11/2020 14:20, Thomas Gleixner wrote: >>> Laurent, >>> >>> On Wed, Nov 25 2020 at 12:16, Laurent Vivier wrote: >>> >>> The proper subsystem prefix

Re: [PATCH v2 1/2] genirq: add an irq_create_mapping_affinity() function

2020-11-25 Thread Laurent Vivier
On 25/11/2020 14:20, Thomas Gleixner wrote: > Laurent, > > On Wed, Nov 25 2020 at 12:16, Laurent Vivier wrote: > > The proper subsystem prefix is: 'genirq/irqdomain:' and the first letter > after the colon wants to be uppercase. Ok. >> This function ad

[PATCH v2 2/2] powerpc/pseries: pass MSI affinity to irq_create_mapping()

2020-11-25 Thread Laurent Vivier
e affinity parameter to irq_create_mapping() we can forward the affinity from rtas_setup_msi_irqs() to irq_domain_alloc_descs(). With this change, the virtqueues are correctly dispatched between the CPUs on pseries. Signed-off-by: Laurent Vivier --- arch/powerpc/platforms/pseries/msi.c | 3 ++

[PATCH v2 1/2] genirq: add an irq_create_mapping_affinity() function

2020-11-25 Thread Laurent Vivier
This function adds an affinity parameter to irq_create_mapping(). This parameter is needed to pass it to irq_domain_alloc_descs(). irq_create_mapping() is a wrapper around irq_create_mapping_affinity() to pass NULL for the affinity parameter. No functional change. Signed-off-by: Laurent Vivier

[PATCH v2 0/2] powerpc/pseries: fix MSI/X IRQ affinity on pseries

2020-11-25 Thread Laurent Vivier
IRQ: 289 CPU: 24 IRQ: 290 CPU: 25 IRQ: 291 CPU: 26 IRQ: 292 CPU: 27 IRQ: 293 CPU: 28 IRQ: 294 CPU: 29 IRQ: 295 CPU: 30 IRQ: 299 CPU: 31 This matches what we have on an x86_64 system. v2: add a wrapper around original irq_create_mapping() with the affinity parameter. Update comments Laurent

Re: [PATCH 1/2] genirq: add an affinity parameter to irq_create_mapping()

2020-11-24 Thread Laurent Vivier
On 24/11/2020 23:19, Thomas Gleixner wrote: > On Tue, Nov 24 2020 at 21:03, Laurent Vivier wrote: >> This parameter is needed to pass it to irq_domain_alloc_descs(). >> >> This seems to have been missed by >> o06ee6d571f0e ("genirq: Add affinity hint to irq allocat

[PATCH 1/2] genirq: add an affinity parameter to irq_create_mapping()

2020-11-24 Thread Laurent Vivier
en updated with the help of the following coccinelle script: @@ expression a, b; @@ <... - irq_create_mapping(a, b) + irq_create_mapping(a, b, NULL) ...> With some manual changes to comply with checkpatch errors. No functional change. Signed-off-by: Laurent Vivier --- arch/arc/ker

[PATCH 2/2] powerpc/pseries: pass MSI affinity to irq_create_mapping()

2020-11-24 Thread Laurent Vivier
ci_enable_msix_range() __msi_domain_alloc_irqs() __irq_domain_alloc_irqs() __irq_alloc_descs() Signed-off-by: Laurent Vivier --- arch/powerpc/platforms/pseries/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/power

[PATCH 0/2] powerpc/pseries: fix MSI/X IRQ affinity on pseries

2020-11-24 Thread Laurent Vivier
IRQ: 289 CPU: 24 IRQ: 290 CPU: 25 IRQ: 291 CPU: 26 IRQ: 292 CPU: 27 IRQ: 293 CPU: 28 IRQ: 294 CPU: 29 IRQ: 295 CPU: 30 IRQ: 299 CPU: 31 This matches what we have on an x86_64 system. Laurent Vivier (2): genirq: add an affinity parameter to irq_create_mapping() powerpc/pserie

[PATCH] vdpasim: fix "mac_pton" undefined error

2020-11-13 Thread Laurent Vivier
ERROR: modpost: "mac_pton" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined! mac_pton() is defined in lib/net_utils.c and is not built if NET is not set. Select GENERIC_NET_UTILS as vdpasim doesn't depend on NET. Reported-by: kernel test robot Signed-off-by: Laurent Vivier --- dr

Re: ERROR: modpost: "mac_pton" undefined!

2020-11-13 Thread Laurent Vivier
On 13/11/2020 14:12, Andy Shevchenko wrote: > On Fri, Nov 13, 2020 at 2:42 PM Laurent Vivier wrote: > > ... > >>> If you fix the issue, kindly add following tag as appropriate >>> Reported-by: kernel test robot >>> >>> All er

Re: ERROR: modpost: "mac_pton" undefined!

2020-11-13 Thread Laurent Vivier
On 13/11/2020 12:58, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba > commit: 0c86d774883fa17e7c81b0c8838b88d06c2c911e vdpasim: allow to assign a > MAC address > date: 2 weeks ago

[PATCH 2/2] vdpasim: allow to assign a MAC address

2020-10-29 Thread Laurent Vivier
Add macaddr parameter to the module to set the MAC address to use Signed-off-by: Laurent Vivier --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c index

[PATCH 1/2] vdpasim: fix MAC address configuration

2020-10-29 Thread Laurent Vivier
. Fix that by adding VIRTIO_NET_F_MAC in the features list of vdpa_sim. Fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator") Cc: jasow...@redhat.com Signed-off-by: Laurent Vivier --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 0/2] vdpasim: allow to set MAC address

2020-10-29 Thread Laurent Vivier
the user to set the MAC address. With that we use vdpa_sim with a stable MAC addres, that doesn't change between reboots. Laurent Vivier (2): vdpasim: fix MAC address configuration vdpasim: allow to assign a MAC address drivers/vdpa/vdpa_sim/vdpa_sim.c | 17 +++-- 1 file changed, 15

[PATCH] vdpa_sim: Fix DMA mask

2020-10-27 Thread Laurent Vivier
xpected TXQ (0) queue failure: -12 Fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator") Signed-off-by: Laurent Vivier --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_s

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-22 Thread Laurent Vivier
Le 22/10/2020 à 05:23, Finn Thain a écrit : > On Wed, 21 Oct 2020, Laurent Vivier wrote: > >> Le 21/10/2020 à 01:43, Finn Thain a écrit : >> >>> Laurent, can we avoid the irq == 0 warning splat like this? >>> >>> diff --git a/drivers/tty/serial/pmac_z

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-21 Thread Laurent Vivier
Le 21/10/2020 à 01:43, Finn Thain a écrit : > On Tue, 20 Oct 2020, Brad Boyer wrote: > >> >> Wouldn't it be better to rearrange this code to only run if the devices >> are present? This is a macio driver on pmac and a platform driver on >> mac, so shouldn't it be possible to only run this code

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-20 Thread Laurent Vivier
Le 20/10/2020 à 20:32, Greg KH a écrit : > On Tue, Oct 20, 2020 at 08:19:26PM +0200, Laurent Vivier wrote: >> Le 20/10/2020 à 19:37, Greg KH a écrit : >>> On Tue, Oct 20, 2020 at 06:37:41PM +0200, Laurent Vivier wrote: >>>> Le 20/10/2020 à 18:28, Greg KH a écrit : &g

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-20 Thread Laurent Vivier
Le 20/10/2020 à 19:37, Greg KH a écrit : > On Tue, Oct 20, 2020 at 06:37:41PM +0200, Laurent Vivier wrote: >> Le 20/10/2020 à 18:28, Greg KH a écrit : >>> On Tue, Oct 20, 2020 at 06:23:03PM +0200, Laurent Vivier wrote: >>>> We can avoid to probe for the Zilog de

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-20 Thread Laurent Vivier
Le 20/10/2020 à 18:28, Greg KH a écrit : > On Tue, Oct 20, 2020 at 06:23:03PM +0200, Laurent Vivier wrote: >> We can avoid to probe for the Zilog device (and generate ugly kernel warning) >> if kernel is built for Mac but not on a Mac. >> >> Signed-off-by: Laurent Viv

[PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-20 Thread Laurent Vivier
We can avoid to probe for the Zilog device (and generate ugly kernel warning) if kernel is built for Mac but not on a Mac. Signed-off-by: Laurent Vivier --- drivers/tty/serial/pmac_zilog.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/tty/serial/pmac_zilog.c b/drivers

[PATCH] tty: goldfish: use __raw_writel()/__raw_readl()

2020-10-09 Thread Laurent Vivier
of the architecture replace all writel()/readl() by __raw_writel()/__raw_readl() https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-master-dev/hw/char/goldfish_tty.c#222 Signed-off-by: Laurent Vivier --- drivers/tty/goldfish.c | 18 +- include/linux/goldfish.h | 8

Re: [PATCH] m68k: remove unused mach_max_dma_address

2020-10-09 Thread Laurent Vivier
Le 09/10/2020 à 23:59, Finn Thain a écrit : > On Fri, 9 Oct 2020, Laurent Vivier wrote: > >> This information is unused since the discontinuous memory support >> has been introduced in 2007. >> >> Fixes: 12d810c1b8c2 ("m68k: discontinuous memory support&qu

[PATCH] m68k: remove unused mach_max_dma_address

2020-10-09 Thread Laurent Vivier
This information is unused since the discontinuous memory support has been introduced in 2007. Fixes: 12d810c1b8c2 ("m68k: discontinuous memory support") Signed-off-by: Laurent Vivier --- arch/m68k/amiga/config.c| 8 arch/m68k/apollo/config.c | 1 - arch/

[PATCH] hwrng: core - allocate a one page buffer

2020-08-06 Thread Laurent Vivier
/s # dd if=/dev/hwrng of=/dev/null bs=4096 count=256000 1048576000 bytes (1.0 GB, 1000 MiB) copied, 14.394 s, 72.8 MB/s Signed-off-by: Laurent Vivier --- drivers/char/hw_random/core.c | 37 - drivers/char/hw_random/virtio-rng.c | 1 + include/linux

Re: [PATCH v3] binfmt_misc: pass binfmt_misc flags to the interpreter

2020-06-05 Thread Laurent Vivier
Ping? Thanks, Laurent Le 28/01/2020 à 14:25, Laurent Vivier a écrit : > It can be useful to the interpreter to know which flags are in use. > > For instance, knowing if the preserve-argv[0] is in use would > allow to skip the pathname argument. > > This patch uses an unuse

[PATCH] virtio_console: allocate inbufs in add_port() only if it is needed

2019-10-18 Thread Laurent Vivier
() as they are released in remove_vqs(), but it sounds like a waste of memory. Rather than that, this patch changes add_port() logic to only allocate the buffers if the in_vq has available free slots. Fixes: a7a69ec0d8e4 ("virtio_console: free buffers after reset") Cc: m...@redhat.com Signed-off-by: Laur

[PATCH] hw_random: move add_early_randomness() out of rng_mutex

2019-09-12 Thread Laurent Vivier
. This patch move add_early_randomness() out of the rng_mutex zone. It only needs the reading_mutex. Signed-off-by: Laurent Vivier --- drivers/char/hw_random/core.c | 60 +-- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/drivers/char/hw_random/core.c b

Re: [PATCH v3] powerpc/mm: move warning from resize_hpt_for_hotplug()

2019-03-19 Thread Laurent Vivier
Hi Michael, as it seems good now, could you pick up this patch for merging? Thanks, Laurent On 13/03/2019 11:25, Laurent Vivier wrote: > resize_hpt_for_hotplug() reports a warning when it cannot > resize the hash page table ("Unable to resize hash page > table to target order

Re: [PATCH v2] powerpc/mm: move warning from resize_hpt_for_hotplug()

2019-03-08 Thread Laurent Vivier
I forgot the version change note: v2: add warning messages for H_PARAMETER and H_RESOURCE Thanks, Laurent On 08/03/2019 11:54, Laurent Vivier wrote: > resize_hpt_for_hotplug() reports a warning when it cannot > resize the hash page table ("Unable to resize hash page > table t

[PATCH v2] powerpc/mm: move warning from resize_hpt_for_hotplug()

2019-03-08 Thread Laurent Vivier
() to only report the problem when it is needed. Signed-off-by: Laurent Vivier --- arch/powerpc/include/asm/sparsemem.h | 4 ++-- arch/powerpc/mm/hash_utils_64.c | 17 ++--- arch/powerpc/mm/mem.c | 3 ++- arch/powerpc/platforms/pseries/lpar.c | 3 ++- 4 files c

[PATCH] powerpc/mm: move warning from resize_hpt_for_hotplug()

2019-03-07 Thread Laurent Vivier
() to only report the problem when it is needed. Signed-off-by: Laurent Vivier --- arch/powerpc/include/asm/sparsemem.h | 4 ++-- arch/powerpc/mm/hash_utils_64.c | 17 ++--- arch/powerpc/mm/mem.c | 3 ++- arch/powerpc/platforms/pseries/lpar.c | 1 - 4 files c

[RFC v3] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

2019-03-04 Thread Laurent Vivier
xppc-...@lists.ozlabs.org Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Laurent Vivier --- Notes: v3: fix the root cause of the problem (sched numa mask initialization) v2: add scheduler maintainers in the CC: list kernel/sched/topology.c | 4 +++- 1 file changed, 3 insertions(+),

Re: [PATCH v2] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

2019-02-20 Thread Laurent Vivier
On 20/02/2019 18:08, Peter Zijlstra wrote: > On Wed, Feb 20, 2019 at 05:55:20PM +0100, Laurent Vivier wrote: >> index 3f35ba1d8fde..372278605f0d 100644 >> --- a/kernel/sched/topology.c >> +++ b/kernel/sched/topology.c >> @@ -1651,6 +1651,7 @@ void sched_init_numa(voi

[PATCH v2] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

2019-02-20 Thread Laurent Vivier
3ca02e46 ("sched/topology: Introduce NUMA identity node sched domain") Cc: Suravee Suthikulpanit Cc: Srikar Dronamraju Cc: Borislav Petkov Cc: David Gibson Cc: Michael Ellerman Cc: Nathan Fontenot Cc: Michael Bringmann Cc: linuxppc-...@lists.ozlabs.org Cc: Ingo Molnar Cc: Peter

[PATCH] sched/topology: fix kernel crash when a CPU is hotplugged in a memoryless node

2019-02-20 Thread Laurent Vivier
3ca02e46 ("sched/topology: Introduce NUMA identity node sched domain") Cc: Suravee Suthikulpanit Cc: Srikar Dronamraju Cc: Borislav Petkov CC: David Gibson CC: Michael Ellerman CC: Nathan Fontenot CC: Michael Bringmann CC: linuxppc-...@lists.ozlabs.org Signed-off-by: Laurent

Re: [PATCH v2] powerpc/mm: move a KERN_WARNING message to pr_debug()

2019-02-07 Thread Laurent Vivier
On 07/02/2019 04:03, David Gibson wrote: > On Tue, Feb 05, 2019 at 09:21:33PM +0100, Laurent Vivier wrote: >> resize_hpt_for_hotplug() reports a warning when it cannot >> increase the hash page table ("Unable to resize hash page >> table to target order") but this

Re: [PATCH v2] powerpc/mm: move a KERN_WARNING message to pr_debug()

2019-02-07 Thread Laurent Vivier
On 07/02/2019 05:33, Michael Ellerman wrote: > Hi Laurent, > > I'm not sure I'm convinced about this one. It seems like we're just > throwing away the warning because it's annoying. > > Laurent Vivier writes: >> resize_hpt_for_hotplug() reports a warning when it cannot &

[PATCH v2] powerpc/mm: move a KERN_WARNING message to pr_debug()

2019-02-05 Thread Laurent Vivier
ODEV error. If the operation cannot be done the real error message will be reported by arch_add_memory() if create_section_mapping() fails. Fixes: 7339390d772dd powerpc/pseries: Don't give a warning when HPT resizing isn't available Signed-off-by: Laurent Vivier --- Notes: v2: - us

[PATCH] powerpc/mm: move a KERN_WARNING message to KERN_DEBUG

2019-02-05 Thread Laurent Vivier
e reported by arch_add_memory() if create_section_mapping() fails. Signed-off-by: Laurent Vivier --- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 0cc7fbc3bd1c..b762bdceb

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-12-29 Thread Laurent Vivier
Ping Thanks, Laurent Le 29/11/2018 à 14:05, Laurent Vivier a écrit : > Le 01/11/2018 à 15:16, Eric W. Biederman a écrit : >> Laurent Vivier writes: >> >>> On 01/11/2018 04:51, Jann Horn wrote: >>>> On Thu, Nov 1, 2018 at 3:59 AM James Bottomley >>>&

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-11-29 Thread Laurent Vivier
Le 01/11/2018 à 15:16, Eric W. Biederman a écrit : > Laurent Vivier writes: > >> On 01/11/2018 04:51, Jann Horn wrote: >>> On Thu, Nov 1, 2018 at 3:59 AM James Bottomley >>> wrote: >>>> >>>> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-11-29 Thread Laurent Vivier
Le 01/11/2018 à 15:16, Eric W. Biederman a écrit : > Laurent Vivier writes: > >> On 01/11/2018 04:51, Jann Horn wrote: >>> On Thu, Nov 1, 2018 at 3:59 AM James Bottomley >>> wrote: >>>> >>>> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier

Re: [PATCH] powerpc/numa: fix hot-added CPU on memory-less node

2018-11-21 Thread Laurent Vivier
On 15/11/2018 10:19, Satheesh Rajendran wrote: > On Wed, Nov 14, 2018 at 06:03:19PM +0100, Laurent Vivier wrote: >> Trying to hotplug a CPU on an empty NUMA node (without >> memory or CPU) crashes the kernel when the CPU is onlined. >> >> During the onlinin

Re: [PATCH] powerpc/numa: fix hot-added CPU on memory-less node

2018-11-21 Thread Laurent Vivier
On 15/11/2018 10:19, Satheesh Rajendran wrote: > On Wed, Nov 14, 2018 at 06:03:19PM +0100, Laurent Vivier wrote: >> Trying to hotplug a CPU on an empty NUMA node (without >> memory or CPU) crashes the kernel when the CPU is onlined. >> >> During the onlinin

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-11-01 Thread Laurent Vivier
On 01/11/2018 04:51, Jann Horn wrote: > On Thu, Nov 1, 2018 at 3:59 AM James Bottomley > wrote: >> >> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier wrote: >>> Hi, >>> >>> Any comment on this last version? >>> >>> Any chance t

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-11-01 Thread Laurent Vivier
On 01/11/2018 04:51, Jann Horn wrote: > On Thu, Nov 1, 2018 at 3:59 AM James Bottomley > wrote: >> >> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier wrote: >>> Hi, >>> >>> Any comment on this last version? >>> >>> Any chance t

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-30 Thread Laurent Vivier
Le 24/10/2018 à 19:15, Laurent Vivier a écrit : > On 16/10/2018 17:22, Andrei Vagin wrote: >> On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >>> This patch allows to have a different binfmt_misc configuration >>> for each new user namespace.

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-30 Thread Laurent Vivier
Le 24/10/2018 à 19:15, Laurent Vivier a écrit : > On 16/10/2018 17:22, Andrei Vagin wrote: >> On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >>> This patch allows to have a different binfmt_misc configuration >>> for each new user namespace.

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-24 Thread Laurent Vivier
On 16/10/2018 17:22, Andrei Vagin wrote: > On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-24 Thread Laurent Vivier
On 16/10/2018 17:22, Andrei Vagin wrote: > On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-16 Thread Laurent Vivier
Le 16/10/2018 à 12:13, Rasmus Villemoes a écrit : > On 2018-10-10 18:14, Laurent Vivier wrote: > >> +/* create a new binfmt namespace >> + * if we are not in the first user namespace >> + * but the binfmt namespace is the first one >> + */ >&

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-16 Thread Laurent Vivier
Le 16/10/2018 à 12:13, Rasmus Villemoes a écrit : > On 2018-10-10 18:14, Laurent Vivier wrote: > >> +/* create a new binfmt namespace >> + * if we are not in the first user namespace >> + * but the binfmt namespace is the first one >> + */ >&

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-10-16 Thread Laurent Vivier
Hi, Any comment on this last version? Any chance to be merged? Thanks, Laurent Le 10/10/2018 à 18:14, Laurent Vivier a écrit : > v6: Return _binfmt_ns instead of NULL in binfmt_ns() > This should never happen, but to stay safe return a > value we can use. > change subje

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-10-16 Thread Laurent Vivier
Hi, Any comment on this last version? Any chance to be merged? Thanks, Laurent Le 10/10/2018 à 18:14, Laurent Vivier a écrit : > v6: Return _binfmt_ns instead of NULL in binfmt_ns() > This should never happen, but to stay safe return a > value we can use. > change subje

[PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
in this namespace. For instance, using "unshare" we can start a chroot of another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 111 - inc

[PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
in this namespace. For instance, using "unshare" we can start a chroot of another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 111 - inc

[PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-10-10 Thread Laurent Vivier
xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laurent Vivier (1): ns: add binfmt_misc to the user namespace fs/binfmt_misc.c | 111

[PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-10-10 Thread Laurent Vivier
xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laurent Vivier (1): ns: add binfmt_misc to the user namespace fs/binfmt_misc.c | 111

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
On 09/10/2018 17:19, Laurent Vivier wrote: > Le 09/10/2018 à 17:16, Tycho Andersen a écrit : >> On Tue, Oct 09, 2018 at 12:37:52PM +0200, Laurent Vivier wrote: >>> @@ -80,18 +74,32 @@ static int entry_count; >>> */ >>> #define MAX_REGISTER_LENGTH 1920 >&

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
On 09/10/2018 17:19, Laurent Vivier wrote: > Le 09/10/2018 à 17:16, Tycho Andersen a écrit : >> On Tue, Oct 09, 2018 at 12:37:52PM +0200, Laurent Vivier wrote: >>> @@ -80,18 +74,32 @@ static int entry_count; >>> */ >>> #define MAX_REGISTER_LENGTH 1920 >&

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 19:01, Kirill Tkhai a écrit : > On 09.10.2018 19:45, Laurent Vivier wrote: >> Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : >>> On 09.10.2018 13:37, Laurent Vivier wrote: >>>> This patch allows to have a different binfmt_misc configuration &g

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 19:01, Kirill Tkhai a écrit : > On 09.10.2018 19:45, Laurent Vivier wrote: >> Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : >>> On 09.10.2018 13:37, Laurent Vivier wrote: >>>> This patch allows to have a different binfmt_misc configuration &g

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 18:53, Jann Horn a écrit : > On Tue, Oct 9, 2018 at 6:45 PM Laurent Vivier wrote: >> Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : >>> On 09.10.2018 13:37, Laurent Vivier wrote: >>>> This patch allows to have a different binfmt_misc configuration &g

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 18:53, Jann Horn a écrit : > On Tue, Oct 9, 2018 at 6:45 PM Laurent Vivier wrote: >> Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : >>> On 09.10.2018 13:37, Laurent Vivier wrote: >>>> This patch allows to have a different binfmt_misc configuration &g

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : > On 09.10.2018 13:37, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previous level, b

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : > On 09.10.2018 13:37, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previous level, b

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 17:16, Tycho Andersen a écrit : > On Tue, Oct 09, 2018 at 12:37:52PM +0200, Laurent Vivier wrote: >> @@ -80,18 +74,32 @@ static int entry_count; >> */ >> #define MAX_REGISTER_LENGTH 1920 >> >> +static struct binfmt_namespace *bi

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 17:16, Tycho Andersen a écrit : > On Tue, Oct 09, 2018 at 12:37:52PM +0200, Laurent Vivier wrote: >> @@ -80,18 +74,32 @@ static int entry_count; >> */ >> #define MAX_REGISTER_LENGTH 1920 >> >> +static struct binfmt_namespace *bi

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 14:43, Jann Horn a écrit : > On Tue, Oct 9, 2018 at 12:38 PM Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 14:43, Jann Horn a écrit : > On Tue, Oct 9, 2018 at 12:38 PM Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

[RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
in this namespace. For instance, using "unshare" we can start a chroot of an another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 106

[RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
in this namespace. For instance, using "unshare" we can start a chroot of an another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 106

[RFC v5 0/1] ns: introduce binfmt_misc namespace

2018-10-09 Thread Laurent Vivier
x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laur

[RFC v5 0/1] ns: introduce binfmt_misc namespace

2018-10-09 Thread Laurent Vivier
x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laur

Re: [RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-08 Thread Laurent Vivier
Le 08/10/2018 à 13:26, Jann Horn a écrit : > On Sat, Oct 6, 2018 at 9:36 PM Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

Re: [RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-08 Thread Laurent Vivier
Le 08/10/2018 à 13:26, Jann Horn a écrit : > On Sat, Oct 6, 2018 at 9:36 PM Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

Re: [RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-07 Thread Laurent Vivier
Le 07/10/2018 à 07:02, Serge E. Hallyn a écrit : > On Sat, Oct 06, 2018 at 09:35:46PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

Re: [RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-07 Thread Laurent Vivier
Le 07/10/2018 à 07:02, Serge E. Hallyn a écrit : > On Sat, Oct 06, 2018 at 09:35:46PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one

[RFC v4 0/1] ns: introduce binfmt_misc namespace

2018-10-06 Thread Laurent Vivier
-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laurent Vivier (1): ns: add binfmt_misc to the user namespace fs/binfmt_misc.c | 99 -- include/linux/user_namespace.

  1   2   3   4   5   >