[PATCH 2/4] lightnvm: rename ->nr_pages to ->nr_sects

2016-02-19 Thread Matias Bjørling
The struct rrpc->nr_pages can easily be interpreted as the number of flash pages allocated to rrpc, while it is the nr_sects. Make sure that this is reflected from the variable name. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 2 +- drivers/lightnvm/gennvm.c | 7 +++ dri

[PATCH 1/4] lightnvm: update closed list outside of intr context

2016-02-19 Thread Matias Bjørling
From: Javier González When an I/O finishes, full blocks are moved from the open to the closed list - a lock is taken to protect the list. This happens at the moment in the interrupt context, which is not correct. This patch moves this logic to the block workqueue instead, avoiding holding a spin

[PATCH 3/4] lightnvm: remove struct nvm_dev->total_blocks

2016-02-19 Thread Matias Bjørling
The struct nvm_dev->total_blocks was only used for calculating total sectors. Remove and instead calculate total sectors from the number of luns and its sectors. Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dr

[PATCH 0/4] LightNVM patches for 4.5-rc

2016-02-19 Thread Matias Bjørling
Hi Jens, Sorry, I was living in a fairy tail land, where patches are miraculously applied without being sent upstream. Leading me to test on top of the wrong base. I was missing three patches, which I should have sent for previous -rc round. The first patch fixes taking a normal spinlock in inte

[PATCH 4/4] lightnvm: generalize rrpc ppa calculations

2016-02-19 Thread Matias Bjørling
From: Javier González In rrpc, some calculations assume a certain configuration (e.g., 1 LUN, 1 sector per page). The reason behind this was that LightNVM used a simple configuration with QEMU to test core features in the beginning. This patch relaxes these assumptions and generalizes calculation

Re: [RFC v2 2/6] x86/init: use linker tables to simplify x86 init and annotate dependencies

2016-02-19 Thread Andy Lutomirski
On Fri, Feb 19, 2016 at 4:42 PM, Luis R. Rodriguez wrote: > On Fri, Feb 19, 2016 at 08:40:49AM -0800, Andy Lutomirski wrote: >> On Fri, Feb 19, 2016 at 6:15 AM, Luis R. Rodriguez wrote: >> > Any failure on the x86 init path can be catastrophic. >> > A simple shift of a call from one place to anot

[GIT PULL]: dmaengine updates for 4.5-rc5

2016-02-19 Thread Vinod Koul
Hi Linus, We have some fixes queued up on dmaengine, all on drivers. Please PULL. The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47 -0800) are available in the git repository at: git://git.infradead.org/users/vkoul/slave-dma.git

Re: [PATCH v7 2/3] clk: clk-pic32: Add PIC32 clock driver

2016-02-19 Thread Purna Chandra Mandal
On 02/20/2016 01:46 AM, Michael Turquette wrote: > Quoting Joshua Henderson (2016-02-19 08:25:35) >> +const struct clk_ops pic32_roclk_ops = { >> + .enable = roclk_enable, >> + .disable= roclk_disable, >> + .is_enabled = roclk_is_enable

Re: [PATCH] Bluetooth: hci_core: Avoid mixing up req_complete and req_complete_skb

2016-02-19 Thread Johan Hedberg
Hi Douglas, On Fri, Feb 19, 2016, Douglas Anderson wrote: > In commit 44d271377479 ("Bluetooth: Compress the size of struct > hci_ctrl") we squashed down the size of the structure by using a union > with the assumption that all users would use the flag to determine > whether we had a req_complete

Re: [v9,4/5] iommu/mediatek: Add mt8173 IOMMU driver

2016-02-19 Thread Guenter Roeck
On Wed, Feb 17, 2016 at 08:46:13AM +0800, Yong Wu wrote: > This patch adds support for mediatek m4u (MultiMedia Memory Management > Unit). > > Signed-off-by: Yong Wu > Reviewed-by: Robin Murphy > > --- > drivers/iommu/Kconfig | 16 + > drivers/iommu/Makefile| 1 + > drivers/iommu/mtk

Re: V4L docs and docbook

2016-02-19 Thread Keith Packard
Hans Verkuil writes: > But good table handling is a prerequisite for us since we rely heavily on > that. I converted an asciidoc document that included some tables to sphinx via docbook using pandoc; that seemed to generate workable results for me, but my needs are pretty simple. Asciidoc has

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-02-19 Thread Paul E. McKenney
On Sat, Feb 20, 2016 at 03:34:30PM +1100, Ross Green wrote: > On Sat, Feb 20, 2016 at 4:33 AM, Paul E. McKenney > wrote: > > On Thu, Feb 18, 2016 at 08:13:18PM -0800, John Stultz wrote: > >> On Thu, Feb 18, 2016 at 7:56 PM, Ross Green wrote: > >> > Well a bonus extra! > >> > Kept everything runni

Re: [tip:x86/pkeys] mm/gup: Introduce get_user_pages_remote()

2016-02-19 Thread Konstantin Khlebnikov
On Tue, Feb 16, 2016 at 3:14 PM, tip-bot for Dave Hansen wrote: > Commit-ID: 1e9877902dc7e11d2be038371c6fbf2dfcd469d7 > Gitweb: http://git.kernel.org/tip/1e9877902dc7e11d2be038371c6fbf2dfcd469d7 > Author: Dave Hansen > AuthorDate: Fri, 12 Feb 2016 13:01:54 -0800 > Committer: Ingo Molnar

Supplying High Quality NdFeB Materials

2016-02-19 Thread Thomas
Dear, Good day. May I have your attention?We are a professional manufacturer&exporter of magnet and magnetic products located in Shenzhen China,with two production line the annual capacity exceeds 1,000 tons. Thanks to skilled workers and engineers,some of them having more than 15 year

RE: [PATCH] xen-netfront: set real_num_tx_queues to zreo avoid to trigger BUG_ON

2016-02-19 Thread Gonglei (Arei)
Hi, Thanks for rapid feedback :) > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, February 20, 2016 12:37 PM > > From: Gonglei > Date: Sat, 20 Feb 2016 09:27:26 +0800 > > > It's possible for a race condition to exist between xennet_open() and > > talk_to_netback(). After inv

[PATCH] Documentation/memory-barriers: fix wrong comment in example

2016-02-19 Thread SeongJae Park
There is wrong comment in example for compiler store omit behavior. It shows example of the problem and than problem solved version code. However, the comment in the solved version is still same with not solved version. Fix the wrong statement with this commit. Signed-off-by: SeongJae Park ---

Re: [PATCH net-next 0/3] bpf_get_stackid() and stack_trace map

2016-02-19 Thread David Miller
From: Alexei Starovoitov Date: Wed, 17 Feb 2016 19:58:56 -0800 > This patch set introduces new map type to store stack traces and > corresponding bpf_get_stackid() helper. ... Series applied, thanks Alexei.

Re: [PATCH V8 6/8] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 04:48 AM, Linus Walleij wrote: On Thu, Feb 11, 2016 at 12:56 PM, Laxman Dewangan wrote: MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins. It also supports interrupts from these pins. Add GPIO driver for these pins to control via GPIO APIs. Signed-off

[PATCH V11 2/4] perf/powerpc: add support for sampling intr machine state

2016-02-19 Thread Anju T
The perf infrastructure uses a bit mask to find out valid registers to display. Define a register mask for supported registers defined in asm/perf_regs.h. The bit positions also correspond to register IDs which is used by perf infrastructure to fetch the register values. CONFIG_HAVE_PERF_REGS enabl

[PATCH V2 4/4] tool/perf: Add sample_reg_mask to include all perf_regs

2016-02-19 Thread Anju T
From: Madhavan Srinivasan Add sample_reg_mask array with pt_regs registers. This is needed for printing supported regs ( -I? option). Signed-off-by: Madhavan Srinivasan --- tools/perf/arch/powerpc/util/Build | 1 + tools/perf/arch/powerpc/util/perf_regs.c | 49 ++

[PATCH V11 1/4] perf/powerpc: assign an id to each powerpc register

2016-02-19 Thread Anju T
The enum definition assigns an 'id' to each register in "struct pt_regs" of arch/powerpc. The order of these values in the enum definition are based on the corresponding macros in arch/powerpc/include/uapi/asm/ptrace.h. Signed-off-by: Anju T --- arch/powerpc/include/uapi/asm/perf_regs.h | 50 +++

[PATCH V11 3/4] tools/perf: Map the ID values with register names

2016-02-19 Thread Anju T
Map ID values with corresponding register names. These names are then displayed when user issues perf record with the -I option followed by perf report/script with -D option. To test this patchset, Eg: $ perf record -I ls # record machine state at interrupt $ perf script -D # read the perf.

[PATCH V11 0/4]perf/powerpc: Add ability to sample intr machine state in powerpc

2016-02-19 Thread Anju T
This short patch series adds the ability to sample the interrupted machine state for each hardware sample. To test this patchset, Eg: $ perf record -I? # list supported registers output: available registers: r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22

Re: [PATCH net] r8169:fix "rtl_counters_cond == 1 (loop: 1000, delay: 10)" log spam.

2016-02-19 Thread David Miller
From: Chunhao Lin Date: Thu, 18 Feb 2016 22:57:07 +0800 > There will be a log spam when there is no cable plugged. > Please refer to following links. > https://bugzilla.kernel.org/show_bug.cgi?id=104351 > https://bugzilla.kernel.org/show_bug.cgi?id=107421 > > This issue is caused by runtime powe

Re: [PATCH V8 0/8] Add support for MAXIM MAX77620/MAX20024 PMIC

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 09:30 PM, Thierry Reding wrote: On Thu, Feb 11, 2016 at 05:26:26PM +0530, Laxman Dewangan wrote: Add SW support for MAXIM Semiconductor's Power Management IC (PMIC) MAX77620/MAX20024. This PMIC supports DC-DC/LDOS, GPIOs, RTC, watchdog, clocks etc. Hi Laxman, This

Re: [PATCH net] af_unix: Don't use continue to re-execute unix_stream_read_generic loop

2016-02-19 Thread David Miller
From: Rainer Weikusat Date: Thu, 18 Feb 2016 12:39:46 + > The unix_stream_read_generic function tries to use a continue statement > to restart the receive loop after waiting for a message. This may not > work as intended as the caller might use a recvmsg call to peek at > control messages wit

Re: [PATCH] unix_diag: fix incorrect sign extension in unix_lookup_by_ino

2016-02-19 Thread David Miller
From: Cong Wang Date: Fri, 19 Feb 2016 16:21:14 -0800 > On Thu, Feb 18, 2016 at 5:27 PM, Dmitry V. Levin wrote: >> The value passed by unix_diag_get_exact to unix_lookup_by_ino has type >> __u32, but unix_lookup_by_ino's argument ino has type int, which is not >> a problem yet. >> However, when

Re: [PATCH] xen-netfront: set real_num_tx_queues to zreo avoid to trigger BUG_ON

2016-02-19 Thread David Miller
From: Gonglei Date: Sat, 20 Feb 2016 09:27:26 +0800 > It's possible for a race condition to exist between xennet_open() and > talk_to_netback(). After invoking netfront_probe() then other > threads or processes invoke xennet_open (such as NetworkManager) > immediately may trigger BUG_ON(). Beside

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-02-19 Thread Ross Green
On Sat, Feb 20, 2016 at 4:33 AM, Paul E. McKenney wrote: > On Thu, Feb 18, 2016 at 08:13:18PM -0800, John Stultz wrote: >> On Thu, Feb 18, 2016 at 7:56 PM, Ross Green wrote: >> > Well a bonus extra! >> > Kept everything running and there was another stall. >> > So i have included the demsg output

Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 08:33 PM, Linus Walleij wrote: On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan wrote: Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing code in error path and

Re: fs: NULL deref in atime_needs_update

2016-02-19 Thread Al Viro
On Sat, Feb 20, 2016 at 03:21:27AM +, Al Viro wrote: > On Fri, Feb 19, 2016 at 08:32:10PM +0100, Dmitry Vyukov wrote: > > > BUG: unable to handle kernel NULL pointer dereference at 0050 > > NULL inode->i_sb, by the look of the offset, but I really don't understand > where the hell

Re: [PATCH 0/3] LightNVM patches for next 4.5-rc

2016-02-19 Thread Jens Axboe
On 02/19/2016 12:15 PM, Jens Axboe wrote: On Fri, Feb 19 2016, Matias Bjørling wrote: Hi Jens, Here is a couple of patches for the next 4.5-rc. A patch from Alan that fixes up logic in nvm_configure_get. Another patch from Javier that fixes a bug with multiple luns in RRPC, and at last a patch

Re: [PATCHv2] serial: samsung: drop the spinlock around uart_write_wakeup

2016-02-19 Thread Anand Moon
Hi Peter, On 20 February 2016 at 01:00, Peter Hurley wrote: > [ +cc Krzysztof Kozlowski ] > > On 02/18/2016 09:15 PM, Anand Moon wrote: >> From: Anand Moon >> >> drop the spin_unlock/lock around uart_write_wakeup to protect >> write wakeup for uart port. > > What Krzysztof was saying wrt v1 of t

Re: call_usermodehelper in containers

2016-02-19 Thread Ian Kent
On Fri, 2016-02-19 at 18:30 +0900, Kamezawa Hiroyuki wrote: > On 2016/02/19 14:37, Ian Kent wrote: > > On Fri, 2016-02-19 at 12:08 +0900, Kamezawa Hiroyuki wrote: > > > On 2016/02/19 5:45, Eric W. Biederman wrote: > > > > Personally I am a fan of the don't be clever and capture a > > > > kernel > >

Re: fs: NULL deref in atime_needs_update

2016-02-19 Thread Al Viro
On Fri, Feb 19, 2016 at 08:32:10PM +0100, Dmitry Vyukov wrote: > > BUG: unable to handle kernel NULL pointer dereference at 0050 NULL inode->i_sb, by the look of the offset, but I really don't understand where the hell is that code doing (or how is that instruction going to generate de

Re: [PATCH] usb: move usb_calc_bus_time into common code

2016-02-19 Thread John Youn
On 2/19/2016 2:48 PM, Doug Anderson wrote: > Hi, > > On Fri, Feb 19, 2016 at 1:52 PM, Alan Stern wrote: >> On Fri, 19 Feb 2016, Arnd Bergmann wrote: >> >>> The dwc2 dual-role USB controller driver has started calling >>> usb_calc_bus_time, and does so regardless of whether it is >>> being built a

regression between v4.1.17 and v4.1.18 (crypto)

2016-02-19 Thread Andreas Amann
Hi, after upgrading to v4.1.18 (LTS) I cannot unlock my root partition. The error is: Enter passphrase for /dev/sda2: Failed to setup dm-crypt key mapping for device /dev/sda2. Check that kernel supports aes-xts-plain64 cipher (check syslog for more info). This seems to be the same as described

Re: [PATCH 6/5] oom, oom_reaper: disable oom_reaper for oom_kill_allocating_task

2016-02-19 Thread Tetsuo Handa
Michal Hocko wrote: > On Wed 17-02-16 10:48:55, Michal Hocko wrote: > > Hi Andrew, > > although this can be folded into patch 5 > > (mm-oom_reaper-implement-oom-victims-queuing.patch) I think it would be > > better to have it separate and revert after we sort out the proper > > oom_kill_allocating_

Re: [isocpp-parallel] Proposal for new memory_order_consume definition

2016-02-19 Thread Tony V E
There's at least one easy answer in there: > ‎If implementations must support annotation, what form should that annotation take?  P0190R0 recommends the [[carries_dependency]] attribute, but I am not picky as long as it can be (1) applied to all relevant pointer-like object

Re: NULL-ptr deref in irqfd_update (via KVM)

2016-02-19 Thread Robert Święcki
Hm.. I think now it's the same as https://groups.google.com/forum/#!topic/syzkaller/Rg4Y2Z6HbHI - just with a bit different stacktrace, and simpler testcase. 2016-02-20 3:07 GMT+01:00 Robert Święcki : > Works under both AMD and Intel > > [7]kdb> summary > sysnameLinux > release4.5.0-rc4 >

NULL-ptr deref in irqfd_update (via KVM)

2016-02-19 Thread Robert Święcki
Works under both AMD and Intel [7]kdb> summary sysnameLinux release4.5.0-rc4 version#1 SMP PREEMPT Tue Feb 16 04:24:23 CET 2016 machinex86_64 nodename jag-l2 domainname (none) ccversion CCVERSION date 2016-02-20 01:57:30 tz_minuteswest 0 uptime 00:06 load avg 0.35 0.

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

2016-02-19 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.5: The following changes since commit 2d19fc639516dc7b4184450b315c931d38549e61: powerpc/mm: Fixup _HPAGE_CHG_MASK (2016-01-28 23:49:43 +1100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/li

Re: [PATCH v3 1/1] ideapad-laptop: Add ideapad Y700 (15) to the no_hw_rfkill DMI list

2016-02-19 Thread John Dahlstrom
On Fri, 19 Feb 2016, Darren Hart wrote: See stable_kernel_rules.txt for how to specify relevant versions. I'm curious why there is a gap from 3.18 to 4.1. What you probably meant was: Cc: # 3.18.x If you are going to take this approach, you may wish to verify that this applies back to 3.18,

Re: [PATCH v13 09/29] tracing: Add 'hist' event trigger command

2016-02-19 Thread Steven Rostedt
On Fri, 19 Feb 2016 17:27:50 -0600 Tom Zanussi wrote: > > > + > > > +struct hist_trigger_data { > > > + struct hist_field *fields[TRACING_MAP_FIELDS_MAX]; > > > > Hmm I'm confused, TRACING_MAP_FIELDS_MAX == 4 > > > > But below it we index into fields with n_fields. Which look to

Re: [PATCH] drivers/platform: make x86/intel_scu_ipc.c explicitly non-modular

2016-02-19 Thread Darren Hart
On Sun, Feb 14, 2016 at 03:00:52PM -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/platform/x86/Kconfig:config INTEL_SCU_IPC > drivers/platform/x86/Kconfig: bool "Intel SCU IPC Support" > > ...meaning that it currently is not being built

[PATCH v4 1/1] ideapad-laptop: Add ideapad Y700 (15) to the no_hw_rfkill DMI list

2016-02-19 Thread John Dahlstrom
Some Lenovo ideapad models lack a physical rfkill switch. On Lenovo models ideapad Y700 Touch-15ISK and ideapad Y700-15ISK, ideapad-laptop would wrongly report all radios as blocked by hardware which caused wireless network connections to fail. Add these models without an rfkill switch to the no_

[PATCH] xen-netfront: set real_num_tx_queues to zreo avoid to trigger BUG_ON

2016-02-19 Thread Gonglei
It's possible for a race condition to exist between xennet_open() and talk_to_netback(). After invoking netfront_probe() then other threads or processes invoke xennet_open (such as NetworkManager) immediately may trigger BUG_ON(). Besides, we also should reset real_num_tx_queues in xennet_destroy_q

[PATCH] mips: octeon: mark some functions __init in smp.c

2016-02-19 Thread Yang Shi
octeon_smp_setup and octeon_prepare_cpus are just used during initialization period, so mark them as __init. And, octeon_prepare_cpus is just used in smp.c, so make it static as well. Signed-off-by: Yang Shi --- arch/mips/cavium-octeon/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH v13 06/29] tracing: Add needs_rec flag to event triggers

2016-02-19 Thread Steven Rostedt
On Fri, 19 Feb 2016 17:31:11 -0600 Tom Zanussi wrote: > > Do you want me to respin adding this and the fixes for the previous > comments before continuing? Yeah, respin, but start with patch 9 of this series. I've already looked at and even pulled into a local tree the first 8 patches. -- Ste

Re: [PATCH v3 3/5] dell-wmi: enable receiving WMI events on Dell Vostro V131

2016-02-19 Thread Darren Hart
On Tue, Feb 16, 2016 at 03:50:28PM +0100, Michał Kępień wrote: > On some laptop models (e.g. Dell Vostro V131), WMI events are not > generated until a specific SMBIOS request is issued to register an event > listener [1]. As there seems to be no ACPI method or SMBIOS request to > determine without

Re: 4.5-rc4 kernel is failed to bootup on CN6880

2016-02-19 Thread Yang Shi
On 2/19/2016 5:15 PM, David Daney wrote: On 02/19/2016 05:12 PM, Yang Shi wrote: Hi David, I tried to boot 4.5-rc4 kernel on my CN6880 board, but it is failed at booting up secondary cores. The error is: Have you had luck with any other kernel.org versions? Not tried yet. I will try to bise

[PATCH 1/1] sscanf: implement basic character sets

2016-02-19 Thread Jessica Yu
Implement basic character sets for the '%[]' conversion specifier. The '%[]' conversion specifier matches a nonempty sequence of characters from the specified set of accepted (or with '^', rejected) characters between the brackets. The substring matched is to be made up of characters in (or not in

[PATCH 0/1] Implement character sets for sscanf()

2016-02-19 Thread Jessica Yu
to come up with a clean way to parse symbol names with substrings delimited by periods and commas. Patch based on linux-next-20160219. Here are some test cases: --- sscanf_tests.c --- #include #include #define FAIL -1 #define PASS 0 static int test1(void) { int ret; char buf[32]

[PATCH v11 03/10] efi: move FDT handling to separate object file

2016-02-19 Thread David Daney
From: Ard Biesheuvel The EFI specific FDT handling is compiled conditionally, and is logically independent of the rest of efi.o. So move it to a separate file before making changes to it in subsequent patches. Acked-by: Matt Fleming Acked-by: Leif Lindholm Signed-off-by: Ard Biesheuvel [ rric

[PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch()

2016-02-19 Thread David Daney
From: Ard Biesheuvel Override the __weak early_init_dt_add_memory_arch() with our own version. We need this in a subsequent patch to make the handling of the memory nodes conditional on whether we are booting via UEFI or not. Note that for now, all that our version does is invoke the generic impl

[PATCH v11 04/10] arm64/efi: move EFI /chosen node parsing before early FDT processing

2016-02-19 Thread David Daney
From: Ard Biesheuvel The early FDT processing is responsible for enumerating the DT memory nodes and installing them as memblocks. This should only be done if we are not booting via EFI, but at this point, we don't know yet if that is the case or not. So move part of the EFI init to before the e

[PATCH v11 05/10] arm64/efi: ignore DT memory nodes instead of removing them

2016-02-19 Thread David Daney
From: Ard Biesheuvel There are two problems with the UEFI stub DT memory node removal routine: - it deletes nodes as it traverses the tree, which happens to work but is not supported, as deletion invalidates the node iterator; - deleting memory nodes entirely may discard annotations in the form

Re: 4.5-rc4 kernel is failed to bootup on CN6880

2016-02-19 Thread David Daney
On 02/19/2016 05:12 PM, Yang Shi wrote: Hi David, I tried to boot 4.5-rc4 kernel on my CN6880 board, but it is failed at booting up secondary cores. The error is: Have you had luck with any other kernel.org versions? FWIW, I recently posed some patches that may help. I haven't recently test

[PATCH v11 07/10] Documentation, dt, numa: dt bindings for NUMA.

2016-02-19 Thread David Daney
From: Ganapatrao Kulkarni Add DT bindings for numa mapping of memory, CPUs and IOs. Reviewed-by: Robert Richter Signed-off-by: Ganapatrao Kulkarni Signed-off-by: David Daney --- Documentation/devicetree/bindings/numa.txt | 272 + 1 file changed, 272 insertions(+)

Re: [PATCH] hwmon: (gpio-fan) Remove un-necessary speed_index lookup for thermal hook

2016-02-19 Thread Guenter Roeck
On 02/19/2016 04:09 PM, Nishanth Menon wrote: Thermal hook gpio_fan_get_cur_state is only interested in knowing the current speed index that was setup in the system, this is already available as part of fan_data->speed_index which is always set by set_fan_speed. Using get_fan_speed_index is usefu

[PATCH v11 08/10] dt, numa: Add NUMA dt binding implementation.

2016-02-19 Thread David Daney
From: Ganapatrao Kulkarni ADD device tree node parsing for NUMA topology using device "numa-node-id" property distance-map. Reviewed-by: Robert Richter Signed-off-by: Ganapatrao Kulkarni Signed-off-by: David Daney --- drivers/of/Kconfig | 3 + drivers/of/Makefile | 1 + drivers/of/of_

[PATCH v11 06/10] arm64/efi: ignore DT memreserve entries instead of removing them

2016-02-19 Thread David Daney
From: Ard Biesheuvel Now that the reservation of the FDT image itself is split off from the processing of memory reservations described by the device tree, we can make the DT scanning of memreserves conditional on whether we booted via UEFI and have its memory map available. This allows us to dro

[PATCH v11 01/10] of/fdt: make generic early_init_dt_add_memory_arch() a weak alias

2016-02-19 Thread David Daney
From: Ard Biesheuvel The function early_init_dt_add_memory_arch() is defined as __weak so that archs can override it. However, in this override implementation, it may still be useful to invoke the generic implementation, so instead, rename the generic version to early_init_dt_add_memory() and tur

[PATCH v11 09/10] arm64, numa: Add NUMA support for arm64 platforms.

2016-02-19 Thread David Daney
From: Ganapatrao Kulkarni Attempt to get the memory and CPU NUMA node via of_numa. If that fails, default the dummy NUMA node and map all memory and CPUs to node 0. Tested-by: Shannon Zhao Reviewed-by: Robert Richter Signed-off-by: Ganapatrao Kulkarni Signed-off-by: David Daney --- arch/ar

[PATCH v11 10/10] arm64, mm, numa: Add NUMA balancing support for arm64.

2016-02-19 Thread David Daney
From: Ganapatrao Kulkarni Enable NUMA balancing for arm64 platforms. Add pte, pmd protnone helpers for use by automatic NUMA balancing. Reviewed-by: Robert Richter Signed-off-by: Ganapatrao Kulkarni Signed-off-by: David Daney --- arch/arm64/Kconfig | 1 + arch/arm64/include/as

[PATCH v11 00/10] arm64, numa: Add numa support for arm64 platforms

2016-02-19 Thread David Daney
From: David Daney v11: - Dropped cleanup patches for other architectures, they will be submitted as a separate set after more testing. - Added patch set from Ard Biesheuvel that are needed to make the whole thing actually work. Previously this was a

4.5-rc4 kernel is failed to bootup on CN6880

2016-02-19 Thread Yang Shi
Hi David, I tried to boot 4.5-rc4 kernel on my CN6880 board, but it is failed at booting up secondary cores. The error is: CPU31 revision is: 000d9101 (Cavium Octeon II) SMP: Booting CPU32 (CoreId 32)... Secondary boot timeout I passed "numcores=32" in kernel commandline since there are 32 co

Re: [PATCH] Add new AR3012 ID 13d3:3395

2016-02-19 Thread Marcel Holtmann
Hi Dmitry, > T: Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 > D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=13d3 ProdID=3395 Rev=00.01 > C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA > I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb > I: If#= 1 A

Re: [PATCH] Bluetooth: hci_intel: Fix a wrong comparison

2016-02-19 Thread Marcel Holtmann
Hi Anton, > A return value of the intel_wait_booting() function compared with > a constant ETIMEDOUT instead of -ETIMEDOUT. > > Signed-off-by: Anton Protopopov > --- > drivers/bluetooth/hci_intel.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) patch has been applied to bluetooth-ne

Re: [PATCH 5/9] apm32: remove paravirt_enabled() use

2016-02-19 Thread Luis R. Rodriguez
On Fri, Feb 19, 2016 at 05:17:27PM -0500, Boris Ostrovsky wrote: > > > On 02/19/2016 03:58 PM, Luis R. Rodriguez wrote: > >On Fri, Feb 19, 2016 at 10:08:43AM -0500, Boris Ostrovsky wrote: > > > >>in xen_start_kernel(). Better yet, clear whole .bss. > >> > >>(This applies to the next patch as well

Re: [RFC v2 2/6] x86/init: use linker tables to simplify x86 init and annotate dependencies

2016-02-19 Thread Luis R. Rodriguez
On Fri, Feb 19, 2016 at 08:40:49AM -0800, Andy Lutomirski wrote: > On Fri, Feb 19, 2016 at 6:15 AM, Luis R. Rodriguez wrote: > > Any failure on the x86 init path can be catastrophic. > > A simple shift of a call from one place to another can > > easily break things. Likewise adding a new call to >

[PATCH] mips: octeon: unselect NR_CPUS_DEFAULT_16

2016-02-19 Thread Yang Shi
In the octeon defconfig, NR_CPUS is 32. And, some model of OCTEON II do have > 16 cores. Given the typical memory size equipped by Octeon boards, it sounds like not a big deal to set a bigger NR_CPUS value as default. Signed-off-by: Yang Shi --- arch/mips/Kconfig | 1 - 1 file changed, 1 deletio

Re: Silence compiler warning in arch/x86/kvm/emulate.c

2016-02-19 Thread Valdis . Kletnieks
On Fri, 19 Feb 2016 18:56:05 +0100, Paolo Bonzini said: > On 19/02/2016 18:54, valdis.kletni...@vt.edu wrote: > > But under what conditions is 'la' a 64-bit quantity that has any > > bits set in the high 32 bits (meaning it's a pointer to something > > over the 4G line) - but it's still valid to sm

Re: [PATCH] unix_diag: fix incorrect sign extension in unix_lookup_by_ino

2016-02-19 Thread Cong Wang
On Thu, Feb 18, 2016 at 5:27 PM, Dmitry V. Levin wrote: > The value passed by unix_diag_get_exact to unix_lookup_by_ino has type > __u32, but unix_lookup_by_ino's argument ino has type int, which is not > a problem yet. > However, when ino is compared with sock_i_ino return value of type > unsigne

[PATCH] hwmon: (gpio-fan) Remove un-necessary speed_index lookup for thermal hook

2016-02-19 Thread Nishanth Menon
Thermal hook gpio_fan_get_cur_state is only interested in knowing the current speed index that was setup in the system, this is already available as part of fan_data->speed_index which is always set by set_fan_speed. Using get_fan_speed_index is useful when we have no idea about the fan speed confi

Re: [PATCH] arm64: remove redundant preempt.h

2016-02-19 Thread Shi, Yang
Hi Will & Catalin, Any comment on this one? Thanks, Yang On 2/12/2016 9:56 AM, Yang Shi wrote: preempt.h has been included by sched.h, so it is not necessary to include both, just keep sched.h. Signed-off-by: Yang Shi --- Happened to find this when checking preempt.h include for another patc

[PATCH] mips: Kconfig: replace OPROFILE=n to !OPROFILE

2016-02-19 Thread Yang Shi
In Kconfig "=n" is not correct syntax, "!" is the preferred way for false-positive expression. Signed-off-by: Yang Shi --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 74a3db9..ab433d3 100644 --- a/arch/mips/Kco

[GIT PULL] clk fixes for v4.5-rc4

2016-02-19 Thread Stephen Boyd
The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fetch changes up to 4462b4bbfc33a44

Re: [PATCH v13 09/29] tracing: Add 'hist' event trigger command

2016-02-19 Thread Tom Zanussi
Hi Steve, On Fri, 2016-02-19 at 16:23 -0500, Steven Rostedt wrote: > On Thu, 10 Dec 2015 12:50:51 -0600 > Tom Zanussi wrote: > > > diff --git a/kernel/trace/trace_events_hist.c > > b/kernel/trace/trace_events_hist.c > > new file mode 100644 > > index 000..213aa79 > > --- /dev/null > > +++ b

Re: [PATCH V3 2/2] sched: idle: IRQ based next prediction for idle period

2016-02-19 Thread Rafael J. Wysocki
On Fri, Feb 19, 2016 at 4:01 PM, Daniel Lezcano wrote: > On 02/18/2016 07:57 PM, Rafael J. Wysocki wrote: >> >> On Thu, Feb 18, 2016 at 11:25 AM, Daniel Lezcano >> wrote: >>> >>> On 02/17/2016 11:21 PM, Rafael J. Wysocki wrote: >>> >>> [ ... ] >>> >> Reviewed-by: Nicolas Pitre > > >>

Re: [PATCH v13 06/29] tracing: Add needs_rec flag to event triggers

2016-02-19 Thread Tom Zanussi
On Fri, 2016-02-19 at 17:35 -0500, Steven Rostedt wrote: > On Fri, 19 Feb 2016 14:30:13 -0500 > Steven Rostedt wrote: > > > > @@ -1333,6 +1339,7 @@ struct event_command { > > > char*name; > > > enum event_trigger_type trigger_type; > > > boolpost_trig

Re: [PATCH] kernel/resource.c: fix muxed resource handling in __request_region()

2016-02-19 Thread Jesse Barnes
+Linus (the de-facto resource guy). On 02/19/2016 01:10 PM, Vincent Pelletier wrote: > Hello, > > I finally got around to rebasing some patches, and realised that the > patch from Simon Guinot below still gets rebased over torvalds' v4.4 . > > Any reason it was not applied ? > Or was the issue f

[PATCH] sata_via: Apply WD workaround only when needed on VT6421

2016-02-19 Thread Ondrej Zary
Currently, workaround for broken WD drives is applied always, slowing down all drives. And it has a bug - it's not applied after resume. Apply the workaround only if the error really appears (SErr == 0x1000500). This allows unaffected drives to run at full speed (provided that no affected drive is

Re: [PATCHv2] lkdtm: Add READ_AFTER_FREE test

2016-02-19 Thread Laura Abbott
On 02/19/2016 02:19 PM, Kees Cook wrote: On Fri, Feb 19, 2016 at 2:11 PM, Laura Abbott wrote: On 02/19/2016 11:12 AM, Kees Cook wrote: On Thu, Feb 18, 2016 at 5:15 PM, Laura Abbott wrote: In a similar manner to WRITE_AFTER_FREE, add a READ_AFTER_FREE test to test free poisoning features.

Linux 4.3.6

2016-02-19 Thread Greg KH
I'm announcing the release of the 4.3.6 kernel. All users of the 4.3 kernel series must upgrade. Note, this is the LAST 4.3.y kernel to be released. This kernel branch is now end-of-life. Move to 4.4.y right now. The updated 4.3.y git tree can be found at: git://git.kernel.org/pub/scm/

Linux 3.10.97

2016-02-19 Thread Greg KH
I'm announcing the release of the 3.10.97 kernel. All users of the 3.10 kernel series must upgrade. The updated 3.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.10.97

2016-02-19 Thread Greg KH
diff --git a/Makefile b/Makefile index c88ea5d8d19c..f26470169c70 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 96 +SUBLEVEL = 97 EXTRAVERSION = NAME = TOSSUG Baby Fish diff --git a/arch/parisc/include/uapi/asm/mman.h b/arch/parisc/include/uapi/

RE: [PATCH 1/2] ACPI/NFIT: Update Control Region Structure per ACPI 6.1

2016-02-19 Thread Moore, Robert
More importantly, the changes to actbl1.h need to be backported to the native ACPICA format. > -Original Message- > From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Friday, February 19, 2016 2:35 PM > To: Toshi Kani > Cc: Rafael J. Wysocki; Moore, Robert; Elliott, Robert (Per

[git pull] drm fixes

2016-02-19 Thread Dave Airlie
Hi Linus, Some more fixes trickled in, A bunch of VC4 ones since it's a pretty new driver not much chance of regressions, and it fixes GPU resets. One atomic fix, one set of fixes for a common bug in TTM cleanup, and one i915 hotplug fix. Dave. The following changes since commit 705d43dbe10d6

Re: [PATCH 1/2] ACPI/NFIT: Update Control Region Structure per ACPI 6.1

2016-02-19 Thread Toshi Kani
On Fri, 2016-02-19 at 14:34 -0800, Dan Williams wrote: > On Fri, Feb 19, 2016 at 3:08 PM, Toshi Kani wrote: > > ACPI 6.1, Table 5-133, updates NVDIMM Control Region Structure > > as follows. > >  - Valid Fields, Manufacturing Location, and Manufacturing Date > >    are added from reserved range.  

[PATCH 04/22] perf tests: Use perf_evlist__strerror_open() to provide hints about max_freq

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Before: # perf test -v "code reading" 2>&1 | tail -4 perf_evlist__open failed test child finished with -1 end Test object code reading: FAILED! # After: # perf test -v "code reading" 2>&1 | tail -7 perf_evlist__open() failed! Error: In

[PATCH 03/22] perf evlist: Handle -EINVAL for sample_freq > max_sample_rate in strerror_open()

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When running the "code reading" test we get: # perf test -v "code reading" 2>&1 | tail -5 Parsing event 'cycles:u' perf_evlist__open failed test child finished with -1 end Test object code reading: FAILED! # And with -vv we get the errno va

Re: [PATCH] usb: move usb_calc_bus_time into common code

2016-02-19 Thread Doug Anderson
Hi, On Fri, Feb 19, 2016 at 1:52 PM, Alan Stern wrote: > On Fri, 19 Feb 2016, Arnd Bergmann wrote: > >> The dwc2 dual-role USB controller driver has started calling >> usb_calc_bus_time, and does so regardless of whether it is >> being built as a host controller or gadget. In case all > > Out of

[PATCH 06/22] perf stat: Handled scaled == -1 case for counters

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Arnaldo pointed out that the earlier cb110f471025 ("perf stat: Move noise/running printing into printout") change changed behavior for not counted counters. This patch fixes it again. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Stephane Eranian Fixes: cb110f471025 ("perf stat

[PATCH 02/22] perf record: Add --all-user/--all-kernel options

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Allow user to easily switch all events to user or kernel space with simple --all-user or --all-kernel options. This will be handy within perf mem/c2c wrappers to switch easily monitoring modes. Committer note: Testing it: # perf record --all-kernel --all-user -a sleep 2 E

[GIT PULL 00/22] perf/core improvements and fixes

2016-02-19 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 3b364d7b587db0f0eeafde0f271e0698187de776: perf/core: Remove unused arguments from a bunch of functions (2016-02-17 10:37:48 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/l

[PATCH 12/22] perf tools: Introduce opt_event_config nonterminal

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To remove duplicated code that differs only in using the matching '/a,b,c/' part or NULL if no event configuration is done ('//' or no pair of slashes at all). Will be used by some new targets allowing the configuration of hardware events, etc. Lifted part of the

[PATCH 16/22] perf callchain: Check return value of add_child()

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The create_child() in add_child() can return NULL in case of memory allocation failure. So check the return value and bail out. The proper error handling will be added later. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: Andi Kleen Cc: David Ahern Cc: Frederic Weis

[PATCH 15/22] perf hists browser: Fix percentage update on key press

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Currently 'perf top --tui' decrements percentage of all entries on any key press. This is because it adds total period as new samples are added to hists. As perf-top does it currently but added samples are not passed to the display thread, the percentages are decresing contin

[PATCH 10/22] perf stat: Bail out on unsupported event config modifiers

2016-02-19 Thread Arnaldo Carvalho de Melo
From: Wang Nan 'perf stat' accepts some config terms but doesn't apply them. For example: # perf stat -e 'instructions/no-inherit/' -e 'instructions/inherit/' bash # ls # exit Performance counter stats for 'bash': 266258061 instructions/no-inherit/ 266258061

  1   2   3   4   5   6   7   8   >