Re: CONFIG_PPC_VAS depends on 64k pages...?

2020-12-02 Thread Will Springer
On Tuesday, December 1, 2020 5:16:51 AM PST Bulent Abali wrote: > I don't know anything about VAS page size requirements in the kernel. I > checked the user compression library and saw that we do a sysconf to > get the page size; so the library should be immune to page size by > design. But it wou

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-02 Thread Peter Zijlstra
On Sun, Nov 29, 2020 at 02:01:39AM +1000, Nicholas Piggin wrote: > +static void shoot_lazy_tlbs(struct mm_struct *mm) > +{ > + if (IS_ENABLED(CONFIG_MMU_LAZY_TLB_SHOOTDOWN)) { > + /* > + * IPI overheads have not found to be expensive, but they could > + * b

Re: [PATCH] EDAC, mv64x60: Fix error return code in mv64x60_pci_err_probe()

2020-12-02 Thread Borislav Petkov
On Tue, Nov 24, 2020 at 02:30:09PM +0800, Wang ShaoBo wrote: > Fix to return -ENODEV error code when edac_pci_add_device() failed instaed > of 0 in mv64x60_pci_err_probe(), as done elsewhere in this function. > > Fixes: 4f4aeeabc061 ("drivers-edac: add marvell mv64x60 driver") > Signed-off-by: Wan

Re: [PATCH 00/13] ibmvfc: initial MQ development

2020-12-02 Thread Hannes Reinecke
On 11/26/20 2:48 AM, Tyrel Datwyler wrote: Recent updates in pHyp Firmware and VIOS releases provide new infrastructure towards enabling Subordinate Command Response Queues (Sub-CRQs) such that each Sub-CRQ is a channel backed by an actual hardware queue in the FC stack on the partner VIOS. Sub-C

Re: [PATCH 2/2] powerpc/ps3: make system bus's remove and shutdown callbacks return void

2020-12-02 Thread Michael Ellerman
Uwe Kleine-König writes: > Hello Michael, > > On Sat, Nov 28, 2020 at 09:48:30AM +0100, Takashi Iwai wrote: >> On Thu, 26 Nov 2020 17:59:50 +0100, >> Uwe Kleine-König wrote: >> > >> > The driver core ignores the return value of struct device_driver::remove >> > because there is only little that c

Re: [PATCH 2/2] powerpc/ps3: make system bus's remove and shutdown callbacks return void

2020-12-02 Thread Takashi Iwai
On Wed, 02 Dec 2020 13:14:06 +0100, Michael Ellerman wrote: > > Uwe Kleine-König writes: > > Hello Michael, > > > > On Sat, Nov 28, 2020 at 09:48:30AM +0100, Takashi Iwai wrote: > >> On Thu, 26 Nov 2020 17:59:50 +0100, > >> Uwe Kleine-König wrote: > >> > > >> > The driver core ignores the return

[PATCH] drivers: char: tpm: remove unneeded MODULE_VERSION() usage

2020-12-02 Thread Enrico Weigelt, metux IT consult
Remove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version. Link: https://lkml.org/lkml/2017/11/22/480 Signed-off-by: Enrico Weigelt --- drivers/char/tpm/st33zp24/i2c.c | 1 - drivers/char/tpm/st33zp24/spi.c | 1 - drivers/char/tpm/st33zp24

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-02 Thread Peter Zijlstra
On Wed, Dec 02, 2020 at 12:17:31PM +0100, Peter Zijlstra wrote: > So the obvious 'improvement' here would be something like: > > for_each_online_cpu(cpu) { > p = rcu_dereference(cpu_rq(cpu)->curr; > if (p->active_mm != mm) > continue; >

Re: [PATCH 4/8] KVM: PPC: Book3S HV: Ratelimit machine check messages coming from guests

2020-12-02 Thread Michael Ellerman
Nicholas Piggin writes: > A number of machine check exceptions are triggerable by the guest. > Ratelimit these to avoid a guest flooding the host console and logs. > > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/kvm/book3s_hv.c | 11 --- > 1 file changed, 8 insertions(+), 3 delet

Re: [PATCH 5/8] powerpc/64s/powernv: ratelimit harmless HMI error printing

2020-12-02 Thread Michael Ellerman
Nicholas Piggin writes: > Harmless HMI errors can be triggered by guests in some cases, and don't > contain much useful information anyway. Ratelimit these to avoid > flooding the console/logs. > > Signed-off-by: Nicholas Piggin > --- > arch/powerpc/platforms/powernv/opal-hmi.c | 27

Re: powerpc 5.10-rcN boot failures with RCU_SCALE_TEST=m

2020-12-02 Thread Michael Ellerman
Daniel Axtens writes: > Hi all, > > I'm having some difficulty tracking down a bug. > > Some configurations of the powerpc kernel since somewhere in the 5.10 > merge window fail to boot on some ppc64 systems. They hang while trying > to bring up SMP. It seems to depend on the RCU_SCALE/PERF_TEST o

Re: [PATCH kernel v3] powerpc/pci: Remove LSI mappings on device teardown

2020-12-02 Thread Frederic Barrat
On 02/12/2020 01:52, Alexey Kardashevskiy wrote: From: Oliver O'Halloran When a passthrough IO adapter is removed from a pseries machine using hash MMU and the XIVE interrupt mode, the POWER hypervisor expects the guest OS to clear all page table entries related to the adapter. If some are s

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-02 Thread Peter Zijlstra
On Sun, Nov 29, 2020 at 02:01:39AM +1000, Nicholas Piggin wrote: > + * - A delayed freeing and RCU-like quiescing sequence based on > + * mm switching to avoid IPIs completely. That one's interesting too. so basically you want to count switch_mm() invocations on each CP

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-02 Thread Andy Lutomirski
> On Dec 2, 2020, at 6:20 AM, Peter Zijlstra wrote: > > On Sun, Nov 29, 2020 at 02:01:39AM +1000, Nicholas Piggin wrote: >> + * - A delayed freeing and RCU-like quiescing sequence based on >> + * mm switching to avoid IPIs completely. > > That one's interesting too. so basic

Re: powerpc 5.10-rcN boot failures with RCU_SCALE_TEST=m

2020-12-02 Thread Uladzislau Rezki
On Thu, Dec 03, 2020 at 01:03:32AM +1100, Michael Ellerman wrote: > Daniel Axtens writes: > > Hi all, > > > > I'm having some difficulty tracking down a bug. > > > > Some configurations of the powerpc kernel since somewhere in the 5.10 > > merge window fail to boot on some ppc64 systems. They hang

Re: [PATCH kernel v3] powerpc/pci: Remove LSI mappings on device teardown

2020-12-02 Thread Cédric Le Goater
On 12/2/20 1:52 AM, Alexey Kardashevskiy wrote: > From: Oliver O'Halloran > > When a passthrough IO adapter is removed from a pseries machine using hash > MMU and the XIVE interrupt mode, the POWER hypervisor expects the guest OS > to clear all page table entries related to the adapter. If some a

Re: [PATCH v2 01/17] ibmvfc: add vhost fields and defaults for MQ enablement

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > Introduce several new vhost fields for managing MQ state of the adapter > as well as initial defaults for MQ enablement. > > Signed-off-by: Tyrel Datwyler > --- > drivers/scsi/ibmvscsi/ibmvfc.c | 9 - > drivers/scsi/ibmvscsi/ibmvfc.h | 13

Re: [PATCH v2 04/17] ibmvfc: add alloc/dealloc routines for SCSI Sub-CRQ Channels

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > +static int ibmvfc_register_scsi_channel(struct ibmvfc_host *vhost, > + int index) > +{ > + struct device *dev = vhost->dev; > + struct vio_dev *vdev = to_vio_dev(dev); > + struct ibmvfc_sub_queue *scrq = &vhost->

Re: [PATCH v2 06/17] ibmvfc: add handlers to drain and complete Sub-CRQ responses

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > The logic for iterating over the Sub-CRQ responses is similiar to that > of the primary CRQ. Add the necessary handlers for processing those > responses. > > Signed-off-by: Tyrel Datwyler > --- > drivers/scsi/ibmvscsi/ibmvfc.c | 77

Re: [PATCH v2 09/17] ibmvfc: implement channel enquiry and setup commands

2020-12-02 Thread Brian King
Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center

Re: [PATCH v2 06/17] ibmvfc: add handlers to drain and complete Sub-CRQ responses

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > +static void ibmvfc_handle_scrq(struct ibmvfc_crq *crq, struct ibmvfc_host > *vhost) > +{ > + struct ibmvfc_event *evt = (struct ibmvfc_event > *)be64_to_cpu(crq->ioba); > + unsigned long flags; > + > + switch (crq->valid) { > + case IBM

Re: [PATCH v2 14/17] ibmvfc: add cancel mad initialization helper

2020-12-02 Thread Brian King
Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-02 Thread Peter Zijlstra
On Wed, Dec 02, 2020 at 06:38:12AM -0800, Andy Lutomirski wrote: > > > On Dec 2, 2020, at 6:20 AM, Peter Zijlstra wrote: > > > > On Sun, Nov 29, 2020 at 02:01:39AM +1000, Nicholas Piggin wrote: > >> + * - A delayed freeing and RCU-like quiescing sequence based on > >> + * mm s

Re: [PATCH] drivers: char: tpm: remove unneeded MODULE_VERSION() usage

2020-12-02 Thread Jarkko Sakkinen
On Wed, Dec 02, 2020 at 01:15:53PM +0100, Enrico Weigelt, metux IT consult wrote: > Remove MODULE_VERSION(), as it isn't needed at all: the only version > making sense is the kernel version. Kernel version neither does make sense here. Why are mentioning it in the commit message? Please just deri

Re: [PATCH 00/13] ibmvfc: initial MQ development

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 4:03 AM, Hannes Reinecke wrote: > On 11/26/20 2:48 AM, Tyrel Datwyler wrote: >> Recent updates in pHyp Firmware and VIOS releases provide new infrastructure >> towards enabling Subordinate Command Response Queues (Sub-CRQs) such that >> each >> Sub-CRQ is a channel backed by an actual h

Re: [PATCH v2 01/17] ibmvfc: add vhost fields and defaults for MQ enablement

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 7:14 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> Introduce several new vhost fields for managing MQ state of the adapter >> as well as initial defaults for MQ enablement. >> >> Signed-off-by: Tyrel Datwyler >> --- >> drivers/scsi/ibmvscsi/ibmvfc.c | 9

Re: [PATCH kernel] powerpc/kuap: Restore AMR after replaying soft interrupts

2020-12-02 Thread kernel test robot
, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Alexey-Kardashevskiy/powerpc-kuap-Restore-AMR-after-replaying-soft-interrupts/20201202-094132 base: https://git.kernel.org/pub/scm/linux/kernel/g

Re: [PATCH v2 15/17] ibmvfc: send Cancel MAD down each hw scsi channel

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > In general the client needs to send Cancel MADs and task management > commands down the same channel as the command(s) intended to cancel or > abort. The client assigns cancel keys per LUN and thus must send a > Cancel down each channel commands were subm

Re: [PATCH v2 16/17] ibmvfc: enable MQ and set reasonable defaults

2020-12-02 Thread Brian King
Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center

Re: [PATCH v2 17/17] ibmvfc: provide modules parameters for MQ settings

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > +module_param_named(mig_channels_only, mig_channels_only, uint, S_IRUGO | > S_IWUSR); > +MODULE_PARM_DESC(mig_channels_only, "Prevent migration to non-channelized > system. " > + "[Default=" __stringify(IBMVFC_MIG_NO_SUB_TO_CRQ) "]"); > +mo

Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-12-02 Thread Kees Cook
On Wed, Dec 02, 2020 at 11:37:38AM +0900, Masahiro Yamada wrote: > On Wed, Dec 2, 2020 at 5:56 AM Kees Cook wrote: > > > > On Tue, Dec 01, 2020 at 10:31:37PM +0900, Masahiro Yamada wrote: > > > On Wed, Nov 25, 2020 at 7:22 AM Kees Cook wrote: > > > > > > > > On Thu, Nov 19, 2020 at 01:13:27PM -08

[powerpc:next-test 124/184] drivers/misc/lkdtm/powerpc.c:13:54: error: no member named 'sllp' in 'struct mmu_psize_def'

2020-12-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test head: fb003959777a635dea8910cf71109b612c7f940c commit: d1579010cfe439978f9830b5632f9795049c6717 [124/184] lkdtm/powerpc: Add SLB multihit test config: powerpc64-randconfig-r013-20201202 (attached as .config

Re: [PATCH v2 15/17] ibmvfc: send Cancel MAD down each hw scsi channel

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 10:27 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> In general the client needs to send Cancel MADs and task management >> commands down the same channel as the command(s) intended to cancel or >> abort. The client assigns cancel keys per LUN and thus must send a >

Re: [PATCH v2 17/17] ibmvfc: provide modules parameters for MQ settings

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 10:40 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> +module_param_named(mig_channels_only, mig_channels_only, uint, S_IRUGO | >> S_IWUSR); >> +MODULE_PARM_DESC(mig_channels_only, "Prevent migration to non-channelized >> system. " >> + "[Default=" __st

Re: [PATCH v2 04/17] ibmvfc: add alloc/dealloc routines for SCSI Sub-CRQ Channels

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 7:25 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> +static int ibmvfc_register_scsi_channel(struct ibmvfc_host *vhost, >> + int index) >> +{ >> +struct device *dev = vhost->dev; >> +struct vio_dev *vdev = to_vio_dev(dev); >> +

Re: [PATCH v2 06/17] ibmvfc: add handlers to drain and complete Sub-CRQ responses

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 7:46 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> The logic for iterating over the Sub-CRQ responses is similiar to that >> of the primary CRQ. Add the necessary handlers for processing those >> responses. >> >> Signed-off-by: Tyrel Datwyler >> --- >> drivers/sc

[powerpc:next-test 121/184] arch/powerpc/kernel/firmware.c:31:9-10: WARNING: return of 0/1 in function 'check_kvm_guest' with return type bool

2020-12-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test head: fb003959777a635dea8910cf71109b612c7f940c commit: 77354ecf8473208a5cc5f20a501760f7d6d631cd [121/184] powerpc: Rename is_kvm_guest() to check_kvm_guest() config: powerpc-randconfig-c003-20201202 (attached

[PATCH] powerpc: fix boolreturn.cocci warnings

2020-12-02 Thread kernel test robot
From: kernel test robot arch/powerpc/kernel/firmware.c:31:9-10: WARNING: return of 0/1 in function 'check_kvm_guest' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 77354ec

[PATCH v3 04/18] ibmvfc: add alloc/dealloc routines for SCSI Sub-CRQ Channels

2020-12-02 Thread Tyrel Datwyler
Allocate a set of Sub-CRQs in advance. During channel setup the client and VIOS negotiate the number of queues the VIOS supports and the number that the client desires to request. Its possible that the final channel resources allocated is less than requested, but the client is still responsible for

[PATCH v3 02/18] ibmvfc: define hcall wrapper for registering a Sub-CRQ

2020-12-02 Thread Tyrel Datwyler
Sub-CRQs are registred with firmware via a hypercall. Abstract that interface into a simpler helper function. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/scsi/ibmvscsi/ibmvfc

[PATCH v3 00/18] ibmvfc: initial MQ development

2020-12-02 Thread Tyrel Datwyler
Recent updates in pHyp Firmware and VIOS releases provide new infrastructure towards enabling Subordinate Command Response Queues (Sub-CRQs) such that each Sub-CRQ is a channel backed by an actual hardware queue in the FC stack on the partner VIOS. Sub-CRQs are registered with the firmware via hype

[PATCH v3 05/18] ibmvfc: add Sub-CRQ IRQ enable/disable routine

2020-12-02 Thread Tyrel Datwyler
Each Sub-CRQ has its own interrupt. A hypercall is required to toggle the IRQ state. Provide the necessary mechanism via a helper function. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 20 1 file changed, 20 insertions(+) diff

[PATCH v3 06/18] ibmvfc: add handlers to drain and complete Sub-CRQ responses

2020-12-02 Thread Tyrel Datwyler
The logic for iterating over the Sub-CRQ responses is similiar to that of the primary CRQ. Add the necessary handlers for processing those responses. Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvfc.c | 80 ++ 1 file changed, 80 insertions(+) diff -

[PATCH v3 03/18] ibmvfc: add Subordinate CRQ definitions

2020-12-02 Thread Tyrel Datwyler
Subordinate Command Response Queues (Sub CRQ) are used in conjunction with the primary CRQ when more than one queue is needed by the virtual IO adapter. Recent phyp firmware versions support Sub CRQ's with ibmvfc adapters. This feature is a prerequisite for supporting multiple hardware backed submi

[PATCH v3 01/18] ibmvfc: add vhost fields and defaults for MQ enablement

2020-12-02 Thread Tyrel Datwyler
Introduce several new vhost fields for managing MQ state of the adapter as well as initial defaults for MQ enablement. Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvfc.c | 9 - drivers/scsi/ibmvscsi/ibmvfc.h | 13 +++-- 2 files changed, 19 insertions(+), 3 deletion

[PATCH v3 07/18] ibmvfc: define Sub-CRQ interrupt handler routine

2020-12-02 Thread Tyrel Datwyler
Simple handler that calls Sub-CRQ drain routine directly. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index b61ae1df21e5..

[PATCH v3 08/18] ibmvfc: map/request irq and register Sub-CRQ interrupt handler

2020-12-02 Thread Tyrel Datwyler
Create an irq mapping for the hw_irq number provided from phyp firmware. Request an irq assigned our Sub-CRQ interrupt handler. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/dr

[PATCH v3 09/18] ibmvfc: implement channel enquiry and setup commands

2020-12-02 Thread Tyrel Datwyler
New NPIV_ENQUIRY_CHANNEL and NPIV_SETUP_CHANNEL management datagrams (MADs) were defined in a previous patchset. If the client advertises a desire to use channels and the partner VIOS is channel capable then the client must proceed with channel enquiry to determine the maximum number of channels th

[PATCH v3 10/18] ibmvfc: advertise client support for using hardware channels

2020-12-02 Thread Tyrel Datwyler
Previous patches have plumbed the necessary Sub-CRQ interface and channel negotiation MADs to fully channelized hardware queues. Advertise client support via NPIV Login capability IBMVFC_CAN_USE_CHANNELS when the client bits have MQ enabled via vhost->mq_enabled, or when channels were already in u

[PATCH v3 11/18] ibmvfc: set and track hw queue in ibmvfc_event struct

2020-12-02 Thread Tyrel Datwyler
Extract the hwq id from a SCSI command and store it in the ibmvfc_event structure to identify which Sub-CRQ to send the command down when channels are being utilized. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 5 + drivers/scsi/ibmvscsi/ibmvfc

[PATCH v3 13/18] ibmvfc: register Sub-CRQ handles with VIOS during channel setup

2020-12-02 Thread Tyrel Datwyler
If the ibmvfc client adapter requests channels it must submit a number of Sub-CRQ handles matching the number of channels being requested. The VIOS in its response will overwrite the actual number of channel resources allocated which may be less than what was requested. The client then must store t

[PATCH v3 14/18] ibmvfc: add cancel mad initialization helper

2020-12-02 Thread Tyrel Datwyler
Add a helper routine for initializing a Cancel MAD. This will be useful for a channelized client that needs to send a Cancel commands down every channel commands were sent for a particular LUN. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.c | 67 +++

[PATCH v3 12/18] ibmvfc: send commands down HW Sub-CRQ when channelized

2020-12-02 Thread Tyrel Datwyler
When the client has negotiated the use of channels all vfcFrames are required to go down a Sub-CRQ channel or it is a protocoal violation. If the adapter state is channelized submit vfcFrames to the appropriate Sub-CRQ via the h_send_sub_crq() helper. Signed-off-by: Tyrel Datwyler Reviewed-by: Br

[PATCH v3 15/18] ibmvfc: send Cancel MAD down each hw scsi channel

2020-12-02 Thread Tyrel Datwyler
In general the client needs to send Cancel MADs and task management commands down the same channel as the command(s) intended to cancel or abort. The client assigns cancel keys per LUN and thus must send a Cancel down each channel commands were submitted for that LUN. Further, the client then must

[PATCH v3 17/18] ibmvfc: provide modules parameters for MQ settings

2020-12-02 Thread Tyrel Datwyler
Add the various module parameter toggles for adjusting the MQ characteristics at boot/load time as well as a device attribute for changing the client scsi channel request amount. Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvfc.c | 76 +- 1 file chan

[PATCH v3 16/18] ibmvfc: enable MQ and set reasonable defaults

2020-12-02 Thread Tyrel Datwyler
Turn on MQ by default and set sane values for the upper limit on hw queues for the scsi host, and number of hw scsi channels to request from the partner VIOS. Signed-off-by: Tyrel Datwyler Reviewed-by: Brian King --- drivers/scsi/ibmvscsi/ibmvfc.h | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH v3 18/18] ibmvfc: drop host lock when completing commands in CRQ

2020-12-02 Thread Tyrel Datwyler
The legacy CRQ holds the host lock the even while completing commands. This presents a problem when in legacy single queue mode and nr_hw_queues is greater than one since calling scsi_done() introduces the potential for deadlock. If nr_hw_queues is greater than one drop the hostlock in the legacy

[powerpc:fixes-test] BUILD SUCCESS a1ee28117077c3bf24e5ab6324c835eaab629c45

2020-12-02 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201202 x86_64 randconfig-a006-20201202 x86_64 randconfig-a001-20201202 x86_64 randconfig-a002-20201202

[powerpc:next-test] BUILD REGRESSION fb003959777a635dea8910cf71109b612c7f940c

2020-12-02 Thread kernel test robot
ared identifier 'mmu_vmalloc_psize' Error/Warning ids grouped by kconfigs: gcc_recent_errors `-- powerpc-randconfig-c003-20201202 `-- arch-powerpc-kernel-firmware.c:WARNING:return-of-in-function-check_kvm_guest-with-return-type-bool clang_recent_errors `-- powerpc64-randconfig-r013-

[powerpc:merge] BUILD SUCCESS a1aeabd25a36d9e019381278e543e2d538dd44a7

2020-12-02 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201

Re: [PATCH 2/2] ASoC: fsl: Add imx-hdmi machine driver

2020-12-02 Thread Shengjiu Wang
On Thu, Dec 3, 2020 at 4:23 AM Nicolin Chen wrote: > > On Fri, Nov 27, 2020 at 01:30:21PM +0800, Shengjiu Wang wrote: > > The driver is initially designed for sound card using HDMI > > interface on i.MX platform. There is internal HDMI IP or > > external HDMI modules connect with SAI or AUD2HTX in

[PATCH] powerpc: add security.config, enforcing lockdown=integrity

2020-12-02 Thread Daniel Axtens
It's sometimes handy to have a config that boots a bit like a system under secure boot (forcing lockdown=integrity, without needing any extra stuff like a command line option). This config file allows that, and also turns on a few assorted security and hardening options for good measure. Suggeste

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-02 Thread Andy Lutomirski
> On Dec 1, 2020, at 7:47 PM, Nicholas Piggin wrote: > > Excerpts from Andy Lutomirski's message of December 1, 2020 4:31 am: >> other arch folk: there's some background here: >> >> https://lkml.kernel.org/r/calcetrvxube8lfnn-qs+dzroqaiw+sfug1j047ybyv31sat...@mail.gmail.com >> >>> On Sun, Nov 29,

[PATCH] powerpc/book3s_hv_uvmem: Check for failed page migration

2020-12-02 Thread Alistair Popple
migrate_vma_pages() may still clear MIGRATE_PFN_MIGRATE on pages which are not able to be migrated. Drivers may safely copy data prior to calling migrate_vma_pages() however a remote mapping must not be established until after migrate_vma_pages() has returned as the migration could still fail. UV_

Re: [PATCH 2/8] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-12-02 Thread Andy Lutomirski
On Tue, Dec 1, 2020 at 6:50 PM Nicholas Piggin wrote: > > Excerpts from Andy Lutomirski's message of November 29, 2020 3:55 am: > > On Sat, Nov 28, 2020 at 8:02 AM Nicholas Piggin wrote: > >> > >> And get rid of the generic sync_core_before_usermode facility. This is > >> functionally a no-op in

[MOCKUP] x86/mm: Lightweight lazy mm refcounting

2020-12-02 Thread Andy Lutomirski
For context, this is part of a series here: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?h=x86/mm&id=7c4bcc0a464ca60be1e0aeba805a192be0ee81e5 This code compiles, but I haven't even tried to boot it. The earlier part of the series isn't terribly interesting -- it's a han

Re: [PATCH kernel] powerpc/perf: Stop crashing with generic_compat_pmu

2020-12-02 Thread Madhavan Srinivasan
On 12/2/20 8:31 AM, Alexey Kardashevskiy wrote: Hi Maddy, I just noticed that I still have "powerpc/perf: Add checks for reserved values" in my pile (pushed here https://github.com/aik/linux/commit/61e1bc3f2e19d450e2e2d39174d422160b21957b ), do we still need it? The lockups I saw were fixed

[PATCH kernel v2] powerpc/kuap: Restore AMR after replaying soft interrupts

2020-12-02 Thread Alexey Kardashevskiy
When interrupted in raw_copy_from_user()/... after user memory access is enabled, a nested handler may also access user memory (perf is one example) and when it does so, it calls prevent_read_from_user() which prevents the upper handler from accessing user memory. This saves/restores AMR when repl

Re: [powerpc:next-test 121/184] arch/powerpc/kernel/firmware.c:31:9-10: WARNING: return of 0/1 in function 'check_kvm_guest' with return type bool

2020-12-02 Thread Srikar Dronamraju
guest. > config: powerpc-randconfig-c003-20201202 (attached as .config) > compiler: powerpc64le-linux-gcc (GCC) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > > "coccinelle warnings: (new ones prefix

Re: powerpc 5.10-rcN boot failures with RCU_SCALE_TEST=m

2020-12-02 Thread Michael Ellerman
Uladzislau Rezki writes: > On Thu, Dec 03, 2020 at 01:03:32AM +1100, Michael Ellerman wrote: ... >> >> The SMP bringup stalls because _cpu_up() is blocked trying to take >> cpu_hotplug_lock for writing: >> >> [ 401.403132][T0] task:swapper/0 state:D stack:12512 pid:1 >> ppid:

Re: [PATCH kernel v2] powerpc/kuap: Restore AMR after replaying soft interrupts

2020-12-02 Thread Aneesh Kumar K.V
Alexey Kardashevskiy writes: > When interrupted in raw_copy_from_user()/... after user memory access > is enabled, a nested handler may also access user memory (perf is > one example) and when it does so, it calls prevent_read_from_user() > which prevents the upper handler from accessing user mem

Re: [MOCKUP] x86/mm: Lightweight lazy mm refcounting

2020-12-02 Thread kernel test robot
Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on tip/x86/mm soc/for-next linus/master v5.10-rc6 next-20201201] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to u

Re: [PATCH kernel v2] powerpc/kuap: Restore AMR after replaying soft interrupts

2020-12-02 Thread kernel test robot
Hi Alexey, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.10-rc6 next-20201201] [cannot apply to powerpc/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we sug