Re: [PATCH v18 00/22] Richacls (Core and Ext4)

2016-03-15 Thread Volker Lendecke
On Tue, Mar 15, 2016 at 08:45:14AM -0700, Jeremy Allison wrote: > On Tue, Mar 15, 2016 at 12:11:03AM -0700, Christoph Hellwig wrote: > > People have long learned that we only have 'alloc' permissions. Any > > model that mixes allow and deny ACE is a mistake. > > People can also learn and change t

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Linus Torvalds
On Tue, Mar 15, 2016 at 1:14 PM, Dave Chinner wrote: > > Root can still change the group id of a file that has exposed stale > data and hence make it visible outside of the group based > containment wall. Ok, Dave, now you're just being ridiculous. The issue has never been - and *should* never b

Re: [PATCH] kbuild: drop FORCE from PHONY targets

2016-03-15 Thread Michal Marek
Dne 15.3.2016 v 19:27 Andy Lutomirski napsal(a): > Fair enough, although I'm curious why this happens. It might be worth > changing the docs to say that .PHONY is *not* an substitute for FORCE > in that context, then. These two are unrelated, except that FORCE is redundant for a .PHONY target. FO

Re: [PATCH 8/8] sched: prefer cpufreq_scale_freq_capacity

2016-03-15 Thread Michael Turquette
Quoting Dietmar Eggemann (2016-03-15 12:13:58) > On 14/03/16 05:22, Michael Turquette wrote: > > arch_scale_freq_capacity is weird. It specifies an arch hook for an > > implementation that could easily vary within an architecture or even a > > chip family. > > > > This patch helps to mitigate this

Re: [PATCH 2/2] nouveau: use new vga_switcheroo power domain.

2016-03-15 Thread Lukas Wunner
Hi Dave, On Thu, Mar 10, 2016 at 08:04:26AM +1000, Dave Airlie wrote: > On 10 March 2016 at 00:40, Lukas Wunner wrote: > > On Wed, Mar 09, 2016 at 04:14:05PM +1000, Dave Airlie wrote: > >> From: Dave Airlie > >> > >> This fixes GPU auto powerdown on the Lenovo W541, > >> since we advertise Windo

[PATCH 1/2] btrfs: cleaner_kthread() doesn't need explicit freeze

2016-03-15 Thread Jiri Kosina
cleaner_kthread() is not marked freezable, and therefore calling try_to_freeze() in its context is a pointless no-op. In addition to that, as has been clearly demonstrated by 80ad623edd2d ("Revert "btrfs: clear PF_NOFREEZE in cleaner_kthread()"), it's perfectly valid / legal for cleaner_kthread

[PATCH 2/2] btrfs: transaction_kthread() is not freezable

2016-03-15 Thread Jiri Kosina
transaction_kthread() is calling try_to_freeze(), but that's just an expeinsive no-op given the fact that the thread is not marked freezable. After removing this, disk-io.c is now independent on freezer API. Signed-off-by: Jiri Kosina --- fs/btrfs/disk-io.c | 15 ++- 1 file changed

Re: [PATCH] kbuild: drop FORCE from PHONY targets

2016-03-15 Thread Andy Lutomirski
On Tue, Mar 15, 2016 at 1:45 PM, Michal Marek wrote: > Dne 15.3.2016 v 19:27 Andy Lutomirski napsal(a): >> Fair enough, although I'm curious why this happens. It might be worth >> changing the docs to say that .PHONY is *not* an substitute for FORCE >> in that context, then. > > These two are unr

Re: [PATCH 0/5] Modularize PCI_DW related drivers.

2016-03-15 Thread Murali Karicheri
On 03/01/2016 04:35 PM, Arnd Bergmann wrote: > On Monday 29 February 2016 14:59:35 Kishon Vijay Abraham I wrote: >>> } >>> >>> You just need to pass the same resource in here htat you pass into >>> pci_remap_iospace(). >> >> I still seem to get the abort in ioremap_page_range(). >> >> Here's the pa

Re: [RFC -next 2/2] virtio_net: Read and use the advised MTU

2016-03-15 Thread Aaron Conole
Paolo Abeni writes: > On Thu, 2016-03-10 at 09:28 -0500, Aaron Conole wrote: >> This patch checks the feature bit for the VIRTIO_NET_F_MTU feature. If it >> exists, read the advised MTU and use it. >> >> No proper error handling is provided for the case where a user changes the >> negotiated MTU

Re: [RFC -next 2/2] virtio_net: Read and use the advised MTU

2016-03-15 Thread Aaron Conole
Sergei Shtylyov writes: > Hello. Hi Sergei, > On 03/10/2016 05:28 PM, Aaron Conole wrote: > >> This patch checks the feature bit for the VIRTIO_NET_F_MTU feature. If it >> exists, read the advised MTU and use it. >> >> No proper error handling is provided for the case where a user changes the >

[RFC v2 -next 0/2] virtio-net: Advised MTU feature

2016-03-15 Thread Aaron Conole
The following series adds the ability for a hypervisor to set an MTU on the guest during feature negotiation phase. This is useful for VM orchestration when, for instance, tunneling is involved and the MTU of the various systems should be homogenous. The first patch adds the feature bit as describ

[RFC v2 -next 1/2] virtio: Start feature MTU support

2016-03-15 Thread Aaron Conole
This commit adds the feature bit and associated mtu device entry for the virtio network device. Future commits will make use of these bits to support negotiated MTU. Signed-off-by: Aaron Conole --- v2: * No change include/uapi/linux/virtio_net.h | 3 +++ 1 file changed, 3 insertions(+) diff --

[RFC v2 -next 2/2] virtio_net: Read the advised MTU

2016-03-15 Thread Aaron Conole
This patch checks the feature bit for the VIRTIO_NET_F_MTU feature. If it exists, read the advised MTU and use it. No proper error handling is provided for the case where a user changes the negotiated MTU. A future commit will add proper error handling. Instead, a warning is emitted if the guest c

Re: [PATCH v18 19/22] richacl: Add richacl xattr handler

2016-03-15 Thread J. Bruce Fields
On Tue, Mar 15, 2016 at 12:10:14AM -0700, Christoph Hellwig wrote: > On Fri, Mar 11, 2016 at 09:19:05AM -0500, J. Bruce Fields wrote: > > On Fri, Mar 11, 2016 at 06:17:35AM -0800, Christoph Hellwig wrote: > > > On Mon, Feb 29, 2016 at 09:17:24AM +0100, Andreas Gruenbacher wrote: > > > > Add richacl

Re: [PATCH 1/2] x86/mm/pat: Change pat_disable() to emulate PAT table

2016-03-15 Thread Toshi Kani
On Tue, 2016-03-15 at 12:00 +0100, Borislav Petkov wrote: > On Mon, Mar 14, 2016 at 03:37:23PM -0600, Toshi Kani wrote: > > Your patch is a simplified version of mine.  So, yes, it fixes the > > Paul's issue, but it does not address other issues that my patchset > > also addressed.  In specific, I

[PATCH] Remove v850 from linux/elf-em.h

2016-03-15 Thread Rob Landley
From: Rob Landley The v850 port was removed by commits f606ddf42fd4 and 07a887d399b8 in 2008. These #defines are not used in the current kernel. Signed-off-by: Rob Landley --- include/uapi/linux/elf-em.h |3 --- 1 file changed, 3 deletions(-) diff --git a/include/uapi/linux/elf-em.h b/inc

Re: [PATCH 1/8] sched/cpufreq: remove cpufreq_trigger_update()

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:05PM -0700, Michael Turquette wrote: > cpufreq_trigger_update() was introduced in "cpufreq: Rework the > scheduler hooks for triggering updates"[0]. Consensus is that this > helper is not needed and removing it will aid in experimenting with > deadline and rt capacity

Re: [PATCH 3/8] sched/cpufreq: new cfs capacity margin helpers

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:07PM -0700, Michael Turquette wrote: > +/** > + * cpufreq_set_cfs_capacity_margin - Set global cfs enqueue capacity margin > + * @margin: new capacity margin > + * > + * margin is a percentage of capacity that is applied to the current > + * utilization when selecting

Re: [PATCH 2/8] sched/fair: add margin to utilization update

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:06PM -0700, Michael Turquette wrote: > @@ -2840,6 +2853,8 @@ static inline void update_load_avg(struct sched_entity > *se, int update_tg) > > if (cpu == smp_processor_id() && &rq->cfs == cfs_rq) { > unsigned long max = rq->cpu_capacity_orig; > +

Re: [patch] Input: synaptics-rmi4 - using logical instead of bitwise AND

2016-03-15 Thread Andrew Duggan
On 03/15/2016 12:11 AM, Dan Carpenter wrote: There is a typo so we have && instead of &. Fixes: ff8f83708b3e ('Input: synaptics-rmi4 - add support for 2D sensors and F11') Signed-off-by: Dan Carpenter Acked-by: Andrew Duggan diff --git a/drivers/input/rmi4/rmi_f11.c b/drivers/input/rmi4/r

Re: [PATCH 4/8] cpufreq/schedutil: sysfs capacity margin tunable

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:08PM -0700, Michael Turquette wrote: > With the addition of the global cfs capacity margin helpers in patch, > "sched/cpufreq: new cfs capacity margin helpers", we can now export > sysfs tunables from the schedutil governor. This allows privileged users > to tune the v

Re: [PATCH 5/8] sched/cpufreq: pass sched class into cpufreq_update_util

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:09PM -0700, Michael Turquette wrote: > +++ b/include/linux/sched.h > @@ -2362,15 +2362,25 @@ extern u64 scheduler_tick_max_deferment(void); > static inline bool sched_can_stop_tick(void) { return false; } > #endif > > +enum sched_class_util { > + cfs_util, > +

Re: [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-15 Thread Martin K. Petersen
> "KY" == KY Srinivasan writes: KY> Till recently I had not. However, we do support publishing wwn in KY> the guest and some customers wanted this. That is the reason I am KY> attaching FC transport and working through the issues. With this KY> change, I now have wwn names published in the gu

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Theodore Ts'o
On Tue, Mar 15, 2016 at 01:43:01PM -0700, Linus Torvalds wrote: > Put another way: this is not about theoretical leaks - because those > are totally irrelevant (in theory, the original discard writer had > access to all that stale data anyway). This is about making it a > practical interface that d

Re: [PATCH 1/2] x86/mm/pat: Change pat_disable() to emulate PAT table

2016-03-15 Thread Luis R. Rodriguez
On Mon, Mar 14, 2016 at 09:11:16PM -0600, Toshi Kani wrote: > On Tue, 2016-03-15 at 01:29 +0100, Luis R. Rodriguez wrote: > > I like this approach more as it stuff more PAT setup on its own type > > of calls, but: > > > > On Sat, Mar 12, 2016 at 12:55:44PM +0100, Borislav Petkov wrote: > > > diff

Re: [PATCH 6/8] cpufreq/schedutil: sum per-sched class utilization

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:10PM -0700, Michael Turquette wrote: > +static unsigned long sugov_sum_total_util(struct sugov_cpu *sg_cpu) > +{ > + enum sched_class_util sc; > + > + /* sum the utilization of all sched classes */ > + sg_cpu->total_util = 0; > + for (sc = 0; sc < nr_u

[PATCH] ARM: pxa/raumfeld: use PROPERTY_ENTRY_INTEGER to define props

2016-03-15 Thread Arnd Bergmann
gcc-6.0 notices that the use of the property_entry in this file that was recently introduced cannot work right, as we initialize the wrong field: raumfeld.c:387:3: error: the address of 'raumfeld_rotary_encoder_steps' will always evaluate as 'true' [-Werror=address] DEV_PROP_U32, 1, &raumfeld_

Re: [PATCH 7/8] cpufreq: Frequency invariant scheduler load-tracking support

2016-03-15 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 01:19:17PM -0700, Michael Turquette wrote: > That's what I had in mind. I guess that some day there will be a need to > select implementations at run-time for both cpufreq (e.g. different > cpufreq drivers might implement arch_scale_freq_capacity) and for the > !CONFIG_CPU_F

Re: [PATCH 7/8] cpufreq: Frequency invariant scheduler load-tracking support

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:11PM -0700, Michael Turquette wrote: > +static DEFINE_PER_CPU(unsigned long, freq_scale) = SCHED_CAPACITY_SCALE; > + > +unsigned long cpufreq_scale_freq_capacity(struct sched_domain *sd, int cpu) > +{ > + return per_cpu(freq_scale, cpu); > +} These should be in a

Re: [RFC v2 -next 0/2] virtio-net: Advised MTU feature

2016-03-15 Thread Rick Jones
On 03/15/2016 02:04 PM, Aaron Conole wrote: The following series adds the ability for a hypervisor to set an MTU on the guest during feature negotiation phase. This is useful for VM orchestration when, for instance, tunneling is involved and the MTU of the various systems should be homogenous. T

Re: [PATCH] kbuild: Add option to turn incompatible pointer check into error

2016-03-15 Thread Michal Marek
Dne 8.3.2016 v 10:19 Ingo Molnar napsal(a): > > * Thomas Gleixner wrote: > >> On Tue, 8 Mar 2016, Daniel Wagner wrote: >> >>> From: Daniel Wagner >>> >>> With the introduction of the simple wait API we have two very >>> similar APIs in the kernel. For example wake_up() and swake_up() >>> is onl

[PATCH] ARM: davinci: only use NVMEM when available

2016-03-15 Thread Arnd Bergmann
The davinci platform contains code that calls into the nvmem subsystem, but that might be a loadable module, causing a link error: arch/arm/mach-davinci/built-in.o: In function `davinci_get_mac_addr': :(.text+0x1088): undefined reference to `nvmem_device_read' arch/arm/mach-davinci/built-in.o: In

[PATCH] tpm_crb: drop struct resource res from struct crb_priv

2016-03-15 Thread Jarkko Sakkinen
The iomem resource is needed only temporarily so it is better to pass it on instead of storing it permanently. Named the variable as io_res so that the code better documents itself. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c | 29 - 1 file changed,

[PATCH] iommu: provide of_xlate pointer unconditionally

2016-03-15 Thread Arnd Bergmann
iommu drivers that support the standard DT bindings use a of_xlate callback pointer, but that is only part of struct iommu_ops when CONFIG_OF_IOMMU is enabled, leading to build errors in randconfig builds when that is not provided: drivers/iommu/mtk_iommu.c:497:2: error: unknown field 'of_xlate' s

[PATCH] aio: rewrite aio_thread_op_foo_at to avoid 64-bit get_user

2016-03-15 Thread Arnd Bergmann
Most architectures cannot access 64-bit integers using get_user or __get_user, so we get a build error in the new aio_thread_op_foo_at function: fs/built-in.o: In function `aio_thread_op_foo_at': aio.c:(.text+0x252de): undefined reference to `__get_user_bad' aio.c:(.text+0x252e4): undefined refere

Re: [PATCH] kbuild: Add option to turn incompatible pointer check into error

2016-03-15 Thread Michal Marek
Dne 15.3.2016 v 22:34 Michal Marek napsal(a): > Dne 8.3.2016 v 10:19 Ingo Molnar napsal(a): >> Note that there will be a few build failures triggered by this, for example >> this >> fix from linux-next is needed: >> >>> commit db9b60400f9253c25ae639797df2d0ff7a35d9d8 >>> Author: Sudip Mukherjee

[PATCH] qla2xxx: avoid maybe_uninitialized warning

2016-03-15 Thread Arnd Bergmann
The qlt_check_reserve_free_req() function produces an incorrect warning when CONFIG_PROFILE_ANNOTATED_BRANCHES is set: drivers/scsi/qla2xxx/qla_target.c: In function 'qlt_check_reserve_free_req': drivers/scsi/qla2xxx/qla_target.c:1887:3: error: 'cnt_in' may be used uninitialized in this function

Re: [PATCH 8/8] sched: prefer cpufreq_scale_freq_capacity

2016-03-15 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:12PM -0700, Michael Turquette wrote: > +++ b/kernel/sched/sched.h > @@ -1368,7 +1368,21 @@ static inline int hrtick_enabled(struct rq *rq) > #ifdef CONFIG_SMP > extern void sched_avg_update(struct rq *rq); > > -#ifndef arch_scale_freq_capacity > +#ifdef CONFIG_CPU

[PATCH] ASoC: rt5616: add I2C dependency

2016-03-15 Thread Arnd Bergmann
The rt5616 codec registers itself as an i2c driver, but can be enabled even when i2c is turned off, which leads to a build error: codecs/rt5616.c:1419:1: error: data definition has no type or storage class [-Werror] module_i2c_driver(rt5616_i2c_driver); This adds an explicit Kconfig dependency,

Re: [PATCH 2/8] sched/fair: add margin to utilization update

2016-03-15 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 02:28:48PM -0700, Michael Turquette wrote: > Quoting Peter Zijlstra (2016-03-15 14:16:14) > > On Sun, Mar 13, 2016 at 10:22:06PM -0700, Michael Turquette wrote: > > > @@ -2840,6 +2853,8 @@ static inline void update_load_avg(struct > > > sched_entity *se, int update_tg) > >

[PATCH] rtc: asm9260: remove incorrect __init/__exit annotations

2016-03-15 Thread Arnd Bergmann
The probe and remove callbacks of the platform driver are marked __init and __exit, respectively. However, this is not a correct way to annotate them, as it will result in those sections to be discarded at link time or after boot, while we can actually call them again based on manual unbinding, or

Re: [ANNOUNCE] 3.14.64-rt67

2016-03-15 Thread Paul Gortmaker
On Mon, Mar 14, 2016 at 11:49 AM, Steven Rostedt wrote: > > Dear RT Folks, > > 3.14 release on PI(E) Day! > > I'm pleased to announce the 3.14.64-rt67 stable release. Testing this with what is largely a x86-64 defconfig but with RT_FULL, I now see: root@dell760-paul:~# dmesg|grep NOH [8.6058

[PATCH] memstick: r592: avoid gcc-6 warning

2016-03-15 Thread Arnd Bergmann
The r592 driver relies on behavior of the DMA mapping API that is normally observed but not guaranteed by the API. Instead it uses a runtime check to fail transfers if the API ever behaves differently. When CONFIG_NEED_SG_DMA_LENGTH is not set, one of the checks turns into a comparison of a variab

[PATCH] drivers/firmware/broadcom/bcm47xx_nvram.c: fix incorrect __ioread32_copy

2016-03-15 Thread Aaro Koskinen
Commit 1f330c327900 ("drivers/firmware/broadcom/bcm47xx_nvram.c: use __ioread32_copy() instead of open-coding") switched to use a generic copy functions, but failed to notice that the header pointer is updated between the two copies, resulting in bogus data being copied in the latter one. Fix by ke

[PATCH] net: mvneta: bm: clarify dependencies

2016-03-15 Thread Arnd Bergmann
MVNETA_BM has a dependency on MVNETA, so we can only select the former if the latter is enabled. However, the code dependency is the reverse: The mvneta module can call into the mvneta_bm module, so mvneta cannot be a built-in if mvneta_bm is a module, or we get a link error: drivers/net/built-in.

Re: [PATCH 4/8] cpufreq/schedutil: sysfs capacity margin tunable

2016-03-15 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 02:40:43PM -0700, Michael Turquette wrote: > Quoting Peter Zijlstra (2016-03-15 14:20:47) > > On Sun, Mar 13, 2016 at 10:22:08PM -0700, Michael Turquette wrote: > > > With the addition of the global cfs capacity margin helpers in patch, > > > "sched/cpufreq: new cfs capacity

Re: [PATCH] qla2xxx: avoid maybe_uninitialized warning

2016-03-15 Thread James Bottomley
On Tue, 2016-03-15 at 22:40 +0100, Arnd Bergmann wrote: > The qlt_check_reserve_free_req() function produces an incorrect > warning when CONFIG_PROFILE_ANNOTATED_BRANCHES is set: > > drivers/scsi/qla2xxx/qla_target.c: In function > 'qlt_check_reserve_free_req': > drivers/scsi/qla2xxx/qla_target.c

Re: [PATCH] staging/comedi/dt282x: avoid integer overflow warning

2016-03-15 Thread Arnd Bergmann
On Tuesday 15 March 2016 21:35:40 Hartley Sweeten wrote: > On Monday, March 14, 2016 3:48 PM, Arnd Bergmann wrote: > > gcc-6 warns about passing negative signed integer into swab16() > > in the dt282x driver: > > > > > The warning makes sense, though the code is correct as far as I > > can tell.

RE: [PATCH] staging/comedi/dt282x: avoid integer overflow warning

2016-03-15 Thread Hartley Sweeten
On Monday, March 14, 2016 3:48 PM, Arnd Bergmann wrote: > gcc-6 warns about passing negative signed integer into swab16() > in the dt282x driver: > The warning makes sense, though the code is correct as far as I > can tell. > > This disambiguates the operation by making the constant expressions

Re: [PATCH 1/8] sched/cpufreq: remove cpufreq_trigger_update()

2016-03-15 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 02:45:45PM -0700, Michael Turquette wrote: > Quoting Peter Zijlstra (2016-03-15 14:14:48) > > On Sun, Mar 13, 2016 at 10:22:05PM -0700, Michael Turquette wrote: > > > cpufreq_trigger_update() was introduced in "cpufreq: Rework the > > > scheduler hooks for triggering updates

Re: [PATCH 1/5] ftrace perf: Check sample types only for sampling events

2016-03-15 Thread Jiri Olsa
On Tue, Mar 15, 2016 at 04:06:46PM -0400, Steven Rostedt wrote: > On Wed, 9 Mar 2016 21:46:41 +0100 > Jiri Olsa wrote: > > > Currently we check sample type for ftrace:function event > > even if it's not created as sampling event. That prevents > > creating ftrace_function event in counting mode.

Re: linux-next: Tree for Mar 14 (mips qemu failure bisected)

2016-03-15 Thread Qais Yousef
Hi Guenter, On 15/03/2016 05:26, Guenter Roeck wrote: On Mon, Mar 14, 2016 at 07:37:29AM -0700, Guenter Roeck wrote: On Mon, Mar 14, 2016 at 05:40:37PM +1100, Stephen Rothwell wrote: Hi all, Changes since 20160311: The vfs tree gained a conflict against Linus' tree. I also applied a patch fo

Re: linux-next: build failure after merge of the aio tree

2016-03-15 Thread Arnd Bergmann
__get_user() for 64 bit values") > > > > > > This is due to a bug in the powerpc __get_user_check() macro (the return > > > value is defined to be "unsigned long" which is only 32 bits on a 32 > > > bit platform). > > > > m68k allmod

Re: [PATCH 1/2] iio: mma8452: add i2c_device_id for mma8451

2016-03-15 Thread Jonathan Cameron
On 14/03/16 11:33, Martin Kepplinger wrote: > This was forgotten about and is added for consistency now > > Signed-off-by: Martin Kepplinger > --- > I'm sorry, I messed up the first patch. Understandable though, given > it's complexity. Took me a disturbingly long time to notice what was wrong.

Re: [PATCH] ia64: define ioremap_uc()

2016-03-15 Thread Luis R. Rodriguez
On Mon, Mar 07, 2016 at 12:34:54PM -0800, Luis R. Rodriguez wrote: > All architectures now need ioremap_uc(), ia64 seems defines > this already through its ioremap_nocache() and it already > ensures it *only* uses UC. > > Reported-by: 0 day bot > Signed-off-by: Luis R. Rodriguez *Poke* Luis

Re: [PATCH 2/2] iio: mma8452: use runtime pm instead of device specific autosleep

2016-03-15 Thread Jonathan Cameron
On 14/03/16 11:26, Martin Kepplinger wrote: > What is this autosleep? > --- > It slows down the device after x seconds of inactivity. The thing is, we have > really achieved almost the same by runtime pm. > > differnces are: > > autosleep > * uses more power during inactivity

Re: [PATCH v2] devpts: Make ptmx be owned by the userns owner as a fallback

2016-03-15 Thread Serge E. Hallyn
Quoting Andy Lutomirski (l...@kernel.org): > New devpts instances have ptmx owned by the inner uid and gid 0. > > For container-style namespaces (LXC, etc), this should have no > effect, this is fine. > > For sandbox-style namespaces (xdg-app and similar), this is > problematic -- there may not b

[RFT] iommu/amd: use subsys_initcall() on amdv2 iommu

2016-03-15 Thread Luis R. Rodriguez
We need to ensure amd iommu v2 initializes before driver uses such as drivers/gpu/drm/amd/amdkfd/kfd_module.c, to do this make its init routine a subsys_initcall() which ensures its load init is called first than modules when built-in. Signed-off-by: Luis R. Rodriguez --- Can someone test if thi

Re: [PATCH] drivers/firmware/broadcom/bcm47xx_nvram.c: fix incorrect __ioread32_copy

2016-03-15 Thread Stephen Boyd
On 03/15, Aaro Koskinen wrote: > Commit 1f330c327900 ("drivers/firmware/broadcom/bcm47xx_nvram.c: use > __ioread32_copy() instead of open-coding") switched to use a generic > copy functions, but failed to notice that the header pointer is > updated between the two copies, resulting in bogus data be

Re: [PATCH v17 2/6] ARM: socfpga: add bindings document for fpga bridge drivers

2016-03-15 Thread atull
On Sat, 5 Mar 2016, Rob Herring wrote: > > +Example: > > + hps_fpgabridge0: fpgabridge@ff40 { > > No underscores. > > fpga-bridge@... Hi Rob, The dtc is not letting me compile if I use a hyphen in the label. I think we have to use hyphens in the node names and underscores in the labels.

Re: [PATCH] ia64: define ioremap_uc()

2016-03-15 Thread Andrew Morton
On Mon, 7 Mar 2016 12:34:54 -0800 "Luis R. Rodriguez" wrote: > All architectures now need ioremap_uc(), ia64 seems defines > this already through its ioremap_nocache() and it already > ensures it *only* uses UC. > > Reported-by: 0 day bot > Signed-off-by: Luis R. Rodriguez > --- > > Note, th

Re: [PATCH 0/4] Remove un-needed 'major' registration when alloc_disk(0) is used.

2016-03-15 Thread NeilBrown
On Tue, Mar 15 2016, Ross Zwisler wrote: > On Thu, Mar 10, 2016 at 08:59:28AM +1100, NeilBrown wrote: >> When alloc_disk(0) is used, the ->major number is ignored and >> irrelevant. Yet several drivers register a major number anyway. >> >> This series of patches removes the pointless registratio

Re: [PATCH] clk: sunxi: Remove use of VLAIS

2016-03-15 Thread Stephen Boyd
On 03/08, Maxime Ripard wrote: > On Fri, Mar 04, 2016 at 09:18:41AM -0800, Stephen Boyd wrote: > > Oh right. Let's hope third time is the last. > > > > ---8<--- > > From: Stephen Boyd > > Subject: [PATCH] clk: sunxi: Remove use of variable length array > > > > Using an array allocated on the sta

RE: [PATCH] ia64: define ioremap_uc()

2016-03-15 Thread Luck, Tony
>> All architectures now need ioremap_uc(), ia64 seems defines >> this already through its ioremap_nocache() and it already >> ensures it *only* uses UC. >> >> Reported-by: 0 day bot >> Signed-off-by: Luis R. Rodriguez > > *Poke* Luis, Thanks for the reminder. Applied. -Tony

RE: [PATCH] ia64: define ioremap_uc()

2016-03-15 Thread Luck, Tony
>> Note, this is actually needed since v4.3 to complete an allyesconfig >> compile on ia64, there were others archs that needed this, and this >> one just seems to have fallen through the cracks. > > So a cc:stable was needed. I've added that to my copy of the patch. > Tony ack? Acked-by: Tony L

Re: [PATCH 20/41] clk: versatile: Remove CLK_IS_ROOT

2016-03-15 Thread Stephen Boyd
On 03/01, Stephen Boyd wrote: > This flag is a no-op now. Remove usage of the flag. > > Cc: Pawel Moll > Cc: Linus Walleij > Signed-off-by: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2] x86: PAT: Documentation: rewrite "MTRR effects on PAT / non-PAT systems"

2016-03-15 Thread Luis R. Rodriguez
On Sat, Mar 05, 2016 at 04:39:58AM +, Elliott, Robert (Persistent Memory) wrote: > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > > ow...@vger.kernel.org] On Behalf Of Luis R. Rodriguez > > Sent: Friday, March 04, 2016 4:45 PM > > Subject: [PA

[PULL] Documentation for 4.6

2016-03-15 Thread Jonathan Corbet
The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47 -0800) are available in the git repository at: git://git.lwn.net/linux.git tags/docs-for-linus for you to fetch changes up to abfa6cd8cda71b9071191e72711bd474e539b1b2: modsign:

Re: [PATCH v2] x86: PAT: Documentation: rewrite "MTRR effects on PAT / non-PAT systems"

2016-03-15 Thread Luis R. Rodriguez
On Sat, Mar 05, 2016 at 12:52:55PM +0100, Ingo Molnar wrote: > > * Luis R. Rodriguez wrote: > > > The current documentation refers to using set_memory_wc() as a > > possible hole strategy when you have overlapping ioremap() regions, > > The whole explanation should talk about virtual aliases ov

Hello

2016-03-15 Thread Roberta Bennett
I am Mrs. Liliane Bettencourt, I have a confidential donation for you to handle, please Email: lilianehb...@gmail.com​​​ This message is the property of Kamehameha Schools and any attachments are confidential to the intended recipient at the e-mail address to which it has been addressed. If you

Re: [PATCH v4 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-15 Thread Benson Leung
On Tue, Mar 8, 2016 at 10:09 AM, kbuild test robot wrote: > Hi Sameer, > > [auto build test WARNING on v4.5-rc7] > [also build test WARNING on next-20160308] > [if your patch is applied to the wrong git tree, please drop us a note to > help improving the system] > > url: > https://github.com/

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Dave Chinner
On Tue, Mar 15, 2016 at 01:43:01PM -0700, Linus Torvalds wrote: > On Tue, Mar 15, 2016 at 1:14 PM, Dave Chinner wrote: > > > > Root can still change the group id of a file that has exposed stale > > data and hence make it visible outside of the group based > > containment wall. > > Ok, Dave, now

Re: [ANNOUNCE] 3.10.100-rt110

2016-03-15 Thread Paul Gortmaker
On Mon, Mar 14, 2016 at 11:51 AM, Steven Rostedt wrote: > > Dear RT Folks, > > I'm pleased to announce the 3.10.100-rt110 stable release. > > > This release is just an update to the new stable 3.10.100 version > and no RT specific changes have been made. So, this has the same issue that 3.14-rt h

[GIT PULL] first round of SCSI updates for the 4.5+ merge window

2016-03-15 Thread James Bottomley
This pull includes driver updates from the usual suspects (stex, hpsa, ncr5380, scsi_dh, qla2xxx, be2iscsi, hisi_sas, cxlflash, aacraid, mp3sas, megaraid_sas, ibmvscsi, ufs) plus an assortment of miscellaneous fixes. The major user visible change of this pull is that we've moved from monotonically

[PATCH 0/5] da8xx USB clocks

2016-03-15 Thread David Lechner
I've implemented some proper clocks for the USB PHY clocks on da8xx. For those not familiar with the architecture, the SoC has one USB 1.1 OHCI port and one USB 2.O OTG port. The USB 1.1 PHY clock can optionally be supplied by the PLL in the USB 2.0 PHY. I have seen some comments in the past that

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Eric Sandeen
On 3/15/16 3:14 PM, Dave Chinner wrote: > What we are missing is actual numbers that show that exposing stale > data is a /significant/ win for these applications that are > demanding it. And then we need evidence proving that the problem is > actually systemic and not just a hack around a bad impl

[PATCH 1/5] ARM: davinci: defined missing CFGCHIP2_REFFREQ_* macros for MUSB PHY

2016-03-15 Thread David Lechner
From: Petr Kulhavy Only few MUSB PHY reference clock frequencies were defined. This patch defines macros for the missing frequencies: 19.2MHz, 38.4MHz, 13MHz, 26MHz, 20MHz, 40MHz Signed-off-by: Petr Kulhavy . Acked-by: Sergei Shtylyov Signed-off-by: Bin Liu --- include/linux/platform_data/us

[PATCH 5/5] usb: musb-da8xx: remove board-specific clock handling

2016-03-15 Thread David Lechner
This driver should not have to worry about how the clocks are configured on a system. Added a usb20_phy clock to handle the USB 2.0 PLL clock externally. Also changed to using devm_ to simplify code a bit. Signed-off-by: David Lechner --- drivers/usb/musb/da8xx.c | 93 +++---

[PATCH 3/5] ARM: davinci: da8xx: add cfgchip2 to resources

2016-03-15 Thread David Lechner
The usb ohci driver has been change to not include mach/*, so we need to pass the cfgchip2 address to the driver so that it can turn the usb phy on and off. Signed-off-by: David Lechner --- arch/arm/mach-davinci/usb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-davinci

[PATCH 4/5] usb: ohci-da8xx: Remove clock code that references mach

2016-03-15 Thread David Lechner
Including mach/* is frowned upon in device drivers, so get rid of it. This replaces usb20_clk with usb11_phy_clk that represents the 48MHz usb phy clock. The interaction with the usb20 (musb) subsystem does no belong here and has been implemented in da830.c/da850.c with the rest of the da8xx clock

[PATCH RFC 1/2] scatterlist: add mempool based chained SG alloc/free api

2016-03-15 Thread Ming Lin
From: Ming Lin This copied code from scsi_lib.c to scatterlist.c and modified it a bit. Signed-off-by: Ming Lin --- include/linux/scatterlist.h | 12 lib/scatterlist.c | 156 2 files changed, 168 insertions(+) diff --git a/include/l

[PATCH RFC 0/2] mempool based chained scatterlist alloc/free api api

2016-03-15 Thread Ming Lin
From: Ming Lin Hi list, This moves the mempool based chained scatterlist alloc/free code from scsi_lib.c to lib/scatterlist.c. So other drivers(for example, the under development NVMe over fabric drivers) can also use it. Ming Lin (2): scatterlist: add mempool based chained SG alloc/free api

[PATCH RFC 2/2] scsi: use the new chained SG api

2016-03-15 Thread Ming Lin
From: Ming Lin This removes the old code and uses the new chained SG alloc/free api. Signed-off-by: Ming Lin --- drivers/scsi/scsi_lib.c | 129 +++- 1 file changed, 7 insertions(+), 122 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scs

[PATCH 2/5] ARM: davinci: da8xx: add usb phy clocks

2016-03-15 Thread David Lechner
Up to this point, the USB phy clock configuration was handled manually in the board files and in the usb drivers. This adds proper clocks so that the usb drivers can use clk_get and clk_enable and not have to worry about the details. Also, the related code is removed from the board files. Signed-o

Re: [PATCH] drivers/firmware/broadcom/bcm47xx_nvram.c: fix incorrect __ioread32_copy

2016-03-15 Thread Aaro Koskinen
Hi, On Tue, Mar 15, 2016 at 03:13:24PM -0700, Stephen Boyd wrote: > Ah sorry. That was a stupid mistake. But it might be bad to > access header->len now because that's still some device memory > and not the copy of the memory into ram anymore. How about > this patch instead? Commit text and author

Re: [PATCH 3/5] ARM: davinci: da8xx: add cfgchip2 to resources

2016-03-15 Thread Sergei Shtylyov
Hello. On 03/16/2016 01:37 AM, David Lechner wrote: The usb ohci driver has been change to not include mach/*, so we need to pass the cfgchip2 address to the driver so that it can turn the usb phy on and off. Signed-off-by: David Lechner --- arch/arm/mach-davinci/usb.c | 5 + 1 file ch

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Theodore Ts'o
On Wed, Mar 16, 2016 at 09:33:13AM +1100, Dave Chinner wrote: > > Stale data escaping containment is a security issue. Enabling > generic kernel mechanisms to *enable containment escape* is > fundamentally wrong, and relying on userspace to Do The Right Thing > is even more of a gamble, IMO. We a

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-15 Thread Toshi Kani
On Tue, 2016-03-15 at 01:15 +0100, Luis R. Rodriguez wrote: > On Fri, Mar 11, 2016 at 06:16:36PM -0700, Toshi Kani wrote: > > On Fri, 2016-03-11 at 15:34 -0800, Luis R. Rodriguez wrote: > > > On Fri, Mar 11, 2016 at 3:56 PM, Toshi Kani > > > wrote: > > > > On Fri, 2016-03-11 at 23:17 +0100, Luis R

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-03-15 Thread Robert Jarzmik
Robert Jarzmik writes: > Fabio Estevam writes: >> Tested-by: Fabio Estevam > > Thanks Fabio for the test. > > I also tried with a different different approach. > > I built the different platforms (imx v6, etc ...) : > - one version (a) on a vanilla v4.5-rc2 > - one version (b) on a vaniall v4

RE: [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-15 Thread KY Srinivasan
> -Original Message- > From: Martin K. Petersen [mailto:martin.peter...@oracle.com] > Sent: Tuesday, March 15, 2016 2:25 PM > To: KY Srinivasan > Cc: Christoph Hellwig ; gre...@linuxfoundation.org; > linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > oher...@suse.com; jbottom.

Re: [PATCH] drivers:block: cpqarray clean up

2016-03-15 Thread Jens Axboe
On 03/15/2016 01:21 AM, Valentin Rothberg wrote: Commit d436641439e0 ("cpqarray: remove it from the kernel") removes the Kconfig option BLK_CPQ_DA and cpqarray. Remove the dead build rule in the Makefile. Thanks, applied. -- Jens Axboe

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Linus Torvalds
On Tue, Mar 15, 2016 at 3:33 PM, Dave Chinner wrote: > >> There's no "group based containment wall" that is some kind of >> absolute protection border. > > Precisely my point - it's being pitched as a generic containment > mechanism, but it really isn't. No it hasn't. It has been pitched as "C

[PATCH v2] drivers/firmware/broadcom/bcm47xx_nvram.c: fix incorrect __ioread32_copy

2016-03-15 Thread Aaro Koskinen
Commit 1f330c327900 ("drivers/firmware/broadcom/bcm47xx_nvram.c: use __ioread32_copy() instead of open-coding") switched to use a generic copy function, but failed to notice that the header pointer is updated between the two copies, resulting in bogus data being copied in the latter one. Fix by kee

Re: [PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-15 Thread Pandruvada, Srinivas
On Mon, 2016-03-14 at 11:12 -0700, Srikar Srimath Tirumala wrote: > Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ > cur_state whenever any trip is triggered or cur state is changed. > > This change allows usermode apps to register themselves to get > notified, when certain thermal

Re: [PATCH RFC 0/2] mempool based chained scatterlist alloc/free api api

2016-03-15 Thread James Bottomley
On Tue, 2016-03-15 at 15:39 -0700, Ming Lin wrote: > From: Ming Lin > > Hi list, > > This moves the mempool based chained scatterlist alloc/free code from > scsi_lib.c to lib/scatterlist.c. > > So other drivers(for example, the under development NVMe over fabric > drivers) can also use it. >

[PATCH RFC] PCI: Fix for panic while enabling SR-IOV

2016-03-15 Thread Babu Moger
We noticed this panic while enabling SR-IOV in sparc. === mlx4_core: Mellanox ConnectX core driver v2.2-1 (Jan 1 2015) mlx4_core: Initializing 0007:01:00.0 mlx4_core 0007:01:00.0: Enabling SR-IOV with 5 VFs mlx4_core: Initializing 0007:01:00.1 Unable to

Re: [PATCH v2] drivers/firmware/broadcom/bcm47xx_nvram.c: fix incorrect __ioread32_copy

2016-03-15 Thread Stephen Boyd
On 03/16, Aaro Koskinen wrote: > Commit 1f330c327900 ("drivers/firmware/broadcom/bcm47xx_nvram.c: use > __ioread32_copy() instead of open-coding") switched to use a generic copy > function, but failed to notice that the header pointer is updated between > the two copies, resulting in bogus data bei

Re: [PATCH v6 5/8] kbuild: add fine grained build dependencies for exported symbols

2016-03-15 Thread Nicolas Pitre
On Tue, 15 Mar 2016, Michal Marek wrote: > Dne 14.3.2016 v 03:42 Nicolas Pitre napsal(a): > > +# Filter out exported kernel symbol names from the preprocessor output. > > +# See also __KSYM_DEPS__ in include/linux/export.h. > > +# We disable the depfile generation here, so as not to overwrite the

Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks

2016-03-15 Thread Linus Torvalds
On Tue, Mar 15, 2016 at 4:06 PM, Linus Torvalds wrote: > > And yes, "keep the patch entirely inside google" is obviously one good > way to limit the interface. But if there are really other groups that > want to explore this, then that sounds like a pretty horrible model > too. Side note: I reall

<    1   2   3   4   5   6   7   8   >