[PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8

2016-03-07 Thread Peter Ujfalusi
Add missing data for all McASP ports for the dra7 family Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 237 ++ 1 file changed, 237 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c

[PATCH v2 07/10] ARM: DTS: am57xx-beagle-x15: Enable AFIFO use for McASP3

2016-03-07 Thread Peter Ujfalusi
Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 04/10] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3

2016-03-07 Thread Peter Ujfalusi
Since we switched to use eDMA we can now safely enable the FIFO in McASP. This will reduce the chance of McASP level under/overflow. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7-evm.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 10/10] ARM: DTS: dra7: Add nodes for McASP1/2/4/5/6/7/8

2016-03-07 Thread Peter Ujfalusi
Add nodes to represent all McASP ports in the dra7 family. For system consistency use the eDMA for audio operations. sDMA would be fine for 4/5/6/7/8 since their DAT port is not through L3 interconnect. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7.dtsi | 114

[PATCH v2 08/10] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name

2016-03-07 Thread Peter Ujfalusi
rename the mcasp8_ahclk_mux to mcasp8_ahclkx_mux. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 2 +- drivers/clk/ti/clk-7xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: Softirq priority inversion from "softirq: reduce latencies"

2016-03-07 Thread Sebastian Andrzej Siewior
On 02/29/2016 05:58 AM, Mike Galbraith wrote: > WRT -rt: if dma tasklets really do have hard (ish) constraints, -rt > recently "broke" in the same way.. of all softirqs which are deferred > to kthread context, due to a recent change, only timer/hrtimer are > executed at realtime priority by

Re: [PATCH] mm: limit direct reclaim for higher order allocations

2016-03-07 Thread Vlastimil Babka
On 02/24/2016 10:38 PM, Rik van Riel wrote: For multi page allocations smaller than PAGE_ALLOC_COSTLY_ORDER, the kernel will do direct reclaim if compaction failed for any reason. This worked fine when Linux systems had 128MB RAM, but on my 24GB system I frequently see higher order allocations

RE: [PATCH][RFC v3] ACPI / PM: Fix poweroff issue on HW-full platforms without _S5

2016-03-07 Thread Chen, Yu C
Hi Rafael, > -Original Message- > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > Rafael J. Wysocki > Sent: Monday, March 07, 2016 9:19 PM > To: Chen, Yu C > Cc: ACPI Devel Maling List; x...@kernel.org; linux-...@vger.kernel.org; Linux > Kernel Mailing List;

Re: [PATCH v2 6/10] cpufreq: Support for fast frequency switching

2016-03-07 Thread Rafael J. Wysocki
On Mon, Mar 7, 2016 at 9:00 AM, Peter Zijlstra wrote: > On Sun, Mar 06, 2016 at 03:17:09AM +0100, Rafael J. Wysocki wrote: >> > Agreed, fail the stuff hard. >> > >> > Simply make cpufreq_register_notifier a __must_check function and add >> > error handling to all call sites.

Re: [PATCH v2 2/8] perf tools: Introduce perf_hpp__setup_hists_formats()

2016-03-07 Thread Jiri Olsa
On Mon, Mar 07, 2016 at 09:59:34PM +0900, Namhyung Kim wrote: > On Sun, Mar 06, 2016 at 07:43:25PM +0100, Jiri Olsa wrote: > > On Fri, Mar 04, 2016 at 11:59:36PM +0900, Namhyung Kim wrote: > > > > SNIP > > > > > > > > @@ -2133,8 +2134,19 @@ static void hists__delete_all_entries(struct hists >

Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

2016-03-07 Thread Krzysztof Hałasa
Bjorn Helgaas writes: >> At least CNS3xxx doesn't boot. I haven't verified a couple of others, >> but they may be broken as well. > > Good, thanks. Also (I should have asked this before), please include a > "Fixes:" line so we know exactly when this broke and what stable

[PATCH 6/9] KVM: MMU: move zap/flush to kvm_mmu_get_page

2016-03-07 Thread Paolo Bonzini
kvm_mmu_get_page is the only caller of kvm_sync_page_transient and kvm_sync_pages. Moving the handling of the invalid_list there removes the need for the underdocumented kvm_sync_page_transient function. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/mmu.c | 40

[PATCH 7/9] KVM: MMU: coalesce more page zapping in mmu_sync_children

2016-03-07 Thread Paolo Bonzini
mmu_sync_children can only process up to 16 pages at a time. Check if we need to reschedule, and do not bother zapping the pages until that happens. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/mmu.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-)

Re: [PATCH v5 22/22] sound/usb: Use Media Controller API to share media resources

2016-03-07 Thread Shuah Khan
On 03/05/2016 03:00 AM, Mauro Carvalho Chehab wrote: > Em Wed, 2 Mar 2016 09:50:31 -0700 > Shuah Khan escreveu: > >> Change ALSA driver to use Media Controller API to >> share media resources with DVB and V4L2 drivers >> on a AU0828 media device. Media Controller

Re: [RFT 2/2] [media] exynos4-is: Add missing port parent of_node_put on error paths

2016-03-07 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/25/2016 09:41 PM, Krzysztof Kozlowski wrote: > In fimc_md_parse_port_node() remote port parent node is get with > of_graph_get_remote_port_parent() but it is not put on error path. > > Fixes: fa91f1056f17 ("[media] exynos4-is: Add support for asynchronous > subdevices

[PATCH 2/9] KVM: MMU: move TLB flush out of __kvm_sync_page

2016-03-07 Thread Paolo Bonzini
By doing this, kvm_sync_pages can use __kvm_sync_page instead of reinventing it. Because of kvm_mmu_flush_or_zap, the code does not end up being more complex than before, and more cleanups to kvm_sync_pages will come in the next patches. Signed-off-by: Paolo Bonzini ---

[PATCH 9/9] KVM: MMU: micro-optimize gpte_access

2016-03-07 Thread Paolo Bonzini
Avoid AND-NOT, most x86 processor lack an instruction for it. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/paging_tmpl.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index

[PATCH 4/9] KVM: MMU: cleanup __kvm_sync_page and its callers

2016-03-07 Thread Paolo Bonzini
Calling kvm_unlink_unsync_page in the middle of __kvm_sync_page makes things unnecessarily tricky. If kvm_mmu_prepare_zap_page is called, it will call kvm_unlink_unsync_page too. So kvm_unlink_unsync_page can be called just as well at the beginning or the end of __kvm_sync_page... which means

[PATCH 10/11] rxrpc: Rename ar-error.c to peer-event.c

2016-03-07 Thread David Howells
Rename ar-error.c to peer-event.c. This will form the core of the peer event handling code. Signed-off-by: David Howells --- net/rxrpc/Makefile |2 net/rxrpc/ar-error.c| 281 --- net/rxrpc/ar-internal.h | 12 +-

[PATCH 09/11] rxrpc: Add /proc/net/rxrpc_peers to display the known remote endpoints

2016-03-07 Thread David Howells
Add /proc/net/rxrpc_peers to display the remote endpoint records that are resident in the peer cache. Signed-off-by: David Howells --- net/rxrpc/af_rxrpc.c|3 +++ net/rxrpc/peer-object.c | 32 2 files changed, 35 insertions(+)

[PATCH 06/11] rxrpc: Rename ar-local.c to local-event.c

2016-03-07 Thread David Howells
Rename ar-local.c to local-event.c. What's left in the file is the local endpoint event/packet handling code after the object management has been separated out. Signed-off-by: David Howells --- net/rxrpc/Makefile |2 - net/rxrpc/ar-internal.h | 10 ++--

[PATCH 04/11] rxrpc: Implement local endpoint cache

2016-03-07 Thread David Howells
Implement the local RxRPC endpoint cache. Only the primary cache is used. This is indexed on the following details: - Local network transport family - currently only AF_INET. - Local network transport type - currently only UDP. - Local network transport address. The hash isn't very big

Re: [PATCH] security: integrity: Remove select to deleted option PUBLIC_KEY_ALGO_RSA

2016-03-07 Thread David Howells
Andreas Ziegler wrote: > Commit d43de6c780a8 ("akcipher: Move the RSA DER encoding check to > the crypto layer") removed the Kconfig option PUBLIC_KEY_ALGO_RSA, > but forgot to remove a 'select' to this option in the definition of > INTEGRITY_ASYMMETRIC_KEYS. > > Let's

[PATCH v2 00/10] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates

2016-03-07 Thread Peter Ujfalusi
Hi, Changes since v1: - hwmod patch for eDMA (tpcc/tptc0/tptc1) removed as it is already in linux-next - mcasp hwmod changes: - all module have HWMOD_OPT_CLKS_NEEDED and no HWMOD_SWSUP_SIDLE (per Paul's comment) - mcasp1,2: add ahclkr as opt clock since those modules have fclk, ahclkx and

[PATCH v2 01/10] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm

2016-03-07 Thread Peter Ujfalusi
Move the sDMA xbar nodes under the L4 interconnect node. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/dra7.dtsi | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index

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

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 7:30 AM, Rob Gardner wrote: > On 03/07/2016 07:07 AM, Khalid Aziz wrote: >> >> On 03/05/2016 09:07 PM, David Miller wrote: >>> >>> From: Khalid Aziz >>> Date: Wed, 2 Mar 2016 13:39:37 -0700 >>> In this

Re: [PART1 RFC v2 02/10] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > > +static void svm_vcpu_blocking(struct kvm_vcpu *vcpu) > +{ > + avic_set_running(vcpu, false); > +} > + > +static void svm_vcpu_unblocking(struct kvm_vcpu *vcpu) > +{ > + avic_set_running(vcpu, true); > +} > + > static unsigned long

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Tejun Heo
Hello, On Mon, Mar 07, 2016 at 09:22:30AM +0100, Jan Kara wrote: > > > I don't know what MAYDAY is. I'm talking about a situation where > > > printing_work > > > work item is not processed (i.e. printing_work_func() is not called) until > > > current work item calls schedule_timeout_*(). That

Re: [RFC PATCH 0/2] percpu_counter: Enable switching to global counter

2016-03-07 Thread Waiman Long
On 03/05/2016 01:34 AM, Dave Chinner wrote: On Fri, Mar 04, 2016 at 09:51:37PM -0500, Waiman Long wrote: This patchset allows the degeneration of per-cpu counters back to global counters when: 1) The number of CPUs in the system is large, hence a high cost for calling

Re: [PATCH v3 3/7] perf tools: Support multiple sort keys in a hierarchy level

2016-03-07 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 07, 2016 at 11:35:04PM +0900, Namhyung Kim escreveu: > This implements having multiple sort keys in a single hierarchy level. > Originally only single sort key is supported for each level, but now > using the group syntax with '{ }', it can set more than one sort key in > one level.

Re: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 9:30 AM, Steven Rostedt wrote: > On Mon, 7 Mar 2016 18:24:12 +0100 (CET) > Jiri Kosina wrote: > >> > So, if Clang is producing wrong X86 code here, is it possible to turn >> > interrupts on/off manually? But, hmm that affects other

Re: [PATCH v2 07/10] x86/entry: Vastly simplify SYSENTER TF handling

2016-03-07 Thread Andy Lutomirski
On Mon, Mar 7, 2016 at 9:17 AM, Brian Gerst wrote: > On Sun, Mar 6, 2016 at 12:52 AM, Andy Lutomirski wrote: >> Due to a blatant design error, SYSENTER doesn't clear TF. As a result, >> if a user does SYSENTER with TF set, we will single-step through the >>

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

2016-03-07 Thread Khalid Aziz
On 03/07/2016 10:35 AM, Dave Hansen wrote: On 03/02/2016 12:39 PM, Khalid Aziz wrote: +long enable_sparc_adi(unsigned long addr, unsigned long len) +{ + unsigned long end, pagemask; + int error; + struct vm_area_struct *vma, *vma2; + struct mm_struct *mm; + + if

[PATCH] MAINTAINERS: Add devicetree bindings to Input Drivers section

2016-03-07 Thread Andreas Färber
To avoid changes to input bindings not reaching linux-input reviewers add an appropriate file pattern to the MAINTAINERS entry. Reported-by: Heiko Stübner Signed-off-by: Andreas Färber --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v2 2/3] libnvdimm, pmem: adjust for section collisions with 'System RAM'

2016-03-07 Thread Dan Williams
On Mon, Mar 7, 2016 at 10:58 AM, Toshi Kani wrote: > On Mon, 2016-03-07 at 09:18 -0800, Dan Williams wrote: >> On Mon, Mar 7, 2016 at 9:56 AM, Toshi Kani wrote: >> > On Fri, 2016-03-04 at 18:23 -0800, Dan Williams wrote: >> > > On Fri, Mar 4, 2016 at 6:48

Re: SCSI sr driver: parallel writes to optical serialized which hurts performance (sr_mutex)

2016-03-07 Thread Thomas Schmitt
Hi, i wrote: > > Given the old reports of Otto Meta about possible race conditions > > with drives at the same IDE controller, and the rareness of IDE > > attached drives nowadays, i propose to keep the global sr_mutex lock > > for IDE attached drives. One Thousand Gnomes

Re: 4.5.0-rc6: kernel BUG at ../mm/memory.c:1879

2016-03-07 Thread Matwey V. Kornilov
2016-03-07 16:03 GMT+03:00 Russell King - ARM Linux : > On Mon, Mar 07, 2016 at 01:51:40PM +0100, Vlastimil Babka wrote: >> [+CC ARM, module maintainers/lists] >> >> On 03/07/2016 12:14 PM, Matwey V. Kornilov wrote: >> > >> >Hello, >> > >> >I see the following when try to

Re: [PATCH] bus: simple-pm-bus: Use ARCH_RENESAS

2016-03-07 Thread Geert Uytterhoeven
On Fri, Mar 4, 2016 at 6:20 AM, Simon Horman wrote: > On Thu, Mar 03, 2016 at 09:31:49AM +0100, Geert Uytterhoeven wrote: >> On Thu, Mar 3, 2016 at 2:39 AM, Simon Horman >> wrote: >> > Make use of ARCH_RENESAS in place of ARCH_SHMOBILE. >> > >> >

[PATCH 8/9] KVM: MMU: simplify is_last_gpte

2016-03-07 Thread Paolo Bonzini
Branch-free code is fun and everybody knows how much Avi loves it, but is_last_gpte takes it a bit to the extreme. Since the code is simply doing a range check, like (level == 1 || ((gpte & PT_PAGE_SIZE_MASK) && level < N) we can make it branch-free without storing the entire

Re: [PATCH 0/2] [media] exynos4-is: Trivial fixes for DT port/endpoint parse logic

2016-03-07 Thread Javier Martinez Canillas
Hello Sylwester, On 03/07/2016 06:24 AM, Sylwester Nawrocki wrote: > Hi Javier, Krzysztof, > > On 03/05/2016 05:35 AM, Krzysztof Kozlowski wrote: >> 2016-03-05 5:20 GMT+09:00 Javier Martinez Canillas : Hello, This series have two trivial fixes for issues

[PATCH v2 2/2] iio:adc:at91-sama5d2: add support for signed conversion

2016-03-07 Thread Ludovic Desroches
The at91-sama5d2 ADC controller can achieve unsigned and signed conversions. For each channel, a signed and an unsigned variant are created. Sign mode is a global configuration, it is not tied to a specific channel. For this reason, the controller has to be configured upon conversion request.

RE: [PATCH 1/2] bnx2x:Fix error handling for the function bnx2x_set_mutl_gpio

2016-03-07 Thread Ariel Elior
> -Original Message- > From: Nicholas Krause [mailto:xerofo...@gmail.com] > Sent: Monday, March 07, 2016 4:05 AM > To: Ariel Elior > Cc: netdev ; linux-kernel > > Subject: [PATCH 1/2] bnx2x:Fix error handling

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Vinod Koul
On Mon, Mar 07, 2016 at 10:59:31AM +0100, Boris Brezillon wrote: > +/* Dedicated DMA parameter register layout */ > +#define SUN4I_DDMA_PARA_DST_DATA_BLK_SIZE(n) (((n) - 1) << 24) > +#define SUN4I_DDMA_PARA_DST_WAIT_CYCLES(n) (((n) - 1) << 16) > +#define SUN4I_DDMA_PARA_SRC_DATA_BLK_SIZE(n)

[PATCH v3 04/14] i2c-octeon: Support I2C_M_RECV_LEN

2016-03-07 Thread Jan Glauber
From: David Daney If I2C_M_RECV_LEN is set consider the length byte. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 19 +++ 1 file changed, 15 insertions(+), 4

[PATCH v3 11/14] i2c-octeon: Add workaround for broken irqs on CN3860

2016-03-07 Thread Jan Glauber
From: David Daney CN3860 does not interrupt the CPU when the i2c status changes. If we get a timeout, and see the status has in fact changed, we know we have this problem, and drop back to polling. Signed-off-by: David Daney Signed-off-by: Jan

[PATCH v3 05/14] i2c-octeon: Make adapter timeout tunable

2016-03-07 Thread Jan Glauber
From: Peter Swain Make the i2c adapter timeout a module parameter to allow upper-level target device drivers to retry with their own logic before their own timeouts abort operations. For example, at24 eeprom driver retries for 25ms when -EAGAIN indicates that an eeprom has

[PATCH v3 03/14] i2c-octeon: Cleanup resource allocation code

2016-03-07 Thread Jan Glauber
From: David Daney Use resource start and size directly. Signed-off-by: David Daney Signed-off-by: Jan Glauber --- drivers/i2c/busses/i2c-octeon.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git

Re: [PATCH] EDAC, sb_edac: Fixed logic error in sb_edac driver

2016-03-07 Thread Borislav Petkov
On Mon, Mar 07, 2016 at 03:30:45PM +0100, Hubert Chrzaniuk wrote: > Patch corrects a typo introduced previously. > As a result under some configurations dimms were not > correctly recognized. Problem affects only Xeon Phi architecture. > > Signed-off-by: Hubert Chrzaniuk

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

2016-03-07 Thread Rob Gardner
On 03/07/2016 07:07 AM, Khalid Aziz wrote: On 03/05/2016 09:07 PM, David Miller wrote: From: Khalid Aziz Date: Wed, 2 Mar 2016 13:39:37 -0700 In this first implementation I am enabling ADI for hugepages only since these pages are locked in memory and

Re: [PART1 RFC v2 03/10] svm: Introduce new AVIC VMCB registers

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > From: Suravee Suthikulpanit > > Introduce new AVIC VMCB registers. Also breakdown int_ctl register > into bit-field for ease of use. > > Signed-off-by: Suravee Suthikulpanit >

Re: [linux-sunxi] [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Boris Brezillon
Hi Priit, On Mon, 07 Mar 2016 17:30:41 +0200 Priit Laes wrote: > On Mon, 2016-03-07 at 10:59 +0100, Boris Brezillon wrote: > > Some drivers might need to tweak the block size and wait cycles > > values > > to get better performances. > > Create and export the

Re: [PART1 RFC v2 07/10] svm: Add VMEXIT handlers for AVIC

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > +#define SVM_EXIT_AVIC_INCMP_IPI 0x401 > +#define SVM_EXIT_AVIC_NOACCEL 0x402 > > +enum avic_incmp_ipi_err_code { > + AVIC_INCMP_IPI_ERR_INVALID_INT_TYPE, > + AVIC_INCMP_IPI_ERR_TARGET_NOT_RUN, > + AVIC_INCMP_IPI_ERR_INV_TARGET, >

[PATCH] mm, oom: protect !costly allocations some more (was: Re: [PATCH 0/3] OOM detection rework v4)

2016-03-07 Thread Michal Hocko
On Mon 29-02-16 22:02:13, Michal Hocko wrote: > Andrew, > could you queue this one as well, please? This is more a band aid than a > real solution which I will be working on as soon as I am able to > reproduce the issue but the patch should help to some degree at least. Joonsoo wasn't very happy

[PATCH 09/16] mtd: nand: sunxi: let the NAND controller control the CE line

2016-03-07 Thread Boris Brezillon
We don't need to manually toggle the CE line since the controller handles it for us. Moreover, keeping the CE line low when interacting with a DDR NAND can be problematic (data loss in some corner cases). Signed-off-by: Boris Brezillon ---

Re: [PATCH] EDAC, sb_edac: Fixed logic error in sb_edac driver

2016-03-07 Thread Aristeu Rozanski
On Mon, Mar 07, 2016 at 03:30:45PM +0100, Hubert Chrzaniuk wrote: > Patch corrects a typo introduced previously. > As a result under some configurations dimms were not > correctly recognized. Problem affects only Xeon Phi architecture. > > Signed-off-by: Hubert Chrzaniuk

[PATCH 16/16] mtd: nand: sunxi: poll for events instead of using interrupts

2016-03-07 Thread Boris Brezillon
Some NAND operations are so fast that it doesn't make any sense to use interrupt based waits (the scheduling overhead is not worth it). Rename sunxi_nfc_wait_int() into sunxi_nfc_wait_events() and add a parameter to specify whether polling should be used or not. Note that all sunxi_nfc_wait_int()

[PATCH 14/16] mtd: nand: sunxi: fix ->dev_ready() implementation

2016-03-07 Thread Boris Brezillon
->dev_ready() is not supposed to wait for busy to ready solution (this is the role of ->waitfunc()). Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mtd/nand/sunxi_nand.c

[PATCH 3/3] net: macb: Address checkpatch 'check' suggestions

2016-03-07 Thread Moritz Fischer
This commit deals with a bunch of checkpatch suggestions that without changing behavior make checkpatch happier. Signed-off-by: Moritz Fischer --- drivers/net/ethernet/cadence/macb.c | 46 +++-- 1 file changed, 24 insertions(+), 22

Re: Linux 4.4.4 [regression]

2016-03-07 Thread Linus Torvalds
On Mon, Mar 7, 2016 at 6:20 AM, Jörg-Volker Peetz wrote: > > This same problem with X does happen in 4.5-rc7. And removing the line > introduced by patch b36e52c44ce6728824546d8b5f05b844cede96f1 makes X go again > on > my laptop. Ok, so that's

[PATCH 11/16] mtd: nand: sunxi: fix NFC_CTL setting

2016-03-07 Thread Boris Brezillon
NFC_PAGE_SHIFT() already takes the real page_shift value and subtract 10 to it. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sunxi_nand.c

[PATCH 12/16] mtd: nand: sunxi: disable clks on device removal

2016-03-07 Thread Boris Brezillon
mod and ahb clocks are not disabled when the NAND controller device is removed. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/sunxi_nand.c

Re: [PATCH] ACPI / button: Avoid using broken _LID on Surface tablet

2016-03-07 Thread Bastien Nocera
On Fri, 2016-03-04 at 03:37 +, Zheng, Lv wrote: > > > I'm not happy about the "fix" for this problem either, but blaming > > user-space for this is harsh, given the API exported by the kernel > > and > > how pretty much every laptop worked. > > > [Lv Zheng]  > It worked for so many years on

[PATCH 13/16] mtd: nand: enable ECC pipelining

2016-03-07 Thread Boris Brezillon
When the NAND controller operates in DMA mode it can pipeline ECC operations which improves the throughput. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 10/16] mtd: nand: sunxi: fix the NFC_ECC_ERR_CNT() macro

2016-03-07 Thread Boris Brezillon
NFC_ECC_ERR_CNT() is not taking into account the case when the NAND chip contains more than 4 ECC blocks (NANDs with 4kB+ pages). Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH V4 2/4] net-next: mediatek: add support for MT7623 ethernet

2016-03-07 Thread David Miller
From: John Crispin Date: Mon, 7 Mar 2016 09:56:35 +0100 > +static int mtk_mdio_busy_wait(struct mtk_eth *eth) > +{ > + unsigned long t_start = jiffies; > + > + while (1) { > + if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) > +

Re: [PATCH 2/3] pci: move pci-bridge.h out of asm-generic

2016-03-07 Thread Bjorn Helgaas
[+cc Arnd] On Sun, Mar 06, 2016 at 04:17:54PM +0100, Christoph Hellwig wrote: > This isn't an asm-generic header, but something used both by common code > and architectures. I did something similar with

[PATCH v5 0/4] make sigaltstack() compatible with swapcontext()

2016-03-07 Thread Stas Sergeev
The following patches make it possible to use swapcontext() in a sighandler that works on sigaltstack. The approach is inspired by Andy Lutomirski's suggestion that sigaltstack should disarm itself after saving into uc_stack: https://lkml.org/lkml/2016/2/1/594 I add the SS_AUTODISARM flag that

RE: Linux 4.4.4 [regression]

2016-03-07 Thread Deucher, Alexander
> -Original Message- > From: linus...@gmail.com [mailto:linus...@gmail.com] On Behalf Of Linus > Torvalds > Sent: Monday, March 07, 2016 11:21 AM > To: Jörg-Volker Peetz; Dave Airlie; DRI mailing list > Cc: Greg KH; Linux Kernel Mailing List; Andrew Morton; stable; l...@lwn.net; > Jiri

Re: [PATCH 2/3] net: macb: Fix more coding style issues

2016-03-07 Thread Joe Perches
On Mon, 2016-03-07 at 08:17 -0800, Moritz Fischer wrote: > This commit takes care of the coding style warnings > that are mostly due to a different comment style and > lines over 80 chars. [] > diff --git a/drivers/net/ethernet/cadence/macb.c > b/drivers/net/ethernet/cadence/macb.c [] > @@ -127,8

Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk

2016-03-07 Thread David Miller
From: sunil.kovv...@gmail.com Date: Mon, 7 Mar 2016 13:05:56 +0530 > From: Sunil Goutham > > Instead of calling get_page() for every receive buffer carved out > of page, set page's usage count at the end, to reduce no of atomic > calls. > > Signed-off-by: Sunil Goutham

[PATCH 15/16] mtd: nand: sunxi: make use of readl_poll_timeout()

2016-03-07 Thread Boris Brezillon
Replace open coded polling loops by readl_poll_timeout() calls. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git

Re: bluetooth: use-after-free in vhci_send_frame

2016-03-07 Thread Jiri Slaby
On 03/04/2016, 10:15 AM, Dmitry Vyukov wrote: > On Fri, Jan 29, 2016 at 9:50 AM, Dmitry Vyukov wrote: >> Hello, >> >> I've got the following use-after-free reports while running syzkaller >> fuzzer. Unfortunately no reproducer. But this happened when system was >> busy

Re: [PATCH 2/3] pci: move pci-bridge.h out of asm-generic

2016-03-07 Thread Christoph Hellwig
On Mon, Mar 07, 2016 at 10:35:29AM -0600, Bjorn Helgaas wrote: > I did something similar with > http://lkml.kernel.org/r/20160202193026.9258.7573.st...@bhelgaas-glaptop2.roam.corp.google.com > > The generic things in include/asm-generic/pci-bridge.h weren't really > bridge-related, so I moved

[PATCH 3/4] sigaltstack: implement SS_AUTODISARM flag

2016-03-07 Thread Stas Sergeev
This patch implements the SS_AUTODISARM flag that can be ORed with SS_ONSTACK when forming ss_flags. When this flag is set, sigaltstack will be disabled when entering the signal handler; more precisely, after saving sas to uc_stack. When leaving the signal handler, the sigaltstack is restored by

[PATCH 2/4] sigaltstack: preparations for adding new SS_xxx flags

2016-03-07 Thread Stas Sergeev
This patch adds SS_FLAG_BITS - the mask that splits sigaltstack mode values and bit-flags. Since there is no bit-flags yet, the mask is defined to 0. The flags are added by subsequent patches. With every new flag, the mask should have the appropriate bit cleared. This makes sure if some flag is

Re: [PART1 RFC v2 05/10] KVM: x86: Detect and Initialize AVIC support

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > @@ -162,6 +170,37 @@ struct vcpu_svm { > > /* cached guest cpuid flags for faster access */ > bool nrips_enabled : 1; > + > + struct page *avic_bk_page; > + void *in_kernel_lapic_regs; > +}; > + > +struct

[PATCH 4/4] selftests: Add test for sigaltstack(SS_ONSTACK | SS_AUTODISARM)

2016-03-07 Thread Stas Sergeev
sigaltstack needs to be disabled before the signal handler can safely use swapcontext(). This patch adds the SS_AUTODISARM flag. This flag disables the sigaltstack when entering the signal handler. When returning from signal handler, the sigaltstack is restored by uc_stack. CC: Shuah Khan

[PATCH 4/4] selftests: Add test for sigaltstack(SS_ONSTACK|SS_AUTODISARM)

2016-03-07 Thread Stas Sergeev
This patch adds the test case for SS_AUTODISARM flag. The test-case tries to set SS_AUTODISARM flag and checks if the nested signal corrupts the stack after swapcontext(). CC: Shuah Khan CC: linux-kernel@vger.kernel.org CC: linux-...@vger.kernel.org CC: Andy Lutomirski

Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk

2016-03-07 Thread Sunil Kovvuri
Hi David, >> you create a window of time during which the consumer >> can release the page and prematurely free it. Okay, but here the consumer i.e HW is notified only after page count is incremented. For example if you check 'nicvf_refill_rbdr' fn() only after receive buffer ring is refilled

Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk

2016-03-07 Thread David Miller
From: Sunil Kovvuri Date: Mon, 7 Mar 2016 22:28:39 +0530 > Hi David, > >>> you create a window of time during which the consumer >>> can release the page and prematurely free it. > Okay, but here the consumer i.e HW is notified only after page count > is incremented. >

Re: [PATCH v2 2/3] libnvdimm, pmem: adjust for section collisions with 'System RAM'

2016-03-07 Thread Toshi Kani
On Fri, 2016-03-04 at 18:23 -0800, Dan Williams wrote: > On Fri, Mar 4, 2016 at 6:48 PM, Toshi Kani wrote: > > On Thu, 2016-03-03 at 13:53 -0800, Dan Williams wrote: > > > On a platform where 'Persistent Memory' and 'System RAM' are mixed > > > within a given sparsemem

Re: [PATCH 2/4] nmi_backtrace: generate one-line reports for idle cpus

2016-03-07 Thread Chris Metcalf
On 03/07/2016 03:26 AM, Daniel Thompson wrote: Chris Metcalf wrote: +static DEFINE_PER_CPU(bool, cpu_idling); + +/* Was the cpu was in the low-level idle code when interrupted? */ +bool in_cpu_idle(void) +{ +return this_cpu_read(cpu_idling); I think we continue to need the code to identify

Re: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning

2016-03-07 Thread Steven Rostedt
On Mon, 7 Mar 2016 11:41:37 -0500 (EST) Alan Stern wrote: > It's hard to call this a compiler bug, but perhaps it is -- I don't > know how programmers are supposed to tell CLANG that a subroutine > modifies the Interrupt Flag in a way that the compiler shouldn't mess

Re: [PATCH v2 2/3] libnvdimm, pmem: adjust for section collisions with 'System RAM'

2016-03-07 Thread Dan Williams
On Mon, Mar 7, 2016 at 9:56 AM, Toshi Kani wrote: > On Fri, 2016-03-04 at 18:23 -0800, Dan Williams wrote: >> On Fri, Mar 4, 2016 at 6:48 PM, Toshi Kani wrote: [..] >> As far as I can see >> all we do is ask firmware implementations to respect Linux

Re: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning

2016-03-07 Thread Steven Rostedt
On Mon, 7 Mar 2016 18:24:12 +0100 (CET) Jiri Kosina wrote: > > So, if Clang is producing wrong X86 code here, is it possible to turn > > interrupts on/off manually? But, hmm that affects other places as well > > in the Linux sources, so. > > This issue needs to be handled

RE: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning

2016-03-07 Thread David Laight
From: Sedat Dilek ... > Did someone look at the next/follow-ups in this thread? > For example: D6629 "x86: Emit LAHF/SAHF instead of PUSHF/POPF" [2]? LAHF and SAHF come with the following note: This instruction executes as described above in compatibility mode and legacy mode. It is valid in

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

2016-03-07 Thread Dave Hansen
On 03/02/2016 12:39 PM, Khalid Aziz wrote: > +long enable_sparc_adi(unsigned long addr, unsigned long len) > +{ > + unsigned long end, pagemask; > + int error; > + struct vm_area_struct *vma, *vma2; > + struct mm_struct *mm; > + > + if (!ADI_CAPABLE()) > + return

Re: [PATCH 2/4] nmi_backtrace: generate one-line reports for idle cpus

2016-03-07 Thread Chris Metcalf
On 03/07/2016 04:48 AM, Peter Zijlstra wrote: On Tue, Mar 01, 2016 at 11:01:42AM -0500, Chris Metcalf wrote: +++ b/kernel/sched/idle.c @@ -52,15 +52,25 @@ static int __init cpu_idle_nopoll_setup(char *__unused) __setup("hlt", cpu_idle_nopoll_setup); #endif +static DEFINE_PER_CPU(bool,

[PATCH v2] powerpc: optimise csum_partial() call when len is constant

2016-03-07 Thread Christophe Leroy
csum_partial is often called for small fixed length packets for which it is suboptimal to use the generic csum_partial() function. For instance, in my configuration, I got: * One place calling it with constant len 4 * Seven places calling it with constant len 8 * Three places calling it with

Re: [PATCH 1/2] drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path

2016-03-07 Thread Heiko Stübner
Am Montag, 7. März 2016, 09:36:07 schrieb Doug Anderson: > Hi, > > On Mon, Mar 7, 2016 at 12:37 AM, Mark yao wrote: > > On 2016年03月05日 20:39, Russell King - ARM Linux wrote: > >> On Sat, Mar 05, 2016 at 12:11:16PM +, John Keeping wrote: > >>> On Fri, Mar 04, 2016 at

Re: [PATCH 1/3] frv: remove stray pci_{alloc,free}_consistent declaration

2016-03-07 Thread Bjorn Helgaas
[+cc David M, David H] On Sun, Mar 06, 2016 at 04:17:53PM +0100, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig Applied with acks from David M & David H to pci/misc for v4.6, thanks! > --- > arch/frv/include/asm/pci.h | 6 -- > 1 file changed, 6 deletions(-) > >

Re: [PATCH v3 5/7] perf report: Use hierarchy hpp list on stdio

2016-03-07 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 07, 2016 at 11:35:06PM +0900, Namhyung Kim escreveu: > Now hpp formats are linked using perf_hpp_list_node when hierarchy is > enabled. Use this info to print entries with multiple sort keys in a > single hierarchy properly. > > For example, the below example shows using 4 sort keys

RE: Linux 4.4.4 [regression]

2016-03-07 Thread Deucher, Alexander
> -Original Message- > From: Jörg-Volker Peetz [mailto:jvpe...@web.de] > Sent: Monday, March 07, 2016 12:40 PM > To: Deucher, Alexander; 'Linus Torvalds'; Dave Airlie; DRI mailing list > Cc: Greg KH; Linux Kernel Mailing List; stable; l...@lwn.net; Andrew Morton; > Jiri Slaby > Subject:

RE: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning

2016-03-07 Thread Alan Stern
On Mon, 7 Mar 2016, David Laight wrote: > From: Sedat Dilek > ... > > Did someone look at the next/follow-ups in this thread? > > For example: D6629 "x86: Emit LAHF/SAHF instead of PUSHF/POPF" [2]? > > LAHF and SAHF come with the following note: > > This instruction executes as described above

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

2016-03-07 Thread Dave Hansen
On 03/07/2016 09:53 AM, Andy Lutomirski wrote: > Also, what am I missing? Tying these tags to the physical page seems > like a poor design to me. This seems really awkward to use. Yeah, can you describe the structures that store these things? Surely the hardware has some kind of lookup tables

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

2016-03-07 Thread Andi Kleen
On Mon, Mar 07, 2016 at 11:08:42AM +0100, Jiri Olsa wrote: > On Thu, Mar 03, 2016 at 03:57:31PM -0800, Andi Kleen wrote: > > SNIP > > > > > % perf stat -x, --metric-only -a -I 1000 > > 1.001381652,frontend cycles idle,insn per cycle,stalled cycles per > > insn,branch-misses of all

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

2016-03-07 Thread Khalid Aziz
On 03/07/2016 11:09 AM, Rob Gardner wrote: On 03/07/2016 10:04 AM, Khalid Aziz wrote: On 03/07/2016 09:56 AM, David Miller wrote: From: Khalid Aziz Date: Mon, 7 Mar 2016 08:07:53 -0700 PR_GET_SPARC_ADICAPS Put this into a new ELF auxiliary vector entry via

Re: Linux 4.4.4 [regression]

2016-03-07 Thread Jörg-Volker Peetz
Deucher, Alexander wrote on 03/07/16 17:44: >> -Original Message- >> From: linus...@gmail.com [mailto:linus...@gmail.com] On Behalf Of Linus >> Torvalds >> Sent: Monday, March 07, 2016 11:21 AM >> To: Jörg-Volker Peetz; Dave Airlie; DRI mailing list >> Cc: Greg KH; Linux Kernel Mailing

[PATCH] Input: Do not add SYN_REPORT in between a single packet data

2016-03-07 Thread Aniroop Mathur
As mentioned in documentation, SYN_REPORT should be used to separate two packets and should not be inserted in between a single packet as otherwise with multiple SYN_REPORT in a single packet, input reader would not be able to know when the packet ended really. Documentation snippet: *

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

2016-03-07 Thread Dave Hansen
On 03/07/2016 08:06 AM, Khalid Aziz wrote: > Top 4-bits of sparc64 virtual address are used for version tag only when > a process has its PSTATE.mcde bit set and it is accessing a memory > region that has ADI enabled on it (TTE.mcd set) and a version tag was > set on the virtual address being

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