Re: [PATCH v4] pidns: introduce syscall translate_pid

2017-10-13 Thread Konstantin Khlebnikov
On 13.10.2017 19:05, Oleg Nesterov wrote: On 10/13, Konstantin Khlebnikov wrote: pid_t translate_pid(pid_t pid, int source, int target); This syscall converts pid from source pid-ns into pid in target pid-ns. If pid is unreachable from target pid-ns it returns zero. Pid-namespaces are refer

[PATCH tip/sched/membarrier 3/5] membarrier: Document scheduler barrier requirements

2017-10-13 Thread Paul E. McKenney
From: Mathieu Desnoyers Document the membarrier requirement on having a full memory barrier in __schedule() after coming from user-space, before storing to rq->curr. It is provided by smp_mb__after_spinlock() in __schedule(). Document that membarrier requires a full barrier on transition from ke

[PATCH tip/sched/membarrier 1/5] membarrier: Provide register expedited private command

2017-10-13 Thread Paul E. McKenney
From: Mathieu Desnoyers Provide a new command allowing processes to register their intent to use the private expedited command. This allows PowerPC to skip the full memory barrier in switch_mm(), and only issue the barrier when scheduling into a task belonging to a process that has registered to

[PATCH tip/sched/membarrier 5/5] Fix: membarrier: Handle CLONE_VM + !CLONE_THREAD correctly on powerpc

2017-10-13 Thread Paul E. McKenney
From: Mathieu Desnoyers Threads targeting the same VM but which belong to different thread groups is a tricky case. It has a few consequences: It turns out that we cannot rely on get_nr_threads(p) to count the number of threads using a VM. We can use (atomic_read(&mm->mm_users) == 1 && get_nr_th

[PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread Niklas Cassel
Since it is a PCIe endpoint device, rather than the CPU, that is supposed to write to this location, the proper way to get the address to this this location is really to use the DMA API, rather than virt_to_phys. Using virt_to_phys might work on some systems, but by using the DMA API, we know that

Re: [RESEND PATCH v7 1/1] platform: Add driver for RAVE Supervisory Processor

2017-10-13 Thread Lee Jones
On Fri, 13 Oct 2017, Andrey Smirnov wrote: > On Fri, Oct 13, 2017 at 12:27 AM, Johan Hovold wrote: > > On Thu, Oct 12, 2017 at 11:13:21PM -0700, Andrey Smirnov wrote: > >> Add a driver for RAVE Supervisory Processor, an MCU implementing > >> varoius bits of housekeeping functionality (watchdoging

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Ming Lei
On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: > On 10/12/2017 06:19 PM, Ming Lei wrote: > > On Thu, Oct 12, 2017 at 12:46:24PM -0600, Jens Axboe wrote: > >> On 10/12/2017 12:37 PM, Ming Lei wrote: > >>> For SCSI devices, there is often per-request-queue depth, which need > >>> to be r

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-13 Thread Will Deacon
On Fri, Oct 13, 2017 at 12:00:27PM -0400, Pavel Tatashin wrote: > BTW, don't we need the same aligments inside for_each_memblock() loop? Hmm, yes actually, given that we shift them right for the shadow address. > How about change kasan_map_populate() to accept regular VA start, end > address, and

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/13/2017 10:07 AM, Ming Lei wrote: > On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: >> On 10/12/2017 06:19 PM, Ming Lei wrote: >>> On Thu, Oct 12, 2017 at 12:46:24PM -0600, Jens Axboe wrote: On 10/12/2017 12:37 PM, Ming Lei wrote: > For SCSI devices, there is often per-re

Re: [lkp-robot] [x86/kconfig] 81d3871900: BUG:unable_to_handle_kernel

2017-10-13 Thread Josh Poimboeuf
On Fri, Oct 13, 2017 at 04:56:43PM +0300, Andrey Ryabinin wrote: > On 10/13/2017 07:45 AM, Josh Poimboeuf wrote: > > On Thu, Oct 12, 2017 at 12:05:04PM -0500, Christopher Lameter wrote: > >> On Wed, 11 Oct 2017, Josh Poimboeuf wrote: > >> > >>> I failed to add the slab maintainers to CC on the last

Re: [PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-10-13 Thread Khalid Aziz
On 10/13/2017 08:14 AM, Khalid Aziz wrote: On 10/12/2017 02:27 PM, Anthony Yznaga wrote: On Oct 12, 2017, at 7:44 AM, Khalid Aziz wrote: On 10/06/2017 04:12 PM, Anthony Yznaga wrote: On Sep 25, 2017, at 9:49 AM, Khalid Aziz wrote: This patch extends mprotect to enable ADI (TSTATE.mcde),

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/13/2017 10:17 AM, Ming Lei wrote: > On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: >> On 10/12/2017 06:19 PM, Ming Lei wrote: >>> On Thu, Oct 12, 2017 at 12:46:24PM -0600, Jens Axboe wrote: On 10/12/2017 12:37 PM, Ming Lei wrote: > For SCSI devices, there is often per-re

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Ming Lei
On Fri, Oct 13, 2017 at 10:19:04AM -0600, Jens Axboe wrote: > On 10/13/2017 10:07 AM, Ming Lei wrote: > > On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: > >> On 10/12/2017 06:19 PM, Ming Lei wrote: > >>> On Thu, Oct 12, 2017 at 12:46:24PM -0600, Jens Axboe wrote: > On 10/12/2017 1

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Ming Lei
On Fri, Oct 13, 2017 at 10:20:01AM -0600, Jens Axboe wrote: > On 10/13/2017 10:17 AM, Ming Lei wrote: > > On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: > >> On 10/12/2017 06:19 PM, Ming Lei wrote: > >>> On Thu, Oct 12, 2017 at 12:46:24PM -0600, Jens Axboe wrote: > On 10/12/2017 1

Re: [PATCH] xfs: move two more RT specific functions into CONFIG_XFS_RT

2017-10-13 Thread Darrick J. Wong
On Fri, Oct 13, 2017 at 02:05:40PM +0200, Arnd Bergmann wrote: > The last cleanup introduced two harmless warnings: > > fs/xfs/xfs_fsmap.c:480:1: warning: '__xfs_getfsmap_rtdev' defined but not used > fs/xfs/xfs_fsmap.c:372:1: warning: 'xfs_getfsmap_rtdev_rtbitmap_helper' > defined but not used >

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/13/2017 10:21 AM, Ming Lei wrote: > On Fri, Oct 13, 2017 at 10:19:04AM -0600, Jens Axboe wrote: >> On 10/13/2017 10:07 AM, Ming Lei wrote: >>> On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: On 10/12/2017 06:19 PM, Ming Lei wrote: > On Thu, Oct 12, 2017 at 12:46:24PM -060

[PATCH][net-next] cxgb4: fix missing break in switch and indent return statements

2017-10-13 Thread Colin King
From: Colin Ian King The break statement for the Macronix case is missing and will fall through to the Winbond case and re-assign the size setting. Fix this by adding the missing break statement. Also correctly indent the return statements. Detected by CoverityScan, CID#1458020 ("Missing break

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/13/2017 10:22 AM, Ming Lei wrote: > On Fri, Oct 13, 2017 at 10:20:01AM -0600, Jens Axboe wrote: >> On 10/13/2017 10:17 AM, Ming Lei wrote: >>> On Fri, Oct 13, 2017 at 08:44:23AM -0600, Jens Axboe wrote: On 10/12/2017 06:19 PM, Ming Lei wrote: > On Thu, Oct 12, 2017 at 12:46:24PM -060

Re: [PATCH RESEND] regulator: rn5t618: add RC5T619 PMIC support

2017-10-13 Thread Leonard Crestez
On Sun, 2017-08-27 at 15:58 +0200, Pierre-Hugues Husson wrote: > Extend the driver to support Ricoh RC5T619. > Support the additional regulators and slightly different voltage ranges. > > @@ -101,10 +131,7 @@ static int rn5t618_regulator_probe(struct > platform_device *pdev) >   config.dev =

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Bart Van Assche
On Sat, 2017-10-14 at 00:07 +0800, Ming Lei wrote: > Actually it is in hot path, for example, lpfc and qla2xx's queue depth is 3, Sorry but I doubt whether that is correct. More in general, I don't know any modern storage HBA for which the default queue depth is so low. Bart.

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/13/2017 10:31 AM, Bart Van Assche wrote: > On Sat, 2017-10-14 at 00:07 +0800, Ming Lei wrote: >> Actually it is in hot path, for example, lpfc and qla2xx's queue depth is 3, > > Sorry but I doubt whether that is correct. More in general, I don't know any > modern > storage HBA for which the

Re: [RESEND PATCH v7 1/1] platform: Add driver for RAVE Supervisory Processor

2017-10-13 Thread Andrey Smirnov
On Fri, Oct 13, 2017 at 9:17 AM, Lee Jones wrote: > On Fri, 13 Oct 2017, Andrey Smirnov wrote: > >> On Fri, Oct 13, 2017 at 12:27 AM, Johan Hovold wrote: >> > On Thu, Oct 12, 2017 at 11:13:21PM -0700, Andrey Smirnov wrote: >> >> Add a driver for RAVE Supervisory Processor, an MCU implementing >>

Re: [PATCH v9 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-10-13 Thread Andi Kleen
> > I was looking at that as well and decided that we preferrably have a > > compressed data structure. The code which walks the table is hardly > > performance critical and the difference in text size is marginal. > > So the code should all be __init (once that is fixed), hence data and text > s

[PATCH] regulator: rn5t618: Do not index regulator_desc arrays by id

2017-10-13 Thread Leonard Crestez
The regulator_desc arrays in this driver are indexed by RN5T618_* constants and some elements can be missing. This causes probe failures on older models: rn5t618-regulator rn5t618-regulator: failed to register (null) regulator rn5t618-regulator: probe of rn5t618-regulator failed with error -22 Fi

Re: [PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-13 Thread Darren Hart
On Fri, Oct 13, 2017 at 11:43:14AM +0200, Greg KH wrote: Hi Greg, first off - thanks for the response and the time you spent on it. My reply is longer than I'd like, but I'm not having much luck trimming it down without omitting things I think need to be noted. And as I try, the thread keeps getti

Re: [PATCH] objtool: Print top level commands on incorrect usage

2017-10-13 Thread Josh Poimboeuf
On Fri, Oct 13, 2017 at 01:51:12PM +0530, Kamalesh Babulal wrote: > Maintain the consistency with objtool subcommands, by > printing cmd_usage() of top level commands, along with > the error. When incorrect option/command is passed to > objtool. Also change the exit code to 129, like other > objtoo

Re: [PATCH net-next v2 1/2] dt-bindings: net: add DT bindings for Socionext UniPhier AVE

2017-10-13 Thread Masahiro Yamada
2017-10-13 9:35 GMT+09:00 Kunihiko Hayashi : > DT bindings for the AVE ethernet controller found on Socionext's > UniPhier platforms. > > Signed-off-by: Kunihiko Hayashi > Signed-off-by: Jassi Brar > --- > .../bindings/net/socionext,uniphier-ave4.txt | 53 > ++ > 1 fil

Re: [RESEND PATCH 1/2] spi: rockchip: Convert to late and early system PM callbacks

2017-10-13 Thread Mark Brown
On Fri, Oct 13, 2017 at 08:51:21AM -0700, Brian Norris wrote: > Yes, this does seem odd to me too. This looks like an arms race hack > that should be avoided unless we know a legit root cause. Also, > "probe order implies suspend order" doesn't quite work for async suspend > anyway, so we'd probab

RE: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread David Laight
From: Behalf Of Niklas Cassel > Sent: 13 October 2017 17:09 > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_to_p

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread Jingoo Han
On Friday, October 13, 2017 12:09 PM, Niklas Cassel wrote: > > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_to

RE: [PATCH net-next v2 2/4] net: dsa: mv88e6060: setup random mac address

2017-10-13 Thread Vivien Didelot
Hi David, Woojung, woojung@microchip.com writes: >> From: Vivien Didelot >> > Sent: 13 October 2017 02:41 >> > As for mv88e6xxx, setup the switch from within the mv88e6060 driver with >> > a random MAC address, and remove the .set_addr implementation. >> > >> > Signed-off-by: Vivien Didelot

Re: [Part2 PATCH v5 13/31] KVM: X86: Add CONFIG_KVM_AMD_SEV

2017-10-13 Thread Borislav Petkov
On Wed, Oct 04, 2017 at 08:13:54AM -0500, Brijesh Singh wrote: > The config option can be used to enable SEV support on AMD Processors. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Joerg Roedel > Cc: Borislav Petkov > Cc: To

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Ming Lei
On Fri, Oct 13, 2017 at 04:31:04PM +, Bart Van Assche wrote: > On Sat, 2017-10-14 at 00:07 +0800, Ming Lei wrote: > > Actually it is in hot path, for example, lpfc and qla2xx's queue depth is 3, > > Sorry but I doubt whether that is correct. More in general, I don't know any > modern > storag

Re: [Part2 PATCH v5 14/31] KVM: SVM: Add sev module_param

2017-10-13 Thread Borislav Petkov
On Wed, Oct 04, 2017 at 08:13:55AM -0500, Brijesh Singh wrote: > The module parameter can be used to control the SEV feature support. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Joerg Roedel > Cc: Borislav Petkov > Cc: Tom

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread Jingoo Han
On Friday, October 13, 2017 12:09 PM, Niklas Cassel wrote: > > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_to

RE: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-13 Thread Vivien Didelot
Hi David, David Laight writes: > From: Vivien Didelot >> Sent: 13 October 2017 16:29 >> Vivien Didelot writes: >> >> >>> How about using: >> >>> >> >>> union { >> >>> struct net_device *master; >> >>> struct net_device *slave; >> >>> } netdev; >> >> ... >> >> >> >> You can

Re: [PATCH 1/3] Documentation/devicetree: Add pcie-reset-suspend property

2017-10-13 Thread Bjorn Helgaas
[+cc Doug] On Thu, Oct 12, 2017 at 01:52:18PM -0700, Brian Norris wrote: > The patch is self-descriptive. I've found that we may need > platform-specific behavior for the PERST# signal in system suspend, > depending on the type of PCIe endpoints are attached. > > Signed-off-by: Brian Norris > --

Re: [Patch 1/6] ARM: dts: DRA72: Add CAL dtsi node

2017-10-13 Thread Tony Lindgren
* Benoit Parrot [171012 12:29]: > This patch adds the required dtsi node to support the Camera > Adaptation Layer (CAL) for the DRA72 family of devices. > > - Added CAL entry in dra72x.dtsi. > > Signed-off-by: Benoit Parrot > --- > arch/arm/boot/dts/dra72x.dtsi | 31 +++

Re: [Patch 1/6] ARM: dts: DRA72: Add CAL dtsi node

2017-10-13 Thread Benoit Parrot
Tony Lindgren wrote on Fri [2017-Oct-13 09:54:09 -0700]: > * Benoit Parrot [171012 12:29]: > > This patch adds the required dtsi node to support the Camera > > Adaptation Layer (CAL) for the DRA72 family of devices. > > > > - Added CAL entry in dra72x.dtsi. > > > > Signed-off-by: Benoit Parrot

Re: [Patch 2/6] ARM: DRA7: hwmod: Add CAL nodes

2017-10-13 Thread Tony Lindgren
* Benoit Parrot [171012 12:28]: > This patch adds the required hwmod nodes to support the Camera > Adaptation Layer (CAL) for the DRA72 family of devices. ... > +static struct omap_hwmod_class_sysconfig dra7xx_cal_sysc = { > + .sysc_offs = 0x0010, Also has .rev_offs at 0 so please add t

Re: [Part2 PATCH v5 15/31] KVM: SVM: Reserve ASID range for SEV guest

2017-10-13 Thread Borislav Petkov
On Wed, Oct 04, 2017 at 08:13:56AM -0500, Brijesh Singh wrote: > A SEV-enabled guest must use ASIDs from the defined subset, while non-SEV > guests can use the remaining ASID range. The range of allowed SEV guest > ASIDs is [1 - CPUID_8000_001F[ECX][31:0]]. > > Cc: Thomas Gleixner > Cc: Ingo Moln

Re: [PATCH RFC 00/10] Intel EPT-Based Sub-page Write Protection Support.

2017-10-13 Thread Jim Mattson
I'll ask before Paolo does: Can you please add kvm-unit-tests to exercise all of this new code? BTW, what generation of hardware do we need to exercise this code ourselves? On Fri, Oct 13, 2017 at 4:11 PM, Zhang Yi wrote: > From: Zhang Yi Z > > Hi All, > > Here is a patch-series which adding EP

Re: [PATCH 4.13 0/2] 4.13.7-stable review

2017-10-13 Thread John Stultz
On Fri, Oct 13, 2017 at 7:05 AM, Shuah Khan wrote: > On 10/12/2017 06:09 PM, John Stultz wrote: >> On Thu, Oct 12, 2017 at 4:45 PM, Shuah Khan wrote: >>> On 10/12/2017 03:26 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.13.7 release. There are 2 pa

Re: [Patch 3/6] ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only

2017-10-13 Thread Tony Lindgren
* Benoit Parrot [171012 12:29]: > HWSUP on this domain is only working when VIP1 probes. > If only VIP2 on DRA74x or CAL on DRA72x probes the domain does > not get enabled. This might indicates an issue in the HW Auto > state-machine for this domain. > > Work around is to set the CAM domain to use

Re: [RFC PATCH] vfs: shutdown lease notifications on file close

2017-10-13 Thread Al Viro
On Fri, Oct 13, 2017 at 08:56:10AM -0700, Dan Williams wrote: > While implementing MAP_DIRECT, an mmap flag that arranges for an > FL_LAYOUT lease to be established, Al noted: > > You are not even guaranteed that descriptor will remain be still > open by the time you pass it down to your h

Re: [PATCH 4/4] vfio/type1: Gather TLB-syncs and pages to unpin

2017-10-13 Thread Alex Williamson
On Fri, 13 Oct 2017 16:40:13 +0200 Joerg Roedel wrote: > From: Joerg Roedel > > After every unmap VFIO unpins the pages that where mapped by > the IOMMU. This requires an IOTLB flush after every unmap > and puts a high load on the IOMMU hardware and the device > TLBs. > > Gather up to 32 range

Re: [Patch 5/6] ARM: DRA7: hwmod: Add VPE nodes

2017-10-13 Thread Tony Lindgren
* Benoit Parrot [171012 12:28]: > +static struct omap_hwmod_class_sysconfig dra7xx_vpe_sysc = { > + .sysc_offs = 0x0010, > + .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE), > + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | > +MSTAND

[PATCH] kernel/softirq: use BUG_ON conditional instead of BUG in softirq.

2017-10-13 Thread Tim Hansen
Fix BUG() usage to BUG_ON(conditional) usage in softirq. Found with make coccicheck M=kernel/ on linux-next tag next-20171012. Signed-off-by: Tim Hansen --- kernel/softirq.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Bart Van Assche
On Sat, 2017-10-14 at 00:45 +0800, Ming Lei wrote: > On Fri, Oct 13, 2017 at 04:31:04PM +, Bart Van Assche wrote: > > On Sat, 2017-10-14 at 00:07 +0800, Ming Lei wrote: > > > Actually it is in hot path, for example, lpfc and qla2xx's queue depth is > > > 3, > > > > Sorry but I doubt whether t

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2017-10-13 Thread Tony Lindgren
* Tomi Valkeinen [171012 01:46]: > On 29/09/17 16:26, Sebastian Reichel wrote: > > Hi Tomi & Laurent, > > > > ping? > > I've been having quick glances at this every now and then, but I'm not > sure what to do with the series. > > We have one work item that more or less overrides everything but

[GIT PULL] irqchip updates for 4.14-rc5

2017-10-13 Thread Marc Zyngier
Hi Thomas, This is a pull request for a handfull of irqchip fixes. The only notable updates are a couple of fallouts from the GICv4 merge as well as the generic irqchip mask-ack that has been on the list for a while now, which only affects the tango irqchip. Please pull. M. The followin

[PATCH 2/2] sound: oss: make audio_driver structure const

2017-10-13 Thread Bhumika Goyal
This is a followup patch for [PATCH 1/2]. Make these structures const as they are only passed to the const argument of the function sound_install_audiodrv. Signed-off-by: Bhumika Goyal --- sound/oss/pas2_pcm.c | 2 +- sound/oss/waveartist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletion

[PATCH 1/2] sound: oss: make the function argument as const

2017-10-13 Thread Bhumika Goyal
Make the function argument struct audio_driver *driver of the function sound_install_audiodrv as const as it's memory contents are only copied during a memcpy call. So, the fields of the structure to which driver points to never gets modified and therefore the argument can be made const. Add const

[PATCH 0/2] sound: oss: make the function argument and structure const

2017-10-13 Thread Bhumika Goyal
Make the function argument of function sound_install_audiodrv const. After this change, make the structures audio_driver const as they are only passed to the const argument (made const in Patch[1/2]) of the function sound_install_audiodrv . Bhumika Goyal (2): sound: oss: make the function argu

Re: [PATCH] [net] liquidio: fix timespec64_to_ns typo

2017-10-13 Thread David Miller
From: Arnd Bergmann Date: Thu, 12 Oct 2017 11:48:31 +0200 > While experimenting with changes to the timekeeping code, I > ran into a build error in the liquidio driver: > > drivers/net/ethernet/cavium/liquidio/lio_main.c: In function > 'liquidio_ptp_settime': > drivers/net/ethernet/cavium/liqui

Re: [RFC PATCH for 4.15 09/14] Provide cpu_opv system call

2017-10-13 Thread Andy Lutomirski
On Thu, Oct 12, 2017 at 4:03 PM, Mathieu Desnoyers wrote: > This new cpu_opv system call executes a vector of operations on behalf > of user-space on a specific CPU with preemption disabled. It is inspired > from readv() and writev() system calls which take a "struct iovec" array > as argument. >

Re: [PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-10-13 Thread Anthony Yznaga
> On Oct 13, 2017, at 9:18 AM, Khalid Aziz wrote: > > On 10/13/2017 08:14 AM, Khalid Aziz wrote: >> On 10/12/2017 02:27 PM, Anthony Yznaga wrote: >>> On Oct 12, 2017, at 7:44 AM, Khalid Aziz wrote: On 10/06/2017 04:12 PM, Anthony Yznaga wrote: >> On Sep 25, 2017, at 9

Applied "regmap: avoid -Wint-in-bool-context warning" to the regmap tree

2017-10-13 Thread Mark Brown
The patch regmap: avoid -Wint-in-bool-context warning has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: BUG: Sporadic crashes with current Linus tree

2017-10-13 Thread Andy Lutomirski
On Fri, Oct 13, 2017 at 8:54 AM, Dmitry Safonov <0x7f454...@gmail.com> wrote: > Hi Tglx, Andy, > > Sorry for old-posting, > > 2017-09-15 8:09 GMT+01:00 Thomas Gleixner : >> On Thu, 14 Sep 2017, Andy Lutomirski wrote: >>> On Thu, Sep 14, 2017 at 9:00 AM, Thomas Gleixner wrote: >>> > On Thu, 14 Sep

[PATCH V8 0/7] blk-mq-sched: improve sequential I/O performance

2017-10-13 Thread Ming Lei
Hi Jens, In Red Hat internal storage test wrt. blk-mq scheduler, we found that I/O performance is much bad with mq-deadline, especially about sequential I/O on some multi-queue SCSI devcies(lpfc, qla2xxx, SRP...) Turns out one big issue causes the performance regression: requests are still dequeu

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-13 Thread Andy Lutomirski
On Fri, Oct 13, 2017 at 7:27 AM, Mathieu Desnoyers wrote: > - On Oct 13, 2017, at 9:56 AM, Florian Weimer fwei...@redhat.com wrote: > >> On 10/13/2017 03:40 PM, Mathieu Desnoyers wrote: >>> The proposed ABI does not require to store any function pointer. For a given >>> rseq_finish() critical

[PATCH V8 2/7] blk-mq-sched: move actual dispatching into one helper

2017-10-13 Thread Ming Lei
So that it becomes easy to support to dispatch from sw queue in the following patch. No functional change. Reviewed-by: Bart Van Assche Reviewed-by: Omar Sandoval Suggested-by: Christoph Hellwig # for simplifying dispatch logic Signed-off-by: Ming Lei --- block/blk-mq-sched.c | 43 ++

[PATCH V8 1/7] blk-mq-sched: fix scheduler bad performance

2017-10-13 Thread Ming Lei
When hw queue is busy, we shouldn't take requests from scheduler queue any more, otherwise it is difficult to do IO merge. This patch fixes the awful IO performance on some SCSI devices(lpfc, qla2xxx, ...) when mq-deadline/kyber is used by not taking requests if hw queue is busy. Reviewed-by: Oma

[PATCH V8 3/7] sbitmap: introduce __sbitmap_for_each_set()

2017-10-13 Thread Ming Lei
We need to iterate ctx starting from any ctx in round robin way, so introduce this helper. Reviewed-by: Omar Sandoval Cc: Omar Sandoval Signed-off-by: Ming Lei --- include/linux/sbitmap.h | 64 - 1 file changed, 47 insertions(+), 17 deletions(-)

[PATCH V8 4/7] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Ming Lei
For SCSI devices, there is often per-request-queue depth, which need to be respected before queuing one request. The current blk-mq always dequeues request first, then calls .queue_rq() to dispatch the request to lld. One obvious issue of this way is that I/O merge may not be good, because when th

[PATCH V8 5/7] blk-mq-sched: improve dispatching from sw queue

2017-10-13 Thread Ming Lei
SCSI devices use host-wide tagset, and the shared driver tag space is often quite big. Meantime there is also queue depth for each lun( .cmd_per_lun), which is often small, for example, on both lpfc and qla2xxx, .cmd_per_lun is just 3. So lots of requests may stay in sw queue, and we always flush

[PATCH V8 6/7] SCSI: allow to pass null rq to scsi_prep_state_check()

2017-10-13 Thread Ming Lei
In the following patch, we will implement scsi_get_budget() which need to call scsi_prep_state_check() when rq isn't dequeued yet. Signed-off-by: Ming Lei --- drivers/scsi/scsi_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/sc

[PATCH V8 7/7] SCSI: implement .get_budget and .put_budget for blk-mq

2017-10-13 Thread Ming Lei
We need to tell blk-mq for reserving resource before queuing one request, so implement these two callbacks. Then blk-mq can avoid to dequeue request earlier, and IO merge can be improved a lot. Signed-off-by: Ming Lei --- drivers/scsi/scsi_lib.c | 75 ++---

Re: [PATCH] bus: ti-sysc: mark PM functions as __maybe_unused

2017-10-13 Thread Tony Lindgren
* Arnd Bergmann [171013 02:27]: > The new bus driver causes a harmless compile-time warning when > CONFIG_PM is disabled: > > drivers/bus/ti-sysc.c:440:12: error: 'sysc_runtime_resume' defined but not > used [-Werror=unused-function] > static int sysc_runtime_resume(struct device *dev) >

Re: [PATCH v6 1/4] cramfs: direct memory access support

2017-10-13 Thread Al Viro
On Thu, Oct 12, 2017 at 02:16:10AM -0400, Nicolas Pitre wrote: > static void cramfs_kill_sb(struct super_block *sb) > { > struct cramfs_sb_info *sbi = CRAMFS_SB(sb); > > - kill_block_super(sb); > + if (IS_ENABLED(CCONFIG_CRAMFS_MTD)) { > + if (sbi->mtd_point_size) > +

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Ming Lei
On Fri, Oct 13, 2017 at 05:08:52PM +, Bart Van Assche wrote: > On Sat, 2017-10-14 at 00:45 +0800, Ming Lei wrote: > > On Fri, Oct 13, 2017 at 04:31:04PM +, Bart Van Assche wrote: > > > On Sat, 2017-10-14 at 00:07 +0800, Ming Lei wrote: > > > > Actually it is in hot path, for example, lpfc a

Re: [PATCH V8 1/7] blk-mq-sched: fix scheduler bad performance

2017-10-13 Thread Jens Axboe
On 10/13/2017 11:24 AM, Ming Lei wrote: > When hw queue is busy, we shouldn't take requests from > scheduler queue any more, otherwise it is difficult to do > IO merge. > > This patch fixes the awful IO performance on some > SCSI devices(lpfc, qla2xxx, ...) when mq-deadline/kyber > is used by not

[PATCH] f2fs: expose some sectors to user in inline data or dentry case

2017-10-13 Thread Jaegeuk Kim
If there's some data written through inline data or dentry, we need to shouw st_blocks. This fixes reporting zero blocks even though there is small written data. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c

Re: [PATCH V8 4/7] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/13/2017 11:24 AM, Ming Lei wrote: > For SCSI devices, there is often per-request-queue depth, which need > to be respected before queuing one request. > > The current blk-mq always dequeues request first, then calls .queue_rq() > to dispatch the request to lld. One obvious issue of this way

[PATCH v12 02/11] x86/mm: setting fields in deferred pages

2017-10-13 Thread Pavel Tatashin
Without deferred struct page feature (CONFIG_DEFERRED_STRUCT_PAGE_INIT), flags and other fields in "struct page"es are never changed prior to first initializing struct pages by going through __init_single_page(). With deferred struct page feature enabled, however, we set fields in register_page_bo

[PATCH v12 01/11] mm: deferred_init_memmap improvements

2017-10-13 Thread Pavel Tatashin
deferred_init_memmap() is called when struct pages are initialized later in boot by slave CPUs. This patch simplifies and optimizes this function, and also fixes a couple issues (described below). The main change is that now we are iterating through free memblock areas instead of all configured me

[PATCH v12 09/11] mm: stop zeroing memory during allocation in vmemmap

2017-10-13 Thread Pavel Tatashin
vmemmap_alloc_block() will no longer zero the block, so zero memory at its call sites for everything except struct pages. Struct page memory is zero'd by struct page initialization. Replace allocators in sprase-vmemmap to use the non-zeroing version. So, we will get the performance improvement by

[PATCH v12 05/11] mm: defining memblock_virt_alloc_try_nid_raw

2017-10-13 Thread Pavel Tatashin
* A new variant of memblock_virt_alloc_* allocations: memblock_virt_alloc_try_nid_raw() - Does not zero the allocated memory - Does not panic if request cannot be satisfied * optimize early system hash allocations Clients can call alloc_large_system_hash() with flag: HASH_ZERO to specify

[PATCH v12 10/11] sparc64: optimized struct page zeroing

2017-10-13 Thread Pavel Tatashin
Add an optimized mm_zero_struct_page(), so struct page's are zeroed without calling memset(). We do eight to ten regular stores based on the size of struct page. Compiler optimizes out the conditions of switch() statement. SPARC-M6 with 15T of memory, single thread performance:

[PATCH v12 00/11] complete deferred page initialization

2017-10-13 Thread Pavel Tatashin
Changelog: v12 - v11 - Improved comments for mm: zero reserved and unavailable struct pages - Added back patch: mm: deferred_init_memmap improvements - Added patch from Will Deacon: arm64: kasan: Avoid using vmemmap_populate to initialise shadow v11 - v10 - Moved kasan_map_populate() implementat

[PATCH v12 11/11] arm64: kasan: Avoid using vmemmap_populate to initialise shadow

2017-10-13 Thread Pavel Tatashin
From: Will Deacon The kasan shadow is currently mapped using vmemmap_populate since that provides a semi-convenient way to map pages into swapper. However, since that no longer zeroes the mapped pages, it is not suitable for kasan, which requires that the shadow is zeroed in order to avoid false

[PATCH v12 08/11] arm64/kasan: add and use kasan_map_populate()

2017-10-13 Thread Pavel Tatashin
During early boot, kasan uses vmemmap_populate() to establish its shadow memory. But, that interface is intended for struct pages use. Because of the current project, vmemmap won't be zeroed during allocation, but kasan expects that memory to be zeroed. We are adding a new kasan_map_populate() fun

[PATCH v12 04/11] sparc64: simplify vmemmap_populate

2017-10-13 Thread Pavel Tatashin
Remove duplicating code by using common functions vmemmap_pud_populate and vmemmap_pgd_populate. Signed-off-by: Pavel Tatashin Reviewed-by: Steven Sistare Reviewed-by: Daniel Jordan Reviewed-by: Bob Picco Acked-by: David S. Miller Acked-by: Michal Hocko --- arch/sparc/mm/init_64.c | 23

[PATCH v12 07/11] x86/kasan: add and use kasan_map_populate()

2017-10-13 Thread Pavel Tatashin
During early boot, kasan uses vmemmap_populate() to establish its shadow memory. But, that interface is intended for struct pages use. Because of the current project, vmemmap won't be zeroed during allocation, but kasan expects that memory to be zeroed. We are adding a new kasan_map_populate() fun

Re: [PATCH v2 4/4] KVM: LAPIC: Don't silently accept bad vectors

2017-10-13 Thread Radim Krčmář
2017-10-13 09:17+0800, Wanpeng Li: > 2017-10-04 22:44 GMT+08:00 Radim Krčmář : > > 2017-10-04 22:16+0800, Wanpeng Li: > >> 2017-10-04 20:01 GMT+08:00 Radim Krčmář : > >> > 2017-10-04 15:56+0800, Wanpeng Li: > >> >> 2017-10-04 1:53 GMT+08:00 Radim Krčmář : > >> >> > 2017-09-28 18:04-0700, Wanpeng Li

[PATCH v2] drm/amd/powerplay: Remove unnecessary cast on void pointer

2017-10-13 Thread Harsha Sharma
Done with following coccinelle patch @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: Harsha Sharma --- Changes in v2: -Remove unnecessary parentheses -Remove one more useless cast drivers/gpu/drm/amd/powerplay

[PATCH v12 03/11] sparc64/mm: setting fields in deferred pages

2017-10-13 Thread Pavel Tatashin
Without deferred struct page feature (CONFIG_DEFERRED_STRUCT_PAGE_INIT), flags and other fields in "struct page"es are never changed prior to first initializing struct pages by going through __init_single_page(). With deferred struct page feature enabled there is a case where we set some fields pr

[PATCH] ARM: dts: rockchip: Enable thermal on rk3288-vyasa board

2017-10-13 Thread Jagan Teki
From: Michael Trimarchi Enable thermal on rk3288-vyasa board, TSHUT is high active. Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rk3288-vyasa.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-vyasa.dts b/arch/arm/boot/d

[PATCH v12 06/11] mm: zero reserved and unavailable struct pages

2017-10-13 Thread Pavel Tatashin
Some memory is reserved but unavailable: not present in memblock.memory (because not backed by physical pages), but present in memblock.reserved. Such memory has backing struct pages, but they are not initialized by going through __init_single_page(). In some cases these struct pages are accessed

[PATCH net] net: dsa: mv88e6060: fix switch MAC address

2017-10-13 Thread Vivien Didelot
The 88E6060 Ethernet switch always transmits the multicast bit of the switch MAC address as a zero. It re-uses the corresponding bit 8 of the register "Switch MAC Address Register Bytes 0 & 1" for "DiffAddr". If the "DiffAddr" bit is 0, then all ports transmit the same source address. If it is set

Re: [PATCH v6 1/4] cramfs: direct memory access support

2017-10-13 Thread Nicolas Pitre
On Fri, 13 Oct 2017, Al Viro wrote: > On Thu, Oct 12, 2017 at 02:16:10AM -0400, Nicolas Pitre wrote: > > > static void cramfs_kill_sb(struct super_block *sb) > > { > > struct cramfs_sb_info *sbi = CRAMFS_SB(sb); > > > > - kill_block_super(sb); > > + if (IS_ENABLED(CCONFIG_CRAMFS_MTD))

Re: [PATCH v2 5/5] fsl/fman: add dpaa in module names

2017-10-13 Thread Florian Fainelli
On 10/13/2017 07:50 AM, Madalin Bucur wrote: > Signed-off-by: Madalin Bucur You should provide a line or two to explain why are you making this change, it is to resolve modular build configurations? > --- > drivers/net/ethernet/freescale/fman/Makefile | 12 ++-- > 1 file changed, 6 inse

[RFC 19/19] s390/facilities: enable AP facilities needed by guest

2017-10-13 Thread Tony Krowiak
Sets up the following facilities bits to enable the specified AP facilities for the guest VM: * STFLE.12: Enables the AP Query Configuration Information facility. The AP bus running in the guest uses the information returned from this instruction

[RFC 08/19] s390/zcrypt: support for assigning adapters to matrix mdev

2017-10-13 Thread Tony Krowiak
Provides the sysfs interfaces for assigning an adapter to and unassigning an AP adapter from a mediated matrix device. The IDs of the AP adapters assigned to the mediated matrix device are stored in a bit mask. The bits in the mask, from left to right, correspond to AP adapter numbers 0 to 255. Th

[RFC 13/19] s390/zcrypt: validate control domain assignment

2017-10-13 Thread Tony Krowiak
The AP control domain being assigned to the mediated matrix driver must be assigned to the LPAR. Signed-off-by: Tony Krowiak --- drivers/s390/crypto/vfio_ap_matrix_ops.c | 33 ++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/drivers/s390/crypto/vfi

Re: [Outreachy kernel] [PATCH v2] drm/amd/powerplay: Remove unnecessary cast on void pointer

2017-10-13 Thread Julia Lawall
> @@ -3400,7 +3400,7 @@ static int smu7_read_sensor(struct pp_hwmgr *hwmgr, int > idx, > static int smu7_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, > const void *input) > { > const struct phm_set_power_state_input *states = > - (const struct phm_set_po

[RFC 17/19] KVM: s390: validate input to AP matrix config interface

2017-10-13 Thread Tony Krowiak
Verifies that the AP matrix assigned to the KVM guest is not shared by any other KVM guest running on the same system. The Crypto Control Block referenced by a KVM guest's SIE state description contains two bit mask fields that identify the AP adapters and usage domains to assigned to the guest: T

[RFC 18/19] KVM: s390: New ioctl to configure KVM guest's AP matrix

2017-10-13 Thread Tony Krowiak
Implements an ioctl to configure the adapters, usage domains and control domains to which a KVM guest will be granted access. The ioctl is invoked using the VFIO mediated matrix device's file descriptor. Guest access to AP adapters, usage domains and control domains is controlled by three bit mask

[RFC 12/19] s390/zcrypt: sysfs support for control domain assignment

2017-10-13 Thread Tony Krowiak
Provides the sysfs interfaces for assigning an AP control domain to and unassigning a control domain from a mediated matrix device. The relevant sysfs structures are: /sys/devices/ap_matrix ... [matrix] .. [mdev_supported_types] . [ap_matrix-passthrough] [devices]

[RFC 16/19] KVM: s390: interface to configure KVM guest's AP matrix

2017-10-13 Thread Tony Krowiak
Provides an interface to assign AP adapters, usage domains and control domains to a KVM guest. A KVM guest is started by executing the Start Interpretive Execution (SIE) instruction. The SIE state description is a control block that contains the state information for a KVM guest and is supplied as

<    2   3   4   5   6   7   8   9   10   11   >