Re: [PATCH V2 1/6] PM / OPP: Free resources and properly return error on failure

2015-08-11 Thread Viresh Kumar
On 11-08-15, 20:11, Dan Carpenter wrote: > On Tue, Aug 11, 2015 at 08:29:38PM +0530, Viresh Kumar wrote: > > > This is weird to me, because we are going backwards. What happens if > > > we goto free_table without adding anything? > > > > It will WARN() today. > > Then the current code is buggy.

Re: [PATCH 2/3] staging: lustre: Add blank line after variable declaration

2015-08-11 Thread Joe Perches
On Wed, 2015-08-12 at 10:30 +0530, Sudip Mukherjee wrote: > On Tue, Aug 11, 2015 at 09:32:30PM +0800, Swee Hua Law wrote: > > Add blank line after variable declaration [] > > diff --git a/drivers/staging/lustre/lustre/llite/lloop.c > > b/drivers/staging/lustre/lustre/llite/lloop.c [] > > @@ -372,9

Re: [ftrace] possible to implement user-space tracers?

2015-08-11 Thread Kun Huang
I need trace python projects, with low over head and a little flexibility. There are some pure python based trace tools, but most of them make codes slower. I also tried systemtap, but it still become much slower in complicated python codes. I'm now finding a better tool or some inspirations. Fle

Re: [PATCH 0/2] userns: Creation logic fixes

2015-08-11 Thread Kees Cook
On Tue, Aug 11, 2015 at 6:22 PM, Eric W. Biederman wrote: > > So I have take a good hard stare at the problem, as well as sitting down > and writing some test code to verify the code works the way I think it > does. > > The following two patches are how I think this bit of chaos needs to be > solv

Persistent Reservation API V2

2015-08-11 Thread Christoph Hellwig
This series adds support for a simplified Persistent Reservation API to the block layer. The intent is that both in-kernel and userspace consumers can use the API instead of having to hand craft SCSI or NVMe command through the various pass through interfaces. It also adds DM support as getting r

[PATCH 1/5] block: cleanup blkdev_ioctl

2015-08-11 Thread Christoph Hellwig
Split out helpers for all non-trivial ioctls to make this function simpler, and also start passing around a pointer version of the argument, as that's what most ioctl handlers actually need. Signed-off-by: Christoph Hellwig --- block/ioctl.c | 227

[PATCH 2/5] block: add an API for Persistent Reservations

2015-08-11 Thread Christoph Hellwig
This commits adds a driver API and ioctls for controlling Persistent Reservations s/genericly/generically/ at the block layer. Persistent Reservations are supported by SCSI and NVMe and allow controlling who gets access to a device in a shared storage setup. Note that we add a pr_ops structure to

[PATCH 4/5] dm: refactor ioctl handling

2015-08-11 Thread Christoph Hellwig
This moves the call to blkdev_ioctl and the argument checking to core code, and only leaves a callout to find the block device to operate on it the targets. This will simplifies the code and will allow us to pass through ioctl-like command using other methods in the next patch. Also split out a h

[PATCH 5/5] dm: add support for passing through persistent reservations

2015-08-11 Thread Christoph Hellwig
This adds support to pass through persistent reservation requests similar to the existing ioctl handling, and with the same limitations, e.g. devices may only have a single target attached. This is mostly intended for multipathing. Signed-off-by: Christoph Hellwig --- drivers/md/dm.c | 122

Re: [PATCH] input: ti_am335x_tsc: Add open delay parameter

2015-08-11 Thread Vignesh R
Hi Michael, + Dmitry On 08/12/2015 12:15 AM, Michael Welling wrote: > Adds a device tree parameter to set the open delay on the touchscreen > conversion steps. Increasing this parameter helps the touch accuracy on > some screens. > > Signed-off-by: Michael Welling > --- > .../bindings/input/to

[PATCH 3/5] sd: implement the Persistent Reservation API

2015-08-11 Thread Christoph Hellwig
This is a mostly trivial mapping to the PERSISTENT RESERVE IN/OUT commands. Signed-off-by: Christoph Hellwig --- drivers/scsi/sd.c | 90 +++ 1 file changed, 90 insertions(+) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 160e44e..14b

enabling libgcc for 64-bit divisions, was Re: PROBLEM: XFS on ARM corruption 'Structure needs cleaning'

2015-08-11 Thread Christoph Hellwig
On Wed, Aug 12, 2015 at 12:56:25AM +, katsuki.uwat...@toshiba.co.jp wrote: > On Sat, 13 Jun 2015 08:52:09 +1000, Dave Chinner wrote: > > > Yup, that's looking like a toolchain bug. Thread about arm directory > > read corruption: > > I think that this is not a toolchain bug, this is related to

[PATCH] power: align wakeup_sources format

2015-08-11 Thread check.kernel
From: yangdongdong This aligns every column of elements in wakeup_sources to conveniently check any specific column for suspicious power consumption wakeup source or for other easily readable purpose. Signed-off-by: yangdongdong Signed-off-by: Linghua Gu --- drivers/base/power/wakeup.c | 4 ++

Re: [PATCH] Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"

2015-08-11 Thread Afzal Mohammed
Hi, On Wed, Aug 12, 2015 at 01:17:38PM +0900, Alexandre Courbot wrote: > This reverts commit 1addc1264852 > > This commit seems to cause crashes in gk104_fifo_intr_runlist() by > returning 0xbad0da00 when register 0x2a00 is read. Since this commit was > intended for GM20B which is not completely

[PATCH v2 1/2] soc/fsl: add freescale dir for SOC specific drivers

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng Some Freescale device drivers need to move to soc/, because these drivers are specific drivers. Before the soc/ to be created, the drivers had been there arch/ or drivers/misc/, but now soc/ dir is a better choice. Signed-off-by: Wang Dongsheng --- *V2* Rebase for last kern

[PATCH 2/2] soc/fsl: add ftm alarm driver for ls1021a platform

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng Only Ftm0 can be used when system going to deep sleep. So this driver to support ftm0 as a wakeup source. Signed-off-by: Wang Dongsheng --- *V2* Change Copyright 2014 to 2015. diff --git a/drivers/soc/fsl/ls1/Kconfig b/drivers/soc/fsl/ls1/Kconfig index 7556f44..e6282dc 100

Re: [PATCH v2 1/2] perf hists browser: Support horizontal scrolling with '<' and '>' key

2015-08-11 Thread Namhyung Kim
Hi Arnaldo, On Tue, Aug 11, 2015 at 05:59:28PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 11, 2015 at 01:15:59AM +0200, Jiri Olsa escreveu: > > On Mon, Aug 10, 2015 at 08:14:45PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Aug 11, 2015 at 01:02:56AM +0200, Jiri Olsa escreveu: >

Re: linux-next: manual merge of the crypto tree with the imx-mxs tree

2015-08-11 Thread Shawn Guo
Herbert, On Wed, Aug 12, 2015 at 1:18 PM, Herbert Xu wrote: > On Wed, Aug 12, 2015 at 01:22:39PM +1000, Stephen Rothwell wrote: >> >> Today's linux-next merge of the crypto tree got a conflict in: >> >> arch/arm/configs/imx_v6_v7_defconfig >> >> between commit: >> >> 351265f46291 ("ARM: imx_v

Re: [PATCH v5 0/3] dra7xx: Add PM support to PCIe

2015-08-11 Thread Kishon Vijay Abraham I
On Wednesday 12 August 2015 02:22 AM, Bjorn Helgaas wrote: > On Fri, Jul 31, 2015 at 05:55:09PM +0530, Kishon Vijay Abraham I wrote: >> This series adds PM support to pci-dra7xx so that PCI clocks can be disabled >> during suspend and enabled back during resume without affecting >> PCI functional

Re: [llvm-dev] llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event

2015-08-11 Thread Wangnan (F)
On 2015/8/12 12:57, Alexei Starovoitov wrote: On Wed, Aug 12, 2015 at 10:34:43AM +0800, Wangnan (F) via llvm-dev wrote: Think about a program like this: struct strA { int a; } struct strB { int b; } int func() { struct strA a; struct strB b; a.a = 1; b.b = 2; bpf_output(gettyp

Re: [PATCH V11 4/5] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-11 Thread Ard Biesheuvel
On 11 August 2015 at 23:57, Matt Fleming wrote: > On Sat, 08 Aug, at 10:18:52AM, Jonathan (Zhixiong) Zhang wrote: >> From: "Jonathan (Zhixiong) Zhang" >> >> Table 8 of UEFI 2.5 section 2.3.6.1 defines mappings from EFI >> memory types to MAIR attribute encodings for arm64. >> >> If the physical a

[PATCH] serial: max310x: Fix out of bounds access

2015-08-11 Thread Su Kang Yin
Max310x driver supports up to 4 UART devices but array size of "struct max310x_one" is set to 1. That leads to out of bounds access on UART port registration. This patch fixed it by increase the array size to 4 which is maximum supported UART. --- drivers/tty/serial/max310x.c | 5 - 1 file ch

Re: [Qemu-devel] [PATCH 19/23] userfaultfd: activate syscall

2015-08-11 Thread Bharata B Rao
On Tue, Aug 11, 2015 at 03:48:26PM +0200, Andrea Arcangeli wrote: > Hello Bharata, > > On Tue, Aug 11, 2015 at 03:37:29PM +0530, Bharata B Rao wrote: > > May be it is a bit late to bring this up, but I needed the following fix > > to userfault21 branch of your git tree to compile on powerpc. > >

Information on Winning prize

2015-08-11 Thread Facebook Notification
-- Dear Facebook Winner, We Have Received your Response and would like to congratulate you once again. You have just won yourself the sum of £800,000 (Eight Hundred Thousand British Pounds Sterling) in the ongoing Facebook 2015 Lottery Promotion. Further more your details( Facebook account)

Re: linux-next: manual merge of the crypto tree with the imx-mxs tree

2015-08-11 Thread Herbert Xu
On Wed, Aug 12, 2015 at 01:22:39PM +1000, Stephen Rothwell wrote: > > Today's linux-next merge of the crypto tree got a conflict in: > > arch/arm/configs/imx_v6_v7_defconfig > > between commit: > > 351265f46291 ("ARM: imx_v6_v7_defconfig: build in audio driver") > > from the imx-mxs tree a

[PATCH v1] mmc: block: skip trim for some kingston eMMCs

2015-08-11 Thread Shawn Lin
For some mass production of kingston eMMCs which adopt Phison's firmware will meet an unrecoverable data conrruption occasionally if performing trim due to a firmware bug confirmed by vendor. We found it on Intel-C3230RK platform. So we add fixup of broken trim for it. Signed-off-by: Shawn Lin -

[PATCH v1] mmc: block: Fix coding style issues

2015-08-11 Thread Shawn Lin
This patch fixes the following issues reported by checkpatch.pl: - Missing a blank line after declarations - line over 80 characters - use kstrtoul instead of simple_strtoul to fix warning massage: "simple_strtoul is obsolete, use kstrtoul instead" - unnecessary braces {} for single statement blo

linux-next: manual merge of the xen-tip tree with the tip tree

2015-08-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got a conflict in: arch/x86/xen/enlighten.c between commit: 9261e050b686 ("x86/asm/tsc, x86/paravirt: Remove read_tsc() and read_tscp() paravirt hooks") from the tip tree and commit: cd6f350a5460 ("xen/PMU: Initialization code for Xe

Re: [PATCH 2/2 v2] f2fs: skip checkpoint if there is no dirty segments

2015-08-11 Thread Jaegeuk Kim
Change log from v1: - fix skipping gc incorrectly >From 06f90d3757a6b7ff524cc112168488f31bbf830f Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 11 Aug 2015 21:59:49 -0700 Subject: [PATCH] f2fs: skip checkpoint if there is no dirty and prefree segments We should avoid needless checkpoint

Re: [RFC PATCH v1] mmc: sdhci-of-arasan: Add the support for sdhci-5.1

2015-08-11 Thread Michal Simek
+linux-mmc On 08/11/2015 04:53 PM, Michal Simek wrote: > On 08/11/2015 09:46 AM, Shawn Lin wrote: >> This patch adds the compatible string in sdhci-of-arasan.c to >> support sdhci-arasan5.1 version of controller. No documented >> controller IP version is found in the TRM, so we use ths version >>

Re: [PATCH 2/3] staging: lustre: Add blank line after variable declaration

2015-08-11 Thread Sudip Mukherjee
On Tue, Aug 11, 2015 at 09:32:30PM +0800, Swee Hua Law wrote: > Add blank line after variable declaration > > Signed-off-by: Swee Hua Law > --- > drivers/staging/lustre/lustre/llite/lloop.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/staging/lustre/lustre/llite/lloop.c

Re: [PATCH] power: align wakeup_sources format

2015-08-11 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2015 at 12:31:14PM +0800, check.ker...@gmail.com wrote: > From: yangdongdong Use the same name here as you used for the signed-off-by: line please. Please fix and resend. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

[PATCH v16 2/4] ARM: power-domain: rockchip: add all the domain type on RK3288 SoCs

2015-08-11 Thread Caesar Wang
According to a description from TRM, the following table lists all the power domains. - |VD_CORE | |VD_LOGIC| PD_VIO | | | |---| | | | |

Re: [llvm-dev] llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event

2015-08-11 Thread Alexei Starovoitov
On Wed, Aug 12, 2015 at 10:34:43AM +0800, Wangnan (F) via llvm-dev wrote: > > Think about a program like this: > > struct strA { int a; } > struct strB { int b; } > int func() { > struct strA a; > struct strB b; > > a.a = 1; > b.b = 2; > bpf_output(gettype(a), &a); > bpf_output(getty

[PATCH] net: Use SK_MEM_QUANTUM as minimum for tcp/udp rmem/wmem

2015-08-11 Thread Calvin Owens
Commit 8133534c760d4083 ("net: limit tcp/udp rmem/wmem to SOCK_{RCV,SND}BUF_MIN") modified four sysctls to enforce that the values written to them are not less than SOCK_MIN_{RCV,SND}BUF. That change causes 4096 (or SK_MEM_QUANTUM) to no longer be accepted as a valid value for 'min' in tcp_wmem an

[PATCH] crypto: fix simple_return.cocci warnings

2015-08-11 Thread kbuild test robot
drivers/crypto/qat/qat_common/adf_sriov.c:258:1-4: WARNING: end returns can be simpified and declaration on line 212 can be dropped Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Tadeusz Str

[PATCH v16 4/4] ARM: dts: add the support power-domain node on RK3288 SoCs

2015-08-11 Thread Caesar Wang
We can add more domains node in the future. This patch add the needed clocks into power-controller. As the discuess about all the device clocks being listed in the power-domains itself. There are several reasons as follows: Firstly, the clocks need be turned off to save power when the system ente

[PATCH v16 3/4] soc: rockchip: power-domain: Add power domain driver

2015-08-11 Thread Caesar Wang
This driver is found on RK3288 SoCs. In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power of the whole chip. PMU can work in the Low Power Mode by setting

[PATCH v16 1/4] dt-bindings: add document of Rockchip power domain

2015-08-11 Thread Caesar Wang
This add the necessary binding documentation for the power domain found on Rockchip Socs. Signed-off-by: jinkun.hong Signed-off-by: Caesar Wang --- Changes in v16: - remove the pmu node. Series-changes:9 - add document decription. Series-changes: 8 - document go back to v2. Series-changes: 3 -

[PATCH v16 0/4] ARM: rk3288: Add PM Domain support

2015-08-11 Thread Caesar Wang
Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288 SoCs. Verified on url = https://chromium.googlesource.com/chromiumos/third_party/kernel/+/v3.14 localhost / # cat /sys/kernel/debug/pm_genpd/pm_genpd_summary domain status

Re: [PATCH v8 00/21] Compile-time stack validation

2015-08-11 Thread Josh Poimboeuf
On Tue, Aug 11, 2015 at 04:31:07PM -0500, Chris J Arges wrote: > Josh, > > I've applied and tried to build your patchset against the latest > mainline kernel with the following config: > http://paste.ubuntu.com/12058017/ > > I can build if I disable CONFIG_STACK_VALIDATION, then re-enable it > af

Re: [PATCH v5 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-08-11 Thread Ming Lin
On Tue, 2015-08-11 at 20:24 -0400, Martin K. Petersen wrote: > > "Ming" == Ming Lin writes: > > Ming> Do you still agree we cap discard to 2G as an interim solution? > > I can live with the 2G cap for 4.3 but would like to see it fixed > properly in 4.4. Sure. I'd like to work on the fix.

[PATCH v3 2/2] ARM: dts: ls1021a: add wakeup device ftm0 node for ls1021a

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng Add ftm0 node, cause of ftm0 can be set as a alarm before system going to deep sleep. Signed-off-by: Wang Dongsheng Signed-off-by: Alison Wang --- *V3* - No changes. *V2* - Add my SoB. - Use "ARM:" as subject prefix. diff --git a/arch/arm/boot/dts/ls1021a-qds.dts b/arch

[PATCH] usb: core: hub: Removed some warnings generated by checkpatch.pl

2015-08-11 Thread Chase Metzger
Removed some checkpatch.pl warnings saying there was an unwanted space between function names and their arguments. Signed-off-by: Chase Metzger --- drivers/usb/core/hub.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/usb/core/hub.c b/drive

[PATCH] power: align wakeup_sources format

2015-08-11 Thread check.kernel
From: yangdongdong This aligns every column of elements in wakeup_sources to conveniently check any specific column for suspicious power consumption wakeup source or for other easily readable purpose. Signed-off-by: Andy Yang Signed-off-by: Linghua Gu --- drivers/base/power/wakeup.c | 4 ++--

Re: [PATCH] MAINTAINERS: The keyrings mailing list has moved

2015-08-11 Thread James Morris
On Tue, 11 Aug 2015, David Howells wrote: > The keyrings mailing list has moved to keyri...@vger.kernel.org > > Signed-off-by: David Howells Applied. -- James Morris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.

[PATCH v3 1/2] Documentation: DT: FTM: add FTM0 be used as alarm timer

2015-08-11 Thread Dongsheng Wang
From: Wang Dongsheng In freescale layerscape platform there is only FTM0 can be used as alarm timer to wake up system. So add FTM0 description for devicetree document. Signed-off-by: Wang Dongsheng --- V3: Include this patch in V3. diff --git a/Documentation/devicetree/bindings/timer/fsl,ftm-t

Re: [GIT PULL] MODSIGN: Use PKCS#7 for module signatures [ver #7a]

2015-08-11 Thread James Morris
On Tue, 11 Aug 2015, David Howells wrote: > Hi James, > > Can you pull this into security/next please? Its aim is twofold: firstly, > make the module signatures of PKCS#7/CMS format rather than a home-brewed > format and secondly to pave the way for use of the signing code for > firmware signatu

[PATCH] Revert "drm/nouveau/fifo/gk104: kick channels when deactivating them"

2015-08-11 Thread Alexandre Courbot
This reverts commit 1addc1264852 This commit seems to cause crashes in gk104_fifo_intr_runlist() by returning 0xbad0da00 when register 0x2a00 is read. Since this commit was intended for GM20B which is not completely supported yet, let's revert it for the time being. Reported-by: Eric Biggers Sig

[PATCH] kmod: correct documentation of return status of request_module

2015-08-11 Thread NeilBrown
if request_module() successfully runs modprobe, but modprobe exits with a non-zero status, then the return value from request_module() will be that (positive) error status. So the return from request_module can be: negative errno zero for success positive exit code. Signed-off-by: NeilBrown

Re: [PATCH 09/10] Define PERF_PMU_TXN_READ interface

2015-08-11 Thread Sukadev Bhattiprolu
Peter Zijlstra [pet...@infradead.org] wrote: | On Sun, Jul 26, 2015 at 10:40:37PM -0700, Sukadev Bhattiprolu wrote: | > @@ -3743,7 +3762,13 @@ static u64 perf_event_aggregate(struct perf_event *event, u64 *enabled, | > lockdep_assert_held(&event->child_mutex); | > | > list_for_each_entry

Re: [ftrace] possible to implement user-space tracers?

2015-08-11 Thread Scotty
Hi Kun, On 08/11/2015 08:42 PM, Kun Huang wrote: > Hi Scotty > > I have read your links. I found the read from 'trace' and the write to > 'trace_marker' are normal read&write which works like proc system. > > I have questions that what's more difference between ftrace and proc? > I just know I

Re: [Ksummit-discuss] [BELATED CORE TOPIC] context tracking / nohz / RCU state

2015-08-11 Thread Lai Jiangshan
On Wed, Aug 12, 2015 at 1:49 AM, Andy Lutomirski wrote: > This is a bit late, but here goes anyway. > > Having played with the x86 context tracking hooks for awhile, I think > it would be nice if core code that needs to be aware of CPU context > (kernel, user, idle, guest, etc) could come up with

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

2015-08-11 Thread check.kernel
From: yangdongdong If system restart after panic, this patch also enables panic and oops messages which in suspend context to be logged into ramoops console buffer where it can be read back at some later point. Signed-off-by: yangdongdong Signed-off-by: gulinghua Signed-off-by: duhui --- fs/

[PATCH][rfc] intel_pstate: Fix user input of min/max to legal policy region

2015-08-11 Thread Chen Yu
In current code, if system is using performance policy, user can modify the max_perf_pct to any values lower than 100: $ grep . /sys/devices/system/cpu/intel_pstate/m*_perf_pct /sys/devices/system/cpu/intel_pstate/max_perf_pct:100 /sys/devices/system/cpu/intel_pstate/min_perf_pct:100 $ echo 80 >

Re: [ftrace] possible to implement user-space tracers?

2015-08-11 Thread Kun Huang
Hi Scotty I have read your links. I found the read from 'trace' and the write to 'trace_marker' are normal read&write which works like proc system. I have questions that what's more difference between ftrace and proc? I just know I could read data as pipeline from ftrace. On Wed, Aug 12, 2015 at

linux-next: build failure after merge of the v4l-dvb tree

2015-08-11 Thread Stephen Rothwell
Hi Mauro, After merging the v4l-dvb tree, today's linux-next build (arm multi_v7_defconfig) failed like this: ERROR (phandle_references): Reference to non-existent node or label "ssc2" ERROR: Input tree has errors, aborting (use -f to force output) scripts/Makefile.lib:293: recipe for target 'a

linux-next: manual merge of the crypto tree with the imx-mxs tree

2015-08-11 Thread Stephen Rothwell
Hi Herbert, Today's linux-next merge of the crypto tree got a conflict in: arch/arm/configs/imx_v6_v7_defconfig between commit: 351265f46291 ("ARM: imx_v6_v7_defconfig: build in audio driver") from the imx-mxs tree and commit: ab86ca0755ec ("ARM: imx_v6_v7_defconfig: Select CAAM") from

[PATCH v2] ACPI / EC: Fix an issue caused by the serialized _Qxx evaluations.

2015-08-11 Thread Lv Zheng
It is proven that Windows evaluates _Qxx handlers in a parallel way. This patch follows this fact, splits _Qxx evaluations from the NOTIFY queue to form a separate queue, so that _Qxx evaluations can be queued up on different CPUs rather than being queued up on a CPU0 bound queue. Event handling re

Re: [PATCH net] netconsole: Check for carrier before calling netpoll_send_udp()

2015-08-11 Thread Jonathan Maxwell
> I personally think that drivers need to synchronize such things > internally. They are the only entity which knows when it's "OK" > to do whatever the netpoll method does, and they are also the only > entity which can properly synchronize such checks. Thanks agreed. I am testing the following i

[PATCH v2] x86/mce: fix failed to reenable cmci when swiching to interrupt mode

2015-08-11 Thread Xie XiuQi
Zhang Liguang report a bug as bellow: 1) system detected cmci storm on current cpu 2) disable cmci interrupt on banks ownd by current cpu, then swiching to poll mode 3) a few minites later, system swiching to interrupt mode on current cpu 4) we expect system to reenable cmci interrupt on banks own

Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event

2015-08-11 Thread Wangnan (F)
On 2015/8/4 3:44, Alexei Starovoitov wrote: [SNIP] I'll post 2 LLVM patches by replying this mail. Please have a look and help me send them to LLVM if you think my code is correct. [SNIP] patch 2: do we really need to hack clang? Can you just define a function that aliases to intrinsic, l

Re: [PATCH v2 3/5] mm/hwpoison: introduce put_hwpoison_page to put refcount for memory error handling

2015-08-11 Thread Wanpeng Li
On 8/12/15 7:24 AM, Andrew Morton wrote: On Mon, 10 Aug 2015 19:28:21 +0800 Wanpeng Li wrote: Introduce put_hwpoison_page to put refcount for memory error handling. ... --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -922,6 +922,27 @@ int get_hwpoison_page(struct page *page) } E

Re: [ftrace] possible to implement user-space tracers?

2015-08-11 Thread Kun Huang
Thank you for your help Scotty :) I'm reading it. On Wed, Aug 12, 2015 at 2:34 AM, Scotty Bauer wrote: > It is possible to trace from userland, Android does it. > > Essentially you need to write your data into > /sys/kernel/debug/tracing/trace_marker > > then read it out of /sys/kernel/debug/trac

Re: [PATCH] printk: rebalance printk

2015-08-11 Thread Pan Xinhui
On 2015年08月12日 10:04, Greg Kroah-Hartman wrote: > On Wed, Aug 12, 2015 at 09:53:58AM +0800, Pan Xinhui wrote: >> Hi, Greg >> thanks for your reply! >> On 2015年08月12日 02:16, Greg Kroah-Hartman wrote: >>> On Tue, Aug 11, 2015 at 07:23:01PM +0800, Pan Xinhui wrote: From: Pan Xinhui >

[Patch v3] align crash_notes allocation to make it be inside one physical page

2015-08-11 Thread Baoquan He
People reported that crash_notes in /proc/vmcore were corrupted and this cause crash kdump failure. With code debugging and log we got the root cause. This is because percpu variable crash_notes are allocated in 2 vmalloc pages. Currently percpu is based on vmalloc by default. Vmalloc can't guarant

Re: [PATCH] x86/mce: fix failed to reenable cmci when swiching to interrupt mode

2015-08-11 Thread Xie XiuQi
On 2015/8/12 2:52, Luck, Tony wrote: Well, ok, but do it differently, please: rename cmci_storm_disable_banks() to cmci_storm_switch_banks(bool on) which turns them on and off. Unless Tony has a better suggestion... I like the boolean argument ... but not the "switch_banks" name. It sounds more

Re: [PATCH] x86/mce: fix failed to reenable cmci when swiching to interrupt mode

2015-08-11 Thread Xie XiuQi
On 2015/8/11 22:46, Borislav Petkov wrote: On Tue, Aug 11, 2015 at 06:09:37PM +0800, Xie XiuQi wrote: Zhang Liguang report a bug as bellow: 1) system detected cmci storm on current cpu 2) disable cmci interrupt on banks ownd by current cpu, then swiching to poll mode 3) a few minites later, sys

Re: [PATCH] printk: rebalance printk

2015-08-11 Thread Greg Kroah-Hartman
On Wed, Aug 12, 2015 at 09:53:58AM +0800, Pan Xinhui wrote: > Hi, Greg > thanks for your reply! > On 2015年08月12日 02:16, Greg Kroah-Hartman wrote: > > On Tue, Aug 11, 2015 at 07:23:01PM +0800, Pan Xinhui wrote: > >> From: Pan Xinhui > >> > >> printk can be called in any context, It's very use

Re: [PATCH v7 5/5] samples/bpf: example of get selected PMU counter value

2015-08-11 Thread Alexei Starovoitov
On 8/6/15 12:02 AM, Kaixu Xia wrote: This is a simple example and shows how to use the new ability to get the selected Hardware PMU counter value. Signed-off-by: Kaixu Xia --- samples/bpf/Makefile | 4 +++ samples/bpf/bpf_helpers.h | 2 ++ samples/bpf/tracex6_kern.c | 26 ++

Re: [PATCH] printk: rebalance printk

2015-08-11 Thread Pan Xinhui
Hi, Greg thanks for your reply! On 2015年08月12日 02:16, Greg Kroah-Hartman wrote: > On Tue, Aug 11, 2015 at 07:23:01PM +0800, Pan Xinhui wrote: >> From: Pan Xinhui >> >> printk can be called in any context, It's very useful to output debug >> info. >> >> But it might cause very bad issues on

Re: [PATCH 1/5] x86, gfp: Cache best near node for memory allocation.

2015-08-11 Thread Jiang Liu
On 2015/8/9 14:15, Tang Chen wrote: > Hi Liu, > > Have you posted your new patches ? > (I mean memory-less node support patches.) Hi Chen, I have rebased my patches to v4.2-rc4, but unfortunately it breaks. Seems there are some changes in x86 NUMA support since 3.17. I need some time to fi

Re: [PATCH v4 0/4] clk: hisilicon: support stub clock

2015-08-11 Thread Leo Yan
Hi Stephen, On Tue, Aug 11, 2015 at 05:38:17PM -0700, Stephen Boyd wrote: > On 08/04, Leo Yan wrote: > > This series adds support for hisilicon stub clock driver. On hi6220, > > the bootloader needs load the firmware image and set info for OPPs; > > after run into kernel, the stub clock driver is

Re: [PATCH v2 2/2] i2c: mediatek: Fixup i2c ack error interrupt handling

2015-08-11 Thread Wolfram Sang
> Or, did I not wait long enough? This. signature.asc Description: Digital signature

Re: [PATCH] printk: rebalance printk

2015-08-11 Thread Pan Xinhui
hi, Peter thanks for your reply! On 2015年08月11日 20:00, Peter Hurley wrote: > On 08/11/2015 07:23 AM, Pan Xinhui wrote: >> From: Pan Xinhui >> >> printk can be called in any context, It's very useful to output debug >> info. >> >> But it might cause very bad issues on some special cases. Fo

[PATCH 2/2] ARM64: dts: vexpress: Use assigned-clock-parents for sp810

2015-08-11 Thread Stephen Boyd
The sp810 clk driver is calling the clk consumer APIs from clk_prepare ops to change the parent to a 1 MHz fixed rate clock for each of the clocks that the driver provides. Use assigned-clock-parents for this instead of doing it in the driver to avoid using the consumer API in provider code. This a

[PATCH 1/2] ARM: dts: vexpress: Use assigned-clock-parents for sp810

2015-08-11 Thread Stephen Boyd
The sp810 clk driver is calling the clk consumer APIs from clk_prepare ops to change the parent to a 1 MHz fixed rate clock for each of the clocks that the driver provides. Use assigned-clock-parents for this instead of doing it in the driver to avoid using the consumer API in provider code. This a

Re: [Patch v3] driver/i2c/mux: Add register-based mux i2c-mux-reg

2015-08-11 Thread Wolfram Sang
> Do I have to add myself to MAINTAINER file for this driver? Do you want to maintain this driver? signature.asc Description: Digital signature

Re: [PATCH v2 2/2] i2c: mediatek: Fixup i2c ack error interrupt handling

2015-08-11 Thread Daniel Kurtz
Hi Wolfram, On Tue, Aug 11, 2015 at 10:55 PM, Wolfram Sang wrote: > On Thu, Aug 06, 2015 at 03:22:11PM +0800, Eddie Huang wrote: >> When occur i2c ack error, i2c controller generate two interrupts, >> first is the ack error interrupt, then the complete interrupt. >> i2c interrupt handler should k

Re: [PATCH] HID: gembird: add new driver to fix Gembird JPD-DualForce 2

2015-08-11 Thread Orivej Desh
This gamepad advertises 5 absolute axis while 4 are actually used. The first Z axis shows some garbage, so it has to be ignored by HID. The second Z axis and the Rz one are actually Rx and Ry. Remap them. We could also just remap and ignore the axis in .input_mapping(). I went ahead with .report_f

[PATCH 2/2] userns,pidns: Force thread group sharing, not signal handler sharing

2015-08-11 Thread Eric W. Biederman
The code that places signals in signal queues computes the uids, gids, and pids at the time the signals are enqueued. Which means that tasks that share signal queues must be in the same pid and user namespaces. Sharing signal handlers is fine, but bizarre. So make the code in fork and userns_in

Re: [PATCH v2 1/5] clk: rockchip: rk3288: Add the clock id of eFuse

2015-08-11 Thread Stephen Boyd
On 08/11, Shunqian Zheng wrote: > From: ZhengShunQian > > The clock id is necessary item, changing it from 0 > then can be referred in driver and device tree. > > Signed-off-by: ZhengShunQian > Reviewed-by: Heiko Stuebner > --- Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is

[PATCH 1/2] unshare: Unsharing a thread does not require unsharing a vm

2015-08-11 Thread Eric W. Biederman
In the logic in the initial commit of unshare made creating a new thread group for a process, contingent upon creating a new memory address space for that process. That is wrong. Two separate processes in different thread groups can share a memory address space and clone allows creation of such

[PATCH 0/2] userns: Creation logic fixes

2015-08-11 Thread Eric W. Biederman
So I have take a good hard stare at the problem, as well as sitting down and writing some test code to verify the code works the way I think it does. The following two patches are how I think this bit of chaos needs to be solved. If folks could take a once over these patches and possibly test th

[BUGFIX PATCH perf/core ] perf-probe: Fix to show lines of sys_ functions correctly

2015-08-11 Thread Masami Hiramatsu
"perf probe --lines sys_poll" shows only the first line of sys_poll, because the SYSCALL_DEFINE macro SYSCALL_DEFINE*(foo,...) { body; } is expanded as below (on debuginfo) static inline int SYSC_foo(...) { body; } int SyS_foo(...) <- is an alias of sys_foo. { return SYSC_foo(

Re: [PATCH] user_ns: use correct check for single-threadedness

2015-08-11 Thread Eric W. Biederman
Oleg Nesterov writes: > On 08/06, Oleg Nesterov wrote: >> >> On 08/05, Eric W. Biederman wrote: >> > >> > So I have to ask. >> >> I hope you are asking someone else, not me ;) I never understood what >> exactly we try to restrict and why. >> >> > Is it possible to rework these checks such that we

Re: [BELATED CORE TOPIC] context tracking / nohz / RCU state

2015-08-11 Thread Andy Lutomirski
On Tue, Aug 11, 2015 at 5:51 PM, Paul E. McKenney wrote: > On Tue, Aug 11, 2015 at 02:52:59PM -0700, Andy Lutomirski wrote: >> On Tue, Aug 11, 2015 at 2:47 PM, Paul E. McKenney >> wrote: >> > On Tue, Aug 11, 2015 at 12:07:54PM -0700, Andy Lutomirski wrote: >> >> On Tue, Aug 11, 2015 at 11:33 AM,

Re: [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm

2015-08-11 Thread Joonyoung Shim
On 08/12/2015 09:28 AM, Krzysztof Kozlowski wrote: > On 11.08.2015 20:28, Joonyoung Shim wrote: >> The clock enable/disable codes for alarm have removed from > > What do you mean in this paragraph? The clock code was removing something? > >> 'commit 24e1455493da ("drivers/rtc/rtc-s3c.c: delete du

RE: [PATCH V6 2/2] mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller.

2015-08-11 Thread Vikas MANOCHA
Hi Marek, > -Original Message- > From: Marek Vasut [mailto:ma...@denx.de] > Sent: Wednesday, August 05, 2015 4:15 PM > To: Vikas MANOCHA > Cc: Graham Moore; linux-...@lists.infradead.org; David Woodhouse; Brian > Norris; linux-kernel@vger.kernel.org; Alan Tull; Dinh Nguyen; Yves > Vanderve

RE: [PATCH v2] staging: fsl-mc: add DPAA2 overview readme

2015-08-11 Thread Stuart Yoder
> -Original Message- > From: Tillmann Heidsieck [mailto:theidsi...@leenox.de] > Sent: Tuesday, August 11, 2015 6:01 AM > To: Yoder Stuart-B08248; gre...@linuxfoundation.org; Rivera Jose-B46482; katz > Itai-RM05202 > Cc: de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org; ag...@suse

Re: [tip:x86/asm] x86/asm/entry/64: Migrate error and IRQ exit work to C and remove old assembly code

2015-08-11 Thread Paul E. McKenney
On Tue, Aug 11, 2015 at 03:59:37PM -0700, Andy Lutomirski wrote: > On Tue, Aug 11, 2015 at 3:49 PM, Frederic Weisbecker > wrote: > > On Tue, Aug 11, 2015 at 03:25:04PM -0700, Andy Lutomirski wrote: > >> Can you explain to me what context tracking does that rcu_irq_enter > >> and vtime_account_irq

Re: [PATCH 3/6] sd: implement the persisten reservation API

2015-08-11 Thread Martin K. Petersen
> "Christoph" == Christoph Hellwig writes: Slightly more verbose patch description would be nice. Code looks OK. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [BELATED CORE TOPIC] context tracking / nohz / RCU state

2015-08-11 Thread Paul E. McKenney
On Tue, Aug 11, 2015 at 02:52:59PM -0700, Andy Lutomirski wrote: > On Tue, Aug 11, 2015 at 2:47 PM, Paul E. McKenney > wrote: > > On Tue, Aug 11, 2015 at 12:07:54PM -0700, Andy Lutomirski wrote: > >> On Tue, Aug 11, 2015 at 11:33 AM, Paul E. McKenney > >> wrote: > >> > On Tue, Aug 11, 2015 at 10:

RE: perf probe -L sys_select or sys_poll

2015-08-11 Thread 平松雅巳 / HIRAMATU,MASAMI
> From: Arnaldo Carvalho de Melo [mailto:a...@kernel.org] > > Hi Masami, > > Have you noticed that sys_select or sys_poll stops after the > first few lines? Please let me know if you need more info than is below. > > [root@zoo ~]# perf probe -L sys_select > > 0 SYSCALL_DEFINE5(

Re: [PATCH 2/6] block: add a API for persistent reservations

2015-08-11 Thread Martin K. Petersen
> "Christoph" == Christoph Hellwig writes: Happy to see a generic interface for this. I wish PR semantics were simpler but the code looks good to me. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubs

Re: [regression] x86/signal/64: Fix SS handling for signals delivered to 64-bit programs breaks dosemu

2015-08-11 Thread Andy Lutomirski
On Tue, Aug 11, 2015 at 5:17 PM, Stas Sergeev wrote: > Hi guys, I wonder how easily the include/uapi/* is being > changed these days. > The patch: > http://lkml.kernel.org/r/405594361340a2ec32f8e2b115c142df0e180d8e.1426193719.git.l...@kernel.org > breaks dosemu (and perhaps everyone else who used

Re: [PATCH v4 0/4] clk: hisilicon: support stub clock

2015-08-11 Thread Stephen Boyd
On 08/04, Leo Yan wrote: > This series adds support for hisilicon stub clock driver. On hi6220, > the bootloader needs load the firmware image and set info for OPPs; > after run into kernel, the stub clock driver is used to communicate > w/t firmware for cpu dynamic frequency scaling. > > In patch

Re: [PATCH 1/6] block: cleanup blkdev_ioctl

2015-08-11 Thread Martin K. Petersen
> "Christoph" == Christoph Hellwig writes: Christoph> Split out helpers for all non-trivial ioctls to make this Christoph> function simpler, and also start passing around a pointer Christoph> version of the argument, as that's what most ioctl handlers Christoph> actually need. Looks good. R

Re: [PATCH 4.1 099/267] phy: twl4030-usb: remove incorrect pm_runtime_get_sync() in probe function.

2015-08-11 Thread Felipe Balbi
Hi, On Wed, Aug 12, 2015 at 08:09:27AM +1000, NeilBrown wrote: > On Tue, 11 Aug 2015 23:34:17 +0200 Alexander Holler > wrote: > > > Am 11.08.2015 um 10:29 schrieb NeilBrown: > > > > > With the current mainline code (plus my twl4030 charger enhancements, > > > which are not deeply relevant), the

Re: [PATCH 4/4] rtc: s3c: enable/disable clocks for alarm

2015-08-11 Thread Krzysztof Kozlowski
On 11.08.2015 20:28, Joonyoung Shim wrote: > The clock enable/disable codes for alarm have removed from What do you mean in this paragraph? The clock code was removing something? > 'commit 24e1455493da ("drivers/rtc/rtc-s3c.c: delete duplicate clock Remove the 'apostrophe. > control")' and the

  1   2   3   4   5   6   7   8   9   >