Re: [PATCH] MIPS: NI 169445 board support

2017-01-05 Thread Joao Pinto
Hi, Às 6:28 PM de 1/5/2017, Niklas Cassel escreveu: > On 01/04/2017 05:38 PM, Nathan Sullivan wrote: >> On Tue, Dec 20, 2016 at 05:34:34PM +0100, Ralf Baechle wrote: >>> On Fri, Dec 02, 2016 at 09:42:09AM -0600, Nathan Sullivan wrote: Date: Fri, 2 Dec 2016 09:42:09 -0600 From: Nathan S

Re: [PATCH] cpufreq: Remove CONFIG_CPU_FREQ_STAT_DETAILS config option

2017-01-05 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 01:57:41PM +0530, Viresh Kumar wrote: > This doesn't have any benefit apart from saving a small amount of memory > when it is disabled. The ifdef hackery in the code makes it dirty > unnecessarily. > > Clean it up by removing the Kconfig option completely. Few defconfigs >

[PATCH] Input: elants_i2c - Avoid divide by 0 errors on bad touchscreen data

2017-01-05 Thread Guenter Roeck
The following crash may be seen if bad data is received from the touchscreen. [ 2189.425150] elants_i2c i2c-ELAN0001:00: unknown packet ff ff ff ff [ 2189.430738] divide error: [#1] PREEMPT SMP [ 2189.434679] gsmi: Log Shutdown Reason 0x03 [ 2189.434689] Modules linked in: ip6t_REJECT nf_reje

Re: Re: [PATCH] MIPS: NI 169445 board support

2017-01-05 Thread Niklas Cassel
On 01/04/2017 05:38 PM, Nathan Sullivan wrote: > On Tue, Dec 20, 2016 at 05:34:34PM +0100, Ralf Baechle wrote: >> On Fri, Dec 02, 2016 at 09:42:09AM -0600, Nathan Sullivan wrote: >>> Date: Fri, 2 Dec 2016 09:42:09 -0600 >>> From: Nathan Sullivan >>> To: r...@linux-mips.org, mark.rutl...@arm.com,

[PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries indexing

2017-01-05 Thread Lorenzo Pieralisi
Commit 618f535a6062 ("ACPI/IORT: Add single mapping function") introduced a function (iort_node_get_id()) to retrieve ids for IORT named components. iort_node_get_id() takes an index as input to refer to a specific mapping entry in the mapping array to retrieve the id at a specific index provided

Re: [PATCH v2 3/4] arm64: dts: exynos: make tm2 and tm2e independent from each other

2017-01-05 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 06:23:15PM +0900, Andi Shyti wrote: > Hi Chanwoo, > > > I add the some comment as following: > > - ldo23/25/31/38 have the different value between tm2 and tm2e. > > Thanks for pointing this out. I planned to do this already in a > following patch as for now I think it's ou

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Thomas Garnier
On Thu, Jan 5, 2017 at 10:01 AM, Andy Lutomirski wrote: > On Thu, Jan 5, 2017 at 9:54 AM, Thomas Garnier wrote: >> On Thu, Jan 5, 2017 at 9:51 AM, Andy Lutomirski wrote: >>> On Wed, Jan 4, 2017 at 2:16 PM, Thomas Garnier wrote: Each processor holds a GDT in its per-cpu structure. The sgdt

Re: [PATCH] ACPI/IORT: Fix iort_node_get_id() mapping entries indexing

2017-01-05 Thread Sinan Kaya
On 1/5/2017 1:29 PM, Lorenzo Pieralisi wrote: > iort_node_get_id() takes an index as input to refer to a specific > mapping entry in the mapping array to retrieve the id at a specific > index provided the index is below the total mapping count; currently the > index is used to retrieve the mapping

Re: [PATCH v3 8/9] arm64: cpufeature: Expose CPUID registers by emulation

2017-01-05 Thread Catalin Marinas
On Wed, Jan 04, 2017 at 05:49:06PM +, Suzuki K. Poulose wrote: > This patch adds the hook for emulating MRS instruction to > export the 'user visible' value of supported system registers. > We emulate only the following id space for system registers: > > Op0=3, Op1=0, CRn=0, CRm=[0, 4-7] > >

Re: [PATCH net] hyper-v: Add myself as additional MAINTAINER

2017-01-05 Thread gre...@linuxfoundation.org
On Thu, Jan 05, 2017 at 05:43:04PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Thursday, January 5, 2017 9:36 AM > > To: da...@davemloft.net; KY Srinivasan > > Cc: net...@vger.kernel.org; linux-kernel@vg

Re: [PATCH] usb: storage: ene_ub6250: remove unused variable

2017-01-05 Thread Greg Kroah-Hartman
On Sun, Dec 18, 2016 at 10:34:31PM +, Sudip Mukherjee wrote: > The variable Newblk was only being assigned some value but was never > used after that. > > Signed-off-by: Sudip Mukherjee > --- > drivers/usb/storage/ene_ub6250.c | 2 -- > 1 file changed, 2 deletions(-) from and signed-off-by

Re: [PATCH v2 2/2] [media] v4l: Add 10/16-bits per channel YUV pixel formats

2017-01-05 Thread Sakari Ailus
Hi Randy, On Thu, Jan 05, 2017 at 11:22:26PM +0800, ayaka wrote: > > > On 01/05/2017 06:30 PM, Sakari Ailus wrote: > >Hi Randy, > > > >Thanks for the update. > > > >On Thu, Jan 05, 2017 at 12:29:11AM +0800, Randy Li wrote: > >>The formats added by this patch are: > >>V4L2_PIX_FMT_P010 > >>

Re: Enabling peer to peer device transactions for PCIe devices

2017-01-05 Thread Jerome Glisse
Sorry to revive this thread but it fells through my filters and i miss it. I have been going through it and i think the discussion has been hinder by the fact that distinct problems were merge while they should be address separately. First for peer-to-peer we need to be clear on how this happens.

Re: [PATCH v3 0/8] mm/swap: Regular page swap optimizations

2017-01-05 Thread Tim Chen
On Tue, 2016-11-29 at 13:50 -0800, Andrew Morton wrote: > On Mon, 28 Nov 2016 13:14:01 -0800 Tim Chen > wrote: > > > > > On Tue, 2016-11-15 at 15:47 -0800, Tim Chen wrote: > > > > > > Andrew, > > > > > > It seems like there are no objections to this patch series so far. > > > Can you help us

Re: [PATCH v2 4/4] arm64: dts: exynos: Add tm2 touchkey node

2017-01-05 Thread Krzysztof Kozlowski
On Thu, Jan 05, 2017 at 05:27:13PM +0900, Jaechul Lee wrote: > Add DT node support for TM2 touchkey device. > > Signed-off-by: Beomho Seo > Signed-off-by: Jaechul Lee > Signed-off-by: Andi Shyti > Reviewed-by: Javier Martinez Canillas > Reviewed-by: Krzysztof Kozlowski Although I said the pa

Re: [RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-05 Thread Steven Rostedt
On Wed, 4 Jan 2017 15:02:23 -0500 Waiman Long wrote: > On 01/04/2017 10:55 AM, Steven Rostedt wrote: > > On Wed, 4 Jan 2017 10:25:14 -0500 > > Waiman Long wrote: > > > > > >> I know that in -RT kernel, all the non-raw spinlocks are replaced by > >> rtmutex which is a sleeping lock. This can

Re: [tip:perf/urgent] perf/x86: Set pmu->module in Intel PMU modules

2017-01-05 Thread Linus Torvalds
On Thu, Jan 5, 2017 at 7:52 AM, Peter Zijlstra wrote: > > The first time I saw this I thought about doing something like the > below, but never got around to testing if that works and subsequently > forgot about things again. > > Does this make sense and or work? I'd argue against it. It will "w

Re: [PATCH] ARM: dts: sunxi: Enable spi1 and spi2 for Olimex A20 SOM EVB

2017-01-05 Thread Emmanuel Vadot
Hi, On Thu, 5 Jan 2017 18:16:01 +0100 Maxime Ripard wrote: > Hi, > > On Mon, Dec 26, 2016 at 06:53:49PM +0100, Emmanuel Vadot wrote: > > Enable the spi1 and spi2 node since the pins are exposed on the UEXT > > connectors. > > > > Signed-off-by: Emmanuel Vadot > > --- > > arch/arm/boot/dts/

Re: [PATCH] MIPS: NI 169445 board support

2017-01-05 Thread Nathan Sullivan
On Thu, Jan 05, 2017 at 06:33:53PM +, Joao Pinto wrote: > Hi, > > Às 6:28 PM de 1/5/2017, Niklas Cassel escreveu: > > On 01/04/2017 05:38 PM, Nathan Sullivan wrote: > >> On Tue, Dec 20, 2016 at 05:34:34PM +0100, Ralf Baechle wrote: > >>> On Fri, Dec 02, 2016 at 09:42:09AM -0600, Nathan Sulliva

Re: [RFC PATCH] ext4: increase the protection of drop nlink and ext4 inode destroy

2017-01-05 Thread Darrick J. Wong
On Thu, Jan 05, 2017 at 03:24:14PM +0800, zhangyi (F) wrote: > > On 2017/1/5 7:35, Theodore Ts'o wrote: > > > > So how exactly how did we get into this state? When we read the inode > > into memory, if i_nlink is zero, we declare the file system as > > corrupted immediately. > > > > So I assume

Re: [PATCH perf/core 3/3] perf-probe: Fix to probe on gcc generated functions in modules

2017-01-05 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 05, 2017 at 12:30:37PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Jan 05, 2017 at 08:20:19PM +0900, Masami Hiramatsu escreveu: > > On Wed, 4 Jan 2017 11:48:56 -0300 > > Arnaldo Carvalho de Melo wrote: > > > [acme@jouet linux]$ grep e1000_xmit_frame /proc/kallsyms > > > ff

Question: read-only file access in kernel module (verify checksums)

2017-01-05 Thread Marvin P.
Good day, I'm going over some code in a kernel module to implement file access functionality in an LKM. I've gone through Grek KH's lengthy article on it, and noted the pitfalls (interpreting data, how one should go through sysfs instead, etc): all good points and duly noted. I have also o

Re: [RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-05 Thread Steven Rostedt
On Thu, 5 Jan 2017 12:07:21 -0500 Waiman Long wrote: > I do make the assumption that spinlock critical sections are behaving > well enough. Apparently, that is not a valid assumption. I sent these > RFC patches out to see if it was an idea worth pursuing. If not, I can > drop these patches. Anyw

[PATCH] staging: gdm724x: cleanup long lines to conform to kernel coding style

2017-01-05 Thread Emil Gedda
Refactor code to remove multi-line derefs and code duplication Signed-off-by: Emil Gedda --- Yet again, sorry for the spam, still new to sending in patches and everything related, but I'm more than happy being able to contribute. Tried contacting the mentioned people in the relevant TODO, but a

[PATCH v3 1/4] doc: DT: Add ti,da830-uart to serial/8250 bindings

2017-01-05 Thread David Lechner
This adds the ti,da830-uart compatible string to serial 8250 UART bindings. Signed-off-by: David Lechner Acked-by: Rob Herring --- v3 changes: * None v2 changes: * picked up Acked-by: Documentation/devicetree/bindings/serial/8250.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Docum

[PATCH v3 2/4] serial: 8250: Add new port type for TI DA8xx/66AK2x

2017-01-05 Thread David Lechner
This adds a new UART port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx/66AK2x. These SoCs have standard 8250 registers plus some extra non-standard registers. The UART will not function unless the non-standard Power and Emulation Management Register (PWREMU_MGMT) is configured correctly. This is curre

[PATCH v3 4/4] ARM: dts: keystone: Add "ti,da830-uart" compatible string

2017-01-05 Thread David Lechner
The TI Keystone SoCs have extra UART registers beyond the standard 8250 registers, so we need a new compatible string to indicate this. Also, at least one of these registers uses the full 32 bits, so we need to specify reg-io-width in addition to reg-shift. "ns16550a" is left in the compatible spe

[PATCH v3 3/4] ARM: da850: Add ti,da830-uart compatible for serial ports

2017-01-05 Thread David Lechner
TI DA8xx/OMAPL13x/AM17xx/AM18xx SoCs have extra UART registers beyond the standard 8250 registers, so we need a new compatible string to indicate this. Also, at least one of these registers uses the full 32 bits, so we need to specify reg-io-width in addition to reg-shift. "ns16550a" is left in th

Re: [PATCH] MIPS: NI 169445 board support

2017-01-05 Thread Joao Pinto
Às 6:44 PM de 1/5/2017, Nathan Sullivan escreveu: > On Thu, Jan 05, 2017 at 06:33:53PM +, Joao Pinto wrote: >> Hi, >> >> Às 6:28 PM de 1/5/2017, Niklas Cassel escreveu: >>> On 01/04/2017 05:38 PM, Nathan Sullivan wrote: On Tue, Dec 20, 2016 at 05:34:34PM +0100, Ralf Baechle wrote: > On

[PATCH v3 0/4] TI DA8xx/OMAPL13x/AM17xx/AM18xx/66AK2x UART

2017-01-05 Thread David Lechner
This series adds a new UART port type for TI DA8xx/OMAPL13x/AM17xx/AM18xx/66AK2x UART. These SoCs have a non-standard register for UART power management that needs special handling in the UART driver. Greg, the first two patches will need to go through your tree. Sekhar and Santosh will pick up th

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Arjan van de Ven
On 1/5/2017 8:40 AM, Thomas Garnier wrote: Well, it happens only when KASLR memory randomization is enabled. Do you think it should have a separate config option? no I would want it a runtime option "sgdt from ring 3" is going away with UMIP (and is already possibly gone in virtual machines

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Arjan van de Ven
On 1/5/2017 9:54 AM, Thomas Garnier wrote: That's my goal too. I started by doing a RO remap and got couple problems with hibernation. I can try again for the next iteration or delay it for another patch. I also need to look at KVM GDT usage, I am not familiar with it yet. don't we write to t

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Thomas Garnier
On Thu, Jan 5, 2017 at 10:56 AM, Arjan van de Ven wrote: > On 1/5/2017 8:40 AM, Thomas Garnier wrote: >> >> Well, it happens only when KASLR memory randomization is enabled. Do >> you think it should have a separate config option? > > > no I would want it a runtime option "sgdt from ring 3" is

Re: Enabling peer to peer device transactions for PCIe devices

2017-01-05 Thread Jason Gunthorpe
On Thu, Jan 05, 2017 at 01:39:29PM -0500, Jerome Glisse wrote: > 1) peer-to-peer because of userspace specific API like NVidia GPU > direct (AMD is pushing its own similar API i just can't remember > marketing name). This does not happen through a vma, this happens > through specific

[PATCH v6 07/18] iommu: Implement reserved_regions iommu-group sysfs file

2017-01-05 Thread Eric Auger
A new iommu-group sysfs attribute file is introduced. It contains the list of reserved regions for the iommu-group. Each reserved region is described on a separate line: - first field is the start IOVA address, - second is the end IOVA address, Signed-off-by: Eric Auger --- v3 -> v4: - add cast

[PATCH v6 08/18] iommu/vt-d: Implement reserved region get/put callbacks

2017-01-05 Thread Eric Auger
This patch registers the [FEE0_h - FEF0_000h] 1MB MSI range as a reserved region. This will allow to report that range in the iommu-group sysfs. Signed-off-by: Eric Auger --- RFCv2 -> RFCv3: - use get/put_resv_region callbacks. RFC v1 -> RFC v2: - fix intel_iommu_add_reserved_regions name

[PATCH v6 11/18] iommu/arm-smmu-v3: Implement reserved region get/put callbacks

2017-01-05 Thread Eric Auger
iommu/arm-smmu: Implement reserved region get/put callbacks The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger --- v4: c

[PATCH v6 09/18] iommu/amd: Declare MSI and HT regions as reserved IOVA regions

2017-01-05 Thread Eric Auger
This patch registers the MSI and HT regions as non mappable reserved regions. They will be exposed in the iommu-group sysfs. For direct-mapped regions let's also use iommu_alloc_resv_region(). Signed-off-by: Eric Auger --- v5: creation --- drivers/iommu/amd_iommu.c | 37 ++

[PATCH v6 10/18] iommu/arm-smmu: Implement reserved region get/put callbacks

2017-01-05 Thread Eric Auger
The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger --- v3 -> v4: - do not handle PCI host bridge windows anymore - encode

[PATCH v6 17/18] vfio/type1: Check MSI remapping at irq domain level

2017-01-05 Thread Eric Auger
In case the IOMMU translates MSI transactions (typical case on ARM), we check MSI remapping capability at IRQ domain level. Otherwise it is checked at IOMMU level. At this stage the arm-smmu-(v3) still advertise the IOMMU_CAP_INTR_REMAP capability at IOMMU level. This will be removed in subsequent

[PATCH v6 16/18] vfio/type1: Allow transparent MSI IOVA allocation

2017-01-05 Thread Eric Auger
When attaching a group to the container, check the group's reserved regions and test whether the IOMMU translates MSI transactions. If yes, we initialize an IOVA allocator through the iommu_get_msi_cookie API. This will allow the MSI IOVAs to be transparently allocated on MSI controller's compose()

[PATCH] HID: remove use of DRIVER_LICENSE

2017-01-05 Thread Grant Grundler
Local "#define DRIVER_LICENSE" obfuscates which license is used in MODULE_LICENSE(). "fgrep -R MODULE_LICENSE" is more informative when the string is hard coded in MODULE_LICENSE. Signed-off-by: Grant Grundler --- Most of the kernel already uses hard coded strings. The few places that don't are

[PATCH v6 18/18] iommu/arm-smmu: Do not advertise IOMMU_CAP_INTR_REMAP anymore

2017-01-05 Thread Eric Auger
IOMMU_CAP_INTR_REMAP has been advertised in arm-smmu(-v3) although on ARM this property is not attached to the IOMMU but rather is implemented in the MSI controller (GICv3 ITS). Now vfio_iommu_type1 checks MSI remapping capability at MSI controller level, let's correct this. Signed-off-by: Eric A

[PATCH v6 12/18] irqdomain: Add irq domain MSI and MSI_REMAP flags

2017-01-05 Thread Eric Auger
We introduce two new enum values for the irq domain flag: - IRQ_DOMAIN_FLAG_MSI indicates the irq domain corresponds to an MSI domain - IRQ_DOMAIN_FLAG_MSI_REMAP indicates the irq domain has MSI remapping capabilities. Those values will be useful to check all MSI irq domains have MSI remapping

[PATCH v6 15/18] irqchip/gicv3-its: Sets IRQ_DOMAIN_FLAG_MSI_REMAP

2017-01-05 Thread Eric Auger
The GICv3 ITS is MSI remapping capable. Let's advertise this property so that VFIO passthrough can assess IRQ safety. Signed-off-by: Eric Auger --- drivers/irqchip/irq-gic-v3-its.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-i

[PATCH v6 13/18] genirq/msi: Set IRQ_DOMAIN_FLAG_MSI on MSI domain creation

2017-01-05 Thread Eric Auger
Now we have a flag value indicating an IRQ domain implements MSI, let's set it on msi_create_irq_domain(). Signed-off-by: Eric Auger --- v6: new --- kernel/irq/msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index ee23006..ddc2f

Re: [PATCH] usb: dwc3: gadget: Avoid race between dwc3 interrupt handler and irq thread handler

2017-01-05 Thread John Youn
On 12/28/2016 5:29 PM, John Youn wrote: > > >> Janusz Dziedzic writes: >> On some platfroms(like x86 platform), when one core is running the >> USB gadget >> irq thread handler by dwc3_thread_interrupt(), meanwhile another >> core also can >> respond other interrupts from dwc3 contro

[PATCH v6 14/18] irqdomain: irq_domain_check_msi_remap

2017-01-05 Thread Eric Auger
This new function checks whether all MSI irq domains implement IRQ remapping. This is useful to understand whether VFIO passthrough is safe with respect to interrupts. On ARM typically an MSI controller can sit downstream to the IOMMU without preventing VFIO passthrough. As such any assigned devic

[PATCH v6 06/18] iommu: iommu_get_group_resv_regions

2017-01-05 Thread Eric Auger
Introduce iommu_get_group_resv_regions whose role consists in enumerating all devices from the group and collecting their reserved regions. The list is sorted and overlaps are checked. Signed-off-by: Eric Auger --- v3 -> v4: - take the iommu_group lock in iommu_get_group_resv_regions - the list

RE: [PATCH net] hyper-v: Add myself as additional MAINTAINER

2017-01-05 Thread KY Srinivasan
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Thursday, January 5, 2017 10:29 AM > To: KY Srinivasan > Cc: Stephen Hemminger ; > da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Stephen Hemminger > Subjec

[PATCH v6 05/18] iommu: Only map direct mapped regions

2017-01-05 Thread Eric Auger
As we introduced new reserved region types which do not require mapping, let's make sure we only map direct mapped regions. Signed-off-by: Eric Auger --- v3 -> v4: - use region's type and reword commit message and title --- drivers/iommu/iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[PATCH v6 02/18] iommu: Rename iommu_dm_regions into iommu_resv_regions

2017-01-05 Thread Eric Auger
We want to extend the callbacks used for dm regions and use them for reserved regions. Reserved regions can be - directly mapped regions - regions that cannot be iommu mapped (PCI host bridge windows, ...) - MSI regions (because they belong to another address space or because they are not transla

[PATCH v6 03/18] iommu: Add a new type field in iommu_resv_region

2017-01-05 Thread Eric Auger
We introduce a new field to differentiate the reserved region types and specialize the apply_resv_region implementation. Legacy direct mapped regions have IOMMU_RESV_DIRECT type. We introduce 2 new reserved memory types: - IOMMU_RESV_MSI will characterize MSI regions - IOMMU_RESV_NOMAP characteriz

Re: [PATCH 1/2] soc: ti: knav_dma: fix typos in trace message

2017-01-05 Thread Murali Karicheri
On 12/20/2016 08:01 PM, Santosh Shilimkar wrote: > On 12/20/2016 2:24 PM, Murali Karicheri wrote: >> This patch fixes some typos in the trace message >> >> Signed-off-by: Murali Karicheri >> Signed-off-by: Sekhar Nori >> --- > Patch 1 and 2 looks fine. Will pick them for next > merge window. Than

[PATCH v6 04/18] iommu: iommu_alloc_resv_region

2017-01-05 Thread Eric Auger
Introduce a new helper serving the purpose to allocate a reserved region. This will be used in iommu driver implementing reserved region callbacks. Signed-off-by: Eric Auger --- v3 -> v4: - add INIT_LIST_HEAD(®ion->list) - use int for prot param and add int type param - remove implementation ou

4.10-rc2 oops in DRM connector code

2017-01-05 Thread Dave Hansen
My Thinkpad x260 doesn't like to be unplugged from its dock. I don't think this is a new bug. It's happening on my distro's 4.4 kernel as well. The actual oops is in device_del(). It appears to have been passed a null 'struct device *'. There appears to have been a race _around_ here fixed in

Re: [PATCH 1/2] soc: ti: knav_dma: fix typos in trace message

2017-01-05 Thread Santosh Shilimkar
On 1/5/2017 11:08 AM, Murali Karicheri wrote: On 12/20/2016 08:01 PM, Santosh Shilimkar wrote: On 12/20/2016 2:24 PM, Murali Karicheri wrote: This patch fixes some typos in the trace message Signed-off-by: Murali Karicheri Signed-off-by: Sekhar Nori --- Patch 1 and 2 looks fine. Will pick t

Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location

2017-01-05 Thread Thomas Garnier
On Thu, Jan 5, 2017 at 10:58 AM, Arjan van de Ven wrote: > On 1/5/2017 9:54 AM, Thomas Garnier wrote: > >> >> That's my goal too. I started by doing a RO remap and got couple >> problems with hibernation. I can try again for the next iteration or >> delay it for another patch. I also need to look

[PATCH v6 01/18] iommu/dma: Allow MSI-only cookies

2017-01-05 Thread Eric Auger
IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other users to piggyback o

[PATCH v6 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-05 Thread Eric Auger
Following LPC discussions, we now report reserved regions through iommu-group sysfs reserved_regions attribute file. Reserved regions are populated through the IOMMU get_resv_region callback (former get_dm_regions), now implemented by amd-iommu, intel-iommu and arm-smmu: - the intel-iommu reports

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-05 Thread Dave Hansen
On 12/26/2016 05:54 PM, Kirill A. Shutemov wrote: > MM would use min(RLIMIT_VADDR, TASK_SIZE) as upper limit of virtual > address available to map by userspace. What happens to existing mappings above the limit when this upper limit is dropped? Similarly, why do we do with an application running

Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS

2017-01-05 Thread Michał Zegan
Hello. The patch causes cpufreq module (scpi-cpufreq) not to detect cpufreq, so it actually works, but... Loading the module causes few errors because of not found frequencies or something, then it is all okay. However after loading scpi-cpufreq you cannot actually power the cpu off and on. You wi

Re: [PATCH v2 04/19] ARM: dts: imx6-sabrelite: add OV5642 and OV5640 camera sensors

2017-01-05 Thread Steve Longerbeam
Hi Vladimir, On 01/04/2017 04:25 AM, Vladimir Zapolskiy wrote: Hi Steve, On 01/03/2017 10:57 PM, Steve Longerbeam wrote: Enables the OV5642 parallel-bus sensor, and the OV5640 MIPI CSI-2 sensor. Both hang off the same i2c2 bus, so they require different (and non- default) i2c slave addresses.

Re: [RFC PATCH v3] sparc64: Add support for Application Data Integrity (ADI)

2017-01-05 Thread Dave Hansen
On 01/04/2017 04:26 PM, Khalid Aziz wrote: ... > No, we do not have space to stuff PAGE_SIZE/64 version tags in swap pte. > There is enough space for just one tag per page. DaveM had suggested > doing this since the usual case is for a task to set one tag per page > even though MMU does not require

Re: [RFC PATCH 0/7] locking/rtqspinlock: Realtime queued spinlocks

2017-01-05 Thread Waiman Long
On 01/05/2017 01:50 PM, Steven Rostedt wrote: > On Thu, 5 Jan 2017 12:07:21 -0500 > Waiman Long wrote: > > >> I do make the assumption that spinlock critical sections are behaving >> well enough. Apparently, that is not a valid assumption. I sent these >> RFC patches out to see if it was an idea w

Re: [PATCH] pinctrl: core: Fix panic when pinctrl devices with hogs are unregistered

2017-01-05 Thread Tony Lindgren
* Linus Walleij [170105 08:16]: > On Thu, Jan 5, 2017 at 4:52 PM, Jon Hunter wrote: > > > Commit df61b366af26 ('pinctrl: core: Use delayed work for hogs') > > deferred part of the registration for pinctrl devices if the pinctrl > > device has hogs. This introduced a window where if the pinctrl d

[PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-05 Thread Dan Streetman
Do not read a pci device's msi message data to see if a pirq was previously configured for the device's msi/msix, as the old pirq was unmapped and may now be in use by another pci device. The previous pirq should never be re-used; instead a new pirq should always be allocated from the hypervisor.

[PATCH v2 0/8] ARM: dts: Switch to new DSA binding

2017-01-05 Thread Florian Fainelli
Hi all, This patch series converts the in-tree users to utilize the new (relatively) DSA binding that was introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Changes in v2: - patch 1: Use an hexadecimal reg pro

[PATCH v2 4/8] ARM: dts: armada-xp-linksys-mamba: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 53 +++ 1 file change

[PATCH v2 6/8] ARM: dts: kirkwood-linksys-viper: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/kirkwood-linksys-viper.dts | 49 1 file change

[PATCH v2 2/8] ARM: dts: armada-385-linksys: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/armada-385-linksys.dtsi | 52 ++- 1 file change

[PATCH v2 5/8] ARM: dts: kirkwood-dir665: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/kirkwood-dir665.dts | 49 +++ 1 file change

[PATCH v2 7/8] ARM: dts: kirkwood-mv88f6281gtw-ge: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts | 49 ++ 1 file change

[PATCH v2 3/8] ARM: dts: armada-388-clearfog: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/armada-388-clearfog.dts | 65 +++ 1 file change

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-05 Thread Kirill A. Shutemov
On Thu, Jan 05, 2017 at 11:13:57AM -0800, Dave Hansen wrote: > On 12/26/2016 05:54 PM, Kirill A. Shutemov wrote: > > MM would use min(RLIMIT_VADDR, TASK_SIZE) as upper limit of virtual > > address available to map by userspace. > > What happens to existing mappings above the limit when this upper

[PATCH v2 8/8] ARM: dts: kirkwood-rd88f6281: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/kirkwood-rd88f6281-z0.dts | 11 arch/arm/boot/dts/kirkwood-rd88f62

[PATCH v2 1/8] ARM: dts: armada-370-rd: Utilize new DSA binding

2017-01-05 Thread Florian Fainelli
Utilize the new DSA binding, introduced with commit 8c5ad1d6179d ("net: dsa: Document new binding"). The legacy binding node is kept included, but is marked disabled. Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/armada-370-rd.dts | 44 + 1 file change

Re: [PATCH] serial/8250: remove comment about schedule_timeout

2017-01-05 Thread One Thousand Gnomes
On Thu, 5 Jan 2017 13:48:40 -0200 Thadeu Lima de Souza Cascardo wrote: > Ted T'so has added the function size_fifo in 1999 for the 2.3 series > [1], a long time ago. > > During the 2.5 cycle, Russell King has restructured the serial drivers > and, in that process, has suggested using schedule_t

Re: PROBLEM: Kernel BUG with raid5 soft + Xen + DRBD - invalid opcode

2017-01-05 Thread Shaohua Li
On Thu, Jan 05, 2017 at 03:16:53PM +0100, MasterPrenium wrote: > Hi Shaohua, > > Thanks for your reply. > > Let me explain my "huge". For example, if I'm making a low rate i/o stream, > I don't get a crash (<1MB written / sec) with random i/o, but if I'm making > a random I/O of about 20MB/sec, t

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-05 Thread Dave Hansen
On 01/05/2017 11:29 AM, Kirill A. Shutemov wrote: > On Thu, Jan 05, 2017 at 11:13:57AM -0800, Dave Hansen wrote: >> On 12/26/2016 05:54 PM, Kirill A. Shutemov wrote: >>> MM would use min(RLIMIT_VADDR, TASK_SIZE) as upper limit of virtual >>> address available to map by userspace. >> >> What happens

Re: [PATCH v2] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2017-01-05 Thread Krzysztof Kozlowski
On Wed, Jan 04, 2017 at 08:57:47PM -0300, Javier Martinez Canillas wrote: > Hello Doug, > > On 01/04/2017 06:05 PM, Doug Anderson wrote: > > Hi, > > > > On Thu, Dec 29, 2016 at 6:17 AM, Krzysztof Kozlowski > > wrote: > >> On Thu, Dec 15, 2016 at 04:54:30PM -0800, Doug Anderson wrote: > Ind

Re: [PATCH v3 1/3] x86/64: Make kernel text mapping always take one whole page table in early boot code

2017-01-05 Thread Kees Cook
On Thu, Jan 5, 2017 at 6:01 AM, Borislav Petkov wrote: > On Thu, Jan 05, 2017 at 11:28:00AM +0800, Baoquan He wrote: >> Possibly people worry more that no enough space left for kernel modules >> mapping whthin 1G, just a guess. I am fine with making text mapping size >> 1G by default. Kees must kn

Re: [f2fs-dev] [PATCH 08/10] f2fs: relax async discard commands more

2017-01-05 Thread Jaegeuk Kim
On 01/05, Chao Yu wrote: > On 2017/1/4 17:29, Chao Yu wrote: > > On 2016/12/31 2:51, Jaegeuk Kim wrote: > >> This patch relaxes async discard commands to avoid waiting its end_io > >> during > >> checkpoint. > >> Instead of waiting them during checkpoint, it will be done when actually > >> reusin

Re: [PATCHv2 0/5] Support for Marvell switches with integrated CPUs

2017-01-05 Thread Chris Packham
On 06/01/17 02:10, Andrew Lunn wrote: >> I'd love to see a switchdev driver but it's a huge task (and no I'm not >> committing to writing it). As it stands Marvell ship a switch SDK >> largely executes in userspace with a small kernel module providing some >> linkage to the underlying hardware. > >

Re: [PATCH 2/2] arm64: mm: enable CONFIG_HOLES_IN_ZONE for NUMA

2017-01-05 Thread Robert Richter
On 05.01.17 13:22:00, Robert Richter wrote: > On 05.01.17 12:08:20, Will Deacon wrote: > > I really can't see how the fix causes a crash, and I couldn't reproduce > > it on any of my boards, nor could any of the Linaro folk afaik. Are you > > definitely running mainline with just these two patches

Re: [PATCHv2 0/5] Support for Marvell switches with integrated CPUs

2017-01-05 Thread Florian Fainelli
On 01/05/2017 11:46 AM, Chris Packham wrote: > On 06/01/17 02:10, Andrew Lunn wrote: >>> I'd love to see a switchdev driver but it's a huge task (and no I'm not >>> committing to writing it). As it stands Marvell ship a switch SDK >>> largely executes in userspace with a small kernel module providi

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-05 Thread Jason Gunthorpe
On Thu, Jan 05, 2017 at 10:33:43AM -0800, James Bottomley wrote: > > A combo ioctl that could setup the session, issue an operation in it > > and then delete the session, for instance. > > This would work for encryption or HMAC sessions, but probably not for > policy sessions, because they can ha

Re: Enabling peer to peer device transactions for PCIe devices

2017-01-05 Thread Jerome Glisse
On Thu, Jan 05, 2017 at 12:01:13PM -0700, Jason Gunthorpe wrote: > On Thu, Jan 05, 2017 at 01:39:29PM -0500, Jerome Glisse wrote: > > > 1) peer-to-peer because of userspace specific API like NVidia GPU > > direct (AMD is pushing its own similar API i just can't remember > > marketing nam

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-05 Thread James Bottomley
On Thu, 2017-01-05 at 12:20 -0700, Jason Gunthorpe wrote: > On Thu, Jan 05, 2017 at 10:33:43AM -0800, James Bottomley wrote: > > > > A combo ioctl that could setup the session, issue an operation in > > > it > > > and then delete the session, for instance. > > > > This would work for encryption o

Re: [f2fs-dev] [PATCH 08/10] f2fs: relax async discard commands more

2017-01-05 Thread Jaegeuk Kim
Hi Chao, On 01/05, Chao Yu wrote: > Hi Jaegeuk, > > I can see patch named ("f2fs: call f2fs_wait_all_discard_bio for an error > case") > was merged in dev-test, but I think it's no needed to change error case > handling > like this since f2fs_wait_all_discard_bio should always be called after >

Re: [PATCHv2 0/5] Support for Marvell switches with integrated CPUs

2017-01-05 Thread Chris Packham
On 06/01/17 03:09, Marcin Wojtas wrote: > Hi Chris, > > Thanks a lot for your work and v2. Can you please add changelog > between patchset versions in your cover letter? Will do for v3. I did actually include a changelog in the individual patches but I can collate that here. clk: mvebu: support

Re: [PATCH v2 3/4] ARM64: dts: exynos5433: use macros for pinctrl configuration on Exynos5433

2017-01-05 Thread Krzysztof Kozlowski
On Tue, Jan 03, 2017 at 09:24:34AM +0100, Linus Walleij wrote: > On Fri, Dec 30, 2016 at 4:17 PM, Krzysztof Kozlowski wrote: > > On Fri, Dec 30, 2016 at 02:32:39PM +0100, Linus Walleij wrote: > >> On Fri, Dec 30, 2016 at 5:14 AM, Andi Shyti wrote: > >> > >> > Use the macros defined in include/dt-

Re: Enabling peer to peer device transactions for PCIe devices

2017-01-05 Thread Jason Gunthorpe
On Thu, Jan 05, 2017 at 02:54:24PM -0500, Jerome Glisse wrote: > Mellanox and NVidia support peer to peer with what they market a > GPUDirect. It only works without IOMMU. It is probably not upstream : > > https://www.mail-archive.com/linux-rdma@vger.kernel.org/msg21402.html > > I thought it was

Re: [PATCH net] hyper-v: Add myself as additional MAINTAINER

2017-01-05 Thread gre...@linuxfoundation.org
On Thu, Jan 05, 2017 at 07:08:23PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > Sent: Thursday, January 5, 2017 10:29 AM > > To: KY Srinivasan > > Cc: Stephen Hemminger ; > > da...@davemloft.net; net..

Re: Dell XPS13: MCE (Hardware Error) reported

2017-01-05 Thread Alexander Alemayhu
On Thu, Jan 05, 2017 at 10:05:39PM +0800, Daniel J Blueman wrote: > > That said, I have seen this reoccur after boot; there were no other > kernel messages around 300s uptime, and it hasn't occurred in the last > hours since: > Not sure if it is related, but I am also seeing those messages on my

Re: [PATCHv2 4/5] arm: mvebu: Add device tree for 98DX3236 SoCs

2017-01-05 Thread Chris Packham
On 06/01/17 02:59, Mark Rutland wrote: > On Thu, Jan 05, 2017 at 04:36:40PM +1300, Chris Packham wrote: >> +internal-regs { >> +coreclk: mvebu-sar@18230 { >> +compatible = "marvell,mv98dx3236-core-clock"; >> +}; >> + >>

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-05 Thread Kirill A. Shutemov
On Thu, Jan 05, 2017 at 11:39:16AM -0800, Dave Hansen wrote: > On 01/05/2017 11:29 AM, Kirill A. Shutemov wrote: > > On Thu, Jan 05, 2017 at 11:13:57AM -0800, Dave Hansen wrote: > >> On 12/26/2016 05:54 PM, Kirill A. Shutemov wrote: > >>> MM would use min(RLIMIT_VADDR, TASK_SIZE) as upper limit of

Re: [PATCH] x86/boot/32: Convert the 32-bit pgtable setup code from assembly to C

2017-01-05 Thread kbuild test robot
Hi Ingo, [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.10-rc2 next-20170105] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ingo-Molnar

Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

2017-01-05 Thread Andy Lutomirski
On Thu, Jan 5, 2017 at 11:39 AM, Dave Hansen wrote: > On 01/05/2017 11:29 AM, Kirill A. Shutemov wrote: >> On Thu, Jan 05, 2017 at 11:13:57AM -0800, Dave Hansen wrote: >>> On 12/26/2016 05:54 PM, Kirill A. Shutemov wrote: MM would use min(RLIMIT_VADDR, TASK_SIZE) as upper limit of virtual >>>

[RESEND PATCH v2 1/3] debugobjects: Track number of kmem_cache_alloc/kmem_cache_free done

2017-01-05 Thread Waiman Long
New debugfs stat counters are added to track the numbers of kmem_cache_alloc() and kmem_cache_free() function calls to get a sense of how the internal debug objects cache management is performing. Signed-off-by: Waiman Long --- lib/debugobjects.c | 10 ++ 1 file changed, 10 insertions(+)

<    1   2   3   4   5   6   7   8   9   >