Re: [PATCH v4 1/6] sched/fair: Fix reschedule which is generated on throttled cfs_rq

2014-10-24 Thread Kirill Tkhai
Hi, Wanpeng, the commit commentary confuses, I'm agree. Really it's just a cleanup. On Пт, 2014-10-24 at 07:27 +0800, Wanpeng Li wrote: Hi Kirill, 8/6/14, 4:06 PM, Kirill Tkhai: (sched_entity::on_rq == 1) does not guarantee the task is pickable; changes on throttled cfs_rq must not lead to

Re: [PATCH 05/16] perf tools: Add facility to export data in database-friendly way

2014-10-24 Thread Namhyung Kim
On Thu, 23 Oct 2014 13:45:13 +0300, Adrian Hunter wrote: This patch introduces an abstraction for exporting sample data in a database-friendly way. The abstraction does not implement the actual output. A subsequent patch takes this facility into use for extending the script interface. The

Re: [PATCH v2] MAINTAINERS: Add myself as reviewer for Zynq

2014-10-24 Thread Michal Simek
On 10/23/2014 06:29 PM, Soren Brinkmann wrote: Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com --- v2: - I removed the additional 'F' entries MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0484f2c526f0..8b495a27 100644

Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

2014-10-24 Thread Guenter Roeck
On 10/24/2014 05:52 AM, Florian Fainelli wrote: Le 23/10/2014 22:40, Guenter Roeck a écrit : On 10/23/2014 10:03 PM, David Miller wrote: From: Guenter Roeck li...@roeck-us.net Date: Wed, 22 Oct 2014 22:06:41 -0700 On 10/22/2014 09:37 PM, Florian Fainelli wrote: 2014-10-22 21:03 GMT-07:00

Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

2014-10-24 Thread David Miller
From: Guenter Roeck li...@roeck-us.net Date: Thu, 23 Oct 2014 22:40:59 -0700 I see two options for that: - Add select HWMON to the NET_DSA Kconfig entry. Example is Broadcom TIGON3 driver. - Add a DSA_HWMON Kconfig entry to define the dependencies and to let the user select

[PATCH] f2fs: revisit inline_data to avoid data races and potential bugs

2014-10-24 Thread Jaegeuk Kim
This patch simplifies the inline_data usage with the following rule. 1. inline_data is set during the file creation. 2. If new data is requested to be written ranges out of inline_data, f2fs converts that inode permanently. 3. There is no cases which converts non-inline_data inode to inline_data.

[PATCH v1 0/3] Enable user helper interface for efi capsule update

2014-10-24 Thread Kweh Hock Leong
From: Kweh, Hock Leong hock.leong.k...@intel.com Hi Guys, This patchset is created on top of efi: Capsule update support patch: http://permalink.gmane.org/gmane.linux.kernel.efi/4837 It leverages the request_firmware_nowait() to expose the user helper interface for user to upload the capsule

[PATCH v1 1/3] firmware loader: Introduce new API - request_firmware_abort()

2014-10-24 Thread Kweh Hock Leong
From: Kweh, Hock Leong hock.leong.k...@intel.com Besides aborting through user helper interface, a new API request_firmware_abort() allows kernel driver module to abort the request_firmware() / request_firmware_nowait() when they are no longer needed. It is useful for cancelling an outstanding

[PATCH v1 2/3] firmware loader: fix hung task warning dump

2014-10-24 Thread Kweh Hock Leong
From: Kweh, Hock Leong hock.leong.k...@intel.com When using request_firmware_nowait() with FW_ACTION_NOHOTPLUG param to expose user helper interface, if the user do not react immediately, after 120 seconds there will be a hung task warning message dumped as below: [ 3000.784235] INFO: task

[PATCH v1 3/3] efi: Capsule update with user helper interface

2014-10-24 Thread Kweh Hock Leong
From: Kweh, Hock Leong hock.leong.k...@intel.com Introducing a kernel module to expose user helper interface for user to upload capsule binaries. This module leverage the request_firmware_nowait() to expose an interface to user. Example steps to load the capsule binary: 1.) echo 1

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-24 Thread Perry Hung
Looks good Russ, just a minor fix: - /* Attempt to set Vendor ID to 0 */ - eeprom_data[1] = 0; - - /* Calculate new checksum to avoid bricking devices */ - checksum = ftdi_checksum(eeprom_data, eeprom_size); - - /* Verify EEPROM programming behavior/nonbehavior */ -

[RFCv2 2/3] staging: ion: debugfs to shrink pool

2014-10-24 Thread Gioh Kim
This patch creates debugfs files, /sys/kernel/debug/ion/heaps/system_shrink, to shrink pool or get pool size. Reading the file returns pool size and writing occurs to shrink pool. Signed-off-by: Gioh Kim gioh@lge.com --- drivers/staging/android/ion/ion.c | 31

[RFCv2 3/3] staging: ion: limit pool size

2014-10-24 Thread Gioh Kim
This patch limits pool size by page unit. Signed-off-by: Gioh Kim gioh@lge.com --- drivers/staging/android/ion/Kconfig |4 drivers/staging/android/ion/ion_page_pool.c | 26 -- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git

[RFCv2 0/3] enable pool shrinking in page unit

2014-10-24 Thread Gioh Kim
Hello, Current shrinking is not page unit, block unit. But shrinker returns the pool size in page unit, so it is confused. And there is no way to control pool size and shrink pool directly. I have 3 patches: 1. Patch 1/3: make pool be shrinked by page unit This patch trys to shrink pool in

[RFCv2 1/3] staging: ion: shrink page-pool by page unit

2014-10-24 Thread Gioh Kim
This patch shrink page-pool by page unit. Signed-off-by: Gioh Kim gioh@lge.com --- drivers/staging/android/ion/ion_page_pool.c |5 +++-- drivers/staging/android/ion/ion_system_heap.c |7 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v4 4/7] irqchip: gic: Support hierarchy irq domain.

2014-10-24 Thread Yingjoe Chen
Sorry, I missed Marc's patch while working on this version and that did address something I missed in my version. I'd like to replace 4/7 with this one. Joe.C == Add support to use gic as a parent for stacked irq domain. Signed-off-by: Yingjoe Chen

[PATCH v3 0/3] i2c/at91: add support PM functions

2014-10-24 Thread Wenyou Yang
Hi Wolfram, The patches is to add the PM functions support for the at91 i2c controller. It is based on the i2c/for-next branch of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git. Best Regards, Wenyou Yang -- Change log: v2.0 According to the advice from Kevin Hilman, 1./

[PATCH v3 2/3] i2c/at91: add support for system PM

2014-10-24 Thread Wenyou Yang
Signed-off-by: Wenyou Yang wenyou.y...@atmel.com --- drivers/i2c/busses/i2c-at91.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index a25fb5e..6a84a2a 100644 --- a/drivers/i2c/busses/i2c-at91.c +++

[PATCH v3 1/3] i2c/at91: add support for runtime PM

2014-10-24 Thread Wenyou Yang
Drivers should put the device into low power states proactively whenever the device is not in use. Thus implement support for runtime PM and use the autosuspend feature to make sure that we can still perform well in case we see lots of i2c traffic within short period of time. Signed-off-by:

[PATCH v3 3/3] i2c/at91: adopt pinctrl support

2014-10-24 Thread Wenyou Yang
Amend the i2c at91 pin controller to optionally take a pin control handle and set the state of the pins to: - default on boot, resume and before performing an transfer - sleep on suspend() This should make it possible to optimize energy usage for the pins both for the suspend/resume cycle

Re: [RFC PATCH 3/3] i915: Expose PMU for Observation Architecture

2014-10-24 Thread Chris Wilson
On Fri, Oct 24, 2014 at 03:33:14AM +0100, Robert Bragg wrote: On Thu, Oct 23, 2014 at 8:47 AM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Wed, Oct 22, 2014 at 04:28:51PM +0100, Robert Bragg wrote: + /* XXX: Not sure that this is really acceptable... + * + *

Re: [PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-24 Thread Steffen Trumtrar
Hi! On Thu, Oct 23, 2014 at 06:51:06PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com (...) diff --git a/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt new file

Re: Regression: USB mouse only recognized w/o commit ACPI / PM: Always enable wakeup GPEs ...

2014-10-24 Thread Jörg-Volker Peetz
Hi, Rafael J. Wysocki wrote on 10/24/2014 00:39: On 10/24/2014 12:20 AM, Jörg-Volker Peetz wrote: Hi, Hi, on an HP Pavilion dv7 notebook with stable kernel 3.17.1 a USB mouse is only recognized w/o commit f35cec27d1037ff0d772edfd6e7b1e92cdc0 ACPI / PM: Always enable wakeup GPES ...,

[PATCH v2 1/2] ima: check xattr value length in ima_inode_setxattr()

2014-10-24 Thread Dmitry Kasatkin
ima_inode_setxattr() can be called with no value. Function does not check the length so that following command can be used to produce kernel oops: setfattr -n security.ima FOO. This patch fixes it. Changes in v2: * testing validity of xattr type * allow setting hash only in fix or log mode (Mimi)

[PATCH v2 2/2] evm: check xattr value length in evm_inode_setxattr()

2014-10-24 Thread Dmitry Kasatkin
evm_inode_setxattr() can be called with no value. Function does not check the length so that following command can be used to produce kernel oops: setfattr -n security.evm FOO. This patch fixes it. Changes in v2: * testing for validity of xattr type [ 1106.396921] BUG: unable to handle kernel

[PATCH v2 0/2] integrity fixes

2014-10-24 Thread Dmitry Kasatkin
Hi, At first I did not notice Mimi's email with suggestion to allow setting hash only in fix mode. Here is a next set with checking validity of xattr type and allowing setting hash only in permissive modes such as fix and log. - Dmitry Dmitry Kasatkin (2): ima: check xattr value length in

RE: [PATCH v2] ASoC: atmel_ssc_dai: Match the CMR divider only in full duplex.

2014-10-24 Thread Peter Rosin
Hi Peter, Thanks for your patch. And thanks for the Ack! Btw, do you use git send-email command to send the patch? No, I didn't, git format-patch and paste into the mail body. Was there some whitespace issues with the patch? Cheers, Peter -- To unsubscribe from this list: send the

Re: GPIO bindings guidelines (Was: Re: [PATCH v5 10/12] gpio: Support for unified device properties interface)

2014-10-24 Thread Alexandre Courbot
On Fri, Oct 24, 2014 at 6:51 AM, Rafael J. Wysocki r...@rjwysocki.net wrote: On Thursday, October 23, 2014 03:56:55 PM Mika Westerberg wrote: On Thu, Oct 23, 2014 at 01:21:06AM +0200, Rafael J. Wysocki wrote: OK, would the below make sense, then (completely untested, on top of the v6 of the

Re: [GIT PULL] overlay filesystem v25

2014-10-24 Thread Miklos Szeredi
On Fri, Oct 24, 2014 at 5:24 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Fri, Oct 24, 2014 at 03:20:55AM +0100, Al Viro wrote: Why the hell do you hold -i_mutex across the entire opening of underlying directory? All you need is to serialize one assignment; the side that loses the race will

Re: [PATCH 01/16] perf tools: Add id index

2014-10-24 Thread Adrian Hunter
On 24/10/14 00:08, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 23, 2014 at 01:45:09PM +0300, Adrian Hunter escreveu: Add an index of the event identifiers. This is needed to queue Instruction Trace samples according to the mmap buffer from which they were recorded. This gets difficult to

Re: [GIT PULL] overlay filesystem v25

2014-10-24 Thread Geert Uytterhoeven
Hi Al, On Fri, Oct 24, 2014 at 5:24 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Fri, Oct 24, 2014 at 03:20:55AM +0100, Al Viro wrote: Why the hell do you hold -i_mutex across the entire opening of underlying directory? All you need is to serialize one assignment; the side that loses the

Re: [RFC][PATCH 4/6] SRCU free VMAs

2014-10-24 Thread Peter Zijlstra
On Fri, Oct 24, 2014 at 11:33:58AM +0800, Lai Jiangshan wrote: On 10/23/2014 07:03 PM, Peter Zijlstra wrote: On Thu, Oct 23, 2014 at 06:14:45PM +0800, Lai Jiangshan wrote: +struct vm_area_struct *find_vma_srcu(struct mm_struct *mm, unsigned long addr) +{ + struct vm_area_struct

[PATCH v7 0/3] ARM: rk3288 : Add PM Domain support

2014-10-24 Thread jinkun.hong
From: jinkun.hong jinkun.h...@rock-chips.com Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288. https://chromium-review.googlesource.com/#/c/220253/9 This is the GPU driver, add the following information in DT, and it can support the PMDOMAIN. gpu:

[PATCH v7 2/3] dt-bindings: add document of Rockchip power domain

2014-10-24 Thread jinkun.hong
From: jinkun.hong jinkun.h...@rock-chips.com Signed-off-by: Jack Dai jack@rock-chips.com Signed-off-by: jinkun.hong jinkun.h...@rock-chips.com --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - DT structure has changed Changes in v2: - move

[PATCH v7 3/3] ARM: dts: add rk3288 power-domain node

2014-10-24 Thread jinkun.hong
From: jinkun.hong jinkun.h...@rock-chips.com Signed-off-by: Jack Dai jack@rock-chips.com Signed-off-by: jinkun.hong jinkun.h...@rock-chips.com --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Decomposition power-controller, changed to

Re: [RFC 1/2] PM / Domains: Power on domain early during system resume

2014-10-24 Thread Krzysztof Kozlowski
On czw, 2014-10-23 at 19:20 +0300, Grygorii Strashko wrote: Hi Krzysztof, On 10/23/2014 04:48 PM, Krzysztof Kozlowski wrote: When resuming the system the power domain has to be powered on early so any runtime PM aware devices could resume. This fixes following scenario reproduced on

[PATCH v7 1/3] power-domain: add power domain drivers for Rockchip platform

2014-10-24 Thread jinkun.hong
From: jinkun.hong jinkun.h...@rock-chips.com Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288. Signed-off-by: Jack Dai jack@rock-chips.com Signed-off-by: jinkun.hong jinkun.h...@rock-chips.com --- Changes in v7: - Delete unused variables

[GIT PULL] Thermal management updates for 3.18-rc2

2014-10-24 Thread Zhang Rui
Hi, Linus, Sorry that I missed the merge window as there is a bug found in the last minute, and I have to fix it and wait for the code to be tested in linux-next tree for a few days. Now the buggy patch has been dropped entirely from my next branch. Thus I hope those changes can still be merged

Re: [PATCH resend] ARM: perf: remove useless return and check of idx in counter handling

2014-10-24 Thread Chai Wen
Hi Will Ping... thanks chai wen On 10/22/2014 08:16 PM, chai wen wrote: Idx sanity check was once implemented separately in these counter handling functions and then return value was treated as a judgement. armv7_pmnc_select_counter() armv7_pmnc_enable_counter()

[PATCH v5 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-24 Thread Daniel Kurtz
The rk3288 has several iommus. Each iommu belongs to a single master device. There is one device (ISP) that has two slave iommus, but that case is not yet supported by this driver. At subsys init, the iommu driver registers itself as the iommu driver for the platform bus. The master devices

[PATCH v5 3/3] ARM: dts: rk3288: add VOP iommu nodes

2014-10-24 Thread Daniel Kurtz
Add device nodes for the VOP iommus. Device nodes for other iommus will be added in later patches. The iommu nodes use the #iommu-cells property as described in: Documentation/devicetree/bindings/iommu/iommu.txt Signed-off-by: Daniel Kurtz djku...@chromium.org Signed-off-by: Simon Xue

[PATCH v5 2/3] dt-bindings: iommu: Add documentation for rockchip iommu

2014-10-24 Thread Daniel Kurtz
Add binding documentation for Rockchip IOMMU. Signed-off-by: Daniel Kurtz djku...@chromium.org Signed-off-by: Simon Xue x...@rock-chips.com --- .../devicetree/bindings/iommu/rockchip,iommu.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644

Re: GPIO bindings guidelines (Was: Re: [PATCH v5 10/12] gpio: Support for unified device properties interface)

2014-10-24 Thread Mika Westerberg
On Thu, Oct 23, 2014 at 11:51:59PM +0200, Rafael J. Wysocki wrote: OK, let's try to take that a bit farther. :-) With the (untested) patch below applied (which is a replacement for the one sent previously), the driver can use static tables like these: static struct acpi_gpio_params

[QA-TCP] How to send tcp small packages immediately?

2014-10-24 Thread Zhangjie (HZ)
Hi, I use netperf to test the performance of small tcp package, with TCP_NODELAY set : netperf -H 129.9.7.164 -l 100 -- -m 512 -D Among the packages I got by tcpdump, there is not only small packages, also lost of big ones (skb-len=65160). IP 129.9.7.186.60840 129.9.7.164.34607: tcp 65160

[PATCH] PM / Sleep: fix recovery during s2ram/hibernation

2014-10-24 Thread Imre Deak
Atm, if one of the dev_pm_ops::freeze callbacks fails during the QUIESCE phase we don't rollback things correctly calling the thaw and complete callbacks. This could leave some devices in a suspended state in case of an error during resuming from hibernation. Also if an asynchronous suspend_late

Re: [PATCH v5 18/20] perf: Allocate ring buffers for inherited per-task kernel events

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:46PM +0300, Alexander Shishkin wrote: Normally, per-task events can't be inherited parents' ring buffers to avoid multiple events contending for the same buffer. And since buffer allocation is typically done by the

Re: [PATCH v5 11/20] x86: perf: Intel PT and LBR/BTS are mutually exclusive

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:39PM +0300, Alexander Shishkin wrote: Intel PT cannot be used at the same time as LBR or BTS and will cause a general protection fault if they are used together. In order to avoid fixing up GPs in the fast path, instead

Re: [GIT PULL 0/1] perf/urgent fix

2014-10-24 Thread Ingo Molnar
* Arnaldo Carvalho de Melo a...@kernel.org wrote: Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 3b10ea7f922b538ba5dcb3d979a6b6b4d07daae2: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into

Re: unaligned accesses in SLAB etc.

2014-10-24 Thread Meelis Roos
I can reproduce and I know what the problem is, fixed patch coming up shortly. Ok, please test this patch below. Thank you, it works fine on my V210, V440 and newly added V245. -- Meelis Roos (mr...@linux.ee) -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: [PATCH v5 12/20] x86: perf: intel_pt: Intel PT PMU driver

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:40PM +0300, Alexander Shishkin wrote: +if (test_cpu_cap(boot_cpu_data, X86_FEATURE_INTEL_PT)) { +for (i = 0; i PT_CPUID_LEAVES; i++) +cpuid_count(20, i, +

Re: [PATCH v5 12/20] x86: perf: intel_pt: Intel PT PMU driver

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:40PM +0300, Alexander Shishkin wrote: +++ b/arch/x86/kernel/cpu/perf_event_intel.c @@ -1528,6 +1528,14 @@ again: } /* + * Intel PT + */ +if (__test_and_clear_bit(55, (unsigned long

Re: introduce task_rcu_dereference?

2014-10-24 Thread Kirill Tkhai
В Чт, 23/10/2014 в 20:18 +0200, Oleg Nesterov пишет: On 10/23, Kirill Tkhai wrote: I'm agree generic helper is better. But probe_slab_address() has a sence if we know that SDBR is worse in our subject area. And I still think it is worse. Less of code is easier to support :)

Re: [PATCH v5 12/20] x86: perf: intel_pt: Intel PT PMU driver

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:40PM +0300, Alexander Shishkin wrote: +static bool pt_event_valid(struct perf_event *event) +{ +u64 config = event-attr.config; + +/* admin can set any packet generation parameters */ +if

Re: [RFC][PATCH 0/6] Another go at speculative page faults

2014-10-24 Thread Ingo Molnar
* Peter Zijlstra pet...@infradead.org wrote: On Thu, Oct 23, 2014 at 06:40:05PM +0800, Lai Jiangshan wrote: On 10/22/2014 01:56 AM, Peter Zijlstra wrote: On Tue, Oct 21, 2014 at 08:09:48PM +0300, Kirill A. Shutemov wrote: It would be interesting to see if the patchset affects

Re: [RESUBMIT PATCH v4 7/8] regulator: sky81452: Add compatible string for device binding

2014-10-24 Thread Gyungoh Yoo
On Thu, Oct 23, 2014 at 02:01:03PM +0100, Mark Brown wrote: On Thu, Oct 23, 2014 at 12:14:43PM +0900, Gyungoh Yoo wrote: So, what do you think about DT like below? sky81452@2c { compatible = skyworks,sky81452; reg = 0x2c; backlight { compatible =

[tip:perf/urgent] perf diff: Add missing hists__init() call at tool start

2014-10-24 Thread tip-bot for Kan Liang
Commit-ID: 9ab1f50876dbb8b962db058259be7aae920d4c25 Gitweb: http://git.kernel.org/tip/9ab1f50876dbb8b962db058259be7aae920d4c25 Author: Kan Liang kan.li...@intel.com AuthorDate: Wed, 22 Oct 2014 15:02:41 -0400 Committer: Arnaldo Carvalho de Melo a...@redhat.com CommitDate: Wed, 22 Oct

Re: hung tasks in 3.18.0-rc1-00221-gc3351df

2014-10-24 Thread Meelis Roos
Config is below. [ 960.346611] INFO: task kworker/u16:0:6 blocked for more than 120 seconds. [ 960.346616] Tainted: GW 3.18.0-rc1-00221-gc3351df #150 [ 960.346618] echo 0 /proc/sys/kernel/hung_task_timeout_secs disables this message. [ 960.346621] kworker/u16:0

[PATCH v2] PM / Sleep: fix recovery during s2ram/hibernation

2014-10-24 Thread Imre Deak
Atm, if one of the dev_pm_ops::freeze callbacks fails during the QUIESCE phase we don't rollback things correctly calling the thaw and complete callbacks. This could leave some devices in a suspended state in case of an error during resuming from hibernation. Also if an asynchronous suspend_late

Re: [PATCH v5 12/20] x86: perf: intel_pt: Intel PT PMU driver

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: +/* make negative table index stand for the last table entry */ +#define TOPA_ENTRY(t, i) ((i) == -1 ? (t)-table[(t)-last] : (t)-table[(i)]) code does not match comment; negative would be: i 0, not i == -1. Indeed. Something like: ({ if (i 0)

Re: [PATCH v5 12/20] x86: perf: intel_pt: Intel PT PMU driver

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:40PM +0300, Alexander Shishkin wrote: +if ((pt_cap_get(PT_CAP_topa_multiple_entries) + topa-table[i].stop) +|| topa-table[i].end) +

Re: [PATCH 00/12] rtc: omap: fixes and power-off feature

2014-10-24 Thread Johan Hovold
On Thu, Oct 23, 2014 at 01:55:13PM -0500, Felipe Balbi wrote: On Wed, Oct 22, 2014 at 12:23:05PM +0200, Johan Hovold wrote: On Wed, Oct 15, 2014 at 12:08:32PM -0500, Felipe Balbi wrote: On Wed, Oct 15, 2014 at 07:06:28PM +0200, Johan Hovold wrote: On Wed, Oct 15, 2014 at 11:55:02AM

RFE: kernel message rport-2:0-10: blocked FC remote port time out: removing rport

2014-10-24 Thread Ulrich Windl
Hi! I'd like to point out that the following Fibre CHannel error message is of little practical use, because it lacks essential information: kernel: [ 68.406963] rport-2:0-10: blocked FC remote port time out: removing rport (Seen in the current SLES11 SP3 kernel 3.0.101-0.40-default) As

Re: [STLinux Kernel] [PATCH 1/3] media: st-rc: move to using reset_control_get_optional

2014-10-24 Thread Peter Griffin
Hi Srini, Sorry seems I never replied to this. drivers/media/rc/st_rc.c:281:15: warning: assignment makes pointer from integer without a cast [enabled by default] rc_dev-rstc = reset_control_get(dev, NULL); Is managing the reset line actually optional though? I can't test atm as I

Re: [PATCH net] bpf: split eBPF out of NET

2014-10-24 Thread Josh Triplett
On Thu, Oct 23, 2014 at 10:32:50PM -0700, Alexei Starovoitov wrote: On Thu, Oct 23, 2014 at 8:23 PM, Josh Triplett j...@joshtriplett.org wrote: On Thu, Oct 23, 2014 at 06:41:08PM -0700, Alexei Starovoitov wrote: introduce two configs: - hidden CONFIG_BPF to select eBPF interpreter that

Re: [PATCH 05/16] perf tools: Add facility to export data in database-friendly way

2014-10-24 Thread Adrian Hunter
On 24/10/14 09:02, Namhyung Kim wrote: On Thu, 23 Oct 2014 13:45:13 +0300, Adrian Hunter wrote: This patch introduces an abstraction for exporting sample data in a database-friendly way. The abstraction does not implement the actual output. A subsequent patch takes this facility into use

[patch] regulator: max77802: precedence error in max77802_set_suspend_mode()

2014-10-24 Thread Dan Carpenter
The ! operation has higher precedence that the comparison. Fixes: 2e0eaa1aa008 ('regulator: max77802: Add set suspend mode for BUCKs and simplify code') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c index

Re: [PATCH v13 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-24 Thread Dmitry Torokhov
Caesar, On Fri, Oct 24, 2014 at 11:21:46AM +0800, Caesar Wang wrote: Dmitry, 在 2014/10/24 10:32, Dmitry Torokhov 写道: On Fri, Oct 24, 2014 at 10:06:43AM +0800, Caesar Wang wrote: 在 2014/10/24 9:37, Dmitry Torokhov 写道: On October 23, 2014 6:08:52 PM PDT, Caesar Wang

Re: [PATCH net] bpf: split eBPF out of NET

2014-10-24 Thread Geert Uytterhoeven
On Fri, Oct 24, 2014 at 10:11 AM, Josh Triplett j...@joshtriplett.org wrote: +config BPF_SYSCALL + bool Enable bpf() system call if EXPERT + select ANON_INODES + select BPF + default n + help + Enable the bpf() system call that allows to manipulate eBPF +

Re: [PATCH v13 1/5] thermal: rockchip: add driver for thermal

2014-10-24 Thread Dmitry Torokhov
On Thu, Oct 23, 2014 at 05:55:46PM -0700, Dmitry Torokhov wrote: Hi Caesar, On Thu, Oct 23, 2014 at 05:40:03PM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC all the control signals entirely

Re: [PATCH v5 12/20] x86: perf: intel_pt: Intel PT PMU driver

2014-10-24 Thread Alexander Shishkin
Peter Zijlstra pet...@infradead.org writes: On Mon, Oct 13, 2014 at 04:45:40PM +0300, Alexander Shishkin wrote: +static int pt_config(struct perf_event *event) +{ +u64 reg; + +reg = RTIT_CTL_TOPA | RTIT_CTL_BRANCH_EN; + +if (!event-attr.exclude_kernel) +reg |=

[PATCH v5 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-10-24 Thread Ley Foon Tan
Follow m68k futex implementation for !CONFIG_SMP. Signed-off-by: Ley Foon Tan lf...@altera.com Acked-by: Arnd Bergmann a...@arndb.de --- include/asm-generic/futex.h | 82 + 1 file changed, 82 insertions(+) diff --git a/include/asm-generic/futex.h

[PATCH v5 03/29] nios2: Kernel booting and initialization

2014-10-24 Thread Ley Foon Tan
This patch adds the kernel booting and the initial setup code. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/entry.h | 120 +++ arch/nios2/include/asm/setup.h | 38 +++ arch/nios2/kernel/head.S | 175 +

[PATCH v5 08/29] nios2: MMU Fault handling

2014-10-24 Thread Ley Foon Tan
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch, kernel/entry.S). Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/mm/extable.c | 25 + arch/nios2/mm/fault.c | 251

[PATCH v5 15/29] Add ELF machine define for Nios2

2014-10-24 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com Acked-by: Arnd Bergmann a...@arndb.de --- include/uapi/linux/elf-em.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index aa90bc9..ae99f77 100644 --- a/include/uapi/linux/elf-em.h +++

[PATCH v5 12/29] nios2: TLB handling

2014-10-24 Thread Ley Foon Tan
This patch adds the TLB maintenance functions. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/tlb.h | 34 + arch/nios2/include/asm/tlbflush.h | 46 +++ arch/nios2/mm/tlb.c | 274 ++ 3 files changed, 354

[PATCH v5 22/29] nios2: Cpuinfo handling

2014-10-24 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/cpuinfo.h | 57 +++ arch/nios2/kernel/cpuinfo.c | 201 +++ 2 files changed, 258 insertions(+) create mode 100644 arch/nios2/include/asm/cpuinfo.h create mode 100644

[PATCH v5 21/29] nios2: Time keeping

2014-10-24 Thread Ley Foon Tan
Add time keeping code for nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/delay.h | 21 +++ arch/nios2/include/asm/timex.h | 26 arch/nios2/kernel/time.c | 320 + arch/nios2/lib/delay.c | 52 +++ 4

[PATCH v5 23/29] nios2: Miscellaneous header files

2014-10-24 Thread Ley Foon Tan
This patch introduces a few nios2-specific header files. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/cmpxchg.h| 61 + arch/nios2/include/asm/linkage.h| 25 ++ arch/nios2/include/asm/mutex.h | 1 +

[PATCH v5 19/29] nios2: Library functions

2014-10-24 Thread Ley Foon Tan
Add optimised library functions for nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/checksum.h | 78 +++ arch/nios2/include/asm/string.h | 24 + arch/nios2/lib/memcpy.c | 199 ++

[PATCH v5 28/29] Documentation: Add documentation for Nios2 architecture

2014-10-24 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com --- Documentation/nios2/README | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/nios2/README diff --git a/Documentation/nios2/README b/Documentation/nios2/README new file mode 100644 index

[PATCH v5 26/29] nios2: ptrace support

2014-10-24 Thread Ley Foon Tan
Add ptrace support for nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/ptrace.h | 33 +++ arch/nios2/include/uapi/asm/ptrace.h | 120 + arch/nios2/kernel/ptrace.c | 166 +++ 3 files

[PATCH v5 24/29] nios2: Nios2 registers

2014-10-24 Thread Ley Foon Tan
This file contains constants for the instruction macros, cpu registers, fields and bits. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/registers.h | 71 ++ 1 file changed, 71 insertions(+) create mode 100644

[PATCH v5 29/29] nios2: Build infrastructure

2014-10-24 Thread Ley Foon Tan
This patch adds Makefile and Kconfig files required for building a nios2 kernel. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/Kconfig | 201 +++ arch/nios2/Kconfig.debug | 17 +++ arch/nios2/Makefile |

[PATCH v5 27/29] MAINTAINERS: Add nios2 maintainer

2014-10-24 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan lf...@altera.com --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a20df9b..3179a0d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6525,6 +6525,13 @@ S: Maintained F: Documentation/scsi/NinjaSCSI.txt

[PATCH v5 25/29] nios2: Module support

2014-10-24 Thread Ley Foon Tan
This patch adds support for loadable modules. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/kernel/module.c | 137 + 1 file changed, 137 insertions(+) create mode 100644 arch/nios2/kernel/module.c diff --git a/arch/nios2/kernel/module.c

[PATCH v5 17/29] nios2: System calls handling

2014-10-24 Thread Ley Foon Tan
This patch adds support for system calls from userspaces. It uses the asm-generic/unistd.h definitions with architecture spcific syscall. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. Signed-off-by: Ley Foon Tan lf...@altera.com ---

[PATCH v5 18/29] nios2: Signal handling support

2014-10-24 Thread Ley Foon Tan
This patch adds support for signal handling. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/signal.h | 22 +++ arch/nios2/include/asm/ucontext.h| 32 arch/nios2/include/uapi/asm/sigcontext.h | 28 +++ arch/nios2/include/uapi/asm/signal.h |

[PATCH v5 20/29] nios2: Device tree support

2014-10-24 Thread Ley Foon Tan
Add device tree support to arch/nios2. Signed-off-by: Ley Foon Tan lf...@altera.com --- Documentation/devicetree/bindings/nios2/nios2.txt | 62 Documentation/devicetree/bindings/nios2/timer.txt | 19 +++ arch/nios2/boot/dts/3c120_devboard.dts| 164 ++

Re: [PATCH v2] MAINTAINERS: Add myself as reviewer for Zynq

2014-10-24 Thread Arnd Bergmann
On Friday 24 October 2014 08:08:15 Michal Simek wrote: On 10/23/2014 06:29 PM, Soren Brinkmann wrote: Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com --- v2: - I removed the additional 'F' entries MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v4 0/4] fix freepage count problems in memory isolation

2014-10-24 Thread Gioh Kim
2014-10-23 오후 5:10, Joonsoo Kim 쓴 글: Changes from v3 to v4 * Patch 1: Add code comment on nr_isolate_pageblock on struct zone (Naoya) Add one more check in free_one_page() that checks whether migratetype is MIGRATE_ISOLATE or not. * Patch 4: Use min() to prevent overflow of

[PATCH v5 16/29] nios2: ELF definitions

2014-10-24 Thread Ley Foon Tan
This patch adds definitions for the ELF format Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/elf.h | 101 ++ arch/nios2/include/uapi/asm/elf.h | 67 + 2 files changed, 168 insertions(+) create mode

[PATCH v5 13/29] nios2: Interrupt handling

2014-10-24 Thread Ley Foon Tan
This patch adds the support for IRQ handling. Signed-off-by: Ley Foon Tan lf...@altera.com Reviewed-by: Thomas Gleixner t...@linutronix.de --- arch/nios2/include/asm/irq.h | 28 arch/nios2/include/asm/irqflags.h | 69 + arch/nios2/kernel/irq.c

Re: [PATCH V2 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-24 Thread Steve Capper
On 24 October 2014 00:40, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Thu, 2014-10-23 at 18:40 -0400, David Miller wrote: Hey guys, was looking over the generic GUP while working on a sparc64 issue and I noticed that you guys do speculative page gets, and after talking with

[PATCH v5 14/29] nios2: DMA mapping API

2014-10-24 Thread Ley Foon Tan
This patch adds support for the DMA mapping API. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/dma-mapping.h | 130 arch/nios2/mm/dma-mapping.c | 185 +++ 2 files changed, 315 insertions(+) create mode

[PATCH v5 11/29] nios2: Cache handling

2014-10-24 Thread Ley Foon Tan
This patch adds functionality required for cache maintenance. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/cache.h | 36 + arch/nios2/include/asm/cacheflush.h | 52 +++ arch/nios2/mm/cacheflush.c | 270 3

[PATCH v5 07/29] nios2: I/O Mapping

2014-10-24 Thread Ley Foon Tan
This patch adds several definitions for I/O accessors and ioremap(). Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/io.h | 84 arch/nios2/lib/io.c | 138 arch/nios2/mm/ioremap.c | 186

Re: [PATCH v13 1/5] thermal: rockchip: add driver for thermal

2014-10-24 Thread Caesar Wang
在 2014/10/24 16:21, Dmitry Torokhov 写道: On Thu, Oct 23, 2014 at 05:55:46PM -0700, Dmitry Torokhov wrote: Hi Caesar, On Thu, Oct 23, 2014 at 05:40:03PM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC

[PATCH v5 10/29] nios2: Process management

2014-10-24 Thread Ley Foon Tan
This patch adds support for thread creation and context switching. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/mmu_context.h | 66 + arch/nios2/include/asm/processor.h | 103 ++ arch/nios2/include/asm/switch_to.h | 31 +

[PATCH v5 09/29] nios2: Page table management

2014-10-24 Thread Ley Foon Tan
This patch adds support for page table management. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/include/asm/pgalloc.h | 86 ++ arch/nios2/include/asm/pgtable-bits.h | 35 arch/nios2/include/asm/pgtable.h | 305 ++

[PATCH v5 04/29] nios2: Exception handling

2014-10-24 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan lf...@altera.com --- arch/nios2/kernel/entry.S | 559 + arch/nios2/kernel/misaligned.c | 255 +++ 2 files changed, 814

  1   2   3   4   5   6   7   8   9   10   >