[PATCH] irqchip/bcm7038-l1: hide cpu offline callback when building for !SMP

2018-08-09 Thread Jonas Gorski
When compiling bmips with SMP disabled, the build fails with: drivers/irqchip/irq-bcm7038-l1.o: In function `bcm7038_l1_cpu_offline': drivers/irqchip/irq-bcm7038-l1.c:242: undefined reference to `irq_set_affinity_locked' make[5]: *** [vmlinux] Error 1 Fix this by adding and setting

[PATCH] irqchip/bcm7038-l1: hide cpu offline callback when building for !SMP

2018-08-09 Thread Jonas Gorski
When compiling bmips with SMP disabled, the build fails with: drivers/irqchip/irq-bcm7038-l1.o: In function `bcm7038_l1_cpu_offline': drivers/irqchip/irq-bcm7038-l1.c:242: undefined reference to `irq_set_affinity_locked' make[5]: *** [vmlinux] Error 1 Fix this by adding and setting

Re: [PATCH v8 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-09 Thread Pierre Morel
On 09/08/2018 10:10, David Hildenbrand wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Pierre Morel When we clear the Crypto Control Block (CRYCB) used by a guest level 2, the vSIE shadow CRYCB for guest level 3 must be updated before the guest uses it. We achieve this by using the

Re: [PATCH v8 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-09 Thread Pierre Morel
On 09/08/2018 10:10, David Hildenbrand wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Pierre Morel When we clear the Crypto Control Block (CRYCB) used by a guest level 2, the vSIE shadow CRYCB for guest level 3 must be updated before the guest uses it. We achieve this by using the

[PATCH] mm, slub: restore the original intention of prefetch_freepointer()

2018-08-09 Thread Vlastimil Babka
In SLUB, prefetch_freepointer() is used when allocating an object from cache's freelist, to make sure the next object in the list is cache-hot, since it's probable it will be allocated soon. Commit 2482ddec670f ("mm: add SLUB free list pointer obfuscation") has unintentionally changed the

[PATCH] mm, slub: restore the original intention of prefetch_freepointer()

2018-08-09 Thread Vlastimil Babka
In SLUB, prefetch_freepointer() is used when allocating an object from cache's freelist, to make sure the next object in the list is cache-hot, since it's probable it will be allocated soon. Commit 2482ddec670f ("mm: add SLUB free list pointer obfuscation") has unintentionally changed the

Re: [PATCH v8 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-09 Thread Pierre Morel
On 09/08/2018 10:10, David Hildenbrand wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Pierre Morel When we clear the Crypto Control Block (CRYCB) used by a guest level 2, the vSIE shadow CRYCB for guest level 3 must be updated before the guest uses it. We achieve this by using the

Re: [PATCH V7 1/2] scsi: ufs: set the device reference clock setting

2018-08-09 Thread Sayali Lokhande
Hi Evan, On 8/6/2018 10:56 PM, Evan Green wrote: Hi Sayali, On Wed, Aug 1, 2018 at 1:49 AM Sayali Lokhande wrote: From: Subhash Jadavani UFS host supplies the reference clock to UFS device and UFS device specification allows host to provide one of the 4 frequencies (19.2 MHz, 26 MHz, 38.4

Re: [PATCH v8 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-09 Thread Pierre Morel
On 09/08/2018 10:10, David Hildenbrand wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Pierre Morel When we clear the Crypto Control Block (CRYCB) used by a guest level 2, the vSIE shadow CRYCB for guest level 3 must be updated before the guest uses it. We achieve this by using the

Re: [PATCH V7 1/2] scsi: ufs: set the device reference clock setting

2018-08-09 Thread Sayali Lokhande
Hi Evan, On 8/6/2018 10:56 PM, Evan Green wrote: Hi Sayali, On Wed, Aug 1, 2018 at 1:49 AM Sayali Lokhande wrote: From: Subhash Jadavani UFS host supplies the reference clock to UFS device and UFS device specification allows host to provide one of the 4 frequencies (19.2 MHz, 26 MHz, 38.4

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-09 Thread Mikko Perttunen
Here's my current code: https://github.com/cyndis/linux/commits/wip/t194-tcu-4 "fixup! mailbox: tegra-hsp: Add support for shared mailboxes" splits up the controller into two. "tegra-hsp: use polling" changes it to use polling. There are two lines in the top patch with comments: - at the

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-09 Thread Mikko Perttunen
Here's my current code: https://github.com/cyndis/linux/commits/wip/t194-tcu-4 "fixup! mailbox: tegra-hsp: Add support for shared mailboxes" splits up the controller into two. "tegra-hsp: use polling" changes it to use polling. There are two lines in the top patch with comments: - at the

Re: [PATCH v3 2/2] tty/serial: atmel: add ISO7816 support

2018-08-09 Thread Richard Genoud
Hi ! On 07/08/2018 15:00, Ludovic Desroches wrote: > From: Nicolas Ferre > > When mode is set in atmel_config_iso7816() we backup last RS232 mode > for coming back to this mode if requested. > Also allow setup of T=0 and T=1 parameter and basic support in set_termios > function as well. > >

Re: [PATCH v3 2/2] tty/serial: atmel: add ISO7816 support

2018-08-09 Thread Richard Genoud
Hi ! On 07/08/2018 15:00, Ludovic Desroches wrote: > From: Nicolas Ferre > > When mode is set in atmel_config_iso7816() we backup last RS232 mode > for coming back to this mode if requested. > Also allow setup of T=0 and T=1 parameter and basic support in set_termios > function as well. > >

Re: [PATCH v2 01/15] staging:rtl8192u: Remove macro eqMacAddr - Style

2018-08-09 Thread John Whitmore
On Wed, Aug 08, 2018 at 03:14:19PM -0700, Joe Perches wrote: > On Wed, 2018-08-08 at 22:00 +0100, John Whitmore wrote: > > The macro eqMacAddr implements the same functionality as the > > ether_addr_equal function defined in etherdevice.h, as a result the > > macro has been removed from the code,

Re: [PATCH v2 01/15] staging:rtl8192u: Remove macro eqMacAddr - Style

2018-08-09 Thread John Whitmore
On Wed, Aug 08, 2018 at 03:14:19PM -0700, Joe Perches wrote: > On Wed, 2018-08-08 at 22:00 +0100, John Whitmore wrote: > > The macro eqMacAddr implements the same functionality as the > > ether_addr_equal function defined in etherdevice.h, as a result the > > macro has been removed from the code,

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-09 Thread Patrick Bellasi
On 06-Aug 09:50, Randy Dunlap wrote: > Hi, Hi Randy, > On 08/06/2018 09:39 AM, Patrick Bellasi wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 041f3a022122..1d45a6877d6f 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -583,6 +583,25 @@ config HAVE_UNSTABLE_SCHED_CLOCK >

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-09 Thread Patrick Bellasi
On 06-Aug 09:50, Randy Dunlap wrote: > Hi, Hi Randy, > On 08/06/2018 09:39 AM, Patrick Bellasi wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 041f3a022122..1d45a6877d6f 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -583,6 +583,25 @@ config HAVE_UNSTABLE_SCHED_CLOCK >

[PATCH] scripts/gcc-goto.sh: Show stdout and stderr for potential errors

2018-08-09 Thread zhe.he
From: He Zhe The check may fail not only because ${CC} does not support the asm feature, but also due to potential defects of ${CC} itself like what we experienced below or even it's missing. Assembler messages: Fatal error: The input and output files must be distinct (introduced by

[PATCH] scripts/gcc-goto.sh: Show stdout and stderr for potential errors

2018-08-09 Thread zhe.he
From: He Zhe The check may fail not only because ${CC} does not support the asm feature, but also due to potential defects of ${CC} itself like what we experienced below or even it's missing. Assembler messages: Fatal error: The input and output files must be distinct (introduced by

Re: [PATCH v8 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-09 Thread Harald Freudenberger
On 09.08.2018 10:17, David Hildenbrand wrote: > On 08.08.2018 16:44, Tony Krowiak wrote: >> From: Tony Krowiak >> >> Introduces a new CPU model feature and two CPU model >> facilities to support AP virtualization for KVM guests. >> >> CPU model feature: >> >> The KVM_S390_VM_CPU_FEAT_AP feature

Re: [PATCH v8 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-09 Thread Harald Freudenberger
On 09.08.2018 10:17, David Hildenbrand wrote: > On 08.08.2018 16:44, Tony Krowiak wrote: >> From: Tony Krowiak >> >> Introduces a new CPU model feature and two CPU model >> facilities to support AP virtualization for KVM guests. >> >> CPU model feature: >> >> The KVM_S390_VM_CPU_FEAT_AP feature

Re: [PATCH] arm64: PCI: Remove node-local allocations when initialising host controller

2018-08-09 Thread Punit Agrawal
Bjorn Helgaas writes: > On Wed, Aug 08, 2018 at 03:44:03PM +0100, Punit Agrawal wrote: >> Bjorn Helgaas writes: >> > On Thu, Aug 2, 2018 at 9:33 AM Lorenzo Pieralisi >> > wrote: >> >> On Wed, Aug 01, 2018 at 02:38:51PM -0500, Jeremy Linton wrote: >> >> >> >> Jiang Liu does not work on the

Re: [PATCH] arm64: PCI: Remove node-local allocations when initialising host controller

2018-08-09 Thread Punit Agrawal
Bjorn Helgaas writes: > On Wed, Aug 08, 2018 at 03:44:03PM +0100, Punit Agrawal wrote: >> Bjorn Helgaas writes: >> > On Thu, Aug 2, 2018 at 9:33 AM Lorenzo Pieralisi >> > wrote: >> >> On Wed, Aug 01, 2018 at 02:38:51PM -0500, Jeremy Linton wrote: >> >> >> >> Jiang Liu does not work on the

Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

2018-08-09 Thread Miklos Szeredi
On Thu, Aug 9, 2018 at 9:31 AM, 刘硕然 wrote: > Thank you for the prompt reply. > > I tried this config, but still can get balance_dirty_pages triggered. I think it may be due to BDI_CAP_STRICTLIMIT used by fuse. If you remove that setting from fuse in the kernel you should not be getting the

Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

2018-08-09 Thread Miklos Szeredi
On Thu, Aug 9, 2018 at 9:31 AM, 刘硕然 wrote: > Thank you for the prompt reply. > > I tried this config, but still can get balance_dirty_pages triggered. I think it may be due to BDI_CAP_STRICTLIMIT used by fuse. If you remove that setting from fuse in the kernel you should not be getting the

Re: [PATCH v8 07/22] KVM: s390: refactor crypto initialization

2018-08-09 Thread David Hildenbrand
On 08.08.2018 16:44, Tony Krowiak wrote: > From: Tony Krowiak > > This patch refactors the code that initializes and sets up the > crypto configuration for a guest. The following changes are > implemented via this patch: > > 1. Prior to the introduction of AP device virtualization, it >was

Re: [PATCH v8 07/22] KVM: s390: refactor crypto initialization

2018-08-09 Thread David Hildenbrand
On 08.08.2018 16:44, Tony Krowiak wrote: > From: Tony Krowiak > > This patch refactors the code that initializes and sets up the > crypto configuration for a guest. The following changes are > implemented via this patch: > > 1. Prior to the introduction of AP device virtualization, it >was

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Michal Hocko
On Wed 08-08-18 12:58:15, Jerome Glisse wrote: > On Wed, Aug 08, 2018 at 08:47:58AM +0200, Michal Hocko wrote: > > On Tue 07-08-18 11:18:10, Jerome Glisse wrote: > > > On Tue, Aug 07, 2018 at 04:59:00PM +0200, Michal Hocko wrote: > > > > On Tue 07-08-18 09:52:21, Jerome Glisse wrote: > > > > > On

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Michal Hocko
On Wed 08-08-18 12:58:15, Jerome Glisse wrote: > On Wed, Aug 08, 2018 at 08:47:58AM +0200, Michal Hocko wrote: > > On Tue 07-08-18 11:18:10, Jerome Glisse wrote: > > > On Tue, Aug 07, 2018 at 04:59:00PM +0200, Michal Hocko wrote: > > > > On Tue 07-08-18 09:52:21, Jerome Glisse wrote: > > > > > On

[PATCH 0/2] arm64: dts: meson-g12a: Introduce new DT files for Meson-G12A SoC

2018-08-09 Thread Jianxin Pan
From: Jianxin This attempt will try to add new DT files to support Meson-G12A SoC. 1) first, Please notice that, in this patch series, the DT node about 16M reserved memory for hwrom is removed, since it's not needed by G12A SoC. 2) second, the pclk for uart_AO need to be fixed once G12A

Re: Droid 4: suspend to RAM?

2018-08-09 Thread Tony Lindgren
* Pavel Machek [180808 21:35]: > On Wed 2018-08-08 02:05:12, Tony Lindgren wrote: > > Then for deeper idle modes, you need to also idle UARTs, and unbind or > > unload USB related modules. You should get to something like 160mW > > power consumption with mdm6600 enabled and SoC suspended that

[PATCH v3] mm: Use special value SHRINKER_REGISTERING instead list_empty() check

2018-08-09 Thread Kirill Tkhai
v3: Added missed #ifdef CONFIG_MEMCG_KMEM around idr_replace() v2: Improved comments to SHRINKER_REGISTERING and written long description about all the things to the patch. The patch introduces a special value SHRINKER_REGISTERING to use instead of list_empty() to differ a registering

[PATCH 0/2] arm64: dts: meson-g12a: Introduce new DT files for Meson-G12A SoC

2018-08-09 Thread Jianxin Pan
From: Jianxin This attempt will try to add new DT files to support Meson-G12A SoC. 1) first, Please notice that, in this patch series, the DT node about 16M reserved memory for hwrom is removed, since it's not needed by G12A SoC. 2) second, the pclk for uart_AO need to be fixed once G12A

Re: Droid 4: suspend to RAM?

2018-08-09 Thread Tony Lindgren
* Pavel Machek [180808 21:35]: > On Wed 2018-08-08 02:05:12, Tony Lindgren wrote: > > Then for deeper idle modes, you need to also idle UARTs, and unbind or > > unload USB related modules. You should get to something like 160mW > > power consumption with mdm6600 enabled and SoC suspended that

[PATCH v3] mm: Use special value SHRINKER_REGISTERING instead list_empty() check

2018-08-09 Thread Kirill Tkhai
v3: Added missed #ifdef CONFIG_MEMCG_KMEM around idr_replace() v2: Improved comments to SHRINKER_REGISTERING and written long description about all the things to the patch. The patch introduces a special value SHRINKER_REGISTERING to use instead of list_empty() to differ a registering

[PATCH 1/2] dt-bindings: arm: amlogic: Add Meson G12A binding

2018-08-09 Thread Jianxin Pan
Introduce new bindings for the Meson G12A SoC Signed-off-by: Jianxin Pan --- Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/bindings/arm/amlogic.txt index

[PATCH 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-09 Thread Jianxin Pan
Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, which describe components as follows: Reserve Memory, CPU, GIC, IRQ, Timer, UART. It's capable of booting up into the serial console. Signed-off-by: Jianxin --- arch/arm64/boot/dts/amlogic/Makefile| 1 +

[PATCH 1/2] dt-bindings: arm: amlogic: Add Meson G12A binding

2018-08-09 Thread Jianxin Pan
Introduce new bindings for the Meson G12A SoC Signed-off-by: Jianxin Pan --- Documentation/devicetree/bindings/arm/amlogic.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/bindings/arm/amlogic.txt index

[PATCH 2/2] arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support

2018-08-09 Thread Jianxin Pan
Try to add basic DT support for the Amlogic's Meson-G12A S905D2 SoC, which describe components as follows: Reserve Memory, CPU, GIC, IRQ, Timer, UART. It's capable of booting up into the serial console. Signed-off-by: Jianxin --- arch/arm64/boot/dts/amlogic/Makefile| 1 +

Re: [PATCH 0/2] fs/lock: show locks info owned by dead/invisible processes

2018-08-09 Thread Konstantin Khorenko
On 08/09/2018 10:16 AM, Murphy Zhou wrote: Hi, Looks like this missed v4.18 ? Hi Murphy, yes, Jeff planned to push those patches into 4.19 and they are in "linux-next" now, but not in 4.18 "master" currently. On 06/14/2018 01:41 PM, Jeff Layton wrote: > These look fine to me. I'll plan to

Re: [PATCH 0/2] fs/lock: show locks info owned by dead/invisible processes

2018-08-09 Thread Konstantin Khorenko
On 08/09/2018 10:16 AM, Murphy Zhou wrote: Hi, Looks like this missed v4.18 ? Hi Murphy, yes, Jeff planned to push those patches into 4.19 and they are in "linux-next" now, but not in 4.18 "master" currently. On 06/14/2018 01:41 PM, Jeff Layton wrote: > These look fine to me. I'll plan to

Re: [PATCH v8 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-09 Thread David Hildenbrand
On 08.08.2018 16:44, Tony Krowiak wrote: > From: Tony Krowiak > > Introduces a new CPU model feature and two CPU model > facilities to support AP virtualization for KVM guests. > > CPU model feature: > > The KVM_S390_VM_CPU_FEAT_AP feature indicates that > AP instructions are available on the

Re: [PATCH v8 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-09 Thread David Hildenbrand
On 08.08.2018 16:44, Tony Krowiak wrote: > From: Tony Krowiak > > Introduces a new CPU model feature and two CPU model > facilities to support AP virtualization for KVM guests. > > CPU model feature: > > The KVM_S390_VM_CPU_FEAT_AP feature indicates that > AP instructions are available on the

Re: [PATCH v8 09/26] kernel/cpu_pm: Manage runtime PM in the idle path for CPUs

2018-08-09 Thread Rafael J. Wysocki
On Wed, Aug 8, 2018 at 8:02 PM, Lina Iyer wrote: > On Wed, Aug 08 2018 at 04:56 -0600, Lorenzo Pieralisi wrote: >> >> On Mon, Aug 06, 2018 at 11:37:55AM +0200, Rafael J. Wysocki wrote: >>> >>> On Fri, Aug 3, 2018 at 1:42 PM, Ulf Hansson >>> wrote: >>> > [...] >>> > >>> >>> >>> >>> Assuming that

Re: [PATCH v8 09/26] kernel/cpu_pm: Manage runtime PM in the idle path for CPUs

2018-08-09 Thread Rafael J. Wysocki
On Wed, Aug 8, 2018 at 8:02 PM, Lina Iyer wrote: > On Wed, Aug 08 2018 at 04:56 -0600, Lorenzo Pieralisi wrote: >> >> On Mon, Aug 06, 2018 at 11:37:55AM +0200, Rafael J. Wysocki wrote: >>> >>> On Fri, Aug 3, 2018 at 1:42 PM, Ulf Hansson >>> wrote: >>> > [...] >>> > >>> >>> >>> >>> Assuming that

Re: [RFC][PATCH 00/24] tools lib traceevent: Rename pevent to tep for preparation for library

2018-08-09 Thread Jiri Olsa
On Wed, Aug 08, 2018 at 11:55:48AM -0400, Steven Rostedt wrote: > Having libtraceevent turn into a proper library has long been asked for. > I never had time to do it before. Luckily, Tzvetomir was able to spend > the time to start the preparation. The first thing that needs to be done > is to

Re: [RFC][PATCH 00/24] tools lib traceevent: Rename pevent to tep for preparation for library

2018-08-09 Thread Jiri Olsa
On Wed, Aug 08, 2018 at 11:55:48AM -0400, Steven Rostedt wrote: > Having libtraceevent turn into a proper library has long been asked for. > I never had time to do it before. Luckily, Tzvetomir was able to spend > the time to start the preparation. The first thing that needs to be done > is to

Re: [PATCH v8 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-09 Thread David Hildenbrand
On 08.08.2018 16:44, Tony Krowiak wrote: > From: Pierre Morel > > When we clear the Crypto Control Block (CRYCB) used by a guest > level 2, the vSIE shadow CRYCB for guest level 3 must be updated > before the guest uses it. > > We achieve this by using the KVM_REQ_VSIE_RESTART synchronous >

Re: [PATCH v8 19/22] KVM: s390: Clear Crypto Control Block when using vSIE

2018-08-09 Thread David Hildenbrand
On 08.08.2018 16:44, Tony Krowiak wrote: > From: Pierre Morel > > When we clear the Crypto Control Block (CRYCB) used by a guest > level 2, the vSIE shadow CRYCB for guest level 3 must be updated > before the guest uses it. > > We achieve this by using the KVM_REQ_VSIE_RESTART synchronous >

Re: [PATCH v2] perf ordered_events: fix crash in free_dup_event()

2018-08-09 Thread Jiri Olsa
On Wed, Aug 08, 2018 at 03:33:20PM -0700, Stephane Eranian wrote: > This patch fixes a bug in ordered_event.c:alloc_event(). > An ordered_event struct was not initialized properly potentially > causing crashes later on in free_dup_event() depending on the > content of the memory. If it was NULL,

Re: [PATCH v2] perf ordered_events: fix crash in free_dup_event()

2018-08-09 Thread Jiri Olsa
On Wed, Aug 08, 2018 at 03:33:20PM -0700, Stephane Eranian wrote: > This patch fixes a bug in ordered_event.c:alloc_event(). > An ordered_event struct was not initialized properly potentially > causing crashes later on in free_dup_event() depending on the > content of the memory. If it was NULL,

linux-next: Tree for Aug 9

2018-08-09 Thread Stephen Rothwell
Hi all, Changes since 20180808: The vfs tree still had its build failure but today I applied a suggested patch and I have still disabled CONFIG_SAMPLE_STATX. Non-merge commits (relative to Linus' tree): 11533 10452 files changed, 491910 insertions(+), 204122 deletions(-)

linux-next: Tree for Aug 9

2018-08-09 Thread Stephen Rothwell
Hi all, Changes since 20180808: The vfs tree still had its build failure but today I applied a suggested patch and I have still disabled CONFIG_SAMPLE_STATX. Non-merge commits (relative to Linus' tree): 11533 10452 files changed, 491910 insertions(+), 204122 deletions(-)

[PATCH v1 1/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-09 Thread David Hildenbrand
VCPU requests and VCPU blocking right now don't take care of the vSIE (as it was not necessary until now). But we want to have synchronous VCPU requests that will also be handled before running the vSIE again. So let's simulate a SIE entry of the VCPU when calling the sie during vSIE handling and

[PATCH v1 2/2] KVM: s390: introduce and use KVM_REQ_VSIE_RESTART

2018-08-09 Thread David Hildenbrand
When we change the crycb (or execution controls), we also have to make sure that the vSIE shadow datastructures properly consider the changed values before rerunning the vSIE. We can achieve that by simply using a VCPU request now. This has to be a synchronous request (== handled before entering

[PATCH v1 0/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-09 Thread David Hildenbrand
While discussing AP changes, we discovered that we will have to force a CPU using the vSIE to regenerate/reload shadow data structures. For now, we have no mechanism for that. E.g. when clearing AP masks later, we could still have a vSIE CPU making use of AP adapters as the masks might not be

[PATCH v1 1/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-09 Thread David Hildenbrand
VCPU requests and VCPU blocking right now don't take care of the vSIE (as it was not necessary until now). But we want to have synchronous VCPU requests that will also be handled before running the vSIE again. So let's simulate a SIE entry of the VCPU when calling the sie during vSIE handling and

[PATCH v1 2/2] KVM: s390: introduce and use KVM_REQ_VSIE_RESTART

2018-08-09 Thread David Hildenbrand
When we change the crycb (or execution controls), we also have to make sure that the vSIE shadow datastructures properly consider the changed values before rerunning the vSIE. We can achieve that by simply using a VCPU request now. This has to be a synchronous request (== handled before entering

[PATCH v1 0/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-09 Thread David Hildenbrand
While discussing AP changes, we discovered that we will have to force a CPU using the vSIE to regenerate/reload shadow data structures. For now, we have no mechanism for that. E.g. when clearing AP masks later, we could still have a vSIE CPU making use of AP adapters as the masks might not be

Re: [PATCH v6 5/5] Auto-detect whether a FPU exists

2018-08-09 Thread Christoph Hellwig
On Thu, Aug 09, 2018 at 03:44:40PM +0800, Alan Kao wrote: > We expect that a kernel with CONFIG_FPU=y can still support no-FPU > machines. To do so, the kernel should first examine the existence of a > FPU, then do nothing if a FPU does exist; otherwise, it should > disable/bypass all FPU-related

Re: [PATCH v6 5/5] Auto-detect whether a FPU exists

2018-08-09 Thread Christoph Hellwig
On Thu, Aug 09, 2018 at 03:44:40PM +0800, Alan Kao wrote: > We expect that a kernel with CONFIG_FPU=y can still support no-FPU > machines. To do so, the kernel should first examine the existence of a > FPU, then do nothing if a FPU does exist; otherwise, it should > disable/bypass all FPU-related

[PATCH v4 2/3] dt-bindings: interrupt-controller: SiFive Plaform Level Interrupt Controller

2018-08-09 Thread Christoph Hellwig
From: Palmer Dabbelt Add documentation for the SiFive implementation of the RISC-V Platform Level Interrupt Controller (PLIC). The PLIC connects global interrupt sources to the local interrupt controller on each hart. Signed-off-by: Palmer Dabbelt [hch: various fixes and updates]

[PATCH v4 3/3] irqchip: add a SiFive PLIC driver

2018-08-09 Thread Christoph Hellwig
Add a driver for the SiFive implementation of the RISC-V Platform Level Interrupt Controller (PLIC). The PLIC connects global interrupt sources to the local interrupt controller on each hart. This driver is based on the driver in the RISC-V tree from Palmer Dabbelt, but has been almost entirely

simplified RISC-V interrupt and clocksource handling v4

2018-08-09 Thread Christoph Hellwig
This series tries adds support for interrupt handling and timers for the RISC-V architecture. The basic per-hart interrupt handling implemented by the scause and sie CSRs is extremely simple and implemented directly in arch/riscv/kernel/irq.c. In addition there is a irqchip driver for the PLIC

[PATCH v4 1/3] dt-bindings: interrupt-controller: RISC-V local interrupt controller

2018-08-09 Thread Christoph Hellwig
From: Palmer Dabbelt Add documentation on the RISC-V local interrupt controller, which is a per-hart interrupt controller that manages all interrupts entering a RISC-V hart. This interrupt controller is present on all RISC-V systems. Signed-off-by: Palmer Dabbelt [hch: minor cleanups]

[PATCH v4 2/3] dt-bindings: interrupt-controller: SiFive Plaform Level Interrupt Controller

2018-08-09 Thread Christoph Hellwig
From: Palmer Dabbelt Add documentation for the SiFive implementation of the RISC-V Platform Level Interrupt Controller (PLIC). The PLIC connects global interrupt sources to the local interrupt controller on each hart. Signed-off-by: Palmer Dabbelt [hch: various fixes and updates]

[PATCH v4 3/3] irqchip: add a SiFive PLIC driver

2018-08-09 Thread Christoph Hellwig
Add a driver for the SiFive implementation of the RISC-V Platform Level Interrupt Controller (PLIC). The PLIC connects global interrupt sources to the local interrupt controller on each hart. This driver is based on the driver in the RISC-V tree from Palmer Dabbelt, but has been almost entirely

simplified RISC-V interrupt and clocksource handling v4

2018-08-09 Thread Christoph Hellwig
This series tries adds support for interrupt handling and timers for the RISC-V architecture. The basic per-hart interrupt handling implemented by the scause and sie CSRs is extremely simple and implemented directly in arch/riscv/kernel/irq.c. In addition there is a irqchip driver for the PLIC

[PATCH v4 1/3] dt-bindings: interrupt-controller: RISC-V local interrupt controller

2018-08-09 Thread Christoph Hellwig
From: Palmer Dabbelt Add documentation on the RISC-V local interrupt controller, which is a per-hart interrupt controller that manages all interrupts entering a RISC-V hart. This interrupt controller is present on all RISC-V systems. Signed-off-by: Palmer Dabbelt [hch: minor cleanups]

Re: [PATCH v2 3/4] ARM64: dts: meson-gx: add dmcbus and canvas nodes.

2018-08-09 Thread Neil Armstrong
On 08/08/2018 10:41, Jerome Brunet wrote: > On Wed, 2018-08-08 at 00:00 +0200, Maxime Jourdan wrote: >> Wrap the canvas node in a syscon node. >> >> Signed-off-by: Maxime Jourdan >> --- >> arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 17 + >> 1 file changed, 17 insertions(+) >> >>

Re: [PATCH v2 3/4] ARM64: dts: meson-gx: add dmcbus and canvas nodes.

2018-08-09 Thread Neil Armstrong
On 08/08/2018 10:41, Jerome Brunet wrote: > On Wed, 2018-08-08 at 00:00 +0200, Maxime Jourdan wrote: >> Wrap the canvas node in a syscon node. >> >> Signed-off-by: Maxime Jourdan >> --- >> arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 17 + >> 1 file changed, 17 insertions(+) >> >>

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Oscar Salvador
On Thu, Aug 09, 2018 at 09:50:55AM +0200, Oscar Salvador wrote: > On Wed, Aug 08, 2018 at 11:29:08PM +0200, Oscar Salvador wrote: > > On Wed, Aug 08, 2018 at 01:55:59PM -0400, Jerome Glisse wrote: > > > Note that Dan did post patches that already go in that direction (unifying > > > code between

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Oscar Salvador
On Thu, Aug 09, 2018 at 09:50:55AM +0200, Oscar Salvador wrote: > On Wed, Aug 08, 2018 at 11:29:08PM +0200, Oscar Salvador wrote: > > On Wed, Aug 08, 2018 at 01:55:59PM -0400, Jerome Glisse wrote: > > > Note that Dan did post patches that already go in that direction (unifying > > > code between

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Oscar Salvador
On Wed, Aug 08, 2018 at 11:29:08PM +0200, Oscar Salvador wrote: > On Wed, Aug 08, 2018 at 01:55:59PM -0400, Jerome Glisse wrote: > > Note that Dan did post patches that already go in that direction (unifying > > code between devm and HMM). I think they are in Andrew queue, looks for > > > > mm:

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Oscar Salvador
On Wed, Aug 08, 2018 at 11:29:08PM +0200, Oscar Salvador wrote: > On Wed, Aug 08, 2018 at 01:55:59PM -0400, Jerome Glisse wrote: > > Note that Dan did post patches that already go in that direction (unifying > > code between devm and HMM). I think they are in Andrew queue, looks for > > > > mm:

Re: [PATCH RFC 01/10] rcu: Make CONFIG_SRCU unconditionally enabled

2018-08-09 Thread Greg KH
On Wed, Aug 08, 2018 at 05:07:08PM -0700, Matthew Wilcox wrote: > On Thu, Aug 09, 2018 at 07:31:25AM +1000, Dave Chinner wrote: > > IMO, we've had enough recent bugs to deal with from shrinkers being > > called before the filesystem is set up and from trying to handle > > allocation errors during

Re: [PATCH RFC 01/10] rcu: Make CONFIG_SRCU unconditionally enabled

2018-08-09 Thread Greg KH
On Wed, Aug 08, 2018 at 05:07:08PM -0700, Matthew Wilcox wrote: > On Thu, Aug 09, 2018 at 07:31:25AM +1000, Dave Chinner wrote: > > IMO, we've had enough recent bugs to deal with from shrinkers being > > called before the filesystem is set up and from trying to handle > > allocation errors during

[PATCH v6 5/5] Auto-detect whether a FPU exists

2018-08-09 Thread Alan Kao
We expect that a kernel with CONFIG_FPU=y can still support no-FPU machines. To do so, the kernel should first examine the existence of a FPU, then do nothing if a FPU does exist; otherwise, it should disable/bypass all FPU-related functions. In this patch, a new global variable, has_fpu, is

[PATCH v6 5/5] Auto-detect whether a FPU exists

2018-08-09 Thread Alan Kao
We expect that a kernel with CONFIG_FPU=y can still support no-FPU machines. To do so, the kernel should first examine the existence of a FPU, then do nothing if a FPU does exist; otherwise, it should disable/bypass all FPU-related functions. In this patch, a new global variable, has_fpu, is

Re: [PATCH] perf ordered_events: fix crash in free_dup_event()

2018-08-09 Thread Jiri Olsa
On Wed, Aug 08, 2018 at 02:47:42PM -0700, Stephane Eranian wrote: > Hi, > > Ok, I found the problem. It still exists upstream , just very tricky to > trigger. > Took me lots of time with gdb + watchpoints to track this down, where > in fact it was just in front of me. > > From the crashdump: >

Re: [PATCH] perf ordered_events: fix crash in free_dup_event()

2018-08-09 Thread Jiri Olsa
On Wed, Aug 08, 2018 at 02:47:42PM -0700, Stephane Eranian wrote: > Hi, > > Ok, I found the problem. It still exists upstream , just very tricky to > trigger. > Took me lots of time with gdb + watchpoints to track this down, where > in fact it was just in front of me. > > From the crashdump: >

Re: [PATCH v8 20/22] KVM: s390: Handling of Cypto control block in VSIE

2018-08-09 Thread Pierre Morel
On 09/08/2018 08:20, Janosch Frank wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Pierre Morel +#define ECA_APIE 0x0008 That shouldn't be necessary, it's defined in kvm_host.h which vsie.c includes. Or is it not? This was forgotten here for a long long time! You are right I

Re: [PATCH v8 20/22] KVM: s390: Handling of Cypto control block in VSIE

2018-08-09 Thread Pierre Morel
On 09/08/2018 08:20, Janosch Frank wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Pierre Morel +#define ECA_APIE 0x0008 That shouldn't be necessary, it's defined in kvm_host.h which vsie.c includes. Or is it not? This was forgotten here for a long long time! You are right I

Re: [PATCH v5 5/5] Auto-detect whether a FPU exists

2018-08-09 Thread Alan Kao
On Thu, Aug 09, 2018 at 12:02:58AM -0700, Christoph Hellwig wrote: > On Thu, Aug 09, 2018 at 02:43:36PM +0800, Alan Kao wrote: > > It does look a little bit weird. Should I send a v6 for this? > > Yes, please resend the series or just this patch. > > I think the hswap.h definition should go

Re: [PATCH v5 5/5] Auto-detect whether a FPU exists

2018-08-09 Thread Alan Kao
On Thu, Aug 09, 2018 at 12:02:58AM -0700, Christoph Hellwig wrote: > On Thu, Aug 09, 2018 at 02:43:36PM +0800, Alan Kao wrote: > > It does look a little bit weird. Should I send a v6 for this? > > Yes, please resend the series or just this patch. > > I think the hswap.h definition should go

Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

2018-08-09 Thread 刘硕然
Thank you for the prompt reply. I tried this config, but still can get balance_dirty_pages triggered. [root@A01-R20-I31-77-8S5FKM2 example]# stat -c %d /mnt/fuse/ 42 [root@A01-R20-I31-77-8S5FKM2 example]# echo 20 > /sys/devices/virtual/bdi/0:`stat -c %d /mnt/fuse/`/max_ratio

Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

2018-08-09 Thread 刘硕然
Thank you for the prompt reply. I tried this config, but still can get balance_dirty_pages triggered. [root@A01-R20-I31-77-8S5FKM2 example]# stat -c %d /mnt/fuse/ 42 [root@A01-R20-I31-77-8S5FKM2 example]# echo 20 > /sys/devices/virtual/bdi/0:`stat -c %d /mnt/fuse/`/max_ratio

Re: [PATCH RFC 1/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-09 Thread David Hildenbrand
On 07.08.2018 14:51, David Hildenbrand wrote: > VCPU requests and VCPU blocking right now don't take care of the vSIE > (as it was not necessary until now). But we want to have VCPU requests > that will also be handled before running the vSIE again. > > So let's simulate a SIE entry when entering

Re: [PATCH RFC 1/2] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-09 Thread David Hildenbrand
On 07.08.2018 14:51, David Hildenbrand wrote: > VCPU requests and VCPU blocking right now don't take care of the vSIE > (as it was not necessary until now). But we want to have VCPU requests > that will also be handled before running the vSIE again. > > So let's simulate a SIE entry when entering

Re: [PATCH 0/2] fs/lock: show locks info owned by dead/invisible processes

2018-08-09 Thread Murphy Zhou
Hi, Looks like this missed v4.18 ? Thanks, Murphy On Fri, Jun 8, 2018 at 10:27 PM, Konstantin Khorenko wrote: > The behavior has been changed after 9d5b86ac13c5 ("fs/locks: Remove fl_nspid > and use fs-specific l_pid for remote locks") > and now /proc/$PID/fdinfo/$FD does not show the info

Re: [PATCH 0/2] fs/lock: show locks info owned by dead/invisible processes

2018-08-09 Thread Murphy Zhou
Hi, Looks like this missed v4.18 ? Thanks, Murphy On Fri, Jun 8, 2018 at 10:27 PM, Konstantin Khorenko wrote: > The behavior has been changed after 9d5b86ac13c5 ("fs/locks: Remove fl_nspid > and use fs-specific l_pid for remote locks") > and now /proc/$PID/fdinfo/$FD does not show the info

Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

2018-08-09 Thread Miklos Szeredi
On Thu, Aug 9, 2018 at 5:37 AM, 刘硕然 wrote: > Dear Miklos, > > Recently I've been testing FUSE and libfuse example passthrough_ll with > writeback cache on, and found out that the performance drops significantly > compared to that in local filesystem. As I can see from trace, >

Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

2018-08-09 Thread Miklos Szeredi
On Thu, Aug 9, 2018 at 5:37 AM, 刘硕然 wrote: > Dear Miklos, > > Recently I've been testing FUSE and libfuse example passthrough_ll with > writeback cache on, and found out that the performance drops significantly > compared to that in local filesystem. As I can see from trace, >

Re: [PATCH RFC v2 02/10] mm: Make shrink_slab() lockless

2018-08-09 Thread Michal Hocko
On Wed 08-08-18 16:20:54, Kirill Tkhai wrote: > [Added two more places needed srcu_dereference(). All ->shrinker_map > dereferences must be under SRCU, and this v2 adds missed in previous] > > The patch makes shrinker list and shrinker_idr SRCU-safe > for readers. This requires

Re: [PATCH RFC v2 02/10] mm: Make shrink_slab() lockless

2018-08-09 Thread Michal Hocko
On Wed 08-08-18 16:20:54, Kirill Tkhai wrote: > [Added two more places needed srcu_dereference(). All ->shrinker_map > dereferences must be under SRCU, and this v2 adds missed in previous] > > The patch makes shrinker list and shrinker_idr SRCU-safe > for readers. This requires

[PATCH v4 3/3] clk: meson: add sub MMC clock controller driver

2018-08-09 Thread Yixun Lan
The patch will add a MMC clock controller driver which used by MMC or NAND, It provide a mux and divider clock, and three phase clocks - core, tx, tx. Two clocks are provided as the parent of MMC clock controller from upper layer clock controller - eg "amlogic,axg-clkc" in AXG platform. To

[PATCH v4 2/3] clk: meson: add DT documentation for emmc clock controller

2018-08-09 Thread Yixun Lan
Document the MMC sub clock controller driver, the potential consumer of this driver is MMC or NAND. Also add four clock bindings IDs which provided by this driver. Reviewed-by: Rob Herring Signed-off-by: Yixun Lan --- .../bindings/clock/amlogic,mmc-clkc.txt | 31 +++

[PATCH v4 1/3] clk: meson: add emmc sub clock phase delay driver

2018-08-09 Thread Yixun Lan
Export the emmc sub clock phase delay ops which will be used by the emmc sub clock driver itself. Signed-off-by: Yixun Lan --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clk-phase-delay.c | 96 + drivers/clk/meson/clkc.h| 13 3

[PATCH v4 3/3] clk: meson: add sub MMC clock controller driver

2018-08-09 Thread Yixun Lan
The patch will add a MMC clock controller driver which used by MMC or NAND, It provide a mux and divider clock, and three phase clocks - core, tx, tx. Two clocks are provided as the parent of MMC clock controller from upper layer clock controller - eg "amlogic,axg-clkc" in AXG platform. To

<    7   8   9   10   11   12   13   >