Re: [PATCH v2] virt: IRQ bypass manager

2015-08-05 Thread Alex Williamson
On Wed, 2015-08-05 at 15:23 +0200, Eric Auger wrote: > Hi Alex, > On 07/16/2015 11:26 PM, Alex Williamson wrote: > > When a physical I/O device is assigned to a virtual machine through > > facilities like VFIO and KVM, the interrupt for the device generally > > bounces through the host system

Re: Armadaxp GPIO interrupts

2015-08-05 Thread Andrew Lunn
On Wed, Aug 05, 2015 at 08:31:27PM +0530, raghu MG wrote: > Hi Andrew, > > The issue I found was irq_alloc_descs is called twice > 1st time inside mvebu_gpio_probe & 2nd time inside irq_domain_add_simple. So i'm somewhat confused. I just tested on my Kirkwood and 370 platforms, and an Armada

Re: [PATCH v2 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions

2015-08-05 Thread Greg KH
On Wed, Aug 05, 2015 at 09:43:00PM +0530, Chandra S Gorentla wrote: > Added 'void' keyword in the paranthesis of function definitions, when > there are no arguments to the functions. This fixes the checkpatch.pl > error - "Bad function definition 'function()' should probably be > function(void)".

Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-08-05 Thread Shaohua Li
On Wed, Aug 05, 2015 at 10:44:24AM +0200, Ingo Molnar wrote: > > * Shaohua Li wrote: > > > On Sun, Aug 02, 2015 at 09:41:08PM +0200, Thomas Gleixner wrote: > > > On Sun, 2 Aug 2015, Shaohua Li wrote: > > > > > > > On Sat, Aug 01, 2015 at 12:10:41PM +0200, Thomas Gleixner wrote: > > > > > On

Re: [RFC] sdhci: fix DMA leaks [was: [SHDCI] Heavy (thousands) DMA leaks]

2015-08-05 Thread Pavel Machek
On Wed 2015-08-05 17:11:48, Jiri Slaby wrote: > On 08/05/2015, 01:52 PM, Jiri Slaby wrote: > >> Yes, I see: > >> sdhci-pci :02:00.0: swiotlb buffer is full (sz: 65536 bytes) > >> after some time. The driver falls back to non-DMA transfers after that. > >> It also generates a warning about

Re: [PATCH v6 3/4] bpf: Implement function bpf_perf_event_read() that get the selected hardware PMU conuter

2015-08-05 Thread Peter Zijlstra
On Wed, Aug 05, 2015 at 09:08:32AM -0700, Alexei Starovoitov wrote: > On 8/5/15 6:53 AM, Peter Zijlstra wrote: > >+/* > >+ * If the event is currently on this CPU, its either a per-task event, > >+ * or local to this CPU. Furthermore it means its ACTIVE (otherwise > >+ * oncpu ==

Re: [PATCHv3 1/1] Documentation: describe how to add a system call

2015-08-05 Thread Pavel Machek
Hi! > Add a document describing the process of adding a new system call, > including the need for a flags argument for future compatibility, and > covering 32-bit/64-bit concerns (albeit in an x86-centric way). > > Signed-off-by: David Drysdale > Reviewed-by: Michael Kerrisk > Reviewed-by:

Re: [PATCH] thermal: remove power allocator from list of default governors

2015-08-05 Thread Srinivas Pandruvada
On Wed, 2015-08-05 at 09:37 +0100, Javi Merino wrote: > On Tue, Aug 04, 2015 at 05:39:21PM +0100, Dmitry Torokhov wrote: > > As it currently stands the power allocator governor can not handle > > thermal zones that are not specifically crafted and therefore can not be > > used as a default

[PATCH v2 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions

2015-08-05 Thread Chandra S Gorentla
Added 'void' keyword in the paranthesis of function definitions, when there are no arguments to the functions. This fixes the checkpatch.pl error - "Bad function definition 'function()' should probably be function(void)". --- drivers/staging/wilc1000/linux_mon.c | 2 +-

[PATCH v2 3/3] drivers: staging: wilc1000: remove space after '('

2015-08-05 Thread Chandra S Gorentla
The character ' ' is removed after the character '('. This fixes the checkpatch.pl error - "space prohibited after that open parenthesis '('". --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 2/3] drivers: staging: wilc1000: move { to previous line

2015-08-05 Thread Chandra S Gorentla
Moved the opening brace of code blocks to the previous lines. This fixes the checkpatch.pl error - "that open brace { should be on the previous line". --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git

Re: [PATCH V9 0/5] map GHES memory region according to EFI memory map

2015-08-05 Thread Matt Fleming
On Wed, 05 Aug, at 05:10:00PM, Matt Fleming wrote: > On Wed, 05 Aug, at 08:58:52AM, Zhang, Jonathan Zhixiong wrote: > > > > Yes, absolutely. It has been in my mind, sorry I was tied up in the last > > few days. I wonder what I may missed, I certainly do x86 build test with > > versions of the

Re: [PATCHv2 1/4] spmi: pmic-arb: add support for irq_get_irqchip_state

2015-08-05 Thread Andy Gross
On Thu, Jul 30, 2015 at 10:53:54AM -0700, Bjorn Andersson wrote: > From: Courtney Cavin > > Reviewed-by: Andy Gross > Signed-off-by: Courtney Cavin > Signed-off-by: Bjorn Andersson > --- > > Changes since v1: > - Corrected authorship > > drivers/spmi/spmi-pmic-arb.c | 17 +

[PATCH v2 0/3] drivers: staging: wilc1000: Fix a few style errors

2015-08-05 Thread Chandra S Gorentla
v2 - Resending as v1 patch series did not apply cleanly. These patches fixes a few style errors reported by checkpatch.pl. PATCH 3/3 should be applied after PATCH 2/3. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [PATCH 07/10] nbd: Change 'disconnect' to be boolean

2015-08-05 Thread Pavel Machek
On Mon 2015-07-27 09:12:53, Markus Pargmann wrote: > Signed-off-by: Markus Pargmann Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line

[PATCH v3 4/6] power: bq27xxx_battery: Fix typos and change naming for state of charge functions

2015-08-05 Thread Andrew F. Davis
Fix typos and change "relative state of charge" to "state of charge" as not all supported devices use relative state of charge. Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár Acked-by: Pavel Machek --- drivers/power/bq27xxx_battery.c | 28 ++-- 1 file changed, 14

[PATCH v3 1/6] power: bq27x00_battery: Remove unneeded i2c MODULE_ALIAS

2015-08-05 Thread Andrew F. Davis
The MODULE_DEVICE_TABLE macro automatically adds all needed i2c MODULE_ALIASes so remove the extra MODULE_ALIAS. Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár --- drivers/power/bq27x00_battery.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/power/bq27x00_battery.c

Re: [PATCH 5/9] x86/intel_rdt: Add new cgroup and Class of service management

2015-08-05 Thread Tejun Heo
Hello, On Wed, Aug 05, 2015 at 01:22:57PM +0100, Matt Fleming wrote: > I wager that this assertion is wrong. Having individual applications > program their own cache mask is not going to be the most common > scenario. Only in very specific situations would you trust an > application to do that.

Re: [Xen-devel] [PATCH v2 02/20] xen: Introduce a function to split a Linux page into Xen page

2015-08-05 Thread Julien Grall
On 05/08/15 16:50, David Vrabel wrote: > Also perhaps make it > > int xen_for_each_gfn(struct page *page, > xen_gfn_fn_t fn, void *data); gfn standing for Guest Frame Number right? >>> >>> Yes. This suggestion is just changing the name to make it

Re: [PATCH RFC v1 1/4] perf: Introduce extended syscall error reporting

2015-08-05 Thread Peter Zijlstra
On Fri, Jul 24, 2015 at 02:45:56PM +0300, Alexander Shishkin wrote: > @@ -3890,7 +3958,7 @@ perf_read(struct file *file, char __user *buf, size_t > count, loff_t *ppos) > ret = perf_read_hw(event, buf, count); > perf_event_ctx_unlock(event, ctx); > > - return ret; > +

Re: [PATCH V9 0/5] map GHES memory region according to EFI memory map

2015-08-05 Thread Matt Fleming
On Wed, 05 Aug, at 08:58:52AM, Zhang, Jonathan Zhixiong wrote: > > Yes, absolutely. It has been in my mind, sorry I was tied up in the last > few days. I wonder what I may missed, I certainly do x86 build test with > versions of the patch set. > > I will try today and report back. No problem.

[PATCH v3 6/6] power: bq27xxx_battery: Cleanup health checking

2015-08-05 Thread Andrew F. Davis
Reorganize the logic checking battery health and add under temperature condition checking. Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár Acked-by: Pavel Machek --- drivers/power/bq27xxx_battery.c | 64 +++-- 1 file changed, 42 insertions(+), 22

Re: [PATCH v6 3/4] bpf: Implement function bpf_perf_event_read() that get the selected hardware PMU conuter

2015-08-05 Thread Alexei Starovoitov
On 8/5/15 6:53 AM, Peter Zijlstra wrote: + /* +* If the event is currently on this CPU, its either a per-task event, +* or local to this CPU. Furthermore it means its ACTIVE (otherwise +* oncpu == -1). +*/ + if (event->oncpu == smp_processor_id()) +

[PATCH v3 5/6] power: bq27xxx_battery: Add support for additional bq27xxx family devices

2015-08-05 Thread Andrew F. Davis
Add support for additional devices and register equivalent family devices including the bq27010, bq27210, bq27500, bq27510, bq27520, bq27530, bq27531, bq27541, bq27542, bq27546, bq27545, bq27441, bq27421, and the bq27641. To facilitate this process the register mapings have been moved to tables

[PATCH v3 0/6] Add support for additional bq27xxx devices

2015-08-05 Thread Andrew F. Davis
This series adds support for several additional bq27xxx devices and makes a few related fixes. v1 can be found here: [1] v2: [2] Changes from v2: - Fix alignment issue - Fix commit message typo - Use INVALID_REG_ADDR in register mappings Changes from v1: - Drop first four patches from

[PATCH v3 3/6] power: bq27xxx_battery: Platform initialization must declare a device

2015-08-05 Thread Andrew F. Davis
When initialized as a platform device the initializer must now specify a device. An empty device name is no longer valid. Signed-off-by: Andrew F. Davis --- drivers/power/bq27xxx_battery.c | 9 ++--- drivers/w1/slaves/w1_bq27000.c| 1 + include/linux/power/bq27xxx_battery.h |

[PATCH v3 2/6] power: bq27x00_battery: Renaming for consistency

2015-08-05 Thread Andrew F. Davis
Rename functions that are used by multiple devices. New devices have been added and the function names and driver name are no longer general enough for the functionality they provide. Signed-off-by: Andrew F. Davis Acked-by: Pali Rohár --- MAINTAINERS|

[RFC PATCH] regulator: Fix recursive mutex lockdep warning

2015-08-05 Thread Srinivas Kandagatla
A recursive lockdep warning occurs if you call regulator_set_voltage() on a load switches that are modelled as regulators with a parent supply as there is no nesting annotation for the rdev->mutex. To avoid this warning, use the unlocked version of the get_voltage(). wiithout this patch kernel

Re: [PATCH v6 3/4] bpf: Implement function bpf_perf_event_read() that get the selected hardware PMU conuter

2015-08-05 Thread Alexei Starovoitov
On 8/5/15 3:15 AM, Peter Zijlstra wrote: On Wed, Aug 05, 2015 at 12:04:25PM +0200, Peter Zijlstra wrote: On Tue, Aug 04, 2015 at 08:58:15AM +, Kaixu Xia wrote: + event->ctx->task != current) Strictly speaking we should hold rcu_read_lock around dereferencing event->ctx (or

Re: [PATCH v6 3/4] bpf: Implement function bpf_perf_event_read() that get the selected hardware PMU conuter

2015-08-05 Thread Alexei Starovoitov
On 8/5/15 3:04 AM, Peter Zijlstra wrote: >+ __perf_event_read(event); >+ return perf_event_count(event); >+} Also, you probably want a WARN_ON(in_nmi()) there, this function is _NOT_ NMI safe. we check that very early on: unsigned int trace_call_bpf(struct bpf_prog *prog, void *ctx) {

[PATCH] perf/evlist: show branch_sample_type bits

2015-08-05 Thread Stephane Eranian
This patchs improves perf evlist by adding the dump of the branch_sample_bits. This is part of perf_event_attr and is important to know when sampling branches. Patch is relative to tip.git Signed-off-by: Stephane Eranian -- diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index

Re: [PATCH V9 0/5] map GHES memory region according to EFI memory map

2015-08-05 Thread Zhang, Jonathan Zhixiong
On 8/5/2015 2:21 AM, Matt Fleming wrote: On Tue, 04 Aug, at 08:41:36AM, Zhang, Jonathan Zhixiong wrote: On 8/3/2015 9:25 PM, Borislav Petkov wrote: On Mon, Aug 03, 2015 at 05:23:54PM +0100, Matt Fleming wrote: Rafael, Boris? The ghes.c change looks fine I guess. The whole patchset makes

[PATCH 1/7] test_user_copy: Check legit kernel accesses

2015-08-05 Thread James Hogan
Check that the use of the user accessors for accessing kernel memory succeed as expected after set_fs(get_ds()) is used to increases the address limit, as used by the kernel to directly invoke system call code with kernel pointers. The tests are basically the same as the tests normally expected

Re: [PATCH RFC v1 1/4] perf: Introduce extended syscall error reporting

2015-08-05 Thread Peter Zijlstra
On Fri, Jul 24, 2015 at 02:45:56PM +0300, Alexander Shishkin wrote: > +static void perf_error_report_site(struct perf_event_attr *attr, > +const struct perf_err_site *site) > +{ > + void *buffer; > + > + if (!site || !extended_reporting_enabled(attr)) > +

[PATCH 0/7] test_user_copy improvements

2015-08-05 Thread James Hogan
These patches extend the test_user_copy test module to handle lots more cases of user accessors which architectures can override separately, and in particular those which are important for checking the MIPS Enhanced Virtual Addressing (EVA) implementations, which need to handle overlapping user

[PATCH 4/7] test_user_copy: Check __copy_in_user()/copy_in_user()

2015-08-05 Thread James Hogan
Add basic success/failure checking of copy_in_user() which copies data from userspace to userspace (or kernel to kernel), and its unchecking cousin __copy_in_user() which assumes that access_ok() has already been used as appropriate. The following cases are checked: - __copy_in_user/copy_in_user

[PATCH 5/7] test_user_copy: Check __copy_{to,from}_user_inatomic()

2015-08-05 Thread James Hogan
Add basic success/failure checking of __copy_to_user_inatomic() and __copy_from_user_inatomic(). For testing purposes these are similar to their non-atomic non-checking friends, so the new tests match those for __copy_to_user() and __copy_from_user(). New tests: - legitimate

Re: [Xen-devel] [PATCH v2 02/20] xen: Introduce a function to split a Linux page into Xen page

2015-08-05 Thread David Vrabel
On 05/08/15 15:30, Julien Grall wrote: > Hi David, > > On 24/07/15 11:10, David Vrabel wrote: >> On 24/07/15 10:54, Julien Grall wrote: >>> On 24/07/15 10:31, David Vrabel wrote: On 09/07/15 21:42, Julien Grall wrote: > The Xen interface is always using 4KB page. This means that a Linux

[BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep

2015-08-05 Thread Aapo Vienamo
en setting a breakpoint in kgdb. This was tested on an Nvidia Jetson TK1 board with 4.2.0-rc5-next-20150805 kernel. Regards, Aapo Vienamo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More maj

[PATCH] sky2: Add module parameter for passing the MAC address

2015-08-05 Thread Liviu Dudau
For designs where EEPROMs are not connected to PCI Yukon2 chips we need to get the MAC address from the firmware. Add a module parameter called 'mac_address' for this. It will be used if no DT node can be found and the B2_MAC register holds an invalid value. Signed-off-by: Liviu Dudau ---

[PATCH 6/7] test_user_copy: Check user string accessors

2015-08-05 Thread James Hogan
Add basic success/failure checking of the user string functions which copy or find the length of userland strings. The following cases are checked: - strncpy_from_user() with legitimate user to kernel addresses, illegal all-kernel and reversed addresses, and legitimate all-kernel addresses. -

[PATCH 3/7] test_user_copy: Check __clear_user()/clear_user()

2015-08-05 Thread James Hogan
Add basic success/failure checking of __clear_user() and clear_user(), which zero an area of user or kernel memory and return the number of bytes left to clear. This catches a couple of bugs in the MIPS Enhanced Virtual Memory (EVA) implementation (which have already been fixed): test_user_copy:

[PATCH 2/7] test_user_copy: Check unchecked accessors

2015-08-05 Thread James Hogan
Currently the test_user_copy module only tests the user accessors which already check the address with access_ok(). Corresponding unchecked accessors exist however which may be used after access_ok() is checked. Since the addresses the test uses are known to be valid kernel addresses, test these

[PATCH 7/7] test_user_copy: Check user checksum functions

2015-08-05 Thread James Hogan
Add basic success/failure checking of the combined user copy and checksum functions which copy data between user and kernel space while also checksumming that data. Some architectures have optimised versions of these which combine both operations into a single pass. The following cases are

[v2 1/9] devres: add devm_alloc_percpu()

2015-08-05 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c | 64

[v2 4/9] dpaa_eth: add driver's Tx queue selection mechanism

2015-08-05 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig | 10 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.c| 3 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h| 6

Re: [PATCH 5/9] x86/intel_rdt: Add new cgroup and Class of service management

2015-08-05 Thread Tejun Heo
Hello, On Tue, Aug 04, 2015 at 07:21:52PM -0700, Vikas Shivappa wrote: > >I get that this would be an easier "bolt-on" solution but isn't a good > >solution by itself in the long term. As I wrote multiple times > >before, this is a really bad programmable interface. Unless you're > >sure that

[v2 7/9] dpaa_eth: add debugfs counters

2015-08-05 Thread Madalin Bucur
Add a series of counters to be exported through debugfs: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion

[v2 8/9] dpaa_eth: add debugfs entries

2015-08-05 Thread Madalin Bucur
Export per CPU counters through debugfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig| 7 + drivers/net/ethernet/freescale/dpaa/Makefile | 3 + drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.c | 272 +

RE: [PATCH RFC V8 3/4] perf,tools: per-event callgraph support

2015-08-05 Thread Liang, Kan
> > + /* User explicitly set per-event callgraph, clear the old setting and > reset. */ > > + if ((callgraph_buf != NULL) || (dump_size > 0)) { > > + > > + /* parse callgraph parameters */ > > + if (callgraph_buf != NULL) { > > + if

[v2 5/9] dpaa_eth: add ethtool functionality

2015-08-05 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 + .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 3 +

[v2 6/9] dpaa_eth: add sysfs exports

2015-08-05 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 +

[v2 9/9] dpaa_eth: add trace points

2015-08-05 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 +

[v2 2/9] dpaa_eth: add support for DPAA Ethernet

2015-08-05 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur ---

[v2 0/9] dpaa_eth: Add the Freescale DPAA Ethernet driver

2015-08-05 Thread Madalin Bucur
This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood, David Miller -

[v2 3/9] dpaa_eth: add support for S/G frames

2015-08-05 Thread Madalin Bucur
Add support for Scater/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 +

Re: perf, tools: Refactor and support interval and CSV metrics v2

2015-08-05 Thread Andi Kleen
> ^ > cc1: all warnings being treated as errors Sorry mistake in refactoring. I also forgot to include one patch. I'll fix this and repost (and also add the man page) -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCHv2] serial: don't register CIR serial ports

2015-08-05 Thread Maciej S. Szmigiero
CIR type serial ports aren't real serial ports. This is just a way to prevent legacy 8250 serial driver from probing and eventually binding some resources. Since in current state such ports aren't providing any real functionality and it is not possible to change their type via

Re: [PATCH RFC v1 1/4] perf: Introduce extended syscall error reporting

2015-08-05 Thread Peter Zijlstra
On Fri, Jul 24, 2015 at 02:45:56PM +0300, Alexander Shishkin wrote: > +#define __perf_err(__e, __c, __m) ({ \ > + static struct perf_err_site \ > + __attribute__ ((unused,__section__("__perf_err"))) \ > + __err_site = {

Re: [PATCH] ARCNET: fix hard_header_len limit

2015-08-05 Thread Michael Grzeschik
On Thu, Jul 30, 2015 at 11:16:36AM -0700, David Miller wrote: > From: Michael Grzeschik > Date: Thu, 30 Jul 2015 15:34:36 +0200 > > > The commit <9c7077622dd9> ("packet: make packet_snd fail on len smaller > > than l2 header") adds the check for minimum packet length of the used l2. > > For

Re: [PATCH 2/7] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe

2015-08-05 Thread Felipe Balbi
On Wed, Aug 05, 2015 at 07:42:24PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 04 August 2015 09:36 PM, Felipe Balbi wrote: > > On Tue, Aug 04, 2015 at 08:50:41PM +0530, Kishon Vijay Abraham I wrote: > >> No functional change. Previously omap_control_phy_power() was used to power >

[PATCH 10/26] iommu/vt-d: Replace iommu_bmp with a refcount

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This replaces the dmar_domain->iommu_bmp with a similar reference count array. This allows us to keep track of how many devices behind each iommu are attached to the domain. This is necessary for further simplifications and optimizations to the iommu<->domain attachment code.

[PATCH 12/26] iommu/vt-d: Simplify domain_remove_one_dev_info()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Simplify this function as much as possible with the new iommu_refcnt field. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 50 +++-- 1 file changed, 16 insertions(+), 34 deletions(-) diff --git

[PATCH 11/26] iommu/vt-d: Simplify io/tlb flushing in intel_iommu_unmap

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel We don't need to do an expensive search for domain-ids anymore, as we keep track of per-iommu domain-ids. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v2 1/3] mailbox/omap: Add ti,mbox-send-noirq quirk to fix AM33xx CPU Idle

2015-08-05 Thread Suman Anna
Hi Tony, On 08/05/2015 05:28 AM, Tony Lindgren wrote: > * Dave Gerlach [150717 13:59]: >> --- a/Documentation/devicetree/bindings/mailbox/omap-mailbox.txt >> +++ b/Documentation/devicetree/bindings/mailbox/omap-mailbox.txt >> @@ -75,6 +75,14 @@ data that represent the following: >> Cell #3

[PATCH 13/26] iommu/vt-d: Simplify domain_remove_dev_info()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Just call domain_remove_one_dev_info() for all devices in the domain instead of reimplementing the functionality. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 20 ++-- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git

[PATCH 17/26] iommu/vt-d: Rename iommu_detach_dependent_devices()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Rename this function and the ones further down its call-chain to domain_context_clear_*. In particular this means: iommu_detach_dependent_devices -> domain_context_clear iommu_detach_dev_cb -> domain_context_clear_one_cb

[PATCH 16/26] iommu/vt-d: Rename domain_remove_one_dev_info()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Rename the function to dmar_remove_one_dev_info to match is name better with its dmar_insert_one_dev_info counterpart. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[PATCH 20/26] iommu/vt-d: Unify domain->iommu attach/detachment

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Move the code to attach/detach domains to iommus and vice verce into a single function to make sure there are no dangling references. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 124 +--- 1 file changed, 49

Re: [PATCH] sched: check pinned tasks before nohz balance, linux-4.2-rc5

2015-08-05 Thread Peter Zijlstra
On Wed, Aug 05, 2015 at 05:14:34PM +0200, Uladzislau Rezki wrote: > While investigating “load balancer” logic, I run into interesting > behavior related > to affinity and NO_HZ idle balance. Basically saying if there are two > tasks running > in certain rq and one of them is pinned/affined, then

[PATCH 14/26] iommu/vt-d: Move context-mapping into dmar_insert_dev_info

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Do the context-mapping of devices from a single place in the call-path and clean up the other call-sites. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 33 - 1 file changed, 8 insertions(+), 25 deletions(-) diff --git

[PATCH 23/26] iommu/vt-d: Remove dmar_global_lock from device_notifier

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel The code in the locked section does not touch anything protected by the dmar_global_lock. Remove it from there. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/intel-iommu.c

[PATCH 21/26] iommu/vt-d: Only call domain_remove_one_dev_info to detach old domain

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel There is no need to make a difference here between VM and non-VM domains, so simplify this code here. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/iommu/intel-iommu.c

[PATCH 6/6 v2][RESEND] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode

2015-08-05 Thread Maciej S. Szmigiero
Adjust set DAI format function in fsl_ssi driver so it doesn't fail and clears RXDIR in AC'97 mode. Signed-off-by: Maciej Szmigiero --- Changes from v1: fix indentation to be consistent with rest of the driver. sound/soc/fsl/fsl_ssi.c |8 +--- 1 files changed, 5 insertions(+), 3

[PATCH 1/9] KVM: x86: set TMR when the interrupt is accepted

2015-08-05 Thread Paolo Bonzini
Do not compute TMR in advance. Instead, set the TMR just before the interrupt is accepted into the IRR. This limits the coupling between IOAPIC and LAPIC. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/ioapic.c | 9 ++--- arch/x86/kvm/ioapic.h | 3 +-- arch/x86/kvm/lapic.c | 19

[PATCH 15/26] iommu/vt-d: Rename dmar_insert_dev_info()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Rename this function to dmar_insert_one_dev_info() to match the name better with its counter part function domain_remove_one_dev_info(). Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH 2/9] KVM: x86: store IOAPIC-handled vectors in each VCPU

2015-08-05 Thread Paolo Bonzini
We can reuse the algorithm that computes the EOI exit bitmap to figure out which vectors are handled by the IOAPIC. The only difference between the two is for edge-triggered interrupts other than IRQ8 that have no notifiers active; however, the IOAPIC does not have to do anything special for

[PATCH 4/4] MAINTAINERS: Add Liviu Dudau as maintainer for ARM HDLCD driver.

2015-08-05 Thread Liviu Dudau
Update MAINTAINERS file for HDLCD driver. Cc: Andrew Morton Cc: Arnd Bergmann Cc: Mauro Carvalho Chehab Cc: Greg KH Cc: Joe Perches Cc: Jiri Slaby Signed-off-by: Liviu Dudau --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH 0/4] drm: Add support for the ARM HDLCD display controller

2015-08-05 Thread Liviu Dudau
This series adds support for ARM's HDLCD display controller found in Juno and ARM TC2 Coretile. The HDLCD outputs an RGB stream that feeds into a single digital encoder (DVI or HDMI). This series depends on Sudeep Holla's series that introduces support for SCPI[1] on Juno. Only the Juno

[PATCH 1/4] drm: arm: Add DT bindings documentation for HDLCD driver.

2015-08-05 Thread Liviu Dudau
Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Signed-off-by: Liviu Dudau --- .../devicetree/bindings/drm/arm/arm,hdlcd.txt | 74 ++ 1 file changed, 74 insertions(+) create mode 100644

[PATCH 2/4] drm: Add support for ARM's HDLCD controller.

2015-08-05 Thread Liviu Dudau
The HDLCD controller is a display controller that supports resolutions up to 4096x4096 pixels. It is present on various development boards produced by ARM Ltd and emulated by the latest Fast Models from the company. Cc: David Airlie Cc: Robin Murphy Signed-off-by: Liviu Dudau ---

[PATCH 5/6][RESEND] ASoC: fsl_ssi: instantiate AC'97 CODEC

2015-08-05 Thread Maciej S. Szmigiero
Instantiate AC'97 CODEC in fsl_ssi driver AC'97 mode. Signed-off-by: Maciej Szmigiero --- This is a resend without changes, to keep the whole series together. sound/soc/fsl/fsl_ssi.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git

[PATCH 5/9] KVM: x86: unify handling of interrupt window

2015-08-05 Thread Paolo Bonzini
The interrupt window is currently checked twice, once in vmx.c/svm.c and once in dm_request_for_irq_injection. The only difference is the extra check for kvm_arch_interrupt_allowed in dm_request_for_irq_injection, and the different return value (EINTR/KVM_EXIT_INTR for vmx.c/svm.c vs.

[PATCH 3/4] arm64: Juno: Add HDLCD support to the Juno boards.

2015-08-05 Thread Liviu Dudau
ARM's Juno board has two HDLCD controllers, each linked to an NXP TDA19988 HDMI transmitter that provides output encoding. Add them to the device tree. Signed-off-by: Liviu Dudau --- arch/arm64/boot/dts/arm/juno-base.dtsi | 70 +- 1 file changed, 68

[PATCH 4/9] KVM: x86: introduce lapic_in_kernel

2015-08-05 Thread Paolo Bonzini
Avoid pointer chasing and memory barriers, and simplify the code when split irqchip (LAPIC in kernel, IOAPIC/PIC in userspace) is introduced. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/irq.c | 6 +++--- arch/x86/kvm/irq.h | 8 arch/x86/kvm/lapic.c | 4 ++-- arch/x86/kvm/mmu.c

[PATCH 0/9] split irqchip series

2015-08-05 Thread Paolo Bonzini
I am going to push the memory barrier fixes to kvm/next. The rest of the series is here for review. This includes cleanups from myself and the bulk of the code from Steve. Paolo Paolo Bonzini (5): KVM: x86: set TMR when the interrupt is accepted KVM: x86: store IOAPIC-handled vectors in

Re: [PATCH] serial: don't register CIR serial ports

2015-08-05 Thread Greg Kroah-Hartman
On Wed, Aug 05, 2015 at 05:03:50PM +0200, Maciej S. Szmigiero wrote: > On 05.08.2015 16:51, Greg Kroah-Hartman wrote: > > On Wed, Aug 05, 2015 at 02:33:33PM +0200, Maciej S. Szmigiero wrote: > >> CIR type serial ports aren't real serial ports. > >> > >> This is just a way to prevent legacy 8250

[PATCH 4/6][RESEND] ASoC: fsl_ssi: add AC'97 ops setting check and cleanup

2015-08-05 Thread Maciej S. Szmigiero
Check whether setting AC'97 ops succeeded and clean them on removal so the fsl_ssi driver can be reloaded. Signed-off-by: Maciej Szmigiero --- This is a resend without changes, to keep the whole series together. sound/soc/fsl/fsl_ssi.c |9 - 1 files changed, 8 insertions(+), 1

Re: veths often slow to come up

2015-08-05 Thread Thadeu Lima de Souza Cascardo
On Tue, Aug 04, 2015 at 08:26:28PM -0700, Cong Wang wrote: > (Cc'ing netdev for network issues) > > On Tue, Aug 4, 2015 at 6:42 AM, Shaun Crampton > wrote: > > Please CC me on any responses, thanks. > > > > Setting both ends of a veth to be oper UP completes very quickly but I > > find that

[PATCH 8/9] KVM: x86: Add EOI exit bitmap inference

2015-08-05 Thread Paolo Bonzini
From: Steve Rutherford In order to support a userspace IOAPIC interacting with an in kernel APIC, the EOI exit bitmaps need to be configurable. If the IOAPIC is in userspace (i.e. the irqchip has been split), the EOI exit bitmaps will be set whenever the GSI Routes are configured. In

[PATCH 7/9] KVM: x86: Add KVM exit for IOAPIC EOIs

2015-08-05 Thread Paolo Bonzini
From: Steve Rutherford Adds KVM_EXIT_IOAPIC_EOI which allows the kernel to EOI level-triggered IOAPIC interrupts. Uses a per VCPU exit bitmap to decide whether or not the IOAPIC needs to be informed (which is identical to the EOI_EXIT_BITMAP field used by modern x86 processors, but can also be

[PATCH 9/9] KVM: x86: Add support for local interrupt requests from userspace

2015-08-05 Thread Paolo Bonzini
From: Steve Rutherford In order to enable userspace PIC support, the userspace PIC needs to be able to inject local interrupts even when the APICs are in the kernel. KVM_INTERRUPT now supports sending local interrupts to an APIC when APICs are in the kernel. The ready_for_interrupt_request

[PATCH 18/26] iommu/vt-d: Pass an iommu pointer to domain_init()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This allows to do domain->iommu attachment after domain_init has run. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index

[PATCH 3/9] KVM: x86: replace vm_has_apicv hook with cpu_uses_apicv

2015-08-05 Thread Paolo Bonzini
This will avoid an unnecessary trip to ->kvm and from there to the VPIC. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/irq.c | 2 +- arch/x86/kvm/lapic.c| 4 ++-- arch/x86/kvm/lapic.h| 4 ++-- arch/x86/kvm/svm.c

[PATCH 6/9] KVM: x86: Split the APIC from the rest of IRQCHIP.

2015-08-05 Thread Paolo Bonzini
From: Steve Rutherford First patch in a series which enables the relocation of the PIC/IOAPIC to userspace. Adds capability KVM_CAP_SPLIT_IRQCHIP; KVM_CAP_SPLIT_IRQCHIP enables the construction of LAPICs without the rest of the irqchip. Compile tested for x86. Signed-off-by: Steve Rutherford

[PATCH 3/6][RESEND] ASoC: fsl_ssi: enable AC'97 asymmetric rates

2015-08-05 Thread Maciej S. Szmigiero
AC'97 bus can support asymmetric playback/capture rates so enable them in this case in fsl_ssi driver. Signed-off-by: Maciej Szmigiero --- This is a resend without changes, to keep the whole series together. sound/soc/fsl/fsl_ssi.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)

[PATCH 24/26] iommu/vt-d: Pass device_domain_info to __dmar_remove_one_dev_info

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This struct contains all necessary information for the function already. Also handle the info->dev == NULL case while at it. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 33 +++-- 1 file changed, 15 insertions(+), 18 deletions(-)

[PATCH 08/26] iommu/vt-d: Don't pre-allocate domain ids for si_domain

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel There is no reason for this special handling of the si_domain. The per-iommu domain-id can be allocated on-demand like for any other domain. So remove the pre-allocation code. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 28 +--- 1

[PATCH 22/26] iommu/vt-d: Get rid of domain->iommu_lock

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel When this lock is held the device_domain_lock is also required to make sure the device_domain_info does not vanish while in use. So this lock can be removed as it gives no additional protection. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 87

[PATCH 25/26] iommu/vt-d: Only insert alias dev_info if there is an alias

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel For devices without an PCI alias there will be two device_domain_info structures added. Prevent that by checking if the alias is different from the device. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 6 -- 1 file changed, 4 insertions(+), 2

<    1   2   3   4   5   6   7   8   9   10   >