Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller

2015-11-26 Thread Måns Rullgård
Mason writes: > On 25/11/2015 13:12, Måns Rullgård wrote: > >> Mason writes: >> + status_lo = intc_readl(chip, chip->ctl + IRQ_STATUS); + status_hi = intc_readl(chip, chip->ctl + IRQ_CTL_HI + IRQ_STATUS); >>> >>> In my local branch, I wrote: >>> >>> #define IRQ_CTL_LO 0 >>> >>>

Re: MPT2SAS boot fail... due to silently loosing the driver

2015-11-26 Thread Ingo Molnar
* Martin K. Petersen wrote: > I guess we could do something like the following and let it sit for a > release cycle to help people transition. Bit of a hack, but it worked > for me in my quick testing... So I'm not sure how this could have worked for you in testing: try to set the MPT2SAS opti

Re: [GIT PULL 0/7] perf/core improvements and fixes

2015-11-26 Thread Ingo Molnar
* Jiri Olsa wrote: > I think I found one race.. > - having install-traceevent-plugins depend on $(LIBTRACEEVENT), >plugins will not be built as its prereq. and the target >install-traceevent-plugins itself will trigger plugins build > - but plugins build is also triggered by perf build

[PATCH] drm/i915: more virtual south bridge detection

2015-11-26 Thread Gerd Hoffmann
Commit "30c964a drm/i915: Detect virtual south bridge" detects and handles the southbridge emulated by vmware esx. Add the ich9 south bridge emulated by 'qemu -M q35'. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/i915/i915_drv.c | 3 ++- drivers/gpu/drm/i915/i915_drv.h | 1 + 2 files change

Re: [PATCH v2 5/5] ACPI / processor_idle: Add support for Low Power Idle(LPI) states

2015-11-26 Thread Sudeep Holla
Hi Prashanth, On 19/11/15 22:03, Prakash, Prashanth wrote: Hi Sudeep, On 10/27/2015 8:09 AM, Sudeep Holla wrote: Hi Prashanth, On 27/10/15 00:21, Prakash, Prashanth wrote: Hi Sudeep, While testing with these patches everything looked fine except that we are flattening all the LPI states eve

Re: [PATCH v2 2/2] restrict /dev/mem to idle io memory ranges

2015-11-26 Thread Ingo Molnar
* Dan Williams wrote: > > - why is the patch mucking with access to PCI and BIOS space? Is the > > persistent memory even mappable in those regions? Or is the concern > > that userspace can access control registers associated with the > > persistent memory? What is the problem scenario?

Re: [RFC PATCH] mm, oom: introduce oom reaper

2015-11-26 Thread Michal Hocko
On Wed 25-11-15 15:08:06, Johannes Weiner wrote: > Hi Michal, > > I think whatever we end up doing to smoothen things for the "common > case" (as much as OOM kills can be considered common), we need a plan > to resolve the memory deadlock situations in a finite amount of time. > > Eventually we h

Re: [PATCH 1/6] x86/efi: PFN_ALIGN() _text and _end when calculating number of pages

2015-11-26 Thread Ingo Molnar
* Matt Fleming wrote: > On Tue, 24 Nov, at 09:23:23AM, Ingo Molnar wrote: > > > > Didn't we want to do the _end alignment linker script fix instead? > > I think we should do both. This patch is tagged for stable because it > fixes a bug in the existing code. It's obvious and it's explicit and

[PATCH 0/3] arcmsr: fix bug of reallocate dma resource

2015-11-26 Thread Ching Huang
io register assignment from get_config to new function arcmsr_alloc_io_queue. Patch 3 change driver version to v1.30.00.22-20151126. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

Re: [PATCH 11/19] ARM: dts: imx: replace legacy *,wakeup property with wakeup-source

2015-11-26 Thread Sudeep Holla
On 23/11/15 05:37, Shawn Guo wrote: On Wed, Oct 21, 2015 at 11:10:08AM +0100, Sudeep Holla wrote: Though the keyboard and other driver will continue to support the legacy "gpio-key,wakeup", "linux,wakeup" boolean property to enable the wakeup source, "wakeup-source" is the new standard binding

[PATCH 1/3] arcmsr: modify codes for more readable

2015-11-26 Thread Ching Huang
From: Ching Huang modify codes for more readable Signed-of-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c --- a/drivers/scsi/arcmsr/arcmsr_hba.c 2015-11-25 18:08:52.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr_hba.c 2015-11-26 15:52:

Re: block-rbd: One function call less in rbd_dev_probe_parent() after error detection

2015-11-26 Thread Ilya Dryomov
On Thu, Nov 26, 2015 at 8:54 AM, SF Markus Elfring wrote: >>> I interpreted the eventual passing of a null pointer to the >>> rbd_dev_destroy() >>> function as an indication for further source code adjustments. >> >> If all error paths could be adjusted so that NULL pointers are never passed >>

[PATCH 2/3] arcmsr: Split dma resource allocation to a new function

2015-11-26 Thread Ching Huang
From: Ching Huang split dma resource allocation and io register assignment from get_config to a new function arcmsr_alloc_io_queue. Signed-of-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c --- a/drivers/scsi/arcmsr/arcmsr_hba.c 2015-11-2

[PATCH] perf: Correctly identify anon_hugepage when generating map (v2)

2015-11-26 Thread Yannick Brosseau
When parsing /proc/xxx/maps, the sscanf in perf_event__synthesize_mmap_events truncate the map name at the space in "/anon_hugepage (deleted)". is_anon_memory then only receive the string "/anon_hugepage" and do not detect it. We change is_anon_memory to only compare the first part of the string e

[PATCH 3/3] arcmsr: change driver version to v1.30.00.22-20151126

2015-11-26 Thread Ching Huang
From: Ching Huang change driver version to v1.30.00.22-20151126 Signed-of-by: Ching Huang --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2015-11-25 18:04:26.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr.h 2015-11

Re: [PATCH] mmc: core: fix __mmc_switch timeout caused by preempt

2015-11-26 Thread Ulf Hansson
On 26 November 2015 at 03:51, Chaotian Jing wrote: > there is a time window between __mmc_send_status() and time_afer(), > on some eMMC chip, the timeout_ms is only 10ms, if this thread was > scheduled out during this period, then, even card has already changes > to transfer state by the result of

[PATCH V4 0/3] KVM: x86: MMU: Clean up x86's mmu code for future work - part2

2015-11-26 Thread Takuya Yoshikawa
Guests worked normally in shadow paging mode (ept=0) on my test machine. Please check if the first two patches reflect what you meant correctly. Takuya Yoshikawa (3): [1] KVM: x86: MMU: Move parent_pte handling from kvm_mmu_get_page() to link_shadow_page() [2] KVM: x86: MMU: Use for_each_rma

[PATCH 1/3] KVM: x86: MMU: Move parent_pte handling from kvm_mmu_get_page() to link_shadow_page()

2015-11-26 Thread Takuya Yoshikawa
Every time kvm_mmu_get_page() is called with a non-NULL parent_pte argument, link_shadow_page() follows that to set the parent entry so that the new mapping will point to the returned page table. Moving parent_pte handling there allows to clean up the code because parent_pte is passed to kvm_mmu_g

[PATCH 3/3] KVM: x86: MMU: Remove unused parameter parent_pte from kvm_mmu_get_page()

2015-11-26 Thread Takuya Yoshikawa
Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/mmu.c | 20 +++- arch/x86/kvm/paging_tmpl.h | 4 ++-- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 204c7d4..a1a3d19 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch

Re: brcm80211: Delete an unnecessary check before the function call"release_firmware"

2015-11-26 Thread Kalle Valo
> From: Markus Elfring > Date: Fri, 6 Nov 2015 08:48:23 +0100 > > The release_firmware() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Mar

[PATCH 2/3] KVM: x86: MMU: Use for_each_rmap_spte macro instead of pte_list_walk()

2015-11-26 Thread Takuya Yoshikawa
As kvm_mmu_get_page() was changed so that every parent pointer would not get into the sp->parent_ptes chain before the entry pointed to by it was set properly, we can use the for_each_rmap_spte macro instead of pte_list_walk(). Signed-off-by: Takuya Yoshikawa Cc: Xiao Guangrong --- arch/x86/kvm

Re: [PATCH] cgroups: move cpuset specific checks from generic code to cpuset_can_attach

2015-11-26 Thread Mike Galbraith
On Wed, 2015-11-25 at 20:01 -0200, Marcelo Tosatti wrote: > Move PF_NO_SETAFFINITY check to cpuset cgroups, where it belongs. But you took the kthreadd check with it. -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vg

Re: [PATCH v7 0/4] KASAN for arm64

2015-11-26 Thread Mark Rutland
Hi Catalin, Can you pick up Andrey's patch below for v4.4, until we have a better solution? I stumbled across this myself and was about to post a similar patch. FWIW: Acked-by: Mark Rutland Thanks, Mark. On Tue, Nov 17, 2015 at 06:47:08PM +0300, Andrey Ryabinin wrote: > We should either add

Re: [PATCH] cpuset: Replace all instances of time_t with time64_t

2015-11-26 Thread Zefan Li
On 2015/11/26 3:01, Tejun Heo wrote: On Wed, Nov 25, 2015 at 04:16:55PM +0100, Arnd Bergmann wrote: The following patch replaces all instances of time_t with time64_t i.e. change the type used for representing time from 32-bit to 64-bit. All 32-bit kernels to date use a signed 32-bit time_t type

[GIT PULL] Please pull powerpc/linux.git powerpc-4.4-3 tag

2015-11-26 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.4: The following changes since commit 1ec218373b8ebda821aec00bb156a9c94fad9cd4: Linux 4.4-rc2 (2015-11-22 16:45:59 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git tags/powerp

Re: [kernel-hardening] [PATCH 0/2] introduce post-init read-only memory

2015-11-26 Thread PaX Team
On 26 Nov 2015 at 11:42, Ingo Molnar wrote: > * PaX Team wrote: > > > On 26 Nov 2015 at 9:54, Ingo Molnar wrote: > > > e.g., imagine that the write was to a function pointer (even an entire ops > > structure) or a boolean that controls some important feature for after-init > > code. ignoring/d

Re: [RESEND, 2/2] powerpc: axonram: Fix module autoload for OF platform driver

2015-11-26 Thread Michael Ellerman
On Tue, 2015-20-10 at 15:04:13 UTC, Luis de Bethencourt wrote: > From: Luis de Bethencourt > > This platform driver has a OF device ID table but the OF module > alias information is not created so module autoloading won't work. > > Signed-off-by: Luis de Bethencourt Applied to powerpc next, th

Re: powerpc: set IRQF_NO_THREAD for xmon/cascade handlers

2015-11-26 Thread Michael Ellerman
On Wed, 2015-11-11 at 13:48:50 UTC, John Ogness wrote: > The xmon and cascade irq handlers must not run as threads. > pmac_pic_lock is already a raw_spinlock, but the irq flag > IRQF_NO_THREAD needs to be set as well. > > Signed-off-by: John Ogness Applied to powerpc next, thanks. https://git.k

Re: [RESEND] powerpc/powernv: Drop owner assignment from platform_driver

2015-11-26 Thread Michael Ellerman
On Thu, 2015-19-11 at 04:00:39 UTC, Krzysztof Kozlowski wrote: > platform_driver does not need to set an owner because > platform_driver_register() will set it. > > Signed-off-by: Krzysztof Kozlowski Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/87630eb1d5ab76fc39e78529 che

Re: powerpc: IRQF_NO_SUSPEND not IRQF_TIMER for non-timer

2015-11-26 Thread Michael Ellerman
On Wed, 2015-11-11 at 14:15:03 UTC, John Ogness wrote: > Since gpio1 is not a timer, it also should not use IRQF_TIMER. > > Similar to commit ba461f094bab ("powerpc: Use IRQF_NO_SUSPEND not > IRQF_TIMER for non-timer interrupts"). > > Signed-off-by: John Ogness Applied to powerpc next, thanks.

Re: [RESEND] powerpc: rackmeter: Fix module autoload for OF platform driver

2015-11-26 Thread Michael Ellerman
On Tue, 2015-20-10 at 15:13:53 UTC, Luis de Bethencourt wrote: > From: Luis de Bethencourt > > This platform driver has a OF device ID table but the OF module > alias information is not created so module autoloading won't work. > > Signed-off-by: Luis de Bethencourt Applied to powerpc next, th

Re: powerpc/boot: allow wrapper to work on non-english system

2015-11-26 Thread Michael Ellerman
On Thu, 2015-05-11 at 11:31:34 UTC, Laurent Vivier wrote: > if the language is not english objdump output is not parsed correctly > and format is "". Later, "ld -m $format" fails. > > This patch adds "LANG=C" to force english output for objdump. > > Signed-off-by: Laurent Vivier Applied to powe

Re: [PATCH v7 0/4] KASAN for arm64

2015-11-26 Thread Andrey Ryabinin
On 11/26/2015 03:10 PM, Mark Rutland wrote: > Hi Catalin, > > Can you pick up Andrey's patch below for v4.4, until we have a better > solution? > FYI, better solution is almost ready, I'm going to send it today. However, I don't know for sure whether it works or not :) I'm not able to test as I

Re: [PATCH tip v4 2/5] [s]wait: Add compile time type check assertion

2015-11-26 Thread Daniel Wagner
Hi Thomas, On 11/24/2015 02:03 PM, Daniel Wagner wrote: > The API provided by wait.h and swait.h is very similiar. Most of the > time your are only one character away from either of it: > > wake_up() vs swake_up() > > This is on purpose so that we do not have two nearly identical bits of >

[PATCH v2] clockevents/drivers/arm_global_timer: Use writel_relaxed in gt_compare_set

2015-11-26 Thread Jisheng Zhang
Use the relaxed version to improve performance. we measured time of 4096 rounds of gt_compare_set() spent on Marvell BG2Q: before the patch: 3690648ns on average after the patch: 1083023ns on average improved by 70%! Signed-off-by: Jisheng Zhang --- since v1: - only use relaxed io in gt_compa

[char-misc-next 6/6] mei: wd: re-register device on event

2015-11-26 Thread Tomas Winkler
From: Alexander Usyskin For Intel SKL platform the ME device can inform the host via asynchronous notification that the watchdog feature was activated on the device. The activation doesn't require reboot. In that case the driver register the watchdog device with the kernel. Signed-off-by: Alexan

[char-misc-next 4/6] mei: bus: whitelist the watchdog client

2015-11-26 Thread Tomas Winkler
The iAMT WD client has to be whitelisted sice it has two connections and is filtered out by number_of_connections fixup. Also the API has changed for BDW and SKL but firmware haven't updated the protocol version. Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei

[char-misc-next 3/6] mei: wd: implement MEI iAMT watchdog driver

2015-11-26 Thread Tomas Winkler
From: Alexander Usyskin Create a driver with the generic watchdog interface for the MEI iAMT watchdog device. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- Documentation/misc-devices/mei/mei.txt | 12 +- MAINTAINERS| 1 + drivers/watchdog/Kco

[char-misc-next 1/6] mei: drop nfc leftovers from the mei driver

2015-11-26 Thread Tomas Winkler
We left few function prototypes in the header file after moving nfc logic to bus. Signed-off-by: Tomas Winkler --- drivers/misc/mei/mei_dev.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 4250555d5e72..b54d9d9cacea 1

[char-misc-next 2/6] mei: wd: drop the watchdog code from the core mei driver

2015-11-26 Thread Tomas Winkler
From: Alexander Usyskin Instead of integrating the iAMT watchdog in the mei core driver we will create a watchdog device on the mei client bus and create a driver for it. This patch removes the watchdog code from the mei core driver. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkle

[char-misc-next 0/6] mei: create proper iAMT watchdog driver

2015-11-26 Thread Tomas Winkler
Instead of integrating the iAMT watchdog within the mei core driver we will create a watchdog device on the mei client bus and create a proper watchdog driver for it. The patches should apply and compile on both watchdog-next and char-misc-next trees/branches. I would prefer this will go via char-

[char-misc-next 5/6] mei: wd: register wd device only if required

2015-11-26 Thread Tomas Winkler
From: Alexander Usyskin For Intel Broadwell and newer platforms, the ME device can inform the host whether the watchdog functionality is activated or not. If the watchdog functionality is not activated then watchdog interface can be not registered and eliminate unnecessary pings and hence lower t

[PATCH v2] mmc: core: fix __mmc_switch timeout caused by preempt

2015-11-26 Thread Chaotian Jing
there is a time window between __mmc_send_status() and time_afer(), on some eMMC chip, the timeout_ms is only 10ms, if this thread was scheduled out during this period, then, even card has already changes to transfer state by the result of CMD13, this part of code also treat it to timeout error. So

Re: [PATCH v3] clk: rockchip: switch PLLs to slow mode before reboot for rk3288

2015-11-26 Thread Heiko Stübner
Hi Chris, Am Mittwoch, 11. November 2015, 15:09:59 schrieb Chris Zhong: > We've been seeing some crashes at reboot test on rk3288-based systems, > which boards have not reset pin connected to NPOR, they reboot by > setting 0xfdb9 to RK3288_GLB_SRST_FST register. If the APLL works in > a high frequ

Deadlock in n_hdlc_buf_put

2015-11-26 Thread Dmitry Vyukov
Hello, The following program causes a potential deadlock warning: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include int main() { long r0 = syscall(SYS_mmap, 0x20001000ul, 0x1000ul, 0x3ul, 0x32ul, 0xul, 0x0ul); long r1

Re: [PATCH v2 2/2] ARM: Replace calls to __aeabi_{u}idiv with udiv/sdiv instructions

2015-11-26 Thread Måns Rullgård
Nicolas Pitre writes: > On Thu, 26 Nov 2015, Måns Rullgård wrote: > >> Russell King - ARM Linux writes: >> >> > On Thu, Nov 26, 2015 at 12:50:08AM +, Måns Rullgård wrote: >> >> If not calling the function saves an I-cache miss, the benefit can be >> >> substantial. No, I have no proof of t

Re: [GIT PULL 0/7] perf/core improvements and fixes

2015-11-26 Thread Jiri Olsa
On Thu, Nov 26, 2015 at 12:00:00PM +0100, Ingo Molnar wrote: SNIP > Thu Nov 26 11:55:58 CET 2015 pass > Thu Nov 26 11:56:09 CET 2015 pass > Thu Nov 26 11:56:21 CET 2015 pass > Thu Nov 26 11:56:32 CET 2015 pass > Thu Nov 26 11:56:44 CET 2015 pass > Thu Nov 26 11:56:55 CET 2015 pass > Thu Nov 26 11

[PATCH v2 1/4] ARM: dts: exynos4210: MDMA1 device belongs to LCD0 power domain

2015-11-26 Thread Marek Szyprowski
On Exynos 4210 MDMA1 device belongs to LCD0 power domain, so add proper power-domains property. On Exynos 4x12, it belongs to TOP power domain, which is always enabled, thus require no assignment in exynos4x12.dtsi. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4210.dtsi | 4

[PATCH v2 2/4] driver core: handle -EPROBE_DEFER from bus_type.match()

2015-11-26 Thread Marek Szyprowski
From: Tomeu Vizoso Lets implementations of the match() callback in struct bus_type to return errors and if it's -EPROBE_DEFER then queue the device for deferred probing. This is useful to buses such as AMBA in which devices are registered before their matching information can be retrieved from t

[PATCH v2 0/4] Exynos4210: fix power domain for MDMA1 device

2015-11-26 Thread Marek Szyprowski
This patchset fixes mysterious boot hang on Exynos 4210 SoCs, when IOMMU is enabled. There is no direct dependency between IOMMU devices and MDMA1. However enabling IOMMU changes the device probe order, what results in LCD0 power domain being turned off for some time. During that time the registrat

[PATCH v2 4/4] ARM: amba: Properly handle devices with power domains

2015-11-26 Thread Marek Szyprowski
To read pid/cid registers, the probed device need to be properly turned on. When it is inside a power domain, the bus code should ensure that the given power domain is enabled before trying to access device's registers. Signed-off-by: Marek Szyprowski --- drivers/amba/bus.c | 6 ++ 1 file ch

[PATCH v2 3/4] ARM: amba: Move reading of periphid to amba_match()

2015-11-26 Thread Marek Szyprowski
From: Tomeu Vizoso Reading the periphid when the Primecell device is registered means that the apb pclk must be available by then or the device won't be registered at all. By reading the periphid in amba_match() we can return -EPROBE_DEFER if the apb pclk isn't there yet and the device will be r

Re: brcmfmac: constify brcmf_bus_ops structures

2015-11-26 Thread Kalle Valo
> The brcmf_bus_ops structures are never modified, so declare them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > Acked-by: Arend van Spriel Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH v4 1/9] ppc64 (le): prepare for -mprofile-kernel

2015-11-26 Thread Torsten Duwe
On Thu, Nov 26, 2015 at 01:12:12PM +0300, Denis Kirjanov wrote: > On 11/25/15, Torsten Duwe wrote: > > +*/ > > + return 2; > I didn't find where you check for this return value. That's a pure debugging convenience. The return test is for != 0, so any non-zero

Re: [PATCH v4 2/9] ppc64le FTRACE_WITH_REGS implementation

2015-11-26 Thread Torsten Duwe
On Thu, Nov 26, 2015 at 01:04:19PM +0300, Denis Kirjanov wrote: > On 11/25/15, Torsten Duwe wrote: > > --- a/arch/powerpc/kernel/entry_64.S > > +++ b/arch/powerpc/kernel/entry_64.S > Linux style for comments is the C89. Please update entry_64.S I might as well switch to asm-style comments. Anyway

Re: use-after-free in tty_check_change

2015-11-26 Thread Peter Hurley
Hi Dmitry, On 11/26/2015 05:31 AM, Dmitry Vyukov wrote: > Hello, > > The following program causes a use-after-free in tty_check_change: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > > void *thr(void *arg) > { > i

Re: rtlwifi: Delete unnecessary checks before the function call"kfree_skb"

2015-11-26 Thread Kalle Valo
> From: Markus Elfring > Date: Mon, 16 Nov 2015 13:12:25 +0100 > > The kfree_skb() function tests whether its argument is NULL and then > returns immediately. Thus the test around the calls is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus E

[PATCH v3] staging/android: add TODO to de-stage android sync framework

2015-11-26 Thread Gustavo Padovan
From: Gustavo Padovan - remove CONFIG_SW_SYNC_USER, it is used only for testing/debugging and should not be upstreamed. - port CONFIG_SW_SYNC_USER tests interfaces to use debugfs somehow - port libsync tests to kselftest - clean up and ABI check for security issues - move the sync framewo

Re: [v2] libertas: check for NULL before use

2015-11-26 Thread Kalle Valo
> If kzalloc fails it will return NULL. Lets check for NULL first before > using the pointer. > > Signed-off-by: Sudip Mukherjee Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [PATCH v3 2/5] arcmsr: fixes not release allocated resource

2015-11-26 Thread Tomas Henzl
On 26.11.2015 08:32, Ching Huang wrote: > On Wed, 2015-11-25 at 14:55 +0100, Tomas Henzl wrote: >> On 25.11.2015 12:41, Ching Huang wrote: >>> From: Ching Huang >>> >>> Releasing allocated resource if get configuration data failed. >>> >>> Signed-of-by: Ching Huang >>> >>> --- >>> >>> diff -uprN

Re: use-after-free in tty_check_change

2015-11-26 Thread Dmitry Vyukov
On Thu, Nov 26, 2015 at 2:00 PM, Peter Hurley wrote: > Hi Dmitry, > > On 11/26/2015 05:31 AM, Dmitry Vyukov wrote: >> Hello, >> >> The following program causes a use-after-free in tty_check_change: >> >> // autogenerated by syzkaller (http://github.com/google/syzkaller) >> #include >> #include >

Re: block: Always check queue limits for cloned requests

2015-11-26 Thread Mike Snitzer
On Thu, Nov 26 2015 at 2:46am -0500, Hannes Reinecke wrote: > When a cloned request is retried on other queues it always needs > to be checked against the queue limits of that queue. > Otherwise the calculations for nr_phys_segments might be wrong, > leading to a crash in scsi_init_sgtable(). >

Re: [PATCH v7 0/4] usb/gadget: independent registration of gadgets and gadget drivers

2015-11-26 Thread Ruslan Bilovol
Hi Marek, On Mon, Nov 23, 2015 at 10:56 AM, Marek Szyprowski wrote: > Hello, > > This is a resurrection of the patches initially submitted by Ruslan > Bilovol in the following thread: https://lkml.org/lkml/2015/6/22/554 > > The changes since the original submission (v5) includes rebase onto > lat

[PATCH RFT] arm64: kasan: Make KASAN work with 16K pages + 48 bit VA

2015-11-26 Thread Andrey Ryabinin
Currently kasan assumes that shadow memory covers one or more entire PGDs. That's not true for 16K pages + 48bit VA space, where PGDIR_SIZE is bigger than the whole shadow memory. This patch tries to fix that case. clear_page_tables() is a new replacement of clear_pgs(). Instead of always clearing

Re: [PATCH 2/3] perf callchain: Stop resolving callchains after invalid address

2015-11-26 Thread David Ahern
On 11/26/15 12:08 AM, Namhyung Kim wrote: @@ -528,11 +529,16 @@ int main(int argc, const char **argv) { const char *cmd; char sbuf[STRERR_BUFSIZE]; + int min_addr; /* The page_size is placed in util object. */ page_size = sysconf(_SC_PAGE_SIZE); ca

[PATCH] checkkconfigsymbols.py: find similar symbols

2015-11-26 Thread Valentin Rothberg
Add support to find string-similar symbols. When option --sim SYM is specified, checkkconfigsymbols.py will print at most 10 symbols defined in Kconfig that are string similar to SYM in the following format: Similar symbols: $COMMA_SEPARATED_LIST_OF_SYMBOLS Note, if no similar symbols are fou

[PATCH] arm: dts: berlin2q-marvell-dmp: add sdhci1 fully functionality

2015-11-26 Thread Jisheng Zhang
The sdhci1 on Marvell BG2Q DMP board is used as sdcard interface, we have gpios for card detection, write-protect, vqmmc and vmmc. This patch adds pinmux for this sdcard interface, then adds regulators for vmmc and vqmmc, lastly adds cd-gpios, wp-gpios properties. Signed-off-by: Jisheng Zhang --

Re: [PATCH 4/4] cfq-iosched: Allow parent cgroup to preempt its child

2015-11-26 Thread Jan Kara
On Thu 26-11-15 04:24:23, kbuild test robot wrote: > Hi Jan, > > [auto build test ERROR on block/for-next] > [also build test ERROR on v4.4-rc2 next-20151124] > > url: > https://github.com/0day-ci/linux/commits/Jan-Kara/SYNC_NOIDLE-preemption-for-ancestor-cgroups/20151125-222645 > base: htt

Re: [4.3] kworker busy in pm_runtime_work

2015-11-26 Thread Mathias Nyman
On 25.11.2015 17:42, Alan Stern wrote: On Wed, 25 Nov 2015, Daniel J Blueman wrote: On 23 November 2015 at 23:52, Alan Stern wrote: On Sun, 22 Nov 2015, Daniel J Blueman wrote: On 16 November 2015 at 23:22, Alan Stern wrote: On Mon, 16 Nov 2015, Daniel J Blueman wrote: Tuning USB suspen

Re: [lkp] [mm, page_alloc] d0164adc89: -100.0% fsmark.app_overhead

2015-11-26 Thread Mel Gorman
On Thu, Nov 26, 2015 at 08:56:12AM +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit d0164adc89f6bb374d304ffcc375c6d2652fe67d ("mm, page_alloc: distinguish > between being unable to sleep,

Re: [PATCH] vmscan: fix slab vs lru balance

2015-11-26 Thread Vladimir Davydov
On Tue, Nov 24, 2015 at 03:02:27PM -0800, Andrew Morton wrote: > On Tue, 24 Nov 2015 15:47:21 +0300 Vladimir Davydov > wrote: > > > The comment to shrink_slab states that the portion of kmem objects > > scanned by it equals the portion of lru pages scanned by shrink_zone > > over shrinker->seeks

Re: use-after-free in tty_check_change

2015-11-26 Thread Peter Hurley
On 11/26/2015 08:09 AM, Dmitry Vyukov wrote: > On Thu, Nov 26, 2015 at 2:00 PM, Peter Hurley > wrote: >> Hi Dmitry, >> >> On 11/26/2015 05:31 AM, Dmitry Vyukov wrote: >>> Hello, >>> >>> The following program causes a use-after-free in tty_check_change: >>> >>> // autogenerated by syzkaller (http:

Re: use-after-free in sock_wake_async

2015-11-26 Thread Hannes Frederic Sowa
Hannes Frederic Sowa writes: > I have seen filesystems already doing so in .destroy_inode, that's why I > am asking. The allocation happens the same way as we do with sock_alloc, > e.g. shmem. I actually thought that struct inode already provides an > rcu_head for exactly that reason. E.g.: di

use-after-free in n_tty_read

2015-11-26 Thread Dmitry Vyukov
Hello, I've hit the following report once after booting a VM and then scp a file into it. It is not reproducible. But maybe the stacks will give you some hint as to how it could happen: == BUG: KASAN: use-after-free in n_tty_read+0x

Re: use-after-free in n_tty_read

2015-11-26 Thread Peter Hurley
Hi Dmitry, On 11/26/2015 08:34 AM, Dmitry Vyukov wrote: > Hello, > > I've hit the following report once after booting a VM and then scp a > file into it. It is not reproducible. But maybe the stacks will give > you some hint as to how it could happen: > > > =

Re: [PATCH] iommu/s390: fix sparse warnings

2015-11-26 Thread Joerg Roedel
On Fri, Nov 06, 2015 at 05:26:24PM +0100, Sebastian Ott wrote: > Fix these warnings: > CHECK drivers/iommu/s390-iommu.c > drivers/iommu/s390-iommu.c:52:21: warning: symbol 's390_domain_alloc' was not > declared. Should it be static? > drivers/iommu/s390-iommu.c:76:6: warning: symbol 's390_doma

Re: block-rbd: One function call less in rbd_dev_probe_parent() after error detection

2015-11-26 Thread SF Markus Elfring
>> * Why was the function "rbd_dev_probe_parent" implemented in the way >> that it relies on a sanity check in the function "rbd_dev_destroy" then? > > Because it's not a bad thing? There are different opinions about this implementation detail. > What's wrong with an init to NULL, a possible

reservation.h: build error with lockdep disabled

2015-11-26 Thread Russell King - ARM Linux
As of 3c3b177a9369 ("reservation: add suppport for read-only access using rcu") linux/reservation.h uses lockdep macros: +#define reservation_object_held(obj) lockdep_is_held(&(obj)->lock.base) This results in build errors when lockdep is disabled as lockdep_is_held() is only available when lockd

[PATCH] null_blk: Fix error path in module initialization

2015-11-26 Thread Minfei Huang
From: Minfei Huang Module couldn't release resource properly during the initialization. To fix this issue, we will clean up the proper resource before returning. Signed-off-by: Minfei Huang --- drivers/block/null_blk.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletion

[RFC PATCH 14/15] ARM: dts: Add bus nodes using VDD_INT for Exynos4x12

2015-11-26 Thread Chanwoo Choi
This patch adds the bus noes using VDD_INT for Exynos4x12 SoC. Exynos4x12 has the following AXI buses to translate data between DRAM and sub-blocks. Following list specifies the detailed relation between DRAM and sub-blocks: - ACLK100 clock for PERIL/PERIR/MFC(PCLK) - ACLK160 clock for CAM/TV/LCD

[RFC PATCH 00/15] PM / devferq: Add generic exynos bus frequency driver and new passive governor

2015-11-26 Thread Chanwoo Choi
This patch-set includes the two features as following. The generic exynos bus frequency driver is able to support almost Exynos SoCs for bus frequency scaling. And the new passive governor is able to make the dependency on between devices for frequency/voltage scaling. I had posted the patch-set[1]

[RFC PATCH 07/15] PM / devfreq: Show the related information according to governor type

2015-11-26 Thread Chanwoo Choi
This patch modifies the following sysfs entry of DEVFREQ framework because the devfreq device using passive governor don't need the same information of the devfreq device using rest governor. - polling_interval: passive gov don't use the sampling rate. - available_governors : passive gov don't

[RFC PATCH 13/15] ARM: dts: Add bus nodes using VDD_MIF for Exynos4x12

2015-11-26 Thread Chanwoo Choi
This patch adds the bus noes using VDD_MIF for Exynos4x12 SoC. Exynos4x12 has the following AXI buses to translate data between DRAM and DMC/ACP/C2C. Signed-off-by: Chanwoo Choi --- arch/arm/boot/dts/exynos4x12.dtsi | 73 +++ 1 file changed, 73 insertions(+)

[RFC PATCH 15/15] ARM: dts: Add support of bus frequency for exynos4412-trats

2015-11-26 Thread Chanwoo Choi
THis patch adds the bus device tree nodes for both MIF (Memory) and INT (Internal) block to enable the bus frequency. The DMC bus is parent device in MIF block using VDD_MIF and the LEFTBUS bus is parent device in INT block using VDD_INT. Signed-off-by: Chanwoo Choi --- arch/arm/boot/dts/exynos

[RFC PATCH 12/15] ARM: dts: Add support of bus frequency using VDD_INT for exynos3250-rinato

2015-11-26 Thread Chanwoo Choi
This patch adds the bus device-tree node of INT (internal) block to enable the bus frequency. The following sub-blocks share the VDD_INT power source: - LEFTBUS (parent device) - RIGHTBUS - PERIL - LCD0 - FSYS - MCUISP / ISP The LEFTBUS is parent device with devfreq ondemand governor and the rest

[RFC PATCH 03/15] ARM: dts: Add DMC bus node for Exynos3250

2015-11-26 Thread Chanwoo Choi
This patch adds the DMC (DRAM memory controller) bus node for Exynos3250 SoC. The DMC is an AMBA AXI-compliant slave to interface external JEDEC standard SDRAM devices. The bus includes the OPP tables and the source clock for DMC block. Following list specifies the detailed relation between the cl

[RFC PATCH 09/15] PM / devfreq: exynos: Update documentation for bus devices using passive governor

2015-11-26 Thread Chanwoo Choi
This patch updates the documentation for passive bus devices and adds the detailed example of Exynos3250. Signed-off-by: Chanwoo Choi --- .../devicetree/bindings/devfreq/exynos-bus.txt | 226 - 1 file changed, 223 insertions(+), 3 deletions(-) diff --git a/Documentation/

[RFC PATCH 02/15] PM / devfreq: exynos: Add documentation for generic exynos bus frequency driver

2015-11-26 Thread Chanwoo Choi
This patch adds the documentation for generic exynos bus frequency driver. Signed-off-by: Chanwoo Choi --- .../devicetree/bindings/devfreq/exynos-bus.txt | 92 ++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/exynos-bus.txt

[RFC PATCH 10/15] PM / devfreq: exynos: Remove unused exynos4/5 busfreq driver

2015-11-26 Thread Chanwoo Choi
This patch removes the unused exynos4/5 busfreq driver. Instead, generic exynos-bus frequency driver support the all Exynos SoCs. Signed-off-by: Chanwoo Choi --- drivers/devfreq/Kconfig | 22 - drivers/devfreq/exynos/Makefile |2 - drivers/devfreq/exynos/exynos4_bus.c | 1

[RFC PATCH 11/15] ARM: dts: Add bus nodes using VDD_INT for Exynos3250

2015-11-26 Thread Chanwoo Choi
This patch adds the bus nodes using VDD_INT for Exynos3250 SoC. Exynos3250 has following AXI buses to translate data between DRAM and sub-blocks. Following list specifies the detailed relation between DRAM and sub-blocks: - ACLK400 clock for MCUISP - ACLK266 clock for ISP - ACLK200 clock for FSYS

[RFC PATCH 05/15] PM / devfreq: Add new passive governor

2015-11-26 Thread Chanwoo Choi
This patch adds the new passive governor for DEVFREQ framework. The following governors are already present and used for DVFS (Dynamic Voltage and Frequency Scaling) drivers. The following governors are independently used for one device driver which don't give the influence to other device drviers

[RFC PATCH 04/15] ARM: dts: Add DMC bus freqeuncy for exynos3250-rinato/monk

2015-11-26 Thread Chanwoo Choi
This patch adds the DMC (DRAM Memory Controller) bus frequency node which includes the devfreq-events and regulator properties. The bus frequency support the DVFS (Dynamic Voltage Frequency Scaling) feature with ondemand governor. The devfreq-events (ppmu_dmc0*) can monitor the utilization of DMC

[RFC PATCH 06/15] PM / devfreq: Add devfreq_get_devfreq_by_phandle()

2015-11-26 Thread Chanwoo Choi
This patch adds the new devfreq_get_devfreq_by_phandle() OF helper function which can find the instance of devfreq device by using phandle ("devfreq"). Signed-off-by: Chanwoo Choi --- drivers/devfreq/devfreq.c | 44 include/linux/devfreq.h | 9

[RFC PATCH 01/15] PM / devfreq: exynos: Add generic exynos bus frequency driver

2015-11-26 Thread Chanwoo Choi
This patch adds the generic exynos bus frequency driver for AMBA AXI bus of sub-blocks in exynos SoC with DEVFREQ framework. The Samsung Exynos SoC have the common architecture for bus between DRAM and sub-blocks in SoC. This driver can support the generic bus frequency driver for Exynos SoCs. In

[RFC PATCH 08/15] PM / devfreq: exynos: Add support of bus frequency of sub-blocks using passive governor

2015-11-26 Thread Chanwoo Choi
This patch adds the support of bus frequency feature for sub-blocks which share the one power line. If each bus depends on the power line, each bus is not able to change the voltage by oneself. To optimize the power-consumption on runtime, some buses using the same power line should change the sour

Re: [PATCH 1/3] perf top: Fix freeze on --call-graph flat/folded

2015-11-26 Thread Namhyung Kim
Hi Jiri, On Thu, Nov 26, 2015 at 09:38:53AM +0100, Jiri Olsa wrote: > On Thu, Nov 26, 2015 at 04:08:18PM +0900, Namhyung Kim wrote: > > The callchain rbtree is rebuilt periodically, so it needs to > > reinitialize the root everytime. Otherwise it can be stuck in the > > rbtree insertion with stal

[PATCH 3/3] perf build: Fix traceevent plugins build race

2015-11-26 Thread Jiri Olsa
Ingo reported following build failure: $ make clean install ... CC plugin_kmem.o fixdep: error opening depfile: ./.plugin_hrtimer.o.d: No such file or directory /home/mingo/tip/tools/build/Makefile.build:77: recipe for target 'plugin_hrtimer.o' failed make[3]: *** [plugin_hr

[PATCH 1/3] tools build: Introduce features dump include makefile

2015-11-26 Thread Jiri Olsa
Creating the FEATURE-INCLUDE file, that contains all features status dumped in make's variable format: ... feature-backtrace=1 feature-dwarf=1 ... It's purpose is to be included in sub-project makefiles to get features detection state. This way we can run the detection only in top leve

[PATCH 2/3] perf build: Use FEATURE-INCLUDE in bpf subproject

2015-11-26 Thread Jiri Olsa
Using FEATURE-INCLUDE in bpf subproject in case bpf is built via perf. Keep the current features detection for other cases. Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-utuczk899ckz6qtggqvhm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/lib/bpf/Makefile | 4 tools/perf/Makefile

[PATCH 3/3] perf script: Align event name properly

2015-11-26 Thread Jiri Olsa
Adding code to align event names, so we get aligned output in case of multiple events with different names. Before: $ perf script :13757 13757 163918.230829: cpu/mem-snp-none/P: 88085f20d010 :13757 13757 163918.230832: cpu/mem-loads,ldlat=30/P: 7f5a5f719f00 :13757 13757 163918.2308

<    1   2   3   4   5   6   >