[PATCH v2 0/4] fujitsu_init() cleanup

2017-03-01 Thread Michał Kępień
These patches should make fujitsu_init() a bit more palatable. No changes are made to platform device code yet, for clarity these will be posted in a separate series after this one gets applied. Changes from v1: - Rebase on top of reworked Alan Jenkins' cleanup patch series. - Drop patch 1/

[PATCH v2 1/4] platform/x86: fujitsu-laptop: register backlight device in a separate function

2017-03-01 Thread Michał Kępień
Move code responsible for backlight device registration to a separate function in order to simplify error handling and decrease indentation. Simplify initialization of struct backlight_properties. Use KBUILD_MODNAME as device name to avoid repeating the same string literal throughout the module.

[PATCH v2 3/4] platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present

2017-03-01 Thread Michał Kępień
As the backlight device registered by fujitsu-laptop relies on the FUJ02B1 ACPI device being present, only register the backlight device once that ACPI device is detected. Suggested-by: Alan Jenkins Signed-off-by: Michał Kępień --- drivers/platform/x86/fujitsu-laptop.c | 21

Re: [PATCH v2] mtd: Fix mtdblock for >4GB MTD devices

2017-03-01 Thread lepton
If checking some calling side, the len is from cache_size of struct mtdblk_dev, it's defined as unsigned int now. So it's not 64bit yet. BTW, seems it's just block size (512) at some other calling side. (Sorry for previous same content email, just found out it's html format and rejected by mail

[PATCH v2 2/4] platform/x86: fujitsu-laptop: do not use call_fext_func() for LCD blanking

2017-03-01 Thread Michał Kępień
fujitsu-laptop registers two ACPI drivers: one for ACPI device FUJ02B1 enabling backlight control and another for ACPI device FUJ02E3 which handles various other stuff (hotkeys, LEDs, etc.) Sadly, one of the functions exposed by call_fext_func() (i.e. through FUJ02E3) allows probing and controllin

[PATCH v2 4/4] platform/x86: fujitsu-laptop: cleanup error labels in fujitsu_init()

2017-03-01 Thread Michał Kępień
Error labels currently used in fujitsu_init() are really hard to follow: some (fail_laptop) indicate which operation has failed, others (fail_sysfs_group) indicate where unrolling should start and the rest (fail_platform_driver) is simply confusing. Change them to follow the pattern used throughou

[tip:core/urgent] objtool: Fix __unreachable section relocation size

2017-03-01 Thread tip-bot for Josh Poimboeuf
Commit-ID: 90a7e63a31b8f7d630d12ef0d8d37d3ab87f76e5 Gitweb: http://git.kernel.org/tip/90a7e63a31b8f7d630d12ef0d8d37d3ab87f76e5 Author: Josh Poimboeuf AuthorDate: Wed, 1 Mar 2017 00:05:04 -0600 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 07:38:25 +0100 objtool: Fix __unreachable

Re: [PATCH 1/1] dma: imx-sdma: add 1ms delay to ensure SDMA channel is stopped

2017-03-01 Thread Jiada Wang
Hello Vinod On 02/13/2017 07:22 PM, Vinod Koul wrote: On Mon, Feb 13, 2017 at 03:30:19PM +0900, Jiada Wang wrote: +static int sdma_disable_channel_with_delay(struct dma_chan *chan) +{ + sdma_disable_channel(chan); + mdelay(1); what is the gaurantee that 1ms is fine? Shouldn't you

[PATCH 09/44] tools/power turbostat: use new name for MSR_PKG_CST_CONFIG_CONTROL

2017-03-01 Thread Len Brown
From: Len Brown Previously called MSR_NHM_SNB_PKG_CST_CFG_CTL Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index a

Re: rsync: page allocation stalls in kernel 4.9.10 to a VessRAID NAS

2017-03-01 Thread Michal Hocko
On Tue 28-02-17 14:32:18, Robert Kudyba wrote: > > > On Feb 28, 2017, at 11:56 AM, Michal Hocko wrote: [...] > >> Will do here’s a perf report: > > > > this will not tell us much. Tracepoints have much better chance to tell > > us how reclaim is progressing. > > I have SystemTap configured are

[PATCH 06/10] perf, tools: Add a simple expression parser for JSON

2017-03-01 Thread Andi Kleen
From: Andi Kleen Add a simple expression parser good enough to parse JSON relation expressions. The parser is implemented using bison. This is just intended as an simple parser for internal usage in the event lists, not the beginning of a "perf scripting language" v2: Use expr__ prefix instead

[PATCH] PCI/aspm: Fix link->downstream setting

2017-03-01 Thread Yinghai Lu
~ # echo 1 > /sys/bus/pci/devices/\:0b\:00.0/remove ... BUG: unable to handle kernel NULL pointer dereference at 0080 IP: pcie_config_aspm_link+0x5d/0x2b0 Call Trace: pcie_aspm_exit_link_state+0x75/0x130 pci_stop_bus_device+0xa4/0xb0 pci_stop_and_remove_bus_device_locked+0x

[PATCH] bpf: update the comment about the length of analysis

2017-03-01 Thread Gary Lin
Commit 07016151a446 ("bpf, verifier: further improve search pruning") increased the limit of processed instructions from 32k to 64k, but the comment still mentioned the 32k limit. This commit updates the comment to reflect the change. Cc: Alexei Starovoitov Cc: Daniel Borkmann Signed-off-by: Gar

Re: [RFC PATCH v4] IV Generation algorithms for dm-crypt

2017-03-01 Thread Gilad Ben-Yossef
On Tue, Feb 28, 2017 at 11:05 PM, Milan Broz wrote: > > On 02/22/2017 07:12 AM, Binoy Jayan wrote: > > > > I was wondering if this is near to be ready for submission (apart from > > the testmgr.c > > changes) or I need to make some changes to make it similar to the IPSec > > offload? > > I just t

Re: [PATCH v2 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-03-01 Thread Hans-Christian Noren Egtvedt
Around Wed 01 Mar 2017 09:22:24 +0100 or thereabout, Boris Brezillon wrote: > Hi Hans-Christian, > > On Fri, 24 Feb 2017 10:04:35 +0100 > Hans-Christian Noren Egtvedt wrote: > >> Around Fri 24 Feb 2017 09:55:09 +0100 or thereabout, Boris Brezillon wrote: >> > On Fri, 24 Feb 2017 09:52:09 +0100 >

[PATCH] locking/refcounts: Change WARN() to WARN_ONCE()

2017-03-01 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Feb 27, 2017 at 11:57 PM, Ingo Molnar wrote: > > > > Note that the uninlining allowed us to enable the underflow/overflow > > warnings > > unconditionally and remove the debug Kconfig switch: this might trigger new > > warnings in buggy code and turn crashes/u

Re: [PATCH] refcount: add refcount_t API kernel-doc comments

2017-03-01 Thread Ingo Molnar
* David Windsor wrote: > This adds kernel-doc comments for the new refcount_t API. > > Signed-off-by: David Windsor > --- > include/linux/refcount.h | 19 ++ > lib/refcount.c | 95 > +++- > 2 files changed, 105 insertions(+), 9 de

[PATCH 02/10] perf, tools, stat: Collapse identically named events

2017-03-01 Thread Andi Kleen
From: Andi Kleen The uncore PMU has a lot of duplicated PMUs for different subsystems. When expanding an uncore alias we usually end up with a large number of identically named aliases, which makes perf stat output difficult to read. Automatically sum them up in perf stat, unless --no-merge is s

Re: [tip:core/urgent] objtool: Fix __unreachable section relocation size

2017-03-01 Thread hpa
On March 1, 2017 12:10:59 AM PST, tip-bot for Josh Poimboeuf wrote: >Commit-ID: 90a7e63a31b8f7d630d12ef0d8d37d3ab87f76e5 >Gitweb: >http://git.kernel.org/tip/90a7e63a31b8f7d630d12ef0d8d37d3ab87f76e5 >Author: Josh Poimboeuf >AuthorDate: Wed, 1 Mar 2017 00:05:04 -0600 >Committer: Ingo Mol

[tip:locking/urgent] locking/refcounts: Change WARN() to WARN_ONCE()

2017-03-01 Thread tip-bot for Ingo Molnar
Commit-ID: 9dcfe2c75b51f454f39c2de4756e841228865b47 Gitweb: http://git.kernel.org/tip/9dcfe2c75b51f454f39c2de4756e841228865b47 Author: Ingo Molnar AuthorDate: Wed, 1 Mar 2017 09:25:55 +0100 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 09:25:55 +0100 locking/refcounts: Change WARN

Re: [PATCH RESEND] drm/via: use get_user_pages_unlocked()

2017-03-01 Thread Daniel Vetter
On Tue, Feb 28, 2017 at 08:28:08PM +, Lorenzo Stoakes wrote: > On 28 February 2017 at 19:35, Al Viro wrote: > > On Tue, Feb 28, 2017 at 10:01:10AM +0100, Daniel Vetter wrote: > > > >> > + ret = get_user_pages_unlocked((unsigned long)xfer->mem_addr, > >> > + vsg->num_pages,

Re: [Nouveau] [PATCH 3/3] gpu: drm: drivers: Convert printk(KERN_ to pr_

2017-03-01 Thread Daniel Vetter
On Tue, Feb 28, 2017 at 04:55:54AM -0800, Joe Perches wrote: > Use a more common logging style. > > Miscellanea: > > o Coalesce formats and realign arguments > o Neaten a few macros now using pr_ > > Signed-off-by: Joe Perches Plenty acks, also merged for 4.12. Thanks, Daniel > --- > driver

Re: [PATCH V3 2/7] PM / OPP: Introduce "domain-performance-state" binding to OPP nodes

2017-03-01 Thread Geert Uytterhoeven
On Wed, Mar 1, 2017 at 7:14 AM, Viresh Kumar wrote: > On 28-02-17, 09:52, Rob Herring wrote: >> On Tue, Feb 28, 2017 at 9:14 AM, Ulf Hansson wrote: >> > This comes from the early design of the generic PM domain, thus I >> > assume we have some HW with such complex PM topology. However, I don't >>

Re: [PATCH v2 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-03-01 Thread Boris Brezillon
Hi Hans-Christian, On Fri, 24 Feb 2017 10:04:35 +0100 Hans-Christian Noren Egtvedt wrote: > Around Fri 24 Feb 2017 09:55:09 +0100 or thereabout, Boris Brezillon wrote: > > On Fri, 24 Feb 2017 09:52:09 +0100 > > Hans-Christian Noren Egtvedt wrote: > >> Around Fri 24 Feb 2017 09:27:42 +0100 or

Re: [PATCH 3/3] drivers:gpu: vga :vga_switcheroo.c : Fixed some coding style issues

2017-03-01 Thread Daniel Vetter
On Tue, Feb 28, 2017 at 06:59:52PM +, Joan Jani wrote: > Fixed the following style issues > > drivers/gpu/vga/vga_switcheroo.c:98: WARNING: please, no space before tabs > drivers/gpu/vga/vga_switcheroo.c:99: WARNING: please, no space before tabs > drivers/gpu/vga/vga_switcheroo.c:102: WARNING:

[PATCH 3/5] fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t

2017-03-01 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Bug fix for uid/gid in jffs2

2017-03-01 Thread yangshukui
As we kown that uid is u32(__kernel_uid32_t) in linux, but uid is u16(jint16_t) in jffs2 ,so jffs2 has the following problem, mount -t jffs2 /dev/mtdblock0 /mnt touch /mnt/a chown 65535.65535 /mnt/a;ls -n /mnt total 1 -rw-r--r-- 1 65535 65535 2 Mar 1 11:53 a chown 65536.65536 /mnt/a;ls -n /m

Re: [PATCH v4] reset: Add i.MX7 SRC reset driver

2017-03-01 Thread Philipp Zabel
On Tue, 2017-02-28 at 11:46 -0800, Andrey Smirnov wrote: > On Tue, Feb 28, 2017 at 6:38 AM, Philipp Zabel wrote: > > On Tue, 2017-02-21 at 08:13 -0800, Andrey Smirnov wrote: > >> Add reset controller driver exposing various reset faculties, > >> implemented by System Reset Controller IP block. > >

Re: [PATCH] usb: gadget: add RNDIS configfs option for Windows rndiscmp.inf compatibility

2017-03-01 Thread Krzysztof Opasiak
On 02/28/2017 10:58 PM, David Lechner wrote: This adds a new configfs attribute named `use_ms_rndiscmp`. It is a boolean value that is used to select the class/subclass/protocol used by the RNDIS function interface association descriptor. By default, this is 0x02 (Comm), 0x06 (Ethernet), 0xff (

[PATCH] mmc: core: Fix power sequence ordering in mmc_power_up

2017-03-01 Thread Romain Perier
Currently, mmc_power_up calls the pre_power_on callback, enables the power supply of the mmc by calling mmc_set_ios() and then call post_power_on. WiFi chipsets like the AP6335 require a specific power sequence ordering before being used. You must enable the power supply and wait until it reaches i

Re: [PATCH 1/1] drivers/misc: Add Intel System ID driver

2017-03-01 Thread Arnd Bergmann
On Wed, Mar 1, 2017 at 8:23 AM, Loh, Tien Hock wrote: > Arnd, Greg, Please don't top-post. > I checked the attributes returned by the soc attribute subsystem, but > it seems that it is lacking something equivalent to timestamp in the > Intel System ID controller. Do you think it is better to add

[PATCH 1/5] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-03-01 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

[PATCH 2/5] fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to refcount_t

2017-03-01 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by: Hans Liljestrand Signed-off-

Re: [PATCH -v4 00/10] FUTEX_UNLOCK_PI wobbles

2017-03-01 Thread Thomas Gleixner
On Wed, 22 Feb 2017, Peter Zijlstra wrote: > On Wed, Feb 22, 2017 at 12:02:44PM +0100, Peter Zijlstra wrote: > > OK, so after having not thought about this, and then spend the last two > > days trying to cram all this nonsense back into my head, I think I have > > a slightly simpler option. > > >

Re: [GIT PULL] HID for 4.11

2017-03-01 Thread Benjamin Tissoires
[I forgot to add Dmitry in the loop, sorry for the noise.] On Mar 01 2017 or thereabouts, Benjamin Tissoires wrote: > On Feb 28 2017 or thereabouts, Linus Torvalds wrote: > > On Tue, Feb 28, 2017 at 7:24 PM, Peter Hutterer > > wrote: > > > > > > I suspect you're just triggering a bug that wasn't

Re: [PATCH 1/2] vfs: implement fchmodat2() syscall

2017-03-01 Thread Michael Kerrisk
[CC += linux-...@vger.kernel.org] Hello Greg, Since this is a kernel-user-space API change, please CC linux-api@. The kernel source file Documentation/SubmitChecklist notes that all Linux kernel patches that change userspace interfaces should be CCed to linux-...@vger.kernel.org, so that the vari

[GIT PULL] Thermal management updates for v4.11-rc1

2017-03-01 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next to receive the latest Thermal Management updates for v4.11-rc1 with top-most commit 6fefe19f583625ca4ea3ecc9128baa51c31c60a4:   Merge branches 'thermal-core', 'thermal-soc', 'thermal-intel' and 'ida

Re: [PATCH] x86/apic: Remove the extra judgement of skipped IO APIC setup

2017-03-01 Thread Ingo Molnar
* Dou Liyang wrote: > As the commit 2e63ad4bd5dd ("x86/apic: Do not init irq remapping > if ioapic is disabled") added the judgement of skipped IO APIC > setup at the beginning of enable_IR_x2apic(). It may be redundant > that we check it again when we try to enable the interrupt mapping. > > S

Re: [kernel-hardening] [PATCH] refcount: add refcount_t API kernel-doc comments

2017-03-01 Thread Peter Zijlstra
On Tue, Feb 28, 2017 at 09:44:40PM -0800, Kees Cook wrote: > On Tue, Feb 28, 2017 at 7:34 PM, David Windsor wrote: > > This adds kernel-doc comments for the new refcount_t API. > > > > Signed-off-by: David Windsor > > Yay docs! :) > > Acked-by: Kees Cook Now if only they were accurate ;-)

Re: [PATCH] refcount: add refcount_t API kernel-doc comments

2017-03-01 Thread Peter Zijlstra
On Tue, Feb 28, 2017 at 10:34:45PM -0500, David Windsor wrote: > diff --git a/lib/refcount.c b/lib/refcount.c > index 1d33366..30e0927 100644 > --- a/lib/refcount.c > +++ b/lib/refcount.c > @@ -37,6 +37,15 @@ > #include > #include > > +/** > + * refcount_add_not_zero - add a value to a refco

[tip:perf/urgent] kprobes/x86: Fix kernel panic when certain exception-handling addresses are probed

2017-03-01 Thread tip-bot for Masami Hiramatsu
Commit-ID: 75013fb16f8484898eaa8d0b08fed942d790f029 Gitweb: http://git.kernel.org/tip/75013fb16f8484898eaa8d0b08fed942d790f029 Author: Masami Hiramatsu AuthorDate: Wed, 1 Mar 2017 01:23:24 +0900 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 09:56:13 +0100 kprobes/x86: Fix kernel p

[PATCH RFC] f2fs: combine nat_bits and free_nid_bitmap cache

2017-03-01 Thread Chao Yu
Both nat_bits cache and free_nid_bitmap cache provide same functionality as a intermediate cache between free nid cache and disk, but with different granularity of indicating free nid range, and different persistence policy. nat_bits cache provides better persistence ability, and free_nid_bitmap pr

[PATCH v2] lockdep: Teach lockdep about memalloc_noio_save

2017-03-01 Thread Nikolay Borisov
Commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O during memory allocation") added the memalloc_noio_(save|restore) functions to enable people to modify the MM behavior by disbaling I/O during memory allocation. This prevents allocation paths recursing back into the filesyste

[tip:x86/urgent] x86/kdebugfs: Move boot params hierarchy under (debugfs)/x86/

2017-03-01 Thread tip-bot for Borislav Petkov
Commit-ID: 10bce8410607a18eb3adf5d2739db8c8593e110d Gitweb: http://git.kernel.org/tip/10bce8410607a18eb3adf5d2739db8c8593e110d Author: Borislav Petkov AuthorDate: Mon, 27 Feb 2017 23:50:58 +0100 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 09:57:02 +0100 x86/kdebugfs: Move boot p

[tip:x86/urgent] x86/apic: Fix a warning message in logical CPU IDs allocation

2017-03-01 Thread tip-bot for Dou Liyang
Commit-ID: bb3f0a52630c84807fca9bdd76ac2f5dcec82689 Gitweb: http://git.kernel.org/tip/bb3f0a52630c84807fca9bdd76ac2f5dcec82689 Author: Dou Liyang AuthorDate: Tue, 28 Feb 2017 13:50:52 +0800 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:09:08 +0100 x86/apic: Fix a warning messag

Re: [RFC PATCH 0/4] KVM: Emulate UMIP (or almost do so)

2017-03-01 Thread Yu Zhang
On 12/13/2016 7:03 PM, Paolo Bonzini wrote: On 13/12/2016 05:03, Li, Liang Z wrote: Hi Paolo, We intended to enable UMIP for KVM and found you had already worked on it. Do you have any plan for the following patch set? It's there anything else you expect us help to do? Yes, I plan to resen

Re: [PATCH] x86/acpi: Fix a warning message in logical CPU IDs allocation

2017-03-01 Thread Ingo Molnar
* Dou Liyang wrote: > Current warning message regarded the "nr_cpu_ids - 1" as the limit > number of the CPUs. It may be confused us, for example: > we have two CPUs, nr_cpu_ids = 2, but the warning message may > indicate that we just have 1 CPU, which likes that: > Only 1 processors support

Re: [PATCH 3/3] mm, vmscan: Prevent kswapd sleeping prematurely due to mismatched classzone_idx

2017-03-01 Thread Vlastimil Babka
On 02/23/2017 04:01 PM, Mel Gorman wrote: > On Mon, Feb 20, 2017 at 05:42:49PM +0100, Vlastimil Babka wrote: >>> With this patch on top, all the latencies relative to the baseline are >>> improved, particularly write latencies. The read latencies are still high >>> for the number of threads but it'

selftests broke upstream

2017-03-01 Thread Ingo Molnar
Hi, The x86 selftests build broke upstream: triton:~/tip/tools/testing/selftests/x86> make Makefile:44: warning: overriding recipe for target 'clean' ../lib.mk:51: warning: ignoring old recipe for target 'clean' gcc -m32 -o /single_step_syscall_32 -O2 -g -std=gnu99 -pthread -Wall single_s

Re: [PATCH V3 2/7] PM / OPP: Introduce "domain-performance-state" binding to OPP nodes

2017-03-01 Thread Viresh Kumar
On 01-03-17, 09:45, Geert Uytterhoeven wrote: > On Wed, Mar 1, 2017 at 7:14 AM, Viresh Kumar wrote: > > On 28-02-17, 09:52, Rob Herring wrote: > >> On Tue, Feb 28, 2017 at 9:14 AM, Ulf Hansson > >> wrote: > >> > This comes from the early design of the generic PM domain, thus I > >> > assume we h

Re: [PATCH] hv: hide unused label

2017-03-01 Thread Ingo Molnar
* Arnd Bergmann wrote: > This new 32-bit warning just showed up: > > arch/x86/hyperv/hv_init.c: In function 'hyperv_init': > arch/x86/hyperv/hv_init.c:167:1: error: label 'register_msr_cs' defined but > not used [-Werror=unused-label] > > The easiest solution is to move the label up into the

Re: [PATCH v2 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-03-01 Thread Boris Brezillon
On Wed, 1 Mar 2017 09:38:07 +0100 Hans-Christian Noren Egtvedt wrote: > Around Wed 01 Mar 2017 09:22:24 +0100 or thereabout, Boris Brezillon wrote: > > Hi Hans-Christian, > > > > On Fri, 24 Feb 2017 10:04:35 +0100 > > Hans-Christian Noren Egtvedt wrote: > > > >> Around Fri 24 Feb 2017 09:55:

[PATCH] f2fs: skip scanning free nid bitmap of full NAT blocks

2017-03-01 Thread Chao Yu
This patch adds to account free nids for each NAT blocks, and while scanning all free nid bitmap, do check count and skip lookuping in full NAT block. Signed-off-by: Chao Yu --- fs/f2fs/debug.c | 1 + fs/f2fs/f2fs.h | 2 ++ fs/f2fs/node.c | 34 -- 3 files chan

Re: [GIT PULL] HID for 4.11

2017-03-01 Thread Benjamin Tissoires
On Feb 28 2017 or thereabouts, Linus Torvalds wrote: > On Tue, Feb 28, 2017 at 7:24 PM, Peter Hutterer > wrote: > > > > I suspect you're just triggering a bug that wasn't triggered by the ps/2 > > emulation. you can run linput-debug-events --verbose and have a look at the > > various state debuggi

Re: [RFC PATCH v4 00/28] x86: Secure Memory Encryption (AMD)

2017-03-01 Thread Dave Young
Hi Tom, On 02/16/17 at 09:41am, Tom Lendacky wrote: > This RFC patch series provides support for AMD's new Secure Memory > Encryption (SME) feature. > > SME can be used to mark individual pages of memory as encrypted through the > page tables. A page of memory that is marked encrypted will be aut

Re: [RFC PATCH v4] IV Generation algorithms for dm-crypt

2017-03-01 Thread Milan Broz
On 03/01/2017 09:30 AM, Gilad Ben-Yossef wrote: > On Tue, Feb 28, 2017 at 11:05 PM, Milan Broz wrote: >> >> On 02/22/2017 07:12 AM, Binoy Jayan wrote: >>> >>> I was wondering if this is near to be ready for submission (apart from >>> the testmgr.c >>> changes) or I need to make some changes to mak

[PATCH 35/44] tools/power turbostat: use wide columns to display large numbers

2017-03-01 Thread Len Brown
From: Len Brown When a counter overlfows 7 columns, it shifts the remaining columns to the right, so they no longer line up under their column header. Update turbostat to dectect when it is handling large numbers, and switch to wider columns where, necessary. Reported-by: Artem Bityutskiy Sign

[PATCH] Net: openvswitch: actions: fixed a brace coding style warning

2017-03-01 Thread Peter Downs
Fixed a brace coding style warning reported by checkpatch.pl Signed-off-by: Peter Downs --- net/openvswitch/actions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index b1beb2b..c82301c 100644 --- a/net/openvswitch/ac

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-01 Thread Arnd Bergmann
On Tue, Oct 11, 2016 at 10:38 PM, Arnd Bergmann wrote: > On Tuesday, October 11, 2016 10:51:46 AM CEST Josh Poimboeuf wrote: >> >> 3) 0xFC244C03-config: >> drivers/scsi/fnic/fnic_main.o: warning: objtool: fnic_log_q_error() falls >> through to next function fnic_handle_link_event() >> drivers/scs

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-03-01 Thread Dave Young
Hi Tom, On 02/17/17 at 10:43am, Tom Lendacky wrote: > On 2/17/2017 9:57 AM, Konrad Rzeszutek Wilk wrote: > > On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: > > > Provide support so that kexec can be used to boot a kernel when SME is > > > enabled. > > > > Is the point of kexec and

Re: [PATCH v6 2/4] mm: Add functions to support extra actions on swap in/out

2017-03-01 Thread Jerome Marchand
On 02/28/2017 07:35 PM, Khalid Aziz wrote: > If a processor supports special metadata for a page, for example ADI > version tags on SPARC M7, this metadata must be saved when the page is > swapped out. The same metadata must be restored when the page is swapped > back in. This patch adds two new ar

Re: [PATCH v3 20/25] ARM: owl: Implement CPU enable-method for S500

2017-03-01 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Andreas-F-rber/ARM-Initial-Actions-Semi-S500-and-S900-enablement/20170301-110028 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp

Re: [PATCH 5/9] dmaengine: sun6i: support V3s SoC variant

2017-03-01 Thread Maxime Ripard
On Wed, Mar 01, 2017 at 01:58:33AM +0800, Icenowy Zheng wrote: > > > 01.03.2017, 01:56, "Maxime Ripard" : > > On Mon, Feb 27, 2017 at 06:48:01PM +0800, Icenowy Zheng wrote: > >>  27.02.2017, 15:50, "Maxime Ripard" : > >>  > On Sat, Feb 25, 2017 at 08:30:25PM +0800, Icenowy Zheng wrote: > >>  >>  

Re: [PATCH 2/8] mfd: db8500-prcmu: fix stub helper interface

2017-03-01 Thread Arnd Bergmann
On Wed, Mar 1, 2017 at 12:24 AM, Guenter Roeck wrote: > On Tue, Feb 28, 2017 at 10:47:02PM +0100, Arnd Bergmann wrote: >> On Tue, Feb 28, 2017 at 10:42 PM, Guenter Roeck wrote: >> > On Tue, Feb 28, 2017 at 10:01:17PM +0100, Arnd Bergmann wrote: >> >> When the db8500 watchdog is enabled without th

Re: [PATCH v2] sched/rt: Add comments describing the RT IPI pull method

2017-03-01 Thread Peter Zijlstra
On Tue, Feb 28, 2017 at 03:50:30PM -0500, Steven Rostedt wrote: > + * The overloaded RT CPU, wher receiving an IPI, will try to push off its "wher" isn't in my dictionary, I'm thinking you mean: "when". Fixed that for you. > + * overloaded RT tasks and then send an IPI to the next CPU that has >

[tip:x86/urgent] x86/apic: Simplify enable_IR_x2apic(), remove try_to_enable_IR()

2017-03-01 Thread tip-bot for Dou Liyang
Commit-ID: 11277aabcbbe13916151af897d29a5e9f71ca73f Gitweb: http://git.kernel.org/tip/11277aabcbbe13916151af897d29a5e9f71ca73f Author: Dou Liyang AuthorDate: Thu, 23 Feb 2017 17:16:41 +0800 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:09:09 +0100 x86/apic: Simplify enable_IR_x

Re: [PATCH 0/2] key payload access with just rcu_read_lock()

2017-03-01 Thread David Howells
Jan Stancek wrote: > That problem didn't show up with my NFS based reproducer. > I re-run it again with latest version of your patch, plus also > keyutils testsuite. Both completed OK for me, dmesg looks clean. Can I put you down as a Tested-by? David

[tip:x86/asm] x86/asm: Optimize clear_page()

2017-03-01 Thread tip-bot for Borislav Petkov
Commit-ID: 49ca7bb328c630dd43be626534b49e19513296fd Gitweb: http://git.kernel.org/tip/49ca7bb328c630dd43be626534b49e19513296fd Author: Borislav Petkov AuthorDate: Thu, 9 Feb 2017 01:34:49 +0100 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:18:32 +0100 x86/asm: Optimize clear_pa

Re: [PATCH] sched/rt: Document why has_pushable_tasks() isn't called with a runqueue lock

2017-03-01 Thread Peter Zijlstra
On Tue, Feb 28, 2017 at 04:48:56PM -0500, Steven Rostedt wrote: > + /* > + * Normally, has_pushable_tasks() would be performed within the > + * runqueue lock being held. But if it was not set when entering "not set" what? I'm having trouble parsing this. > + * this hard interr

Re: [Xen-devel] [PATCH 1/5] x86/xen: start untangling PV and PVHVM guest support code

2017-03-01 Thread Vitaly Kuznetsov
Juergen Gross writes: > On 24/02/17 17:14, Vitaly Kuznetsov wrote: >> Introduce CONFIG_XEN_PV config option and split enlighten.c into >> 4 files. Temporary add #ifdef CONFIG_XEN_PV to smp.c and mmu.c to >> not break the build and not make the patch even bigger. >> >> xen_cpu_up_prepare*/xen_cpu

[tip:x86/urgent] x86/selftests: Add clobbers for int80 on x86_64

2017-03-01 Thread tip-bot for Dmitry Safonov
Commit-ID: 2a4d0c627f5374f365a873dea4e10ae0bb437680 Gitweb: http://git.kernel.org/tip/2a4d0c627f5374f365a873dea4e10ae0bb437680 Author: Dmitry Safonov AuthorDate: Mon, 13 Feb 2017 13:13:36 +0300 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:24:56 +0100 x86/selftests: Add clobber

[tip:perf/urgent] perf/core: Rename CONFIG_[UK]PROBE_EVENT to CONFIG_[UK]PROBE_EVENTS

2017-03-01 Thread tip-bot for Anton Blanchard
Commit-ID: 6b0b7551428e4caae1e2c023a529465a9a9ae2d4 Gitweb: http://git.kernel.org/tip/6b0b7551428e4caae1e2c023a529465a9a9ae2d4 Author: Anton Blanchard AuthorDate: Thu, 16 Feb 2017 17:00:50 +1100 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:26:39 +0100 perf/core: Rename CONFIG_

Re: [PATCH v2] lockdep: Teach lockdep about memalloc_noio_save

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 09:59:00AM +0200, Nikolay Borisov wrote: > Commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O > during memory allocation") added the memalloc_noio_(save|restore) functions > to enable people to modify the MM behavior by disbaling I/O during memory > all

[tip:x86/asm] x86/entry/32: Relax a pvops stub clobber specification

2017-03-01 Thread tip-bot for Jan Beulich
Commit-ID: fdbd518adfaf2c10903250dffe70c61ed90b7dd7 Gitweb: http://git.kernel.org/tip/fdbd518adfaf2c10903250dffe70c61ed90b7dd7 Author: Jan Beulich AuthorDate: Fri, 3 Feb 2017 01:58:03 -0700 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:16:30 +0100 x86/entry/32: Relax a pvops st

Re: [PATCH 3/3] drivers:gpu: vga :vga_switcheroo.c : Fixed some coding style issues

2017-03-01 Thread Jani Nikula
On Wed, 01 Mar 2017, Daniel Vetter wrote: > On Tue, Feb 28, 2017 at 06:59:52PM +, Joan Jani wrote: >> Fixed the following style issues >> >> drivers/gpu/vga/vga_switcheroo.c:98: WARNING: please, no space before tabs >> drivers/gpu/vga/vga_switcheroo.c:99: WARNING: please, no space before tabs

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Dmitry Vyukov
On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: > 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : >> Hello, >> >> The following program triggers WARNING in nested_vmx_vmexit: >> https://gist.githubusercontent.com/dvyukov/16b946d7dc703bb07b9b933f12fb8a6e/raw/dac60506feb8dd9dd22828c486e46ee8a5e30f13/gi

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-03-01 Thread Dave Young
Add kexec list.. On 03/01/17 at 05:25pm, Dave Young wrote: > Hi Tom, > > On 02/17/17 at 10:43am, Tom Lendacky wrote: > > On 2/17/2017 9:57 AM, Konrad Rzeszutek Wilk wrote: > > > On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: > > > > Provide support so that kexec can be used to boot

Re: [PATCH] staging/fbtft: Hush checkpatch.pl warning about unnecessary line continuations.

2017-03-01 Thread Greg KH
On Tue, Feb 28, 2017 at 09:52:44PM +0200, Alexander Kapshuk wrote: > Use a single fmt string with appropriate verbs as conversion specifiers, > followed by the original string literals and the integer argument > instead of using a backslash to escape a new line embedded inbetween > quoted string li

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2017-03-01 Thread Arnd Bergmann
On Wed, Mar 1, 2017 at 10:34 AM, Arnd Bergmann wrote: > On Tue, Oct 11, 2016 at 10:38 PM, Arnd Bergmann wrote: >> On Tuesday, October 11, 2016 10:51:46 AM CEST Josh Poimboeuf wrote: >>> >>> 3) 0xFC244C03-config: >>> drivers/scsi/fnic/fnic_main.o: warning: objtool: fnic_log_q_error() falls >>> th

Re: [PATCH 01/10] x86: assembly, ENTRY for fn, GLOBAL for data

2017-03-01 Thread Jiri Slaby
On 03/01/2017, 10:38 AM, Ingo Molnar wrote: > Agreed? Sure. I wanted to keep it minimal to see if you agree with this direction at all. No problem to be more intrusive :). thanks, -- js suse labs

[GIT PULL] sound fixes for 4.11-rc1

2017-03-01 Thread Takashi Iwai
Linus, please pull sound fixes for v4.11-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-fix-4.11-rc1 The topmost commit is f3ac9f737603da80c2da3e84b89e74429836bb6d sound fixes for 4.11-rc1

[tip:x86/asm] x86/entry/64: Relax pvops stub clobber specifications

2017-03-01 Thread tip-bot for Jan Beulich
Commit-ID: 2140a9942b84dd4bf559dd1215b8f43c36ece5b5 Gitweb: http://git.kernel.org/tip/2140a9942b84dd4bf559dd1215b8f43c36ece5b5 Author: Jan Beulich AuthorDate: Fri, 3 Feb 2017 02:03:25 -0700 Committer: Ingo Molnar CommitDate: Wed, 1 Mar 2017 10:16:35 +0100 x86/entry/64: Relax pvops stub

Re: net/rds: use-after-free in inet_create

2017-03-01 Thread Dmitry Vyukov
On Tue, Feb 28, 2017 at 11:24 PM, Sowmini Varadhan wrote: > > Actually, I'm not sure if I can assert that these are all manifestations > of the same bug- was a netns-delete involved in this one as well? > > I see: > >> BUG: KASAN: use-after-free in memcmp+0xe3/0x160 lib/string.c:768 at > : >>

RE: [PATCH v5] PCI: Xilinx NWL: Modifying irq chip for legacy interrupts

2017-03-01 Thread Bharat Kumar Gogada
Waiting for Marc's Reply... > > -Original Message- > > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > > Sent: Thursday, February 09, 2017 9:33 PM > > To: Bharat Kumar Gogada ; bhelg...@google.com; > > r...@kernel.org; paul.gortma...@windriver.com; colin.k...@canonical.com; > > linux-.

[PATCH 1/3] watchdog: kempld: fix gcc-4.3 build

2017-03-01 Thread Arnd Bergmann
gcc-4.3 can't decide whether the constant value in kempld_prescaler[PRESCALER_21] is built-time constant or not, and gets confused by the logic in do_div(): drivers/watchdog/kempld_wdt.o: In function `kempld_wdt_set_stage_timeout': kempld_wdt.c:(.text.kempld_wdt_set_stage_timeout+0x130): undefined

[PATCH 3/3] watchdog: retu: restore MFD dependency

2017-03-01 Thread Arnd Bergmann
The retu watchdog calls into the respective mfd driver, but fails to link if that is diabled: drivers/watchdog/built-in.o: In function `retu_wdt_set_timeout': ziirave_wdt.c:(.text+0x8c88): undefined reference to `retu_write' ziirave_wdt.c:(.text+0x8c88): relocation truncated to fit: R_AARCH64_CALL

[PATCH 2/3] watchdog: db8500: add back prmcu dependency

2017-03-01 Thread Arnd Bergmann
When the db8500 watchdog is enabled without the PRCMU, we get a lot of warnings about duplicate or missing helper functions: In file included from drivers/watchdog/ux500_wdt.c:21:0: include/linux/mfd/dbx500-prcmu.h:422:19: error: redefinition of 'prcmu_abb_read' static inline int prcmu_abb_read(u

Re: [PATCH v5 03/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode()

2017-03-01 Thread James Morris
On Wed, 22 Feb 2017, Mickaël Salaün wrote: > Add an eBPF function bpf_handle_fs_get_mode(handle_fs) to get the mode > of a an abstract object wrapping either a file, a dentry, a path, or an > inode. > > Changes since v4: > * use a file abstraction (handle) to wrap inode, dentry, path and file >

[PATCH 0/3] remaining watchdog dependency fixes

2017-03-01 Thread Arnd Bergmann
I've updated the db8500 and retu patches as requested, and found one more patch in my backlog that we should just apply as well. Arnd

Re: [PATCH v2] lockdep: Teach lockdep about memalloc_noio_save

2017-03-01 Thread Peter Zijlstra
On Wed, Mar 01, 2017 at 11:57:13AM +0200, Nikolay Borisov wrote: > > > On 1.03.2017 11:46, Peter Zijlstra wrote: > > On Wed, Mar 01, 2017 at 09:59:00AM +0200, Nikolay Borisov wrote: > >> Commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O > >> during memory allocation") adde

Re: [PATCH 2/2] hwmon: Aspeed AST2400/AST2500 ADC

2017-03-01 Thread Guenter Roeck
On 02/28/2017 04:49 PM, Joel Stanley wrote: On Wed, Mar 1, 2017 at 6:44 AM, Rick Altherr wrote: Aspeed AST2400/AST2500 BMC SoCs include a 16 channel, 10-bit ADC. This driver implements reading the ADC values, enabling channels via device tree, and optionally providing channel labels via device

Re: [PATCH v1] mmc: mediatek: Fixed bug where clock frequency could be set wrong

2017-03-01 Thread Yong Mao
On Tue, 2017-02-28 at 14:56 +0800, Daniel Kurtz wrote: > On Fri, Feb 24, 2017 at 5:38 PM, Yong Mao wrote: > > From: Yong Mao > > To: Daniel Kurtz > > Subject:Re: [PATCH v1] mmc: mediatek: Fixed bug where clock > > frequency > > could be set wrong > > Date: Fri, 24 Feb 2017 17:33

net/dccp: dccp_create_openreq_child freed held lock

2017-03-01 Thread Dmitry Vyukov
Hello, I've got the following report while running syzkaller fuzzer on 86292b33d4b79ee03e2f43ea0381ef85f077c760: [ BUG: held lock freed! ] 4.10.0+ #234 Not tainted - syz-executor6/6898 is freeing memory 88006286cac0-88006286d3b7, with a lock still held there! (slo

Re: [PATCH v3] sched/deadline: Change the time to replenish runtime for sleep tasks

2017-03-01 Thread Juri Lelli
On 01/03/17 12:37, Byungchul Park wrote: > On Tue, Feb 28, 2017 at 05:47:53PM +, Juri Lelli wrote: > > > > > Let's consider the following example. > > > > > > > > > > timeline : o...o.o...o..o > > > > >^ ^ ^ ^ ^ > > > > >

Re: [PATCH 01/10] x86: assembly, ENTRY for fn, GLOBAL for data

2017-03-01 Thread Thomas Gleixner
On Wed, 1 Mar 2017, Ingo Molnar wrote: > > * Jiri Slaby wrote: > > > This is a start of series to unify use of ENTRY, ENDPROC, GLOBAL, END, > > and other macros across x86. When we have all this sorted out, this will > > help to inject DWARF unwinding info by objtool later. > > > > So, let us u

Re: [PATCH] x86/acpi: Fix a warning message in logical CPU IDs allocation

2017-03-01 Thread Dou Liyang
Hi Ingo, At 03/01/2017 05:10 PM, Ingo Molnar wrote: * Dou Liyang wrote: Current warning message regarded the "nr_cpu_ids - 1" as the limit number of the CPUs. It may be confused us, for example: we have two CPUs, nr_cpu_ids = 2, but the warning message may indicate that we just have 1 CPU, w

Re: [RFC PATCH 1/2] mtd: spi-nor: Introduce bounce buffer to handle vmalloc'd buffers

2017-03-01 Thread Cyrille Pitchen
Le 28/02/2017 à 22:39, Richard Weinberger a écrit : > Vignesh, > > Am 27.02.2017 um 13:08 schrieb Vignesh R: >> Filesystems like UBIFS may pass vmalloc'd buffers to SPI NOR layer which >> will end up in SPI layer. SPI core does try to handle such buffers (see >> spi_map_buf()) by doing vmalloc_to_

[PATCH 2/2] phy: rockchip-inno-usb2: add support of u2phy for rk3328

2017-03-01 Thread Meng Dongyang
Add u2phy config information in the data of match table for rk3328. Signed-off-by: Meng Dongyang --- drivers/phy/phy-rockchip-inno-usb2.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/phy/phy-rockchip-inno-usb2.c b/drivers/phy/phy-rockchip-inno-usb2.c index

[PATCH 1/2] Documentation: bindings: add DT documentation for u2phy and u2phy grf

2017-03-01 Thread Meng Dongyang
Due to the u2phy registers are separated from general grf, we need to add u2phy grf node and place u2phy node in it. And on some platform, the 480m clock may need to assign clock parent in dts in stead of clock driver. So this patch add u2phy grf node and property of assigned-clocks and assigned-cl

Re: [PATCH] mmc: core: Fix power sequence ordering in mmc_power_up

2017-03-01 Thread Romain Perier
Hi, Le 01/03/2017 à 10:53, Arend Van Spriel a écrit : > On 1-3-2017 9:59, Romain Perier wrote: >> Currently, mmc_power_up calls the pre_power_on callback, enables the >> power supply of the mmc by calling mmc_set_ios() and then call >> post_power_on. WiFi chipsets like the AP6335 require a specif

  1   2   3   4   5   6   7   8   9   >