[PATCH 1/4] net: switchdev: change fdb addr for a byte array

2015-08-03 Thread Vivien Didelot
The address in the switchdev_obj_fdb structure is currently represented as a pointer. Replacing it for a 6-byte array allows switchdev to carry addresses directly read from hardware registers, not stored by the switch chip driver (as in Rocker). Signed-off-by: Vivien Didelot ---

[PATCH 3/4] net: dsa: add support for switchdev FDB objects

2015-08-03 Thread Vivien Didelot
Remove the fdb_{add,del,getnext} function pointer in favor of new port_fdb_{add,del,getnext}. Implement the switchdev_port_obj_{add,del,dump} functions in DSA to support the SWITCHDEV_OBJ_PORT_FDB objects. These functions are called from switchdev_port_bridge_{get,set,del}link. Signed-off-by:

[PATCH 2/4] net: switchdev: support static FDB addresses

2015-08-03 Thread Vivien Didelot
This patch adds a is_static boolean to the switchdev_obj_fdb structure, in order to set the ndm_state to either NUD_NOARP or NUD_REACHABLE. Signed-off-by: Vivien Didelot --- include/net/switchdev.h | 1 + net/switchdev/switchdev.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff

net: dsa: support switchdev FDB objects

2015-08-03 Thread Vivien Didelot
This patchset refactors the DSA and mv88e6xxx code to use the switchdev FDB objects. The first two patches add minor but necessary changes to switchdev, the third one implements the switchdev glue in DSA for FDB routines, and the forth one refactors the FDB access functions in the mv88e6xxx code.

Re: [RFC] perf: Clear MSRs on kexec

2015-08-03 Thread Jiri Olsa
On Mon, Aug 03, 2015 at 11:54:17PM +0200, Peter Zijlstra wrote: > On Mon, Aug 03, 2015 at 11:32:28PM +0200, Jiri Olsa wrote: > > hi, > > I'm getting following message on the kdump kernel start > > > > Broken BIOS detected, complain to your hardware vendor.\ > > [Firmware Bug]: the BIOS has

[PATCH v2 3/3] cpuidle/coupled: Add sanity check for safe_state_index

2015-08-03 Thread Xunlei Pang
From: Xunlei Pang Since we're using cpuidle_driver::safe_state_index directly as the target state index, it's better to add the sanity check at the point of registering the driver. Signed-off-by: Xunlei Pang --- drivers/cpuidle/driver.c | 13 + 1 file changed, 13 insertions(+)

[PATCH v2 1/3] cpuidle/coupled: Remove cpuidle_device::safe_state_index

2015-08-03 Thread Xunlei Pang
From: Xunlei Pang cpuidle_device::safe_state_index need to be initialized before use, it should be the same as cpuidle_driver::safe_state_index. We tackled this issue by removing the safe_state_index from the cpuidle_device structure and use the one in the cpuidle_driver structure instead.

[PATCH v2 2/3] cpuidle/coupled: Remove redundant 'dev' argument of cpuidle_state_is_coupled()

2015-08-03 Thread Xunlei Pang
From: Xunlei Pang For cpuidle_state_is_coupled(), 'dev' is not used, so remove it. Signed-off-by: Xunlei Pang --- drivers/cpuidle/coupled.c | 4 +--- drivers/cpuidle/cpuidle.c | 4 ++-- drivers/cpuidle/cpuidle.h | 7 +++ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git

Re: [RFC 0/2] VFIO: Add virtual MSI doorbell support.

2015-08-03 Thread Pranavkumar Sawargaonkar
Hi Bharat, On 28 July 2015 at 23:28, Alex Williamson wrote: > On Tue, 2015-07-28 at 17:23 +, Bhushan Bharat wrote: >> Hi Alex, >> >> > -Original Message- >> > From: Alex Williamson [mailto:alex.william...@redhat.com] >> > Sent: Tuesday, July 28, 2015 9:52 PM >> > To: Pranavkumar

Re: [RFC][PATCH] ecryptfs: Allow only one instance per lower path

2015-08-03 Thread Richard Weinberger
Tyler, Am 04.08.2015 um 01:07 schrieb Tyler Hicks: >> Okay, then I'd argument to give my patch a try although it is not the >> solution >> to the problem I've reported. :-) >> If you don't mind I'll resend with a proper changelog. > > That patch isn't correct since it assumes that all eCryptfs

Re: [PATCH v3] iio: adc: xilinx-xadc: Push interrupts into threaded context

2015-08-03 Thread Shubhrajyoti Datta
On Fri, Jul 24, 2015 at 6:08 PM, Lars-Peter Clausen wrote: > Hi, > > Sorry, but I don't think this patch has been sufficiently tested against a > mainline kernel. The driver wont even probe the way it is right now. > > On 07/21/2015 01:14 AM, Xander Huff wrote: >> >> The driver currently

linux-next: Tree for Aug 4

2015-08-03 Thread Stephen Rothwell
Hi all, Changes since 20150803: The security tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 5232 5240 files changed, 257463 insertions(+), 119966 deletions(-) I have created

[PATCH v2 net-next 2/2] RDS-TCP: Support multiple RDS-TCP listen endpoints, one per netns.

2015-08-03 Thread Sowmini Varadhan
Register pernet subsys init/stop functions that will set up and tear down per-net RDS-TCP listen endpoints. Unregister pernet subusys functions on 'modprobe -r' to clean up these end points. Enable keepalive on both accept and connect socket endpoints. The keepalive timer expiration will ensure

[PATCH v2 net-next 1/2] RDS-TCP: Make RDS-TCP work correctly when it is set up in a netns other than init_net

2015-08-03 Thread Sowmini Varadhan
Open the sockets calling sock_create_kern() with the correct struct net pointer, and use that struct net pointer when verifying the address passed to rds_bind(). Signed-off-by: Sowmini Varadhan --- v2: David Ahern comments. net/rds/bind.c|3 ++- net/rds/connection.c | 16

[PATCH v2 net-next 0/2] RDS-TCP: Network namespace support

2015-08-03 Thread Sowmini Varadhan
This patch series contains the set of changes to correctly set up the infra for PF_RDS sockets that use TCP as the transport in multiple network namespaces. Patch 1 in the series is the minimal set of changes to allow a single instance of RDS-TCP to run in any (i.e init_net or other) net

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Wangnan (F)
Hi Arnaldo, The following changes since commit 922cc21746202956acb41c89a6190bb50805fa31: perf tools: Introduce llvm config options (2015-07-31 12:17:50 -0300) are available in the git repository at: https://github.com/WangNan0/linux.git ebpf for you to fetch changes up to

Re: [PATCH] net: dsa: fix EDSA frame from hwaccel frame

2015-08-03 Thread David Miller
From: Vivien Didelot Date: Sun, 2 Aug 2015 21:46:02 -0400 > If the underlying network device features NETIF_F_HW_VLAN_CTAG_TX, > an EDSA frame is prepended with a 802.1q header once queued. > > To fix this, push the VLAN tag to the payload if present, before > checking the frame protocol. > >

Re: [PATCH] cpuidle/coupled: Init cpuidle_device::safe_state_index

2015-08-03 Thread pang . xunlei
Hi Daniel, Daniel Lezcano wrote 2015-08-04 AM 12:22:54: > Re: [PATCH] cpuidle/coupled: Init cpuidle_device::safe_state_index > > On 07/23/2015 02:31 PM, Xunlei Pang wrote: > > From: Xunlei Pang > > > > cpuidle_device::safe_state_index need to be initialized before use, > > so assign the

[PATCH] smaps: fill missing fields for vma(VM_HUGETLB)

2015-08-03 Thread Naoya Horiguchi
On Tue, Aug 04, 2015 at 02:55:30AM +, Naoya Horiguchi wrote: > On Wed, Jul 29, 2015 at 04:20:59PM -0700, Mike Kravetz wrote: > > On 07/29/2015 12:08 PM, David Rientjes wrote: > > >On Tue, 28 Jul 2015, Jörn Engel wrote: > > > > > >>Well, we definitely need something. Having a 100GB process

Re: [PATCH] net_dbg_ratelimited: turn into no-op when !DEBUG

2015-08-03 Thread David Miller
From: Joe Perches Date: Mon, 03 Aug 2015 21:02:21 -0700 > On Mon, 2015-08-03 at 20:57 -0700, Joe Perches wrote: >> On Tue, 2015-08-04 at 05:26 +0200, Jason A. Donenfeld wrote: >> > This patch replaces calls to net_dbg_ratelimited when !DEBUG with >> > no_printk, keeping with the idiom of all the

Re: 4.2-rc5 rcu stalls.

2015-08-03 Thread Sasha Levin
On 08/03/2015 06:03 PM, Paul E. McKenney wrote: >> > Ugh, that doesn't revert cleanly. Got something handy ? > I do not, but perhaps either Sasha or Frederic do. I've attached a revert courtesy of Peter. Thanks, Sasha include/linux/preempt.h | 12 kernel/sched/core.c | 34

[PATCH 1/2] x86/lguest: clean up lguest_setup_irq.

2015-08-03 Thread Rusty Russell
We make it static and hoist it higher in the file for the next patch. We also give a nice panic if it fails during boot. Signed-off-by: Rusty Russell --- arch/x86/lguest/boot.c | 43 ++- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git

[PATCH 2/2] x86/lguest: Do not setup unused irq vectors

2015-08-03 Thread Rusty Russell
From: Thomas Gleixner No point in assigning the interrupt vectors if there is no interrupt chip installed. Move it to lguest_setup_irq(). (And call it from lguest_enable_irq). Signed-off-by: Thomas Gleixner Signed-off-by: Rusty Russell (fixed typo) Signed-off-by: Rusty Russell ---

Re: [patch 2/7] x86/lguest: Do not setup unused irq vectors

2015-08-03 Thread Rusty Russell
Thomas Gleixner writes: > On Mon, 3 Aug 2015, Rusty Russell wrote: >> Thomas Gleixner writes: >> > + >> > + /* Some systems map "vectors" to interrupts weirdly. Not us! */ >> > + __this_cpu_write(vector_irq[FIRST_EXTERNAL_VECTOR + irq, irq); >> >> Missing ]. > > Doh. > >> [ 17.751889]

Re: [PATCH V9 0/5] map GHES memory region according to EFI memory map

2015-08-03 Thread Borislav Petkov
On Mon, Aug 03, 2015 at 05:23:54PM +0100, Matt Fleming wrote: > Rafael, Boris? The ghes.c change looks fine I guess. The whole patchset makes sense now, with the arch bits extracted. So Acked-by: Borislav Petkov However, we probably should work towards adhering to EFI memory attributes on x86,

Re: [PATCH -v2 6/8] jump_label: Add a new static_key interface

2015-08-03 Thread Borislav Petkov
On Mon, Aug 03, 2015 at 09:07:53PM -0700, Andy Lutomirski wrote: > Except that, with the new interface, static_key_likely is the other > way around, right? If the key is true (i.e. enabled), then it doesn't > branch. > > I think of the key as a boolean thing that happens to work by code >

Re: [PATCH -v2 6/8] jump_label: Add a new static_key interface

2015-08-03 Thread Andy Lutomirski
On Mon, Aug 3, 2015 at 8:37 PM, Borislav Petkov wrote: > On Mon, Aug 03, 2015 at 05:57:57PM -0400, Steven Rostedt wrote: >> That's implementation details, not a general concept that users will >> need to know about. > > Why? > > It is a branch, regardless of which insn is used on which arch - it

Re: [TRIVIAL PATCH] block: Correct misuses of 0x%

2015-08-03 Thread yalin wang
> On Aug 4, 2015, at 10:27, Joe Perches wrote: > > On Tue, 2015-08-04 at 10:19 +0800, yalin wang wrote: >> Ping ? >>> On Aug 3, 2015, at 16:56, yalin wang wrote: >>> >>> On Aug 3, 2015, at 16:03, Joe Perches wrote: On Mon, 2015-08-03 at 15:25 +0800, yalin wang wrote: >>

Re: [PATCH] net_dbg_ratelimited: turn into no-op when !DEBUG

2015-08-03 Thread Joe Perches
On Mon, 2015-08-03 at 20:57 -0700, Joe Perches wrote: > On Tue, 2015-08-04 at 05:26 +0200, Jason A. Donenfeld wrote: > > This patch replaces calls to net_dbg_ratelimited when !DEBUG with > > no_printk, keeping with the idiom of all the other debug print helpers. > > Makes sense, thanks Jason.

Re: [PATCH] net_dbg_ratelimited: turn into no-op when !DEBUG

2015-08-03 Thread Joe Perches
On Tue, 2015-08-04 at 05:26 +0200, Jason A. Donenfeld wrote: > The pr_debug family of functions turns into a no-op when -DDEBUG is not > specified, opting instead to call "no_printk", which gets compiled to a > no-op (but retains gcc's nice warnings about printf-style arguments). > > The problem

Re: [PATCH 1/3] Reverted "selftests: add hugetlbfstest"

2015-08-03 Thread Mike Kravetz
Rebased as suggested by Naoya Horiguch This manually reverts 7e50533d4b84289e4f01de56d6f98e9c64e2229e The hugetlbfstest test depends on hugetlb pages being counted in a task's rss. This functionality is not in the kernel, so the test will always fail. Remove test to avoid confusion.

Re: [PATCH 2/2] x86/ldt: allow to disable modify_ldt at runtime

2015-08-03 Thread Borislav Petkov
On Mon, Aug 03, 2015 at 11:45:24AM -0700, Andy Lutomirski wrote: > P.P.P.S. Who thought that IRET faults unmasking NMIs made any sense > whatsoever when NMIs run on an IST stack? Seriously, people? What happened with asking Intel for a sane IRET-NG? Should be relatively easy - take the current

Re: [PATCH 1/5] x86, gfp: Cache best near node for memory allocation.

2015-08-03 Thread Tang Chen
Hi TJ, Sorry for the late reply. On 07/16/2015 05:48 AM, Tejun Heo wrote: .. so in initialization pharse makes no sense any more. The best near online node for each cpu should be cached somewhere. I'm not really following. Is this because the now offline node can later come online and

[RFC] kcore:change kcore_read to make sure the kernel read is safe

2015-08-03 Thread yalin wang
This change kcore_read() to use __copy_from_user_inatomic() to copy data from kernel address, because kern_addr_valid() just make sure page table is valid during call it, whne it return, the page table may change, for example, like set_fixmap() function will change kernel page table, then maybe

Re: [PATCH -v2 6/8] jump_label: Add a new static_key interface

2015-08-03 Thread Borislav Petkov
On Mon, Aug 03, 2015 at 05:57:57PM -0400, Steven Rostedt wrote: > That's implementation details, not a general concept that users will > need to know about. Why? It is a branch, regardless of which insn is used on which arch - it is either active and you *branch* to that code or *inactive* and

linux-next: manual merge of the target-updates tree with the libata tree

2015-08-03 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in: drivers/ata/libata-scsi.c between commit: fe16d4f202c5 ("Revert "libata-eh: Set 'information' field for autosense"") from the libata tree and commit: f5a8b3a796db ("scsi: Protect against buffer possible

linux-next: manual merge of the target-updates tree with the libata tree

2015-08-03 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got conflicts in: drivers/scsi/scsi_error.c include/scsi/scsi_eh.h between commit: fe16d4f202c5 ("Revert "libata-eh: Set 'information' field for autosense"") from the libata tree and commit: 7708c1656552 ("scsi: Move

Re: [PATCH v3 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-08-03 Thread Dong Aisheng
On Wed, Jul 29, 2015 at 05:03:52PM +0800, Haibo Chen wrote: > The imx7d usdhc is derived from imx6sx, the difference is that > imx7d support HS400. > > So introduce a new compatible string for imx7d and add HS400 > support for imx7d usdhc. > > Signed-off-by: Haibo Chen > --- >

[PATCH] net_dbg_ratelimited: turn into no-op when !DEBUG

2015-08-03 Thread Jason A. Donenfeld
The pr_debug family of functions turns into a no-op when -DDEBUG is not specified, opting instead to call "no_printk", which gets compiled to a no-op (but retains gcc's nice warnings about printf-style arguments). The problem with net_dbg_ratelimited is that it is defined to be a variant of

Re: [PATCH v4 1/7] locking/pvqspinlock: Unconditional PV kick with _Q_SLOW_VAL

2015-08-03 Thread Waiman Long
On 08/01/2015 06:29 PM, Peter Zijlstra wrote: On Fri, Jul 31, 2015 at 10:21:58PM -0400, Waiman Long wrote: The smp_store_release() is not a full barrier. In order to avoid missed wakeup, we may need to add memory barrier around locked and cpu state variables adding to complexity. As the chance

RE: [PATCH] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-03 Thread Duan Andy
From: Sanchayan Maity Sent: Monday, August 03, 2015 11:10 PM > To: ji...@kernel.org; linux-...@vger.kernel.org > Cc: ste...@agner.ch; Duan Fugang-B38611; hof...@osadl.org; > sanjeev_sha...@mentor.com; Estevam Fabio-R49496; knaac...@gmx.de; > l...@metafoo.de; pme...@pmeerw.net;

Re: [PATCH 0/3] vm hugetlb selftest cleanup

2015-08-03 Thread Naoya Horiguchi
On Thu, Jul 30, 2015 at 05:59:50PM -0700, Mike Kravetz wrote: > As a followup to discussions of hugetlbfs fallocate, this provides > cleanup the vm hugetlb selftests. Remove hugetlbfstest as it tests > functionality not present in the kernel. Emphasize that libhugetlbfs > test suite should be

Re: hugetlb pages not accounted for in rss

2015-08-03 Thread Naoya Horiguchi
On Wed, Jul 29, 2015 at 04:20:59PM -0700, Mike Kravetz wrote: > On 07/29/2015 12:08 PM, David Rientjes wrote: > >On Tue, 28 Jul 2015, Jörn Engel wrote: > > > >>Well, we definitely need something. Having a 100GB process show 3GB of > >>rss is not very useful. How would we notice a memory leak if

[PATCH] ARM64: dts: mt6795: enable basic SMP bringup for MT6795

2015-08-03 Thread Scott Shu
This patch adds support SMP on MediaTek MT6795 Cortex-A53 Octa-core SoC. The patch is based on v4.2-rc1 and following patch series: (1) Mars Cheng's "Add mt6795 basic chip support" [1] [1] https://lkml.org/lkml/2015/7/14/63 Signed-off-by: Scott Shu --- arch/arm64/boot/dts/mediatek/mt6795.dtsi

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Tue, Aug 4, 2015 at 4:23 AM, Scott Wood wrote: On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood wrote: > On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: > > +static void rcpm_v1_set_ip_power(bool enable, u32

Re: [TRIVIAL PATCH] block: Correct misuses of 0x%

2015-08-03 Thread Joe Perches
On Tue, 2015-08-04 at 10:19 +0800, yalin wang wrote: > Ping ? > > On Aug 3, 2015, at 16:56, yalin wang wrote: > > > > > >> On Aug 3, 2015, at 16:03, Joe Perches wrote: > >> > >> On Mon, 2015-08-03 at 15:25 +0800, yalin wang wrote: > On Aug 3, 2015, at 04:25, Joe Perches wrote: >

Re: [PATCH] usb: gadget: f_printer: fix the bug of deadlock caused by nested spinlock

2015-08-03 Thread fupan
On 08/03/2015 10:47 PM, Felipe Balbi wrote: Hi, On Mon, Aug 03, 2015 at 07:19:43PM +0800, fupan...@windriver.com wrote: From: fli Function printer_func_disable() has called spinlock on printer_dev->lock, and it'll call function chain of printer_reset_interface() |

Re: [TRIVIAL PATCH] block: Correct misuses of 0x%

2015-08-03 Thread yalin wang
Ping ? > On Aug 3, 2015, at 16:56, yalin wang wrote: > > >> On Aug 3, 2015, at 16:03, Joe Perches wrote: >> >> On Mon, 2015-08-03 at 15:25 +0800, yalin wang wrote: On Aug 3, 2015, at 04:25, Joe Perches wrote: Correct misuse of 0x%d in logging messages. >> [] >>> why

Re: [PATCH 00/15] trivial: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-03 Thread Viresh Kumar
On 03-08-15, 17:38, Steven Rostedt wrote: > On Fri, 31 Jul 2015 13:23:10 +0300 > "Kirill A. Shutemov" wrote: > > We have two cases in code: > > > > drivers/rtc/rtc-gemini.c: if (likely(IS_ERR(rtc->rtc_dev))) > > drivers/staging/lustre/lustre/obdclass/lu_object.c: if > >

[PATCH 1/8] watchdog: watchdog_dev: Use single variable name for struct watchdog_device

2015-08-03 Thread Guenter Roeck
The current code uses 'wdd', wddev', and 'watchdog' as variable names for struct watchdog_device. This is confusing and makes it difficult to enhance the code. Replace it all with 'wdd'. Cc: Timo Kokkonen Cc: Uwe Kleine-König Signed-off-by: Guenter Roeck --- drivers/watchdog/watchdog_dev.c |

[PATCH 3/8] watchdog: Introduce WDOG_RUNNING flag

2015-08-03 Thread Guenter Roeck
The WDOG_RUNNING flag is expected to be set by watchdog drivers if the hardware watchdog is running. If the flag is set, the watchdog subsystem will ping the watchdog even if the watchdog device is closed. The watchdog driver stop function is now optional and may be omitted if the watchdog can

[PATCH 8/8] watchdog: at91sam9: Convert to use infrastructure triggered keepalives

2015-08-03 Thread Guenter Roeck
The watchdog infrastructure now supports handling watchdog keepalive if the watchdog is running while the watchdog device is closed. The infrastructure now also supports generating additional heartbeats if the maximum hardware timeout is smaller than or close to the configured timeout. Convert the

[PATCH 4/8] watchdog: Make set_timeout function optional

2015-08-03 Thread Guenter Roeck
For some watchdogs, the hardware timeout is fixed, and the watchdog driver depends on the watchdog core to handle the actual timeout. In this situation, the watchdog driver might only set the 'timeout' variable but do nothing else. This can as well be handled by the infrastructure, so make the

[PATCH 5/8] watchdog: imx2: Convert to use infrastructure triggered keepalives

2015-08-03 Thread Guenter Roeck
The watchdog infrastructure now supports handling watchdog keepalive if the watchdog is running while the watchdog device is closed. Convert the driver to use this infrastructure. Signed-off-by: Guenter Roeck --- drivers/watchdog/imx2_wdt.c | 72 - 1

[PATCH 7/8] watchdog: gpio_wdt: Convert to use infrastructure triggered keepalives

2015-08-03 Thread Guenter Roeck
The watchdog infrastructure now supports handling watchdog keepalive if the watchdog is running while the watchdog device is closed. The infrastructure now also supports generating additional heartbeats if the maximum hardware timeout is smaller than or close to the configured timeout. Convert the

[PATCH 6/8] watchdog: retu: Convert to use infrastructure triggered keepalives

2015-08-03 Thread Guenter Roeck
The watchdog infrastructure now supports handling watchdog keepalive if the watchdog is running while the watchdog device is closed. Convert the driver to use this infrastructure. Signed-off-by: Guenter Roeck --- drivers/watchdog/retu_wdt.c | 78 - 1

[PATCH 2/8] watchdog: Introduce hardware maximum timeout in watchdog core

2015-08-03 Thread Guenter Roeck
Introduce an optional hardware maximum timeout in the watchdog core. The hardware maximum timeout can be lower than the maximum timeout. Drivers can set the maximum hardare timeout value in the watchdog data structure. If the configured timeout exceeds half the value of the maximum hardware

[PATCH 0/8] watchdog: Add support for keepalives triggered by infrastructure

2015-08-03 Thread Guenter Roeck
The watchdog infrastructure is currently purely passive, meaning it only passes information from user space to drivers and vice versa. Since watchdog hardware tends to have its own quirks, this can result in quite complex watchdog drivers. A number of scanarios are especially common. - A

[PATCH 2/2] staging/lustre: Properly reference kthread_run instead of cfs_daemonize

2015-08-03 Thread green
From: Oleg Drokin cfs_daemonize is long gone and replaced by a proper call to kthread_run, so update the comment to reflect that fact. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/2] staging/lustre/ptlrpc: Remove stray cfs_daemonize comment

2015-08-03 Thread green
From: Oleg Drokin Ever since daemonize was removed in 3.18, there are no longer any flags passed to kthread_run. Most of the comments were deleted, but this one lingered on until now. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ptlrpc/pinger.c | 2 -- 1 file changed, 2

[PATCH 0/2] Lustre: remove cfs_daemonize from comments

2015-08-03 Thread green
From: Oleg Drokin cfs_daemonize was removed long ago, but I just stumbled upon a couple of instances where it was still referenced in the comments, so here are the patches to clean it up and not cause any unnecessary confusion. Oleg Drokin (2): staging/lustre/ptlrpc: Remove stray daemonize

Re: [PATCH v2 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-03 Thread hl
Hi Stephen, On 04/08/15 09:14, Stephen Boyd wrote: On 08/03/2015 06:03 PM, Lin Huang wrote: From: huang lin pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko

[PATCH V3 request from stable 3.10 to 3.14] efi: fix 32bit kernel boot failed problem using efi

2015-08-03 Thread fupan.li
From: Fupan Li Commit 35d5134b7d5a ("x86/efi: Correct EFI boot stub use of code32_start") imported a bug, which will cause 32bit kernel boot failed using efi method. It should use the label's address instead of the value stored in the label to caculate the address of code32_start.

Re: [PATCH] serial: don't announce CIR serial ports

2015-08-03 Thread Peter Hurley
Hi Maciej, On 08/02/2015 05:09 PM, Maciej S. Szmigiero wrote: > CIR type serial ports aren't real serial ports. > This is just a way to prevent legacy serial driver > from probing and eventually binding some resources > so don't announce them like normal serial ports. I'd like to keep some form

Re: [PATCH v3 01/11] user_ns: 3 new LSM hooks for user namespace operations

2015-08-03 Thread Kees Cook
On Mon, Aug 3, 2015 at 4:34 AM, Lukasz Pawelczyk wrote: > On pią, 2015-07-31 at 22:48 -0500, Serge E. Hallyn wrote: >> On Fri, Jul 31, 2015 at 11:28:56AM +0200, Lukasz Pawelczyk wrote: >> > On czw, 2015-07-30 at 16:30 -0500, Serge E. Hallyn wrote: >> > > On Fri, Jul 24, 2015 at 12:04:35PM +0200,

Re: [PATCH 2/2] x86/ldt: allow to disable modify_ldt at runtime

2015-08-03 Thread Kees Cook
On Mon, Aug 3, 2015 at 4:19 PM, Willy Tarreau wrote: > On Mon, Aug 03, 2015 at 03:35:15PM -0700, Kees Cook wrote: >> Yay for perm disable! Thank you! :) > > Andy would like to see this evolve towards something possibly > more complete and/or generic. I think this needs more thoughts > and that we

Re: [PATCH v2 2/7] cpufreq: opp: fix handling of turbo modes

2015-08-03 Thread Krzysztof Kozlowski
On 30.07.2015 23:37, Kukjin Kim wrote: > On 07/27/15 20:47, Bartlomiej Zolnierkiewicz wrote: >> On Monday, July 27, 2015 05:06:41 PM Viresh Kumar wrote: >>> On 27-07-15, 13:14, Bartlomiej Zolnierkiewicz wrote: Sorry but you don't seem to understand the issue. >>> >>> :) >>> >>> No, I did. I

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

2015-08-03 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the security tree got a conflict in: security/yama/yama_lsm.c between commit: 5413fcdbe9e7 ("Adding YAMA hooks also when YAMA is not stacked.") from Linus' tree and commit: 730daa164e7c ("Yama: remove needless CONFIG_SECURITY_YAMA_STACKED") from

Re: [PATCH v2 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-03 Thread Stephen Boyd
On 08/03/2015 06:03 PM, Lin Huang wrote: From: huang lin pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko Stuebner Signed-off-by: Lin Huang From: says

Re: [PATCH] mm: add the block to the tail of the list in expand()

2015-08-03 Thread Xishi Qiu
On 2015/8/3 12:10, Dave Hansen wrote: > On 08/02/2015 07:05 PM, Xishi Qiu wrote: Also, this might not do very much good in practice. If you are splitting a high-order page, you are doing the split because the lower-order lists are empty. So won't that list_add() be to an empty >>

Re: cgroup/loop Bad page state oops in Linux v4.2-rc3-136-g45b4b782e848

2015-08-03 Thread Josh Boyer
On Mon, Aug 3, 2015 at 12:56 PM, Josh Boyer wrote: > On Mon, Aug 3, 2015 at 10:28 AM, Mike Snitzer wrote: >> On Sun, Aug 02 2015 at 10:01P -0400, >> Josh Boyer wrote: >> >>> On Fri, Jul 31, 2015 at 2:58 PM, Josh Boyer >>> wrote: >>> > On Thu, Jul 30, 2015 at 8:19 PM, Mike Snitzer wrote: >>>

Re: [PATCH] x86: Clean up files of Intel Processor Trace

2015-08-03 Thread Takao Indoh
On 2015/08/03 20:03, Borislav Petkov wrote: > On Mon, Aug 03, 2015 at 11:08:07AM +0200, Peter Zijlstra wrote: >> For those of us suffering OCDs and all, its a good change though. The >> alfabet song does go: A, B, C, D etc.. after all. Not: A, C, D, B ... > > ... except that x86 encoding orders

[PATCH v2 2/2] pinctrl: rockchip: only enable gpio clock when it setting

2015-08-03 Thread Lin Huang
From: huang lin gpio can keep state even the clock disable, for save power consumption, only enable gpio clock when it setting Signed-off-by: Heiko Stuebner Signed-off-by: Lin Huang --- Changes in v2: Advices by Douglas Anderson -use readl_relaxed() instead readl() -fix commit message format

[PATCH v2 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-03 Thread Lin Huang
From: huang lin pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko Stuebner Signed-off-by: Lin Huang --- Changes in v2: Advices by Douglas Anderson -fix commit

Re: [PATCH] x86: Clean up files of Intel Processor Trace

2015-08-03 Thread Takao Indoh
On 2015/08/03 18:44, Alexander Shishkin wrote: > On 3 August 2015 at 12:08, Peter Zijlstra wrote: >> On Mon, Aug 03, 2015 at 12:03:13PM +0300, Alexander Shishkin wrote: >>> Takao Indoh writes: >> >>> Even though TOPA_SHIFT happens to be the same as PAGE_SHIFT, it is a >>> property of a separate

perf, tools: Refactor and support interval and CSV metrics v2

2015-08-03 Thread Andi Kleen
[v2: Addressed (near) all review feedback. No manpage updates so far. Add support for --per-core metrics. Various cleanups.] Currently perf stat does not support printing computed metrics for interval (-I xxx) or CSV (-x,) mode. For example IPC or TSX metrics over time are quite useful to

[PATCH 7/8] perf, tools, stat: Implement CSV metrics output

2015-08-03 Thread Andi Kleen
From: Andi Kleen Now support CSV output for metrics. With the new output callbacks this is relatively straight forward by creating new callbacks. The new line callback needs to know the number of fields to skip them correctly v2: Split out function argument changes Signed-off-by: Andi Kleen

[PATCH 4/8] perf, tools, stat: Abstract stat metrics printing

2015-08-03 Thread Andi Kleen
From: Andi Kleen Abstract the printing of shadow metrics. Instead of every metric calling fprintf directly and taking care of indentation, use two call backs: one to print metrics and another to start a new line. This will allow adding metrics to CSV mode and also using them for other purposes.

[PATCH 6/8] perf, tools, stat: Move noise/running printing into printout

2015-08-03 Thread Andi Kleen
From: Andi Kleen Move the running/noise printing into printout to avoid duplicated code in the callers. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/tools/perf/builtin-stat.c

[PATCH 1/8] perf, tools: Remove trail argument to color vsprintf

2015-08-03 Thread Andi Kleen
From: Jiri Olsa Seems like it's always '\n' through color_fprintf_ln, which is not used at all, removing.. ;-) Signed-off-by: Andi Kleen --- tools/perf/util/color.c | 16 ++-- tools/perf/util/color.h | 1 - 2 files changed, 2 insertions(+), 15 deletions(-) diff --git

[PATCH 8/8] perf, tools: Support metrics in --per-core/socket mode

2015-08-03 Thread Andi Kleen
From: Andi Kleen Enable metrics printing in --per-core / --per-socket mode. We need to save the shadow metrics in a unique place. Always use the first CPU in the aggregation. Then use the same CPU to retrieve the shadow value later. Example output: % perf stat --per-core -a ./BC1s

Re: [PATCH] powerpc/hvsi: Fix endianness issues in the HVSI driver

2015-08-03 Thread Michael Ellerman
On Fri, 2015-07-31 at 11:29 +0200, Laurent Dufour wrote: > This patch fixes several endianness issues detected when running the HVSI > driver in little endian mode. > > These issues are raised in little endian mode because the data exchanged in > memory between the kernel and the hypervisor has

[PATCH 3/8] perf, tools, stat: Move sw clock metrics printout to stat-shadow

2015-08-03 Thread Andi Kleen
From: Andi Kleen The sw clock metrics printing was missed in the earlier move to stat-shadow of all the other metric printouts. Move it too. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 9 - tools/perf/util/stat-shadow.c | 4 2 files changed, 4 insertions(+), 9

[PATCH 5/8] perf, tools, stat: Add support for metrics in interval mode

2015-08-03 Thread Andi Kleen
From: Andi Kleen Now that we can modify the metrics printout functions easily, it's straight forward to support metric printing for interval mode. All that is needed is to print the time stamp on every new line. Pass the prefix into the context and print it out. Signed-off-by: Andi Kleen ---

[PATCH 2/8] perf, tools: Do not include escape sequences in color_vfprintf return

2015-08-03 Thread Andi Kleen
From: Andi Kleen color_vprintf was including the length of the invisible escape sequences in its return argument. Don't include them to make the return value usable for indentation calculations. v2: Add comment, rebase Signed-off-by: Andi Kleen --- tools/perf/util/color.c | 5 +++-- 1 file

Re: [REGRESSION] Re: i915 driver crashes on T540p if docking station attached

2015-08-03 Thread Rafael J. Wysocki
On Tuesday, August 04, 2015 12:05:14 AM Daniel Vetter wrote: > On Mon, Aug 3, 2015 at 7:24 PM, Linus Torvalds > wrote: > >> However, I'm > >> still seeing a large number of drm/i915 related warning messages and > >> other kernel kvetching. > > > > I suspect I can live with

RE: [PATCH 1/2] KVM: x86: set TMR when the interrupt is accepted

2015-08-03 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2015-08-03: > > > On 03/08/2015 12:23, Zhang, Yang Z wrote: >>> In any case, the TMR behavior introduced by the APICv patches is >>> completely different from the hardware behavior, so it has to be fixed. >> >> But any real problem with it? > > It is a problem for split

Re: [PATCH v3 3/5] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12

2015-08-03 Thread Krzysztof Kozlowski
On 03.08.2015 22:55, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Monday, August 03, 2015 08:15:13 PM Krzysztof Kozlowski wrote: >> W dniu 03.08.2015 o 19:36, Bartlomiej Zolnierkiewicz pisze: >>> On Monday, August 03, 2015 03:59:26 PM Viresh Kumar wrote: On 03-08-15, 12:17, Bartlomiej

Re: [PATCH v3 5/5] cpufreq: remove no longer needed CPU_FREQ_BOOST_SW config option

2015-08-03 Thread Rafael J. Wysocki
On Saturday, August 01, 2015 04:45:37 PM Viresh Kumar wrote: > On 31-07-15, 20:49, Bartlomiej Zolnierkiewicz wrote: > > Remove no longer needed CPU_FREQ_BOOST_SW config option. > > > > As a result scaling_boost_freqs sysfs attribute is available > > when cpufreq-dt driver is used and boost

Re: [PATCH] clk: pxa: pxa3xx: fix CKEN register access

2015-08-03 Thread Stephen Boyd
On 08/03/2015 12:58 PM, Robert Jarzmik wrote: Clocks 0 to 31 are on CKENA, and not CKENB. The clock register names were inadequately inverted. As a consequence, all clock operations were happening on CKENB, because almost all but 2 clocks are on CKENA. As the clocks were activated by the

Re: [PATCH 2/4] perf, tools, stat: Abstract stat metrics printing

2015-08-03 Thread Andi Kleen
> > because we already need to make the print_metric callback global, > would it be better to make this struct global, having all the > needed callbacks defined within? something like: It's actually not global, but static. I skipped this change. After some other changes there is only a single

Re: [PATCH] serial: don't announce CIR serial ports

2015-08-03 Thread Maciej S. Szmigiero
On 04.08.2015 01:40, Greg Kroah-Hartman wrote: > On Sun, Aug 02, 2015 at 11:09:57PM +0200, Maciej S. Szmigiero wrote: >> CIR type serial ports aren't real serial ports. >> This is just a way to prevent legacy serial driver >> from probing and eventually binding some resources >> so don't announce

Re: [PATCH 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions

2015-08-03 Thread Greg KH
On Sun, Aug 02, 2015 at 09:23:51PM +0530, Chandra S Gorentla wrote: > Added 'void' keyword in the paranthesis of function definitions, when > there are no arguments to the functions. This fixes the checkpatch.pl > error - "Bad function definition 'function()' should probably be > function(void)".

Re: [PATCH] Staging : lustre :Replace comma with a semicolon

2015-08-03 Thread Greg Kroah-Hartman
On Mon, Aug 03, 2015 at 09:22:51PM +0530, Shraddha Barke wrote: > Should I resend the patches? > You have sent a bunch of patches, and I don't know what order to apply them in, or what ones should be applied and which should not. So please resend all of the outstanding patches that I have not

Re: [char-misc-next 3/3 V2] mei: disconnect on connection request timeout

2015-08-03 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2015 at 02:59:34PM +0300, Tomas Winkler wrote: > From: Alexander Usyskin > > For the FW with HBM version >= 2.0 we don't need to reset the whole > device in case of a particular client failing to connect. It is > sufficient to send a disconnect request to bring the device to the

Re: [char-misc-next 0/9 RESEND] mei: support for async event notifications

2015-08-03 Thread Greg Kroah-Hartman
On Mon, Jul 27, 2015 at 06:36:18AM +, Winkler, Tomas wrote: > > > > > On Sun, Jul 26, 2015 at 09:54:14AM +0300, Tomas Winkler wrote: > > > FW has gained new capability where a FW client can asynchronously > > > notify the host that an event has occurred in its process. > > > The notification

[PATCH] arm: perf: Add event descriptions

2015-08-03 Thread Drew Richardson
Add additional information about hardware events to make counters self describing. This makes the hardware PMUs easier to use as perf list contains the possible events instead of users having to refer to documentation like the ARM TRMs. This could also allow tools like oprofile to support PMUs

Re: [PATCH] x86: serialize LVTT and TSC_DEADLINE write

2015-08-03 Thread Shaohua Li
On Sun, Aug 02, 2015 at 09:41:08PM +0200, Thomas Gleixner wrote: > On Sun, 2 Aug 2015, Shaohua Li wrote: > > > On Sat, Aug 01, 2015 at 12:10:41PM +0200, Thomas Gleixner wrote: > > > On Fri, 31 Jul 2015, Shaohua Li wrote: > > > > @@ -336,6 +336,22 @@ static void __setup_APIC_LVTT(unsigned int

Re: epoll and multiple processes - eliminate unneeded process wake-ups

2015-08-03 Thread Eric Wong
Madars Vitolins wrote: > Hi Folks, > > I am developing kind of open systems application, which uses > multiple processes/executables where each of them monitors some set > of resources (in this case POSIX Queues) via epoll interface. For > example when 10 processes on same queue are in state of

Linux 4.1 kernel warning in unregister_blkdev

2015-08-03 Thread Vinson Lee
Hi. I've hit this warning multiple times from running the Linux Test Project ltp_block_dev test case. ltp_block_dev: Test Case 7: unregister_blkdev() with major=0 [ cut here ] WARNING: CPU: 10 PID: 33952 at block/genhd.c:352 unregister_blkdev+0x67/0x9c() Modules linked

  1   2   3   4   5   6   7   8   9   10   >