[PATCH] libata: Add new med_power_with_dipm link_power_management_policy setting

2017-09-14 Thread Hans de Goede
As described by Matthew Garret quite a while back: https://mjg59.dreamwidth.org/34868.html Intel CPUs starting with the Haswell generation need SATA links to power down for the "package" part of the CPU to reach low power-states like PC7 / P8 which bring a significant power-saving with them. The

[PATCH 4/5] lightnvm: pblk: do not use a mempool for line bitmaps

2017-09-14 Thread Javier González
pblk holds two sector bitmaps: one to keep track of the mapped sectors while the line is active and another one to keep track of the invalid sectors. The latter is kept during the whole live of the line, until it is recycled. Since we cannot guarantee forward progress for the mempool in this case,

Re: [RFC Part2 PATCH v3 19/26] KVM: svm: Add support for SEV GUEST_STATUS command

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:02:56PM -0500, Brijesh Singh wrote: > The command is used for querying the SEV guest status. > > Signed-off-by: Brijesh Singh > --- > arch/x86/kvm/svm.c | 38 ++ > 1 file changed, 38 insertions(+) > > diff --git a/arch/x86/kvm/svm.c

[PATCH 5/8] [media] ttusb_dec: Move an assignment in ttusb_dec_probe()

2017-09-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Sep 2017 20:32:25 +0200 Assign a pointer to a data structure member without using an intermediate local variable. Signed-off-by: Markus Elfring --- drivers/media/usb/ttusb-dec/ttusb_dec.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH 0/1] libata: Add new med_power_with_dipm link_power_management_policy setting

2017-09-14 Thread Hans de Goede
Hi All, As described by Matthew Garret quite a while back: https://mjg59.dreamwidth.org/34868.html On Intel CPUs starting with the Haswell generation SATA link power management can save a significant amount of power. Previous attempts to try and enable SATA LPM by default have gotten stuck on om

[PATCH 0/5] lightnvm: pblk: audit mempool usage

2017-09-14 Thread Javier González
As suggested by Jens [1], I audited all mempools on pblk. This patche series (i) fixes bad mempool allocations that did not guarantee forward progress and downsizes the sizes of some overused mempools, (ii) removes unnecessary checks, and (iii) eliminates some mempools that where introduced in ear

[PATCH 6/8] [media] ttusb_dec: Reduce the scope for three variables in ttusb_dec_process_urb()

2017-09-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Sep 2017 21:23:29 +0200 * Move the definition for the local variables "b", "d" and "length" into an if branch so that the corresponding setting will only be performed if a memory allocation succeeded in this function. * Adjust their data types. Signed-off-

[PATCH 1/5] lightnvm: pblk: fix min size for page mempool

2017-09-14 Thread Javier González
pblk uses an internal page mempool for allocating pages on internal bios. The main two users of this memory pool are partial reads (reads with some sectors in cache and some on media) and padded writes, which need to add dummy pages to an existing bio already containing valid data (and with a large

[PATCH 7/8] [media] ttusb_dec: Add spaces for better code readability

2017-09-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Sep 2017 22:12:07 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: spaces required around that '=' (ctx:VxV) Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/media/usb/ttusb-dec/ttusb_dec

[PATCH 8/8] [media] ttusb_dec: Delete four unwanted spaces

2017-09-14 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Sep 2017 22:22:41 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: space prohibited after that open parenthesis '(' Thus fix affected source code places. Signed-off-by: Markus Elfring --- drivers/media/usb/ttusb-dec/ttusb_

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-14 Thread Julien Grall
Hi, CC Juergen, Boris and Stefano. On 08/09/17 18:24, Tycho Andersen wrote: On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: +/* + * Lookup the page table entry for a virtual address and return a pointer to + * the entry. Based on x86 tree. + */ +static pte_t *lookup_address(

Re: [PATCH] ARC: reset: remove the misleading v1 suffix all over

2017-09-14 Thread Philipp Zabel
On Mon, 2017-09-11 at 09:33 -0700, Vineet Gupta wrote: > On 09/11/2017 03:28 AM, Philipp Zabel wrote: > > Hi Vineet, > > > > [added Eugeniy to Cc] > > > > On Thu, 2017-08-31 at 11:06 -0700, Vineet Gupta wrote: > > > There is no plan yet to do a v2 board. And even if we were to do > > > it > > > o

[tip:core/urgent] perf/x86/intel, watchdog/core: Sanitize PMU HT bug workaround

2017-09-14 Thread tip-bot for Peter Zijlstra
Commit-ID: 2406e3b166eee42777a6b0b38f52f924454474d7 Gitweb: http://git.kernel.org/tip/2406e3b166eee42777a6b0b38f52f924454474d7 Author: Peter Zijlstra AuthorDate: Tue, 12 Sep 2017 21:36:56 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:03 +0200 perf/x86/intel, watchdog/

[tip:core/urgent] parisc, watchdog/core: Use lockup_detector_stop()

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 47bb4baf7df43ac8bbc51c24022466972ba29ef1 Gitweb: http://git.kernel.org/tip/47bb4baf7df43ac8bbc51c24022466972ba29ef1 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:36:58 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:03 +0200 parisc, watchdog/core: U

[tip:core/urgent] watchdog/core: Provide interface to stop from poweroff()

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 6554fd8cf06db86f861bb24d7487b2873ca444c4 Gitweb: http://git.kernel.org/tip/6554fd8cf06db86f861bb24d7487b2873ca444c4 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:36:57 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:03 +0200 watchdog/core: Provide i

[tip:core/urgent] watchdog/hardlockup: Provide interface to stop/restart perf events

2017-09-14 Thread tip-bot for Peter Zijlstra
Commit-ID: d0b6e0a8ef24b1b07078ababe5d91bcdf4f4264a Gitweb: http://git.kernel.org/tip/d0b6e0a8ef24b1b07078ababe5d91bcdf4f4264a Author: Peter Zijlstra AuthorDate: Tue, 12 Sep 2017 21:36:55 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:03 +0200 watchdog/hardlockup: Prov

[tip:core/urgent] watchdog/core: Rework CPU hotplug locking

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: b7a349819d4b9b5db64e523351e66a79a758eaa5 Gitweb: http://git.kernel.org/tip/b7a349819d4b9b5db64e523351e66a79a758eaa5 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:00 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:04 +0200 watchdog/core: Rework CP

[PATCH] KVM: async_pf: Fix #DF due to inject "Page not Present" and "Page Ready" exceptions simultaneously

2017-09-14 Thread Wanpeng Li
From: Wanpeng Li qemu-system-x86-8600 [004] d..1 7205.687530: kvm_entry: vcpu 2 qemu-system-x86-8600 [004] 7205.687532: kvm_exit: reason EXCEPTION_NMI rip 0xa921297d info eb2c0e44e018 8b0e qemu-system-x86-8600 [004] 7205.687532: kvm_page_fault: address eb2c0e

[tip:core/urgent] watchdog/core: Rename watchdog_proc_mutex

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 946d197794b23202b8b46c43016747c72fe23393 Gitweb: http://git.kernel.org/tip/946d197794b23202b8b46c43016747c72fe23393 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:01 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:04 +0200 watchdog/core: Rename wa

[tip:core/urgent] watchdog/core: Mark hardlockup_detector_disable() __init

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 7a3558200739e1378800a7a6d7f63c031115f7a4 Gitweb: http://git.kernel.org/tip/7a3558200739e1378800a7a6d7f63c031115f7a4 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:02 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:04 +0200 watchdog/core: Mark hard

[tip:core/urgent] watchdog/core: Remove broken suspend/resume interfaces

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 5490125d77a43016b26f629d4b485e2c62172551 Gitweb: http://git.kernel.org/tip/5490125d77a43016b26f629d4b485e2c62172551 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:36:59 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:04 +0200 watchdog/core: Remove br

[tip:core/urgent] watchdog/hardlockup/perf: Remove broken self disable on failure

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 20d853fd0703b1d73c35a22024c0d4fcbcc57c8c Gitweb: http://git.kernel.org/tip/20d853fd0703b1d73c35a22024c0d4fcbcc57c8c Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:03 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:04 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/hardlockup/perf: Prevent CPU hotplug deadlock

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 941154bd6937a710ae9193a3c733c0029e5ae7b8 Gitweb: http://git.kernel.org/tip/941154bd6937a710ae9193a3c733c0029e5ae7b8 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:04 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:05 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/core: Remove the park_in_progress obfuscation

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 01f0a02701cbcf32d22cfc9d1ab9a3f0ff2ba68c Gitweb: http://git.kernel.org/tip/01f0a02701cbcf32d22cfc9d1ab9a3f0ff2ba68c Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:05 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:05 +0200 watchdog/core: Remove th

[tip:core/urgent] watchdog/core: Clean up stub functions

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 2b9d7f233b835663cbc7b6b3f88dd20f61118d1e Gitweb: http://git.kernel.org/tip/2b9d7f233b835663cbc7b6b3f88dd20f61118d1e Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:06 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:05 +0200 watchdog/core: Clean up

[tip:core/urgent] watchdog/core: Clean up the #ifdef maze

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 368a7e2ce8ff0ddcdcb37eadb76530b033f6eb2d Gitweb: http://git.kernel.org/tip/368a7e2ce8ff0ddcdcb37eadb76530b033f6eb2d Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:07 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:05 +0200 watchdog/core: Clean up

[tip:core/urgent] watchdog/core: Split out cpumask write function

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 05ba3de74a3f499dcaa37b186220aaf174c95a4b Gitweb: http://git.kernel.org/tip/05ba3de74a3f499dcaa37b186220aaf174c95a4b Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:08 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:06 +0200 watchdog/core: Split out

[tip:core/urgent] smpboot/threads, watchdog/core: Avoid runtime allocation

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 0d85923c7a81719567311ba0eae8ecb2efd4c8a0 Gitweb: http://git.kernel.org/tip/0d85923c7a81719567311ba0eae8ecb2efd4c8a0 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:09 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:06 +0200 smpboot/threads, watchdo

[PATCH] selftests: intel_pstate: compile programs if executable not found

2017-09-14 Thread naresh . kamboju
From: Naresh Kamboju Test exit due to aperf.c: No such file or directory ./run.sh gcc: error: aperf.c: No such file or directory Problem compiling aperf.c. The Makefile installs executable programs "aperf" and "msr" so skip compile on target. Signed-off-by: Naresh Kamboju --- tools/testing/se

[tip:core/urgent] watchdog/core: Create new thread handling infrastructure

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 2eb2527f847d1bd8d8fb9db1e8139db5d6eddb36 Gitweb: http://git.kernel.org/tip/2eb2527f847d1bd8d8fb9db1e8139db5d6eddb36 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:10 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:06 +0200 watchdog/core: Create ne

[tip:core/urgent] watchdog/core: Get rid of the thread teardown/setup dance

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: d57108d4f6791291e89d980e7f7a3566c32ab188 Gitweb: http://git.kernel.org/tip/d57108d4f6791291e89d980e7f7a3566c32ab188 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:11 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:06 +0200 watchdog/core: Get rid o

[tip:core/urgent] watchdog/core: Further simplify sysctl handling

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: e8b62b2dd14f8f2427856ba24cb7db922bda9bfd Gitweb: http://git.kernel.org/tip/e8b62b2dd14f8f2427856ba24cb7db922bda9bfd Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:12 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:06 +0200 watchdog/core: Further s

Re: [RFC 0/2] backlight: pwm_bl: support linear brightness to human eye

2017-09-14 Thread Enric Balletbo Serra
Hi, 2017-09-08 19:39 GMT+02:00 Doug Anderson : > Hi, > > On Fri, Sep 8, 2017 at 4:18 AM, Daniel Thompson > wrote: >> On 07/09/17 19:04, Doug Anderson wrote: >>> I'd agree that I don't think we should land Enric's series as-is. >>> ...but I think something has been missing from the discussion so f

[tip:core/urgent] watchdog/core: Clean up header mess

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 3b371b5936ec819619c00ca60f196a8e13fa Gitweb: http://git.kernel.org/tip/3b371b5936ec819619c00ca60f196a8e13fa Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:13 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:07 +0200 watchdog/core: Clean up

[tip:core/urgent] watchdog/sysctl: Get rid of the #ifdeffery

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 51d4052b01ca555e0d1d5fe297b309beb6c64aa0 Gitweb: http://git.kernel.org/tip/51d4052b01ca555e0d1d5fe297b309beb6c64aa0 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:14 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:07 +0200 watchdog/sysctl: Get rid

[tip:core/urgent] watchdog/sysctl: Clean up sysctl variable name space

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 7feeb9cd4f5b34476ffb9e6d58d58c5416375b19 Gitweb: http://git.kernel.org/tip/7feeb9cd4f5b34476ffb9e6d58d58c5416375b19 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:15 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:07 +0200 watchdog/sysctl: Clean u

[tip:core/urgent] watchdog/core: Get rid of the racy update loop

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 091549858ed881e5f3054374af4f5b1cac681d50 Gitweb: http://git.kernel.org/tip/091549858ed881e5f3054374af4f5b1cac681d50 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:17 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:07 +0200 watchdog/core: Get rid o

[PATCH v2] KVM: async_pf: Fix #DF due to inject "Page not Present" and "Page Ready" exceptions simultaneously

2017-09-14 Thread Wanpeng Li
From: Wanpeng Li qemu-system-x86-8600 [004] d..1 7205.687530: kvm_entry: vcpu 2 qemu-system-x86-8600 [004] 7205.687532: kvm_exit: reason EXCEPTION_NMI rip 0xa921297d info eb2c0e44e018 8b0e qemu-system-x86-8600 [004] 7205.687532: kvm_page_fault: address eb2c0e

[tip:core/urgent] watchdog/hardlockup/perf: Implement init time perf validation

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 178b9f7a36d2c74a38274b66dd89f53611298a19 Gitweb: http://git.kernel.org/tip/178b9f7a36d2c74a38274b66dd89f53611298a19 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:18 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:08 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/hardlockup/perf: Implement init time detection of perf

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: a994a3147e4c0c9c50a46e6cace7586254975e20 Gitweb: http://git.kernel.org/tip/a994a3147e4c0c9c50a46e6cace7586254975e20 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:19 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:08 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/core, powerpc: Make watchdog_nmi_reconfigure() two stage

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 6592ad2fcc8f15b4f99b36c1db7d9f65510c203b Gitweb: http://git.kernel.org/tip/6592ad2fcc8f15b4f99b36c1db7d9f65510c203b Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:16 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:07 +0200 watchdog/core, powerpc:

[tip:core/urgent] watchdog/hardlockup/perf: Implement CPU enable replacement

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 2a1b8ee4f5665b4291e43e4a25d964c3eb2f4c32 Gitweb: http://git.kernel.org/tip/2a1b8ee4f5665b4291e43e4a25d964c3eb2f4c32 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:20 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:08 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/hardlockup/perf: Use new perf CPU enable mechanism

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: 146c9d0e9dfdb62ed6afd43cc263efafbbfd1dcf Gitweb: http://git.kernel.org/tip/146c9d0e9dfdb62ed6afd43cc263efafbbfd1dcf Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:21 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:08 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/hardlockup/perf: Simplify deferred event destroy

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: a33d44843d4574ec05bec39527d8a87b7af2072c Gitweb: http://git.kernel.org/tip/a33d44843d4574ec05bec39527d8a87b7af2072c Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:22 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:08 +0200 watchdog/hardlockup/perf

[tip:core/urgent] watchdog/hardlockup: Clean up hotplug locking mess

2017-09-14 Thread tip-bot for Thomas Gleixner
Commit-ID: ab5fe3ff38ff9653490910cc71dbbedc95a86e41 Gitweb: http://git.kernel.org/tip/ab5fe3ff38ff9653490910cc71dbbedc95a86e41 Author: Thomas Gleixner AuthorDate: Tue, 12 Sep 2017 21:37:23 +0200 Committer: Ingo Molnar CommitDate: Thu, 14 Sep 2017 11:41:09 +0200 watchdog/hardlockup: Cle

EN12976/ISO9806/Solar Keymark approved A9H high pressure solar water heater system

2017-09-14 Thread Mr.David
Hi, How are you, In the attachment, it is the new catalogue/price list (summary) ?in 2017 solar hot water heating. It includes many new products and better price, such as 1). model SHC: ?CPC heat pipe collectors--highest power output: 2). model A9H: CPC Integrated pressure solar system--overhe

[PATCH] net/mlx5: fpga: avoid uninitialized return codes

2017-09-14 Thread Arnd Bergmann
calling mlx5_fpga_mem_{read,write}_i2c() with a zero length on older compiler version such as gcc-4.6 results in a warning that the return code is not initialized: drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.c:147:6: error: ‘err’ may be used uninitialized in this function [-Werror=uninitiali

Re: [patches] [PATCH v8 08/18] irqchip: New RISC-V PLIC Driver

2017-09-14 Thread Jonathan Neuschäfer
Hi, On Tue, Sep 12, 2017 at 02:57:05PM -0700, Palmer Dabbelt wrote: > This patch adds a driver for the Platform Level Interrupt Controller > (PLIC) specified as part of the RISC-V supervisor level ISA manual. > The PLIC connocts global interrupt sources to the local interrupt s/connocts/connects/

[PATCH] [media] rcar_drif: fix potential uninitialized variable use

2017-09-14 Thread Arnd Bergmann
Older compilers like gcc-4.6 may run into a case that returns an uninitialized variable from rcar_drif_enable_rx() if that function was ever called with an empty cur_ch_mask: drivers/media/platform/rcar_drif.c:658:2: error: ‘ret’ may be used uninitialized in this function [-Werror=uninitialized]

[PATCH] mtd: spi-nor: stm32-quadspi: avoid unintialized return code

2017-09-14 Thread Arnd Bergmann
If we send zero-length data to stm32_qspi_tx_poll() on older compiler versions such as gcc-4.6, we get warned that the return code is uninitialized: drivers/mtd/spi-nor/stm32-quadspi.c:248:2: error: ‘ret’ may be used uninitialized in this function [-Werror=uninitialized] On newer compiler versio

Re: [RFC Part2 PATCH v3 20/26] KVM: SVM: Add support for SEV DEBUG_DECRYPT command

2017-09-14 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 03:02:57PM -0500, Brijesh Singh wrote: > The command is used for decrypting a guest memory region for debug > purposes. > > Signed-off-by: Brijesh Singh > --- > arch/x86/kvm/svm.c | 160 > + > 1 file changed, 160 insert

Re: [PATCH v6 5/7] arm64: kvm: route synchronous external abort exceptions to el2

2017-09-14 Thread gengdongjiu
James, On 2017/9/8 0:31, James Morse wrote: > KVM already handles external aborts from lower exception levels, no more work > needs doing for TEA. If it is firmware first solution, that is SCR_EL3.EA=1, all SError interrupt and synchronous External Abort exceptions are taken to EL3, so EL3 firmwa

[PATCH] kbuild: (bin)rpm-pkg: fix .version handling

2017-09-14 Thread Masahiro Yamada
The "Release:" field of the spec file is determined based on the .version file. However, the .version file is not copied to the source tar file. So, when we build the kernel from the source package, the UTS_VERSION always indicates #1. This does not match with "rpm -q". The kernel UTS_VERSION an

Re: [PATCH 1/1] Coccinelle: array_size: report even if include is missing

2017-09-14 Thread Julia Lawall
On Wed, 13 Sep 2017, Jérémy Lefaure wrote: > Rule r does not depend on rule i (which is the include of > linux/kernel.h) so the output should not depend on i in > org and report mode. > > Signed-off-by: Jérémy Lefaure Acked-by: Julia Lawall I guess that if the incude is missing, the person u

Re: [patch 00/52] x86: Rework the vector management

2017-09-14 Thread Juergen Gross
On 13/09/17 23:29, Thomas Gleixner wrote: > Sorry for the large CC list, but this is a major surgery. > > The vector management in x86 including the surrounding code is a > conglomorate of ancient bits and pieces which have been subject to > 'modernization' and featuritis over the years. The most

Re: [PATCH] net/packet: fix race condition between fanout_add and __unregister_prot_hook

2017-09-14 Thread Willem de Bruijn
On Wed, Sep 13, 2017 at 10:40 PM, nixiaoming wrote: > If fanout_add is preempted after running po-> fanout = match > and before running __fanout_link, > it will cause BUG_ON when __unregister_prot_hook call __fanout_unlink > > so, we need add mutex_lock(&fanout_mutex) to __unregister_prot_hook > o

Re: [RFC Part2 PATCH v3 19/26] KVM: svm: Add support for SEV GUEST_STATUS command

2017-09-14 Thread Brijesh Singh
On 9/14/17 5:35 AM, Borislav Petkov wrote: ... > + >> +if (copy_from_user(¶ms, (void *) argp->data, >> +sizeof(struct kvm_sev_guest_status))) > Let me try to understand what's going on here. You copy user data into > params... This is wrong -- since all the param

[PATCH v2] kbuild: (bin)rpm-pkg: fix version number handling

2017-09-14 Thread Masahiro Yamada
The "Release:" field of the spec file is determined based on the .version file. However, the .version file is not copied to the source tar file. So, when we build the kernel from the source package, the UTS_VERSION always indicates #1. This does not match with "rpm -q". The kernel UTS_VERSION an

Re: [RFC PATCH 1/2] autofs: set compat flag on sbi when daemon uses 32bit addressation

2017-09-14 Thread Ian Kent
On 14/09/17 17:24, Stanislav Kinsburskiy wrote: > > > 14.09.2017 02:38, Ian Kent пишет: >> On 01/09/17 19:21, Stanislav Kinsburskiy wrote: >>> Signed-off-by: Stanislav Kinsburskiy >>> --- >>> fs/autofs4/autofs_i.h |3 +++ >>> fs/autofs4/dev-ioctl.c |3 +++ >>> fs/autofs4/inode.c |

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-14 Thread Juergen Gross
On 14/09/17 12:41, Julien Grall wrote: > Hi, > > CC Juergen, Boris and Stefano. > > On 08/09/17 18:24, Tycho Andersen wrote: >> On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: +/* + * Lookup the page table entry for a virtual address and return a pointer to

[PATCH v2 2/2] ARM: socfpga: dtsi: add dw-wdt reset lines

2017-09-14 Thread Oleksij Rempel
From: Steffen Trumtrar Signed-off-by: Steffen Trumtrar Signed-off-by: Oleksij Rempel Cc: Dinh Nguyen Cc: linux-arm-ker...@lists.infradead.org --- arch/arm/boot/dts/socfpga.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dts

[PATCH v2 1/2] watchdog: dw_wdt: add stop watchdog operation

2017-09-14 Thread Oleksij Rempel
From: Steffen Trumtrar The only way of stopping the watchdog is by resetting it. Add the watchdog op for stopping the device and reset if a reset line is provided. Signed-off-by: Steffen Trumtrar Signed-off-by: Oleksij Rempel Cc: Wim Van Sebroeck Cc: Guenter Roeck Cc: linux-watch...@vger.ker

Re: 答复: [PATCH] mfd: rtsx: Add support for RTS5260

2017-09-14 Thread Lee Jones
On Thu, 14 Sep 2017, 冯锐 wrote: > On Fri, 08 Sep 2017, rui_f...@realsil.com.cn wrote: > > > From: rui_feng > > > > Add support for new chip rts5260. > > You are adding over 600 lines in this patch. It desearves a more forthcoming > commit message. > > What is it? > What functionality does it

Re: [RFC PATCH 1/2] autofs: set compat flag on sbi when daemon uses 32bit addressation

2017-09-14 Thread Stanislav Kinsburskiy
14.09.2017 13:29, Ian Kent пишет: > On 14/09/17 17:24, Stanislav Kinsburskiy wrote: >> >> >> 14.09.2017 02:38, Ian Kent пишет: >>> On 01/09/17 19:21, Stanislav Kinsburskiy wrote: Signed-off-by: Stanislav Kinsburskiy --- fs/autofs4/autofs_i.h |3 +++ fs/autofs4/dev-ioctl

[GIT PULL] fbdev changes for v4.14

2017-09-14 Thread Bartlomiej Zolnierkiewicz
Hi Linus, Please pull fbdev changes for v4.14. There is slightly more changes than usual this time (especially fbcon changes stand out from the rest), please see the signed tag description for details. Test merge revealed a small merge conflict, the resolution is trivial: diff --cc drivers/vide

[PATCH] arm64: remove unneeded copy to init_utsname()->machine

2017-09-14 Thread Masahiro Yamada
As you see in init/version.c, init_uts_ns.name.machine is initially set to UTS_MACHINE. There is no point to copy the same string. I dug the git history to figure out why this line is here. My best guess is like this: - This line has been around here since the initial support of arm64 by co

Re: [PATCH v2 1/2] watchdog: dw_wdt: add stop watchdog operation

2017-09-14 Thread Philipp Zabel
On Thu, 2017-09-14 at 13:30 +0200, Oleksij Rempel wrote: > From: Steffen Trumtrar > > The only way of stopping the watchdog is by resetting it. > Add the watchdog op for stopping the device and reset if > a reset line is provided. > > Signed-off-by: Steffen Trumtrar > Signed-off-by: Oleksij Rem

Re: [RFC PATCH 1/2] autofs: set compat flag on sbi when daemon uses 32bit addressation

2017-09-14 Thread Ian Kent
On 14/09/17 19:39, Stanislav Kinsburskiy wrote: > > > 14.09.2017 13:29, Ian Kent пишет: >> On 14/09/17 17:24, Stanislav Kinsburskiy wrote: >>> >>> >>> 14.09.2017 02:38, Ian Kent пишет: On 01/09/17 19:21, Stanislav Kinsburskiy wrote: > Signed-off-by: Stanislav Kinsburskiy > --- >

Re: [RFC PATCH 1/2] autofs: set compat flag on sbi when daemon uses 32bit addressation

2017-09-14 Thread Stanislav Kinsburskiy
14.09.2017 13:45, Ian Kent пишет: > On 14/09/17 19:39, Stanislav Kinsburskiy wrote: >> >> >> 14.09.2017 13:29, Ian Kent пишет: >>> On 14/09/17 17:24, Stanislav Kinsburskiy wrote: 14.09.2017 02:38, Ian Kent пишет: > On 01/09/17 19:21, Stanislav Kinsburskiy wrote: >> Signed-o

[PATCH v2] checkpatch: support function pointers for unnamed function definition arguments

2017-09-14 Thread Miles Chen
Current unnamed function definition argument does not include function pointer cases and it reports something like: WARNING: function definition argument 'void' should also have an identifier name +unsigned int (*dummy)(void); Support function pointers for unnamed function arguments Signed-off-b

[RFC PATCH] alpha: make XTABS equivalent to TAB3

2017-09-14 Thread Eugene Syromiatnikov
XTABS is an old name for "expand tabs to spaces" flag, which was a separate flag on some BSD implementations. POSIX, however, specifies that this effect is enabled with TAB3 output mode. Currently, alpha is the only architecture that has the value of the XTABS flag not equivalent to TAB3. Signed-

Re: [PATCH 1/2] KVM: nVMX: Fix nested #PF intends to break L1's vmlauch/vmresume

2017-09-14 Thread Wanpeng Li
2017-09-14 7:14 GMT+08:00 Wanpeng Li : > 2017-09-14 5:45 GMT+08:00 Paolo Bonzini : >> On 13/09/2017 13:03, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> [ cut here ] >>> WARNING: CPU: 4 PID: 5280 at /home/kernel/linux/arch/x86/kvm//vmx.c:11394 >>> nested_vmx_vmexit+0xc2b

Re: [PATCH -mm -v4 3/5] mm, swap: VMA based swap readahead

2017-09-14 Thread Huang, Ying
Minchan Kim writes: > On Wed, Sep 13, 2017 at 02:02:29PM -0700, Andrew Morton wrote: >> On Wed, 13 Sep 2017 10:40:19 +0900 Minchan Kim wrote: >> >> > Every zram users like low-end android device has used 0 page-cluster >> > to disable swap readahead because it has no seek cost and works as >> >

[PATCH] staging: rtl8723bs: Merge assignment with return

2017-09-14 Thread Harsha Sharma
Merge assignment with return statement to directly return the value. Done using following coccinelle semantic patch @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Harsha Sharma --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 20 -

[PATCH] Staging: lustre: obdclass: Use kcalloc instead of kzalloc

2017-09-14 Thread Srishti Sharma
Use kcalloc instead of kzalloc to check for overflow before multiplication. Done using the following semantic patch by coccinelle. http://coccinelle.lip6.fr/rules/kzalloc.cocci Signed-off-by: Srishti Sharma --- drivers/staging/lustre/lustre/obdclass/cl_object.c | 2 +- 1 file changed, 1 inserti

[PATCH] samples/kprobes: Add s390 case in kprobe example module

2017-09-14 Thread Johannes Thumshirn
Add info prints in sample kprobe handlers for S/390 Signed-off-by: Johannes Thumshirn --- samples/kprobes/kprobe_example.c | 8 1 file changed, 8 insertions(+) diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index 88b3e2d227ae..67de3b774bc9 100644 --- a

[PATCH] clk: sunxi-ng: Fix missing CLK_SET_RATE_PARENT in ccu-sun4i-a10.c

2017-09-14 Thread Alexander Syring
When using cpufreq-dt with default govenor other than "performance" system freezes while booting. Adding CLK_SET_RATE_PARENT | CLK_IS_CRITICAL to clk_cpu fixes the problem. Tested on Cubietruck (A20). Fixes: c84f5683f6E ("clk: sunxi-ng: Add sun4i/sun7i CCU driver") Reported-by: Alexander Syring

Re: [PATCH] clk: sunxi-ng: Fix missing CLK_SET_RATE_PARENT in ccu-sun4i-a10.c

2017-09-14 Thread Chen-Yu Tsai
On Thu, Sep 14, 2017 at 8:05 PM, Alexander Syring wrote: > When using cpufreq-dt with default govenor other than "performance" > system freezes while booting. > Adding CLK_SET_RATE_PARENT | CLK_IS_CRITICAL to clk_cpu fixes the > problem. > > Tested on Cubietruck (A20). > > Fixes: c84f5683f6E ("clk

Re: [PATCH 1/2] usb: host: Implement workaround for Erratum A-009611

2017-09-14 Thread Mathias Nyman
On 11.09.2017 12:41, yinbo@nxp.com wrote: From: "yinbo.zhu" Description: This is a occasional problem where the software issues an End Transfer command while a USB transfer is in progress, resulting in the TxFIFO being flushed when the lower layer is waiting for data,causing the super spee

[PATCH] Staging: ccree: Use kcalloc instead of kzalloc

2017-09-14 Thread Srishti Sharma
Use kcalloc instead of kzalloc to check for overflow before multiplication. Done using the following semantic patch by coccinelle. http://coccinelle.lip6.fr/rules/kzalloc.cocci Signed-off-by: Srishti Sharma --- drivers/staging/ccree/ssi_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH v2 4/4] tpm: use tpm_msleep() value as max delay

2017-09-14 Thread Jarkko Sakkinen
On Thu, Sep 14, 2017 at 02:55:34PM +0530, Nayna Jain wrote: > > > On 09/13/2017 06:17 AM, Jarkko Sakkinen wrote: > > On Wed, Sep 06, 2017 at 08:56:39AM -0400, Nayna Jain wrote: > > > Currently, tpm_msleep() uses delay_msec as the minimum value in > > > usleep_range. However, that is the maximum t

[PATCH v3] uwb: properly check kthread_run return value

2017-09-14 Thread Andrey Konovalov
uwbd_start() calls kthread_run() and checks that the return value is not NULL. But the return value is not NULL in case kthread_run() fails, it takes the form of ERR_PTR(-EINTR). Use IS_ERR() instead. Also add a check to uwbd_stop(). Signed-off-by: Andrey Konovalov --- v2: don't assign error v

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Merge assignment with return

2017-09-14 Thread Julia Lawall
On Thu, 14 Sep 2017, Harsha Sharma wrote: > Merge assignment with return statement to directly return the value. > Done using following coccinelle semantic patch > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return > e; > -return ret; Acked-by: Julia Lawall Many of

Re: [Outreachy kernel] [PATCH] Staging: lustre: obdclass: Use kcalloc instead of kzalloc

2017-09-14 Thread Julia Lawall
On Thu, 14 Sep 2017, Srishti Sharma wrote: > Use kcalloc instead of kzalloc to check for overflow before > multiplication. Done using the following semantic patch by > coccinelle. > > http://coccinelle.lip6.fr/rules/kzalloc.cocci > > Signed-off-by: Srishti Sharma Acked-by: Julia Lawall > ---

Re: [PATCH v2] uwb: properly check kthread_run return value

2017-09-14 Thread Andrey Konovalov
On Wed, Sep 13, 2017 at 6:53 PM, Dmitry Vyukov wrote: > On Wed, Sep 13, 2017 at 6:06 PM, Andrey Konovalov > wrote: >> uwbd_start() calls kthread_run() and checks that the return value is >> not NULL. But the return value is not NULL in case kthread_run() fails, >> it takes the form of ERR_PTR(-E

Re: [Outreachy kernel] [PATCH] Staging: ccree: Use kcalloc instead of kzalloc

2017-09-14 Thread Julia Lawall
On Thu, 14 Sep 2017, Srishti Sharma wrote: > Use kcalloc instead of kzalloc to check for overflow before > multiplication. Done using the following semantic patch by > coccinelle. > > http://coccinelle.lip6.fr/rules/kzalloc.cocci > > Signed-off-by: Srishti Sharma > --- > drivers/staging/ccree/

[PATCH] video: fbdev: make fb_var_screeninfo static, const and __initconst

2017-09-14 Thread Bhumika Goyal
Make these structures static as they are not referenced in any other file. Make them const as they are used only during a copy operation. Replace __initdata with __initconst in file igafb.c to avoid section conflict error. Signed-off-by: Bhumika Goyal --- The changes are not compile tested as I c

Re: [PATCH v6 3/7] acpi: apei: remove the unused code

2017-09-14 Thread James Morse
Hi gengdongjiu, On 11/09/17 13:04, gengdongjiu wrote: > On 2017/9/9 2:17, James Morse wrote: >> On 04/09/17 12:43, gengdongjiu wrote: >>> On 2017/9/1 1:50, James Morse wrote: On 28/08/17 11:38, Dongjiu Geng wrote: If you aren't handling the notification, why is this is in the HEST at all

Re: [PATCH] mtd: spi-nor: stm32-quadspi: avoid unintialized return code

2017-09-14 Thread Ludovic BARRE
hi Arnd thx Arnd for compilation warning (gcc <= 4.6) Acked-by: Ludovic Barre PS: at runtime stm32_qspi_tx_poll can't be call, because stm32_qspi_tx check if there is tx data available if (!cmd->tx_data) return 0; BR Ludo On 09/14/2017 01:06 PM, Arnd Bergmann wrote:

Re: [PATCH v6 5/7] arm64: kvm: route synchronous external abort exceptions to el2

2017-09-14 Thread James Morse
Hi gengdongjiu, On 14/09/17 12:12, gengdongjiu wrote: > On 2017/9/8 0:31, James Morse wrote: >> KVM already handles external aborts from lower exception levels, no more work >> needs doing for TEA. > If it is firmware first solution, that is SCR_EL3.EA=1, all SError interrupt > and synchronous E

[PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Juergen Gross
xenbus_client.c contains some functions specific for pv guests. Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when they are not needed (e.g. on ARM). Signed-off-by: Juergen Gross --- drivers/xen/xenbus/xenbus_client.c | 130 +++-- 1 file changed,

Re: [PATCH] megaraid: kmemleak: Track page allocation for fusion

2017-09-14 Thread Bart Van Assche
On Thu, 2017-09-14 at 14:16 +0800, shuw...@redhat.com wrote: > diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c > b/drivers/scsi/megaraid/megaraid_sas_fusion.c > index 11bd2e698b84..621299edd8de 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c > +++ b/drivers/scsi/megaraid/megara

[PATCH v2] Staging: ccree: Use kcalloc instead of kzalloc

2017-09-14 Thread Srishti Sharma
Use kcalloc instead of kzalloc to check for overflow before multiplication. Done using the following semantic patch by coccinelle. http://coccinelle.lip6.fr/rules/kzalloc.cocci Signed-off-by: Srishti Sharma --- Changes in v2: - eliminate parentheses around the first argument drivers/staging/c

Re: [PATCH v2] tools: objtool: fix memory leak in elf_create_rela_section()

2017-09-14 Thread Josh Poimboeuf
On Thu, Sep 14, 2017 at 08:01:38AM +0200, Martin Kepplinger wrote: > Let's free the allocated char array relaname before returning > in order to avoid leaking memory. > > Signed-off-by: Martin Kepplinger > --- > > I should've allocated some brain resources before freeing some computer's. Oops.

RE: [PATCH] megaraid: kmemleak: Track page allocation for fusion

2017-09-14 Thread Sumit Saxena
-Original Message- From: shuw...@redhat.com [mailto:shuw...@redhat.com] Sent: Thursday, September 14, 2017 11:47 AM To: kashyap.de...@broadcom.com; sumit.sax...@broadcom.com; shivasharan.srikanteshw...@broadcom.com; j...@linux.vnet.ibm.com; martin.peter...@oracle.com Cc: megaraidlinux@b

Re: [PATCH] net/mlx5: fpga: avoid uninitialized return codes

2017-09-14 Thread Leon Romanovsky
On Thu, Sep 14, 2017 at 01:06:18PM +0200, Arnd Bergmann wrote: > calling mlx5_fpga_mem_{read,write}_i2c() with a zero length on > older compiler version such as gcc-4.6 results in a warning that > the return code is not initialized: > > drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.c:147:6: erro

Re: [Outreachy kernel] [PATCH v2] Staging: ccree: Use kcalloc instead of kzalloc

2017-09-14 Thread Julia Lawall
On Thu, 14 Sep 2017, Srishti Sharma wrote: > Use kcalloc instead of kzalloc to check for overflow before > multiplication. Done using the following semantic patch by > coccinelle. > > http://coccinelle.lip6.fr/rules/kzalloc.cocci > > Signed-off-by: Srishti Sharma Acked-by: Julia Lawall > ---

Re: [PATCH] megaraid: kmemleak: Track page allocation for fusion

2017-09-14 Thread Catalin Marinas
On Thu, Sep 14, 2017 at 02:16:46PM +0800, shuw...@redhat.com wrote: > From: Shu Wang > > Kmemleak reports about a thousand false positives for fusion-> > cmd_list[]. Root casue is the cmd_list objects are allocated from > slab allocator, and stored its pointer in object allocated by page > alloca

Re: [PATCH v6 3/7] acpi: apei: remove the unused code

2017-09-14 Thread gengdongjiu
On 2017/9/14 20:35, James Morse wrote: >> James, whether it is possible you can review the previous v5 patch which >> adds the support for > Spreading 'current discussion' over two versions is a problem for anyone > trying > to follow this series. > > If you post a newer version its normal for

Re: [PATCH] Support for secure erase functionality

2017-09-14 Thread Philipp
Dear Damien, Thank you for your feedback. > On 14. Sep 2017, at 10:46, Damien Le Moal wrote: […] > Writing once to a sector stored on spinning rust will *not* fully erase > the previous data. Part of the signal used for storing that data will > remain on the track (because the disk head is ne

<    1   2   3   4   5   6   7   >