[PATCH] jiffies: use CLOSKOURCE_MASK instead of constant

2016-02-05 Thread Alexander Kuleshov
The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable. Signed-off-by: Alexander Kuleshov --- kernel/time/jiffies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c index 347fecf..555e21f 100644 ---

Re: [PATCH] crypto: testmgr: mark more algorithms as FIPS compliant

2016-02-05 Thread Herbert Xu
On Fri, Feb 05, 2016 at 02:23:33PM +0100, Marcus Meissner wrote: > Some more authenc() wrapped algorithms are FIPS compliant, tag > them as such. > > Signed-off-by: Marcus Meissner Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: [PATCH 0/2] crypto: atmel-sha - fix resource management

2016-02-05 Thread Herbert Xu
On Fri, Feb 05, 2016 at 01:45:11PM +0100, Cyrille Pitchen wrote: > Hi all, > > these two small patches fix resource release and clock management in > atomic context. Applied to crypto. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH] eCryptfs: fix typos in comment

2016-02-05 Thread Wei Yuan
Signed-off-by: Weiyuan --- fs/ecryptfs/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index 80d6901..d47a7d4 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c @@ -44,7 +44,7 @@ * ecryptfs_to_hex * @dst:

Re: [PATCH] crypto: mark authenticated ctr(aes) also as FIPS able

2016-02-05 Thread Herbert Xu
On Thu, Feb 04, 2016 at 03:30:26PM +0100, Marcus Meissner wrote: > Signed-off-by: Marcus Meissner This doesn't compile for me. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] fix out of bound read in __test_aead()

2016-02-05 Thread Herbert Xu
On Wed, Feb 03, 2016 at 01:58:12PM +0100, Jerome Marchand wrote: > __test_aead() reads MAX_IVLEN bytes from template[i].iv, but the > actual length of the initialisation vector can be shorter. > The length of the IV is already calculated earlier in the > function. Let's just reuses that. Also the

Re: [PATCH v3 4/4] crypto: testmgr - Add a test case for import()/export()

2016-02-05 Thread Herbert Xu
On Wed, Feb 03, 2016 at 06:26:57PM +0800, Rui Wang wrote: > Modify __test_hash() so that hash import/export can be tested > from within the kernel. The test is unconditionally done when > a struct hash_testvec has its .np > 1. > > v3: make the test unconditional > v2: Leverage template[i].np as

Re: [PATCH v5 0/3] crypto: KEYS: convert public key to akcipher api

2016-02-05 Thread Herbert Xu
On Tue, Feb 02, 2016 at 10:08:48AM -0800, Tadeusz Struk wrote: > Resend v5 rebased on top of 4.5 > > This patch set converts the module verification and digital signature > code to the new akcipher API. > RSA implementation has been removed from crypto/asymmetric_keys and the > new API is used

Re: [PATCH 02/11] crypto: sunxi-ss: prevent compilation on 64-bit

2016-02-05 Thread Herbert Xu
On Mon, Feb 01, 2016 at 05:39:21PM +, Andre Przywara wrote: > The driver for the sunxi-ss crypto engine is not entirely 64-bit safe, > compilation on arm64 spits some warnings. > The proper fix was deemed to involved [1], so since 64-bit SoCs won't > have this IP block we just disable this

Re: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure

2016-02-05 Thread Herbert Xu
On Tue, Feb 02, 2016 at 09:56:45PM +0800, Rui Wang wrote: > > >From 4bcb73adbef99aada94c49f352063619aa24d43d Mon Sep 17 00:00:00 2001 > From: Rui Wang > Date: Mon, 14 Dec 2015 17:22:13 +0800 > Subject: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure > > modprobe sha1_mb fails with the

Re: [PATCH v2 1/2] crypto: aead - move aead_request_cast helper to aead.h

2016-02-05 Thread Herbert Xu
On Mon, Feb 01, 2016 at 11:17:30AM -0800, Tadeusz Struk wrote: > Move the helper function to common header for everybody to use. > > changes in v2: > - move the helper to crypto/internal/aead.h > instead of crypto/aead.h > > Signed-off-by: Tadeusz Struk Applied. -- Email: Herbert Xu Home

[PATCH] clocksource: introduce clocksource_freq2mult()

2016-02-05 Thread Alexander Kuleshov
The clocksource_khz2mult() and clocksource_hz2mult() share similar code wihch calculates a mult from the given frequency. Both implementations in differ only in value of a frequency. This patch introduces the clocksource_freq2mult() helper with generic implementation of mult calculation to prevent

[PATCH] audit: Fix typo in comment

2016-02-05 Thread Wei Yuan
Signed-off-by: Weiyuan --- kernel/audit_watch.c | 2 +- kernel/auditfilter.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 9f194aa..3cf1c59 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c @@ -185,7 +185,7

[PATCH 1/2] staging/lustre/libcfs: Properly handle debugfs read- and write-only files

2016-02-05 Thread green
From: Oleg Drokin It turns out that unlike procfs, debugfs does not really enforce permissions for root (similar to regular filesystems), so we need to ensure we are not providing ->write() method to read-only files and ->read() method for write-only files at registration. This fixes a couple

[PATCH 0/2] Lustre debugfs fixes

2016-02-05 Thread green
From: Oleg Drokin These two patches tie some loose ends from the Lustre debugfs conversion, but while investigating them I also accumulated some questions that would be good to get answers for. 1. Unlike procfs, debugfs does not really guard your back and if root comes in and tries to write to

[PATCH 2/2] staging/lustre/obdclass: export debugfs functionality for GPL only.

2016-02-05 Thread green
From: Oleg Drokin Turns out we mistakenly export some pretty-wide-reaching debugfs functions as EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL as we should, so this patch rectifies the situation. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/obdclass/lprocfs_status.c| 18

[PATCH] staging/lustre/lnet: Don't call roundup_pow_of_two on zero in LNetEQAlloc

2016-02-05 Thread green
From: Oleg Drokin roundup_pow_of_two return when called on a zero argument is undefined, so don't call it like that. This fixes a problem introduced by commit 322489d9d551 ("staging/lustre: Use roundup_pow_of_two() in LNetEQAlloc()") since 0 is a valid count parameter for LNetEQAlloc. Also

Re: [PATCH v2 3/3] paravirt: rename paravirt_enabled to paravirt_legacy

2016-02-05 Thread Andy Lutomirski
On Feb 5, 2016 8:30 PM, "Luis R. Rodriguez" wrote: > > paravirt_enabled conveys the idea that if this is set or if > paravirt_enabled() returns true you are in a paravirtualized > environment. This is not true by any means, and left as-is > is just causing confusion and is prone to be misused and

[PATCH] acpi/ec: Deny write access unless requested by module param

2016-02-05 Thread green
From: Oleg Drokin In debugfs it's not enough to just set file mode to read-only to deny write access to a file, instead just don't provide the write method unless write access is really requested. Signed-off-by: Oleg Drokin --- I assume allowing run-time changes via /sys/module is preferrable,

[PATCH] arm64: defconfig: add spmi and usb related configs

2016-02-05 Thread Srinivas Kandagatla
This patch adds kconfigs for spmi bus support, pinctrl drivers and usb related to get USB working on Qualcomm DB410C board. Signed-off-by: Srinivas Kandagatla --- arch/arm64/configs/defconfig | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/configs/defconfig

Re: [PATCH 3/5] oom: clear TIF_MEMDIE after oom_reaper managed to unmap the address space

2016-02-05 Thread Michal Hocko
On Thu 04-02-16 15:43:19, Michal Hocko wrote: > On Thu 04-02-16 23:22:18, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > From: Michal Hocko > > > > > > When oom_reaper manages to unmap all the eligible vmas there shouldn't > > > be much of the freable memory held by the oom victim left

[PATCH 2/2] f2fs: support revoking atomic written pages

2016-02-05 Thread Chao Yu
f2fs support atomic write with following semantics: 1. open db file 2. ioctl start atomic write 3. (write db file) * n 4. ioctl commit atomic write 5. close db file With this flow we can avoid file becoming corrupted when abnormal power cut, because we hold data of transaction in referenced pages

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-05 Thread Laxman Dewangan
Hi Javier, ' On Saturday 06 February 2016 11:00 AM, Javier Martinez Canillas wrote: Hello Laxman, Sorry for not doing this before but today was a busy one. Thanks for testing. On 02/05/2016 11:37 AM, Laxman Dewangan wrote: Hi Krzysztof, Javier, 3. Extension of 2 Do

[PATCH 1/2] f2fs: split drop_inmem_pages from commit_inmem_pages

2016-02-05 Thread Chao Yu
Split drop_inmem_pages from commit_inmem_pages for code readability, and prepare for the following modification. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h| 3 +- fs/f2fs/file.c| 6 ++-- fs/f2fs/inode.c | 2 +- fs/f2fs/segment.c | 103

RE: [f2fs-dev] [PATCH 2/2] f2fs: support revoking atomic written pages

2016-02-05 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Saturday, February 06, 2016 12:18 PM > To: Chao Yu > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: support revoking atomic

Re: [PATCH 4/5] mm, oom_reaper: report success/failure

2016-02-05 Thread Michal Hocko
On Fri 05-02-16 10:26:40, Michal Hocko wrote: [...] > From 402090df64de7f80d7d045b0b17e860220837fa6 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Fri, 5 Feb 2016 10:24:23 +0100 > Subject: [PATCH] mm-oom_reaper-report-success-failure-fix > > update the log message to be more specific > >

Re: [PATCH 5/5] mm, oom_reaper: implement OOM victims queuing

2016-02-05 Thread Tetsuo Handa
Michal Hocko wrote: > > But if we consider non system-wide OOM events, it is not very unlikely to > > hit > > this race. This queue is useful for situations where memcg1 and memcg2 hit > > memcg OOM at the same time and victim1 in memcg1 cannot terminate > > immediately. > > This can happen of

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-05 Thread Javier Martinez Canillas
Hello Laxman, Sorry for not doing this before but today was a busy one. On 02/05/2016 11:37 AM, Laxman Dewangan wrote: Hi Krzysztof, Javier, On Thursday 04 February 2016 02:38 PM, Krzysztof Kozlowski wrote: On 04.02.2016 15:58, Krzysztof Kozlowski wrote: 3. Can you try locally to not use

[PATCH] Platform: goldfish: goldfish_pipe.c: Add DMA support using managed version

2016-02-05 Thread Shraddha Barke
setup_access_params_addr has 2 goals- -Initialize the access_params field so that it can be used to send and read commands from the device in access_with_param -Get a bus address for the allocated memory to transfer to the device. Replace the combination of devm_kzalloc and _pa() with

[PATCH v2] x86/boot: add BIT() to boot/bitops.h

2016-02-05 Thread Luis R. Rodriguez
The boot/bitops.h has guards against including the regular bitops (include/asm-generic/bitops.h), it only implements what we need at early boot. We'll be making use of BIT() later so add it. Users of boot/boot.h must include it prior to asm/setup.h otherwise the guard protection devised against

[PATCH v2 3/3] paravirt: rename paravirt_enabled to paravirt_legacy

2016-02-05 Thread Luis R. Rodriguez
paravirt_enabled conveys the idea that if this is set or if paravirt_enabled() returns true you are in a paravirtualized environment. This is not true by any means, and left as-is is just causing confusion and is prone to be misused and abused. This primitive is really only useful to determine if

[PATCH v2 1/3] paravirt: use bool for paravirt_enabled() and paravirt_has_feature()

2016-02-05 Thread Luis R. Rodriguez
This avoids any possible misuse. Signed-off-by: Luis R. Rodriguez --- arch/x86/include/asm/paravirt.h | 6 +++--- arch/x86/include/asm/paravirt_types.h | 2 +- arch/x86/include/asm/processor.h | 4 ++-- arch/x86/kernel/kvm.c | 2 +- arch/x86/kernel/paravirt.c

[PATCH v2 0/3] paravirt: rebrand paravirt_enabled as paravirt_legacy

2016-02-05 Thread Luis R. Rodriguez
There's been confusion both in code and by developers as to what the paravirt_enabled thing means. This sets to clarify this to help build stronger semantics on our bootup process. This was originally suggested by Konrad and I included this as part of a larger patch set [0]. I've decided to break

[PATCH v2 2/3] paravirt: replace direct access to pv_info.paravirt_enabled

2016-02-05 Thread Luis R. Rodriguez
Use helper, its why its there. Signed-off-by: Luis R. Rodriguez --- arch/x86/include/asm/paravirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 60a71dfe0c4e..6542aa99714b 100644 ---

Re: [f2fs-dev] [PATCH 2/2] f2fs: support revoking atomic written pages

2016-02-05 Thread Jaegeuk Kim
Hi Chao, On Tue, Feb 02, 2016 at 06:19:06PM +0800, Chao Yu wrote: > > > > > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > > > > > Sent: Wednesday, January 13, 2016 9:18 AM > > > > > > To: Chao Yu > > > > > > Cc: linux-kernel@vger.kernel.org; > > > > > >

Re: [PATCH v2 1/2] ARM: bcm2835: dt: Add the ethernet to the device trees

2016-02-05 Thread Stephen Warren
On 02/04/2016 12:36 AM, Lubomir Rintel wrote: > The hub and the ethernet in its port 1 are hardwired on the board. > > Compared to the adapters that can be plugged into the USB ports, this > one has no serial EEPROM to store its MAC. Nevertheless, the Raspberry Pi > has the MAC address for this

Re: Bisected Regression 4.3.5 => 4.4.1 booting HP ZBook in EFI mode

2016-02-05 Thread Phil Turmel
On 02/05/2016 08:09 PM, Greg Kroah-Hartman wrote: > Ah, you have versioned modules / builds enabled, that's what caused the > rebuild, if you disable CONFIG_MODVERSIONS and > CONFIG_MODULE_SRCVERSION_ALL you shouldn't rebuild everything. > > If those options are disabled, then something really

[PATCH 01/14] ACPI / OSL: Cleanup initrd table override code

2016-02-05 Thread Lv Zheng
This patch cleans up initrd table override code, merging redundant logics and re-ordering code blocks. No functional changes. Signed-off-by: Lv Zheng --- drivers/acpi/osl.c | 114 1 file changed, 52 insertions(+), 62 deletions(-) diff --git

[PATCH 08/14] ACPI 2.0 / ECDT: Split EC_FLAGS_HANDLERS_INSTALLED

2016-02-05 Thread Lv Zheng
This patch splits EC_FLAGS_HANDLERS_INSTALLED so that address space handler can be installed when it is not possible to install GPE handler during early stage. This patch also tunes address space handler installation, making it happening earlier than GPE handler installation for the same purpose.

[PATCH 02/14] ACPI / OSL: Add support to install tables via initrd

2016-02-05 Thread Lv Zheng
This patch adds support to install tables from initrd. If a table in the initrd wasn't used by the override mechanism, the table would be installed after initializing all RSDT/XSDT tables. Reference: https://lkml.org/lkml/2014/2/28/368 Reported-by: Thomas Renninger Signed-off-by: Lv Zheng ---

[PATCH 03/14] ACPI 2.0 / AML: Make default region accessible during the table load

2016-02-05 Thread Lv Zheng
ACPICA commit 016b2a0917cca9cf0d40c38a1541017d9cf569dd It is proven that the default regions should be accessible during the table loading in order to execute module level AML code. This patch moves default region handler installation code earlier in order to make this happen. Note that by

[PATCH 04/14] ACPI 2.0 / AML: Tune _REG evaluations order in the initialization steps

2016-02-05 Thread Lv Zheng
ACPICA commit 77e0c7a482ac30ef857cf3c33d075e5fe5b5e449 This patch tunes _REG evaluations to be later than all table loading facilities: 1. acpi_load_tables(): _REG is currently invoked after this function. 2. acpi_ns_exec_module_code_list(): this executes module level code, the execution

[PATCH 05/14] ACPI 2.0 / AML: Ensure \_SB._INI executed before any _REG

2016-02-05 Thread Lv Zheng
ACPICA commit 8ae25b8d128b6b8509010be321ff6bf2760f3807 ACPICA commit 19f84c249267fab0bfb138bd14d12510fb4faf24 There is BIOS code relying on the fact that \_SB._INI should get evaluated before any other control methods. This may imply a gap in ACPICA/Linux initialization/enumeration process.

[PATCH 14/14] ACPI 2.0 / AML: Fix module level execution by correctly parsing table as TermList

2016-02-05 Thread Lv Zheng
This experiment follows de-facto standard behavior, parsing entire table as a single TermList, so that all module level executions are possible during the table loading. If regressions are found against the enabling of this fix, this patch is the only one should get bisected. Please report the

[PATCH 07/14] ACPICA: Events: Fix an issue that _REG association can happen before namespace is initialized

2016-02-05 Thread Lv Zheng
Current code flow cannot ensure _REG association can happen after the namespace is initialized, so we move _REG association to where _REG was about to run to fix this issue. This issue is detected when acpi_ev_initialize_region() is invoked during the table loading. And this is one of the most

[PATCH 13/14] ACPI 2.0 / AML: Enable correct ACPI subsystem initialization order for new table loading mode

2016-02-05 Thread Lv Zheng
This patch enables the following initialization order for the new table loading mode (which is enabled by setting acpi_gbl_parse_table_as_term_list to TRUE): 1. Install default region handlers (SystemMemory, SystemIo, PciConfig, EmbeddedControl via ECDT) without evaluating _REG; 2. Load

[PATCH 06/14] ACPI 2.0 / AML: Rename acpi_gbl_reg_methods_enabled to acpi_gbl_namespace_initialized

2016-02-05 Thread Lv Zheng
ACPICA commit 4be3b82cf45d324366ea8567102d5108c5ef47cb The global variable actually means the availability of the namespace, and control methods evaluations should happen after namespace readiness. Thus this patch renames the global variable to reflect this logic. Lv Zheng. Link:

[PATCH 10/14] ACPI 2.0 / ECDT: Enable correct ECDT initialization order

2016-02-05 Thread Lv Zheng
With wrong ECDT fixes reversed, it is able to put ECDT probing before acpi_enable_subsystem(). But the ultimate purpose of ECDT re-enabling is to put the ECDT probing before the namespace initialization (acpi_load_tables()). This patch achieves this with protections so that we can enable it later

[PATCH 12/14] ACPI 2.0 / AML: Add TermList parsing support for table loading

2016-02-05 Thread Lv Zheng
It is proven that not only If/Else/While opcodes, all opcodes can be executed at the module level, including operation region accesses. BIOSen developers are responsible to protect operation region accesses when the operation region drivers are not loaded by the OSPMs (their availabilities are

[PATCH 11/14] ACPI 2.0 / AML: Improve module level execution by moving the If/Else/While execution to per-table basis

2016-02-05 Thread Lv Zheng
This experiment moves module level If/Else/While executions to per-table basis. If regressions are found against the enabling of this improvement, this patch is the only one should get bisected. Please report the regressions to the kernel bugzilla for further root causing. Signed-off-by: Lv

[PATCH 09/14] ACPI 2.0 / ECDT: Remove early namespace reference from EC

2016-02-05 Thread Lv Zheng
All operation region accesses are allowed by AML interpreter when AML is executed, so actually BIOSen are responsible to avoid the operation region accesses in AML before OSPM has prepared an operation region driver. This is done via _REG control method. So AML code normally sets a global named

[PATCH 00/14] ACPI 2.0: Enable TermList interpretion and early opeartion region accesses for table loading

2016-02-05 Thread Lv Zheng
The following AML code is assembled into a static loading SSDT, and used as an instrumentation to pry into the de-facto standard AML interpreter behaviors: Name (ECOK, Zero) Scope (\) { DBUG ("TermList 1") If (LEqual (ECOK, Zero)) { DBUG ("TermList 2")

[PATCH 3/3 v4] cpufreq: governor: Replace timers with utilization update callbacks

2016-02-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Instead of using a per-CPU deferrable timer for queuing up governor work items, register a utilization update callback that will be invoked from the scheduler on utilization changes. The sampling rate is still the same as what was used for the deferrable timers and the

[PATCH v3 0/2] Fix ordering of ftrace/livepatch calls on module load and unload

2016-02-05 Thread Jessica Yu
As explained here [1], livepatch modules are failing to initialize properly because the ftrace coming module notifier (which calls ftrace_module_enable()) runs *after* the livepatch module notifier (which enables the patch(es)). Thus livepatch attempts to apply patches to modules before

[PATCH v3 1/2] ftrace/module: remove ftrace module notifier

2016-02-05 Thread Jessica Yu
Remove the ftrace module notifier in favor of directly calling ftrace_module_enable() and ftrace_release_mod() in the module loader. Hard-coding the function calls directly in the module loader removes dependence on the module notifier call chain and provides better visibility and control over

[PATCH v3 2/2] livepatch/module: remove livepatch module notifier

2016-02-05 Thread Jessica Yu
Remove the livepatch module notifier in favor of directly enabling and disabling patches to modules in the module loader. Hard-coding the function calls ensures that ftrace_module_enable() is run before klp_module_coming() during module load, and that klp_module_going() is run before

[PATCH 2/2] f2fs: preallocate blocks for buffered aio writes

2016-02-05 Thread Jaegeuk Kim
This patch preallocates data blocks for buffered aio writes. With this patch, we can avoid redundant locking and unlocking of node pages given consecutive aio request. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 36 ++-- fs/f2fs/f2fs.h | 1

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Arjan van de Ven
and most of the RT guys would only tolerate a little bit of it is there any real/practial use of going longer than 4 seconds? if there is then yeah fixing it makes sense. if it's just theoretical... shrug... 32 bit systems have a bunch of other limits/differences a well. So I'd think it would

[PATCH 1/2] f2fs: move dio preallocation into f2fs_file_write_iter

2016-02-05 Thread Jaegeuk Kim
This patch moves preallocation code for direct IOs into f2fs_file_write_iter. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 38 +- fs/f2fs/f2fs.h | 2 ++ fs/f2fs/file.c | 22 -- 3 files changed, 39 insertions(+), 23 deletions(-) diff

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 6:15 PM, Arjan van de Ven wrote: > On 2/5/2016 4:51 PM, John Stultz wrote: >> >> Arjan/Thomas: One curious thing I noticed here while writing some >> documentation. The timer_slack_ns value in the task struct is a >> unsigned long. >> >> So this means PR_SET_TIMERSLACK

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 5:56 PM, Andrew Morton wrote: > On Fri, 5 Feb 2016 16:51:02 -0800 John Stultz wrote: >> Alternatively, with the /proc/pid/timerslack_ns interface I'm working >> on, we can make the backing storage a long long and support 64bits of >> nanoseconds on all architectures. (But

RE: [RESEND x2][PATCH v2] block: partition: Add partition specific uevent callbacks for partition info

2016-02-05 Thread Caizhiyong
> > Interestingly, this feature appears to already be documented in > > Documentation/block/cmdline-partition.txt. I wonder how that happened. > > Maybe we used to do this but it got taken away? This documentation talk about the partition name usages, my patch support get partition name from

Re: [PATCH V2 0/7] cpufreq: governors: Fix ABBA lockups

2016-02-05 Thread Saravana Kannan
On 02/04/2016 07:54 PM, Rafael J. Wysocki wrote: On Thursday, February 04, 2016 07:18:32 PM Rafael J. Wysocki wrote: On Thu, Feb 4, 2016 at 6:44 PM, Saravana Kannan wrote: On 02/04/2016 09:43 AM, Saravana Kannan wrote: On 02/04/2016 03:09 AM, Viresh Kumar wrote: On 04-02-16, 00:50, Rafael

[GIT PULL] Ceph fixes for -rc3

2016-02-05 Thread Sage Weil
Hi Linus, Please pull the follow Ceph fixes from git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git for-linus We have a few wire protocol compatibility fixes, ports of a few recent CRUSH mapping changes, and a couple error path fixes. Thanks! sage

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Arjan van de Ven
On 2/5/2016 4:51 PM, John Stultz wrote: On Fri, Feb 5, 2016 at 2:35 PM, John Stultz wrote: On Fri, Feb 5, 2016 at 12:50 PM, Andrew Morton wrote: On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook wrote: Could this be exposed as a writable /proc entry instead? Like the oom_* stuff?

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread Andrew Morton
On Fri, 5 Feb 2016 16:51:02 -0800 John Stultz wrote: > On Fri, Feb 5, 2016 at 2:35 PM, John Stultz wrote: > > On Fri, Feb 5, 2016 at 12:50 PM, Andrew Morton > > wrote: > >> On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook wrote: > >>> Could this be exposed as a writable /proc entry instead? Like

Re: [PATCH] devm_memremap: Fix error value when memremap failed

2016-02-05 Thread Dan Williams
On Fri, Feb 5, 2016 at 5:49 PM, Dan Williams wrote: > On Fri, Feb 5, 2016 at 5:40 PM, Toshi Kani wrote: >> devm_memremap() returns an ERR_PTR() value in case of error. >> However, it returns NULL when memremap() failed. This causes >> the caller, such as the pmem driver, to proceed and oops

Re: [PATCH] devm_memremap: Fix error value when memremap failed

2016-02-05 Thread Dan Williams
On Fri, Feb 5, 2016 at 5:40 PM, Toshi Kani wrote: > devm_memremap() returns an ERR_PTR() value in case of error. > However, it returns NULL when memremap() failed. This causes > the caller, such as the pmem driver, to proceed and oops later. > > Change devm_memremap() to return ERR_PTR(-ENXIO)

[PATCH] spi: fix spi.h kernel-doc warning

2016-02-05 Thread Randy Dunlap
From: Randy Dunlap Fix kernel-doc warning for missing struct field notation. ..//include/linux/spi/spi.h:540: warning: No description found for parameter 'max_transfer_size' Signed-off-by: Randy Dunlap --- include/linux/spi/spi.h |2 ++ 1 file changed, 2 insertions(+) ---

Re: [PATCH] devm_memremap: Fix error value when memremap failed

2016-02-05 Thread Ross Zwisler
On Fri, Feb 05, 2016 at 06:40:27PM -0700, Toshi Kani wrote: > devm_memremap() returns an ERR_PTR() value in case of error. > However, it returns NULL when memremap() failed. This causes > the caller, such as the pmem driver, to proceed and oops later. > > Change devm_memremap() to return

Re: [RFC] why the amount of cache from "free -m" and /proc/meminfo are different?

2016-02-05 Thread Xishi Qiu
On 2016/2/5 19:44, Daniel K. wrote: > On 02/05/2016 07:50 AM, Xishi Qiu wrote: >> [root@localhost ~]# free -m >> totalusedfree shared buff/cache >> available >> Mem: 48295 574 41658 86062 >> 46344 >> Swap:

Re: Bisected Regression 4.3.5 => 4.4.1 booting HP ZBook in EFI mode

2016-02-05 Thread Greg Kroah-Hartman
On Fri, Feb 05, 2016 at 06:41:56PM -0500, Phil Turmel wrote: > On 02/05/2016 05:29 PM, Greg Kroah-Hartman wrote: > > On Fri, Feb 05, 2016 at 04:48:52PM -0500, Phil Turmel wrote: > > >> I'm stumped as to how that powerpc patch can affect my x86 laptop, an > >> HP ZBook 17 w/ i7 processor & nouveau

[PATCH] param-convert-some-on-off-users-to-strtobool fix

2016-02-05 Thread Kees Cook
This converts a missed __setup return (and silences the build warning it was causing). Signed-off-by: Kees Cook --- arch/powerpc/kernel/rtasd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c index

Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

2016-02-05 Thread John Stultz
On Fri, Feb 5, 2016 at 2:35 PM, John Stultz wrote: > On Fri, Feb 5, 2016 at 12:50 PM, Andrew Morton > wrote: >> On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook wrote: >>> Could this be exposed as a writable /proc entry instead? Like the oom_* >>> stuff? >> >> /proc//timer_slack_ns, guarded by

[git pull] drm fixes

2016-02-05 Thread Dave Airlie
Hi Linus, Fixes all over the place: amdkfd: two static checker fixes mst: a bunch of static checker and spec/hw interaction fixes amdgpu: fix Iceland hw properly, and some fiji bugs, along with some write-combining fixes. exynos: some regression fixes adv7511: fix some EDID reading issues.

[PATCH] devm_memremap: Fix error value when memremap failed

2016-02-05 Thread Toshi Kani
devm_memremap() returns an ERR_PTR() value in case of error. However, it returns NULL when memremap() failed. This causes the caller, such as the pmem driver, to proceed and oops later. Change devm_memremap() to return ERR_PTR(-ENXIO) when memremap() failed. Signed-off-by: Toshi Kani Cc: Dan

[PATCH] kbuild: disable Android-specific compiler features

2016-02-05 Thread Kees Cook
The Android compilers enable some non-standard features by default. While most Android build systems inject the needed "-mno-android" option via KCFLAGS, it happens too late (at least on x86_64), since KBUILD_CFLAGS gains KCFLAGS after running (and failing) many cc-option tests. (For example, the

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Michael Welling
On Fri, Feb 05, 2016 at 09:32:34PM +0200, Daniel Baluta wrote: > >> +static int ads1015_read_raw(struct iio_dev *indio_dev, > >> + struct iio_chan_spec const *chan, int *val, > >> + int *val2, long mask) > >> +{ > >> + int ret, idx; > >> +

mmotm 2016-02-05-16-31 uploaded

2016-02-05 Thread akpm
The mm-of-the-moment snapshot 2016-02-05-16-31 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH] ubsan: cosmetic fix to Kconfig text

2016-02-05 Thread Yang Shi
When enabling UBSAN_SANITIZE_ALL, the kernel image size gets increased significantly (~3x). So, it sounds better to have some note in Kconfig. And, fixed a typo. Signed-off-by: Yang Shi --- lib/Kconfig.ubsan | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCHv4 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-05 Thread Laura Abbott
ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap pages for debugging purposes. This requires memory be mapped with PAGE_SIZE mappings since breaking down larger mappings at runtime will lead to TLB conflicts. Check if debug_pagealloc is enabled at runtime and if so, map everyting

[PATCHv4 3/3] arm64: ptdump: Indicate whether memory should be faulting

2016-02-05 Thread Laura Abbott
With CONFIG_DEBUG_PAGEALLOC, pages do not have the valid bit set when free in the buddy allocator. Add an indiciation to the page table dumping code that the valid bit is not set, 'F' for fault, to make this easier to understand. Reviewed-by: Ard Biesheuvel Reviewed-by: Mark Rutland

[PATCHv4 1/3] arm64: Drop alloc function from create_mapping

2016-02-05 Thread Laura Abbott
create_mapping is only used in fixmap_remap_fdt. All the create_mapping calls need to happen on existing translation table pages without additional allocations. Rather than have an alloc function be called and fail, just set it to NULL and catch its use. Also change the name to

[PATCHv4 0/3] ARCH_SUPPORTS_DEBUG_PAGEALLOC for arm64

2016-02-05 Thread Laura Abbott
Hi, This is hopefully the last update to add proper ARCH_SUPPORTS_DEBUG_PAGEALLOC support for arm64. Changes since v3: - More acks - Pulled out block check into a separate function - Style fixups - Comment tweaking Laura Abbott (3): arm64: Drop alloc function from create_mapping arm64: Add

[PATCH] arm64: ubsan: select ARCH_HAS_UBSAN_SANITIZE_ALL

2016-02-05 Thread Yang Shi
To enable UBSAN on arm64, ARCH_HAS_UBSAN_SANITIZE_ALL need to be selected. Basic kernel bootup test is passed on arm64 with CONFIG_UBSAN_SANITIZE_ALL enabled. Signed-off-by: Yang Shi --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig

[ANNOUNCE] Git v2.7.1

2016-02-05 Thread Junio C Hamano
The latest maintenance release Git v2.7.1 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.7.1' tag and the 'maint' branch that the tag points at: url =

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-05 Thread Laura Abbott
On 02/05/2016 06:20 AM, Mark Rutland wrote: On Thu, Feb 04, 2016 at 11:43:36AM -0800, Laura Abbott wrote: ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap pages for debugging purposes. This requires memory be mapped with PAGE_SIZE mappings since breaking down larger mappings at

[PATCH] i2c: i801: Intel DNV_N device IDs SMBus

2016-02-05 Thread Alexandra Yates
Adding Intel codename DNV_N platform device IDs for SMBus. Signed-off-by: Alexandra Yates --- drivers/i2c/busses/i2c-i801.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index f62d697..fb1a3ca 100644 ---

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-05 Thread Guenter Roeck
On 02/05/2016 10:21 AM, Fu Wei wrote: On 5 February 2016 at 22:42, Guenter Roeck wrote: On 02/05/2016 01:51 AM, Fu Wei wrote: Hi Guenter, On 4 February 2016 at 13:17, Guenter Roeck wrote: On 02/03/2016 03:00 PM, Fu Wei wrote: On 4 February 2016 at 02:45, Timur Tabi wrote: Fu Wei

[GIT PULL] Power management and ACPI fixes for v4.5-rc3

2016-02-05 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm+acpi-4.5-rc3 to receive power management and ACPI fixes for v4.5-rc3 with top-most commit 79e2f8dd522873614eb31001745af487451a10de Merge branches 'pm-core' and 'pm-domains' on top of commit

Re: Bisected Regression 4.3.5 => 4.4.1 booting HP ZBook in EFI mode

2016-02-05 Thread Phil Turmel
On 02/05/2016 05:29 PM, Greg Kroah-Hartman wrote: > On Fri, Feb 05, 2016 at 04:48:52PM -0500, Phil Turmel wrote: >> I'm stumped as to how that powerpc patch can affect my x86 laptop, an >> HP ZBook 17 w/ i7 processor & nouveau graphics, but it certainly >> does. The bisect was stable and I

[PATCH v5 1/3] PCI: generic: Refactor code to enable reuse by other drivers.

2016-02-05 Thread David Daney
From: David Daney No change in functionality. Move structure definitions into a separate header file. Move common code to new file with Kconfig machinery to build it. Split probe function in to two parts: - a small driver specific probe function (gen_pci_probe) - a common probe that

[PATCH v5 3/3] pci, pci-thunder-ecam: Add driver for ThunderX-pass1 on-chip devices

2016-02-05 Thread David Daney
From: David Daney The cavium,pci-thunder-ecam devices are exactly ECAM based PCI root complexes. These root complexes (loosely referred to as ECAM units in the hardware manuals) are used to access the Thunder on-chips devices. They are special in that all the BARs on devices behind these root

[PATCH v5 0/3] Add host controller drivers for Cavium ThunderX PCI

2016-02-05 Thread David Daney
From: David Daney Some Cavium ThunderX processors require quirky access methods for the config space of the PCIe bridge. There are now three patches: 1) Refactor code in pci-host-generic so that it can more easily be used by other drivers. This splits the driver for CAM and ECAM access

[PATCH v5 2/3] pci, pci-thunder-pem: Add PCIe host driver for ThunderX processors.

2016-02-05 Thread David Daney
From: David Daney The root complexes used to access off-chip PCIe devices (called PEM units in the hardware manuals) on some Cavium ThunderX processors require quirky access methods for the config space of the PCIe bridge. Add a driver to provide these config space accessor functions. The

[PATCH 17/30] rapidio/rionet: add locking into add/remove device

2016-02-05 Thread Alexandre Bounine
Add spinlock protection when handling list of connected peers and ability to handle new peer device addition after the RIONET device was open. Before his update RIONET was sending JOIN requests only when it have been opened, peer devices added later have been missing from this process.

[PATCH] mmc: mmc_spi: add checks for dma mapping error

2016-02-05 Thread Alexey Khoroshilov
There is no checks for dma mapping errors in mmc_spi. Tha patch fixes that and by the way it adds dma_unmap_single(ones_dma) that was left on a failure path mmc_spi_probe(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov ---

[PATCH 08/30] rapidio/tsi721: add query_mport callback

2016-02-05 Thread Alexandre Bounine
Add device-specific implementation of query_mport callback function. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 34 ++ 1 files changed, 34

[PATCH 27/30] rapidio/tsi721_dma: update error reporting from prep_sg callback

2016-02-05 Thread Alexandre Bounine
Switch to returning error-valued pointer instead of simple NULL pointer. This allows to properly identify situation when request queue is full and therefore gives to upper layer an option to retry operation later. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre

[PATCH 09/30] rapidio: add shutdown notification for RapidIO devices

2016-02-05 Thread Alexandre Bounine
Add bus-specific callback to stop RapidIO devices during a system shutdown. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Aurelien Jacquiot Cc: Andre van Herk Cc: linux-kernel@vger.kernel.org --- drivers/rapidio/rio-driver.c | 12 include/linux/rio.h |2 ++

  1   2   3   4   5   6   7   8   9   10   >