Re: [PATCH] rtc: add support for rtc NXP pca21125 and pca8565

2016-12-24 Thread kbuild test robot
Hi Venkat, [auto build test ERROR on abelloni/rtc-next] [also build test ERROR on v4.9 next-20161224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Venkat-Prashanth-B-U/rtc-add-support-for-rtc

[kvm-unit-tests PATCH] Makefile: Disable PIE as GCC enables it by default from 6.2.0-7

2016-12-24 Thread Gavin Guo
Build fail can be observed while the kvm-unit-tests builds on Ubuntu Yakkety/Zesty release: /usr/bin/ld: x86/cstart64.o: relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC and can be fixed by adding "-fno-pic" and "-no-pie" option. There are

Re: [PATCH] rtc: add support for rtc NXP pca21125 and pca8565

2016-12-24 Thread kbuild test robot
Hi Venkat, [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on v4.9 next-20161224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Venkat-Prashanth-B-U/rtc-add-support-for

undefined reference to `_text'

2016-12-24 Thread kbuild test robot
Hi Randy, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: 7c7808ce107d63e158dbbc3af085980985a0c3c4 openrisc: prevent VGA console, fix builds date: 13 days ago confi

[PATCH] rtc: add support for rtc NXP pca21125 and pca8565

2016-12-24 Thread Venkat Prashanth B U
This is a patch to support the SPI compatible PCA21125 device with the I2C based rtc-pcf8563 driver using regmap layer. Further this patch adds "pca8565" to the set of i2c ids. Signed-off-by: Venkat Prashanth B U --- change log v3: 1. Add a regmap layer to I2C PCF8563 to support SPI PCA21125. 2.

[PATCH v2] ipv4: Namespaceify tcp_tw_reuse knob

2016-12-24 Thread Haishuang Yan
Different namespaces might have different requirements to reuse TIME-WAIT sockets for new connections. This might be required in cases where different namespace applications are in place which require TIME_WAIT socket connections to be reduced independently of the host. Signed-off-by: Haishuang Ya

Re: [v2 3/7] x86/mpx, x86/insn: Relocate insn util functions to a new insn-utils

2016-12-24 Thread Masami Hiramatsu
Hi Ricado, On Fri, 23 Dec 2016 17:37:41 -0800 Ricardo Neri wrote: > Other kernel submodules can benefit from using the utility functions > defined in mpx.c to obtain the addresses and values of operands contained > in the general purpose registers. An instance of this is the emulation code > use

Re: Detecting kprobes generated code addresses

2016-12-24 Thread Masami Hiramatsu
On Sun, 25 Dec 2016 12:13:20 +0900 Masami Hiramatsu wrote: > On Thu, 22 Dec 2016 00:42:19 -0600 > Josh Poimboeuf wrote: > > > Hi Masami, > > > > I would like to make __kernel_text_address() be able to detect whether > > an address belongs to code which was generated by kprobes. As far as I >

core.c:undefined reference to `fpu_save'

2016-12-24 Thread kbuild test robot
Hi Andrew, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h d

Re: [PATCH 1/2] mm: Use owner_priv bit for PageSwapCache, valid when PageSwapBacked

2016-12-24 Thread Hugh Dickins
On Sun, 25 Dec 2016, Nicholas Piggin wrote: > A page is not added to the swap cache without being swap backed, > so PageSwapBacked mappings can use PG_owner_priv_1 for PageSwapCache. > > Acked-by: Hugh Dickins Yes, confirmed, Acked-by: Hugh Dickins I checked through your migrate and memory-fai

arch/xtensa/include/asm/initialize_mmu.h:41: Error: invalid register 'atomctl' for 'wsr' instruction

2016-12-24 Thread kbuild test robot
Hi Pete, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: d0b73b488c55df905ea8faaad079f8535629ed26 xtensa: Add config files for Diamond 233L - Rev C processor variant

drivers/net/ethernet/intel/igb/igb_ptp.c:397: warning: array subscript is below array bounds

2016-12-24 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: d1cbfd771ce8297fa11e89f315392de6056a2181 ptp_clock: Allow for it to be optional date: 6 weeks ago config: x86_64-randconfig-s1-12251102 (attached as .config

Re: Detecting kprobes generated code addresses

2016-12-24 Thread Masami Hiramatsu
On Thu, 22 Dec 2016 00:42:19 -0600 Josh Poimboeuf wrote: > Hi Masami, > > I would like to make __kernel_text_address() be able to detect whether > an address belongs to code which was generated by kprobes. As far as I > can tell, that information seems to be in the 'pages' lists of > kprobe_ins

[PATCH 2/2] mm: add PageWaiters indicating tasks are waiting for a page bit

2016-12-24 Thread Nicholas Piggin
Add a new page flag, PageWaiters, to indicate the page waitqueue has tasks waiting. This can be tested rather than testing waitqueue_active which requires another cacheline load. This bit is always set when the page has tasks on page_waitqueue(page), and is set and cleared under the waitqueue lock

[PATCH 0/2] PageWaiters again

2016-12-24 Thread Nicholas Piggin
I cleaned up the changelog a bit and made a few tweaks to patch 1 as described in my reply to Hugh. Resending with SOBs. Thanks, Nick Nicholas Piggin (2): mm: Use owner_priv bit for PageSwapCache, valid when PageSwapBacked mm: add PageWaiters indicating tasks are waiting for a page bit incl

[PATCH 1/2] mm: Use owner_priv bit for PageSwapCache, valid when PageSwapBacked

2016-12-24 Thread Nicholas Piggin
A page is not added to the swap cache without being swap backed, so PageSwapBacked mappings can use PG_owner_priv_1 for PageSwapCache. Acked-by: Hugh Dickins Signed-off-by: Nicholas Piggin --- include/linux/page-flags.h | 24 include/trace/events/mmflags.h | 1 - m

Re: [PATCH V3 3/4] arch/powerpc: Implement Optprobes

2016-12-24 Thread Masami Hiramatsu
On Mon, 19 Dec 2016 18:48:24 +0530 Anju T Sudhakar wrote: > Detour buffer contains instructions to create an in memory pt_regs. > After the execution of the pre-handler, a call is made for instruction > emulation. > The NIP is determined in advanced through dummy instruction emulation and a > b

arch/ia64/kernel/entry.S:621: Error: Operand 2 of `adds' should be a 14-bit integer (-8192-8191)

2016-12-24 Thread kbuild test robot
Hi Will, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: da48d094ce5d7c7dcdad9011648a81c42fd1c2ef Kconfig: remove HAVE_LATENCYTOP_SUPPORT date: 11 months ago config

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-24 Thread Dashi DS1 Cao
It's a CentOS 7.2, so there is point in asking RHT. I'll try to persuade the customer to have a try with kernel version 4.9, if only I can get it work with CentOS 7.2. Dashi Cao -Original Message- From: Peter Zijlstra [mailto:pet...@infradead.org] Sent: Friday, December 23, 2016 10:20

cc1: error: '-march=r3000' requires '-mfp32'

2016-12-24 Thread kbuild test robot
Hi James, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: 034827c727f7f3946a18355b63995b402c226c82 MIPS: Fix -mabi=64 build of vdso.lds date: 3 months ago config: m

Re: [PATCH] ipv4: Namespaceify tcp_tw_reuse knob

2016-12-24 Thread David Miller
From: Haishuang Yan Date: Sat, 24 Dec 2016 20:43:07 +0800 > Signed-off-by: Haishuang Yan You need to provide something more than an empty commit message. Instead, the commit message must explain why this particular sysctl should be considered for namespacification and what the implications, bo

Re: [PATCH 01/14] x86/cqm: Intel Resource Monitoring Documentation

2016-12-24 Thread Shivappa Vikas
On Fri, 23 Dec 2016, Peter Zijlstra wrote: On Fri, Dec 23, 2016 at 11:35:03AM -0800, Shivappa Vikas wrote: Hello Peterz, On Fri, 23 Dec 2016, Peter Zijlstra wrote: On Fri, Dec 16, 2016 at 03:12:55PM -0800, Vikas Shivappa wrote: +Continuous monitoring +- +A new file co

arch/mips/vdso/gettimeofday.c:1:0: error: '-march=r3000' requires '-mfp32'

2016-12-24 Thread kbuild test robot
Hi Guenter, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: 398c7500a1f5f74e207bd2edca1b1721b3cc1f1e MIPS: VDSO: Fix build error with binutils 2.24 and earlier date

drivers/gpu/drm/i915/i915_gem_gtt.c:2367: error: 'gtt_entry' may be used uninitialized in this function

2016-12-24 Thread kbuild test robot
Hi Dave, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: 85d1225ec066b2ef46fbd0ed1bae78ae1f3e6c91 drm/i915: Introduce & use new lightweight SGL iterators date: 7 mo

arch/mips/vdso/elf.S:1:0: error: '-march=r3000' requires '-mfp32'

2016-12-24 Thread kbuild test robot
Hi Alex, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: ebb5e78cc63417a35254a791de66e1cc84f963cc MIPS: Initial implementation of a VDSO date: 1 year, 1 month ago c

Re: [PATCH 1/2] mm: Use owner_priv bit for PageSwapCache, valid when PageSwapBacked

2016-12-24 Thread Nicholas Piggin
On Thu, 22 Dec 2016 11:55:28 -0800 (PST) Hugh Dickins wrote: > On Thu, 22 Dec 2016, Nicholas Piggin wrote: > > I agree with every word of that changelog ;) > > And I'll stamp this with > Acked-by: Hugh Dickins Thanks Hugh. > The thing that Peter remembers I commented on (which 0day caught t

Re: [PATCH v3 1/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread David Miller
It is never, ever, appropriate to use the same exact Subject: line text for two different changes. Someone looking at "git shortlog" has no way to know what is different between the two changes. You must put care and time into constructing Subject: lines because this text is critical for data mi

Re: Re: [PATCH v2 1/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Thomas Preisner
Hello. On Sat, 2016-12-24 at 20:06 +0100, Sergei Shtylyov wrote: >Hello! > >On 12/24/2016 03:02 PM, Thomas Preisner wrote: > >> In a few cases the err-variable is not set to a negative error code if a >> function call fails and thus 0 is returned instead. >> It may be better to set err to the appr

[PATCH v3 2/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Thomas Preisner
In some cases the return value of a failing function is not being used and the function typhoon_init_one() returns another negative error code instead. Signed-off-by: Thomas Preisner Signed-off-by: Milan Stephan --- drivers/net/ethernet/3com/typhoon.c | 16 1 file changed, 8 in

[PATCH v3 1/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Thomas Preisner
In a few cases the err-variable is not set to a negative error code if a function call fails and thus 0 is returned instead. It may be better to set err to the appropriate negative error code before returning. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188841 Reported-by: Pan Bian Sig

{standard input}:199: Error: unknown opcode

2016-12-24 Thread kbuild test robot
Hi Rich, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: b4214e41b7152b1964a3421a40251d202ae2d2c0 sh: add SMP support for J2 date: 5 months ago config: sh-j2_defconf

include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16'

2016-12-24 Thread kbuild test robot
Hi Vincent, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba commit: 3194c6870158e305dac2af52f83681e9cb67280f NFC: nfcmrvl: add firmware download support date: 1 year, 2 mon

[GIT PULL] turbostat patches for 4.10 merge

2016-12-24 Thread Len Brown
Hi Linus, Please pull these turbostat patches. thanks! Len Brown, Intel Open Source Technology Center The following changes since commit 43c4f67c966deb1478dc9acbf66ab547287d530f: Merge branch 'akpm' (patches from Andrew) (2016-11-30 16:33:41 -0800) are available in the git repository at: git://

Re: [RFC PATCH 4.10 3/6] bpf: Use SHA256 instead of SHA1 for bpf digests

2016-12-24 Thread Daniel Borkmann
On 12/24/2016 03:22 AM, Andy Lutomirski wrote: BPF digests are intended to be used to avoid reloading programs that are already loaded. For use cases (CRIU?) where untrusted programs are involved, intentional hash collisions could cause the wrong BPF program to execute. Additionally, if BPF dig

[RFC] taint/module: Fix problems when out-of-kernel driver defines true or false

2016-12-24 Thread Larry Finger
Commit 7fd8329ba502 ("taint/module: Clean up global and module taint flags handling") used the key words true and false as character members of a new struct. These names cause problems when out-of-kernel modules such as VirtualBox include their own definitions of true and false. Fixes: 7fd8329ba50

Re: [PATCH 1/2] mm: Use owner_priv bit for PageSwapCache, valid when PageSwapBacked

2016-12-24 Thread Linus Torvalds
Nick, mind adding a changelog and a sign-off for these two patches? I'd like to apply at least the first one asap, just to get as much verification of the page flag bits as possible. Linus On Wed, Dec 21, 2016 at 7:19 AM, Nicholas Piggin wrote: > --- > include/linux/page-flags.h

Re: [PATCH v2 1/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Sergei Shtylyov
Hello! On 12/24/2016 03:02 PM, Thomas Preisner wrote: In a few cases the err-variable is not set to a negative error code if a function call fails and thus 0 is returned instead. It may be better to set err to the appropriate negative error code before returning. Bugzilla: https://bugzilla.ker

Re: linux-next: Tree for Dec 24 (ijnput/rmi4)

2016-12-24 Thread Randy Dunlap
On 12/23/16 19:53, Stephen Rothwell wrote: > Hi all, > > Please do not add any material for v4.11 to your linux-next included > branches until after v4.10-rc1 has been released. > > There will be no linux-next releases from me between Dec 25 and Jan 2 > inclusive (unless I get really bored with m

[PATCH 2/2] ALSA: hda - Fix click noises on Samsung Ativ Book 8

2016-12-24 Thread Gabriele Mazzotta
The Samsung Ativ Book 8 makes a loud click noise on boot, shutdown and when the audio card enters or exits power saving states. All these noises disappear applying ALC269_FIXUP_NO_SHUTUP. In addition to that, fix the loud click noise that the laptop makes when inserting or removing the headphone j

[PATCH 1/2] ALSA: hda - Apply ALC269_FIXUP_NO_SHUTUP on HDA_FIXUP_ACT_PROBE

2016-12-24 Thread Gabriele Mazzotta
Setting shutup when the action is HDA_FIXUP_ACT_PRE_PROBE might not have the desired effect since it could be overridden by another more generic shutup function. Prevent this by setting the more specific shutup function on HDA_FIXUP_ACT_PROBE. Signed-off-by: Gabriele Mazzotta --- sound/pci/hda/p

Re: [PATCH 6/6] wl1251: Set generated MAC address back to NVS data

2016-12-24 Thread Pali Rohár
On Saturday 24 December 2016 19:17:30 Pavel Machek wrote: > Hi! > > > In case there is no valid MAC address kernel generates random one. > > This patch propagate this generated MAC address back to NVS data > > which will be uploaded to wl1251 chip. So HW would have same MAC > > address as linux ke

Re: [PATCH 5/6] wl1251: Parse and use MAC address from supplied NVS data

2016-12-24 Thread Pali Rohár
On Saturday 24 December 2016 19:14:21 Pavel Machek wrote: > On Sat 2016-12-24 17:53:00, Pali Rohár wrote: > > @@ -1581,10 +1598,16 @@ int wl1251_init_ieee80211(struct wl1251 > > *wl) > > > > wl->hw->queues = 4; > > > > + if (wl->nvs == NULL && !wl->use_eeprom) { > > + ret = wl1251

Re: [PATCH 4/6] wl1251: Generate random MAC address only if driver does not have valid

2016-12-24 Thread Pali Rohár
On Saturday 24 December 2016 19:08:54 Pavel Machek wrote: > On Sat 2016-12-24 17:52:59, Pali Rohár wrote: > > Before this patch driver generated random MAC address every time > > when was doing initialization. And after that random MAC address > > could be overwritten with fixed one if provided. >

Re: [PATCH] media: Add video bus switch

2016-12-24 Thread kbuild test robot
Hi Pavel, [auto build test WARNING on v4.9-rc8] [also build test WARNING on next-20161224] [cannot apply to linuxtv-media/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Pavel-Machek

Re: [PATCH 6/6] wl1251: Set generated MAC address back to NVS data

2016-12-24 Thread Pavel Machek
Hi! > In case there is no valid MAC address kernel generates random one. This > patch propagate this generated MAC address back to NVS data which will be > uploaded to wl1251 chip. So HW would have same MAC address as linux kernel > uses. > return 0; > } > > +static int wl1251_write_nvs_

Re: [PATCH 5/6] wl1251: Parse and use MAC address from supplied NVS data

2016-12-24 Thread Pavel Machek
On Sat 2016-12-24 17:53:00, Pali Rohár wrote: > This patch implements parsing MAC address from NVS data which are sent to > wl1251 chip. Calibration NVS data could contain valid MAC address and it > will be used instead randomly generated. will be used instead of randomly generated one. > This pa

Re: [PATCH 4/6] wl1251: Generate random MAC address only if driver does not have valid

2016-12-24 Thread Pavel Machek
On Sat 2016-12-24 17:52:59, Pali Rohár wrote: > Before this patch driver generated random MAC address every time when was > doing initialization. And after that random MAC address could be > overwritten with fixed one if provided. Before this patch, driver generated random MAC address every time

Re: [PATCH 3/6] wl1251: Update wl->nvs_len after wl->nvs is valid

2016-12-24 Thread Pavel Machek
On Sat 2016-12-24 17:52:58, Pali Rohár wrote: > In case kmemdup fails thne wl->nvs_len will contains invalid non-zero size. > This patch fixes it. If kmemdup fails, then wl->nvs_len will contain invalid non-zero size. ? This probably should go as first in series, as it is bugfix?

Re: [RFC PATCH 4.10 1/6] crypto/sha256: Refactor the API so it can be used without shash

2016-12-24 Thread Andy Lutomirski
On Sat, Dec 24, 2016 at 2:33 AM, Ard Biesheuvel wrote: > Hi Andy, > > On 24 December 2016 at 02:22, Andy Lutomirski wrote: >> There are some pieecs of kernel code that want to compute SHA256 >> directly without going through the crypto core. Adjust the exported >> API to decouple it from the cry

Re: [PATCH v3 3/3] nfc: trf7970a: Prevent repeated polling from crashing the kernel

2016-12-24 Thread Mark Greer
On Sat, Dec 24, 2016 at 11:17:18AM -0500, Geoff Lansberry wrote: > Mark - I'm sorry, but I did not write this code, and therefore was not > able to accurately describe it. It is fixing a different issue, not > the neard segfault that we are still chasing. Last week Jaret Cantu > sent a separate e

Re: [PATCH] mtd: nand: fix implicit module.h usage in xway_nand.c

2016-12-24 Thread Hauke Mehrtens
On 12/22/2016 12:27 AM, kbuild test robot wrote: > Hi Paul, > > [auto build test ERROR on mtd/master] > [also build test ERROR on v4.9 next-20161221] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci

Re: [PATCH] mtd: nand: fix implicit module.h usage in xway_nand.c

2016-12-24 Thread Hauke Mehrtens
On 12/22/2016 10:01 AM, Boris Brezillon wrote: > +Brian > > On Wed, 21 Dec 2016 16:19:00 +0100 > Hauke Mehrtens wrote: > >> On 12/20/2016 10:18 PM, Paul Gortmaker wrote: >>> In commit d47529b2e9fe0ec2eb1f072afad8849f52e385c4 ("gpio: don't >>> include module.h in shared driver header") we fixed

[PATCH 6/6] wl1251: Set generated MAC address back to NVS data

2016-12-24 Thread Pali Rohár
In case there is no valid MAC address kernel generates random one. This patch propagate this generated MAC address back to NVS data which will be uploaded to wl1251 chip. So HW would have same MAC address as linux kernel uses. Signed-off-by: Pali Rohár --- drivers/net/wireless/ti/wl1251/main.c |

[PATCH 5/6] wl1251: Parse and use MAC address from supplied NVS data

2016-12-24 Thread Pali Rohár
This patch implements parsing MAC address from NVS data which are sent to wl1251 chip. Calibration NVS data could contain valid MAC address and it will be used instead randomly generated. This patch also move code for requesting NVS data from userspace to driver initialization code to make sure th

[PATCH 4/6] wl1251: Generate random MAC address only if driver does not have valid

2016-12-24 Thread Pali Rohár
Before this patch driver generated random MAC address every time when was doing initialization. And after that random MAC address could be overwritten with fixed one if provided. This patch changes order. First it tries to read fixed MAC address and if it fails then driver generates random MAC add

[PATCH 3/6] wl1251: Update wl->nvs_len after wl->nvs is valid

2016-12-24 Thread Pali Rohár
In case kmemdup fails thne wl->nvs_len will contains invalid non-zero size. This patch fixes it. Signed-off-by: Pali Rohár --- drivers/net/wireless/ti/wl1251/main.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wl1251/main.c b/drivers/net/wi

[PATCH 0/6] wl1251: Fix MAC address for Nokia N900

2016-12-24 Thread Pali Rohár
This patch series fix processing MAC address for wl1251 chip found in Nokia N900. Pali Rohár (6): firmware: Add request_firmware_prefer_user() function wl1251: Use request_firmware_prefer_user() for loading NVS calibration data wl1251: Update wl->nvs_len after wl->nvs is valid wl1251:

[PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2016-12-24 Thread Pali Rohár
NVS calibration data for wl1251 are model specific. Every one device with wl1251 chip has different and calibrated in factory. Not all wl1251 chips have own EEPROM where are calibration data stored. And in that case there is no "standard" place. Every device has stored them on different place (som

[PATCH 1/6] firmware: Add request_firmware_prefer_user() function

2016-12-24 Thread Pali Rohár
This function works pretty much like request_firmware(), but it prefer usermode helper. If usermode helper fails then it fallback to direct access. Useful for dynamic or model specific firmware data. Signed-off-by: Pali Rohár --- drivers/base/firmware_class.c | 45 +

Re: linux-next: build failure after merge of the scsi tree

2016-12-24 Thread James Bottomley
On Sat, 2016-12-24 at 12:46 +0100, Thomas Gleixner wrote: > On Sat, 24 Dec 2016, Stephen Rothwell wrote: > > On Thu, 22 Dec 2016 16:56:34 -0800 James Bottomley < > > james.bottom...@hansenpartnership.com> wrote: > > > > > > On Fri, 2016-12-23 at 11:45 +1100, Stephen Rothwell wrote: > > > > Hi Jame

[PATCH] rtc: add support for maxim dallas ds1682

2016-12-24 Thread Venkat Prashanth B U
This is a patch to add support for maxim dallas ds1682 total elapsed time recorder Signed‐off‐by: Venkat Prashanth B U --- --- drivers/rtc/Kconfig | 9 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-ds1682.c | 288 +++ 3 files changed, 298 ins

Re: [PATCH] drivers: watchdog: booke_wdt: add __ro_after_init to booke_wdt_info

2016-12-24 Thread Guenter Roeck
On 12/24/2016 08:07 AM, Bhumika Goyal wrote: The object booke_wdt_info of watchdog_info structure is not modified after getting initialized by booke_wdt_init. Apart from getting referenced in init it is also stored in the info field of watchdog_device structure which is of type const struct watch

Re: [PATCH v3 3/3] nfc: trf7970a: Prevent repeated polling from crashing the kernel

2016-12-24 Thread Geoff Lansberry
Mark - I'm sorry, but I did not write this code, and therefore was not able to accurately describe it. It is fixing a different issue, not the neard segfault that we are still chasing. Last week Jaret Cantu sent a separate email explaining the purpose of the code, which had you copied, did you se

[PATCH] nohz: Fix collision between tick and other hrtimers

2016-12-24 Thread Frederic Weisbecker
When the tick is stopped and an interrupt occurs afterward, we check on that interrupt exit if the next tick needs to be rescheduled. If it doesn't need any update, we don't want to do anything. In order to check if the tick needs an update, we compare it against the clockevent device deadline. No

[PATCH] drivers: watchdog: booke_wdt: add __ro_after_init to booke_wdt_info

2016-12-24 Thread Bhumika Goyal
The object booke_wdt_info of watchdog_info structure is not modified after getting initialized by booke_wdt_init. Apart from getting referenced in init it is also stored in the info field of watchdog_device structure which is of type const struct watchdog_info *info. So, it becomes read only after

Robust futexes: lost wakeups and design flaws in the glibc/kernel synchronization scheme

2016-12-24 Thread Torvald Riegel
TLDR: (1) The Linux kernel fails to wake futex waiters when a userspace thread that releases a mutex is killed between modifying the futex word and the subsequent FUTEX_WAKE syscall. (2) POSIX makes certain requirements regarding when destruction of a mutex is safe that are violated by the current

Re: [GIT PULL REQUEST] watchdog - v4.10 merge window

2016-12-24 Thread Guenter Roeck
On 12/24/2016 06:39 AM, Wim Van Sebroeck wrote: Hi Linus, Due to time constraints and personal issues Guenter and I decided that this window will be a pull from another location. We got it wrong the first time, so here is our second request (together with our humble apologies). (I also hope th

[GIT PULL] NTB bug fixes for v4.10

2016-12-24 Thread Jon Mason
Hello Linus, Here are a few NTB bug fixes, new HE support, and updates to AMD NTB for 4.10. Please consider pulling them. Thanks, Jon The following changes since commit 69973b830859bc6529a7a0468ba0d80ee5117826: Linux 4.9 (2016-12-11 11:17:54 -0800) are available in the git repository at:

[PATCH] of: drop duplicate headers

2016-12-24 Thread Geliang Tang
Drop duplicate headers string.h and of_platform.h. Signed-off-by: Geliang Tang --- drivers/of/overlay.c | 1 - drivers/of/resolver.c | 1 - drivers/of/unittest.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 0d4cda7..d4e337e 100644 --- a/

[PATCH] cgroup: fix a comment typo

2016-12-24 Thread Geliang Tang
Fix a comment typo in cgroup.h. Signed-off-by: Geliang Tang --- include/linux/cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index c83c23f..f6b43fb 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -2

[PATCH] ALSA: mixart: fix a comment typo

2016-12-24 Thread Geliang Tang
Fix a comment typo in mixart.h. Signed-off-by: Geliang Tang --- sound/pci/mixart/mixart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/mixart/mixart.h b/sound/pci/mixart/mixart.h index 0cc17e0..4267438 100644 --- a/sound/pci/mixart/mixart.h +++ b/sound/pci/mixart

[PATCH] media: Add video bus switch

2016-12-24 Thread Pavel Machek
N900 contains front and back camera, with a switch between the two. This adds support for the switch component, and it is now possible to select between front and back cameras during runtime. Signed-off-by: Sebastian Reichel Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek diff --g

Re: [PATCH] mtd: mtdswap: use MTDSWAP_ECNT_MIN/MAX

2016-12-24 Thread Geliang Tang
On Fri, Dec 23, 2016 at 07:51:56PM +0100, Marek Vasut wrote: > On 12/20/2016 02:54 PM, Geliang Tang wrote: > > Since macros MTDSWAP_ECNT_MIN() and MTDSWAP_ECNT_MAX() have been > > defined in mtdswap.c, use them instead of open-coding. > > > > Signed-off-by: Geliang Tang > > Sorry for getting to

Re: [RFC/PATCH] media: Add video bus switch

2016-12-24 Thread Pavel Machek
On Sat 2016-12-24 15:26:57, Pavel Machek wrote: > Hi! > > > > So... did I understood it correctly? (Needs some work to be done...) > > > > I had a quick look and yes, that's basically what I had in mind to > > solve the issue. If callback is not available the old system should > > be used of cour

[GIT PULL REQUEST] watchdog - v4.10 merge window

2016-12-24 Thread Wim Van Sebroeck
Hi Linus, Due to time constraints and personal issues Guenter and I decided that this window will be a pull from another location. We got it wrong the first time, so here is our second request (together with our humble apologies). (I also hope that Guenters tree is signed, it normally is, but if

Re: [RFC/PATCH] media: Add video bus switch

2016-12-24 Thread Pavel Machek
Hi! > > So... did I understood it correctly? (Needs some work to be done...) > > I had a quick look and yes, that's basically what I had in mind to > solve the issue. If callback is not available the old system should > be used of course. Ok, got it to work, thanks for all the help. I'll clean i

Re: [GIT PULL REQUEST] watchdog - v4.10 merge window

2016-12-24 Thread Wim Van Sebroeck
Hi Linus, Guenter, > On 12/23/2016 11:45 AM, Linus Torvalds wrote: > >On Fri, Dec 23, 2016 at 11:40 AM, Guenter Roeck wrote: > >> > >>FWIW: > > > >Hey, I can generate those myself. > > > >But when they aren't generated by the person who sends the pull > >request, they are worthless. > > > >The wh

[PATCH 2/2] printk: always report lost messages on serial console

2016-12-24 Thread Sergey Senozhatsky
The "printk messages dropped" report is 'attached' to a kernel message located at console_idx offset. This does not work well if we skip that message due to loglevel filtering, because in this case we also skip/lose dropped message report. Disable suppress_message_printing() loglevel filtering if

[PATCH 0/2] printk: always report dropped messages

2016-12-24 Thread Sergey Senozhatsky
Hello, Two patches: trivial clean up and console_unlock() "fix". The `printk messages dropped' report is printed as part of actual kernel message, that's why we do 'text + len, sizeof(text) - len' later in msg_print_text(). The problem here is that we may eventually skip the message, and

[PATCH 1/2] printk: drop call_console_drivers() unused param

2016-12-24 Thread Sergey Senozhatsky
We do suppress_message_printing() check before we call call_console_drivers() now, so `level' param is not needed anymore. Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/kernel/printk/printk.c b/kernel

[BUG] ARM64: amlogic: gxbb: unhandled level 2 translation fault (11)

2016-12-24 Thread Heinrich Schuchardt
When trying to run sddm on an Hardkernel Odroid C2 I invariably run into the translation fault below. The following mail thread relates this kind of problem to TLB (translation lookaside buffer) broadcasting. https://lkml.org/lkml/2014/4/15/207 [ 3163.014263] sddm[1851]: unhandled level 2 transl

[PATCH] efi/libstub: arm*: Pass latest memory map to the kernel

2016-12-24 Thread Ard Biesheuvel
As reported by James, the current libstub code involving the annotated memory map only works somewhat correctly by accident, due to the fact that a pool allocation happens to be reused immediately, retaining its former contents on most implementations of the UEFI boot services. Instead of juggling

[GIT PULL] efi: urgent fix for v4.10 with cc to stable

2016-12-24 Thread Ard Biesheuvel
The following changes since commit 69973b830859bc6529a7a0468ba0d80ee5117826: Linux 4.9 (2016-12-11 11:17:54 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-urgent for you to fetch changes up to bcd5812b8bfb24783f09b53659fae54

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2016-12-24 Thread Christoph Hellwig
On Sat, Dec 24, 2016 at 02:17:26PM +0100, Hannes Reinecke wrote: > Christoph, do you have a pointer to your patchset? > Not that I'll be able to do any meaningful work until next year, but having > a look would be nice. Just to get a feeling where you want to head to; I > might be able to work on

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2016-12-24 Thread Hannes Reinecke
On 12/24/2016 11:07 AM, Christoph Hellwig wrote: On Fri, Dec 23, 2016 at 11:42:45AM -0800, Linus Torvalds wrote: Ugh. This patch is nasty. It's the same SCSI has done for ages - except that is uses a separate kmalloc for the sense buffer. I think we should just fix blk_execute_rq() instead.

Re: [PATCH] ipv4: Namespaceify tcp_tw_reuse knob

2016-12-24 Thread Nikolay Borisov
On 24.12.2016 14:43, Haishuang Yan wrote: > Signed-off-by: Haishuang Yan Reviewed-by: Nikolay Borisov

Re: wl1251 NVS calibration data format

2016-12-24 Thread Pali Rohár
On Saturday 17 December 2016 12:14:50 Pali Rohár wrote: > I will try to play with driver if it is really truth! > > I already looked into original TI's multiplatform HAL driver for > wl1251 chip (big mess) and found there that there is wl1251 command > to read mac address from chip. It could be do

Re: [PATCH v2 2/2] nsfs: Add an ioctl() to return owner UID of a userns

2016-12-24 Thread Andrei Vagin
On Fri, Dec 23, 2016 at 10:54:53AM +0100, Michael Kerrisk (man-pages) wrote: > I'd like to write code that discovers the user namespace hierarchy on > a running system, and also shows who owns the various user namespaces. > Currently, there is no way of getting the owner UID of a user > namespace.

[PATCH] ipv4: Namespaceify tcp_tw_reuse knob

2016-12-24 Thread Haishuang Yan
Signed-off-by: Haishuang Yan --- include/net/netns/ipv4.h | 1 + include/net/tcp.h | 1 - net/ipv4/sysctl_net_ipv4.c | 14 +++--- net/ipv4/tcp_ipv4.c| 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/net/netns/ipv4.h b/include/net/netn

Re: [RFC] arm64/acpi: make ACPI boot preference configurable

2016-12-24 Thread Ard Biesheuvel
On 21 December 2016 at 17:54, Jonathan Toppins wrote: > This patch allows a user to configure ACPI to be preferred over > device-tree. > This has been discussed at length in the past, and has been rejected by the arm64 maintainers. (I was the one who proposed the exact same thing the last time ar

[PATCH v2 1/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Thomas Preisner
In a few cases the err-variable is not set to a negative error code if a function call fails and thus 0 is returned instead. It may be better to set err to the appropriate negative error code before returning. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188841 Reported-by: Pan Bian Sig

Re: [PATCH] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Thomas Preisner
On Sat, 2016-12-24 at 02:06 +0100, David Dillow wrote: >On Sat, 2016-12-24 at 00:00 +0100, Thomas Preisner wrote: >> diff --git a/drivers/net/ethernet/3com/typhoon.c >> b/drivers/net/ethernet/3com/typhoon.c >> index a0cacbe..9a3ab58 100644 >> --- a/drivers/net/ethernet/3com/typhoon.c >> +++ b/driv

[PATCH v2 2/2] drivers: net: ethernet: 3com: fix return value

2016-12-24 Thread Thomas Preisner
In some cases the return value of a failing function is not being used and the function typhoon_init_one() returns another negative error code instead. Signed-off-by: Thomas Preisner Signed-off-by: Milan Stephan --- drivers/net/ethernet/3com/typhoon.c | 16 1 file changed, 8 in

Re: linux-next: build failure after merge of the scsi tree

2016-12-24 Thread Thomas Gleixner
On Sat, 24 Dec 2016, Stephen Rothwell wrote: > On Thu, 22 Dec 2016 16:56:34 -0800 James Bottomley > wrote: > > > > On Fri, 2016-12-23 at 11:45 +1100, Stephen Rothwell wrote: > > > Hi James, > > > > > > After merging the scsi tree, today's linux-next build (x86_64 > > > allmodconfig) failed like

Re: [PATCH] adc: add adc driver for Hisilicon BVT SOCs

2016-12-24 Thread Jonathan Cameron
On 24 December 2016 01:54:57 GMT+00:00, Allen Liu wrote: >Add ADC driver for the ADC controller found on HiSilicon BVT SOCs, like >Hi3516CV300, etc. >The ADC controller is primarily in charge of detecting voltage. > >Reviewed-by: Jiancheng Xue >Signed-off-by: Allen Liu Reading on phone so may

LTP rwtest01 blocks on DAX mountpoint

2016-12-24 Thread Xiong Zhou
Hi lists, Since around 20161129 tag, LTP rwtest01 on dax mountpoint blocks on linux-next tree, now on Linus tree. In "normal", rwtest01 subcase ends in a few minutes, now it keeps running for hours on dax mountpoint, both ext4 and xfs. Ctrl + c can interrupt it. It is always reproducible, blocki

Re: [PATCH 4/4] PCI: exynos: remove the duplicated codes

2016-12-24 Thread Krzysztof Kozlowski
On Mon, Dec 19, 2016 at 05:17:40PM +0900, Jaehoon Chung wrote: > Removed the duplicated codes. > It can use the more simply than now. > > Signed-off-by: Jaehoon Chung > --- > drivers/pci/host/pci-exynos.c | 22 -- > 1 file changed, 8 insertions(+), 14 deletions(-) Acked-by:

[media] tm6000: Addition of an asterisk to the data type for “urb_dma”?

2016-12-24 Thread SF Markus Elfring
Hello, I have looked at the implementation of the function “tm6000_alloc_urb_buffers” once more. https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/drivers/media/usb/tm6000/tm6000-video.c?id=84ede50b623fb45c4c026c80d0abf8cc5193f041#n469 A pointer for an array is also assigned t

Re: [PATCH 3/4] PCI: exynos: Use the bitops API to operate the bit shifting

2016-12-24 Thread Krzysztof Kozlowski
On Mon, Dec 19, 2016 at 05:17:39PM +0900, Jaehoon Chung wrote: > Just use the bitops api to operate the bit. > > Signed-off-by: Jaehoon Chung > --- > drivers/pci/host/pci-exynos.c | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) Acked-by: Krzysztof Kozlowski

Re: [PATCH 2/4] PCI: exynos: Remove the unnecessary variables

2016-12-24 Thread Krzysztof Kozlowski
On Mon, Dec 19, 2016 at 05:17:38PM +0900, Jaehoon Chung wrote: > Remove the unnecessary variables(elbi/phy/block_base). > It needs one resource structure for assigning each resource. > So it replaces with one 'res' variable. > > Signed-off-by: Jaehoon Chung > --- > drivers/pci/host/pci-exynos.c

  1   2   >