[PATCH v4 6/8] zram: Convert to using memset_l

2017-07-20 Thread Matthew Wilcox
From: Matthew Wilcox zram was the motivation for creating memset_l(). Minchan Kim sees a 7% performance improvement on x86 with 100MB of non-zero deduplicatable data: perf stat -r 10 dd if=/dev/zram0 of=/dev/null vanilla:0.232050465 seconds time elapsed ( +- 0.51% ) memset_l:

[PATCH v4 4/8] ARM: Implement memset32 & memset64

2017-07-20 Thread Matthew Wilcox
From: Matthew Wilcox Reuse the existing optimised memset implementation to implement an optimised memset32 and memset64. Signed-off-by: Matthew Wilcox Reviewed-by: Russell King --- arch/arm/include/asm/string.h | 14 ++ arch/arm/kernel/armksyms.c| 2 ++ arch/arm/lib/memset.S

[PATCH v4 0/8] Multibyte memset variations

2017-07-20 Thread Matthew Wilcox
From: Matthew Wilcox A relatively common idiom we're missing is a function to fill an area of memory with a pattern which is larger than a single byte. I first noticed this with a zram patch which wanted to fill a page with an 'unsigned long' value. There turn out to be quite a few places in th

[PATCH v4 7/8] sym53c8xx_2: Convert to use memset32

2017-07-20 Thread Matthew Wilcox
From: Matthew Wilcox memset32() can be used to initialise these three arrays. Minor code footprint reduction. Signed-off-by: Matthew Wilcox --- drivers/scsi/sym53c8xx_2/sym_hipd.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd

[PATCH 1/2] sched: Misc preps for cgroup unified hierarchy interface

2017-07-20 Thread Tejun Heo
Make the following changes in preparation for the cpu controller interface implementation for cgroup2. This patch doesn't cause any functional differences. * s/cpu_stats_show()/cpu_cfs_stats_show()/ * s/cpu_files/cpu_legacy_files/ * Separate out cpuacct_stats_read() from cpuacct_stats_show().

[PATCHSET for-4.14] cgroup, sched: cgroup2 interface for CPU controller

2017-07-20 Thread Tejun Heo
Hello, These are two patches to implement the cgroup2 CPU controller interface. It's separated from the [L] previous version of combined cgroup2 threaded mode + CPU controller patchset. * "cpu.weight.nice" added which allows reading and setting weights using nice values so that it's easier to

[PATCH 2/2] sched: Implement interface for cgroup unified hierarchy

2017-07-20 Thread Tejun Heo
There are a couple interface issues which can be addressed in cgroup2 interface. * Stats from cpuacct being reported separately from the cpu stats. * Use of different time units. Writable control knobs use microseconds, some stat fields use nanoseconds while other cpuacct stat fields use cen

[PATCH v4 1/8] Add multibyte memset functions

2017-07-20 Thread Matthew Wilcox
From: Matthew Wilcox memset16(), memset32() and memset64() are like memset(), but allow the caller to fill the destination with a value larger than a single byte. memset_l() and memset_p() allow the caller to use unsigned long and pointer values respectively. Signed-off-by: Matthew Wilcox ---

Re: [PATCH v2] dt-bindings: Drop k2g genpd device ID macros

2017-07-20 Thread Santosh Shilimkar
On 7/20/2017 11:04 AM, Dave Gerlach wrote: Commit 7cc119f29b19 ("dt-bindings: Add TI SCI PM Domains") introduced a number of K2G_DEV_x macros to represent each device ID available on the K2G platform for use by the genpd, clock, and reset drivers. Rather than use these macros, which are only used

Re: [PATCH] x86/platform/uv/BAU: disable BAU on single hub configurations

2017-07-20 Thread Andrew Banman
On Thu, Jul 20, 2017 at 01:47:50PM +0200, Ingo Molnar wrote: > > * Andrew Banman wrote: > > > The BAU confers no benefit to a UV system running with only one hub/socket. > > Permanently disable the BAU driver if there are less than two hubs online > > to avoid BAU overhead. We have observed fail

Re: [RFC PATCH v12 3/4] Linux Random Number Generator

2017-07-20 Thread Stephan Müller
Am Mittwoch, 19. Juli 2017, 19:26:03 CEST schrieb Theodore Ts'o: Hi Theodore, > On Wed, Jul 19, 2017 at 08:22:18AM +0200, Stephan Müller wrote: > > In the email [1] I have expressed the core concerns I see -- none of them > > address the need to keep the Jitter RNG as one noise source. To address

Re: [PATCH 1/5] iommu/arm-smmu-v3: put off the execution of TLBI* to reduce lock confliction

2017-07-20 Thread Nate Watterson
Hi Jonathan, [...] Hi All, I'm a bit of late entry to this discussion. Just been running some more detailed tests on our d05 boards and wanted to bring some more numbers to the discussion. All tests against 4.12 with the following additions: * Robin's series removing the io-pgtable spin

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-20 Thread Laura Abbott
On 07/20/2017 10:30 AM, Ard Biesheuvel wrote: > On 20 July 2017 at 09:56, Ard Biesheuvel wrote: >> On 20 July 2017 at 09:36, James Morse wrote: >>> Hi Ard, >>> >>> On 20/07/17 06:35, Ard Biesheuvel wrote: On 20 July 2017 at 00:32, Laura Abbott wrote: > I didn't notice any performance im

Re: [PATCH v3 2/9] perf annotate: Properly rename 'sum' to 'total_samples' in struct sym_hist

2017-07-20 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 20, 2017 at 06:36:51AM +0900, Taeung Song escreveu: > Cc: Namhyung Kim > Cc: Jiri Olsa > Signed-off-by: Taeung Song Better to rename it to symhist->nr_samples, to be consistent with the per address nr_samples, i.e. sym_hist->nr_samples = sum(sym_hist->addr[0 .. symbol__size(sym)]

[PATCH 2/2] MAINTAINERS: device property: of: add fwnode.h

2017-07-20 Thread frowand . list
From: Frank Rowand Device tree is impacted by changes to fwnode.h, add a file entry to OPEN FIRMWARE AND FLATTENED DEVICE TREE Signed-off-by: Frank Rowand --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c0ac362e850a..cb58c20b1ef8 100644 --- a

[PATCH 0/2] add fwnode.h to several MAINTAINERS entries

2017-07-20 Thread frowand . list
From: Frank Rowand Rafael, can you please take patch 1? Rob, can you please take patch 2? Several maintainers are impacted by changes to fwnode.h, add a file entry for those maintainers. Frank Rowand (2): MAINTAINERS: device property: acpi: add fwnode.h MAINTAINERS: device property: of: ad

[PATCH 1/2] MAINTAINERS: device property: acpi: add fwnode.h

2017-07-20 Thread frowand . list
From: Frank Rowand ACPI is impacted by changes to fwnode.h, add a file entry to ACPI Signed-off-by: Frank Rowand --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 205d3977ac46..c0ac362e850a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -302,6 +

Re: [PATCH] KVM: nVMX: Fix exception injection

2017-07-20 Thread Jim Mattson
On Wed, Jul 19, 2017 at 7:31 PM, Wanpeng Li wrote: > Hi Jim, > 2017-07-19 2:47 GMT+08:00 Jim Mattson : >> Why do we expect the VM_EXIT_INTR_INFO and EXIT_QUALIFICATION fields >> of the VMCS to have the correct values for the injected exception? > > Good point, I think we should synthesize VM_EXIT_

Re: [PATCH v3 3/9] perf annotate: Fix wrong --show-total-period option showing number of samples

2017-07-20 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 20, 2017 at 06:36:55AM +0900, Taeung Song escreveu: > Currently the --show-total-period option of perf-annotate > is different from perf-report's. > > For example, perf-report ordinarily shows period and number of samples. > > # Overhead SamplesPeriod Command Shared O

[PATCH net] net: dsa: b53: Add missing ARL entries for BCM53125

2017-07-20 Thread Florian Fainelli
The BCM53125 entry was missing an arl_entries member which would basically prevent the ARL search from terminating properly. This switch has 4 ARL entries, so add that. Fixes: 1da6df85c6fb ("net: dsa: b53: Implement ARL add/del/dump operations") Signed-off-by: Florian Fainelli --- drivers/net/ds

Re: [PATCH 10/12] [v2] ARM: s3c24xx: make H1940BT depend on RFKILL

2017-07-20 Thread Krzysztof Kozlowski
On Thu, Jul 20, 2017 at 05:53:43PM +0200, Arnd Bergmann wrote: > Bluetooth is only supported when network support is part of the kernel, > so it is a bit pointless to build the hi1940-bt support without networking. > If we try anyway, we get a Kconfig warning: > > warning: (TOSA_BT && H1940BT) sel

[PATCH] ata: ahci_platform: Add shutdown handler

2017-07-20 Thread Nate Watterson
The newly introduced ahci_platform_shutdown() method is called during system shutdown to disable host controller DMA and interrupts in order to avoid potentially corrupting or otherwise interfering with a new kernel being started with kexec. Signed-off-by: Nate Watterson --- drivers/ata/ahci_pla

Re: [RESEND PATCH] sparc: defconfig: Cleanup from old Kconfig options

2017-07-20 Thread David Miller
From: Krzysztof Kozlowski Date: Thu, 20 Jul 2017 20:11:24 +0200 > On Thu, Jul 20, 2017 at 02:36:33PM +0200, Sam Ravnborg wrote: >> On Thu, Jul 20, 2017 at 07:00:55AM +0200, Krzysztof Kozlowski wrote: >> > Remove old, dead Kconfig options (in order appearing in this commit): >> > - EXPERIMENTAL i

Re: [PATCH] sparc64: Register hugepages during arch init

2017-07-20 Thread David Miller
From: Nitin Gupta Date: Wed, 19 Jul 2017 17:12:54 -0700 > Add hstate for each supported hugepage size using > arch initcall. This change fixes some hugepage > parameter parsing inconsistencies: > > case 1: no hugepage parameters > > Without hugepage parameters, only a hugepages-8192kB entry is

[patch] staging: speakup: remove support for lp*

2017-07-20 Thread Okash Khawaja
Testing has shown that lp* devices don't work correctly with speakup just yet. That will require some additional work. Until then, this patch removes code related to that. Signed-off-by: Okash Khawaja --- drivers/staging/speakup/spk_ttyio.c | 23 +-- 1 file changed, 1 inse

Re: [PATCH RFC v5] cpufreq: schedutil: Make iowait boost more energy efficient

2017-07-20 Thread Joel Fernandes
Hi Viresh, On Wed, Jul 19, 2017 at 8:41 PM, Viresh Kumar wrote: > On 19-07-17, 19:38, Joel Fernandes wrote: >> On Tue, Jul 18, 2017 at 11:19 PM, Viresh Kumar >> wrote: >> > On 18-07-17, 21:39, Joel Fernandes wrote: >> >> Not really, to me B will still work because in the case the flag is >> >>

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Kani, Toshimitsu
On Thu, 2017-07-20 at 06:33 +0200, Borislav Petkov wrote: > On Wed, Jul 19, 2017 at 04:40:25PM +, Kani, Toshimitsu wrote: > >  ghes_edac allows to report errors to OS management tools like > > rasdaemon in addition to platform- specific managements. > > So ghes_edac *is* a poor man's driver in

[PATCH v2 0/2] Introduce on-chip interconnect API

2017-07-20 Thread Georgi Djakov
Modern SoCs have multiple processors and various dedicated cores (video, gpu, graphics, modem). These cores are talking to each other and can generate a lot of data flowing through the on-chip interconnects. These interconnect buses could form different topologies such as crossbar, point to point b

[PATCH v2 2/2] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-07-20 Thread Georgi Djakov
Add driver for the Qualcomm interconnect buses found in msm8916 based platforms. This patch contains only a partial topology to make reviewing easier. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile| 1

[PATCH v2 1/2] interconnect: Add generic on-chip interconnect API

2017-07-20 Thread Georgi Djakov
This patch introduce a new API to get requirements and configure the interconnect buses across the entire chipset to fit with the current demand. The API is using a consumer/provider-based model, where the providers are the interconnect buses and the consumers could be various drivers. The consume

Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu

2017-07-20 Thread David Miller
From: Vijay Kumar Date: Sat, 8 Jul 2017 14:23:42 -0600 > cpu_poke is a low latency path to resume the target cpu if suspended > using cpu_yield. Use cpu poke to resume cpu if supported by hypervisor. > >hackbench results (lower is better): > Number of > Process:

Re: [PATCH 2/2] sparc64: Use cpu_poke to resume idle cpu

2017-07-20 Thread David Miller
From: Vijay Kumar Date: Sat, 8 Jul 2017 14:23:44 -0600 > diff --git a/arch/sparc/kernel/hvapi.c b/arch/sparc/kernel/hvapi.c > index 2677312..0b070d5 100644 > --- a/arch/sparc/kernel/hvapi.c > +++ b/arch/sparc/kernel/hvapi.c > @@ -189,7 +189,7 @@ void __init sun4v_hvapi_init(void) > > gro

Re: [PATCH 2/3] sparc64: Add 16GB hugepage support

2017-07-20 Thread David Miller
From: Nitin Gupta Date: Thu, 13 Jul 2017 14:53:24 -0700 > Testing: > > Tested with the stream benchmark which allocates 48G of > arrays backed by 16G hugepages and does RW operation on > them in parallel. It would be great if we started adding tests under tools/testing/selftests so that other p

Re: [PATCH v3 3/3] nvme: wwid_show: strip trailing 0-bytes

2017-07-20 Thread Keith Busch
On Thu, Jul 20, 2017 at 06:34:02PM +0200, Martin Wilck wrote: > Some broken targets (such as the current Linux target) pad > model or serial fields with 0-bytes rather than spaces. The > NVME spec disallows 0 bytes in "ASCII" fields. > Thus strip trailing 0-bytes, too. Also make sure that we get no

[PATCH v4 0/3] firmware: pending fixes for v4.13-final

2017-07-20 Thread Luis R. Rodriguez
Greg, as requested I've split up the pending firmware fixes for the firmware API into two series, one for v4.13-final and another for v4.14-rc1. This is the series of fixes for v4.13-final. They also are stable fixes and have respective tags. These changes are present on my 2017072-firmware-fixes

[PATCH v4 2/3] firmware: fix batched requests - send wake up on failure on direct lookups

2017-07-20 Thread Luis R. Rodriguez
Fix batched requests from waiting forever on failure. The firmware API batched requests feature has been broken since the API call request_firmware_direct() was introduced on commit bba3a87e982ad ("firmware: Introduce request_firmware_direct()"), added on v3.14 *iff* the firmware being requested w

[PATCH v4 3/3] firmware: avoid invalid fallback aborts by using killable wait

2017-07-20 Thread Luis R. Rodriguez
Commit 0cb64249ca500 ("firmware_loader: abort request if wait_for_completion is interrupted") added via 4.0 added support to abort the fallback mechanism when a signal was detected and wait_for_completion_interruptible() returned -ERESTARTSYS -- for instance when a user hits CTRL-C. The abort was o

[PATCH v4 4/5] firmware: enable a debug print for batched requests

2017-07-20 Thread Luis R. Rodriguez
Otherwise there is no easy way this actually happened. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index ba272a65291d..a5fb884a136d 100644 --- a/drivers/base

[PATCH v4 3/5] firmware: define pr_fmt

2017-07-20 Thread Luis R. Rodriguez
For some reason we have always forgotten this. Without this we don't get a nice prefix on our pr_debug() / pr_*() messages. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/firmware_class.c b/drivers/base/firmwa

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Mauro Carvalho Chehab
Em Thu, 20 Jul 2017 19:50:03 + "Kani, Toshimitsu" escreveu: > On Thu, 2017-07-20 at 06:33 +0200, Borislav Petkov wrote: > > On Wed, Jul 19, 2017 at 04:40:25PM +, Kani, Toshimitsu wrote: > > >  ghes_edac allows to report errors to OS management tools like > > > rasdaemon in addition to p

[PATCH v4 5/5] test_firmware: add batched firmware tests

2017-07-20 Thread Luis R. Rodriguez
The firmware API has a feature to enable batching requests for the same fil e under one worker, so only one lookup is done. This only triggers if we so happen to schedule two lookups for same file around the same time, or if release_firmware() has not been called for a successful firmware call. Thi

[PATCH v4 1/3] firmware: fix batched requests - wake all waiters

2017-07-20 Thread Luis R. Rodriguez
The firmware cache mechanism serves two purposes, the secondary purpose is not well documented nor understood. This fixes a regression with the secondary purpose of the firmware cache mechanism: batched requests on successful lookups. Without this fix *any* time a batched request is triggered, seco

[PATCH v4 1/5] test_firmware: add test case for SIGCHLD on sync fallback

2017-07-20 Thread Luis R. Rodriguez
It has been reported that SIGCHLD will trigger an immediate abort on sync firmware requests which rely on the sysfs interface for a trigger. This is unexpected behaviour, this reproduces this issue. This test case currenty fails. Reported-by: Martin Fuzzey Signed-off-by: Luis R. Rodriguez ---

[PATCH v4 0/5] firmware: pending fixes for v4.14-rc1

2017-07-20 Thread Luis R. Rodriguez
Greg, this is the series of pending fixes for v4.14-rc1. They depend on the series of fixes just posted for v4.13-final. This contains a set of minor fixes and also extends the test drivers to test for the issues reported. These changes are available on my 20170720-fw-fixes-wait-v4-for-v4.14

[PATCH v4 2/5] firmware: send -EINTR on signal abort on fallback mechanism

2017-07-20 Thread Luis R. Rodriguez
Right now we send -EAGAIN to a syfs write which got interrupted. Userspace can't tell what happened though, send -EINTR if we were killed due to a signal so userspace can tell things apart. This is only applicable to the fallback mechanism. Reported-by: Martin Fuzzey Signed-off-by: Luis R. Rodri

[PATCH v2] remoteproc: Merge __rproc_boot() with rproc_boot()

2017-07-20 Thread Suman Anna
The additional arguments in the internal __rproc_boot() function were dropped in commit 2bfc311a57f5 ("remoteproc: Drop wait in __rproc_boot()"). The exported rproc_boot() is now just a wrapper around this internal function, so merge them together. While at this, also remove the declaration for th

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-20 Thread Josh Poimboeuf
On Thu, Jul 20, 2017 at 11:48:41AM -0400, Joe Lawrence wrote: > On a related note, if we keep the allocations and memcpy, how about I > shift around the attach/get calls like so: > > __klp_shadow_attach > set shadow variable member values > memcpy > add to hash > > klp_shadow_atta

Re: [PATCH 001/102] ARM: rockchip: explicitly request exclusive reset control

2017-07-20 Thread Heiko Stuebner
Am Mittwoch, 19. Juli 2017, 17:25:05 CEST schrieb Philipp Zabel: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control be

[PATCH v5 1/3] Documentation: devicetree: add Freescale RNGC binding

2017-07-20 Thread Martin Kaiser
From: Steffen Trumtrar Add binding documentation for the Freescale RNGC found on some i.MX2/3 SoCs. Signed-off-by: Steffen Trumtrar Signed-off-by: Martin Kaiser --- Changes in v5: none Changes in v4: none Changes in v3: - add compatible string for imx35 - remove imx5 from the commit

[PATCH v5 2/3] ARM: i.MX25: add RNGC node to dtsi

2017-07-20 Thread Martin Kaiser
From: Steffen Trumtrar Add a devicetree entry for the Random Number Generator Version C (RNGC). Signed-off-by: Steffen Trumtrar Signed-off-by: Martin Kaiser --- Changes in v5: none Changes in v4: none Changes in v3: - remove clock-names from dtsi Changes in v2: - remove interrupt-na

[PATCH v5 3/3] hwrng: mxc-fsl - add support for Freescale RNGC

2017-07-20 Thread Martin Kaiser
From: Steffen Trumtrar The driver is ported from Freescales Linux git and can be found in the vendor/freescale/imx_2.6.35_maintain branch. According to that code, the RNGC is found on Freescales i.MX3/5 SoCs. The i.MX2x actually has an RNGB, which has no driver implementation in Freesc

Re: [PATCH v3 06/12] mfd: wm97xx-core: core support for wm97xx Codec

2017-07-20 Thread Robert Jarzmik
Charles Keepax writes: > On Fri, Jun 30, 2017 at 09:44:02PM +0200, Robert Jarzmik wrote: >> The WM9705, WM9712 and WM9713 are highly integrated codecs, with an >> audio codec, DAC and ADC, GPIO unit and a touchscreen interface. ... >> +static const struct reg_default wm97xx_reg_defaults[] = { >>

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-20 Thread Joe Lawrence
On 07/18/2017 08:45 AM, Petr Mladek wrote: > On Wed 2017-06-28 11:37:26, Joe Lawrence wrote: >> diff --git a/Documentation/livepatch/shadow-vars.txt >> b/Documentation/livepatch/shadow-vars.txt >> new file mode 100644 >> index ..7f28982e6b1c >> --- /dev/null >> +++ b/Documentation/live

Modern Suspend on Dell Latitude 5285 does not resume

2017-07-20 Thread Nico Schottelius
Hello, following up the recent patch [0] to enable modern suspend on Dell notebooks, I can report that this patch does *not* fix the situation on Dell Latitude 5285. I have tested with v4.12-10845-g74cbd96 and when closing the "lid" or triggering sleep by echo mem > /sys/power/state, the system s

Re: [PATCH] iommu: Convert to using %pOF instead of full_name

2017-07-20 Thread Heiko Stuebner
Am Dienstag, 18. Juli 2017, 16:43:09 CEST schrieb Rob Herring: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: Joerg Roedel >

[PATCH v2] mm/mremap: Fail map duplication attempts for private mappings

2017-07-20 Thread Mike Kravetz
mremap will create a 'duplicate' mapping if old_size == 0 is specified. Such duplicate mappings make no sense for private mappings. If duplication is attempted for a private mapping, mremap creates a separate private mapping unrelated to the original mapping and makes no modifications to the orig

Re: [PATCH v3 04/15] selinux: Refactor to remove bprm_secureexec hook

2017-07-20 Thread Paul Moore
On Thu, Jul 20, 2017 at 1:06 PM, Kees Cook wrote: > On Thu, Jul 20, 2017 at 6:42 AM, Paul Moore wrote: >> Alternatively, if you've got a fairly recent git repo with all the >> patches merged I can build a test kernel and give it a shot for you, >> although fair warning it may take a day or two fo

Re: [PATCH v1 0/3] soc: rockchip: Modify power domain driver for rk3366 SoC

2017-07-20 Thread Heiko Stuebner
Am Freitag, 14. Juli 2017, 15:02:40 CEST schrieb Elaine Zhang: > support rk3366 SoC power domain setting. > > Elaine Zhang (3): > dt-bindings: power: add RK3366 SoCs header for power-domain > dt-bindings: add binding for rk3366 power domains > soc: rockchip: power-domain: add power domain su

Re: [PATCH] bluetooth: btwilink: remove unnecessary static in bt_ti_probe()

2017-07-20 Thread Gustavo A. R. Silva
Hi Marcel, On 07/20/2017 04:20 AM, Marcel Holtmann wrote: Hi Gustavo, Remove unnecessary static on local variable hst. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the object file size. This

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-20 Thread Josh Poimboeuf
On Thu, Jul 20, 2017 at 06:30:24PM +0300, Andrey Ryabinin wrote: > FWIW bellow is my understanding of what's going on. > > It seems clang treats local named register almost the same as ordinary > local variables. > The only difference is that before reading the register variable clang > puts varia

Re: Modern Suspend on Dell Latitude 5285 does not resume

2017-07-20 Thread Rafael J. Wysocki
On Thu, Jul 20, 2017 at 8:24 PM, Nico Schottelius wrote: > > Hello, > > following up the recent patch [0] to enable modern suspend on Dell notebooks, > I > can report that this patch does *not* fix the situation on Dell Latitude > 5285. I have tested with v4.12-10845-g74cbd96 and when closing the

RE: Modern Suspend on Dell Latitude 5285 does not resume

2017-07-20 Thread Mario.Limonciello
Nico, > -Original Message- > From: Nico Schottelius [mailto:nico.schottel...@ungleich.ch] > Sent: Thursday, July 20, 2017 1:25 PM > To: Linux ACPI > Cc: Linux PM ; Andy Shevchenko > ; Darren Hart ; LKML > ; Srinivas Pandruvada > ; Mika Westerberg > ; Limonciello, Mario > ; Tom Lanyon ; Jé

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-20 Thread Evgeny Baskakov
On 7/10/17 5:54 PM, Jerome Glisse wrote: On Mon, Jul 10, 2017 at 05:17:23PM -0700, Evgeny Baskakov wrote: On 7/10/17 4:43 PM, Jerome Glisse wrote: On Mon, Jul 10, 2017 at 03:59:37PM -0700, Evgeny Baskakov wrote: ... Horrible stupid bug in the code, most likely from cut and paste. Attached pat

Re: [PATCH v2 2/3] PM / sleep: Mark suspend/hibernation start and finish

2017-07-20 Thread Rafael J. Wysocki
On Thu, Jul 20, 2017 at 7:49 PM, Mark Salyzyn wrote: > On 07/19/2017 06:38 PM, Rafael J. Wysocki wrote: >> >> From: Rafael J. Wysocki >> >> Regardless of whether or not debug messages from the core system >> suspend/hibernation code are enabled, it is useful to know when >> system-wide transition

Re: [PATCH 1/3] platform/x86: Add GLK PSS Event Table

2017-07-20 Thread Darren Hart
On Mon, Jul 17, 2017 at 05:18:54AM +, Chakravarty, Souvik K wrote: > +1 From me. Souvik, as the listed maintainer for this driver, what I require from you is a complete Acked-by or a Reviewed-by line, preferably the latter, and preferably after an actual review with comments. +1 has no semanti

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Kani, Toshimitsu
On Thu, 2017-07-20 at 17:15 -0300, Mauro Carvalho Chehab wrote: > Em Thu, 20 Jul 2017 19:50:03 + > "Kani, Toshimitsu" escreveu: : > > Firmware has better knowledge about the platform and can provide > > better RAS when implemented properly.  I agree that user > > experiences may vary on platf

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Akira Yokosawa
On 2017/07/20 09:11:52AM -0700, Paul E. McKenney wrote: > On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: >> On 2017/07/20 14:47, Paul E. McKenney wrote: >>> On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng wrote: On Wed, Jul 19, 2017 at 02:56:02PM -0700, Paul E. McKenney w

Re: [PATCH v3.1 09/10] x86/unwind: add ORC unwinder

2017-07-20 Thread Josh Poimboeuf
On Thu, Jul 20, 2017 at 09:12:16AM +0200, Jiri Slaby wrote: > On 07/14/2017, 07:22 PM, Josh Poimboeuf wrote: > > +void __unwind_start(struct unwind_state *state, struct task_struct *task, > > + struct pt_regs *regs, unsigned long *first_frame) > > +{ > > + memset(state, 0, sizeof(*s

Re: [PATCH 4/4] xen: Drop un-informative message during boot

2017-07-20 Thread Boris Ostrovsky
On 07/20/2017 07:04 AM, Punit Agrawal wrote: > On systems that are not booted as a Xen domain, the xenfs driver prints > the following message during boot. > > [3.460595] xenfs: not registering filesystem on non-xen platform > > As the user chose not to boot a Xen domain, this message does not

Re: [PATCH] drivers: cpuidle: Disable preemption before get_lppaca function call in pseries_idle_probe function

2017-07-20 Thread Benjamin Herrenschmidt
On Thu, 2017-07-20 at 14:57 -0300, Victor Aoqui wrote: > When CONFIG_PREEMPT=y, the following warning shows up: > > BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 > caller is pseries_processor_idle_init+0x58/0x21c > > This warning shows up because preemption cannot occu

[PATCH v3 0/4] Add xxhash and zstd modules

2017-07-20 Thread Nick Terrell
Hi all, This patch set adds xxhash, zstd compression, and zstd decompression modules. It also adds zstd support to BtrFS and SquashFS. Each patch has relevant summaries, benchmarks, and tests. Best, Nick Terrell Changelog: v1 -> v2: - Make pointer in lib/xxhash.c:394 non-const (1/4) - Use div_

[PATCH v3 1/4] lib: Add xxhash module

2017-07-20 Thread Nick Terrell
Adds xxhash kernel module with xxh32 and xxh64 hashes. xxhash is an extremely fast non-cryptographic hash algorithm for checksumming. The zstd compression and decompression modules added in the next patch require xxhash. I extracted it out from zstd since it is useful on its own. I copied the code

[PATCH v3 3/4] btrfs: Add zstd support

2017-07-20 Thread Nick Terrell
Add zstd compression and decompression support to BtrFS. zstd at its fastest level compresses almost as well as zlib, while offering much faster compression and decompression, approaching lzo speeds. I benchmarked btrfs with zstd compression against no compression, lzo compression, and zlib compre

[PATCH v3 4/4] squashfs: Add zstd support

2017-07-20 Thread Nick Terrell
Add zstd compression and decompression support to SquashFS. zstd is a great fit for SquashFS because it can compress at ratios approaching xz, while decompressing twice as fast as zlib. For SquashFS in particular, it can decompress as fast as lzo and lz4. It also has the flexibility to turn down th

Re: [PATCH v5 1/3] Documentation: devicetree: add Freescale RNGC binding

2017-07-20 Thread Rob Herring
On Thu, Jul 20, 2017 at 3:27 PM, Martin Kaiser wrote: > From: Steffen Trumtrar > > Add binding documentation for the Freescale RNGC found on > some i.MX2/3 SoCs. > > Signed-off-by: Steffen Trumtrar > Signed-off-by: Martin Kaiser > --- > Changes in v5: > none > > Changes in v4: > none > > Ch

Re: [PATCH 2/4] gpio: davinci: Handle the return value of davinci_gpio_irq_setup function

2017-07-20 Thread Grygorii Strashko
On 07/20/2017 05:05 AM, Johan Hovold wrote: > On Thu, Jul 20, 2017 at 03:32:27PM +0530, Keerthy wrote: >> On Thursday 20 July 2017 03:20 PM, Johan Hovold wrote: >>> On Thu, Jul 20, 2017 at 02:40:37PM +0530, Keerthy wrote: On Thursday 20 July 2017 12:14 PM, Keerthy wrote: > On Wednesday 1

[PATCH v5 0/1] acpi: apei: Bug fix to enable APEI support for ARMv8

2017-07-20 Thread Loc Ho
v5: * Remove the patch set 1/2 as it was accepted * Fix the signed-off-by using Co-authored-by v4: * Update patch commit log for gsi.c patch * Make change to be 80 column aligned v3 * Change the title of the patch to reflect the patch * Completely dropped the driver. Instead, move completely to t

[PATCH v5 1/1] acpi: apei: Enable APEI multiple GHES source to share an single external IRQ

2017-07-20 Thread Loc Ho
This patch allows APEI generic error source table with external IRQ to share a single IRQ. Co-authored-by: Tuan Phan Signed-off-by: Loc Ho --- drivers/acpi/apei/ghes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Paul E. McKenney
On Fri, Jul 21, 2017 at 06:12:56AM +0900, Akira Yokosawa wrote: > On 2017/07/20 09:11:52AM -0700, Paul E. McKenney wrote: > > On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: > >> On 2017/07/20 14:47, Paul E. McKenney wrote: > >>> On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng

Re: [PATCH net] net: dsa: b53: Add missing ARL entries for BCM53125

2017-07-20 Thread Vivien Didelot
Florian Fainelli writes: > The BCM53125 entry was missing an arl_entries member which would > basically prevent the ARL search from terminating properly. This switch > has 4 ARL entries, so add that. > > Fixes: 1da6df85c6fb ("net: dsa: b53: Implement ARL add/del/dump operations") > Signed-off-by:

Re: [PATCH] oom_reaper: close race without using oom_lock

2017-07-20 Thread Tetsuo Handa
Michal Hocko wrote: > On Wed 19-07-17 05:51:03, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > On Tue 18-07-17 23:06:50, Tetsuo Handa wrote: > > > > Commit e2fe14564d3316d1 ("oom_reaper: close race with exiting task") > > > > guarded whole OOM reaping operations using oom_lock. But there was no

[GIT PULL] Power management fixes for v4.13-rc2

2017-07-20 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.13-rc2 with top-most commit ffa64d5e0d2f053d76ff9b1d2f437150b49c4112 Merge branches 'intel_pstate' and 'pm-domains' on top of commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 Linux v

Re: [Nouveau] [PATCH] drm: disable vblank only if it got previously enabled

2017-07-20 Thread Tobias Klausmann
Mh ok, paper over in nouveau_display_fini until Ben comes up with a better idea then?! Greetings, Tobias On 7/20/17 10:13 AM, Daniel Vetter wrote: > On Wed, Jul 19, 2017 at 04:10:50PM -0400, Ilia Mirkin wrote: >> I believe the solution is to not call drm_crtc_vblank_off for atomic >> modesett

Re: [PATCH 3/3] PM / timekeeping: Print debug messages when requested

2017-07-20 Thread Rafael J. Wysocki
On Wednesday, July 19, 2017 02:42:43 AM Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The messages printed by tk_debug_account_sleep_time() are basically > useful for system sleep debugging, so print them only when the other > debug messages from the core suspend/hibernate code are enabl

Re: [PATCH] ACPI / PM / EC: Flush all EC work in acpi_freeze_sync()

2017-07-20 Thread Rafael J. Wysocki
On Thursday, July 20, 2017 03:43:12 AM Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit eed4d47efe95 (ACPI / sleep: Ignore spurious SCI wakeups from > suspend-to-idle) introduced acpi_freeze_sync() whose purpose is to > flush all of the processing of possible wakeup events signaled v

Re: [RFC v6 01/62] powerpc: Free up four 64K PTE bits in 4K backed HPTE pages

2017-07-20 Thread Ram Pai
On Thu, Jul 20, 2017 at 11:21:51AM +0530, Aneesh Kumar K.V wrote: > > . > > > /* > > @@ -116,8 +104,8 @@ int __hash_page_4K(unsigned long ea, unsigned long > > access, unsigned long vsid, > > * On hash insert failure we use old pte value and we don't > > * want

Re: [Nouveau] [PATCH] drm: disable vblank only if it got previously enabled

2017-07-20 Thread Daniel Vetter
On Thu, Jul 20, 2017 at 11:58 PM, Tobias Klausmann wrote: > Mh ok, > > paper over in nouveau_display_fini until Ben comes up with a better idea > then?! No paper needed, just don't call drm_vblank_off for the atomic case. Not sure why that patch isn't landed yet, it should be simple. -Daniel > >

[PATCH v2] x86/platform/uv/BAU: disable BAU on single hub configurations

2017-07-20 Thread Andrew Banman
The BAU confers no benefit to a UV system running with only one hub/socket. Permanently disable the BAU driver if there are less than two hubs online to avoid BAU overhead. We have observed failed boots on single-socket UV4 systems caused by BAU that are avoided with this patch. Version 2: Consoli

Re: [RFC v6 11/62] powerpc: initial pkey plumbing

2017-07-20 Thread Ram Pai
On Thu, Jul 20, 2017 at 11:34:10AM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > basic setup to initialize the pkey system. Only 64K kernel in HPT > > mode, enables the pkey system. > > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/Kconfig | 16 ++ > >

[PATCH][V2] dvb_frontend: ensure that inital front end status initialized

2017-07-20 Thread Colin King
From: Colin Ian King The fe_status variable s is not initialized meaning it can have any random garbage status. This could be problematic if fe->ops.tune is false as s is not updated by the call to fe->ops.tune() and a subsequent check on the change status will using a garbage value. Fix this by

Re: [RFC v6 27/62] powerpc: helper to validate key-access permissions of a pte

2017-07-20 Thread Ram Pai
On Thu, Jul 20, 2017 at 12:12:47PM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > helper function that checks if the read/write/execute is allowed > > on the pte. > > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/include/asm/book3s/64/pgtable.h |4 +++ > > arch/powerpc/include

Re: [PATCH] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-20 Thread Alex Williamson
On Tue, 18 Jul 2017 22:37:00 -0700 Feng Kan wrote: > > > > I don't know what that means, does the hardware support an equivalent > > to source validation or not? > > Yes, source validation is done through the smmu. The SMMU does a context lookup based on the bdf, but if the root port does not

Re: [lkp-robot] [include/linux/string.h] 6974f0c455: kernel_BUG_at_lib/string.c

2017-07-20 Thread Masami Hiramatsu
On Thu, 20 Jul 2017 11:41:38 -0700 Linus Torvalds wrote: > On Thu, Jul 20, 2017 at 8:51 AM, Masami Hiramatsu wrote: > > > > Acked-by: Masami Hiramatsu > > Tested-by: Masami Hiramatsu > > Ok, I committed that patch as-is. > > Other architectures may end up with the same issue, unless they rea

Re: [PATCH net] net: dsa: b53: Add missing ARL entries for BCM53125

2017-07-20 Thread David Miller
From: Florian Fainelli Date: Thu, 20 Jul 2017 12:25:22 -0700 > The BCM53125 entry was missing an arl_entries member which would > basically prevent the ARL search from terminating properly. This switch > has 4 ARL entries, so add that. > > Fixes: 1da6df85c6fb ("net: dsa: b53: Implement ARL add/d

Re: [PATCH V2] pci: quirk: Apply APM ACS quirk to XGene devices

2017-07-20 Thread Alex Williamson
On Wed, 19 Jul 2017 17:46:51 -0700 Feng Kan wrote: > The APM X-Gene PCIe root port does not support ACS at this point. > However, the hw provides isolation and source validation through > the SMMU. Turn on ACS but disable all the peer to peer features. > > Signed-off-by: Feng Kan > --- > drive

Re: [PATCH] net: ethernet: ti: cpsw: Push the request_irq function to the end of probe

2017-07-20 Thread David Miller
From: Grygorii Strashko Date: Thu, 20 Jul 2017 11:08:09 -0500 > In general patch looks good to me, but it's really unexpected to > receive IRQs while CPSW is probing ;( This is a poor expectation. Boot loaders and other entities can leave the device in any state whatsoever. Furthermore, enabli

Re: [PATCH net] rds: Make sure updates to cp_send_gen can be observed

2017-07-20 Thread David Miller
From: Håkon Bugge Date: Thu, 20 Jul 2017 12:28:55 +0200 > cp->cp_send_gen is treated as a normal variable, although it may be > used by different threads. > > This is fixed by using {READ,WRITE}_ONCE when it is incremented and > READ_ONCE when it is read outside the {acquire,release}_in_xmit > p

Re: [PATCH v3] sched/cputime: Fix using smp_processor_id() in preemptible

2017-07-20 Thread Paul McKenney
On Wed, Jul 19, 2017 at 4:38 PM, Paul McKenney wrote: > On Thu, Jul 13, 2017 at 11:49 PM, Wanpeng Li wrote: >> >> Ping for the merge window. :) >> 2017-07-09 15:40 GMT+08:00 Wanpeng Li : >> > From: Wanpeng Li >> > >> > BUG: using smp_processor_id() in preemptible [] code: >> > 99-trinit

[PATCH] Make functions rf69_set_bandwidth_intern and rf69_set_dc_cut_off_frequency_intern static

2017-07-20 Thread Colin King
From: Colin Ian King The functions rf69_set_bandwidth_intern and also rf69_set_dc_cut_off_frequency_intern is local to the source and do not need to be in global scope, so make it static. Also break break overly wide line. Finally, remove the function declaration rf69_set_dc_cut_off_frequency_int

Re: [PATCH] Make functions rf69_set_bandwidth_intern and rf69_set_dc_cut_off_frequency_intern static

2017-07-20 Thread Colin Ian King
Oops, should have been marked as [V2] in the subject line On 20/07/17 23:33, Colin King wrote: > From: Colin Ian King > > The functions rf69_set_bandwidth_intern and also > rf69_set_dc_cut_off_frequency_intern is local to the source and > do not need to be in global scope, so make it static. Als

<    3   4   5   6   7   8   9   10   >