[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 these

[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 443dc62..

[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 functiona

[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 Documentation/devicetree/bindings/drm/arm/arm,h

[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 --- drivers/gpu/

[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 a/sound/soc/fsl/fsl_

[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. 0/KVM_EXIT_I

[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 insertions(+),

[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 eac

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 ser

[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 delet

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 pings

[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 particular,

[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 u

[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 flag

[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 08391a

[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 fi

[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 deletions(-)

[PATCH 2/6][RESEND] ASoC: fsl_ssi: AC'97 DAI driver needs probe method too

2015-08-05 Thread Maciej S. Szmigiero
AC'97 DAI driver struct need the same probe method as I2S one to setup DMA params 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 |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

[PATCH 1/6][RESEND] ASoC: fsl_ssi: enable IPG clock during AC'97 reg access

2015-08-05 Thread Maciej S. Szmigiero
IPG clock have to be enabled during AC'97 CODEC register access 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 | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff

[PATCH 19/26] iommu/vt-d: Establish domain<->iommu link in dmar_insert_one_dev_info

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This makes domain attachment more synchronous with domain deattachment. The domain<->iommu link is released in dmar_remove_one_dev_info. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 28 +++- 1 file changed, 11 insertions(+), 17 deleti

[PATCH 26/26] iommu/vt-d: Avoid duplicate device_domain_info structures

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel When a 'struct device_domain_info' is created as an alias for another device, this struct will not be re-used when the real device is encountered. Fix that to avoid duplicate device_domain_info structures being added. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu

[PATCH 03/26] iommu/vt-d: Split up iommu->domains array

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This array is indexed by the domain-id and contains the pointers to the domains attached to this iommu. Modern systems support 65536 domain ids, so that this array has a size of 512kb, per iommu. This is a huge waste of space, as the array is usually sparsely populated. This p

[PATCH 09/26] iommu/vt-d: Kill dmar_domain->id

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This field is now obsolete because all places use the per-iommu domain-ids. Kill the remaining uses of this field and remove it. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/driver

[PATCH 01/26] iommu/vt-d: Keep track of per-iommu domain ids

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Instead of searching in the domain array for already allocated domain ids, keep track of them explicitly. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 51 +++-- 1 file changed, 26 insertions(+), 25 deletions(-) diff -

[PATCH 05/26] iommu/vt-d: Calculate translation in domain_context_mapping_one

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel There is no reason to pass the translation type through multiple layers. It can also be determined in the domain_context_mapping_one function directly. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 50 ++--- 1 file chan

[PATCH 02/26] iommu/vt-d: Add access functions for iommu->domains

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This makes it easier to change the layout of the data structure later. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-io

[PATCH 00/26] iommu/vt-d: Clean up device<->domain attachment

2015-08-05 Thread Joerg Roedel
Hi, here is a (bigger than I expected) patch-set which cleans up the code to attach and detach domains to iommus in the Intel VT-d driver. In particular, the patch-set does: * Remove special cases around the handling of various domain types and align their handling wh

[PATCH 04/26] iommu/vt-d: Get rid of iommu_attach_vm_domain()

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel The special case for VM domains is not needed, as other domains could be attached to the iommu in the same way. So get rid of this special case. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 26 ++ 1 file changed, 10 insertions(+), 16

[PATCH 07/26] iommu/vt-d: Pass dmar_domain directly into iommu_flush_iotlb_psi

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel This function can figure out the domain-id to use itself from the iommu_did array. This is more reliable over different domain types and brings us one step further to remove the domain->id field. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 42 ++

[PATCH 06/26] iommu/vt-d: Simplify domain_context_mapping_one

2015-08-05 Thread Joerg Roedel
From: Joerg Roedel Get rid of the special cases for VM domains vs. non-VM domains and simplify the code further to just handle the hardware passthrough vs. page-table case. Signed-off-by: Joerg Roedel --- drivers/iommu/intel-iommu.c | 60 - 1 file ch

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: > +/* > + * Use part of the [-1, -MAX_ERRNO] errno range for perf's extended error > + * reporting. Anything within [-PERF_ERRNO, -MAX_ERRNO] is an index of a > + * perf_err_site structure within __perf_err section. 3.5k should be

Re: [PATCH 04/11] ext4: Add ext4_get_block_dax()

2015-08-05 Thread Matthew Wilcox
On Wed, Aug 05, 2015 at 12:03:57PM +1000, Dave Chinner wrote: > On Tue, Aug 04, 2015 at 03:57:58PM -0400, Matthew Wilcox wrote: > > From: Matthew Wilcox > > > > DAX wants different semantics from any currently-existing ext4 > > get_block callback. Unlike ext4_get_block_write(), it needs to honou

[PATCH v2 4/8] ARCv2: perf: Support sampling events using overflow interrupts

2015-08-05 Thread Alexey Brodkin
In times of ARC 700 performance counters didn't have support of interrupt an so for ARC we only had support of non-sampling events. Put simply only "perf stat" was functional. Now with ARC HS we have support of interrupts in performance counters which this change introduces support of. ARC perfo

[PATCH v2 3/8] ARCv2: perf: implement "event_set_period" for future use with interrupts

2015-08-05 Thread Alexey Brodkin
This generalization prepares for support of overflow interrupts. Hardware event counters on ARC work that way: Each counter counts from programmed start value (set in ARC_REG_PCT_COUNT) to a limit value (set in ARC_REG_PCT_INT_CNT) and once limit value is reached this timer generates an interrupt.

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

2015-08-05 Thread Uladzislau Rezki
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 scheduler will trigger load balance on power collapsed core via soft irq. The

[PATCH v2 5/8] ARCv2: perf: set usable max period as a half of real max period

2015-08-05 Thread Alexey Brodkin
Overflow interrupt happens when counter reaches a limit which we set as a maximum value of the counter. But for better precision counter continues registration of assigned events even after reaching pre-defined limit. To not really overlap we leave half of the counter values free. Cc: Peter Zijls

[PATCH v2 7/8] ARCv2: perf: SMP support

2015-08-05 Thread Alexey Brodkin
* split off pmu info into singleton and per-cpu bits * setup PMU on all cores Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Signed-off-by: Alexey Brodkin --- Compared to v1: [1] Rebase on top of previos patches hence changes in patch itself [2] Cosmetics arch/arc/kernel/perf_event.c | 71

[PATCH v2 8/8] ARCv2: perf: Finally introduce HS perf unit

2015-08-05 Thread Alexey Brodkin
From: Vineet Gupta With all features in place, the ARC HS pct block can now be effectively allowed to be probed/used Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Signed-off-by: Vineet Gupta Signed-off-by: Alexey Brodkin --- Compared to v1: [1] MAINTAINERS file updated to cover new file.

[PATCH v2 6/8] ARCv2: perf: implement exclusion of event counting in user or kernel mode

2015-08-05 Thread Alexey Brodkin
Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Signed-off-by: Alexey Brodkin --- No changes since v1. arch/arc/include/asm/perf_event.h | 3 +++ arch/arc/kernel/perf_event.c | 16 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arc/include/asm/perf

[PATCH v2 1/8] ARC: perf: support RAW events

2015-08-05 Thread Alexey Brodkin
To run perf against raw event user may issue following command: -->- # perf stat -e r6372756e ls -la /proc > /dev/null Performance counter stats for 'ls -la /proc': 7336905 r6372756e 0.085494733 seconds time elapsed -->---

[PATCH v2 0/8] ARCv2 port to Linux - (C) perf

2015-08-05 Thread Alexey Brodkin
Hi Peter, This mini-series adds perf support for ARCv2 based cores, which brings in overflow interupts and SMP. Additionally now raw events are supported as well. Please review ! Compared to v1 this series has: [1] Addressed review comments [2] More verbose commit messages and comments in sour

[PATCH v2 2/8] ARC: perf: cap the number of counters to hardware max of 32

2015-08-05 Thread Alexey Brodkin
From: Vineet Gupta The number of counters in PCT can never be more than 32 (while countable conditions could be 100+) for both ARCompact and ARCv2 Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Signed-off-by: Vineet Gupta Signed-off-by: Alexey Brodkin --- No changes since v1. arch/arc/in

Re: [f2fs-dev] [PATCH v2] f2fs: fix to release inode page in get_new_data_page

2015-08-05 Thread Jaegeuk Kim
On Wed, Aug 05, 2015 at 05:25:12PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > How about using v3 instead of v2 since it fixes the same type issue > in f2fs_convert_inline_dir? Fixed. Thanks, > > Thanks, > > > -Original Message- > > From: Chao Yu [mailto:chao2...@samsung.com] > > Sent: Mon

Re: [PATCH V5] audit: save signal match info in case entry passed in is the one deleted

2015-08-05 Thread Paul Moore
On Wednesday, August 05, 2015 05:23:10 AM Richard Guy Briggs wrote: > Move the access to the entry for audit_match_signal() to the beginning of > the function in case the entry found is the same one passed in. This will > enable it to be used by audit_remove_mark_rule(). > > Signed-off-by: Richar

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

2015-08-05 Thread Jiri Slaby
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 that: >> WARNING: CPU: 0 PID: 0 at drivers/mmc/host/sdhci.c:8

Re: [PATCH 0/7] ARM: dts: MMC fixes for DRA7 based boards

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 August 2015 04:24 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [150730 01:16]: >> Miscellaneous fixes in dts files for MMC device tree nodes. >> >> Did basic read/write test in J6, J6 Eco and Beagle-x15 >> >> Balaji T K (1): >> ARM: dts: dra7-evm: add evm_3v3_sd regul

Re: [PATCH v3 1/2] drivers: watchdog: add a driver to support SAMA5D4 watchdog timer

2015-08-05 Thread Guenter Roeck
On 08/05/2015 01:57 AM, Wenyou Yang wrote: From SAMA5D4, the watchdog timer is upgrated with a new feature, which is describled as in the datasheet, "WDT_MR can be written until a LOCKMR command is issued in WDT_CR". That is to say, as long as the bootstrap and u-boot don't issue a LOCKMR comman

Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator

2015-08-05 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 05 August 2015 03:17 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [150727 04:27]: >> vsel_reg and enable_reg of the pbias regulator descriptor should actually >> have the offset from syscon. However after the pbias device tree node >> is moved as a child node of sysco

[GIT PULL] KVM changes for 4.2-rc6

2015-08-05 Thread Paolo Bonzini
Linus, The following changes since commit 956325bd55bb020e574129c443a2c2c66a8316e7: Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma (2015-07-28 14:20:16 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/

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

2015-08-05 Thread Maciej S. Szmigiero
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 serial >> driver from probing and eventually binding some >> resources. >> >> Sinc

Re: Armadaxp GPIO interrupts

2015-08-05 Thread raghu MG
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. The warning is thrown up when irq_alloc_descs is called 2nd time(irq_domain_add_simple) & bitmap_find_next_zero_area gives new value of start which is not

Re: [PATCH 00/11] omap_hsmmc: voltage switching and tuning

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 August 2015 04:13 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [150730 00:49]: >> Patch series implements voltage switching and tuning for omap_hsmmc >> driver. >> >> Did basic read/write test in J6, J6 Eco, Beagle-x15, AM437x EVM, >> Beaglebone black, OMAP5 uEVM and OM

Re: [PATCH] x86:kvm:Fix error handling in the function kvm_lapic_sync_from_vapic

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 16:44, Nicholas Krause wrote: > This fixes error handling in the function kvm_lapic_sync_from_vapic > by checking if the call to kvm_read_guest_cached has returned a > error code to signal to its caller the call to this function has > failed and due to this we must immediately retur

[PATCH 0/2] of: fsl/fman: reuse the fixed node parsing code

2015-08-05 Thread Madalin Bucur
The FMan MAC configuration code needs the speed and duplex information for fixed-link interfaces that is parsed now by the of function of_phy_register_fixed_link(). This parses the fixed-link parameters but does not expose to the caller neither the phy_device pointer nor the status struct where it

Re: [RFC PATCH 05/10] arm64: Keep track of CPU feature registers

2015-08-05 Thread Suzuki K. Poulose
On 24/07/15 10:43, Suzuki K. Poulose wrote: From: "Suzuki K. Poulose" This patch adds an infrastructure to keep track of the CPU feature registers on the system. This patch also consolidates the cpuinfo SANITY checks which ensures that we don't have conflicting feature supports across the CPUs.

[PATCH RFC 2/2] fsl_fman: use fixed_phy_status for MEMAC

2015-08-05 Thread Madalin Bucur
Use the speed and duplex information from the device tree fixed link node accessing the status structure parsed by of_phy_parse_fixed_link(). Signed-off-by: Madalin Bucur --- .../ethernet/freescale/fman/flib/fsl_fman_memac.h | 6 ++-- drivers/net/ethernet/freescale/fman/inc/mac.h | 2 +-

Re: [PATCH] ramoops: provide panic data even in suspend

2015-08-05 Thread Petr Mladek
On Wed 2015-08-05 21:56:07, check.ker...@gmail.com wrote: > From: yangdongdong > > Good comments. It is valuable for code readable. Here is not necessary wrap > atomic_notifier_chain_register into ramoops_prepare. The updated patch as > below: > > >From 5ec3976e2b55dfaf8bd1bc88c5a9c05762148fef

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

2015-08-05 Thread Greg Kroah-Hartman
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 serial > driver from probing and eventually binding some > resources. > > Since in current state such ports aren't providing > any r

Re: [PATCH v3] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-05 Thread Guenter Roeck
On 08/05/2015 02:57 AM, Punit Agrawal wrote: thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-

Re: [PATCH] mm: add the block to the tail of the list in expand()

2015-08-05 Thread Dave Hansen
On 08/05/2015 12:54 AM, Xishi Qiu wrote: > I add some debug code like this, but it doesn't trigger the dump_stack(). ... > + if (!list_empty(&area->free_list[migratetype])) { > + printk("expand(), the list is not empty\n"); > + dump_stack(); > + } > +

Re: [PATCH] cris: arch-v10: kgdb: Use BAR instead of DTP0 for register P12

2015-08-05 Thread Hans-Peter Nilsson
> From: Chen Gang > Date: Fri, 10 Jul 2015 23:47:24 +0200 > For arch-v10, there is no DTP0 register, and at present, assembler know > BAR, so use BAR instead of DTP0, the related error (with allmodconfig): > > CC arch/cris/arch-v10/kernel/kgdb.o > {standard input}: Assembler messages:

Re: 4.2-rc5 rcu stalls.

2015-08-05 Thread Dave Jones
On Wed, Aug 05, 2015 at 04:38:14PM +0200, Frederic Weisbecker wrote: > > > Also did you just launch trinity? no specific options? > > > > basically > > > > while [ 1 ]; > > do > > trinity -N 100 -q -l off -C256 -a64 -x fsync -x fdatasync -x syncfs > > -x sync -P INET --enable-f

[PATCH RFC 1/2] of: separate fixed link parsing from registration

2015-08-05 Thread Madalin Bucur
Some drivers may need to parse the fixed link values before registering the fixed link phy or access the status values. Separate the parsing from the actual registration and provide an export for the added parsing function. Signed-off-by: Madalin Bucur --- drivers/of/of_mdio.c| 52 ++

[PATCH] fs/pstore: provide panic data even in suspend

2015-08-05 Thread check.kernel
From: yangdongdong Update subject from ramoops to fs/pstore and convert all characters into English. Good comments. It is valuable for code readable. Here is not necessary wrap atomic_notifier_chain_register into ramoops_prepare. The updated patch as below: >From 5ec3976e2b55dfaf8bd1bc88c5a9c

Re: 4.2-rc5 rcu stalls.

2015-08-05 Thread Frederic Weisbecker
On Wed, Aug 05, 2015 at 09:18:57AM -0400, Dave Jones wrote: > On Wed, Aug 05, 2015 at 02:37:59PM +0200, Frederic Weisbecker wrote: > > On Tue, Aug 04, 2015 at 08:12:50PM -0400, Dave Jones wrote: > > > On Tue, Aug 04, 2015 at 12:54:35AM -0400, Sasha Levin wrote: > > > > On 08/03/2015 06:03 PM, P

Re: [Consult] cris: arch-v10: About $dtp0 register

2015-08-05 Thread Chen Gang
On 8/5/15 12:32, Hans-Peter Nilsson wrote: >> From: Chen Gang >> Date: Mon, 20 Jul 2015 23:32:52 +0200 > >> On 7/9/15 08:44, Chen Gang wrote: >> The latest upstream cris gcc will cause issue for next-20150720 with >> allmodconfig (although it can let next-20150702 pass allmodconfig): >> >> CC

Re: [PATCH] x86, fpu: correct XSAVE xstate size calculation

2015-08-05 Thread Dave Hansen
On 08/05/2015 03:32 AM, Ingo Molnar wrote: > * Dave Hansen wrote: >> From: Dave Hansen >> >> Note: our xsaves support is currently broken and disabled. This >> patch does not fix it, but it is an incremental improvement. It >> might be useful to someone backporting the entire set of XSAVES >> p

Re: [PATCH v6 4/8] usb: gadget: move find_ep() from epautoconf to gadget.h

2015-08-05 Thread Alan Stern
On Wed, 5 Aug 2015, Robert Baldyga wrote: > Move find_ep() function to gadget.h, rename it to gadget_find_ep_by_name() > and make it static inline. It can be used in UDC drivers, especially in > 'match_ep' callback after moving chip-specific endpoint matching logic from > epautoconf to UDC drivers

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
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 page may be split across multiple Xen page wh

Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy

2015-08-05 Thread Tejun Heo
Hello, On Wed, Aug 05, 2015 at 11:10:36AM +0200, Peter Zijlstra wrote: > > I've been thinking about it and I'm now convinced that cgroups just is > > the wrong interface to require each application to be programming > > against. > > But people are doing it. So you must give them something. You ca

Re: [tip:x86/platform] x86/uv/time: Migrate to new set-state interface

2015-08-05 Thread Nathan Zimmer
Yes, thank you for the correction. On 08/05/2015 12:15 AM, Viresh Kumar wrote: On 04-08-15, 10:25, Nathan Zimmer wrote: diff --git a/MAINTAINERS b/MAINTAINERS index 907ce01..9c2beb3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10885,6 +10885,15 @@ W: http://en.wikipedia.org/wiki/Util-linu

Re: [PATCH 25/27] PKCS#7: Appropriately require or forbid authenticated attributes [ver #7]

2015-08-05 Thread David Howells
I've squashed together patches 25 and 27, merged the descriptions and put the result after patch 26. Here's the resulting squashed patch. David --- PKCS#7: Appropriately restrict authenticated attributes and content type A PKCS#7 or CMS message can have per-signature authenticated attributes tha

Re: [PATCH 10/10] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-08-05 Thread Kishon Vijay Abraham I
Hi Roger, On Wednesday 05 August 2015 01:38 PM, Roger Quadros wrote: > On 05/08/15 11:02, Roger Quadros wrote: >> Kishon, >> >> On 04/08/15 18:30, Kishon Vijay Abraham I wrote: >>> Add "syscon-otghs" property and remove the deprecated "ctrl-module" >>> property from MUSB devicetree node. >>> >>> S

Re: [PATCH-v5 1/5] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-08-05 Thread Matt Porter
On Wed, Aug 05, 2015 at 10:49:18AM +0200, Wolfram Sang wrote: > > > Yeah, we could start i2c.txt, probably better to have separate new > > patch all together. > > I will start such a file today as part of the i2c slave framework > update which introduces flags to the reg property. Will post to th

Re: [PATCH-v5 1/5] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-08-05 Thread Vaibhav Hiremath
On Wednesday 05 August 2015 07:50 PM, Matt Porter wrote: On Wed, Aug 05, 2015 at 12:04:25PM +0530, Vaibhav Hiremath wrote: On Monday 27 July 2015 07:39 PM, Matt Porter wrote: On Tue, Jul 21, 2015 at 06:11:02PM +0530, Vaibhav Hiremath wrote: Driver will now supports enable/disable across ms

Re: [PATCH 7/7] phy: omap-usb2: use *syscon* framework API to power on/off the PHY

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 August 2015 02:05 PM, Roger Quadros wrote: > On 04/08/15 18:20, Kishon Vijay Abraham I wrote: >> Deprecate using phy-omap-control driver to power on/off the PHY, >> and use *syscon* framework to do the same. This handles >> powering on/off the PHY for the USB2 PHYs used in vari

Re: [PATCH-v5 1/5] Documentation: binding: add new property 'disable_after_xfer' to i2c-pxa

2015-08-05 Thread Matt Porter
On Wed, Aug 05, 2015 at 12:04:25PM +0530, Vaibhav Hiremath wrote: > > > On Monday 27 July 2015 07:39 PM, Matt Porter wrote: > >On Tue, Jul 21, 2015 at 06:11:02PM +0530, Vaibhav Hiremath wrote: > >>Driver will now supports enable/disable across msg xfer, which user > >>can control it by new DT pro

Re: [PATCH v2] cris: arch-v10: kgdb: Add volatile for static variable is_dyn_brkp

2015-08-05 Thread Chen Gang
On 8/4/15 23:01, Hans-Peter Nilsson wrote: >> From: Chen Gang >> Date: Fri, 10 Jul 2015 23:50:07 +0200 > >> Within one C file, current gcc can optimize the global static variables >> according to the C code, but it will skip assembly code -- it will pass >> them to gas directly. >> >> if the stat

Re: [PATCH 6/7] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-08-05 Thread Kishon Vijay Abraham I
Hi Roger, On Wednesday 05 August 2015 01:55 PM, Roger Quadros wrote: > On 05/08/15 11:23, Roger Quadros wrote: >> >> On 04/08/15 18:20, Kishon Vijay Abraham I wrote: >>> The USB2 PHY2 has a different register map compared to USB2 PHY1 >>> to power on/off the PHY. In order to handle it, add a new >

Re: [PATCH 5/5] net: rfkill: gpio: remove rfkill_gpio_platform_data

2015-08-05 Thread Andy Shevchenko
On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > No more users for it. > > Signed-off-by: Heikki Krogerus > --- > include/linux/rfkill-gpio.h | 37 --- > -- > net/rfkill/Kconfig | 3 +-- > net/rfkill/rfkill-gpio.c| 8 > 3 files c

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

2015-08-05 Thread Kishon Vijay Abraham I
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 > > there is a slight functional change. You moved PHY power off from before > to af

Re: [PATCH 1/5] device property: helper macros for property entry creation

2015-08-05 Thread Shevchenko, Andriy
On Wed, 2015-08-05 at 17:02 +0300, Andy Shevchenko wrote: > On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: [] > > +#define PROP_ENTRY_STRING(_name_, _val_) { \ > > …_STRING_ARRAY I can notice. s / can / can't / > > > + .name = _name_, \ > > + .type = DEV_PROP_STRING, \ > > +

Re: [PATCH v4 07/10] irqchip / GICv3 / ACPI: Add GICR support via GICC structures

2015-08-05 Thread Hanjun Guo
On 08/04/2015 09:37 PM, Marc Zyngier wrote: On 29/07/15 11:08, Hanjun Guo wrote: On systems supporting GICv3 and above, in MADT GICC structures, the field of GICR Base Address holds the 64-bit physical address of the associated Redistributor if the GIC Redistributors are not in the always-on pow

Re: [PATCH 1/7] phy: ti-pipe3: cleanup ti_pipe3_probe()

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 August 2015 09:30 PM, Felipe Balbi wrote: > On Tue, Aug 04, 2015 at 08:50:40PM +0530, Kishon Vijay Abraham I wrote: >> No functional change. Add separate functions for pll, >> clocks and syscon to make ti_pipe3_probe clean. >> >> Signed-off-by: Kishon Vijay Abraham I > > I thin

Re: [PATCH 2/5] net: rfkill: add rfkill_find_type function

2015-08-05 Thread Andy Shevchenko
On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > Helper for finding the type based on name. Useful if the > type needs to be determined based on device property. > > Signed-off-by: Heikki Krogerus > --- > include/linux/rfkill.h | 15 + > net/rfkill/core.c | 57 +++

Re: [PATCH] usb: musb: omap2430: use *syscon* framework API to write to mailbox register

2015-08-05 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 05 August 2015 01:31 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [150804 07:11]: >> Deprecate using phy-omap-control driver to write to the mailbox register >> and start using *syscon* framework to do the same. > .. >> @@ -512,6 +558,40 @@ static const struct musb_pl

[PATCH] igb: Fix a memory leak in igb_probe

2015-08-05 Thread Jia-Ju Bai
In error handling code of igb_probe, the memory adapter->shadow_vfta allocated by kcalloc in igb_sw_init is not freed. So when register_netdev or igb_init_i2c is failed, a memory leak will occur. This patch adds kfree to fix it. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/intel/igb/igb_

[PATCH v2] tile: Remove finish_arch_switch

2015-08-05 Thread Chris Metcalf
Move the simulator bits into switch_to() and use finish_arch_post_lock_switch() for the homecache migration bits. Acked-by: Peter Zijlstra (Intel) Signed-off-by: Chris Metcalf --- arch/tile/include/asm/switch_to.h | 8 +++- arch/tile/kernel/process.c| 5 + 2 files changed, 8 ins

Re: [PATCH 1/5] device property: helper macros for property entry creation

2015-08-05 Thread Andy Shevchenko
On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > Marcos for easier creation of build-in property entries. > > Signed-off-by: Heikki Krogerus > --- > include/linux/property.h | 35 +++ > 1 file changed, 35 insertions(+) > > diff --git a/include/linux/pr

Re: [PATCH v4 06/10] irqchip / GICv3: Add ACPI support for GICv3+ initialization

2015-08-05 Thread Hanjun Guo
On 08/04/2015 09:17 PM, Marc Zyngier wrote: On 29/07/15 11:08, Hanjun Guo wrote: From: Tomasz Nowicki With the refator of gic_of_init(), GICv3/4 can be initialized by gic_init_bases() with gic distributor base address and gic redistributor region(s). So get the redistributor region base addre

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 03:53:17PM +0200, Peter Zijlstra wrote: > +/* > + * NMI-safe method to read a local event, that is an event that > + * is: > + * - either for the current task, or for this CPU > + * - does not have inherit set, for inherited task events > + * will not be local and we

[PATCH 2/2] sched/deadline: fix comment in enqueue_task_dl

2015-08-05 Thread Andrea Parri
The flag "dl_boosted" is set by comparing *absolute* deadlines (c.f., rt_mutex_setprio). Signed-off-by: Andrea Parri --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 7c17001..be2ca5e 100644 ---

[PATCH 1/2] sched/deadline: fix comment in push_dl_tasks

2015-08-05 Thread Andrea Parri
The comment is "misleading"; fix it by adapting a comment from push_rt_tasks. Signed-off-by: Andrea Parri --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 0a17af35..7c17001 100644 --- a/kernel/

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