Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-14 Thread Borislav Petkov
On Wed, Apr 15, 2015 at 12:05:01AM +0200, Jiri Kosina wrote: > So definitely +1 from me for this discussion to happen, being it > either LPC (which I will unfortunately probably have to miss due to > personal reaons this year) or KS. It might help people like me, who > have trouble understanding wh

Re: [PATCH linux-next 1/4] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink

2015-04-14 Thread Honggang LI
There was network accident in the office. I can't find this email in public mailing list. So, I reset it. If you had recived this, please ignore it. thanks On Wed, Apr 15, 2015 at 01:16:40PM +0800, Honggang LI wrote: > On Tue, Apr 14, 2015 at 07:30:03PM +0300, Erez Shitrit wrote: > > > @@ -846,

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-14 Thread Richard Weinberger
On Wed, Apr 15, 2015 at 3:36 AM, Andy Lutomirski wrote: >> We had been there before. To paraphrase another... meticulously honorable >> person, "if you didn't want something relied upon, why have you put it into >> the >> kernel?" Said person is on the record as having no problem whatsoever with

[PATCH] acpi/wakeup_64.S: Make global label a local one

2015-04-14 Thread Borislav Petkov
From: Borislav Petkov Make it a local symbol so that it doesn't appear in objdump output. No functionality change - code remains the same, just the global label disappears: --- before 2015-04-15 08:44:43.088036283 +0200 +++ after 2015-04-15 08:40:38.292028826 +0200 @@ -36,9 +36,7 @@

Re: [PATCH 4/4] mm: make every pte dirty on do_swap_page

2015-04-14 Thread Minchan Kim
On Sun, Apr 12, 2015 at 11:48:23PM +0900, Minchan Kim wrote: > Hello Hugh, > > On Sat, Apr 11, 2015 at 02:40:46PM -0700, Hugh Dickins wrote: > > On Wed, 11 Mar 2015, Minchan Kim wrote: > > > > > Bascially, MADV_FREE relys on the pte dirty to decide whether > > > it allows VM to discard the page.

[PATCH linux-next v4] mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures

2015-04-14 Thread Honggang Li
If CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for x86 systems and physical memory is more than 4GB, dma_map_page may return a valid memory address which greater than 0x. As a result, the mlx5 device page allocator RB tree will be initialized with valid addresses greater than 0xfff. However,

Re: [PATCH v10 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-04-14 Thread Dave Young
On 04/15/15 at 01:47pm, Li, ZhenHua wrote: > On 04/15/2015 08:57 AM, Dave Young wrote: > >Again, I think it is bad to use old page table, below issues need consider: > >1) make sure old page table are reliable across crash > >2) do not allow writing oldmem after crash > > > >Please correct me if I'

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-14 Thread Sricharan R
Hi Ivan, On 04/14/2015 08:46 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Sat, 2015-04-11 at 12:39 +0530, Sricharan R wrote: From: Andy Gross QUP from version 2.1.1 onwards, supports a new format of i2c command tags. Tag codes instructs the controller to perform a operation like read/write.

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-14 Thread Tero Kristo
On 04/15/2015 12:17 AM, Michael Welling wrote: Greetings, I have developed an AM3354 based SoM and it uses an external SI5351 clock generator to drive the clock inputs for an external duart and I2S audio master clock. With the registration according to the documentation the reference clock is no

Re: [patch 02/39] hrtimer: Get rid of the resolution field in hrtimer_clock_base

2015-04-14 Thread Frans Klaver
On Wed, Apr 15, 2015 at 8:29 AM, Frans Klaver wrote: > On Tue, Apr 14, 2015 at 11:08 PM, Thomas Gleixner wrote: >> The field has no value because all clock bases have the same >> resolution. The resolution only changes when we switch to high >> resolution timer mode. We can evaluate that from a s

Re: [patch 02/39] hrtimer: Get rid of the resolution field in hrtimer_clock_base

2015-04-14 Thread Frans Klaver
On Tue, Apr 14, 2015 at 11:08 PM, Thomas Gleixner wrote: > The field has no value because all clock bases have the same > resolution. The resolution only changes when we switch to high > resolution timer mode. We can evaluate that from a single static > variable as well. In the !HIGHRES case its s

[PATCH v5 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8 chip

[PATCH v5 2/3] powerpc/powernv: Move cpuidle related code from setup.c to new file

2015-04-14 Thread Shreyas B. Prabhu
This is a cleanup patch; doesn't change any functionality. Moves all cpuidle related code from setup.c to a new file. Signed-off-by: Shreyas B. Prabhu Reviewed-by: Preeti U Murthy --- arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/idle.c | 191 +++

[PATCH v5 1/3] powerpc: Fix cpu_online_cores_map to return only online threads mask

2015-04-14 Thread Shreyas B. Prabhu
Currently, cpu_online_cores_map returns a mask, which for every core with at least one online thread, has the bit for thread 0 of the core set to 1, and the bits for all other threads of the core set to 0. But thread 0 of the core itself may not be online always. In such cases, if the returned mask

[PATCH v5 0/3] powerpc: powernv: Fastsleep workaround behavior

2015-04-14 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8 ch

Re: [Question] ksm: rmap_item pointing to some stale vmas

2015-04-14 Thread Hugh Dickins
On Tue, 14 Apr 2015, Susheel Khiani wrote: > On 04/10/15 23:26, Hugh Dickins wrote: > > On Thu, 9 Apr 2015, Susheel Khiani wrote: > > > > > > We are seeing an issue during try_to_unmap_ksm where in call to > > > try_to_unmap_one is failing. > > > > > > try_to_unmap_ksm in this particular case is

Re: [PATCH linux-next 1/4] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink

2015-04-14 Thread Erez Shitrit
On 4/14/2015 11:41 PM, Jason Gunthorpe wrote: On Tue, Apr 14, 2015 at 07:30:03PM +0300, Erez Shitrit wrote: diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 657b89b..11ea6e2 100644 +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -846,7

Re: [PATCH kernel v8 05/31] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:47PM +1000, Alexey Kardashevskiy wrote: > There moves locked pages accounting to helpers. > Later they will be reused for Dynamic DMA windows (DDW). > > This reworks debug messages to show the current value and the limit. > > This stores the locked pages number in th

Re: [PATCH kernel v8 01/31] vfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:43PM +1000, Alexey Kardashevskiy wrote: > This moves page pinning (get_user_pages_fast()/put_page()) code out of > the platform IOMMU code and puts it to VFIO IOMMU driver where it belongs > to as the platform code does not deal with page pinning. > > This makes iommu

Re: [PATCH kernel v8 03/31] vfio: powerpc/spapr: Check that IOMMU page is fully contained by system page

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:45PM +1000, Alexey Kardashevskiy wrote: > This checks that the TCE table page size is not bigger that the size of > a page we just pinned and going to put its physical address to the table. > > Otherwise the hardware gets unwanted access to physical memory between > t

Re: [PATCH kernel v8 02/31] vfio: powerpc/spapr: Do cleanup when releasing the group

2015-04-14 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:44PM +1000, Alexey Kardashevskiy wrote: > This clears the TCE table when a container is being closed as this is > a good thing to leave the table clean before passing the ownership > back to the host kernel. > > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David

Re: [PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-14 Thread Shreyas B Prabhu
> > A point that bothers me here is if we can potentially race with cpu > hotplug ? If cpuX and its siblings are offline and it was interrupted to > come online: > > cpuX cpuY > Interrupted to come online > Undo workaround > >

Re: [PATCH linux-next v3] mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures

2015-04-14 Thread Or Gerlitz
On 4/15/2015 6:19 AM, Honggang Li wrote: Fix(bf0bf77 mlx5: Support communicating arbitrary host page size to firmware) This isn't the way to write the fix note, do it that way Fixes: bf0bf77f6519 ('mlx5: Support communicating arbitrary host page size to firmware') Signed-off-by: Honggang

[PATCH] ARM: rockchip: disable dapswjdp during suspend

2015-04-14 Thread Chris Zhong
Reset dapswjdp is controlled by JTAG_TRSTN, if the iomux of this pin is not "jtag_trstn". the AP would think this pin is always high, so it can not reset before resume. When system resume, but the dapswjdp is not in a default state, it may Access some illegal address, it cause system crash during r

Re: [PATCH] scripts/kconfig/Makefile: Fix spelling of Qt

2015-04-14 Thread Diego Viola
Thanks, that gives me hope, I'll wait patiently then. BTW, if you want any reference for how this is written, see this: http://en.wikipedia.org/wiki/Qt_%28software%29 Thanks, Diego On Wed, Apr 15, 2015 at 2:36 AM, Jiri Kosina wrote: > On Wed, 15 Apr 2015, Diego Viola wrote: > >> I apologize f

Re: [PATCH v10 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-04-14 Thread Li, ZhenHua
On 04/15/2015 08:57 AM, Dave Young wrote: Again, I think it is bad to use old page table, below issues need consider: 1) make sure old page table are reliable across crash 2) do not allow writing oldmem after crash Please correct me if I'm wrong, or if above is not doable I think I will vote fo

Re: [PATCH linux-next 1/4] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink

2015-04-14 Thread Or Gerlitz
On 4/14/2015 11:41 PM, Jason Gunthorpe wrote: Erez, you basically rewrote this, please make a proper patch with the Fixes and Reported-By credit for Honggang. Lets merge this through Dave M's tree right away. Agree, Erez, add proper Fixes: XXX note and send a patch to netdev against net-nex

[PATCH] dmaengine: imx-sdma: Add DMA event remapping for imx6sx-sdma

2015-04-14 Thread Nicolin Chen
The SDMA on imx6sx has a few DMA event remapping configurations inside the GPR (General Purpose Register) of that SoC. When users want to use a non-default DMA event, they need to configure the GPR register. So this patch gives an interface of the GPR and implements it in the SDMA driver so as to f

Re: [PATCH] scripts/kconfig/Makefile: Fix spelling of Qt

2015-04-14 Thread Jiri Kosina
On Wed, 15 Apr 2015, Diego Viola wrote: > I apologize for being impatient, but I sent my first patch a week ago > and then I sent another after a week. > > I realize the patch is trivial, but I still want to see it merged > regardless, and this is my first contribution to the mailing list, so > I

Re: [PATCH 0/2] iio: ti_am335x_adc: Add optional DT properties for tscadc

2015-04-14 Thread Hannes Petermaier
> Hi Hannes, Hi Vignesh, thanks for answer. > >> > >> would it be possible to add some more channel-specific settings ? > >> > >> It would be nice to have allmost full control to the STEPCONFIGx > > register. > >> > >> At least we need to write the bits > >> > >> SEL_RFM_SWC_1_0 > >> SEL_INM_SWC_

RE: [PATCH] uio: pruss: Drop depends on ARCH_DAVINCI_DA850 from config

2015-04-14 Thread TK, Pratheesh Gangadhar
> From: Matwey V. Kornilov [mailto:matwey.korni...@gmail.com] > mach-dependent stuff has been removed by > 2eb2478d471e45e1d0c8bb3defbf82bf7204e13d > So, there is no need to keep > depends on ARCH_DAVINCI_DA850 > > Signed-off-by: Matwey V. Kornilov > --- > drivers/uio/Kconfig | 1 - >

Re: [PATCH linux-next v3] mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures

2015-04-14 Thread Eli Cohen
Acked-by: Eli Cohen On Wed, Apr 15, 2015 at 11:19:17AM +0800, Honggang Li wrote: > If CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for x86 systems and physical > memory is more than 4GB, dma_map_page may return a valid memory > address which greater than 0x. As a result, the mlx5 device page > al

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

2015-04-14 Thread Stephen Rothwell
Hi all, On Mon, 13 Apr 2015 16:36:58 +0800 Bob Liu wrote: > > On 04/13/2015 04:09 PM, Stephen Rothwell wrote: > > > > After merging the xen-tip tree, today's linux-next build (x86_64 > > allmodconfig) > > failed like this: > > > > drivers/char/tpm/xen-tpmfront.c: In function 'setup_ring': > > dr

[PATCH] fs/file.c: remove useless xchg and NULL check in close_files

2015-04-14 Thread Mateusz Guzik
Since the table is about to be freed, there is no reason to set file pointer to NULL on closing. At this point open_fd map is supposed to indicate whether a file is installed, so NULL-checking it is unnecessary. Signed-off-by: Mateusz Guzik --- fs/file.c | 7 ++- 1 file changed, 2 insertion

Re: [PATCH v5 00/10] latched RB-trees and __module_address()

2015-04-14 Thread Rusty Russell
Peter Zijlstra writes: > On Tue, Apr 14, 2015 at 12:27:05PM +0930, Rusty Russell wrote: > >> I was tempted to sneak in those module rcu fixes for 4.1, but seeing >> Ingo's comments I'll wait for 4.2. > > I can get you a new version of that if you want. See below. The fixups > are unmodified of the

Re: [GIT] Networking

2015-04-14 Thread Stephen Rothwell
Hi Dave, On Wed, 15 Apr 2015 00:16:50 -0400 (EDT) David Miller wrote: > > The first has to do with Stephen Rothwells movement of trace entries > into individual files while meanwhile the wireless folks were adding > new ones or changing the signature of existing ones. Umm, it wasn't me moving s

Re: [PATCH] scripts/kconfig/Makefile: Fix spelling of Qt

2015-04-14 Thread Diego Viola
I apologize for being impatient, but I sent my first patch a week ago and then I sent another after a week. I realize the patch is trivial, but I still want to see it merged regardless, and this is my first contribution to the mailing list, so I apologize for any inconvenience. I thought my patch

Re: [Patch 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-14 Thread Roy Franz
On Fri, Apr 3, 2015 at 2:36 AM, Ivan.khoronzhuk wrote: > > > On 02.04.15 15:57, Ivan Khoronzhuk wrote: >> >> Some utils, like dmidecode and smbios, need to access SMBIOS entry >> table area in order to get information like SMBIOS version, size, etc. >> Currently it's done via /dev/mem. But for sit

Re: [GIT PULL] RCU changes for v4.1

2015-04-14 Thread Paul E. McKenney
On Tue, Apr 14, 2015 at 08:19:57PM -0700, Linus Torvalds wrote: > On Tue, Apr 14, 2015 at 7:55 PM, Paul E. McKenney > wrote: > > > > Does the (currently being tested) patch below fix things up? If not, > > please fill me in on the further error of my ways. > > Looks ok. > > That said, couldn't

linux-next: manual merge of the drm tree with the v4l-dvb tree

2015-04-14 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in include/uapi/linux/media-bus-format.h between commits 7b0fd4568bee ("[media] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit busses"), e8b2d7a565ae ("[media] v4l: Sort YUV formats of v4l2_mbus_pixelcode") and 2dca055

Crypto Update for 4.1

2015-04-14 Thread Herbert Xu
Hi Linus: Here is the crypto update for 4.1: * Added user-space interface for AEAD. * Added user-space interface for RNG (i.e., pseudo RNG). * Prevent internal helper algos from being exposed to user-space. * Merged common code from assembly/C SHA implementations . * Added ARMv8 SHA1/256. * Added

Re: [PATCH v3 0/6] virtio_balloon: virtio 1 support

2015-04-14 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Tue, Apr 14, 2015 at 11:50:53AM +0200, Cornelia Huck wrote: >> On Tue, 14 Apr 2015 11:21:11 +0200 >> "Michael S. Tsirkin" wrote: >> >> > diff --git a/include/uapi/linux/virtio_balloon.h >> > b/include/uapi/linux/virtio_balloon.h >> > index f81b220..164e0c2 1006

linux-next: manual merge of the drm tree with the v4l-dvb tree

2015-04-14 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in Documentation/DocBook/media/v4l/subdev-formats.xml between commit 7b0fd4568bee ("[media] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit busses") and e8b2d7a565ae ("[media] v4l: Sort YUV formats of v4l2_mbus_pixelcod

Re: [PATCH] virtio_balloon: drop virtio_balloon_stat_modern

2015-04-14 Thread Rusty Russell
Cornelia Huck writes: > On Tue, 14 Apr 2015 12:01:13 +0200 > "Michael S. Tsirkin" wrote: > >> Looks like we are better off sticking with the misaligned stat struct, >> to reduce the amount of virtio 1 specific code in balloon. So let's do >> it. >> >> Add a detailed comment to reduce the chance

Re: [PATCH 7/7] modpost: handle relocations mismatch in __ex_table.

2015-04-14 Thread Rusty Russell
Quentin Casasnovas writes: > On Tue, Apr 14, 2015 at 02:14:14PM +0200, Thierry Reding wrote: >> On Tue, Mar 17, 2015 at 01:40:02PM +0100, Quentin Casasnovas wrote: >> > If one of these addresses point to a non-executable section, something is >> > seriously wrong since it either means the kernel w

Re: [PATCH] param: fixup quote parsing of kernel arguments

2015-04-14 Thread Rusty Russell
Arthur Gautier writes: > On Wed, Apr 08, 2015 at 03:29:43PM +0930, Rusty Russell wrote: >> Arthur Gautier writes: >> > When starting kernel with arguments like: >> > init=/bin/sh -c "echo arguments" >> > the trailing double quote is not removed which results in following command >> > being exec

Re: [PATCH v3 2/4] extcon: usb-gpio: add support for VBUS detection

2015-04-14 Thread Peter Chen
On Tue, Apr 14, 2015 at 08:29:34PM +0900, Chanwoo Choi wrote: > On 04/14/2015 07:38 PM, Roger Quadros wrote: > > On 14/04/15 13:31, Chanwoo Choi wrote: > >> On 04/14/2015 07:02 PM, Roger Quadros wrote: > >>> Fixed Kishon's id. > >>> > >>> On 14/04/15 13:01, Roger Quadros wrote: > On 10/04/15 1

Re: linux-next: manual merge of the ftrace tree with the net-next tree

2015-04-14 Thread David Miller
From: Steven Rostedt Date: Tue, 14 Apr 2015 23:06:29 -0400 > I also noted this coming conflict in my pull request. So Linus should > be very well aware of it. > > https://lkml.org/lkml/2015/4/13/652 > > "Also there's a conflict with commit 7e1223b50089 ("iwlwifi: mvm: new > Alive / error table

[PATCH] i2c: jz4780: Fix build for m68k and sparc64

2015-04-14 Thread Guenter Roeck
Fix: drivers/i2c/busses/i2c-jz4780.c: In function 'jz4780_i2c_readw': drivers/i2c/busses/i2c-jz4780.c:181:2: error: implicit declaration of function 'readw' drivers/i2c/busses/i2c-jz4780.c: In function 'jz4780_i2c_writew': drivers/i2c/busses/i2c-jz4780.c:187:2: error:

Re: [GIT PULL] RCU changes for v4.1

2015-04-14 Thread Linus Torvalds
On Tue, Apr 14, 2015 at 7:55 PM, Paul E. McKenney wrote: > > Does the (currently being tested) patch below fix things up? If not, > please fill me in on the further error of my ways. Looks ok. That said, couldn't that last dummy gp_init_delay variable: > +/* Delay in jiffies for grace-period i

[PATCH linux-next v3] mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures

2015-04-14 Thread Honggang Li
If CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for x86 systems and physical memory is more than 4GB, dma_map_page may return a valid memory address which greater than 0x. As a result, the mlx5 device page allocator RB tree will be initialized with valid addresses greater than 0xfff. However,

Re: [PATCH linux-next v2] mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures

2015-04-14 Thread Honggang LI
On Tue, Apr 14, 2015 at 10:23:16PM +0300, Eli Cohen wrote: > On Mon, Apr 13, 2015 at 05:21:58PM +0800, Honggang Li wrote: > > @@ -241,7 +243,7 @@ static void free_4k(struct mlx5_core_dev *dev, u64 addr) > > static int alloc_system_page(struct mlx5_core_dev *dev, u16 func_id) > > { > > struct

Re: linux-next: manual merge of the ftrace tree with the net-next tree

2015-04-14 Thread Steven Rostedt
On Wed, 15 Apr 2015 11:23:23 +1000 Stephen Rothwell wrote: > Hi all, > > On Mon, 13 Apr 2015 17:52:24 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the ftrace tree got a conflict in > > drivers/net/wireless/iwlwifi/iwl-devtrace.h between commit 7e1223b50089 > > ("iwlwifi:

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

2015-04-14 Thread Dave Airlie
On 14 April 2015 at 19:40, Mark Brown wrote: > On Tue, Apr 14, 2015 at 11:22:41AM +1000, Stephen Rothwell wrote: >> On Mon, 13 Apr 2015 18:07:06 -0700 Bjorn Andersson >> wrote: > >> > Your patch looks correct and should preferrably be added to the drm >> > tree, or the last patch in my series th

Re: [GIT PULL] RCU changes for v4.1

2015-04-14 Thread Paul E. McKenney
On Tue, Apr 14, 2015 at 05:25:12PM -0700, Linus Torvalds wrote: > On Tue, Apr 14, 2015 at 5:22 PM, Linus Torvalds > wrote: > > > >depends on RCU_TORTURE_TEST_SLOW_INIT > > > > would seem to be called for. > > Side note, you'll obviously also need to fix the actual bogus > 'gp_init_delay'

Re: [PATCH 5/7] selftests/x86: fix cross build logic

2015-04-14 Thread Tyler Baker
Hi Andy, On 14 April 2015 at 17:33, Andy Lutomirski wrote: > On 04/14/2015 03:52 PM, Tyler Baker wrote: >> >> x86 tests should not be built when ARCH != x86. Reused the logic from >> breakpoints to determine when it's appropriate to build. > > > In the future, please cc the author of recently-wri

[PATCH v2] kvm: mmu: don't do memslot overflow check

2015-04-14 Thread Wanpeng Li
As Andres pointed out: | I don't understand the value of this check here. Are we looking for a | broken memslot? Shouldn't this be a BUG_ON? Is this the place to care | about these things? npages is capped to KVM_MEM_MAX_NR_PAGES, i.e. | 2^31. A 64 bit overflow would be caused by a gigantic gfn_st

Re: [PATCH 1/3] sched, timer: Remove usages of ACCESS_ONCE in the scheduler

2015-04-14 Thread Steven Rostedt
On Tue, 14 Apr 2015 19:12:33 -0700 Jason Low wrote: > Hi Steven, > > On Tue, 2015-04-14 at 19:59 -0400, Steven Rostedt wrote: > > On Tue, 14 Apr 2015 16:09:44 -0700 > > Jason Low wrote: > > > > > > > @@ -2088,7 +2088,7 @@ void task_numa_fault(int last_cpupid, int mem_node, > > > int pages, i

Re: linux-next: manual merge of the ftrace tree with the net-next tree

2015-04-14 Thread David Miller
From: Stephen Rothwell Date: Wed, 15 Apr 2015 11:23:23 +1000 > This patch is now needed when the net-next tree is merged with Linus' > tree ... Yeah I noticed this while working on test merges into Linus's tree, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [PATCH 2/2] arm64: add KASan support

2015-04-14 Thread David Keitel
>>> + pgd = __pgd(__pa(kasan_zero_pmd) | PAGE_KERNEL); >>> +#else >>> + pgd = __pgd(__pa(kasan_zero_pte) | PAGE_KERNEL); >>> +#endif >>> + >>> + for (i = pgd_index(start); start < end; i++) { >>> + set_pgd(&pgdp[i], pgd); >>> + start += PGDIR_SIZE; >>> + } >>> +} >> >> S

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

2015-04-14 Thread Stephen Rothwell
Hi Len, On Mon, 13 Apr 2015 14:24:42 +1000 Stephen Rothwell wrote: > > Hi Rafael, > > After merging the pm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > In file included from arch/x86/include/asm/msr.h:131:0, > from arch/x86/include/asm/processor

Re: [patch v2] net: hip04: Make tx coalesce timer actually work

2015-04-14 Thread Ding Tianhong
On 2015/4/15 3:42, Thomas Gleixner wrote: > The code sets the expiry value of the timer to a relative value and > starts it with hrtimer_start_expires. That's fine, but that only works > once. The timer is started in relative mode, so the expiry value gets > overwritten with the absolut expiry time

Re: [PATCH 2/5] iommu/mediatek: Add mt8173 IOMMU driver

2015-04-14 Thread Tomasz Figa
On Tue, Apr 14, 2015 at 3:31 PM, Yong Wu wrote: >> >> >> >> > + >> >> > + piommu->protect_va = devm_kmalloc(piommu->dev, >> >> > MTK_PROTECT_PA_ALIGN*2, >> >> >> >> style: Operators like * should have space on both sides. >> >> >> >> > + GFP_KERNEL);

Re: [PATCH] compiler: add support for gcc 6

2015-04-14 Thread Joe Perches
On Wed, 2015-04-15 at 07:32 +1000, Anton Blanchard wrote: > gcc has recently bumped its major version and this is causing kernel > build errors. Create include/linux/compiler-gcc6.h which is a copy > of compiler-gcc5.h, minus a few comments that no longer apply. I still think it'd be better to use

Re: [PATCH 2/2] livepatch: Fix the bug if the function name is larger than KSYM_NAME_LEN-1

2015-04-14 Thread Minfei Huang
On 04/14/15 at 08:41pm, Petr Mladek wrote: > On Wed 2015-04-15 01:01:39, Minfei Huang wrote: > > On 04/14/15 at 06:27pm, Petr Mladek wrote: > > > On Tue 2015-04-14 23:55:36, Minfei Huang wrote: > > > > On 04/14/15 at 10:11P, Josh Poimboeuf wrote: > > > > > On Tue, Apr 14, 2015 at 01:45:49PM +0800,

Re: [PATCH 1/3] sched, timer: Remove usages of ACCESS_ONCE in the scheduler

2015-04-14 Thread Jason Low
Hi Steven, On Tue, 2015-04-14 at 19:59 -0400, Steven Rostedt wrote: > On Tue, 14 Apr 2015 16:09:44 -0700 > Jason Low wrote: > > > > @@ -2088,7 +2088,7 @@ void task_numa_fault(int last_cpupid, int mem_node, > > int pages, int flags) > > > > static void reset_ptenuma_scan(struct task_struct *

[PATCHv6 0/1] Intel Quark X1000 DTS thermal driver

2015-04-14 Thread Ong Boon Leong
Dear maintainers & communities, This patch introduces DTS thermal driver for Intel Quark X1000. The code implementation is based on intel_soc_dts_thermal.c. Intel Quark X1000 has one on-die DTS with two configurable trip points: critical and hot trip points. However, todate, UEFI BIOS for Quark X

[PATCHv6 1/1] thermal: intel Quark SoC X1000 DTS thermal driver

2015-04-14 Thread Ong Boon Leong
In Intel Quark SoC X1000, there is one on-die digital temperature sensor(DTS). The DTS offers both hot & critical trip points. However, in current distribution of UEFI BIOS for Quark platform, only critical trip point is configured to be 105 degree Celsius (based on Quark SW ver1.0.1 and hot trip

Re: [PATCH] [PATCH v3] mtd:spi-nor: Add Altera Quad SPI Driver

2015-04-14 Thread Viet Nga Dao
Hi, Could you please help me to review this patch? Thanks On Mon, Mar 16, 2015 at 4:40 PM, Viet Nga Dao wrote: > On Mon, Mar 16, 2015 at 4:35 PM, Rafał Miłecki wrote: >> On 16 March 2015 at 09:16, wrote: >>> +static struct flash_device flash_devices[] = { >>> + FLASH_ID("epcq16-nonjedec"

[PATCH 5/5] Input: elan_i2c - Correct the x and y trace number.

2015-04-14 Thread DusonLin
The trace number does not need to subtract 1 now. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c_i2c.c |4 ++-- drivers/input/mouse/elan_i2c_smbus.c |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_i2c.c b/drivers/input/mou

Re: [PATCH] PM / Hiberante : optimize swsusp_free()

2015-04-14 Thread tyeon
On Saturday, April 11, 2015 09:20 AM Rafael J. Wysocki worte: On Wednesday, March 25, 2015 01:49:36 AM Yeon, JeHyeon wrote: From 6cb5fffc41911a29212be52d4ce7e481f5077ccf Mon Sep 17 00:00:00 2001 From: "Tom(JeHyeon) Yeon" Date: Thu, 19 Mar 2015 17:10:45 +0900 Subject: [PATCH] PM / Hiberante : o

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-14 Thread Andy Lutomirski
On Mon, Apr 13, 2015 at 1:22 PM, Al Viro wrote: > On Mon, Apr 13, 2015 at 09:42:17PM +0200, Greg Kroah-Hartman wrote: >> > I remain opposed to this half thought out trash of an ABI for the >> > meta-data. >> >> You don't have to enable the metadata if you don't want to use it, it's >> an option :)

linux-next: manual merge of the vfs tree with the ext4 tree

2015-04-14 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/ext4/symlink.c between commit 48e72c7a0127 ("ext4 crypto: Add symlink encryption") from the ext4 tree and commit 5dd3dc06371a ("VFS: normal filesystems (and lustre): d_inode() annotations") from the vfs tree. [The ext4 tree comm

Re: [PATCH v2 1/4] of: unittest: overlay: Keep track of created overlays

2015-04-14 Thread Rob Herring
On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Antoniou wrote: > During the course of the overlay selftests some of them remain > applied. While this does not pose a real problem, make sure you track > them and destroy them at the end of the test. > > Signed-off-by: Pantelis Antoniou I've applied this

Re: [PATCH 1/2] pinctrl: bindings: pinctrl: Add support for TI's IODelay configuration

2015-04-14 Thread Lennart Sorensen
On Tue, Mar 17, 2015 at 06:41:51PM -0700, Tony Lindgren wrote: > Yeah agreed. I suggest discussing the binding and the generic > parsing code for it first :) > > It seems with the generic binding the actual driver should be > just the hardware specific code hopefully. Did this thread go anywhere

Re: [PATCH v5 2/2] perf: report/annotate: fix segfault problem.

2015-04-14 Thread Wang Nan
Ping? On 2015/4/10 11:53, Wang Nan wrote: > perf report and perf annotate are easy to trigger segfault if trace data > contain kernel module information like this: > > # perf report -D -i ./perf.data > ... > 0 0 0x188 [0x50]: PERF_RECORD_MMAP -1/0: [0xffbff1018000(0xf068000) @ > 0]: x [te

Re: [PATCH v2 3/4] of: overlay: Add sysfs attributes

2015-04-14 Thread Rob Herring
On Tue, Apr 7, 2015 at 2:23 PM, Pantelis Antoniou wrote: > Implement a number of sysfs attributes for overlays. > > * A throw once master enable switch to protect against any > further overlay applications if the administrator desires so. This one should be a separate patch. > * A per overlay ta

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

2015-04-14 Thread Stephen Rothwell
Hi all, On Wed, 8 Apr 2015 15:03:27 +1000 Stephen Rothwell wrote: > > Hi all, > > On Tue, 07 Apr 2015 21:54:05 +0200 Daniel Borkmann > wrote: > > > > On 04/07/2015 06:18 PM, Alexei Starovoitov wrote: > > > On 4/7/15 4:13 AM, Daniel Borkmann wrote: > > >> [ Cc'ing Dave, fyi ] > > >> > > >> On

Re: linux-next: manual merge of the ftrace tree with the net-next tree

2015-04-14 Thread Stephen Rothwell
Hi all, On Mon, 13 Apr 2015 17:52:24 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the ftrace tree got a conflict in > drivers/net/wireless/iwlwifi/iwl-devtrace.h between commit 7e1223b50089 > ("iwlwifi: mvm: new Alive / error table API") from the net-next tree > and commit c5ef9

[PATCH v2 1/1] stmmac: fix oops on rmmod after assigning ip addr

2015-04-14 Thread Bryan O'Donoghue
An oops exists in the flow of stmmac_release(). phy_ethtool_get_wol() depends on phydev->drv. phydev->drv will be null after stmmac_mdio_unreg() completes. Steps to reproduce on Quark X1000: 1. ifconfig eth0 192.168.0.1 2. rmmod stmmac_pci To fix this stmmac_mdio_unreg() should be run after unre

[PATCH v2 0/1] stmmac: rmmod oops after ifconfig

2015-04-14 Thread Bryan O'Donoghue
We have an oops with stmmac on Quark X1000/Galileo, triggered by rmmod after ifconfig. Fix for issue contained in next mail. root@clanton:~# ifconfig eth0 192.168.0.1 root@clanton:~# rmmod stmmac_pci [ 39.257871] stmmac_dvr_remove: removing driver [ 39.263618] BUG: unable to handle ker

Re: [GIT PULL] pin control bulk changes for v4.1

2015-04-14 Thread Linus Torvalds
On Tue, Apr 14, 2015 at 7:57 AM, Linus Walleij wrote: > Hi Linus, > > here is the big pull request for v4.1 pin control changes. It is very clearly broken: warning: (PINCTRL_AT91 && PINCTRL_MESON && PINCTRL_NOMADIK && PINCTRL_MTK_COMMON && GPIO_TB10X) selects OF_GPIO which has unmet direct dep

Re: [GIT PULL] ACPI and power management updates for v4.1-rc1

2015-04-14 Thread Rafael J. Wysocki
On Wednesday, April 15, 2015 02:56:27 AM Rafael J. Wysocki wrote: > Hi Linus, > > Please pull from > > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ > pm+acpi-4.1-rc1 > > to receive the first batch of power management and ACPI material for > v4.1-rc1 with top-most commit

Re: [PATCH v10 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-04-14 Thread Dave Young
On 04/10/15 at 04:42pm, Li, Zhen-Hua wrote: > This patchset is an update of Bill Sumner's patchset, implements a fix for: > If a kernel boots with intel_iommu=on on a system that supports intel vt-d, > when a panic happens, the kdump kernel will boot with these faults: > > dmar: DRHD: handlin

[GIT PULL] ACPI and power management updates for v4.1-rc1

2015-04-14 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm+acpi-4.1-rc1 to receive the first batch of power management and ACPI material for v4.1-rc1 with top-most commit b5e82233cab43c25fc0a1c28d9136a086db4aa52 Merge branches 'powercap' and 'pm-devfreq

Re: [v3, 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-04-14 Thread Scott Wood
On Tue, 2015-04-14 at 00:19 +0200, leroy christophe wrote: > > Le 13/04/2015 22:26, Scott Wood a écrit : > > On Sun, 2015-04-12 at 18:16 +0200, leroy christophe wrote: > >> Le 26/03/2015 22:32, Scott Wood a écrit : > >>> On Tue, Feb 03, 2015 at 12:38:16PM +0100, LEROY Christophe wrote: > Sinc

[PATCH] x86_64/efi: enforce 32 bit address for command line buffer

2015-04-14 Thread Roy Franz
The boot_params structure has a 32 bit field for storing the address of the kernel command line. When the EFI stub allocates memory for the command line, it allocates at as low and address as possible, but does not ensure that the address of memory allocated is below 4G. This patch enforces this l

Re: [PATCH] PCI / hotplug: Propagate the "ignore hotplug" setting to parent

2015-04-14 Thread Rafael J. Wysocki
On Tuesday, April 14, 2015 12:28:12 PM Henrique de Moraes Holschuh wrote: > On Mon, Apr 13, 2015, at 11:23, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Refine the mechanism introduced by commit f244d8b623da (ACPIPHP / radeon > > / nouveau: Fix VGA switcheroo problem related to ho

Re: [PATCH 2/2] More precise timestamps for nested writes

2015-04-14 Thread Suresh E. Warrier
On 04/14/2015 12:13 PM, Peter Zijlstra wrote: > On Mon, Apr 13, 2015 at 09:38:01PM -0500, Suresh E. Warrier wrote: >> +static u64 *get_write_timestamp(struct ring_buffer_per_cpu *cpu_buffer, >> +unsigned long *flags) >> +{ >> +if (rb_precise_nested_write_ts()) { >> +

Re: [PATCH 5/7] selftests/x86: fix cross build logic

2015-04-14 Thread Andy Lutomirski
On 04/14/2015 03:52 PM, Tyler Baker wrote: x86 tests should not be built when ARCH != x86. Reused the logic from breakpoints to determine when it's appropriate to build. In the future, please cc the author of recently-written code that you're fixing :) This patch is really weird. You're gen

Re: x86_64: Question about fixmaps

2015-04-14 Thread Andy Lutomirski
On 04/14/2015 06:16 AM, Alexander Kuleshov wrote: Hello All, I'm reading x86_64 source code and trying to understand where are fixmaps space in the virtual memory space. If I understand correctly (but i'm really not sure about it), fixmap space is after vsyscall space. As Documentation/x86/x86_6

Re: [GIT PULL] RCU changes for v4.1

2015-04-14 Thread Linus Torvalds
On Tue, Apr 14, 2015 at 5:22 PM, Linus Torvalds wrote: > >depends on RCU_TORTURE_TEST_SLOW_INIT > > would seem to be called for. Side note, you'll obviously also need to fix the actual bogus 'gp_init_delay' use in kernel/rcu/tree.c. That code is horrible. Linus

Re: [GIT PULL] RCU changes for v4.1

2015-04-14 Thread Linus Torvalds
On Mon, Apr 13, 2015 at 5:14 AM, Ingo Molnar wrote: > > Please pull the latest core-rcu-for-linus git tree from: This is very annoying: ... torture tests for RCU (RCU_TORTURE_TEST) [N/m/y/?] n How much to slow down RCU grace-period initialization (RCU_TORTURE_TEST_SLOW_INIT_DELAY) [3] (

[git pull] Input updates for 4.1-rc0

2015-04-14 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get the following new drivers: Qualcomm PM8941 power key drver, ChipOne icn8318 touchscreen controller driver, Broadcom iProc touchscree

[GIT PULL] Security subsystem update for 4.1

2015-04-14 Thread James Morris
Hi Linus, Highlights for this window: o Improved AVC hashing for SELinux by John Brooks and Stephen Smalley o Addition of an unconfined label to Smack o Smack documentation update o TPM driver updates Please pull. --- The following changes since commit 80dcc31fbe55932ac9204daee5f2ebc0c49b6da3:

Re: [PATCH 1/3] sched, timer: Remove usages of ACCESS_ONCE in the scheduler

2015-04-14 Thread Steven Rostedt
On Tue, 14 Apr 2015 16:09:44 -0700 Jason Low wrote: > @@ -2088,7 +2088,7 @@ void task_numa_fault(int last_cpupid, int mem_node, int > pages, int flags) > > static void reset_ptenuma_scan(struct task_struct *p) > { > - ACCESS_ONCE(p->mm->numa_scan_seq)++; > + WRITE_ONCE(p->mm->numa_s

Re: [PATCH] lsm: copy comm before calling audit_log to avoid race in string printing

2015-04-14 Thread James Morris
On Tue, 14 Apr 2015, Richard Guy Briggs wrote: > When task->comm is passed directly to audit_log_untrustedstring() without > getting a copy or using the task_lock, there is a race that could happen that > would output a NULL (\0) in the middle of the output string that would > effectively truncate

Re: [PATCH 0/3] sched, timer: Improve scalability of itimers

2015-04-14 Thread Linus Torvalds
On Tue, Apr 14, 2015 at 4:09 PM, Jason Low wrote: > This patchset improves the scalability of itimers, thread_group_cputimer > and addresses a performance issue we found while running a database > workload where more than 30% of total time is spent in the kernel > trying to acquire the thread_grou

linux-next: no trees Thursday and Friday

2015-04-14 Thread Stephen Rothwell
Hi all, Just to let you all know that I will not be releasing linux-next trees on Thursday or Friday (nor probably over the weekend as usual). Sorry about that. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgp7cE909e8di.pgp Description: OpenPGP digital signature

Re: [PATCH 1/7] sched/deadline: fix try to pull pinned dl tasks in pull algorithm

2015-04-14 Thread Wanpeng Li
Ping Juri for this patchset, :) On Mon, Apr 06, 2015 at 04:53:13PM +0800, Wanpeng Li wrote: >Function pick_next_earliest_dl_task is used to pick earliest and pushable >dl task from overloaded cpus in pull algorithm, however, it traverses >runqueue rbtree instead of pushable task rbtree which is als

  1   2   3   4   5   6   7   >