[RESEND PATCH]nbd: fix might_sleep warning on socket shutdown

2016-04-29 Thread Pranay Kr. Srivastava
This patch fixes the warning generated when a timeout occurs on the request and socket is closed from a non-sleep context by 1. Moving the socket closing on a timeout to nbd_thread_send 2. Make sock lock to be a mutex instead of a spin lock, since nbd_xmit_timeout doesn't need to hold it anymo

[RESEND PATCH]nbd: Fix might sleep warning.

2016-04-29 Thread Pranay Kr. Srivastava
When an nbd request times out then the nbd_xmit_timeout tries to close the socket by taking a spin_lock over the socket. This however generates a warning on kernel_sock_shutdown. This patch fixes this issue. Pranay Kr. Srivastava (1): fix might_sleep warning on socket shutdown drivers/block/n

RE: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD)

2016-04-29 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Tom Lendacky > Sent: Tuesday, April 26, 2016 5:56 PM > Subject: [RFC PATCH v1 00/18] x86: Secure Memory Encryption (AMD) > > This RFC patch series provides support fo

Watchdog reset trigger for eMMC

2016-04-29 Thread Anand Moon
Hi All, Using microSD card when I try to write into /dev/watchdog device it triggers reboot of the board after timer expires. --- root@odroidxu4l:~# echo 3 > /dev/watchdog [ 1659.021844] watchdog: watchdog0

Re: linux-next: build warning after merge of the akpm-current tree

2016-04-29 Thread Stephen Rothwell
Hi Josh, On Fri, 29 Apr 2016 09:03:42 -0500 Josh Poimboeuf wrote: > > On Fri, Apr 29, 2016 at 08:32:19AM -0500, Josh Poimboeuf wrote: > > On Fri, Apr 29, 2016 at 04:45:43PM +1000, Stephen Rothwell wrote: > > > Hi Andrew, > > > > > > After merging the akpm-current tree, today's linux-next build

Re: [PATCH v2 5/7] perf: Introduce address range filtering

2016-04-29 Thread Alexander Shishkin
Mathieu Poirier writes: > I see two things in this work: [trimmed 700+ lines of context that had no purpose] > 1) A framework to deal with filters described in user space. > 2) An implementation for address filtering that will work for both > Intel and ARM. > > This will work well for address f

Re: [PATCH] Use existing helper to convert "on/off" to boolean

2016-04-29 Thread Minfei Huang
On 04/29/16 at 02:21P, Andrew Morton wrote: > On Fri, 29 Apr 2016 13:47:04 +0800 Minfei Huang wrote: > > > It's more convenient to use existing function helper to convert string > > "on/off" to boolean. > > > > ... > > > > --- a/lib/kstrtox.c > > +++ b/lib/kstrtox.c > > @@ -326,7 +326,7 @@ EXPOR

[PATCH] Tolerate signal > 32 in sig_fatal (apparent bug detected by UBSAN)

2016-04-29 Thread Adam Richter
I apologize if there is some more specialized mailing list to which I should have first directed this unreviewed patch. Please feel free to redirect me. The undefined behavior sanitizer ("UBSAN") on 32-bit i386 detected a case in linux-4.6-rc5/kernel/signal/signal.c where complete_signal called t

Re: [PATCH v5 09/21] IB/hns: Add hca support

2016-04-29 Thread Or Gerlitz
On Wed, Apr 27, 2016 at 6:34 AM, oulijun wrote: > On 2016/4/26 22:25, Jiri Pirko wrote: >> Tue, Apr 26, 2016 at 04:18:21PM CEST, l...@kernel.org wrote: I appreciate your keen eye. this code is meant for ARM64bit therefore should run corretly for 64-bit AARCH64. >> The driver shoul

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread George Spelvin
> Not doing it for 64-bit constants makes no sense if it just uses the > trivial Booth's algorithm version. AFAICT, gcc 5 *does* optimize 64-bit multiplies by constants. Does the belief that it doesn't date back to some really old version? There's still a threshold where it just punts to the mult

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Doug Anderson
Hi, On Fri, Apr 29, 2016 at 5:31 PM, Peter Hurley wrote: > On 04/29/2016 05:03 PM, Doug Anderson wrote: >> Hi, >> >> On Fri, Apr 29, 2016 at 4:58 PM, Peter Hurley >> wrote: >> >> On 04/29/2016 04:01 PM, Doug Anderson wrote: >> > * serial allows numbering devices by alias. >> >> Whic

Re: [PATCH v2] pstore: add lzo/lz4 compression support

2016-04-29 Thread Geliang Tang
On Thu, Feb 18, 2016 at 09:37:26AM -0800, Kees Cook wrote: > On Thu, Feb 18, 2016 at 6:04 AM, Geliang Tang wrote: > > Like zlib compression in pstore, this patch added lzo and lz4 > > compression support so that users can have more options and better > > compression ratio. > > > > The original cod

[PATCH v2 1/3] USB: serial: cp210x: Fixed RTS mode setting by the CRTSCTS flag.

2016-04-29 Thread Konstantin Shkolnyy
A bug in the CRTSCTS handling caused RTS to alternate between CRTSCTS=0 => "RTS transmits active signal" and CRTSCTS=1 => "RTS receives flow control" instead of CRTSCTS=0 => "RTS is statically active" and CRTSCTS=1 => "RTS receives flow control" This only happened after first having enabled CRTSCTS

[PATCH v2 3/3] USB: serial: cp210x: Cleaned up CRTSCTS flag code.

2016-04-29 Thread Konstantin Shkolnyy
The CRTSCTS flag code cleared (and inconsistently) bits unrelated to CRTSCTS functionality. It was also harder than necessary to read. Signed-off-by: Konstantin Shkolnyy --- Changes in v2: Improved CRTSCTS fix based on feedback. Dropped get_termios error handling. drivers/usb/serial/cp210x.c |

[PATCH v2 2/3] USB: serial: cp210x: Added comments to CRTSCTS flag code.

2016-04-29 Thread Konstantin Shkolnyy
Replaced magic numbers used in the CRTSCTS flag code with symbolic names from the chip specification. Signed-off-by: Konstantin Shkolnyy --- Changes in v2: Improved CRTSCTS fix based on feedback. Dropped get_termios error handling. drivers/usb/serial/cp210x.c | 93 ++

[PATCH 2/6] HSI: omap_ssi: fix module unloading

2016-04-29 Thread Sebastian Reichel
Removal of ssi controller debugfs directory must happen after the clients have been removed from it. Signed-off-by: Sebastian Reichel --- drivers/hsi/controllers/omap_ssi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hsi/controllers/omap_ssi.c b/drivers/hsi

[PATCH 5/6] HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module

2016-04-29 Thread Sebastian Reichel
Merge omap_ssi and omap_ssi_port into one module. This fixes problems with module cycle dependencies introduced by future patches. Signed-off-by: Sebastian Reichel --- drivers/hsi/controllers/Kconfig | 5 - drivers/hsi/controllers/Makefile| 4

[PATCH 6/6] HSI: omap-ssi: add clk change support

2016-04-29 Thread Sebastian Reichel
This adds support for frequency changes of the SSI functional clock, which may occur due to DVFS. Signed-off-By: Sebastian Reichel --- drivers/hsi/controllers/omap_ssi.h | 6 drivers/hsi/controllers/omap_ssi_core.c | 63 + drivers/hsi/controllers/omap_s

[PATCH 4/6] HSI: omap_ssi: fix removal of port platform device

2016-04-29 Thread Sebastian Reichel
This avoids removal of the HSI port device when only the platform port device should be removed and clears the POPULATED bit in the DT node, so that a new platform device is created when the driver is probed again. Signed-off-by: Sebastian Reichel --- drivers/hsi/controllers/omap_ssi.c | 4

[PATCH 1/6] HSI: omap_ssi_port: switch to gpiod API

2016-04-29 Thread Sebastian Reichel
Simplify driver by switching to new gpio descriptor based API. Signed-off-by: Sebastian Reichel --- drivers/hsi/controllers/omap_ssi.c | 1 - drivers/hsi/controllers/omap_ssi.h | 4 ++-- drivers/hsi/controllers/omap_ssi_port.c | 31 ++- 3 files changed, 12

[PATCH 3/6] HSI: omap_ssi: make sure probe stays available

2016-04-29 Thread Sebastian Reichel
device can be unbind/rebind, so probe should stay available. Signed-off-by: Sebastian Reichel --- drivers/hsi/controllers/omap_ssi.c | 17 + drivers/hsi/controllers/omap_ssi_port.c | 19 ++- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/dri

[PATCH 0/6] omap-ssi cleanups + dvfs support

2016-04-29 Thread Sebastian Reichel
Hi, The following patches add a few cleanups to the omap-ssi driver, fix module unloading (and reloading) and merge omap-ssi and omap-ssi-port into the same module to avoid a circular dependency introduced by the last patch. P.S.: The last patch has already been sent in this patchset (https://lkm

Re: [RFC PATCH 1/1] clk: imx7d: move clk setting out of imx7d_clocks_init

2016-04-29 Thread Stefan Agner
On 2016-04-29 02:45, Dong Aisheng wrote: > During kernel early booting(e.g. in time_init()), there's only one > init idle task running, and the idle sched class indicates that it's > not valid to schedule for idle task. If it happens the kernel > will complain with a error message as follows: > [

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread Rik van Riel
On Fri, 2016-04-29 at 16:51 -0700, Linus Torvalds wrote: > There's presumably a few optimal values from a "spread bits out > evenly" standpoint, and they won't have anything to do with random > irrational constants, and will have everything to do with having nice > bitpatterns. > > I'm adding Rik

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread Linus Torvalds
On Fri, Apr 29, 2016 at 5:32 PM, George Spelvin wrote: > > Odd is important. If the multiplier is even, the msbit of the input > doesn't affect the hash result at all. Fair enough. My test-set was incomplete. >> Yeah. gcc will actually do the clever stuff for the 32-bit case, afaik. > > It's no

Re:Good Day

2016-04-29 Thread Mr. Hirano Nobuyuki
I am Mr. Hirano Nobuyuki , from Japan, I will like to seek your partnership and mutual understanding regarding a beneficial transaction. Reply Immediately to my email below for Details . ( hiranonobuyuki...@lycos.com ) Regards For Hirano Sincerely, Mr.Nobuyuki Hirano Bank Of Tokyo-Mitsubishi U

Re: [PATCH 00/14] staging: fsl-mc: misc updates

2016-04-29 Thread Greg KH
On Mon, Apr 11, 2016 at 11:48:25AM -0500, Stuart Yoder wrote: > From: Stuart Yoder > > This patch series makes further progress towards completing the fsl-mc > TODO list. I don't seem to have gotten patch 14/14, can you resend just that one? thanks, greg k-h

[PATCH] x86, perf: Add model numbers for Kabylake CPUs

2016-04-29 Thread Andi Kleen
From: Andi Kleen Everything the same as Skylake, just new model numbers. Signed-off-by: Andi Kleen --- arch/x86/events/intel/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index 79b59437f5ee..90ba3ae3074e 100644 --- a/ar

Re: [PATCH v2 1/4] drivers: staging: fix parameter alignment

2016-04-29 Thread Greg KH
On Mon, Apr 18, 2016 at 10:35:28AM +1000, Tobin C Harding wrote: > drivers/staging/android/ion/ion.c checkpatch produces alignment checks. > > This patch is whitespace only and fixes these checks. > > Signed-off-by: Tobin C Harding > --- > drivers/staging/android/ion/ion.c | 64 > +

Re: [PATCH] staging: rts5208: Unnecessary parantheses around chip->sd_card

2016-04-29 Thread Greg KH
On Fri, Apr 29, 2016 at 11:15:27AM +0530, Manav Batra wrote: > Removes unnecessary parantheses around chip->sd_card > Signed-off-by: Manav Batra > --- >  drivers/staging/rts5208/sd.c | 6 +++--- >  1 file changed, 3 insertions(+), 3 deletions(-) HTML patches do not work, sorry :( Also, put a blan

Re: [PATCH] staging: rts5208: Avoid multiple assignment in one line

2016-04-29 Thread Greg KH
On Thu, Apr 28, 2016 at 10:42:07PM -0700, Manav Batra wrote: > Signed-off-by: Manav Batra > > Separates out assignment in one line to two lines. signed-off-by goes at the end of the text, not at the top. Please fix all of these and resend. thanks, greg k-h

Re: [PATCH v4 10/10] x86/xsaves: Re-enable XSAVES

2016-04-29 Thread Dave Hansen
On 04/29/2016 04:12 PM, Yu-cheng Yu wrote: > On Fri, Apr 29, 2016 at 01:32:15PM -0700, Dave Hansen wrote: >> The reason I haven't acked this patch is that I want to be _sure_ that >> we've audited all of the call paths that access the XSAVE buffer to >> ensure that they can all either handle the XS

Re: [PATCH v2 00/13] De-stage Sync File Framework

2016-04-29 Thread Greg Kroah-Hartman
On Thu, Apr 28, 2016 at 10:46:47AM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Hi, > > This patchset sits on top of Sync ABI Rework v13: > > https://www.spinics.net/lists/dri-devel/msg105667.html > > The first eight clean up and prepare sync_file for de-staging. The last four > p

Re: [PATCH v4 04/10] x86/xsaves: Introduce a new check that allows correct xstates copy from kernel to user directly

2016-04-29 Thread Dave Hansen
On 04/29/2016 03:43 PM, Yu-cheng Yu wrote: > On Fri, Apr 29, 2016 at 01:09:07PM -0700, Dave Hansen wrote: >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: >>> +static int may_copy_fpregs_to_sigframe(void) >>> +{ >>> + /* >>> +* In signal handling path, the kernel already checks if >>> +* FPU

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread George Spelvin
> At least for my tests, even that seems to actually be a total > non-issue. Yes, odd values *might* be better, but as mentioned in my > crossing email, it doesn't actually seem to matter for any case the > kernel cares about, since we tend to want to hash down to 10-20 bits > of data, so the least

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Peter Hurley
On 04/29/2016 05:03 PM, Doug Anderson wrote: > Hi, > > On Fri, Apr 29, 2016 at 4:58 PM, Peter Hurley > wrote: > > On 04/29/2016 04:01 PM, Doug Anderson wrote: > > * serial allows numbering devices by alias. > > Which is in fact a total nightmare. > > While stable device order

Re: [PATCH 0/2] scop GFP_NOFS api

2016-04-29 Thread Dave Chinner
On Fri, Apr 29, 2016 at 02:04:18PM +0200, Michal Hocko wrote: > I would also like to revisit generic inode/dentry shrinker and see > whether it could be more __GFP_FS friendly. As you say many FS might > even not depend on some FS internal locks so pushing GFP_FS check down > the layers might make

Re: [PATCH v2] ecryptfs: open lower files using kernel creds

2016-04-29 Thread Tyler Hicks
On 2016-04-12 03:15:44, Ricky Zhou wrote: > In LSMs such as SELinux, files can be associated with state from the > credentials of the task that opens it. Since ecryptfs shares a single > handle to lower files across tasks that access it, others tasks can > later be denied access to the lower file a

Re: [RFC][PATCH 14/31] locking,metag: Implement atomic_fetch_{add,sub,and,or,xor}()

2016-04-29 Thread James Hogan
Hi Peter, On Fri, Apr 22, 2016 at 11:04:27AM +0200, Peter Zijlstra wrote: > Implement FETCH-OP atomic primitives, these are very similar to the > existing OP-RETURN primitives we already have, except they return the > value of the atomic variable _before_ modification. > > This is especially usef

Re: [PATCH 0/2] scop GFP_NOFS api

2016-04-29 Thread Dave Chinner
On Fri, Apr 29, 2016 at 03:35:42PM +1000, NeilBrown wrote: > On Tue, Apr 26 2016, Michal Hocko wrote: > > > Hi, > > we have discussed this topic at LSF/MM this year. There was a general > > interest in the scope GFP_NOFS allocation context among some FS > > developers. For those who are not aware

Re: [RFC PATCH v2 03/18] x86/asm/head: standardize the bottom of the stack for idle tasks

2016-04-29 Thread Andy Lutomirski
On Apr 29, 2016 4:27 PM, "Josh Poimboeuf" wrote: > > On Fri, Apr 29, 2016 at 02:38:02PM -0700, Andy Lutomirski wrote: > > On Fri, Apr 29, 2016 at 1:50 PM, Josh Poimboeuf wrote: > > > On Fri, Apr 29, 2016 at 12:39:16PM -0700, Andy Lutomirski wrote: > > >> On Thu, Apr 28, 2016 at 1:44 PM, Josh Poim

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-04-29 Thread Andy Lutomirski
On Apr 29, 2016 3:11 PM, "Jiri Kosina" wrote: > > On Fri, 29 Apr 2016, Andy Lutomirski wrote: > > > > NMI, MCE and interrupts aren't a problem because they have dedicated > > > stacks, which are easy to detect. If the tasks' stack is on an > > > exception stack or an irq stack, we consider it unr

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-04-29 Thread Andy Lutomirski
On Apr 29, 2016 3:41 PM, "Josh Poimboeuf" wrote: > > On Fri, Apr 29, 2016 at 02:37:41PM -0700, Andy Lutomirski wrote: > > On Fri, Apr 29, 2016 at 2:25 PM, Josh Poimboeuf wrote: > > > I think the easiest way to make it work would be to modify the idtentry > > > macro to put all the idt entries in

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread Linus Torvalds
On Fri, Apr 29, 2016 at 4:31 PM, George Spelvin wrote: > > After researching it, I think that the "high bits of a multiply" is > in fact a decent way to do such a hash. Our emails crossed. Yes. My test harness actually likes the multiplication more than most of the specialized "spread out bits" v

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Peter Hurley
On 04/29/2016 04:01 PM, Doug Anderson wrote: > * serial allows numbering devices by alias. Which is in fact a total nightmare. While stable device order is mandatory in serial because of console command line parameters and existing userspace expectations, it is the number one barrier to providing

Re: [PATCH 3/3] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-04-29 Thread Marek Vasut
On 04/30/2016 01:36 AM, Dmitry Torokhov wrote: > Hi Ksenija, Hi all, > On Fri, Apr 29, 2016 at 01:49:11PM +0200, Ksenija Stanojevic wrote: >> Add mxs-lradc touchscreen driver. >> >> Signed-off-by: Ksenija Stanojevic >> --- >> drivers/input/touchscreen/Kconfig| 14 +- >> drivers/input/t

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread Linus Torvalds
On Fri, Apr 29, 2016 at 2:10 PM, Linus Torvalds wrote: > On Thu, Apr 28, 2016 at 11:32 AM, Linus Torvalds > wrote: >> >> hash_long/ptr really shouldn't care about the low bits being zero at >> all, because it should mix in all the bits (using a prime multiplier >> and taking the high bits). > > L

Re: [RFC PATCH v1 13/18] x86: DMA support for memory encryption

2016-04-29 Thread Tom Lendacky
On 04/29/2016 11:27 AM, Konrad Rzeszutek Wilk wrote: > On Fri, Apr 29, 2016 at 10:12:45AM -0500, Tom Lendacky wrote: >> On 04/29/2016 02:17 AM, Konrad Rzeszutek Wilk wrote: >>> On Tue, Apr 26, 2016 at 05:58:12PM -0500, Tom Lendacky wrote: Since DMA addresses will effectively look like 48-bit a

Re: [PATCH 26/32] perf/x86/intel/cqm: integrate CQM cgroups with scheduler

2016-04-29 Thread Vikas Shivappa
On Fri, 29 Apr 2016, David Carrillo-Cisneros wrote: When an event is terminated, intel_cqm_event_stop calls pqr_cache_update_rmid and sets state->next_rmid to the rmid of its parent in the RMID hierarchy. That would make next call to __pqr_update to update PQR_ASSOC. What about all the cases

Re: [PATCH 2/2] mm, debug: report when GFP_NO{FS,IO} is used explicitly from memalloc_no{fs,io}_{save,restore} context

2016-04-29 Thread Dave Chinner
On Fri, Apr 29, 2016 at 02:12:20PM +0200, Michal Hocko wrote: > On Fri 29-04-16 07:51:45, Dave Chinner wrote: > > On Thu, Apr 28, 2016 at 10:17:59AM +0200, Michal Hocko wrote: > > > [Trim the CC list] > > > On Wed 27-04-16 08:58:45, Dave Chinner wrote: > > > [...] > > > > Often these are to silence

Re: [PATCH 3/3] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-04-29 Thread Dmitry Torokhov
Hi Ksenija, On Fri, Apr 29, 2016 at 01:49:11PM +0200, Ksenija Stanojevic wrote: > Add mxs-lradc touchscreen driver. > > Signed-off-by: Ksenija Stanojevic > --- > drivers/input/touchscreen/Kconfig| 14 +- > drivers/input/touchscreen/Makefile | 1 + > drivers/input/touchscreen/mx

Re: [patch 2/7] lib/hashmod: Add modulo based hash mechanism

2016-04-29 Thread George Spelvin
On Fri, Apr 29, 2016 at 9:32 PM, Linus Torvalds wrote: wrote: > For example, that _long_ range of bits set ("7fffc" in the middle) > is effectively just one bit set with a subtraction. And it's *right* > in that bit area that is supposed to shuffle bits 14-40 to the high bits > (which is what

Re: [PATCH] arm64: Relocate screen_info.lfb_base on PCI BAR allocation

2016-04-29 Thread Bjorn Helgaas
[+cc Matt, because I'm out of my depth in this UEFI stuff] On Fri, Apr 29, 2016 at 11:52:47PM +0200, Alexander Graf wrote: > On 29.04.16 23:37, Bjorn Helgaas wrote: > > On Fri, Apr 29, 2016 at 10:51:34PM +0200, Alexander Graf wrote: > >> I think the only thing we can really take as granted is the

Re: [RFC PATCH v2 03/18] x86/asm/head: standardize the bottom of the stack for idle tasks

2016-04-29 Thread Josh Poimboeuf
On Fri, Apr 29, 2016 at 02:38:02PM -0700, Andy Lutomirski wrote: > On Fri, Apr 29, 2016 at 1:50 PM, Josh Poimboeuf wrote: > > On Fri, Apr 29, 2016 at 12:39:16PM -0700, Andy Lutomirski wrote: > >> On Thu, Apr 28, 2016 at 1:44 PM, Josh Poimboeuf > >> wrote: > >> > Thanks to all the recent x86 entr

Re: [PATCH] mm: use unsigned long constant for page flags

2016-04-29 Thread Andrew Morton
On Fri, 29 Apr 2016 16:15:23 -0700 Yu Zhao wrote: > struct page->flags is unsigned long, so when shifting bits we should > use UL suffix to match it. > > Found this problem after I added 64-bit CPU specific page flags and > failed to compile the kernel: > mm/page_alloc.c: In function '__free_o

Re: [PATCH v4 10/10] x86/xsaves: Re-enable XSAVES

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 01:32:15PM -0700, Dave Hansen wrote: > The reason I haven't acked this patch is that I want to be _sure_ that > we've audited all of the call paths that access the XSAVE buffer to > ensure that they can all either handle the XSAVES format *or* don't care > for whatever reaso

[PATCH] mm: use unsigned long constant for page flags

2016-04-29 Thread Yu Zhao
struct page->flags is unsigned long, so when shifting bits we should use UL suffix to match it. Found this problem after I added 64-bit CPU specific page flags and failed to compile the kernel: mm/page_alloc.c: In function '__free_one_page': mm/page_alloc.c:672:2: error: integer overflow in ex

Re: [PATCH 0/3] Add alignment check for DAX mount

2016-04-29 Thread Ross Zwisler
On Fri, Apr 29, 2016 at 02:39:32PM -0600, Toshi Kani wrote: > When a partition is not aligned by 4KB, mount -o dax succeeds, > but any read/write access to the filesystem fails, except for > metadata update. > > Add alignment check to ext4, ext2, and xfs. > > --- > Toshi Kani (3): > 1/3 ext4: Ad

[PATCH 3/3] [RFC] pci: tegra: use new pci_register_host interface

2016-04-29 Thread Arnd Bergmann
Tegra is one of the remaining platforms that still use the traditional pci_common_init_dev() interface for probing PCI host bridges. This demonstrates how to convert it to the pci_register_host interface I just added in a previous patch. This leads to a more linear probe sequence that can handle e

[RFC] experimental pci_register_host API

2016-04-29 Thread Arnd Bergmann
As mentioned in another thread, I have tried to come up with a way to make the PCI host driver registration more flexible and simpler. We have actually discussed this multiple times in the past, but always ended up elsewhere, so this is a proof of concept work, leaving all the existing interfaces

[PATCH 2/3] [RFC] pci: host-common: use new pci_register_host interface

2016-04-29 Thread Arnd Bergmann
This changes the pci-host-common implementation to call the new pci_register_host() interface instead of pci_scan_root_bus(). As a result, we get to share the pci_host_bridge structure as it was originally intended anyway: We ended up having two copies of pci_host_bridge here because we never got

[PATCH 1/3] [RFC] pci: add new method for register PCI hosts

2016-04-29 Thread Arnd Bergmann
This patch makes the existing 'pci_host_bridge' structure a proper device that is usable by PCI host drivers in a more standard way. In addition to the existing pci_scan_bus, pci_scan_root_bus, pci_scan_root_bus_msi, and pci_create_root_bus interfaces, this unfortunately means having to add yet ano

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Doug Anderson
Hi, On Fri, Apr 29, 2016 at 3:44 PM, Russell King - ARM Linux wrote: > My reply would be... why should MMC have special handling that no > other subsystem has? No other subsystem? * i2c allows numbering devices by alias * rtc allows numbering devices by alias. * serial allows numbering devices

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-04-29 Thread Josh Poimboeuf
On Sat, Apr 30, 2016 at 12:11:45AM +0200, Jiri Kosina wrote: > On Fri, 29 Apr 2016, Andy Lutomirski wrote: > > > NMI, MCE and interrupts aren't a problem because they have dedicated > > > stacks, which are easy to detect. If the tasks' stack is on an > > > exception stack or an irq stack, we consi

Re: [PATCH V6 02/13] pci, acpi: Provide generic way to assign bus domain number.

2016-04-29 Thread Arnd Bergmann
On Thursday 28 April 2016 17:34:10 Arnd Bergmann wrote: > On Thursday 28 April 2016 10:12:12 Bjorn Helgaas wrote: > > Right, we don't have a good mechanism for passing more info into > > pci_create_root_bus(). Maybe the caller could fill in a struct so we > > have a chance to extend it without hav

Re: [PATCH v4 04/10] x86/xsaves: Introduce a new check that allows correct xstates copy from kernel to user directly

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 01:09:07PM -0700, Dave Hansen wrote: > On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > > diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c > > index 0fbf60c..09945f1 100644 > > --- a/arch/x86/kernel/fpu/signal.c > > +++ b/arch/x86/kernel/fpu/signal.c > >

Re: camera application for testing (was Re: v4l subdevs without big device)

2016-04-29 Thread Ivaylo Dimitrov
Hi, On 30.04.2016 01:20, Pali Rohár wrote: On Saturday 30 April 2016 00:13:59 Pavel Machek wrote: Any other application I should look at? Thanks, Maybe camera-ui, which is part of CSSU? https://github.com/community-ssu/camera-ui This is based on gdigicam, are you sure it is compatible wit

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 03:22:50PM -0700, Doug Anderson wrote: > Hi, > > On Fri, Apr 29, 2016 at 3:16 PM, Russell King - ARM Linux > wrote: > > On Fri, Apr 29, 2016 at 02:56:38PM -0700, Doug Anderson wrote: > >> Russell, > >> > >> On Fri, Apr 29, 2016 at 2:50 PM, Russell King - ARM Linux > >> wr

Re: [PATCH v4 07/10] x86/xsaves: Fix PTRACE frames for XSAVES

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 03:36:12PM -0700, Dave Hansen wrote: > On 04/29/2016 03:30 PM, Yu-cheng Yu wrote: > > On Fri, Apr 29, 2016 at 01:25:34PM -0700, Dave Hansen wrote: > >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > >>> + for (i = 0; i < XFEATURE_MAX; i++) { > >>> + /* > >>> +

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Javier Martinez Canillas
Hello Russell, On Fri, Apr 29, 2016 at 6:16 PM, Russell King - ARM Linux wrote: > On Fri, Apr 29, 2016 at 02:56:38PM -0700, Doug Anderson wrote: >> Russell, >> >> On Fri, Apr 29, 2016 at 2:50 PM, Russell King - ARM Linux >> wrote: >> > On Fri, Apr 29, 2016 at 02:39:35PM -0700, Doug Anderson wrot

Re: [PATCH v4 0/10] x86/xsaves: Fix XSAVES known issues

2016-04-29 Thread Dave Hansen
On 04/29/2016 01:49 PM, Andy Lutomirski wrote: >> > >> > But I also think it would be pretty nice if 'ls' didn't pay the 2k cost >> > to have AVX-512 state if it's not using AVX-512. We also don't have to >> > do this with CR0.TS. We'd actually use a combination of out-of-line >> > (not appended

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-04-29 Thread Josh Poimboeuf
On Fri, Apr 29, 2016 at 02:37:41PM -0700, Andy Lutomirski wrote: > On Fri, Apr 29, 2016 at 2:25 PM, Josh Poimboeuf wrote: > > I think the easiest way to make it work would be to modify the idtentry > > macro to put all the idt entries in a dedicated section. Then the > > unwinder could easily det

[PATCH] media: fix use-after-free in cdev_put() when app exits after driver unbind

2016-04-29 Thread Shuah Khan
When driver unbinds while media_ioctl is in progress, cdev_put() fails with when app exits after driver unbinds. Add a kobject to the media_devnode structure and set this kobject as the cdev parent kobject. This allows cdev_add() to hold a reference to it and release the reference in cdev_del() en

Re: [PATCH v4 07/10] x86/xsaves: Fix PTRACE frames for XSAVES

2016-04-29 Thread Dave Hansen
On 04/29/2016 03:30 PM, Yu-cheng Yu wrote: > On Fri, Apr 29, 2016 at 01:25:34PM -0700, Dave Hansen wrote: >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: >>> + for (i = 0; i < XFEATURE_MAX; i++) { >>> + /* >>> +* Copy only in-use xstates. >>> +*/ >>> + if

[PATCH v1 1/2] mfd: bxtwc: Fix acpi module device table name

2016-04-29 Thread Kuppuswamy Sathyanarayanan
acpi device id table name for this driver is bxtwc_acpi_ids.But in module device table pmic_acpi_ids is used. This patch fixes this problem. Signed-off-by: Kuppuswamy Sathyanarayanan --- drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

Re: [PATCH v4 07/10] x86/xsaves: Fix PTRACE frames for XSAVES

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 01:25:34PM -0700, Dave Hansen wrote: > On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > > + for (i = 0; i < XFEATURE_MAX; i++) { > > + /* > > +* Copy only in-use xstates. > > +*/ > > + if (((header.xfeatures >> i) & 1) && xfeature_en

Re: [BUG] vfio device assignment regression with THP ref counting redesign

2016-04-29 Thread Alex Williamson
On Fri, 29 Apr 2016 18:34:44 +0200 Andrea Arcangeli wrote: > On Fri, Apr 29, 2016 at 10:06:11AM +0300, Kirill A. Shutemov wrote: > > Hm. I just woke up and haven't got any coffee yet, but I don't why my > > approach would be worse for performance. Both have the same algorithmic > > complexity.

[PATCH v1 2/2] mfd: bxtwc: remove unnecessary condition checks in ipc calls

2016-04-29 Thread Kuppuswamy Sathyanarayanan
In the following code block, BXTWC_DEVICE1_ADDR value is already fixed and hence there no need to check for if (!i2c_addr) in every ipc read/write calls. Even if this check is required it can be moved to probe function. i2c_addr = BXTWC_DEVICE1_ADDR; if (!i2c_addr) { dev_err(pmic->dev, "I2

Re: random(4) changes

2016-04-29 Thread George Spelvin
> I think we can agree that we disagree. Yes, we agree on that, at least! The problem is, this is supposed to be a matter of fact, not opinion, so there should be one right answer. I suppose it's possible it's still an issue of terminology, but we've exhausted > Though, I will get back to the d

Re: [RFC v2 5/8] drm/fence: add in-fences support

2016-04-29 Thread Rob Clark
On Fri, Apr 29, 2016 at 3:48 AM, Daniel Stone wrote: > Hi, > > On 28 April 2016 at 23:28, Rob Clark wrote: >> On Wed, Apr 27, 2016 at 2:39 AM, Daniel Vetter wrote: >>> On Tue, Apr 26, 2016 at 01:48:02PM -0700, Greg Hackmann wrote: A (per-CRTC?) array of fences would be more flexible. And e

Re: [PATCH 3/6] intel_sgx: driver for Intel Secure Guard eXtensions

2016-04-29 Thread Jethro Beekman
On 29-04-16 13:04, Jarkko Sakkinen wrote: >>> Why would you want to do that? >> >> ... > > Do you see this as a performance issue or why do you think that this > would hurt that much? I don't think it's a performance issue at all. I'm just giving an example of why you'd want to do this. I'm sure p

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Doug Anderson
Hi, On Fri, Apr 29, 2016 at 3:16 PM, Russell King - ARM Linux wrote: > On Fri, Apr 29, 2016 at 02:56:38PM -0700, Doug Anderson wrote: >> Russell, >> >> On Fri, Apr 29, 2016 at 2:50 PM, Russell King - ARM Linux >> wrote: >> > On Fri, Apr 29, 2016 at 02:39:35PM -0700, Doug Anderson wrote: >> > [di

Re: camera application for testing (was Re: v4l subdevs without big device)

2016-04-29 Thread Pali Rohár
On Saturday 30 April 2016 00:13:59 Pavel Machek wrote: > Any other application I should look at? Thanks, Maybe camera-ui, which is part of CSSU? https://github.com/community-ssu/camera-ui -- Pali Rohár pali.ro...@gmail.com signature.asc Description: This is a digitally signed message part.

Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 03:13:33PM -0700, Dave Hansen wrote: > On 04/29/2016 03:07 PM, Yu-cheng Yu wrote: > > On Fri, Apr 29, 2016 at 01:28:31PM -0700, Dave Hansen wrote: > >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > >>> The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area > >>> of

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2016-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2016 at 02:56:38PM -0700, Doug Anderson wrote: > Russell, > > On Fri, Apr 29, 2016 at 2:50 PM, Russell King - ARM Linux > wrote: > > On Fri, Apr 29, 2016 at 02:39:35PM -0700, Doug Anderson wrote: > > [didn't read most of your reply] > > > >> Really I just reposted it several times

camera application for testing (was Re: v4l subdevs without big device)

2016-04-29 Thread Pavel Machek
Hi! What is reasonable camera application for testing? N900 looks like a low-end digital camera. I have now have the hardware working (can set focus to X cm using command line), but that's not going to be useful for taking photos. In particular, who is going to do computation neccessary for auto

[ANNOUNCE] Git v2.8.2

2016-04-29 Thread Junio C Hamano
The latest maintenance release Git v2.8.2 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.8.2' tag and the 'maint' branch that the tag points at: url = https://kernel

Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Dave Hansen
On 04/29/2016 03:07 PM, Yu-cheng Yu wrote: > On Fri, Apr 29, 2016 at 01:28:31PM -0700, Dave Hansen wrote: >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: >>> The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area >>> offsets and sizes. Values for legacy components i387 and XMMs were >>> no

[PATCH] ide-tape: fix misprint in failure handling in idetape_init()

2016-04-29 Thread Alexey Khoroshilov
If driver_register() failed there is no sense to call driver_unregister(). unregister_chrdev() should be called here. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/ide/ide-tape.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-04-29 Thread Jiri Kosina
On Fri, 29 Apr 2016, Andy Lutomirski wrote: > > NMI, MCE and interrupts aren't a problem because they have dedicated > > stacks, which are easy to detect. If the tasks' stack is on an > > exception stack or an irq stack, we consider it unreliable. > > Only on x86_64. Well, MCEs are more or less

Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 01:28:31PM -0700, Dave Hansen wrote: > On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > > The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area > > offsets and sizes. Values for legacy components i387 and XMMs were > > not initialized. Fix it. > > Is this just a com

Re: [PATCH 0/6] Intel Secure Guard Extensions

2016-04-29 Thread Jarkko Sakkinen
On Tue, Apr 26, 2016 at 09:00:10PM +0200, Pavel Machek wrote: > On Mon 2016-04-25 20:34:07, Jarkko Sakkinen wrote: > > Intel(R) SGX is a set of CPU instructions that can be used by > > applications to set aside private regions of code and data. The code > > outside the enclave is disallowed to acc

Re: [PATCH] klp: make object/func-walking helpers more robust

2016-04-29 Thread Jiri Kosina
On Thu, 28 Apr 2016, Miroslav Benes wrote: > Current object-walking helper checks the presence of obj->funcs to > determine the end of objs array in klp_object structure. This is > somewhat fragile because one can easily forget about funcs definition > during livepatch creation. In such a case the

Re: [PATCH 26/32] perf/x86/intel/cqm: integrate CQM cgroups with scheduler

2016-04-29 Thread David Carrillo-Cisneros
When an event is terminated, intel_cqm_event_stop calls pqr_cache_update_rmid and sets state->next_rmid to the rmid of its parent in the RMID hierarchy. That would make next call to __pqr_update to update PQR_ASSOC. On Fri, Apr 29, 2016 at 2:32 PM Vikas Shivappa wrote: > > > > On Fri, 29 Apr 2016

[PATCH 01/21] X86_64, UV: Add Initial UV4 definitions

2016-04-29 Thread Mike Travis
Add preliminary UV4 defines. Signed-off-by: Mike Travis Tested-by: John Estabrook Tested-by: Gary Kroening Tested-by: Nathan Zimmer --- arch/x86/include/asm/uv/uv_hub.h | 64 +++--- arch/x86/include/asm/uv/uv_mmrs.h | 22 + 2 files changed, 62

[PATCH 10/21] X86_64, UV: Create per cpu info structs to replace per hub info structs

2016-04-29 Thread Mike Travis
The major portion of the hub info is common to all cpus on that hub. This is step one of moving the per cpu hub info to a per node hub info struct. This patch creates the small per cpu info struct that will contain only information specific to each CPU. Signed-off-by: Mike Travis Reviewed-by: Di

[PATCH 12/21] X86_64, UV: Move blade local processor ID to the per cpu info struct

2016-04-29 Thread Mike Travis
Move references to blade local processor ID to the new per cpu info structs. Create an access function that makes this move, and other potential moves opaque to callers of this function. Define a flag that indicates to callers in external GPL modules that this function replaces any local definiti

[PATCH 00/21] X86_64, UV: Update kernel for SGI UV4 support

2016-04-29 Thread Mike Travis
This patch set primarily updates the Linux kernel to support the next generation SGI Ultraviolet system, UV4. This architecture change is a larger incremental change than previous UV updates because of a major change to the addressing scheme. Previous UV architectures used a fixed address width

[PATCH 11/21] X86_64, UV: Move scir info to the per cpu info struct

2016-04-29 Thread Mike Travis
Change the references to the SCIR fields to the new per cpu info structs. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Tested-by: John Estabrook Tested-by: Gary Kroening Tested-by: Nathan Zimmer --- arch/x86/include/asm/uv/uv_hub.h | 17 ++--- arch/x86/kernel/apic

[PATCH 13/21] X86_64, UV: Allocate common per node hub info structs on local node

2016-04-29 Thread Mike Travis
Allocate and setup per node hub info structs. CPU 0/Node 0 hub info is statically allocated to be accessible early in system startup. The remaining hub info structs are allocated on the node's local memory, and shared among the CPU's on that node. This leaves the small amount of info unique to e

  1   2   3   4   5   6   7   8   >