Re: [PATCH v4 5/5] staging/android: add flags member to sync ioctl structs

2016-02-28 Thread Emil Velikov
On 27 February 2016 at 15:27, Gustavo Padovan wrote: > Hi Emil, > > 2016-02-27 Emil Velikov : > >> Hi Gustavo, >> >> On 26 February 2016 at 18:31, Gustavo Padovan wrote: >> > From: Gustavo Padovan >> > >> > Play safe and add flags member to all structs. So we don't need to >> > break API or crea

Re: [PATCH v2] signals, pkeys: make si_pkey 32 bits

2016-02-28 Thread Ingo Molnar
* Stephen Rothwell wrote: > In order to prevent a change of alignment of the _sifields union in the > siginfo structure on (some) 32 bit platforms and an ABI breakage, we > change the type of _pkey to unsigned int. If more bits are needed in > the future, a second unsigned int could be added. >

Re: linux-next: manual merge of the iommu tree with the samsung-krzk tree

2016-02-28 Thread Joerg Roedel
Hi Stephen, On Mon, Feb 29, 2016 at 03:20:55PM +1100, Stephen Rothwell wrote: > Hi Joerg, > > Today's linux-next merge of the iommu tree got a conflict in: > > drivers/memory/Kconfig > > between commit: > > 78fbb9361ca3 ("memory: Add support for Exynos SROM driver") > > from the samsung-k

Re: [PATCH] mm: __delete_from_page_cache WARN_ON(page_mapped)

2016-02-28 Thread Joonsoo Kim
2016-02-29 13:49 GMT+09:00 Hugh Dickins : > Commit e1534ae95004 ("mm: differentiate page_mapped() from page_mapcount() > for compound pages") changed the famous BUG_ON(page_mapped(page)) in > __delete_from_page_cache() to VM_BUG_ON_PAGE(page_mapped(page)): which > gives us more info when CONFIG_DEB

Re: log spammed with "loading xx failed with error -2" since commit e40ba6d56b [replace call to fw_read_file_contents() with kernel version]

2016-02-28 Thread James Morris
On Sun, 28 Feb 2016, Luis R. Rodriguez wrote: > >From e63d19975787c0e237a47c17efd01e41b2a8e2fa Mon Sep 17 00:00:00 2001 > From: "Luis R. Rodriguez" > Date: Sat, 27 Feb 2016 14:58:08 -0800 > Subject: [PATCH] firmware: change kernel read fail to dev_dbg() > Applied to git://git.kernel.org/pub/scm

Re: [PATCH] [RFC] mm/page_ref, crypto/async_pq: don't put_page from __exit

2016-02-28 Thread Joonsoo Kim
2016-02-29 6:57 GMT+09:00 Arnd Bergmann : > The addition of tracepoints to the page reference tracking had an > unfortunate side-effect in at least one driver that calls put_page > from its exit function, resulting in a link error: > > `.exit.text' referenced in section `__jump_table' of crypto/bui

Re: BUG: unable to handle kernel paging request from pty_write [was: Linux 4.4.2]

2016-02-28 Thread Jiri Slaby
On 02/26/2016, 08:59 PM, Robert Święcki wrote: > It happens only with 0x6000832 ucode, and Piledriver-based CPUs: i.e. > newer AMD FX, and Opteron 300 series (4300, 6300 etc.). Ok, I can confirm this is: AMD Opteron(tm) Processor 6348 And: microcode: CPU0: patch_level=0x06000836 Thank all the in

Re: [PATCH v5] perf/x86/amd/power: Add AMD accumulated power reporting mechanism

2016-02-28 Thread Huang Rui
On Fri, Feb 26, 2016 at 11:29:52AM +0100, Borislav Petkov wrote: > On Fri, Feb 26, 2016 at 11:18:28AM +0100, Thomas Gleixner wrote: > > On Fri, 26 Feb 2016, Huang Rui wrote: > > > +/* Event code: LSB 8 bits, passed in attr->config any other bit is > > > reserved. */ > > > +#define AMD_POWER_EVENT_

[PATCH] PCI: PTM preliminary implementation

2016-02-28 Thread Yong, Jonathan
Simplified Precision Time Measurement driver, activates PTM feature if a PCIe PTM requester (as per PCI Express 3.1 Base Specification section 7.32)is found, but not before checking if the rest of the PCI hierarchy can support it. The driver does not take part in facilitating PTM conversations, ne

[RFC] PCI: PTM Driver

2016-02-28 Thread Yong, Jonathan
Hello LKML, This is a preliminary implementation of the PTM[1] support driver, the code is obviously hacked together and in need of refactoring. This driver has only been tested against a virtual PCI bus. The drivers job is to get to every PTM capable device, set some PCI config space bits, then

Re: [GIT PULL] tpmdd fix

2016-02-28 Thread James Morris
On Fri, 26 Feb 2016, Jarkko Sakkinen wrote: > Hi James, > > this is the fix for the build warning. > > /Jarkko > > The following changes since commit 481873d06f2bf2ad732450a3a5fa5b8c2a07ef88: > > Merge branch 'next' of > git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity in

[RFC] PCI: PTM Driver

2016-02-28 Thread Yong, Jonathan
Hello LKML, This is a preliminary implementation of the PTM[1] support driver, the code is obviously hacked together and in need of refactoring. This driver has only been tested against a virtual PCI bus. The drivers job is to get to every PTM capable device, set some PCI config space bits, then

Re: [PATCH 8/9] powerpc: simplify csum_add(a, b) in case a or b is constant 0

2016-02-28 Thread Christophe Leroy
Le 23/10/2015 05:33, Scott Wood a écrit : On Tue, 2015-09-22 at 16:34 +0200, Christophe Leroy wrote: Simplify csum_add(a, b) in case a or b is constant 0 Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/checksum.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/

Re: [PATCH 4/9] powerpc: inline ip_fast_csum()

2016-02-28 Thread Christophe Leroy
Le 23/09/2015 07:43, Denis Kirjanov a écrit : On 9/22/15, Christophe Leroy wrote: In several architectures, ip_fast_csum() is inlined There are functions like ip_send_check() which do nothing much more than calling ip_fast_csum(). Inlining ip_fast_csum() allows the compiler to optimise better

Re: [RFC PATCH] proc: do not include shmem and driver pages in /proc/meminfo::Cached

2016-02-28 Thread Konstantin Khlebnikov
On Mon, Feb 29, 2016 at 3:03 AM, Hugh Dickins wrote: > On Fri, 19 Feb 2016, Andrew Morton wrote: >> On Fri, 19 Feb 2016 09:40:45 +0300 Konstantin Khlebnikov >> wrote: >> >> > >> What are your thoughts on this? >> > > >> > > My thoughts are NAK. A misleading stat is not so bad as a >> > > mislea

Re: [PATCH 1/2] sigaltstack: implement SS_AUTODISARM flag

2016-02-28 Thread Stas Sergeev
29.02.2016 00:13, Stas Sergeev пишет: This patch implements the SS_AUTODISARM flag that can be ORed with SS_ONSTACK when forming ss_flags. When this flag is set, sigaltstack will be disabled when entering the signal handler; more precisely, after saving sas to uc_stack. When leaving the signal ha

Re: [PATCH v10 2/2] cpufreq: powernv: Add sysfs attributes to show throttle stats

2016-02-28 Thread Viresh Kumar
On 26-02-16, 16:06, Shilpasri G Bhat wrote: > +static int powernv_cpufreq_policy_notifier(struct notifier_block *nb, > +unsigned long action, void *data) > +{ > + struct cpufreq_policy *policy = data; > + int ret; > + > + if (action == CPUFREQ_CRE

linux-next: manual merge of the target-merge tree with the net-next tree

2016-02-28 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-merge tree got a conflict in: drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h between commit: ba9cee6aa67d ("cxgb4/iw_cxgb4: TOS support") from the net-next tree and commit: c973e2a3ff1b ("cxgb4: add definitions for iSCSI target ULD") f

Re: [PATCH] mm/zsmalloc: add compact column to pool stat

2016-02-28 Thread Sergey Senozhatsky
Hello, On (02/29/16 15:02), Minchan Kim wrote: > On Sat, Feb 27, 2016 at 03:23:53PM +0900, Sergey Senozhatsky wrote: > > Add a new column to pool stats, which will tell us class' zs_can_compact() > > number, so it will be easier to analyze zsmalloc fragmentation. > > Just nitpick: > > Strictly s

Re: [PATCH] mm/zsmalloc: add compact column to pool stat

2016-02-28 Thread Minchan Kim
On Sat, Feb 27, 2016 at 03:23:53PM +0900, Sergey Senozhatsky wrote: > Add a new column to pool stats, which will tell us class' zs_can_compact() > number, so it will be easier to analyze zsmalloc fragmentation. Just nitpick: Strictly speaking, zs_can_compact number is number of "ideal freeable pa

Re: [PATCH] asm-generic: remove old nonatomic-io wrapper files

2016-02-28 Thread Vinod Koul
On Fri, Feb 26, 2016 at 03:29:05PM +0100, Arnd Bergmann wrote: > The two header files got moved to include/linux, and most > users were already converted, this changes the remaining drivers > and removes the files. > > Signed-off-by: Arnd Bergmann > --- > drivers/dma/idma64.h

Re: [PATCH v3 22/22] sound/usb: Use Media Controller API to share media resources

2016-02-28 Thread Shuah Khan
On 02/27/2016 12:48 AM, Takashi Iwai wrote: > On Sat, 27 Feb 2016 03:55:39 +0100, > Shuah Khan wrote: >> >> On 02/26/2016 01:50 PM, Takashi Iwai wrote: >>> On Fri, 26 Feb 2016 21:08:43 +0100, >>> Shuah Khan wrote: On 02/26/2016 12:55 PM, Takashi Iwai wrote: > On Fri, 12 Feb 2016 00:41

[PATCH v4 22/22] sound/usb: Use Media Controller API to share media resources

2016-02-28 Thread Shuah Khan
Change ALSA driver to use Media Controller API to share media resources with DVB and V4L2 drivers on a AU0828 media device. Media Controller specific initialization is done after sound card is registered. ALSA creates Media interface and entity function graph nodes for Control, Mixer, PCM Playback,

[PATCH] phy: Fix armada375 compile test build on UM

2016-02-28 Thread Krzysztof Kozlowski
The phy-armada375-usb2 driver uses IOMEM functions so COMPILE_TEST && OF build failed with: drivers/built-in.o: In function `armada375_usb_phy_probe': phy-armada375-usb2.c:(.text+0x121d): undefined reference to `devm_ioremap_resource' Signed-off-by: Krzysztof Kozlowski --- drivers/phy/Kconfig

[GIT PULL] extcon next for 4.6

2016-02-28 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v4.6. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit 92e963f50fc74041b5e9e744c330dca48e04f08d: Linux 4.5-rc1 (2016-01-24 13:06:47

Re: [PATCH v6 00/12] Add T210 support in Tegra soctherm

2016-02-28 Thread Wei Ni
Hi, Does anyone have comments on this series? Thanks. Wei. On 2016年02月22日 16:05, Wei Ni wrote: > This patchset adds following functions for tegra_soctherm driver: > 1. add T210 support. > 2. export debugfs to show some registers. > 3. add thermtrip funciton. > 4. add suspend/resume function. > >

Re: [PATCH 01/10] fs crypto: add basic definitions for per-file encryption

2016-02-28 Thread Randy Dunlap
On 02/25/16 11:25, Jaegeuk Kim wrote: > This patch adds definitions for per-file encryption used by ext4 and f2fs. > > Signed-off-by: Jaegeuk Kim > --- > include/linux/fs.h | 8 ++ > include/linux/fscrypto.h | 239 > +++ > include/uapi/linux/f

Re: [PATCH 06/10] fs crypto: add Makefile and Kconfig

2016-02-28 Thread Randy Dunlap
On 02/25/16 11:26, Jaegeuk Kim wrote: > This patch adds a facility to enable per-file encryption. > > Arnd fixes a missing CONFIG_BLOCK check in the original patch. > "The newly added generic crypto abstraction for file systems operates > on 'struct bio' objects, which do not exist when CONFIG_BLO

[PATCH 01/10] selftests/x86: In syscall_nt, test NT|TF as well

2016-02-28 Thread Andy Lutomirski
Setting TF prevents fastpath returns in most cases, which causes the test to fail on 32-bit kernels because 32-bit kernels do not, in fact, handle NT correctly on SYSENTER entries. The next patch will fix 32-bit kernels. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/syscall_nt.

[PATCH 00/10] x86: Various SYSENTER/SYSEXIT/#DB fixes and cleanups

2016-02-28 Thread Andy Lutomirski
hpa asked me to get rid of the ASM_CLAC at the beginning of the SYSENTER path. Little did he know... This series makes the observed behavior of SYSENTER wrt flags the same for all sane flags and kernel bitnesses. That is, SYSENTER preserves flags now unless you do a syscall that explicitly chang

[PATCH 02/10] x86/entry/compat: In SYSENTER, sink AC clearing below the existing FLAGS test

2016-02-28 Thread Andy Lutomirski
CLAC is slow, and the SYSENTER code already has an unlikely path that runs if unusual flags are set. Drop the CLAC and instead rely on the unlikely path to clear AC. This seems to save ~24 cycles on my Skylake laptop. (Hey, Intel, make this faster please!) Signed-off-by: Andy Lutomirski --- a

[PATCH 06/10] x86/traps: Clear DR6 early in do_debug and improve the comment

2016-02-28 Thread Andy Lutomirski
Leaving any bits set in DR6 on return from a debug exception is asking for trouble. Prevent it by writing zero right away and clarify the comment. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/traps.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH 07/10] x86/entry: Vastly simplify SYSENTER TF handling

2016-02-28 Thread Andy Lutomirski
Due to a blatant design error, SYSENTER doesn't clear TF. As a result, if a user does SYSENTER with TF set, we will single-step through the kernel until something clears TF. There is absolutely nothing we can do to prevent this short of turning off SYSENTER [1]. Simplify the handling considerabl

[PATCH 08/10] x86/entry: Only allocate space for SYSENTER_stack if needed

2016-02-28 Thread Andy Lutomirski
The SYSENTER stack is only used on 32-bit kernels. Remove it in 64-bit kernels. (We may end up using it down the road on 64-bit kernels. If so, we'll re-enable it for CONFIG_IA32_EMULATION.) Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/processor.h | 2 ++ 1 file changed, 2 inserti

[PATCH 10/10] x86/entry/32: Add and check a stack canary for the SYSENTER stack

2016-02-28 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/processor.h | 3 ++- arch/x86/kernel/process.c| 3 +++ arch/x86/kernel/traps.c | 8 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h

[PATCH 09/10] x86/entry/32: Simplify and fix up the SYSENTER stack #DB/NMI fixup

2016-02-28 Thread Andy Lutomirski
Right after SYSENTER, we can get a #DB or NMI. On x86_32, there's no IST, so the exception handler is invoked on the temporary SYSENTER stack. Because the SYSENTER stack is very small, we have a fixup to switch off the stack quickly when this happens. The old fixup had several issues: 1. It che

[PATCH 05/10] x86/traps: Clear TIF_BLOCKSTEP on all debug exceptions

2016-02-28 Thread Andy Lutomirski
The SDM says that debug exceptions clear BTF, and we need to keep TIF_BLOCKSTEP in sync with BTF. Clear it unconditionally and improve the comment. I suspect that the fact that kmemcheck could cause TIF_BLOCKSTEP not to be cleared was just an oversight. Signed-off-by: Andy Lutomirski --- arch/

[PATCH 04/10] x86/entry/32: Restore FLAGS on SYSEXIT

2016-02-28 Thread Andy Lutomirski
We weren't restoring FLAGS at all on SYSEXIT. Apparently no one cared. With this patch applied, native kernels should always honor task_pt_regs()->flags, which opens the door for some sys_iopl cleanups. I'll do those as a separate series, though, since getting it right will involve tweaking some

[PATCH 03/10] x86/entry/32: Filter NT and speed up AC filtering in SYSENTER

2016-02-28 Thread Andy Lutomirski
This makes the 32-bit code work just like the 64-bit code. It should speed up syscalls on 32-bit kernels on Skylake by something like 20 cycles (by analogy to the 64-bit compat case). It also cleans up NT just like we do for the 64-bit case. Signed-off-by: Andy Lutomirski --- arch/x86/entry/en

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2016-02-28 Thread Andy Lutomirski
On Wed, Nov 19, 2014 at 11:44 AM, Linus Torvalds wrote: > On Wed, Nov 19, 2014 at 11:29 AM, Andi Kleen wrote: >> >> The exception handlers which use the IST stacks don't necessarily >> set irq count. Maybe they should. > > Hmm. I think they should. Since they clearly must not schedule, as > they

[PATCH v4 3/5] ocfs2: create/remove sysfile for online file check

2016-02-28 Thread Gang He
Create online file check sysfile when ocfs2 mount, remove the related sysfile when ocfs2 umount. Signed-off-by: Gang He Reviewed-by: Mark Fasheh --- fs/ocfs2/super.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 2de4c8a..5ef88b8 100644 --- a/

[PATCH v4 4/5] ocfs2: check/fix inode block for online file check

2016-02-28 Thread Gang He
Implement online check or fix inode block during reading a inode block to memory. Signed-off-by: Gang He --- fs/ocfs2/inode.c | 225 +++-- fs/ocfs2/ocfs2_trace.h | 2 + 2 files changed, 218 insertions(+), 9 deletions(-) diff --git a/fs/ocfs2/i

[PATCH v4 1/5] ocfs2: export ocfs2_kset for online file check

2016-02-28 Thread Gang He
Export ocfs2_kset object from ocfs2_stackglue kernel module, then online file check code will create the related sysfiles under ocfs2_kset object. Signed-off-by: Gang He Reviewed-by: Mark Fasheh --- fs/ocfs2/stackglue.c | 3 ++- fs/ocfs2/stackglue.h | 2 ++ 2 files changed, 4 insertions(+), 1 d

[PATCH v4 5/5] ocfs2: add feature document for online file check

2016-02-28 Thread Gang He
This document will describe OCFS2 online file check feature. OCFS2 is often used in high-availaibility systems. However, OCFS2 usually converts the filesystem to read-only when encounters an error. This may not be necessary, since turning the filesystem read-only would affect other running processe

[PATCH v4 2/5] ocfs2: sysfile interfaces for online file check

2016-02-28 Thread Gang He
Implement online file check sysfile interfaces, e.g. how to create the related sysfile according to device name, how to display/handle file check request from the sysfile. Signed-off-by: Gang He --- fs/ocfs2/Makefile| 3 +- fs/ocfs2/filecheck.c | 606 +++

[PATCH v4 0/5] Add online file check feature

2016-02-28 Thread Gang He
When there are errors in the ocfs2 filesystem, they are usually accompanied by the inode number which caused the error. This inode number would be the input to fixing the file. One of these options could be considered: A file in the sys filesytem which would accept inode numbers. This could be used

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2016-02-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/include/asm/cpufeature.h between commit: 104a0c02e8b1 ("arm64: Add workaround for Cavium erratum 27456") from the arm64 tree and commit: d0be74f771d5 ("arm64: Add ARM64_HAS_VIRT_HOST_EXTN feature") from

Re: [PATCH V3 3/3] vhost_net: basic polling support

2016-02-28 Thread Jason Wang
On 02/29/2016 05:56 AM, Christian Borntraeger wrote: > On 02/26/2016 09:42 AM, Jason Wang wrote: >> > This patch tries to poll for new added tx buffer or socket receive >> > queue for a while at the end of tx/rx processing. The maximum time >> > spent on polling were specified through a new kind

Re: [PATCH V3 3/3] vhost_net: basic polling support

2016-02-28 Thread Jason Wang
On 02/28/2016 10:09 PM, Michael S. Tsirkin wrote: > On Fri, Feb 26, 2016 at 04:42:44PM +0800, Jason Wang wrote: >> > This patch tries to poll for new added tx buffer or socket receive >> > queue for a while at the end of tx/rx processing. The maximum time >> > spent on polling were specified thro

[lkp] [n_tty] dd9a6fee68: INFO: possible circular locking dependency detected ]

2016-02-28 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/0day-ci/linux Brian-Bloniarz/Re-n_tty-Check-the-other-end-of-pty-pair-before-returning-EAGAIN-on-a-read/20160229-070452 commit dd9a6fee6830f16f602b1aa2e85d6307acd04945 ("n_tty: Check the other end of pty pair before returning EAGAIN on a re

Western Union Pick up

2016-02-28 Thread WESTERN UNION
Dear Recipient, You have £850,000 British Pounds Sterling waiting for pick-up at Western Union. Contact: wuglobaloff...@qq.com with your personal information for pick up. Sincerely, Hillary Wilson Heritage Lottery Fund Tel: +44 7024040428

Re: Softirq priority inversion from "softirq: reduce latencies"

2016-02-28 Thread Mike Galbraith
On Sun, 2016-02-28 at 18:01 +0100, Francois Romieu wrote: > Mike Galbraith : > [...] > > Hrm, relatively new + tasklet woes rings a bell. Ah, that.. > > > > > > What's worse is that at the point where this code was written it was > > already well known that tasklets are a steaming pile of crap

[PATCH v8] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-02-28 Thread William Breathitt Gray
The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range supported by the watchdog timer is 1 second to 255 minutes. Timeouts under 256 seconds have a 1 second granularity, while the rest have a 1 minute granularity. This driver adds watchdog timer support for this onboard watchdog

Re: [PATCH] hwmon: (ntc_thermistor) Add support for ncpXXxh103

2016-02-28 Thread Guenter Roeck
On 02/28/2016 02:31 PM, Joseph wrote: From: Joseph McNally This patch adds support for the Murata NCP15XH103 thermistor series. Signed-off-by: Joseph McNally Applied. Thanks, Guenter

[PATCH] mm: __delete_from_page_cache WARN_ON(page_mapped)

2016-02-28 Thread Hugh Dickins
Commit e1534ae95004 ("mm: differentiate page_mapped() from page_mapcount() for compound pages") changed the famous BUG_ON(page_mapped(page)) in __delete_from_page_cache() to VM_BUG_ON_PAGE(page_mapped(page)): which gives us more info when CONFIG_DEBUG_VM=y, but nothing at all when not. Although it

Re: [v7, RESEND] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-02-28 Thread Guenter Roeck
Hi William, On Sun, Feb 28, 2016 at 11:29:10PM -0500, William Breathitt Gray wrote: > The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range > supported by the watchdog timer is 1 second to 255 minutes. Timeouts > under 256 seconds have a 1 second granularity, while the rest have

linux-next: manual merge of the tip tree with the pm tree

2016-02-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: drivers/cpufreq/intel_pstate.c between commit: 7791e4aa59ad ("cpufreq: intel_pstate: Enable HWP by default") from the pm tree and commit: bc696ca05f5a ("x86/cpufeature: Replace the old static_cpu_has() with safe varian

Re: [PATCH v7] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-02-28 Thread Guenter Roeck
Hi, On 02/28/2016 08:20 PM, William Breathitt Gray wrote: The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range supported by the watchdog timer is 1 second to 255 minutes. Timeouts under 256 seconds have a 1 second granularity, while the rest have a 1 minute granularity. This

Re: [PATCH] 3c59x: Ensure to apply the expires time

2016-02-28 Thread David Miller
From: Stafford Horne Date: Sun, 28 Feb 2016 16:49:29 +0900 > In commit 5b6490def9168af6a ("3c59x: Use setup_timer()") Amitoj > removed add_timer which sets up the epires timer. In this patch > the behavior is restore but it uses mod_timer which is a bit more > compact. > > Signed-off-by: Staffo

[PATCH v7 RESEND] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-02-28 Thread William Breathitt Gray
The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range supported by the watchdog timer is 1 second to 255 minutes. Timeouts under 256 seconds have a 1 second granularity, while the rest have a 1 minute granularity. This driver adds watchdog timer support for this onboard watchdog

[PATCH v19 03/10] x86/xen: Mark xen_cpuid() stack frame as non-standard

2016-02-28 Thread Josh Poimboeuf
objtool reports the following false positive warning: arch/x86/xen/enlighten.o: warning: objtool: xen_cpuid()+0x41: can't find jump dest instruction at .text+0x108 The warning is due to xen_cpuid()'s use of XEN_EMULATE_PREFIX to insert some fake instructions which objtool doesn't know how to d

Re: [PATCH v7] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-02-28 Thread William Breathitt Gray
On 02/28/2016 11:20 PM, William Breathitt Gray wrote: > The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range > supported by the watchdog timer is 1 second to 255 minutes. Timeouts > under 256 seconds have a 1 second granularity, while the rest have a 1 > minute granularity. > >

[PATCH v19 01/10] objtool: Mark non-standard files and directories

2016-02-28 Thread Josh Poimboeuf
Code which runs outside the kernel's normal mode of operation often does unusual things which can cause a static analysis tool like objtool to emit false positive warnings: - boot image - vdso image - relocation - realmode - efi - head - purgatory - modpost Set OBJECT_FILES_NON_STANDARD for their

[PATCH v19 05/10] sched: Mark __schedule() stack frame as non-standard

2016-02-28 Thread Josh Poimboeuf
objtool reports the following warnings for __schedule(): kernel/sched/core.o: warning: objtool:__schedule()+0x3c0: duplicate frame pointer save kernel/sched/core.o: warning: objtool:__schedule()+0x3fd: sibling call from callable instruction with changed frame pointer kernel/sched/core.o: w

[PATCH v19 09/10] objtool: Add CONFIG_STACK_VALIDATION option

2016-02-28 Thread Josh Poimboeuf
Add a CONFIG_STACK_VALIDATION option which will run "objtool check" for each .o file to ensure the validity of its stack metadata. Signed-off-by: Josh Poimboeuf --- Makefile | 5 - arch/Kconfig | 6 ++ lib/Kconfig.debug | 12 scripts/Makefile.b

[PATCH v19 07/10] x86/kprobes: Mark kretprobe_trampoline() stack frame as non-standard

2016-02-28 Thread Josh Poimboeuf
objtool reports the following warning for kretprobe_trampoline(): arch/x86/kernel/kprobes/core.o: warning: objtool: kretprobe_trampoline()+0x20: call without frame pointer save/setup kretprobes are a special case where the stack is intentionally wrong. The return address isn't known at the beg

[PATCH v19 00/10] Compile-time stack metadata validation

2016-02-28 Thread Josh Poimboeuf
This is v19 of the compile-time stack metadata validation patch set. It's based on tip:core/objtool. v18 can be found here: https://lkml.kernel.org/r/cover.1456440439.git.jpoim...@redhat.com For more information about the motivation behind this patch set, and more details about what it does,

[PATCH v19 04/10] bpf: Mark __bpf_prog_run() stack frame as non-standard

2016-02-28 Thread Josh Poimboeuf
objtool reports the following false positive warnings: kernel/bpf/core.o: warning: objtool: __bpf_prog_run()+0x5c: sibling call from callable instruction with changed frame pointer kernel/bpf/core.o: warning: objtool: __bpf_prog_run()+0x60: function has unreachable instruction kernel/bpf/c

[PATCH v19 10/10] objtool: Enable stack metadata validation on x86_64

2016-02-28 Thread Josh Poimboeuf
Set HAVE_STACK_VALIDATION to enable stack metadata validation for x86_64. Signed-off-by: Josh Poimboeuf --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c46662f..adc5a6d 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -155

[PATCH v19 06/10] sched: always inline context_switch()

2016-02-28 Thread Josh Poimboeuf
When CONFIG_GCOV is enabled, gcc decides to put context_switch() out-of-line, which is inconsistent with its normal behavior. It also causes an objtool warning because __schedule() no longer inlines context_switch(), so the "STACK_FRAME_NON_STANDARD(__schedule)" statement loses its effect. Signed

[PATCH v19 02/10] objtool: Add STACK_FRAME_NON_STANDARD macro

2016-02-28 Thread Josh Poimboeuf
Add a new macro, STACK_FRAME_NON_STANDARD, which is used to denote a function which does something unusual related to its stack frame. Use of the macro prevents objtool from emitting a false positive warning. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/vmlinux.lds.S | 5 - include/li

[PATCH v2] perf/x86/amd: Adding support for new IOMMU performance event

2016-02-28 Thread Suravee Suthikulpanit
This patch adds new IOMMU performance event based on the information in table 74 of the AMD I/O Virtualization Technology (IOMMU) Specification (Document Id: 4882, Rev 2.62, Feb 2015) Link: http://support.amd.com/TechDocs/48882_IOMMU.pdf Reviewed-by: Joerg Roedel Acked-by: Joerg Roedel Signed-o

linux-next: manual merge of the iommu tree with the samsung-krzk tree

2016-02-28 Thread Stephen Rothwell
Hi Joerg, Today's linux-next merge of the iommu tree got a conflict in: drivers/memory/Kconfig between commit: 78fbb9361ca3 ("memory: Add support for Exynos SROM driver") from the samsung-krzk tree and commit: cc8bbe1a8312 ("memory: mediatek: Add SMI driver") from the iommu tree. I fi

[PATCH v7] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-02-28 Thread William Breathitt Gray
The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range supported by the watchdog timer is 1 second to 255 minutes. Timeouts under 256 seconds have a 1 second granularity, while the rest have a 1 minute granularity. This driver adds watchdog timer support for this onboard watchdog

Re: [PATCH] s390x: fix condition to choose correct function

2016-02-28 Thread Steve French
merged into cifs-2.6.git Looks like alpha has a similar problem though On Wed, Feb 24, 2016 at 12:45 AM, Yadan Fan wrote: > This issue is involved from commit 02323db17e3a7 ("cifs: fix > cifs_uniqueid_to_ino_t not to ever return 0"), when BITS_PER_LONG > is 64 on s390x, the corresponding cifs_un

linux-next: manual merge of the iommu tree with the arm-soc tree

2016-02-28 Thread Stephen Rothwell
Hi Joerg, Today's linux-next merge of the iommu tree got a conflict in: arch/arm64/boot/dts/mediatek/mt8173.dtsi between commit: 93e9f5ee1e35 ("dts: arm64: Add EFUSE device node") from the arm-soc tree and commit: 5ff6b3a6d391 ("dts: mt8173: Add iommu/smi nodes for mt8173") from the io

Re: [PATCH v2 02/13] clk: sunxi: add ahb1 clock for A83T

2016-02-28 Thread Chen-Yu Tsai
Hi, On Sun, Feb 28, 2016 at 7:18 AM, Vishnu Patekar wrote: > AHB1 on A83T is similar to ahb1 on A31, except parents are different. > clock index 0b1x is PLL6. > > Signed-off-by: Vishnu Patekar > Acked-by: Chen-Yu Tsai > Acked-by: Rob Herring > --- > Documentation/devicetree/bindings/clock/sun

Re: n_tty: Check the other end of pty pair before returning EAGAIN on a read()

2016-02-28 Thread Brian Bloniarz
(Take 3, fix compile error in n_hdlc.c) Hi Peter, I saw Marc Aurele La France's proposed patch to n_tty to fix OpenSSH, and your feedback. Patch below is an attempt to address that feedback. Please let me know if this is the change you envisioned; (see Marc's excellent original writeup for details

linux-next: build failure after merge of the mfd tree

2016-02-28 Thread Stephen Rothwell
Hi Lee, After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/regulator/tps65086-regulator.c:194:9: error: implicit declaration of function 'regmap_write_bits' [-Werror=implicit-function-declaration] ret = regmap_write_bits(config->regmap,

[PATCH v4 3/8] fixdep: accept extra dependencies on stdin

2016-02-28 Thread Nicolas Pitre
... and merge them in the list of parsed dependencies. Signed-off-by: Nicolas Pitre --- scripts/basic/fixdep.c | 60 +- 1 file changed, 45 insertions(+), 15 deletions(-) diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 5b327c67a8

[PATCH v4 2/8] allow for per-symbol configurable EXPORT_SYMBOL()

2016-02-28 Thread Nicolas Pitre
Similar to include/generated/autoconf.h, include/generated/autoksyms.h will contain a list of defines for each EXPORT_SYMBOL() that we want active. The format is: #define __KSYM_ 1 This list will be auto-generated with another patch. For now we only include the preprocessor magic to automatica

[PATCH v4 6/8] create/adjust generated/autoksyms.h

2016-02-28 Thread Nicolas Pitre
Given the list of exported symbols needed by all modules, we can create a header file containing preprocessor defines for each of those symbols. Also, when some symbols are added and/or removed from the list, we can update the time on the corresponding files used as build dependencies for those sym

[PATCH v4 4/8] kbuild: de-duplicate fixdep usage

2016-02-28 Thread Nicolas Pitre
The generation and postprocessing of automatic dependency rules is duplicated in rule_cc_o_c and if_changed_dep. Since this is not a trivial one-liner action, it is now abstracted under cmd_and_fixdep to simplify things and make future changes easier. In the rule_cc_o_c case that means the order o

[PATCH v4 5/8] kbuild: add fine grained build dependencies for exported symbols

2016-02-28 Thread Nicolas Pitre
Like with kconfig options, we now have the ability to compile in and out individual EXPORT_SYMBOL() declarations based on the content of include/generated/autoksyms.h. However we don't want the entire world to be rebuilt whenever that file is touched. Let's apply the same build dependency trick u

[PATCH v4 0/8] [PULL REQUEST] Trim unused exported kernel symbols

2016-02-28 Thread Nicolas Pitre
This patch series provides the option to omit exported symbols from the kernel and modules that are never referenced by any of the selected modules in the current kernel configuration. this allows for optimizing the compiled code and reducing final binaries' size. When using LTO the binary size red

[PATCH v4 7/8] kbuild: build sample modules along with the rest of the kernel

2016-02-28 Thread Nicolas Pitre
Make sample modules in parallel with the rest of the kernel rather than having them built from the vmlinux target. This makes the build slightly faster, and those modules are properly considered when adjust_autoksyms.sh is executed. Signed-off-by: Nicolas Pitre --- Makefile | 8 +--- 1 file

[PATCH v4 8/8] kconfig option for TRIM_UNUSED_KSYMS

2016-02-28 Thread Nicolas Pitre
The config option to enable it all. Signed-off-by: Nicolas Pitre Acked-by: Rusty Russell --- init/Kconfig | 16 1 file changed, 16 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 22320804fb..e6f666331b 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1990,6 +1990,

[PATCH v4 1/8] kbuild: record needed exported symbols for modules

2016-02-28 Thread Nicolas Pitre
Kernel modules are partially linked object files with some undefined symbols that are expected to be matched with EXPORT_SYMBOL() entries from elsewhere. Each .tmp_versions/*.mod file currently contains two line of text separated by a newline character. The first line has the actual module file na

Re: multipath: I/O hanging forever

2016-02-28 Thread Andrea Righi
On Sun, Feb 28, 2016 at 06:53:33PM -0700, Andrea Righi wrote: ... > I'm using 4.5.0-rc5+, from Linus' git. I'll try to do a git bisect > later, I'm pretty sure this problem has been introduced recently (i.e., > I've never seen this issue with 4.1.x). I confirm, just tested kernel 4.1 and this pro

RE: [PATCH v2 3/4] mtd:spi-nor:fsl-quadspi:Add fast-read mode support

2016-02-28 Thread Yunhui Cui
Hi Han, But I don't think QuadSPI driver need to check the m25p,fast-read property again since spi-nor layer has already done that. Adding the property in flash node should work in the same way. [Yunhui]: There are three modes in fsl-quadspi driver , fast mode, quad mode, ddr quad read. The la

Re: [PATCH] bus: imx-weim: Take the 'status' property value into account

2016-02-28 Thread Shawn Guo
On Mon, Feb 22, 2016 at 09:01:53AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Currently we have an incorrect behaviour when multiple devices > are present under the weim node. For example: > > &weim { > ... > status = "okay"; > > sram@0,0 { > ...

Re: [PATCH 2/5] oom reaper: handle mlocked pages

2016-02-28 Thread Hugh Dickins
On Tue, 23 Feb 2016, Michal Hocko wrote: > On Mon 22-02-16 17:36:07, David Rientjes wrote: > > > > Are we concerned about munlock_vma_pages_all() taking lock_page() and > > perhaps stalling forever, the same way it would stall in exit_mmap() for > > VM_LOCKED vmas, if another thread has locked t

Re: [PATCH] cpufreq: Select IRQ_WORK if CPU_FREQ_GOV_COMMON is set

2016-02-28 Thread Viresh Kumar
On 28-02-16, 02:33, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 8fb47ff100af (cpufreq: governor: Replace timers with utilization > update callbacks) made CPU_FREQ select IRQ_WORK, but that's not > necessary, as it is sufficient for IRQ_WORK to be selected by > CPU_FREQ_GOV_COMMO

Re: [PATCH 09/50] pinctrl: imx: Use devm_pinctrl_register() for pinctrl registration

2016-02-28 Thread Shawn Guo
On Wed, Feb 24, 2016 at 06:45:34PM +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and remove > need of .remove callback. > > Signed-off-by: Laxman Dewangan > Cc: Shawn Guo Acked-by: Shawn Guo

linux-next: manual merge of the drm tree with Linus' tree

2016-02-28 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c between commit: e1d09dc0ccc6 ("drm/amdgpu: Don't hang in amdgpu_flip_work_func on disabled crtc.") from Linus' tree and commit: 6bd9e877ce53 ("drm/amdgpu: Move MMIO flip out

RE: [PATCH 0/4] MSR: MSR: MSR Whitelist and Batch Introduction

2016-02-28 Thread Mcfadden, Marty Jay
> On Sun, Feb 28, 2016, Borislav Petkov wrote: > > Can we have some concrete examples for that please? > Our environment allows users to have exclusive access to some number of compute nodes for a limited time. Bit-level control of MSRs is required when a user might gain root or, more commonl

Re: [PATCH 1/7] extcon: palmas: Drop IRQF_EARLY_RESUME flag

2016-02-28 Thread Chanwoo Choi
Hi Grygorii, On 2016년 02월 27일 00:42, Grygorii Strashko wrote: > Palams extcon IRQs are nested threaded and wired to the Palmas > inerrupt controller. So, this flag is not required for nested irqs > anymore, since commit 3c646f2c6aa9 ("genirq: Don't suspend > nested_thread irqs over system suspend"

[PATCH 2/2] staging: dgap: use tty_alloc_driver instead of kcalloc

2016-02-28 Thread Daeseok Youn
>From 60b1e6e5d9401f10f584928d4feeb8a3b72b46a9 Mon Sep 17 00:00:00 2001 From: Daeseok Youn Date: Mon, 29 Feb 2016 11:04:02 +0900 Subject: [PATCH 2/2] staging: dgap: use tty_alloc_driver instead of kcalloc the tty_alloc_driver() can allocate memory for ttys and termios. And also it can release all

[PATCH 1/2] staging: dgnc: use pointer type of tty_struct

2016-02-28 Thread Daeseok Youn
>From 70f8703b3bd73fa56f4ea91e98967b8925550aa6 Mon Sep 17 00:00:00 2001 From: Daeseok Youn Date: Thu, 25 Feb 2016 14:53:37 +0900 Subject: [PATCH 1/2] staging: dgnc: use pointer type of tty_struct For using tty_alloc_driver, SerialDriver has to be pointer type. It also has checkpatch.pl warning ab

Re: [PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-28 Thread Shannon Zhao
On 2016/2/12 6:22, Rafael J. Wysocki wrote: > On Thursday, February 11, 2016 04:04:14 PM Stefano Stabellini wrote: >> > On Wed, 10 Feb 2016, Rafael J. Wysocki wrote: >>> > > On Tuesday, February 09, 2016 11:19:02 AM Stefano Stabellini wrote: > > > On Mon, 8 Feb 2016, Rafael J. Wysocki wrote:

  1   2   3   4   >