Re: [PATCH] iscsi-target: Reject immediate data underflow larger than SCSI transfer length

2017-07-13 Thread Nicholas A. Bellinger
On Tue, 2017-07-11 at 16:17 +, Bart Van Assche wrote: > On Tue, 2017-07-11 at 00:22 -0700, Nicholas A. Bellinger wrote: > > So rejecting this case as already done in commit abb85a9b51 is the > > correct approach for >= v4.3.y. > > Hello Nic, > > I hope that you agree that the current target_c

Re: [PATCH] sctp: don't dereference ptr before leaving _sctp_walk_{params,errors}()

2017-07-13 Thread Alexander Potapenko
On Thu, Jul 13, 2017 at 8:32 PM, David Miller wrote: > From: Alexander Potapenko > Date: Thu, 13 Jul 2017 20:10:34 +0200 > >> diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h >> index a9519a06a23b..f13632ee33f0 100644 >> --- a/include/net/sctp/sctp.h >> +++ b/include/net/sctp/sctp.h

Re: [PATCH v4 00/10] PCID and improved laziness

2017-07-13 Thread Matt Fleming
On Tue, 11 Jul, at 08:00:47AM, Andy Lutomirski wrote: > > https://git.kernel.org/pub/scm/linux/kernel/git/luto/misc-tests.git/ > > I did: > > $ ./context_switch_latency_64 0 process same Ah, that's better. I see about a 3.3% speedup with your patches when running the context-switch benchmark.

[PATCH 0/2] Fix modify_qp failure

2017-07-13 Thread Mustafa Ismail
Commit 5ecce4c9b17b("Check port number supplied by user verbs cmds") causes modify_qp to fail because port_num is only valid when the mask is set. Additionally, for iWARP, the port_num is not initialized which also causes modify_qp to fail. This series fixes both issues. Mustafa Ismail (2): RD

[PATCH 2/2] RDMA/core: Initialize port_num in qp_attr

2017-07-13 Thread Mustafa Ismail
Initialize the port_num for iWARP in rdma_init_qp_attr. Signed-off-by: Mustafa Ismail --- drivers/infiniband/core/cma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 31bb82d..d65a093 100644 --- a/drivers/infiniband/core/

[PATCH 1/2] RDMA/uverbs: Fix the check for port number

2017-07-13 Thread Mustafa Ismail
The port number is only valid if IB_QP_PORT is set in the mask. So only check port number if it is valid to prevent modify_qp from failing due to an invalid port number. Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds") Signed-off-by: Mustafa Ismail --- drivers/infiniband/core

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Michael Davidson
On Thu, Jul 13, 2017 at 12:25 PM, Josh Poimboeuf wrote: > > Anyway this seems like a clang bug to me. If I specify RSP as an input > register then the compiler shouldn't overwrite it first. For that > matter it has no reason to overwrite it if it's an output register > either. > It's certainly

Re: [PATCH 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-07-13 Thread Daniel Vetter
On Thu, Jul 13, 2017 at 04:41:13PM +0200, Maxime Ripard wrote: > The current drm_atomic_helper_commit_tail helper works only if the CRTC is > accessible, and documents an alternative implementation that is supposed to > be used if that happens. > > That implementation is then duplicated by some dr

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Serge E. Hallyn
Quoting Theodore Ts'o (ty...@mit.edu): > On Thu, Jul 13, 2017 at 12:39:10PM -0500, Eric W. Biederman wrote: > > > Can you define what 'scalable' means for you in this context? > > > From what I can see sharing a filesystem between multiple containers > > > doesn't 'scale well' for virtualizing the

[GIT PULL] nfsd changes for 4.13

2017-07-13 Thread J. Bruce Fields
Please pull nfsd changes for 4.13 from: git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.13 Chuck's RDMA update overhauls the "call receive" side of the RPC-over-RDMA transport to use the new rdma_rw API. Christoph cleaned the way nfs operations are declared, removing a bunch of function-poi

Re: [linux-sunxi] [PATCH v5 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-13 Thread Olliver Schinagl
Hey Priit, On 07/13/17 21:23, Priit Laes wrote: > On Mon, Jul 10, 2017 at 11:45:32AM +0200, Olliver Schinagl wrote: >> Hi Pleas, >> >> again, but this time with content :) >> >> On 04-07-17 22:04, Priit Laes wrote: >>> Introduce a clock controller driver for sun4i A10 and sun7i A20 >>> series SoCs

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Stefan Berger writes: > > > On 07/13/2017 01:14 PM, Eric W. Biederman wrote: > >> Theodore Ts'o writes: > >> > >>> On Thu, Jul 13, 2017 at 07:11:36AM -0500, Eric W. Biederman wrote: > The concise summary: > > Today we have the x

Re: [kernel-hardening] [PATCH 00/11] S.A.R.A. a new stacked LSM

2017-07-13 Thread Serge E. Hallyn
Quoting Mimi Zohar (zo...@linux.vnet.ibm.com): > On Thu, 2017-07-13 at 08:39 -0400, Matt Brown wrote: > The question is really from a security perspective which is better? >  Obviously, as v2 of the patch set changed from using pathnames to > inodes, it's pretty clear that I think inodes would be b

[PATCH 2/2] mfd: ds1374: Add Dallas/Maxim DS1374 Multi Function Device

2017-07-13 Thread Moritz Fischer
From: Moritz Fischer Add support for the Maxim/Dallas DS1374 RTC/WDT with trickle charger. The device can either be configured as simple RTC, as simple RTC with Alarm (IRQ) as well as simple RTC with watchdog timer. Break up the old monolithic driver in drivers/rtc/rtc-ds1374.c into: - rtc part

[PATCH 1/2] dt-binding: mfd: Add Maxim/Dallas DS1374 MFD device binding

2017-07-13 Thread Moritz Fischer
This adds a binding for the Maxim/Dallas DS1374 MFD. Signed-off-by: Moritz Fischer --- Changes from RFC: - dallas,ds1374-mode -> dallas,mode - Clarified examples - dallas,remap-reset property On second thoughts the solution for the remapping found in the discussion did not seem to be a good solu

Re: [RFC v5 38/38] Documentation: PowerPC specific updates to memory protection keys

2017-07-13 Thread Ram Pai
On Tue, Jul 11, 2017 at 11:23:29AM -0700, Dave Hansen wrote: > On 07/05/2017 02:22 PM, Ram Pai wrote: > > Add documentation updates that capture PowerPC specific changes. > > > > Signed-off-by: Ram Pai > > --- > > Documentation/vm/protection-keys.txt | 85 > > ++---

[PATCH V6] sched/fair: Remove group imbalance from calculate_imbalance()

2017-07-13 Thread Jeffrey Hugo
The group_imbalance path in calculate_imbalance() made sense when it was added back in 2007 with commit 908a7c1b9b80 ("sched: fix improper load balance across sched domain") because busiest->load_per_task factored into the amount of imbalance that was calculated. Beginning with commit dd5feea14a7d

Re: [Intel-gfx] [PATCH RESEND] drm/i915: Fix pipe/transcoder enum mismatches

2017-07-13 Thread Stéphane Marchesin
On Thu, Jul 13, 2017 at 10:42 AM, Ville Syrjälä wrote: > On Thu, Jul 13, 2017 at 09:23:11AM -0700, Stéphane Marchesin wrote: >> On Thu, Jul 13, 2017 at 3:13 AM, Ville Syrjälä >> wrote: >> > On Wed, Jul 12, 2017 at 07:28:14PM -0700, Stéphane Marchesin wrote: >> >> On Fri, May 5, 2017 at 10:40 AM,

Re: [PATCH 0/5] Cache coherent device memory (CDM) with HMM v4

2017-07-13 Thread Jerome Glisse
On Thu, Jul 13, 2017 at 04:32:28PM +1000, Balbir Singh wrote: > On Wed, 12 Jul 2017 14:06:02 -0400 > Jérôme Glisse wrote: > > > Changes since v3: > > - change name to device host (s/DEVICE_PUBLIC/DEVICE_HOST/) > > I think you've mis-interpreted what Dan said > > The message @ > http://www.mai

Re: [PATCH] mtd: gpmi-nand: do not fail setting ONFI timing mode if available

2017-07-13 Thread Boris Brezillon
Hi Miquel, Le Thu, 13 Jul 2017 21:20:30 +0200, Miquel Raynal a écrit : > GPMI NFC driver fails to apply timing mode if the ->onfi_get_features() > does not return the mode that was previously applied. > > We can assume that a nand chip supports a timing as long as it is > read from the ONFI par

Re: [PATCH v3 2/4] mfd: cros_ec: Introduce RTC commands and events definitions.

2017-07-13 Thread Benson Leung
Hi Enric, On 07/12/2017 03:13 AM, Enric Balletbo i Serra wrote: > From: Stephen Barber > > The EC can function as a simple RT, this patch adds the RTC related > definitions needed by the rtc-cros-ec driver. > > Signed-off-by: Stephen Barber > Signed-off-by: Enric Balletbo i Serra > Acked-by:

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-13 Thread Jerome Glisse
On Tue, Jul 11, 2017 at 12:35:03PM -0700, Evgeny Baskakov wrote: > On 7/11/17 11:49 AM, Jerome Glisse wrote: > > > > > What are the symptoms ? The program just stop making any progress and you > > trigger a sysrequest to dump current states of each threads ? In this > > log i don't see migration_

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 12:38:32PM -0700, Michael Davidson wrote: > On Thu, Jul 13, 2017 at 12:25 PM, Josh Poimboeuf wrote: > > > > > Anyway this seems like a clang bug to me. If I specify RSP as an input > > register then the compiler shouldn't overwrite it first. For that > > matter it has no

Re: [PATCH v12 5/8] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-07-13 Thread Michael S. Tsirkin
On Thu, Jul 13, 2017 at 03:42:35PM +0800, Wei Wang wrote: > On 07/12/2017 09:56 PM, Michael S. Tsirkin wrote: > > > > So the way I see it, there are several issues: > > > > - internal wait - forces multiple APIs like kick/kick_sync > >note how kick_sync can fail but your code never checks ret

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Andrey Rybainin
On 07/13/2017 09:47 PM, Matthias Kaehlcke wrote: > Thanks for your analysis! > >> What happens if you try the below patch instead of the revert? Any >> chance the offending instruction goes away? >> >> diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h >> index 11433f9.

RE: [PATCH 1/2] RDMA/uverbs: Fix the check for port number

2017-07-13 Thread Steve Wise
> The port number is only valid if IB_QP_PORT is set in the mask. > So only check port number if it is valid to prevent modify_qp from > failing due to an invalid port number. > > Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds") > Signed-off-by: Mustafa Ismail Looks good. Re

RE: [PATCH 2/2] RDMA/core: Initialize port_num in qp_attr

2017-07-13 Thread Steve Wise
> Initialize the port_num for iWARP in rdma_init_qp_attr. > > Signed-off-by: Mustafa Ismail Looks fine. Reviewed-by: Steve Wise

4.12 NULL pointer dereference in kmem_cache_free on USB storage removal

2017-07-13 Thread Meelis Roos
Just found this in dmesg, on disconnecting unmounted camera USB storage. [219369.449387] usb 3-2: new full-speed USB device number 3 using xhci_hcd [219369.598434] usb 3-2: New USB device found, idVendor=054c, idProduct=05be [219369.598437] usb 3-2: New USB device strings: Mfr=1, Product=2, Seria

Re: [PATCH v2 4/5] drm/rockchip: vop: add a series of vop support

2017-07-13 Thread Sean Paul
On Wed, Jul 12, 2017 at 9:31 PM, Mark yao wrote: > On 2017年07月13日 02:33, Sean Paul wrote: > > On Wed, Jul 12, 2017 at 10:03:54AM +0800, Mark Yao wrote: > > Vop Full framework now has following vops: > IP versionchipname > 3.1 rk3288 > 3.2 rk3368 > 3.4 rk3366

Re: [PATCH v2 1/5] drm/rockchip: vop: get rid of register init table

2017-07-13 Thread Sean Paul
On Thu, Jul 13, 2017 at 09:33:45AM +0800, Mark yao wrote: > On 2017年07月13日 00:47, Sean Paul wrote: > > On Wed, Jul 12, 2017 at 10:03:27AM +0800, Mark Yao wrote: > > > Register init table use un-document define, it is unreadable, > > > And sometimes we only want to update tiny bits, init table > > >

[GIT PULL] target updates for v4.13-rc1

2017-07-13 Thread Nicholas A. Bellinger
Hi Linus, Here are the target-pending updates for v4.13-rc1. Please go ahead and pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git for-next Note there is a qla2xxx conflict with scsi.git as reported by SFR, which should be straight-forward to resolve: https://lk

Re: [RFC 0/2] arm-smmu-v3 tlbi-on-map option

2017-07-13 Thread Michael S. Tsirkin
On Thu, Jul 13, 2017 at 08:17:49PM +0100, Jean-Philippe Brucker wrote: > But it is now mostly obsolete. Lots of things had to change while writing > a prototype and following public discussions. At the moment my focus is on > tidying up the base, but I will send another RFC afterwards. Thanks! Pl

Re: [PATCH v3 3/4] rtc: cros-ec: add cros-ec-rtc driver.

2017-07-13 Thread Benson Leung
Hi Enric, On 07/12/2017 03:13 AM, Enric Balletbo i Serra wrote: > From: Stephen Barber > > On platforms with a Chrome OS EC, the EC can function as a simple RTC. > Add a basic driver with this functionality. > > Signed-off-by: Stephen Barber > Signed-off-by: Enric Balletbo i Serra > Acked-by:

Re: [PATCH v2 2/5] drm/rockchip: vop: support verify registers with vop version

2017-07-13 Thread Sean Paul
On Thu, Jul 13, 2017 at 09:45:12AM +0800, Mark yao wrote: > On 2017年07月13日 01:53, Sean Paul wrote: > > On Wed, Jul 12, 2017 at 10:03:38AM +0800, Mark Yao wrote: > > > > Please add a commit message describing *what* and *why* you are making the > > change. > > Got it, I will fix it at next version

Re: [PATCH v3 1/4] mfd: cros_ec: Get rid of cros_ec_check_features from cros_ec_dev.

2017-07-13 Thread Gwendal Grignou
On Wed, Jul 12, 2017 at 3:13 AM, Enric Balletbo i Serra wrote: > The cros_ec_dev driver should be used only to expose the Chrome OS Embedded > Controller to user-space and should not be used to add MFD devices by > calling mfd_add_devices. This patch moves this logic to the MFD cros_ec > driver an

Re: [RFC PATCH 1/1] mm/mremap: add MREMAP_MIRROR flag for existing mirroring functionality

2017-07-13 Thread Andrea Arcangeli
On Thu, Jul 13, 2017 at 11:11:37AM -0700, Mike Kravetz wrote: > Here is my understanding of how things work for old_len == 0 of anon > mappings: > - shared mappings > - New vma is created at new virtual address > - vma refers to the same underlying object/pages as old vma > - afte

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 11:20:04PM +0300, Andrey Rybainin wrote: > On 07/13/2017 09:47 PM, Matthias Kaehlcke wrote: > > > Thanks for your analysis! > > > >> What happens if you try the below patch instead of the revert? Any > >> chance the offending instruction goes away? > >> > >> diff --git a/

Re: [RFC v5 14/38] powerpc: initial plumbing for key management

2017-07-13 Thread Ram Pai
On Thu, Jul 13, 2017 at 12:45:00AM -0700, Ram Pai wrote: > On Wed, Jul 12, 2017 at 01:28:25PM +1000, Balbir Singh wrote: > > On Wed, 5 Jul 2017 14:21:51 -0700 > > Ram Pai wrote: > > > > > Initial plumbing to manage all the keys supported by the > > > hardware. > > > > > > Total 32 keys are supp

[PATCH 04/12] ASoC: msm8916-wcd-analog: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/msm8916-wcd-analog.c | 2 +- 1 file changed

[PATCH 01/12] ASoC: cs42l42: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/cs42l42.c | 2 +- 1 file changed, 1 inserti

[PATCH 02/12] ASoC: rt5663: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/rt5663.c | 2 +- 1 file changed, 1 insertio

[PATCH 08/12] ASoC: max9867: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/max9867.c | 2 +- 1 file changed, 1 inserti

[PATCH 05/12] ASoC: max98926: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/max98926.c | 2 +- 1 file changed, 1 insert

[PATCH 07/12] ASoC: codecs: msm8916-wcd-digital: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/msm8916-wcd-digital.c | 2 +- 1 file change

[PATCH 11/12] ASoC: dwc: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/dwc/dwc-i2s.c | 2 +- 1 file changed, 1 insertion(

[PATCH 12/12] ASoC: tas5720: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/tas5720.c | 2 +- 1 file changed, 1 inserti

[PATCH 10/12] ASoC: hdac_hdmi: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/hdac_hdmi.c | 2 +- 1 file changed, 1 inser

[PATCH 09/12] ASoC: rk3036: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/inno_rk3036.c | 2 +- 1 file changed, 1 ins

[PATCH 06/12] ASoC: rt5514: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Also, make rt5514_aif_dai_ops static, as it is not used outside this module. Signed-off-by: Gustavo

Re: [rtc-linux] Re: [PATCH] RTC: Add functionality to read/write rtc scratch registers

2017-07-13 Thread Alexandre Belloni
Hi, On 05/05/2017 at 00:38:27 +0200, Alexandre Belloni wrote: > Hi, > > On 03/05/2017 at 11:39:34 +0530, Keerthy wrote: > > On Tuesday 18 April 2017 10:50 AM, Keerthy wrote: > > > From: Russ Dill > > > > > > Many RTCs provide scratch registers that are maintained so long as the RTC > > > has po

Re: [PATCH] sctp: don't dereference ptr before leaving _sctp_walk_{params,errors}()

2017-07-13 Thread David Miller
From: Alexander Potapenko Date: Thu, 13 Jul 2017 21:28:39 +0200 > On Thu, Jul 13, 2017 at 8:32 PM, David Miller wrote: >> struct sctp_paramhdr { >> __be16 type; >> __be16 length; >> }; >> >> typedef struct sctp_errhdr { >> __be16 cause; >> __be16 length; >>

Re: [PATCH] lustre: check copy_from_iter/copy_to_iter return code

2017-07-13 Thread Arnd Bergmann
On Thu, Jul 13, 2017 at 7:07 PM, James Simmons wrote: > >> We now get a helpful warning for code that calls copy_{from,to}_iter >> without checking the return value, introduced by commit aa28de275a24 >> ("iov_iter/hardening: move object size checks to inlined part"). >> >> drivers/staging/lustre/l

Re: [PULL REQUEST] i2c for 4.13

2017-07-13 Thread Peter Rosin
On 2017-07-13 09:56, Uwe Kleine-König wrote: > Hello, > > On Wed, Jul 12, 2017 at 10:16:32AM -0700, Linus Torvalds wrote: >> On Wed, Jul 12, 2017 at 8:49 AM, Wolfram Sang wrote: >>> drivers/i2c/i2c-core-acpi.c| 665 >>> drivers/i2c/{i2c-core.c => i2c-core-base.c

[PATCH 03/12] ASoC: rt5616: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/codecs/rt5616.c | 2 +- 1 file changed, 1 insertio

[PATCH 00/12] constify snd_soc_dai_ops structures

2017-07-13 Thread Gustavo A. R. Silva
This patchset aims to constify all snd_soc_dai_ops structures that are only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Thanks! Gustavo A. R. Silva (12): ASoC: cs42l

Re: [PULL REQUEST] i2c for 4.13

2017-07-13 Thread Linus Torvalds
On Thu, Jul 13, 2017 at 1:57 PM, Peter Rosin wrote: > > And if you, like me, sometimes take a peek at the core of several > subsystems using emacs, the buffers are either named "core.c" > or "subsys-core.c". The latter naming is more friendly to tab-completion > after ctrl-x b. Here's a nickel, K

[PATCH linux v3 3/3] drivers: w1: add hwmon temp support for w1_therm

2017-07-13 Thread Jaghathiswari Rankappagounder Natarajan
This change adds hwmon temp support for w1_therm. Signed-off-by: Jaghathiswari Rankappagounder Natarajan Acked-by: Evgeniy Polyakov --- v2 - make changes to support hwmon_device_register_with_info mentioned by Guenter. v3 - used IS_REACHABLE() - rearranged the code to not require forward declar

[PATCH linux v3 2/3] drivers: w1: refactor w1_slave_show to make the temp reading functionality separate

2017-07-13 Thread Jaghathiswari Rankappagounder Natarajan
Inside the w1_slave_show function refactor the code to read the temp into a separate function. Signed-off-by: Jaghathiswari Rankappagounder Natarajan Acked-by: Evgeniy Polyakov --- v2 - no changes v3 - changed code so that the refcount is incremented with the bus mutex locked. drivers/w1/slav

[PATCH linux v3 0/3] Export 1-wire thermal sensors as hwmon device

2017-07-13 Thread Jaghathiswari Rankappagounder Natarajan
Our board has 4 DS18B20 1-wire temperature sensors. Each 1-wire bus and the sensor under it is already configured against the Linux 1-wire driver (called w1). They have a sysfs file(e.g. /sys/bus/w1/devices/w1_bus_master1/28-07704f4c/w1_slave) which, when read, runs code to read the temperature

[PATCH linux v3 1/3] drivers: w1: add hwmon support structures

2017-07-13 Thread Jaghathiswari Rankappagounder Natarajan
This patch has changes to w1.h/w1.c/w1_family.h generic files to add (optional) hwmon support structures. Signed-off-by: Jaghathiswari Rankappagounder Natarajan Acked-by: Evgeniy Polyakov --- v2 - made changes to support hwmon_device_register_with_info mentioned by Guenter. v3 - used IS_REACHAB

Re: 4.12 NULL pointer dereference in kmem_cache_free on USB storage removal

2017-07-13 Thread Bart Van Assche
On Thu, 2017-07-13 at 23:24 +0300, Meelis Roos wrote: > [258062.320700] RIP: 0010:kmem_cache_free+0x12/0x160 > [258062.320886] Call Trace: > [258062.320897] scsi_exit_rq+0x4d/0x60 > [258062.320909] free_request_size+0x1c/0x30 > [258062.320923] mempool_destroy+0x1d/0x60 > [258062.320935] blk_exi

Re: [PATCHv3 1/3] firmware_class: move NO_CACHE from private to driver_data_req_params

2017-07-13 Thread Alan Tull
On Mon, Jun 26, 2017 at 10:28 AM, Li, Yi wrote: Hi Greg, > hi Greg > > On 6/23/2017 10:41 AM, Greg KH wrote: >> >> On Fri, Jun 16, 2017 at 05:58:29PM -0500, yi1...@linux.intel.com wrote: >>> >>> From: Yi Li >>> >>> This adds DRIVER_DATA_REQ_NO_CACHE flag with .req flag under struct >>> driver_d

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-13 Thread Sinan Kaya
On 7/13/2017 10:21 AM, Ding Tianhong wrote: > static void pci_configure_relaxed_ordering(struct pci_dev *dev) > +{ > + /* We should not alter the relaxed ordering bit for the VF */ > + if (dev->is_virtfn) > + return; > + > + /* If the releaxed ordering enable bit is not set,

Re: [alsa-devel] [PATCH] ASoC: fsl_asrc: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
Hi Joe, Quoting Joe Perches : On Thu, 2017-07-13 at 10:18 -0500, Gustavo A. R. Silva wrote: Hi Mark, Quoting Mark Brown : > On Thu, Jul 13, 2017 at 09:32:41AM +0200, Takashi Iwai wrote: > > > please stop posting in this style. It's really annoying to see > > spontaneously popping-up almost

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Matthias Kaehlcke
El Thu, Jul 13, 2017 at 03:34:16PM -0500 Josh Poimboeuf ha dit: > On Thu, Jul 13, 2017 at 11:20:04PM +0300, Andrey Rybainin wrote: > > On 07/13/2017 09:47 PM, Matthias Kaehlcke wrote: > > > > > Thanks for your analysis! > > > > > >> What happens if you try the below patch instead of the revert?

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Serge E. Hallyn
Quoting Theodore Ts'o (ty...@mit.edu): > On Thu, Jul 13, 2017 at 07:11:36AM -0500, Eric W. Biederman wrote: > > The concise summary: > > > > Today we have the xattr security.capable that holds a set of > > capabilities that an application gains when executed. AKA setuid root exec > > without actu

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Matthias Kaehlcke
El Thu, Jul 13, 2017 at 11:20:04PM +0300 Andrey Rybainin ha dit: > On 07/13/2017 09:47 PM, Matthias Kaehlcke wrote: > > > Thanks for your analysis! > > > >> What happens if you try the below patch instead of the revert? Any > >> chance the offending instruction goes away? > >> > >> diff --git a/a

[PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-07-13 Thread Jérôme Glisse
Sorry i made horrible mistake on names in v4, i completly miss- understood the suggestion. So here i repost with proper naming. This is the only change since v3. Again sorry about the noise with v4. Changes since v4: - s/DEVICE_HOST/DEVICE_PUBLIC Git tree: https://cgit.freedesktop.org/~glisse/l

[PATCH 5/6] mm/memcontrol: support MEMORY_DEVICE_PRIVATE and MEMORY_DEVICE_PUBLIC v3

2017-07-13 Thread Jérôme Glisse
HMM pages (private or public device pages) are ZONE_DEVICE page and thus need special handling when it comes to lru or refcount. This patch make sure that memcontrol properly handle those when it face them. Those pages are use like regular pages in a process address space either as anonymous page o

[PATCH 4/6] mm/memcontrol: allow to uncharge page without using page->lru field

2017-07-13 Thread Jérôme Glisse
HMM pages (private or public device pages) are ZONE_DEVICE page and thus you can not use page->lru fields of those pages. This patch re-arrange the uncharge to allow single page to be uncharge without modifying the lru field of the struct page. There is no change to memcontrol logic, it is the sam

[PATCH 6/6] mm/hmm: documents how device memory is accounted in rss and memcg

2017-07-13 Thread Jérôme Glisse
For now we account device memory exactly like a regular page in respect to rss counters and memory cgroup. We do this so that any existing application that starts using device memory without knowing about it will keep running unimpacted. This also simplify migration code. We will likely revisit th

[PATCH 3/6] mm/hmm: add new helper to hotplug CDM memory region v3

2017-07-13 Thread Jérôme Glisse
Unlike unaddressable memory, coherent device memory has a real resource associated with it on the system (as CPU can address it). Add a new helper to hotplug such memory within the HMM framework. Changed since v2: - s/host/public Changed since v1: - s/public/host Signed-off-by: Jérôme Glisse

[GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-13 Thread Anna Schumaker
Hi Linus, The following changes since commit 32c1431eea4881a6b17bd7c639315010aeefa452: Linux 4.12-rc5 (2017-06-11 16:48:20 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.13-1 for you to fetch changes up to b4f937cffa66b3d56

[PATCH 1/6] mm/zone-device: rename DEVICE_PUBLIC to DEVICE_HOST

2017-07-13 Thread Jérôme Glisse
Existing user of ZONE_DEVICE in its DEVICE_PUBLIC variant are not tie to specific device and behave more like host memory. This patch rename DEVICE_PUBLIC to DEVICE_HOST and free the name DEVICE_PUBLIC to be use for cache coherent device memory that has strong tie with the device on which the memor

[PATCH 2/6] mm/device-public-memory: device memory cache coherent with CPU v4

2017-07-13 Thread Jérôme Glisse
Platform with advance system bus (like CAPI or CCIX) allow device memory to be accessible from CPU in a cache coherent fashion. Add a new type of ZONE_DEVICE to represent such memory. The use case are the same as for the un-addressable device memory but without all the corners cases. Changed since

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > Stefan Berger writes: > If you don't care about the ownership of the files, and read only is > acceptable, and you still don't want to give these executables > capabilities in the initial user namespace. What you can do is > make everything own

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Quoting Eric W. Biederman (ebied...@xmission.com): >> Stefan Berger writes: >> >> > On 07/13/2017 01:14 PM, Eric W. Biederman wrote: >> >> Theodore Ts'o writes: >> >> >> >>> On Thu, Jul 13, 2017 at 07:11:36AM -0500, Eric W. Biederman wrote: >> The concise summa

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-13 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > For virtualizing the xattrs on the 'value' side I was looking for > whether there's something like a 'wrapper' structure around the > actual value of the xattr so that that wrapper could be extended to > support different values at different uid

[PATCH 1/2] dt-bindings: net: Add bindings for National Instruments XGE netdev

2017-07-13 Thread Moritz Fischer
This adds bindings for the NI XGE 1G/10G network device. Signed-off-by: Moritz Fischer --- Documentation/devicetree/bindings/net/nixge.c | 32 +++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nixge.c diff --git a/Documentatio

[PATCH 2/2] net: ethernet: nixge: Add support for National Instruments XGE netdev

2017-07-13 Thread Moritz Fischer
Add support for the National Instruments XGE 1/10G network device. It uses the EEPROM on the board via NVMEM. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/Kconfig |1 + drivers/net/ethernet/Makefile|1 + drivers/net/ethernet/ni/Kconfig | 26 + drivers/net/ethernet/n

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Andrey Rybainin
On 07/14/2017 12:14 AM, Matthias Kaehlcke wrote: > El Thu, Jul 13, 2017 at 11:20:04PM +0300 Andrey Rybainin ha dit: > >> On 07/13/2017 09:47 PM, Matthias Kaehlcke wrote: >> >>> Thanks for your analysis! >>> What happens if you try the below patch instead of the revert? Any chance the

Re: [RFC v5 14/38] powerpc: initial plumbing for key management

2017-07-13 Thread Balbir Singh
On Fri, Jul 14, 2017 at 6:37 AM, Ram Pai wrote: > On Thu, Jul 13, 2017 at 12:45:00AM -0700, Ram Pai wrote: >> On Wed, Jul 12, 2017 at 01:28:25PM +1000, Balbir Singh wrote: >> > On Wed, 5 Jul 2017 14:21:51 -0700 >> > Ram Pai wrote: >> > >> > > Initial plumbing to manage all the keys supported by

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 02:12:45PM -0700, Matthias Kaehlcke wrote: > El Thu, Jul 13, 2017 at 03:34:16PM -0500 Josh Poimboeuf ha dit: > > And yet another one to try (clobbering sp) :-) > > > > diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h > > index 11433f9..21f0c39 10

Re: [PATCH linux v3 3/3] drivers: w1: add hwmon temp support for w1_therm

2017-07-13 Thread Guenter Roeck
On Thu, Jul 13, 2017 at 02:06:49PM -0700, Jaghathiswari Rankappagounder Natarajan wrote: > This change adds hwmon temp support for w1_therm. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan > Acked-by: Evgeniy Polyakov > --- > v2 > - make changes to support hwmon_device_register_with_

Re: [PULL REQUEST] i2c for 4.13

2017-07-13 Thread Peter Rosin
On 2017-07-13 23:05, Linus Torvalds wrote: > On Thu, Jul 13, 2017 at 1:57 PM, Peter Rosin wrote: >> >> And if you, like me, sometimes take a peek at the core of several >> subsystems using emacs, the buffers are either named "core.c" >> or "subsys-core.c". The latter naming is more friendly to tab

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-13 Thread Linus Torvalds
On Thu, Jul 13, 2017 at 2:16 PM, Anna Schumaker wrote: > > git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.13-1 Btw, your key seems to have expired, and doing a refresh on it doesn't fix it. I'm sure you've refreshed your key, but apparently that refresh hasn't been percolat

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Matthias Kaehlcke
El Fri, Jul 14, 2017 at 12:25:42AM +0300 Andrey Rybainin ha dit: > > > On 07/14/2017 12:14 AM, Matthias Kaehlcke wrote: > > El Thu, Jul 13, 2017 at 11:20:04PM +0300 Andrey Rybainin ha dit: > > > >> On 07/13/2017 09:47 PM, Matthias Kaehlcke wrote: > >> > >>> Thanks for your analysis! > >>> > >>>

Re: [PATCH 2/2] ACPI / CPPC: Make cppc acpi driver aware of pcc subspace ids

2017-07-13 Thread Prakash, Prashanth
Hi George, On 6/13/2017 8:17 AM, George Cherian wrote: > Based on ACPI 6.2 Section 8.4.7.1.9 If the PCC register space is used, > all PCC registers, for all processors in the same performance > domain (as defined by _PSD), must be defined to be in the same subspace. > Based on Section 14.1 of ACPI

Re: [PATCH linux v3 1/3] drivers: w1: add hwmon support structures

2017-07-13 Thread Guenter Roeck
On Thu, Jul 13, 2017 at 02:06:47PM -0700, Jaghathiswari Rankappagounder Natarajan wrote: > This patch has changes to w1.h/w1.c/w1_family.h generic files to > add (optional) hwmon support structures. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan > Acked-by: Evgeniy Polyakov Acked-b

Re: [PATCH linux v3 2/3] drivers: w1: refactor w1_slave_show to make the temp reading functionality separate

2017-07-13 Thread Guenter Roeck
On Thu, Jul 13, 2017 at 02:06:48PM -0700, Jaghathiswari Rankappagounder Natarajan wrote: > Inside the w1_slave_show function refactor the code to read the temp > into a separate function. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan > Acked-by: Evgeniy Polyakov Acked-by: Guenter

Re: [PATCH 16/17] RISC-V: User-facing API

2017-07-13 Thread Palmer Dabbelt
On Wed, 12 Jul 2017 10:09:55 PDT (-0700), james.ho...@imgtec.com wrote: > On Wed, Jul 12, 2017 at 09:24:24AM -0700, Palmer Dabbelt wrote: >> On Wed, 12 Jul 2017 04:07:51 PDT (-0700), james.ho...@imgtec.com wrote: >> > On Tue, Jul 11, 2017 at 06:31:29PM -0700, Palmer Dabbelt wrote: >> >> diff --git

Re: [PATCH 08/17] tty: New RISC-V SBI console driver

2017-07-13 Thread Palmer Dabbelt
On Thu, 13 Jul 2017 05:32:26 PDT (-0700), james.ho...@imgtec.com wrote: > On Thu, Jul 13, 2017 at 09:59:53PM +1000, Michael Ellerman wrote: >> Palmer Dabbelt writes: >> >> > On Wed, 12 Jul 2017 04:04:00 PDT (-0700), m...@ellerman.id.au wrote: >> >> Palmer Dabbelt writes: >> >> >> >>> On Mon, 10 J

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Josh Poimboeuf
On Thu, Jul 13, 2017 at 02:43:26PM -0700, Matthias Kaehlcke wrote: > > >> AFAIR clang works much better with global named registers. Is that a bug or a feature? -- Josh

Re: [PATCH] powerpc/time: use get_tb instead of get_vtb in running_clock

2017-07-13 Thread Benjamin Herrenschmidt
On Thu, 2017-07-13 at 14:55 +0800, hejianet wrote: > Hi Ben > I add some printk logs in watchdog_timer_fn in the guest > [   16.025222] get_vtb=8236291881, get_tb=13756711357, get_timestamp=4 > [   20.025624] get_vtb=9745285807, get_tb=15804711283, get_timestamp=7 > [   24.025042] get_vtb=115181196

[PATCH 1/3] sparc64: Support huge PUD case in get_user_pages

2017-07-13 Thread Nitin Gupta
get_user_pages() is used to do direct IO. It already handles the case where the address range is backed by PMD huge pages. This patch now adds the case where the range could be backed by PUD huge pages. Signed-off-by: Nitin Gupta --- arch/sparc/include/asm/pgtable_64.h | 15 ++-- arch/sp

[PATCH 3/3] sparc64: Cleanup hugepage table walk functions

2017-07-13 Thread Nitin Gupta
Flatten out nested code structure in huge_pte_offset() and huge_pte_alloc(). Signed-off-by: Nitin Gupta --- arch/sparc/mm/hugetlbpage.c | 54 + 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/arch/sparc/mm/hugetlbpage.c b/arch/sparc/mm/

[PATCH 2/3] sparc64: Add 16GB hugepage support

2017-07-13 Thread Nitin Gupta
Adds support for 16GB hugepage size. To use this page size use kernel parameters as: default_hugepagesz=16G hugepagesz=16G hugepages=10 Testing: Tested with the stream benchmark which allocates 48G of arrays backed by 16G hugepages and does RW operation on them in parallel. Orabug: 25362942 Si

Re: [PATCH v2] clk: qcom: clk-smd-rpm: Fix the reported rate of branches

2017-07-13 Thread Stephen Boyd
On 07/13, Georgi Djakov wrote: > As there is no way to actually query the hardware for the current clock > rate, now racalc_rate() just returns the last rate that was previously > set. But if the rate was not set yet, we return the bogus rate of 1000Hz. > > The branch clocks actually have the same

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-13 Thread Matthias Kaehlcke
El Thu, Jul 13, 2017 at 04:34:06PM -0500 Josh Poimboeuf ha dit: > On Thu, Jul 13, 2017 at 02:12:45PM -0700, Matthias Kaehlcke wrote: > > El Thu, Jul 13, 2017 at 03:34:16PM -0500 Josh Poimboeuf ha dit: > > > And yet another one to try (clobbering sp) :-) > > > > > > diff --git a/arch/x86/include/a

Re: [PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-07-13 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: { + struct rdtgroup *pr = rdtgrp->parent, *cr; *pr and *cr really suck. We used r before rdtgroup. pr would be parent rdtgrp. Wanted to keep them short as there are more in this function. prgrp can be used if thats not ok?

<    2   3   4   5   6   7   8   9   >