Re: Thunderbolt hotplug not working on MacMini7,1

2015-04-23 Thread Matthew Garrett
On Thu, Apr 23, 2015 at 12:08:01PM +0200, Andreas Noever wrote: > Hi Adam, > > On my system (MacBookPro10,1 - 4 channel TB1) the bridges and the > controller both use 0x1547 and are only differentiated by > subvendor/subdevice. Do they have the same PCI class? -- Matthew Garrett | mj...@srcf.uc

[PATCH] drm/msm: Attach assigned encoder to eDP and DSI connectors

2015-04-23 Thread Hai Li
drm_mode_connector_attach_encoder() function call is missing during eDP and DSI connector initialization. As a result, no encoder is returned by DRM_IOCTL_MODE_GETCONNECTOR system call. This change is to fix this issue. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.c | 10 +

Re: [PATCH 2/2] misc: Add initial Digital Timing Engine (DTE) driver for cygnus

2015-04-23 Thread Jonathan Richardson
Hi Arnd, Thanks for the initial feedback. I'll investigate your suggestions and get back to you if I have any questions before making some of the API changes you've suggested. On 15-04-23 01:04 AM, Arnd Bergmann wrote: > On Wednesday 22 April 2015 16:22:03 Jonathan Richardson wrote: >> Reviewed-b

Re: Broadcom 43340 module on iMX6DL

2015-04-23 Thread Dmitry Shmidt
On Thu, Apr 23, 2015 at 11:10 AM, John Tobias wrote: > Hello Guys, > > I am trying to use the bcmdhd wifi driver 43340 module on iMX6DL > processor using kernel Freescale GA (3.10.53). > > I am having an issue with the sdio registration. I would like to know > if anyone here had the same issue and

Re: Enabling regulators form userspace

2015-04-23 Thread Dmitry Torokhov
On Thu, Apr 23, 2015 at 06:13:28PM +0100, Mark Brown wrote: > On Thu, Apr 23, 2015 at 09:08:07AM -0700, Dmitry Torokhov wrote: > > On Thu, Apr 23, 2015 at 11:35:45AM +0100, Mark Brown wrote: > > > > This really sounds like you should be writing a device driver here, even > > > if it's just a littl

Re: [PATCH v2] Input - mt: Fix input_mt_get_slot_by_key

2015-04-23 Thread Dmitry Torokhov
On Thu, Apr 23, 2015 at 07:10:55PM +0200, Henrik Rydberg wrote: > > "Creation, replacement and destruction of contacts is achieved by > > modifying the ABS_MT_TRACKING_ID of the associated slot. A > > non-negative tracking id is interpreted as a contact, and the value -1 > > denotes an unused slot

Re: [PATCH 1/3] of: Allow OF to be enabled if COMPILE_TEST to increase coverage

2015-04-23 Thread Rob Herring
On Thu, Apr 23, 2015 at 7:03 AM, Pantelis Antoniou wrote: > Hi Rob, > >> On Apr 6, 2015, at 16:13 , Rob Herring wrote: >> >> +Pantelis >> >> On Sun, Apr 5, 2015 at 9:59 AM, Geert Uytterhoeven >> wrote: >>> Currently the OF configuration symbol is explicitly selected on >>> architectures that su

[PATCH V2] Test compaction of mlocked memory

2015-04-23 Thread Sri Jayaramappa
Commit commit 5bbe3547aa3b ("mm: allow compaction of unevictable pages") introduced a sysctl that allows userspace to enable scanning of locked pages for compaction. This patch introduces a new test which fragments main memory and attempts to allocate a number of huge pages to exercise this compac

[PATCH v2] locking/rwsem: reduce spinlock contention in wakeup after up_read/up_write

2015-04-23 Thread Waiman Long
In up_read()/up_write(), rwsem_wake() will be called whenever it detects that some writers/readers are waiting. The rwsem_wake() function will take the wait_lock and call __rwsem_do_wake() to do the real wakeup. This can be a problem especially for up_read() where many readers can potentially call

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Andy Lutomirski
On Thu, Apr 23, 2015 at 10:14 AM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 09:50:17AM -0700, Andy Lutomirski wrote: >> On Thu, Apr 23, 2015 at 9:41 AM, Denys Vlasenko >> wrote: >> > An alternative fix would be, if we decided to schedule >> > in an interrupt, check %ss for zero and reload

Re: [PATCH] staging: fbtft: Disable DMA support if DMA is not available

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 08:06:52PM +0200, Geert Uytterhoeven wrote: > If NO_DMA=y: > > drivers/built-in.o: In function `fbtft_framebuffer_alloc': > (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' > > As DMA support is already optional, make it depend on HAS_DMA. > > Signed

Re: [PATCH 1/3] of: Allow OF to be enabled if COMPILE_TEST to increase coverage

2015-04-23 Thread Pantelis Antoniou
Hi Rob, > On Apr 23, 2015, at 21:22 , Rob Herring wrote: > > On Thu, Apr 23, 2015 at 7:03 AM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Apr 6, 2015, at 16:13 , Rob Herring wrote: >>> >>> +Pantelis >>> >>> On Sun, Apr 5, 2015 at 9:59 AM, Geert Uytterhoeven >>> wrote: Currently t

Re: [PATCH v3] ethernet: myri10ge: use arch_phys_wc_add()

2015-04-23 Thread David Miller
From: "Luis R. Rodriguez" Date: Tue, 21 Apr 2015 13:09:45 -0700 > From: "Luis R. Rodriguez" > > This driver already uses ioremap_wc() on the same range > so when write-combining is available that will be used > instead. > ... > Signed-off-by: Luis R. Rodriguez I can't wait forever for the d

Re: [PATCH 0/4] cpufreq: use generic cpufreq drivers for Exynos5250 platform

2015-04-23 Thread Anand Moon
Hi Bartlomiej/Kevin, I have being testing github branch on OdroidXU3 board, Would you consider testing by applying patch. https://lkml.org/lkml/2015/1/30/423 On my board it stuck after booting. Below is the console log. * CPUFreq Utilities: Setting ondemand CPUFreq governor... [ OK ] * CPU

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Richard Weinberger
On Thu, Apr 23, 2015 at 3:05 PM, Greg Kroah-Hartman wrote: > Did I miss anything else here? Are there any technical reasons I'm > forgetting about for why this can't be pulled in as-is for this merge > window? Maybe I get again accused of ``being a jerk'' but I still dare to ask about Boris' un

[PATCH v2 1/4] iio: magn: Add support for BMC150 magnetometer

2015-04-23 Thread Irina Tirdea
Add support for the Bosh BMC150 Magnetometer. The specification can be downloaded from: http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf. The chip contains both an accelerometer and a magnetometer. This patch adds support only for the magnetometer part. The

[PATCH v2 0/4] Add support for BMC150 magnetometer

2015-04-23 Thread Irina Tirdea
This is the second version for adding support for Bosch BMC150 magnetometer. It mostly contains fixes suggested by Jonathan. Changes in v2: - renamed IIO_CHAN_INFO_CALIBREPETITIONS to IIO_CHAN_INFO_OVERSAMPLING_RATIO - split the main patch in two patches: one that adds main functionality and ano

[PATCH v2 2/4] iio: magn: bmc150_magn: Add devicetree binding documentation

2015-04-23 Thread Irina Tirdea
Add binding documentation for Bosch BMC150 magnetometer. Signed-off-by: Irina Tirdea --- .../bindings/iio/magnetometer/bmc150_magn.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt diff

[PATCH v2 4/4] iio: magn: bmc150_magn: add oversampling ratio

2015-04-23 Thread Irina Tirdea
Export the oversampling ratio so that the user can change the number of repetions for x/y/z axis. The sampling frequency is limited by the oversampling ratio. The available sampling frequencies might change depending on the values of oversampling_ratio. The specification can be downloaded from: h

[PATCH v2 3/4] iio: core: Introduce IIO_CHAN_INFO_OVERSAMPLING_RATIO

2015-04-23 Thread Irina Tirdea
Some magnetometers can perform a number of repetitions in HW for each measurement to increase accuracy. One example is Bosch BMC150: http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf. Introduce an interface to set the oversampling ratio for these devices. Si

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Linus Torvalds
On Thu, Apr 23, 2015 at 11:24 AM, Andy Lutomirski wrote: > > 1. Do we consider this to be enough of a security issue that we want > to fix it for 64-bit userspace as well? > > 2. Do we fix it at sysret time (at the cost of an ss read even in the > best case on AMD chips) or at context switch time

Re: [PATCH] staging: fbtft: Disable DMA support if DMA is not available

2015-04-23 Thread Geert Uytterhoeven
On Thu, Apr 23, 2015 at 8:27 PM, Greg Kroah-Hartman wrote: > On Thu, Apr 23, 2015 at 08:06:52PM +0200, Geert Uytterhoeven wrote: >> If NO_DMA=y: >> >> drivers/built-in.o: In function `fbtft_framebuffer_alloc': >> (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' >> >> As DMA s

Re: [PATCH v2] Input - mt: Fix input_mt_get_slot_by_key

2015-04-23 Thread Benjamin Tissoires
On Apr 23 2015 or thereabouts, Dmitry Torokhov wrote: > On Thu, Apr 23, 2015 at 07:10:55PM +0200, Henrik Rydberg wrote: > > > "Creation, replacement and destruction of contacts is achieved by > > > modifying the ABS_MT_TRACKING_ID of the associated slot. A > > > non-negative tracking id is interpr

Re: Broadcom 43340 module on iMX6DL

2015-04-23 Thread Arend van Spriel
On 04/23/15 20:10, John Tobias wrote: Hello Guys, I am trying to use the bcmdhd wifi driver 43340 module on iMX6DL processor using kernel Freescale GA (3.10.53). I am having an issue with the sdio registration. I would like to know if anyone here had the same issue and how did you solve it?.

Re: [PATCH V2] Test compaction of mlocked memory

2015-04-23 Thread Eric B Munson
On Thu, 23 Apr 2015, Sri Jayaramappa wrote: > Commit commit 5bbe3547aa3b ("mm: allow compaction of unevictable pages") > introduced a sysctl that allows userspace to enable scanning of locked > pages for compaction. This patch introduces a new test which fragments > main memory and attempts to al

Re: Adding subpage support to NAND driver -- backwards compatibility concerns

2015-04-23 Thread Josh Cartwright
+Richard, who, when not being trolled on IRC, has been working on UBI(FS) stuff. On Thu, Apr 23, 2015 at 12:48:53PM +1000, Iwo Mergler wrote: > On Thu, 23 Apr 2015 03:29:44 +1000 > Ben Shelton wrote: > > We'd like to upstream our patch, but my concern is that UBIFS behaves > > differently when it

Re: [PATCH] locking/rwsem: reduce spinlock contention in wakeup after up_read/up_write

2015-04-23 Thread Waiman Long
On 04/18/2015 11:40 AM, Peter Zijlstra wrote: On Fri, Apr 17, 2015 at 10:03:18PM -0400, Waiman Long wrote: @@ -478,7 +515,28 @@ struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) { unsigned long flags; - raw_spin_lock_irqsave(&sem->wait_lock, flags); + /* +*

Re: Broadcom 43340 module on iMX6DL

2015-04-23 Thread John Tobias
Thanks Dmitry for the info. Arend: Yes, it's an android... Here's the info: 00060e80 de 02 f0 18 8c 00 e8 5e 8f 00 37 a3 00 e0 5e 8a |...^..7...^.| 00060e90 f4 77 a2 00 02 de 02 f0 00 00 01 bc 60 03 00 07 |.w..`...| 00060ea0 aa 01 bc 60 03 00 07 ab 01 bc 60 03 00 07 b7 01 |.

Re: [PATCH v2] Input - mt: Fix input_mt_get_slot_by_key

2015-04-23 Thread Dmitry Torokhov
On Thu, Apr 23, 2015 at 02:38:27PM -0400, Benjamin Tissoires wrote: > On Apr 23 2015 or thereabouts, Dmitry Torokhov wrote: > > On Thu, Apr 23, 2015 at 07:10:55PM +0200, Henrik Rydberg wrote: > > > > "Creation, replacement and destruction of contacts is achieved by > > > > modifying the ABS_MT_TRAC

[PATCH v2] staging: fbtft: Disable DMA support if DMA is not available

2015-04-23 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `fbtft_framebuffer_alloc': (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' As DMA support is already optional, make it depend on HAS_DMA. If !HAS_DMA, "dma" will always be false, and the compiler will optimize away the call to d

Re: [PATCH 2/2] Input - synaptics: pin 3 touches when the firmware reports 3 fingers

2015-04-23 Thread Benjamin Tissoires
On Apr 23 2015 or thereabouts, Dmitry Torokhov wrote: > On Wed, Apr 22, 2015 at 11:45:09AM -0400, Benjamin Tissoires wrote: > > Synaptics PS/2 touchpad can send only 2 touches in a report. They can > > detect 4 or 5 and this information is valuable. > > > > In commit 63c4fda3c0bb ("Input: synaptic

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Linus Torvalds
On Thu, Apr 23, 2015 at 10:57 AM, Linus Torvalds wrote: > > Same goes for uid etc - if you are implementing a service daemon, the > uid of the requester sure as hell makes a ton of difference in what > you might want to expose. Things like "does this user have access > rights to the printer?" are

Re: [PATCH v5 1/8] virtio: introduce virtio_is_little_endian() helper

2015-04-23 Thread Thomas Huth
On Thu, 23 Apr 2015 17:26:20 +0200 Greg Kurz wrote: > Signed-off-by: Greg Kurz > --- > include/linux/virtio_config.h | 17 +++-- > 1 file changed, 11 insertions(+), 6 deletions(-) > > diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h > index ca3ed78..bd1a

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Borislav Petkov
On Thu, Apr 23, 2015 at 11:24:14AM -0700, Andy Lutomirski wrote: > That nails it. We really do leak segment limits to other tasks on AMD > chips. I see at least two questions we should answer before fixing > this: Ok, WTF is going on?! Even this trivial test case causes a Bus Error: --- static

Re: [PATCH v2] Input - mt: Fix input_mt_get_slot_by_key

2015-04-23 Thread Henrik Rydberg
> My guess is that none of these drivers are > able to handle a silent closing of a slot and the easiest solution might > be to simply change the documentation if in fact nobody uses the > compressed notation (which removes just one ABS_SLOT event within the > frame, so not sure we can call it comp

Re: Interacting with coherent memory on external devices

2015-04-23 Thread Paul E. McKenney
On Thu, Apr 23, 2015 at 09:38:15AM -0500, Christoph Lameter wrote: > On Thu, 23 Apr 2015, Benjamin Herrenschmidt wrote: [ . . . ] > > It might not be *your* model based on *your* application but that doesn't > > mean > > it's not there, and isn't relevant. > > Sadly this is the way that an enti

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 11:04:36AM -0700, Linus Torvalds wrote: > On Thu, Apr 23, 2015 at 10:57 AM, Linus Torvalds > wrote: > > > > If somebody is printing something, it shouldn't matter if it's "lpr" > > or "firefox http://horses.and.trannyporn.my.little.pony.com/"; that > > does the printing. >

Re: [PATCH v5 2/8] tun: add tun_is_little_endian() helper

2015-04-23 Thread Thomas Huth
On Thu, 23 Apr 2015 17:26:30 +0200 Greg Kurz wrote: > Signed-off-by: Greg Kurz > --- > drivers/net/tun.c |9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/tun.c b/drivers/net/tun.c > index 857dca4..3c3d6c0 100644 > --- a/drivers/net/tun.c > +++ b/

Re: [PATCH v5 3/8] macvtap: introduce macvtap_is_little_endian() helper

2015-04-23 Thread Thomas Huth
On Thu, 23 Apr 2015 17:26:41 +0200 Greg Kurz wrote: > Signed-off-by: Greg Kurz > --- > drivers/net/macvtap.c |9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index 27ecc5c..a2f2958 100644 > --- a/drivers/net/ma

Re: Broadcom 43340 module on iMX6DL

2015-04-23 Thread Arend van Spriel
+ John Stultz On 04/23/15 20:44, John Tobias wrote: Thanks Dmitry for the info. Arend: Yes, it's an android... Here's the info: 00060e80 de 02 f0 18 8c 00 e8 5e 8f 00 37 a3 00 e0 5e 8a |...^..7...^.| 00060e90 f4 77 a2 00 02 de 02 f0 00 00 01 bc 60 03 00 07 |.w..`...| 00060ea

Re: [PATCH v5 4/8] vringh: introduce vringh_is_little_endian() helper

2015-04-23 Thread Thomas Huth
On Thu, 23 Apr 2015 17:26:52 +0200 Greg Kurz wrote: > Signed-off-by: Greg Kurz > --- > include/linux/vringh.h | 17 +++-- > 1 file changed, 11 insertions(+), 6 deletions(-) > > diff --git a/include/linux/vringh.h b/include/linux/vringh.h > index a3fa537..3ed62ef 100644 > --- a/in

Re: Interacting with coherent memory on external devices

2015-04-23 Thread Paul E. McKenney
On Thu, Apr 23, 2015 at 09:20:55AM -0500, Christoph Lameter wrote: > On Thu, 23 Apr 2015, Benjamin Herrenschmidt wrote: > > > > There are hooks in glibc where you can replace the memory > > > management of the apps if you want that. > > > > We don't control the app. Let's say we are doing a plugin

Kdbus needs meaningful review (was: Re: [GIT PULL] kdbus for 4.1-rc1)

2015-04-23 Thread Eric W. Biederman
Greg Kroah-Hartman writes: > On Mon, Apr 13, 2015 at 09:03:50PM +0200, Greg Kroah-Hartman wrote: >> The following changes since commit 9eccca0843205f87c00404b663188b88eb248051: >> >> Linux 4.0-rc3 (2015-03-08 16:09:09 -0700) >> >> are available in the git repository at: >> >> git://git.ker

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 08:33:47PM +0200, Richard Weinberger wrote: > On Thu, Apr 23, 2015 at 3:05 PM, Greg Kroah-Hartman > wrote: > > Did I miss anything else here? Are there any technical reasons I'm > > forgetting about for why this can't be pulled in as-is for this merge > > window? > > Mayb

Re: [PATCH v5 5/8] vhost: introduce vhost_is_little_endian() helper

2015-04-23 Thread Thomas Huth
On Thu, 23 Apr 2015 17:27:05 +0200 Greg Kurz wrote: > Signed-off-by: Greg Kurz > --- > drivers/vhost/vhost.h | 17 +++-- > 1 file changed, 11 insertions(+), 6 deletions(-) > > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index 8c1c792..6a49960 100644 > --- a/drive

Re: Enabling regulators form userspace

2015-04-23 Thread Mark Brown
On Thu, Apr 23, 2015 at 11:19:50AM -0700, Dmitry Torokhov wrote: > On Thu, Apr 23, 2015 at 06:13:28PM +0100, Mark Brown wrote: > > Or, for that matter, if this ABI is in your vendor tree > > then I do not even have to look at it :) > I want it to be in mainline because I am not necessarily wearin

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Greg Kroah-Hartman
On Wed, Apr 22, 2015 at 10:58:28AM +0200, Borislav Petkov wrote: > On Mon, Apr 13, 2015 at 02:29:35PM -0500, Eric W. Biederman wrote: > > And the code that transfers the meta-data is wrong. > > > > It is generally not something that userspace requires today, certainly > > userspace is not using it

[PATCH] net: netcp: remove call to netif_carrier_(on/off) for MAC to Phy interface

2015-04-23 Thread Murali Karicheri
Currently when interface type is MAC to Phy, netif_carrier_(on/off) is called which is not needed as Phy lib already updates the carrier status to net stack. This is needed only for other interface types Signed-off-by: Murali Karicheri --- drivers/net/ethernet/ti/netcp_ethss.c |8 ++-- 1

[RFC][PATCH 2/4] tracing: Add hwlat_detector tracer

2015-04-23 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Connect the hwlat_detector written by Jon Masters with the tracing system as a new ftrace tracer. A few files are created when the hwlat_detector is enabled that exist in the tracing directory. hwlat_detector/count - the count of records of latencies found

[RFC][PATCH 1/4] tracing: Initial hwlat_detector code from the -rt patch

2015-04-23 Thread Steven Rostedt
From: Jon Masters The hwlat_detector is a special purpose kernel module that is used to detect large system latencies induced by the behavior of certain underlying hardware or firmware, independent of Linux itself. This code was developed originally to detect SMIs (System Managment Interrupts) on

[RFC][PATCH 3/4] tracing: Add documentation for hwlat_detector tracer

2015-04-23 Thread Steven Rostedt
From: Jon Masters Added the documentation on how to use th hwlat_detector. Signed-off-by: Jon Masters [ Updated to show move from module to tracer ] Signed-off-by: Steven Rostedt --- Documentation/trace/hwlat_detector.txt | 61 ++ 1 file changed, 61 insertions(

Re: [PATCH v2] staging: fbtft: Disable DMA support if DMA is not available

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 08:47:15PM +0200, Geert Uytterhoeven wrote: > If NO_DMA=y: > > drivers/built-in.o: In function `fbtft_framebuffer_alloc': > (.text+0xb53cae): undefined reference to `dmam_alloc_coherent' > > As DMA support is already optional, make it depend on HAS_DMA. > > If !HA

[RFC][PATCH 0/4] tracing: Add new hwlat_detector tracer

2015-04-23 Thread Steven Rostedt
This is the port of the hardware latency detector from the -rt patch to mainline. Instead of keeping it as a device that had its own debugfs filesystem infrastructure, it made more sense to make it into a tracer like irqsoff and wakeup latency tracers currently are. With this patch set, a new tra

[RFC][PATCH 4/4] hwlat: Add per cpu mask for hwlat_detector

2015-04-23 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Instead of just running a single kernel thread to do the hardware latency detection, run one on each CPU that the user specificies. By default this will be just one CPU (on CPU 0). But the user may specify what CPUs they would like to run the tests on. Signed-off

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Andy Lutomirski
On Thu, Apr 23, 2015 at 11:52 AM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 11:24:14AM -0700, Andy Lutomirski wrote: >> That nails it. We really do leak segment limits to other tasks on AMD >> chips. I see at least two questions we should answer before fixing >> this: > > Ok, WTF is going

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Andy Lutomirski
On Apr 23, 2015 11:56 AM, "Greg Kroah-Hartman" wrote: > > On Thu, Apr 23, 2015 at 11:04:36AM -0700, Linus Torvalds wrote: > > On Thu, Apr 23, 2015 at 10:57 AM, Linus Torvalds > > wrote: > > > > > > If somebody is printing something, it shouldn't matter if it's "lpr" > > > or "firefox http://horse

Re: Interacting with coherent memory on external devices

2015-04-23 Thread Paul E. McKenney
On Thu, Apr 23, 2015 at 09:12:38AM -0500, Christoph Lameter wrote: > On Wed, 22 Apr 2015, Paul E. McKenney wrote: > > > Agreed, the use case that Jerome is thinking of differs from yours. > > You would not (and should not) tolerate things like page faults because > > it would destroy your worst-ca

Re: [PATCH v5 6/8] virtio: add explicit big-endian support to memory accessors

2015-04-23 Thread Thomas Huth
On Thu, 23 Apr 2015 17:29:06 +0200 Greg Kurz wrote: > The current memory accessors logic is: > - little endian if little_endian > - native endian (i.e. no byteswap) if !little_endian > > If we want to fully support cross-endian vhost, we also need to be > able to convert to big endian. > > Inst

Re: Abuse of CONFIG_FOO's as feature selectors

2015-04-23 Thread Paul Bolle
On Wed, 2015-04-22 at 20:20 +0200, Denys Vlasenko wrote: > Kernel has a growing number of CONFIG items which are not > user-selectable features of their particular kernel builds, > but simply booleans controlled by other CONFIGs. > Example: > > config X86 > def_bool y > select ARCH

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 01:42:25PM -0400, Stephen Smalley wrote: > On 04/23/2015 01:16 PM, Greg Kroah-Hartman wrote: > > The binder developers at Samsung have stated that the implementation we > > have here works for their model as well, so I guess that is some kind of > > verification it's not ent

Re: Adding subpage support to NAND driver -- backwards compatibility concerns

2015-04-23 Thread Richard Weinberger
Am 23.04.2015 um 20:39 schrieb Josh Cartwright: > +Richard, who, when not being trolled on IRC, has been working on > UBI(FS) stuff. Yeah, being on #kernelnewbeis is always "fun". ;-) > On Thu, Apr 23, 2015 at 12:48:53PM +1000, Iwo Mergler wrote: >> On Thu, 23 Apr 2015 03:29:44 +1000 >> Ben Shelt

Re: Interacting with coherent memory on external devices

2015-04-23 Thread Paul E. McKenney
And another update, again diffs followed by the full document. The diffs are against the version at https://lkml.org/lkml/2015/4/22/235. Thanx, Paul diff --git a/Devi

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-23 Thread Greg KH
On Thu, Apr 23, 2015 at 12:22:10PM -0700, Andy Lutomirski wrote: > On Apr 23, 2015 11:56 AM, "Greg Kroah-Hartman" > wrote: > > > > On Thu, Apr 23, 2015 at 11:04:36AM -0700, Linus Torvalds wrote: > > > On Thu, Apr 23, 2015 at 10:57 AM, Linus Torvalds > > > wrote: > > > > > > > > If somebody is pri

Re: [PATCH v2 4/8] moduleparam.h: add module_param_config_*() helpers

2015-04-23 Thread Luis R. Rodriguez
On Thu, Apr 23, 2015 at 11:45:09AM +0930, Rusty Russell wrote: > "Luis R. Rodriguez" writes: > > From: "Luis R. Rodriguez" > > > > This adds a couple of bool module_param_config_*() helpers > > which are designed to let us easily associate a boolean > > module parameter with an associated kernel

Re: inconsistent lock state with tick_broadcast_lock

2015-04-23 Thread Thomas Gleixner
On Thu, 23 Apr 2015, Sudeep Holla wrote: > Hi Thomas/Rafael, > > With latest mainline(commit 27cf3a16b2535a490f8cf1d29a6634f1c70f7831), > and lockdep enabled I see the following inconsistent lock state log. > I am not sure if it's related to recent changes in tick-broadcast or I > might be missin

[PATCH 1/4] ARM: keystone: defconfig: enable netcp driver by default

2015-04-23 Thread Murali Karicheri
Enable netcp driver in defconfig for keystone SoCs. Signed-off-by: Murali Karicheri --- arch/arm/configs/keystone_defconfig |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig index f8a1c8f..95ce128 100644 --- a/

[PATCH 4/4] ARM: dts: k2l-evm: Add device bindings for netcp driver

2015-04-23 Thread Murali Karicheri
This patch enables networking on k2l evm by providing device bindings for netcp, knav, and qmss. See device binding documentation at Documentation/devicetree/bindings/net/keystone-netcp.txt Signed-off-by: WingMan Kwok Signed-off-by: Murali Karicheri --- arch/arm/boot/dts/k2l-evm.dts|1

[PATCH 2/4] ARM: dts: k2hk-evm: Add device bindings for netcp driver

2015-04-23 Thread Murali Karicheri
This patch enables networking on k2hk evm by adding device bindings for netcp, knav and qmss. See device binding documentation below for details. Documentation/devicetree/bindings/net/keystone-netcp.txt Signed-off-by: WingMan Kwok Signed-off-by: Murali Karicheri --- arch/arm/boot/dts/k2hk-evm

[PATCH 0/4] ARM: keystone: Enable Netcp driver on K2 EVMs

2015-04-23 Thread Murali Karicheri
NetCP driver support patches are already merged to v4.0.nd v4.1. This series introduce patches to update the DTS bindings and defconfig so that the network driver is fully functional on K2 EVMs :- K2HK, K2L and K2E. It will be great if this can be merged to v4.1. Murali Karicheri (4): ARM: keys

[PATCH 3/4] ARM: dts: k2e-evm: Add device bindings for netcp driver

2015-04-23 Thread Murali Karicheri
This patch enables networking on k2e evm by adding device bindings for netcp, knav and qmss. See device binding documentation below for details. Documentation/devicetree/bindings/net/keystone-netcp.txt Signed-off-by: WingMan Kwok Signed-off-by: Murali Karicheri --- arch/arm/boot/dts/k2e-evm.dt

Re: [PATCH v8 2/4] ARM: sunxi: dt: Add DT bindings documentation for SUNXI Security System

2015-04-23 Thread Maxime Ripard
On Thu, Apr 23, 2015 at 08:45:21AM +0200, LABBE Corentin wrote: > This patch adds documentation for Device-Tree bindings for the Security > System cryptographic accelerator driver. > > Signed-off-by: LABBE Corentin > --- > Documentation/devicetree/bindings/crypto/sunxi-ss.txt | 9 + > 1

Sharing credentials in general (Re: [GIT PULL] kdbus for 4.1-rc1)

2015-04-23 Thread Andy Lutomirski
On Thu, Apr 23, 2015 at 11:48 AM, Linus Torvalds wrote: > On Thu, Apr 23, 2015 at 10:57 AM, Linus Torvalds > wrote: >> >> Same goes for uid etc - if you are implementing a service daemon, the >> uid of the requester sure as hell makes a ton of difference in what >> you might want to expose. Thing

Re: [PATCH] iio: light: add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light sensors

2015-04-23 Thread Tomasz Duszynski
On Thu, Apr 23, 2015 at 10:30:09AM +0300, Daniel Baluta wrote: > On Tue, Apr 21, 2015 at 9:43 PM, Tomasz Duszynski wrote: > > Add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light > > sensors. > > > > Signed-off-by: Tomasz Duszynski > > --- > > drivers/iio/light/Kconfig | 10 ++

Re: [tip:x86/vdso] x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

2015-04-23 Thread Denys Vlasenko
On Thu, Apr 23, 2015 at 8:52 PM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 11:24:14AM -0700, Andy Lutomirski wrote: >> That nails it. We really do leak segment limits to other tasks on AMD >> chips. I see at least two questions we should answer before fixing >> this: > > Ok, WTF is going

Re: [RFC][PATCH 0/4] tracing: Add new hwlat_detector tracer

2015-04-23 Thread Thomas Gleixner
On Thu, 23 Apr 2015, Steven Rostedt wrote: > This is the port of the hardware latency detector from the -rt patch > to mainline. Instead of keeping it as a device that had its own debugfs > filesystem infrastructure, it made more sense to make it into a tracer > like irqsoff and wakeup latency trac

Re: [PATCH v6 1/2] Devicetree: Add pl353 smc controller devicetree binding information

2015-04-23 Thread Josh Cartwright
Hey Punnaiah- A few nitpicks here, in case you'll be spinning up a new version of your patchset. On Mon, Apr 13, 2015 at 09:41:51PM +0530, Punnaiah Choudary Kalluri wrote: > Add pl353 static memory controller devicetree binding information. > > Signed-off-by: Punnaiah Choudary Kalluri [..] > @@

Re: [PATCH v2 2/2] checkpatch: suggest using eth_zero_addr() and eth_broadcast_addr()

2015-04-23 Thread Mateusz Kulikowski
On 22.04.2015 00:27, Joe Perches wrote: > On Tue, 2015-04-21 at 23:44 +0200, Mateusz Kulikowski wrote: >> On 21.04.2015 23:22, Joe Perches wrote: >>> On Tue, 2015-04-21 at 22:57 +0200, Mateusz Kulikowski wrote: >> (...) (...) >> True, True; If you prefer $line and ability to --fix - I'll use that i

Re: [PATCH v1] watchdog: Use a reference cycle counter to avoid scaling issues

2015-04-23 Thread Thomas Gleixner
On Thu, 23 Apr 2015, Alexander Shishkin wrote: > The problem with using cycle counter for NMI watchdog is that its > frequency changes with the corresponding core's frequency. This means > that, in particular, if the core frequency scales up, watchdog NMI will > arrive more frequently than what us

Re: [PATCH v2 1/2] soc: qcom: Add device tree binding for SMEM

2015-04-23 Thread Jeffrey Hugo
On 4/11/2015 5:32 PM, Bjorn Andersson wrote: Add device tree binding documentation for the Qualcom Shared Memory manager. Signed-off-by: Bjorn Andersson --- Changes since v1: - None .../devicetree/bindings/soc/qcom/qcom,smem.txt | 49 ++ 1 file changed, 49 insertion

Re: [PATCH] x86/asm/entry/32: Restore %ss before SYSRETL if necessary

2015-04-23 Thread Denys Vlasenko
On Thu, Apr 23, 2015 at 6:27 PM, Andy Lutomirski wrote: > I'll go out on a limb and guess the present bit doesn't leak. If I > were implementing an x86 cpu, I wouldn't have a present bit at all in > the descriptor cache, since you aren't supposed to be able to load a > non-present descriptor in t

[PATCH arm 0/2] Fixes for ARM use of scheduler when offline

2015-04-23 Thread Paul E. McKenney
Hello! This series is strictly FYI. I am simply sending it as a heads-up. The diagnostics surrounding using RCU from an offline CPU will be tightening up, which might cause splats to come my way. If such splats do come my way, I will reply with the patches in this series. I know you guys have

[PATCH arm 2/2] arm: Use common outgoing-CPU-notification code

2015-04-23 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit removes the open-coded CPU-offline notification with new common code. In particular, this change avoids calling scheduler code using RCU from an offline CPU that RCU is ignoring. This is a minimal change. A more intrusive change might invoke the cpu_check_u

[PATCH arm 1/2] arm64: Use common outgoing-CPU-notification code

2015-04-23 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit removes the open-coded CPU-offline notification with new common code. In particular, this change avoids calling scheduler code using RCU from an offline CPU that RCU is ignoring. This is a minimal change. A more intrusive change might invoke the cpu_check_u

Re: [RFC][PATCH 0/4] tracing: Add new hwlat_detector tracer

2015-04-23 Thread Steven Rostedt
On Thu, 23 Apr 2015 21:51:47 +0200 (CEST) Thomas Gleixner wrote: > That's fine, but this still lacks a detection of NMI > disturbance. We've seen false positives reported over and over when > stuff like the NMI watchdog or perf was enabled while running this. I was waiting for someone to point

Re: Crypto Update for 4.1

2015-04-23 Thread Ard Biesheuvel
On 23 April 2015 at 21:27, Bobby Powers wrote: > Hello, > > Linus Torvalds wrote: >> Ok, this patch seems to fix it for me, so I undid my revert that I >> hadn't pushed out yet, and pushed out this instead. > > Commit e68410ebf62676dfb93aafff7c55b76644f37072 in Linus's tree from > this crpyto upd

Re: [RESEND PATCH 1/8] mfd: cros ec: Remove parent field

2015-04-23 Thread Gwendal Grignou
Be consistent, use cros_ec instead of "cros ec" or "cros-ec". Otherwise: Reviewed-by: Gwendal Grignou Tested-by: Gwendal Grignou On Mon, Apr 6, 2015 at 9:14 AM, Javier Martinez Canillas wrote: > From: Gwendal Grignou > > parent and dev were pointing to the same device structure. > parent is u

Re: [RFC][PATCH 0/4] tracing: Add new hwlat_detector tracer

2015-04-23 Thread Thomas Gleixner
On Thu, 23 Apr 2015, Steven Rostedt wrote: > On Thu, 23 Apr 2015 21:51:47 +0200 (CEST) > Thomas Gleixner wrote: > > > That's fine, but this still lacks a detection of NMI > > disturbance. We've seen false positives reported over and over when > > stuff like the NMI watchdog or perf was enabled wh

Re: [PATCH V2] Test compaction of mlocked memory

2015-04-23 Thread Andrew Morton
On Thu, 23 Apr 2015 14:41:34 -0400 Eric B Munson wrote: > On Thu, 23 Apr 2015, Sri Jayaramappa wrote: > > > Commit commit 5bbe3547aa3b ("mm: allow compaction of unevictable pages") > > introduced a sysctl that allows userspace to enable scanning of locked > > pages for compaction. This patch in

Re: [PATCH V2] Test compaction of mlocked memory

2015-04-23 Thread Shuah Khan
On 04/23/2015 02:23 PM, Andrew Morton wrote: > On Thu, 23 Apr 2015 14:41:34 -0400 Eric B Munson wrote: > >> On Thu, 23 Apr 2015, Sri Jayaramappa wrote: >> >>> Commit commit 5bbe3547aa3b ("mm: allow compaction of unevictable pages") >>> introduced a sysctl that allows userspace to enable scanning

Re: [v6] kvm/fpu: Enable fully eager restore kvm FPU

2015-04-23 Thread H. Peter Anvin
On 04/23/2015 08:28 AM, Dave Hansen wrote: > On 04/23/2015 02:13 PM, Liang Li wrote: >> When compiling kernel on westmere, the performance of eager FPU >> is about 0.4% faster than lazy FPU. > > Do you have an theory why this is? What does the regression come from? > This is interesting since p

Re: [PATCH] proc: move the adding option Ngid to the end of proc/PID/status

2015-04-23 Thread Alexey Dobriyan
On Tue, Apr 21, 2015 at 11:11:19AM -0400, Tejun Heo wrote: > On Tue, Apr 21, 2015 at 05:00:07PM +0300, Alexey Dobriyan wrote: > > > The only reason for changing the position is because > > > there's this specific breakage. The goal should be working around > > > that specific case while keeping th

Re: [PATCH v2 2/3] USB: ehci-tegra: fix inefficient copy of unaligned buffers

2015-04-23 Thread Stephen Warren
On 04/23/2015 08:06 AM, Johan Hovold wrote: Make sure only to copy any actual data rather than the whole buffer, when releasing the temporary buffer used for unaligned non-isochronous transfers. Compile-tested only. Tested-by: Stephen Warren (Tested a USB network device attached to Jetson TK

Re: [PATCH v1] watchdog: Use a reference cycle counter to avoid scaling issues

2015-04-23 Thread Andi Kleen
On Thu, Apr 23, 2015 at 10:01:04PM +0200, Thomas Gleixner wrote: > On Thu, 23 Apr 2015, Alexander Shishkin wrote: > > > The problem with using cycle counter for NMI watchdog is that its > > frequency changes with the corresponding core's frequency. This means > > that, in particular, if the core f

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-23 Thread Greg Kroah-Hartman
On Thu, Apr 23, 2015 at 09:14:18AM -0700, James Bottomley wrote: > > > OK, so this is what I'm trying to understand. Why isn't a pipe to > > > firmware for something a "platform resource"? I think UEFI is in the > > > same class as ACPI which uses platform devices all over. > > > > And I hate th

[PATCH 1/2] Fixing NX data alignment with nx_sg list

2015-04-23 Thread Leonidas S. Barbosa
In NX we need to pass always a 16 multiple size nx_sg_list to co processor. Trim function handle with this assuring all nx_sg_lists are 16 multiple size, although data was not being considerated when crop was done. It was causing an unalignment between size of the list and data, corrupting csbcpb f

Re: [RFC][PATCH 0/4] tracing: Add new hwlat_detector tracer

2015-04-23 Thread Steven Rostedt
On Thu, 23 Apr 2015 22:21:11 +0200 (CEST) Thomas Gleixner wrote: > > Is the NMI code generic enough now to know that an NMI triggered, and > > we could detect that and ignore the latencies if one did. Or perhaps > > even add a tracepoint in the start and end of an NMI, to account for > > it, (a

[PATCH 2/2] Fixing SHA update bug

2015-04-23 Thread Leonidas S. Barbosa
Bug happens when a data size less than SHA block size is passed. Since first attempt will be saved in buffer, second round attempt get into two step to calculate op.inlen and op.outlen. The issue resides in this step. A wrong value of op.inlen and outlen was being calculated. This patch fix this

Re: [PATCH v2] locking/rwsem: reduce spinlock contention in wakeup after up_read/up_write

2015-04-23 Thread Jason Low
On Thu, 2015-04-23 at 14:24 -0400, Waiman Long wrote: > The table below shows the % improvement in throughput (1100-2000 users) > in the various AIM7's workloads: > > Workload% increase in throughput Missing table here? :) > --- > include/linux/osq_lock.h|5 +++ > kernel/

Re: [RFC][PATCH 0/4] tracing: Add new hwlat_detector tracer

2015-04-23 Thread Daniel Bristot de Oliveira
On 04/23/2015 05:21 PM, Thomas Gleixner wrote: > I know of a SMI event counter which is available on newer CPUs and > Intel promised to add a SMI cycle counter as well. I have no idea > whether that one ever materialized. PeterZ should know. The turbostat shows how many SMIs happened during a pe

Re: [PATCH V6 00/10] namespaces: log namespaces per task

2015-04-23 Thread Richard Guy Briggs
On 15/04/22, Richard Guy Briggs wrote: > On 15/04/20, Eric W. Biederman wrote: > > Richard Guy Briggs writes: > > > > > The purpose is to track namespace instances in use by logged processes > > > from the > > > perspective of init_*_ns by logging the namespace IDs (device ID and > > > namespac

<    1   2   3   4   5   6   7   8   >