[PATCH 01/10] MIPS: CPS: set Status.BEV bit during early boot

2015-09-22 Thread Paul Burton
Set the Status.BEV bit throughout the early startup of a secondary core such that if an exception occurs the core branches to one of the exception vector entries from cps-vec.S, rather than branching to whatever is set in EBase. Signed-off-by: Paul Burton --- arch/mips/kernel/cps-vec.S | 2 +-

[PATCH 3.19.y-ckt 059/102] libfc: Fix fc_exch_recv_req() error path

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit f6979adeaab578f8ca14fdd32b06ddee0d9d3314 upstream. Due to patch "libfc: Do not invoke the response handler after fc_exch_done()" (commit ID 7030fd62) the lport_

[PATCH 05/10] MIPS: CPS: skip Config1 presence check

2015-09-22 Thread Paul Burton
The Config1 register is architecturally defined as required, and is thus present in all systems which may make use of cps-vec.S. Skip the check for its presence via the Config.M bit. Signed-off-by: Paul Burton --- arch/mips/kernel/cps-vec.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(

[PATCH 09/10] MIPS: CM: make use of mips_cm_{lock,unlock}_other

2015-09-22 Thread Paul Burton
Document that CPC core-other accesses must take place within the bounds of the CM lock, and begin using the CM lock functions where we access the GCRs of other cores. This is required because with CM3 the CPC began using GCR_CL_OTHER instead of CPC_CL_OTHER. Signed-off-by: Paul Burton --- arch/

[PATCH 04/10] MIPS: CPS: read CM GCR base from cop0

2015-09-22 Thread Paul Burton
Rather than patching the start of mips_cps_core_entry to provide the base address of the CM GCRs, simply read that base address from the cop0 CMGCRBase register, converting from the physical address to an uncached virtual address. Signed-off-by: Paul Burton --- arch/mips/kernel/cps-vec.S | 12 +

[PATCH 07/10] MIPS: CM: fix GCR_Cx_CONFIG PVPE mask

2015-09-22 Thread Paul Burton
The PVPE (or PVP in >= CM3) field is 10 bits wide, but the mask previously only covered the bottom 9 bits. Extend the mask to cover all 10 bits of the field. Signed-off-by: Paul Burton --- arch/mips/include/asm/mips-cm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m

[PATCH 06/10] MIPS: CPS: warn if a core doesn't start

2015-09-22 Thread Paul Burton
When debugging core bringup it is useful to see the state of the CPC sequencer, so output that value if the core hasn't started within a reasonable amount of time (1 second). This avoids simply appearing to the user to hang if a secondary core fails to start. Signed-off-by: Paul Burton --- arch

[PATCH 08/10] MIPS: CM: introduce core-other locking functions

2015-09-22 Thread Paul Burton
Introduce mips_cm_lock_other & mips_cm_unlock_other, mirroring the existing CPC equivalents, in order to lock access from the current core to another via the core-other GCR region. This hasn't been required in the past but with CM3 the CPC starts using GCR_CL_OTHER rather than CPC_CL_OTHER and this

[PATCH 03/10] MIPS: CPS: early debug using an ns16550-compatible UART

2015-09-22 Thread Paul Burton
Provide support for outputting early debug information, in the form of various register values should an exception occur, during the early bringup of secondary cores. This code requires an ns16550-compatible UART accessible from the secondary core, and is written in assembly due to the environment

[PATCH 3.19.y-ckt 058/102] libiscsi: Fix host busy blocking during connection teardown

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: John Soni Jose commit 660d0831d1494a6837b2f810d08b5be092c1f31d upstream. In case of hw iscsi offload, an host can have N-number of active connections. There can be IO's running on som

[PATCH 10/10] MIPS: CM,CPC: ensure core-other GCRs reflect the correct core

2015-09-22 Thread Paul Burton
Ensure the update to which core the core-other GCR regions reflect has taken place before any core-other GCRs are accessed by placing a memory barrier (sync instruction) between the write to the core-other registers and any such GCR accesses. Signed-off-by: Paul Burton --- arch/mips/kernel/mips

[PATCH 3.19.y-ckt 055/102] dm thin metadata: delete btrees when releasing metadata snapshot

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Joe Thornber commit 7f518ad0a212e2a6fd68630e176af1de395070a7 upstream. The device details and mapping trees were just being decremented before. Now btree_del() is called to do a deep

[PATCH 3.19.y-ckt 053/102] drm/dp/mst: Remove port after removing connector.

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Maarten Lankhorst commit 4772ff03df8094fd99d28de5fcf5df3a3e9c68bb upstream. The port is removed synchronously, but the connector delayed. This causes a use after free which can cause

[PATCH 3.19.y-ckt 057/102] drm/radeon: add new OLAND pci id

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit e037239e5e7b61007763984aa35a8329596d8c88 upstream. Signed-off-by: Alex Deucher Signed-off-by: Kamal Mostafa --- include/drm/drm_pciids.h | 1 + 1 file changed,

[PATCH 3.19.y-ckt 056/102] dm btree: add ref counting ops for the leaves of top level btrees

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Joe Thornber commit b0dc3c8bc157c60b1d470163882be8c13e1950af upstream. When using nested btrees, the top leaves of the top levels contain block addresses for the root of the next tree

[PATCH 3.19.y-ckt 048/102] ocfs2: fix BUG in ocfs2_downconvert_thread_do_work()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Joseph Qi commit 209f7512d007980fd111a74a064d70a3656079cf upstream. The "BUG_ON(list_empty(&osb->blocked_lock_list))" in ocfs2_downconvert_thread_do_work can be triggered in the follo

Re: First kernel patch (optimization)

2015-09-22 Thread Eric Curtin
On 22 September 2015 at 18:38, Linus Torvalds wrote: > On Tue, Sep 15, 2015 at 12:53 PM, Eric Curtin wrote: >> My first kernel patch, hope I did everything correctly! Instead of calling >> strlen on every iteration of the for loop, just call it once instead and >> store in a variable. > > Heh.

[PATCH 3.19.y-ckt 051/102] x86/xen: build "Xen PV" APIC driver for domU as well

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: "Jason A. Donenfeld" commit fc5fee86bdd3d720e2d1d324e4fae0c35845fa63 upstream. It turns out that a PV domU also requires the "Xen PV" APIC driver. Otherwise, the flat driver is used a

[PATCH 3.19.y-ckt 052/102] cpuset: use trialcs->mems_allowed as a temp variable

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Alban Crequy commit 24ee3cf89bef04e8bc23788aca4e029a3f0f06d9 upstream. The comment says it's using trialcs->mems_allowed as a temp variable but it didn't match the code. Change the co

[PATCH 3.19.y-ckt 050/102] KVM: x86: Use adjustment in guest cycles when handling MSR_IA32_TSC_ADJUST

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Haozhong Zhang commit d7add05458084a5e3d65925764a02ca9c8202c1e upstream. When kvm_set_msr_common() handles a guest's write to MSR_IA32_TSC_ADJUST, it will calcuate an adjustment based

[PATCH 3.19.y-ckt 046/102] MIPS: Make set_pte() SMP safe.

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: David Daney commit 46011e6ea39235e4aca656673c500eac81a07a17 upstream. On MIPS the GLOBAL bit of the PTE must have the same value in any aligned pair of PTEs. These pairs of PTEs are

[PATCH 3.19.y-ckt 004/102] x86/ldt: Correct FPU emulation access to LDT

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Juergen Gross commit 4809146b86c3d41ce588fdb767d021e2a80600dd upstream. Commit 37868fe113ff ("x86/ldt: Make modify_ldt synchronous") introduced a new struct ldt_struct anchored at mm-

[PATCH 3.19.y-ckt 054/102] localmodconfig: Use Kbuild files too

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit c0ddc8c745b7f89c50385fd7aa03c78dc543fa7a upstream. In kbuild it is allowed to define objects in files named "Makefile" and "Kbuild". Currently localmodconfig

[PATCH 3.19.y-ckt 025/102] regmap: regcache-rbtree: Clean new present bits on present bitmap resize

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 8ef9724bf9718af81cfc5132253372f79c71b7e2 upstream. When inserting a new register into a block, the present bit map size is increased using krealloc. krealloc does

[PATCH 3.19.y-ckt 045/102] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko commit ecf5fc6e9654cd7a268c782a523f072b2f1959f9 upstream. Nikolay has reported a hang when a memcg reclaim got stuck with the following backtrace: PID: 18308 TASK:

[PATCH 3.19.y-ckt 003/102] x86/ldt: Correct LDT access in single stepping logic

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Juergen Gross commit 136d9d83c07c5e30ac49fc83b27e8c4842f108fc upstream. Commit 37868fe113ff ("x86/ldt: Make modify_ldt synchronous") introduced a new struct ldt_struct anchored at mm-

[PATCH 3.19.y-ckt 043/102] drm/dp-mst: Remove debug WARN_ON

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Daniel Vetter commit 42639ba554655c280ae6cb72df0522b1201f2961 upstream. Apparently been in there since forever and fairly easy to hit when hotplugging really fast. I can do that since

[PATCH 3.19.y-ckt 044/102] ALSA: fireworks/firewire-lib: add support for recent firmware quirk

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Takashi Sakamoto commit 18f5ed365d3f188a91149d528c853000330a4a58 upstream. Fireworks uses TSB43CB43(IceLynx-Micro) as its IEC 61883-1/6 interface. This chip includes ARM7 core, and lo

Re: [RFC v2 02/18] kthread: Add create_kthread_worker*()

2015-09-22 Thread Tejun Heo
Hello, Petr. On Mon, Sep 21, 2015 at 03:03:43PM +0200, Petr Mladek wrote: > It enforces using kthread_worker_fn() for the main thread. But I doubt > that there are any plans to create any alternative. In fact, I think > that we do not want any alternative main thread because it would be > hard to

[PATCH 3.19.y-ckt 039/102] drivers/usb: Delete XHCI command timer if necessary

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Gavin Shan commit ffe5adcb7661d94e952d6b5ed7f493cb4ef0c7bc upstream. When xhci_mem_cleanup() is called, it's possible that the command timer isn't initialized and scheduled. For those

[PATCH 3.19.y-ckt 040/102] staging: vt6655: vnt_bss_info_changed check conf->beacon_rate is not NULL

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit 1f17124006b65482d9084c01e252b59dbca8db8f upstream. conf->beacon_rate can be NULL on association. So check conf->beacon_rate BSS_CHANGED_BEACON_INFO needs to

[PATCH 3.19.y-ckt 035/102] rtlwifi: rtl8723be: Add module parameter for MSI interrupts

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit 741e3b9902d11585e18bfc7f8d47e913616bb070 upstream. The driver code allows for the disabling of MSI interrupts; however the module_parm line was missed and the opti

[PATCH 3.19.y-ckt 041/102] dm: fix dm_merge_bvec regression on 32 bit systems

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Mike Snitzer commit bd4aaf8f9b85d6b2df3231fd62b219ebb75d3568 upstream. A DM regression on 32 bit systems was reported against v4.2-rc3 here: https://lkml.org/lkml/2015/7/29/401 Fix t

[PATCH 3.19.y-ckt 037/102] usb: udc: core: add device_del() call to error pathway

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit c93e64e91248becd0edb8f01723dff9da890e2ab upstream. This patch fixes a bug in the error pathway of usb_add_gadget_udc_release() in udc-core.c. If the udc registratio

[PATCH 3.19.y-ckt 038/102] xhci: fix off by one error in TRB DMA address boundary check

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 7895086afde2a05fa24a0e410d8e6b75ca7c8fdd upstream. We need to check that a TRB is part of the current segment before calculating its DMA address. Previously a ri

[PATCH 3.19.y-ckt 026/102] target/iscsi: Fix double free of a TUR followed by a solicited NOPOUT

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Alexei Potashnik commit 9547308bda296b6f69876c840a0291fcfbeddbb8 upstream. Make sure all non-READ SCSI commands get targ_xfer_tag initialized to 0x, not just WRITEs. Double-f

Re: [PATCH v4 2/2] iio: mcp4531: Driver for Microchip digital potentiometers

2015-09-22 Thread Jonathan Cameron
On 22 September 2015 16:36:49 BST, Peter Rosin wrote: >From: Peter Rosin > >Add support for Microchip digital potentiometers and rheostats > MCP4531, MCP4532, MCP4551, MCP4552 > MCP4631, MCP4632, MCP4651, MCP4652 > >These are either single (45xx) or dual (46xx) wipers with either >1

[PATCH 3.19.y-ckt 036/102] MIPS: Flush RPS on kernel entry with EVA

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 3aff47c062b944a5e1f9af56a37a23f5295628fc upstream. When EVA is enabled, flush the Return Prediction Stack (RPS) present on some MIPS cores on entry to the kernel fr

Re: [PATCH v7 1/6] arm: add msi.h to Kbuild

2015-09-22 Thread Marc Zyngier
On Mon, 21 Sep 2015 10:13:02 +0800 Ley Foon Tan wrote: > Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. > This to fix compilation error: > "include/linux/msi.h:123:21: fatal error: asm/msi.h: > No such file or directory" > > Signed-off-by: Ley Foon Tan Acked-by: Marc Zyngi

[PATCH 3.19.y-ckt 033/102] MIPS: show_stack: Fix stack trace with EVA

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 1e77863a51698c4319587df34171bd823691a66a upstream. The show_stack() function deals exclusively with kernel contexts, but if it gets called in user context with EVA

[PATCH 3.19.y-ckt 034/102] MIPS: Export get_c0_perfcount_int()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 0cb0985f57783c2f3c6c8ffe7e7665e80c56bd92 upstream. get_c0_perfcount_int is tested from oprofile code. If oprofile is compiled as module, get_c0_perfcount_int need

[PATCH] MIPS: always use r4k_wait_irqoff for MIPSr6

2015-09-22 Thread Paul Burton
Prior to release 6 of the MIPS architecture it has been implementation dependent whether masked interrupts cause a wait instruction to return, so the kernel has effectively had to maintain a whitelist of cores upon which it is safe to use the r4k_wait_irqoff cpu_wait implementation. With MIPSr6 thi

[PATCH 3.19.y-ckt 027/102] rbd: fix copyup completion race

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 2761713d35e370fd640b5781109f753066b746c4 upstream. For write/discard obj_requests that involved a copyup method call, the opcode of the first op is CEPH_OSD_OP_CAL

[PATCH 3.19.y-ckt 018/102] crypto: ixp4xx - Remove bogus BUG_ON on scattered dst buffer

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit f898c522f0e9ac9f3177d0762b76e2ab2d2cf9c0 upstream. This patch removes a bogus BUG_ON in the ablkcipher path that triggers when the destination buffer is different fr

[PATCH 3.19.y-ckt 024/102] USB: sierra: add 1199:68AB device ID

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Dirk Behme commit 74472233233f577eaa0ca6d6e17d9017b6e53150 upstream. Add support for the Sierra Wireless AR8550 device with USB descriptor 0x1199, 0x68AB. It is common with MC879x mo

[PATCH 3.19.y-ckt 031/102] MIPS: Malta: Don't reinitialise RTC

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 106eccb4d20f35ebc58ff2286c170d9e79c5ff68 upstream. On Malta, since commit a87ea88d8f6c ("MIPS: Malta: initialise the RTC at boot"), the RTC is reinitialised and for

[PATCH 3.19.y-ckt 029/102] target: REPORT LUNS should return LUN 0 even for dynamic ACLs

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Roland Dreier commit 9c395170a559d3b23dad100b01fc4a89d661c698 upstream. If an initiator doesn't have any real LUNs assigned, we should report LUN 0 and a LUN list length of 1. Some v

[PATCH 3.19.y-ckt 032/102] MIPS: do_mcheck: Fix kernel code dump with EVA

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 55c723e181ccec30fb5c672397fe69ec35967d97 upstream. If a machine check exception is raised in kernel mode, user context, with EVA enabled, then the do_mcheck handler

[PATCH 3.19.y-ckt 030/102] MIPS: Fix sched_getaffinity with MT FPAFF enabled

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 1d62d737555e1378eb62a8bba26644f7d97139d2 upstream. p->thread.user_cpus_allowed is zero-initialized and is only filled on the first sched_setaffinity call. To avo

Re: [PATCH 05/11] mm: Introduce arch_pgd_init_late()

2015-09-22 Thread Linus Torvalds
On Tue, Sep 22, 2015 at 11:00 AM, Andy Lutomirski wrote: > > I really really hate the vmalloc fault thing. It seems to work, > rather to my surprise. It doesn't *deserve* to work, because of > things like the percpu TSS accesses in the entry code that happen > without a valid stack. The thing i

Re: [RFC v2 03/18] kthread: Add drain_kthread_worker()

2015-09-22 Thread Tejun Heo
On Mon, Sep 21, 2015 at 03:03:44PM +0200, Petr Mladek wrote: > flush_kthread_worker() returns when the currently queued works are proceed. ^ processed? > But some

Re: [PATCH v5 0/6] irqchip, gicv3: Updates and Cavium ThunderX errata workarounds

2015-09-22 Thread Will Deacon
On Tue, Sep 22, 2015 at 07:09:32PM +0100, Marc Zyngier wrote: > On Tue, 22 Sep 2015 17:57:01 +0100 > Marc Zyngier wrote: > > [Duh. Now with Will and Catalin on CC] > > > On Mon, 21 Sep 2015 22:58:33 +0200 > > Robert Richter wrote: > > > > > From: Robert Richter > > > > > > This patch series

[PATCH 3.19.y-ckt 022/102] usb: gadget: f_uac2: fix calculation of uac2->p_interval

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Chen commit c41b7767673cb76adeb2b5fde220209f717ea13c upstream. The p_interval should be less if the 'bInterval' at the descriptor is larger, eg, if 'bInterval' is 5 for HS, the

[PATCH 3.19.y-ckt 023/102] hwrng: core - correct error check of kthread_run call

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky commit 17fb874dee093139923af8ed36061faa92cc8e79 upstream. The kthread_run() function can return two different error values but the hwrng core only checks for -ENOME

[PATCH 3.19.y-ckt 016/102] usb: chipidea: ehci_init_driver is intended to call one time

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Chen commit 2f01a33bd26545c16fea7592697f7f15c416402b upstream. The ehci_init_driver is used to initialize hcd APIs for each ehci controller driver, it is designed to be called o

[PATCH 3.19.y-ckt 006/102] ipmi/powernv: Fix minor locking bug

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Alistair Popple commit ad1ed2a9dd4c435d6a3ce470211db9a8d107c3e0 upstream. If ipmi_powernv_recv(...) is called without a current message it prints a warning and returns. However it fai

[PATCH 2/3] irqchip: mips-gic: convert CPU numbers to VP IDs

2015-09-22 Thread Paul Burton
Make use of the mips_cm_vp_id function to convert from Linux CPU numbers to the VP IDs used by hardware, which are not identical in all systems. Without doing so we map interrupts to incorrect VP(E)s. Signed-off-by: Paul Burton --- drivers/irqchip/irq-mips-gic.c | 4 ++-- 1 file changed, 2 inse

[PATCH 0/3] MIPS GIC fixes

2015-09-22 Thread Paul Burton
This series fixes a couple of problems with the MIPS GIC support, impacting systems with the 64 bit CM3 and those with multithreading and non-contiguous numbering for VP(E)s across cores. Paul Burton (3): MIPS: CM: provide a function to map from CPU to VP ID irqchip: mips-gic: convert CPU numb

Re: [PATCH] arm64: Increase the max granular size

2015-09-22 Thread Will Deacon
On Tue, Sep 22, 2015 at 06:59:48PM +0100, Robert Richter wrote: > From: Tirumalesh Chalamarla > > Increase the standard cacheline size to avoid having locks in the same > cacheline. > > Cavium's ThunderX core implements cache lines of 128 byte size. With > current granulare size of 64 bytes (L1_

[PATCH 3/3] irqchip: mips-gic: fix pending & mask reads for MIPS64 with 32b GIC

2015-09-22 Thread Paul Burton
gic_handle_shared_int reads the GIC interrupt pending & mask registers directly into a bitmap, which is defined as an array of unsigned longs. The GIC pending registers may be 32 bits wide if the CM is older than CM3, regardless of the bit width of the CPU, but for MIPS64 kernels the unsigned longs

[PATCH 1/3] MIPS: CM: provide a function to map from CPU to VP ID

2015-09-22 Thread Paul Burton
The VP ID of a given CPU may not match up with the CPU number used by Linux. For example, if the width of the VP part of the VP ID is wider than log2(number of VPs per core) and the system has multiple cores then this will be the case. Alternatively, if a pre-r6 system implements the MT ASE with mu

[PATCH 3.19.y-ckt 017/102] crypto: qat - Fix invalid synchronization between register/unregister sym algs

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Tadeusz Struk commit 6f043b50da8e03bdcc5703fd37ea45bc6892432f upstream. The synchronization method used atomic was bogus. Use a proper synchronization with mutex. Signed-off-by: Tade

Re: [RFC v2 04/18] kthread: Add destroy_kthread_worker()

2015-09-22 Thread Tejun Heo
Hello, On Mon, Sep 21, 2015 at 03:03:45PM +0200, Petr Mladek wrote: ... > Note that flush() does not guarantee that the queue is empty. drain() > is more safe. It returns when the queue is really empty. Also it warns Maybe it'd be better to be a bit more specific. drain() is safer because it can

[PATCH 3.19.y-ckt 020/102] xen-blkfront: don't add indirect pages to list when !feature_persistent

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Bob Liu commit 7b0767502b5db11cb1f0daef2d01f6d71b1192dc upstream. We should consider info->feature_persistent when adding indirect page to list info->indirect_pages, else the BUG_ON()

[PATCH 3.19.y-ckt 019/102] mfd: arizona: Fix initialisation of the PM runtime

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Charles Keepax commit 72e43164fd472f6c2659c8313b87da962322dbcf upstream. The PM runtime core by default assumes a chip is suspended when runtime PM is enabled. Currently the arizona d

[PATCH 3.19.y-ckt 021/102] xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Bob Liu commit 53bc7dc004fecf39e0ba70f2f8d120a1444315d3 upstream. The BUG_ON() in purge_persistent_gnt() will be triggered when previous purge work haven't finished. There is a work_

[PATCH 3.19.y-ckt 013/102] USB: qcserial/option: make AT URCs work for Sierra Wireless MC7305/MC7355

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Reinhard Speyerer commit 653cdc13a340ad1cef29f1bab0d05d0771fa1d57 upstream. Tests with a Sierra Wireless MC7355 have shown that 1199:9041 devices also require the option_send_setup()

[PATCH 3.19.y-ckt 015/102] nfsd: Drop BUG_ON and ignore SECLABEL on absent filesystem

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Kinglong Mee commit c2227a39a078473115910512aa0f8d53bd915e60 upstream. On an absent filesystem (one served by another server), we need to be able to handle requests for certain attrib

[PATCH 3.19.y-ckt 014/102] USB: qcserial: Add support for Dell Wireless 5809e 4G Modem

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Pieter Hollants commit 6da3700c98cdc8360f55c5510915efae1d66deea upstream. Added the USB IDs 0x413c:0x81b1 for the "Dell Wireless 5809e Gobi(TM) 4G LTE Mobile Broadband Card", a Dell-b

[PATCH 3.19.y-ckt 011/102] xen/gntdevt: Fix race condition in gntdev_release()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= commit 30b03d05e07467b8c6ec683ea96b5bffcbcd3931 upstream. While gntdev_release() is called the MMU notifier is still registered and can tr

Re: [PATCH v7 3/6] pci:host: Add Altera PCIe host controller driver

2015-09-22 Thread Marc Zyngier
On Mon, 21 Sep 2015 10:13:04 +0800 Ley Foon Tan wrote: > This patch adds the Altera PCIe host controller driver. > > Signed-off-by: Ley Foon Tan > --- > drivers/pci/host/Kconfig | 8 + > drivers/pci/host/Makefile | 1 + > drivers/pci/host/pcie-altera.c | 591 > +

[PATCH 3.19.y-ckt 012/102] PCI: Restore PCI_MSIX_FLAGS_BIRMASK definition

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: "Michael S. Tsirkin" commit c9ddbac9c89110f77cb0fa07e634aaf1194899aa upstream. 09a2c73ddfc7 ("PCI: Remove unused PCI_MSIX_FLAGS_BIRMASK definition") removed PCI_MSIX_FLAGS_BIRMASK fro

[PATCH 3.19.y-ckt 007/102] ipv6: addrconf: validate new MTU before applying it

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Leitner commit 77751427a1ff25b27d47a4c36b12c3c8667855ac upstream. Currently we don't check if the new MTU is valid or not and this allows one to configure a smaller than minim

Re: [RFC PATCH v5 0/4] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-22 Thread Will Deacon
On Sat, Sep 19, 2015 at 04:05:55AM +0100, Yang Yingliang wrote: > > Changes in v5: > - remove the macro that guard move_irqs() > - use name irq_migrate_all_off_this_cpu instead of move_irqs > > Changes in v4: > - select GENERIC_IRQ_MIGRATION when config GENERIC_IRQ_MIGRATION is enabled >

[PATCH 3.19.y-ckt 009/102] RDS: verify the underlying transport exists before creating a connection

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Sasha Levin commit 74e98eb085889b0d2d4908f59f6e00026063014f upstream. There was no verification that an underlying transport exists when creating a connection, this would cause derefe

[PATCH 3.19.y-ckt 008/102] virtio-net: drop NETIF_F_FRAGLIST

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Jason Wang commit 48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 upstream. virtio declares support for NETIF_F_FRAGLIST, but assumes that there are at most MAX_SKB_FRAGS + 2 fragments which

[PATCH 3.19.y-ckt 010/102] xen/gntdev: convert priv->lock to a mutex

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: David Vrabel commit 1401c00e59ea021c575f74612fe2dbba36d6a4ee upstream. Unmapping may require sleeping and we unmap while holding priv->lock, so convert it to a mutex. Signed-off-by:

[PATCH 3.19.y-ckt 005/102] md: flush ->event_work before stopping array.

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit ee5d004fd0591536a061451eba2b187092e9127c upstream. The 'event_work' worker used by dm-raid may still be running when the array is stopped. This can result in an oops

[PATCH 4/4] irqchip/gic-v3-its: Parse new version of msi-parent property

2015-09-22 Thread Marc Zyngier
Now that 126b16e2ad98 ("Docs: dt: add generic MSI bindings") has made it into the tree, the time has come to get rid of the old hack, and to parse msi-parent in its full glory. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 18 +++--- 1 file changed,

[PATCH 38/39] Port xconfig to Qt5 - Update copyright.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 1f31651..91b7e6f 100644 --- a/scripts/kconfig/qc

[PATCH 08/39] Port xconfig to Qt5 - Remove unused #include

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 334000a..6437197 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts

[PATCH 1/4] of: Add of_parse_phandle_with_opt_args() helper function

2015-09-22 Thread Marc Zyngier
of_parse_phandle_with_args() is slightly inflexible as it doesn't allow the (unusual) case where the #*-cells property is not defined. In order to support this, introduce of_parse_phandle_with_opt_args() which assumes that #*-cells is zero when it is not defined, as required by the msi-parent bindi

[PATCH 2/4] of: irq: Add support for the new definition of "msi-parent"

2015-09-22 Thread Marc Zyngier
Since 126b16e2ad98 ("Docs: dt: add generic MSI bindings"), the definition of "msi-parent" has evolved, while maintaining some degree of compatibility. It can now express multiple MSI controllers as parents, as well as some sideband data being communicated to the controller. This patch revamps the

[PATCH 33/39] Port xconfig to Qt5 - Remove some commented code.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 4 1 file changed, 4 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 2ef06c1..8d96960 100644 --- a/scripts/kconfig/qconf.cc +++ b/scr

Re: [PATCH 05/11] mm: Introduce arch_pgd_init_late()

2015-09-22 Thread Andy Lutomirski
On Tue, Sep 22, 2015 at 11:26 AM, Linus Torvalds wrote: > On Tue, Sep 22, 2015 at 11:00 AM, Andy Lutomirski wrote: >> >> I really really hate the vmalloc fault thing. It seems to work, >> rather to my surprise. It doesn't *deserve* to work, because of >> things like the percpu TSS accesses in t

[PATCH 35/39] Port xconfig to Qt5 - Add(back) one click checkbox toggle.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 455969c..a46aac7 100644 --- a/sc

[PATCH 31/39] Port xconfig to Qt5 - Add horizontal scrollbar, and scroll per pixel.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 5 + 1 file changed, 5 insertions(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index e5bfa6b..2ef06c1 100644 --- a/scripts/kconfig/qconf.cc +++ b/s

[PATCH 36/39] Port xconfig to Qt5 - on Back clicked, deselect old item.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index a46aac7..d4e9cd5 100644 --- a/scripts/kconfig/qc

[PATCH 11/39] Port xconfig to Qt5 - Fix layout margin.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 3a5ff5d..6d32f39 100644 --- a/scripts/kconfig/qconf.cc +++ b/script

[PATCH 30/39] Port xconfig to Qt5 - Change ConfigItem constructor parent type.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index d86ae3c..000403d 100644 --- a/scripts/kconfig/qcon

[PATCH 37/39] Port xconfig to Qt5 - Fix goParent issue.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index d4e9cd5..1f31651 100644 --- a/scripts/kconfig/qconf

[PATCH 34/39] Port xconfig to Qt5 - Add(back) lineedit editing.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 8d96960..455969c 100644 --- a/scripts/kconfig/qconf.cc +++ b/script

[PATCH 25/39] Port xconfig to Qt5 - Add ConfigItem::nextItem to initializer list.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index 819e029..d1383c6 100644 --- a/scripts/kconfig/qc

Re: [PATCH] lib: Documentation: Synchronize %p formatting documentation

2015-09-22 Thread Rasmus Villemoes
On Mon, Sep 21 2015, Andy Shevchenko wrote: > On Mon, 2015-09-21 at 11:13 +0200, Martin Kletzander wrote: > >> Move all pointer-formatting documentation to one place instead of >> keeping it in three places with different level of completeness. I've had a patch titled "vsnprintf: collect documen

[PATCH 28/39] Add current selection check.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index f54f19f..6de8589 100644 --- a/scripts/kconfig/qconf.cc +++ b

Re: [PATCH] MAINTAINERS: Remove myself as nvec co-maintainer

2015-09-22 Thread Julian Andres Klode
On Sun, Sep 13, 2015 at 05:23:27PM +0200, Julian Andres Klode wrote: > My device broke a long time ago, so I do not have any > chance of testing things or any reason to continue > maintaining it. > > Signed-off-by: Julian Andres Klode > Cc: Marc Dietrich > --- > MAINTAINERS | 1 - > 1 file chan

[PATCH 39/39] Update the buildsystem for KConfig finding Qt

2015-09-22 Thread Thiago Macieira
The buildsystem will now only search for Qt 4 and Qt 5. Support for Qt 2 and 3 was dropped in the previous commits (Qt 3 was EOL'ed in 2010 or so...). For Qt 5, to be future-proof with the future direction notice appearing in the 5.5 release, C++11 support is automatically enabled. Signed-off-by:

[PATCH 22/39] Port xconfig to Qt5 - Set ConfigView object name.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index a8b5452..3454c43 100644 --- a/scripts/kconfig/qconf.cc +++ b/script

[PATCH 27/39] Port xconfig to Qt5 - Remove ConfigList::updateMenuList template.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski ConfigItem executes parent->takeChild(0) while ConfigList executes parent->takeTopLevelItem(0) Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.h | 4 +-- scripts/kconfig/qconf.cc | 73 +++

[PATCH 32/39] Port xconfig to Qt5 - Source format.

2015-09-22 Thread Thiago Macieira
From: Boris Barbulovski Signed-off-by: Boris Barbulovski Signed-off-by: Thiago Macieira --- scripts/kconfig/qconf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index 000403d..a40036d 100644 --- a/scripts/kconfig/qc

<    5   6   7   8   9   10   11   12   13   >