Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-06-16 Thread Preeti U Murthy
On 06/12/2015 02:16 AM, Rik van Riel wrote: > On 06/11/2015 01:36 PM, Frederic Weisbecker wrote: >> The tick dependency is evaluated on every irq. This is a batch of checks >> which determine whether it is safe to stop the tick or not. These checks >> are often split in many details: posix cpu

Re: [PATCH v5 04/14] crypto: add a new driver for Marvell's CESA

2015-06-16 Thread Herbert Xu
On Tue, Jun 16, 2015 at 11:58:58AM +0200, Boris Brezillon wrote: > > +config CRYPTO_DEV_MARVELL_CESA > + tristate "New Marvell's Cryptographic Engine driver" > + depends on (PLAT_ORION || ARCH_MVEBU || COMPILE_TEST) && HAS_DMA && > HAS_IOMEM > + select CRYPTO_ALGAPI > + select

Re: [PATCH v5 05/14] crypto: marvell/CESA: add TDMA support

2015-06-16 Thread Herbert Xu
On Wed, Jun 17, 2015 at 01:05:27PM +0800, Herbert Xu wrote: > On Tue, Jun 16, 2015 at 11:58:59AM +0200, Boris Brezillon wrote: > > > > + ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents, > > +DMA_TO_DEVICE); > > + if (ret != creq->src_nents) > > + return

Re: [PATCH V1] x86, espfix: postpone the initialization of espfix stack for AP

2015-06-16 Thread Zhu Guihua
Any feedback about this? On 06/04/2015 05:45 PM, Gu Zheng wrote: The following lockdep warning occurrs when running with latest kernel: [3.178000] [ cut here ] [3.183000] WARNING: CPU: 128 PID: 0 at kernel/locking/lockdep.c:2755 lockdep_trace_alloc+0xdd/0xe0() [

Re: [uClinux-dev] m68k compile issue with 4.0.5

2015-06-16 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > > I don't have any compile (or runtime) problems with m5208evb_defconfig > on linux-4.0.5 either. That is close to what most people use with qemu. > What .config are you using? Are you sure the defconfig creates a bootable image? I still need at least two patches.

Re: [PATCH perf/core v3 3/3] [BUGFIX] perf probe: Show usage even if the last event is skipped

2015-06-16 Thread Masami Hiramatsu
On 2015/06/16 23:46, Arnaldo Carvalho de Melo wrote: > Em Tue, Jun 16, 2015 at 08:50:57PM +0900, Masami Hiramatsu escreveu: >> When the last part of converted events are blacklisted or out-of-text, >> those are skipped and perf probe doesn't show usage examples. >> This fixes it to show the

Re: m68k compile issue with 4.0.5

2015-06-16 Thread Waldemar Brodkorb
Hi Geert, Geert Uytterhoeven wrote, > Hi Waldemar, > > On Mon, Jun 15, 2015 at 10:23 PM, Waldemar Brodkorb wrote: > > I am trying to build a M68K (Coldfire no-MMU) kernel for Qemu-system-m68k. > > Any idea what change breaks the compile? > > I tried a few m68knommu defconfigs, but can't

Re: [PATCH v2] TCO watchdog pretimeout handler

2015-06-16 Thread Guenter Roeck
On 06/16/2015 06:45 AM, Francois-Nicolas Muller wrote: Use TCO watchdog first timeout (pretimeout) to dump CPU backtraces and ease debug of watchdog expiration causes. TCO logic generates a SCI interrupt, then its handler dumps all CPU backtraces and calls panic (in order to execute registered

Re: [Resend PATCH v8 0/4] sched: Rewrite runnable load and utilization average tracking

2015-06-16 Thread Boqun Feng
On Wed, Jun 17, 2015 at 11:06:50AM +0800, Boqun Feng wrote: > Hi Yuyang, > > I've run the test as follow on tip/master without and with your > patchset: > > On a 12-core system (Intel(R) Xeon(R) CPU X5690 @ 3.47GHz) > run stress --cpu 12 > run dbench 1 Sorry, I forget to say that `stress --cpu

Re: [PATCH v5 05/14] crypto: marvell/CESA: add TDMA support

2015-06-16 Thread Herbert Xu
On Tue, Jun 16, 2015 at 11:58:59AM +0200, Boris Brezillon wrote: > > + ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents, > + DMA_TO_DEVICE); > + if (ret != creq->src_nents) > + return -ENOMEM; Hmm it doesn't quite work like that. It returns zero

Re: Re: [PATCH 1/1] net: replace if()/BUG with BUG_ON()

2015-06-16 Thread Maninder Singh
Hi David, >> Use BUG_ON(condition) instead of if(condition)/BUG() >> >> Signed-off-by: Maninder Singh >> Reviewed-by: Akhilesh Kumar >Your email client corrupted this patch, making it unusable I resent the patch with git send-mail , it results ok, hopefully it does not corrupt it. Thanks

Re: perf,ftrace: fuzzer triggers warning in trace_events_filter code

2015-06-16 Thread Vince Weaver
On Tue, 16 Jun 2015, Steven Rostedt wrote: > > Does this patch fix your issue? > > I got this patch all ready and set to push to Linus. But I was hoping > to add a Tested-by: from you. I already have you as Reported-by. > > I would like to get this in before 4.1 is released. sorry for the

Re: [PATCH v4] pagemap: switch to the new format and do some cleanup

2015-06-16 Thread Konstantin Khlebnikov
On Wed, Jun 17, 2015 at 12:29 AM, Andrew Morton wrote: > On Mon, 15 Jun 2015 08:56:49 +0300 Konstantin Khlebnikov > wrote: > >> This patch removes page-shift bits (scheduled to remove since 3.11) and >> completes migration to the new bit layout. Also it cleans messy macro. > > hm, I can't find

Re: membarrier selftest issue

2015-06-16 Thread Pranith Kumar
Hi Mathieu, On Mon, Jun 15, 2015 at 11:31 AM, Mathieu Desnoyers wrote: > Hi, > > The updated membarrier tree: > https://github.com/compudj/linux-dev > branch: sys-membarrier-volatile > > has an issue building selftests (make -C tools/testing/selftests) > > It appears that including

[PATCH v2] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread Abdul, Hussain (H.)
From: Abdul Hussain This patch removes casting the values returned by memory allocation functions. Signed-off-by: Abdul Hussain --- drivers/staging/wilc1000/linux_mon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/linux_mon.c

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-16 Thread Paul E. McKenney
On Tue, Jun 16, 2015 at 05:41:29PM -0700, Stephen Boyd wrote: > On 06/16/2015 05:31 PM, Paul E. McKenney wrote: > > On Tue, Jun 16, 2015 at 05:21:59PM -0700, John Stultz wrote: > >> Not sure if I have the right folks on CC. Noticed this booting on a > >> apq8064 based system w/ 4.1-rc7 (plus a few

Re: [PATCH] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread Abdul, Hussain (H.)
On Wednesday 17 June 2015 07:48 AM, gre...@linuxfoundation.org wrote: > On Tue, Jun 16, 2015 at 07:09:56AM +, Abdul, Hussain (H.) wrote: >> From: Abdul Hussain >> >> This patch removes casting the values returned by memory allocation >> functions. >> >> Signed-off-by: Abdul Hussain >> ---

Re: [PATCH 2/6] mtd: nandsim: Fix kasprintf() usage

2015-06-16 Thread Joe Perches
On Tue, 2015-06-16 at 19:07 -0700, Brian Norris wrote: > On Mon, Jun 01, 2015 at 11:10:50PM +0200, Richard Weinberger wrote: > > kasprintf() used in get_partition_name() does a dynamic > > memory allocation and can fail. We have to handle that case. [] > > diff --git a/drivers/mtd/nand/nandsim.c

[RESUBMIT Patch 1/1] net: replace if()/BUG with BUG_ON

2015-06-16 Thread Maninder Singh
Use BUG_ON(condition) instead of if(condition)/BUG() . Signed-off-by: Maninder Singh Reviewed-by: Akhilesh Kumar --- net/packet/af_packet.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index b5989c6..c91d405 100644

Re: [RFC NEXT] mm: Fix suspicious RCU usage at kernel/sched/core.c:7318

2015-06-16 Thread Martin KaFai Lau
On Tue, Jun 16, 2015 at 09:43:28PM -0500, Larry Finger wrote: > On 06/16/2015 04:07 PM, Martin KaFai Lau wrote: > >On Mon, Jun 15, 2015 at 04:25:18PM -0500, Larry Finger wrote: > >>Additional backtrace lines are truncated. In addition, the above splat is > >>followed by several "BUG: sleeping

Re: [PATCH] arm64: dts: symlink cros-ec-keyboard from arm to arm64

2015-06-16 Thread Daniel Kurtz
On Tue, Jun 16, 2015 at 10:55 PM, Will Deacon wrote: > On Tue, Jun 16, 2015 at 03:35:41PM +0100, Daniel Kurtz wrote: >> The cros-ec-keyboard.dtsi snippet is useful for both arm and arm64 boards. >> Create a link between the two. >> >> This may not be the most scalable solution, so consider it

Re: Possible broken MM code in dell-laptop.c?

2015-06-16 Thread Darren Hart
On Tue, Jun 16, 2015 at 09:15:23AM +0200, Pali Rohár wrote: > On Tuesday 16 June 2015 08:33:46 Michal Hocko wrote: > > On Mon 15-06-15 23:27:59, Pali Rohár wrote: > > > On Monday 15 June 2015 23:18:16 Michal Hocko wrote: > > > > On Sun 14-06-15 11:05:07, Pali Rohár wrote: > > > > > Hello, > > > >

[PATCH] perf tools: Fix a problem when opening old perf.data with different byte order

2015-06-16 Thread Wang Nan
Following error occurs when trying to use 'perf report' on x86_64 to cross analysis a perf.data generated by an old perf on a big-endian machine: # perf report *** Error in `/home/w00229757/perf': free(): invalid next size (fast): 0x032c99f0 *** === Backtrace: =

[PATCH 1/3] cpu-hotadd-patch-liujiang

2015-06-16 Thread gongzg
From: songxiumiao --- arch/x86/kernel/acpi/boot.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index dbe76a1..b8f93b3 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -733,6

Re: [PATCH V2 1/6] SLIMbus: Device management on SLIMbus

2015-06-16 Thread Joe Perches
On Tue, 2015-06-16 at 19:45 -0600, Sagar Dharia wrote: > SLIMbus (Serial Low Power Interchip Media Bus) is a specification > developed by MIPI (Mobile Industry Processor Interface) alliance. > SLIMbus is a 2-wire implementation, which is used to communicate with > peripheral components like

linux-next: Tree for Jun 17

2015-06-16 Thread Michael Ellerman
Hi all, Changes since 20150615: The rdma tree gained a conflict against the nfs tree. The rdma tree gained a conflict against the net-next tree. The tip tree gained a conflict against the iommu tree. The tip tree gained a conflict against the crypto tree. The akpm-current tree gained a

Re: kexec_load(2) bypasses signature verification

2015-06-16 Thread Theodore Ts'o
On Tue, Jun 16, 2015 at 04:27:57PM -0400, Vivek Goyal wrote: > > So looks like you are looking for a system/option where you just want to > always make use of kexec_file_load() and disable kexec_load(). This sounds > like you want a kernel where kexec_load() is compiled out and you want > only

linux-next: manual merge of the akpm-current tree with the vfs tree

2015-06-16 Thread Michael Ellerman
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/ufs/namei.c between commit: a50e4a02ad69 "ufs: don't bother with lock_ufs()/unlock_ufs() for directory access" from the vfs tree and commit: 2ce1efe3965b "fs/ufs: revert "ufs: fix deadlocks introduced

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

2015-06-16 Thread Michael Ellerman
Hi all, Today's linux-next merge of the tip tree got conflicts in: drivers/crypto/vmx/aes.c drivers/crypto/vmx/aes_cbc.c drivers/crypto/vmx/ghash.c between commit: 4beb10604597 "crypto: vmx - Reindent to kernel style" from the crypto tree and commit: 5f76eea88dcb "sched/preempt,

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

2015-06-16 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: drivers/infiniband/hw/mlx4/mad.c between commit: 7193a141eb74 "IB/mlx4: Set VF to read from QP counters" from the net-next tree and commit: 4cd7c9479aff "IB/mad: Add support for additional MAD info to/from drivers"

Re: [RFC 3/3] mm: make swapin readahead to improve thp collapse rate

2015-06-16 Thread Rik van Riel
On 06/16/2015 05:15 PM, Andrew Morton wrote: > On Sun, 14 Jun 2015 18:04:43 +0300 Ebru Akagunduz > wrote: > >> This patch makes swapin readahead to improve thp collapse rate. >> When khugepaged scanned pages, there can be a few of the pages >> in swap area. >> >> With the patch THP can collapse

linux-next: manual merge of the rdma tree with the nfs tree

2015-06-16 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: net/sunrpc/xprtrdma/verbs.c between commit: 89e0d11258e9 "xprtrdma: Use ib_device pointer safely" from the nfs tree and commit: 8e37210b38fb "IB/core: Change ib_create_cq to use struct ib_cq_init_attr" from the rdma

linux-next: manual merge of the rdma tree with the nfs tree

2015-06-16 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: net/sunrpc/xprtrdma/frwr_ops.c between commit: 951e721ca0d6 "xprtrdma: Introduce an FRMR recovery workqueue" from the nfs tree and commit: 76357c715f32 "xprtrdma, svcrdma: Switch to generic logging helpers" from the

Re: [PATCH 3/3] writeback, blkio: add documentation for cgroup writeback support

2015-06-16 Thread Theodore Ts'o
On Tue, Jun 16, 2015 at 05:54:36PM -0400, Tejun Heo wrote: > Hello, Ted. > > On Mon, Jun 15, 2015 at 07:35:19PM -0400, Theodore Ts'o wrote: > > So if there is some way we can signal to any cgroup that that might be > > throttling writeback or disk I/O that the jbd/jbd2 process should be > >

Re: [PATCH RFC] storage:rbd: make the size of request is equal to the, size of the object

2015-06-16 Thread juncheng bai
On 2015/6/16 23:51, Ilya Dryomov wrote: On Tue, Jun 16, 2015 at 5:14 PM, juncheng bai wrote: On 2015/6/16 21:30, Ilya Dryomov wrote: On Tue, Jun 16, 2015 at 2:57 PM, juncheng bai wrote: On 2015/6/16 16:37, Ilya Dryomov wrote: On Tue, Jun 16, 2015 at 6:28 AM, juncheng bai wrote:

Re: [PATCH RFC v7 2/3] crypto: rsa: add a new rsa generic implementation

2015-06-16 Thread Tadeusz Struk
On 06/16/2015 07:36 PM, Herbert Xu wrote: > The existing crypto/asymmetric_key errno scheme doesn't really > mesh in with the rest of crypto. So you'll just have to pick one > scheme and stick with it. > > I don't really mind either way as long as the error codes are > unique and meaningful. So

Re: [RFC NEXT] mm: Fix suspicious RCU usage at kernel/sched/core.c:7318

2015-06-16 Thread Larry Finger
On 06/16/2015 04:07 PM, Martin KaFai Lau wrote: On Mon, Jun 15, 2015 at 04:25:18PM -0500, Larry Finger wrote: Additional backtrace lines are truncated. In addition, the above splat is followed by several "BUG: sleeping function called from invalid context at mm/slub.c:1268" outputs. As

Re: [Intel-gfx] [PATCH 6/8] pwm: crc: Add Crystalcove (CRC) PWM driver

2015-06-16 Thread Shobhit Kumar
On Wed, May 20, 2015 at 8:39 PM, Shobhit Kumar wrote: > On Thu, May 7, 2015 at 12:49 PM, Shobhit Kumar wrote: >> On Wed, May 6, 2015 at 5:44 PM, Thierry Reding >> wrote: >>> On Tue, May 05, 2015 at 03:08:36PM +0530, Shobhit Kumar wrote: The Crystalcove PMIC controls PWM signals and this

Re: [PATCH RFC v7 2/3] crypto: rsa: add a new rsa generic implementation

2015-06-16 Thread Herbert Xu
On Tue, Jun 16, 2015 at 07:32:16PM -0700, Tadeusz Struk wrote: > > I thought that -EBADMSG was mainly used for authenticated ciphers in case > when verification of auth data fails. > Since this are input params I thought that -EINVAL would be more appropriate. > I can change it to -EBADMSG, no

Re: [PATCH RFC v7 2/3] crypto: rsa: add a new rsa generic implementation

2015-06-16 Thread Tadeusz Struk
Hi David, On 06/16/2015 03:10 PM, David Howells wrote: >> +static int _rsa_sign(const struct rsa_key *key, MPI s, MPI m) >> > +{ >> > + /* (1) Validate 0 <= m < n */ >> > + if (mpi_cmp_ui(m, 0) < 0 || mpi_cmp(m, key->n) >= 0) >> > + return -EINVAL; > Why -EINVAL not -EBADMSG? I thought

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread David Ahern
On 6/16/15 7:24 PM, Hemant Kumar wrote: Because, this depends on the kernel tracepoint "kvm_hv:kvm_guest_exit". perf_prepare_sample() in the kernel side sets the event->header.misc field to PERF_RECORD_MISC_KERNEL through perf_misc_flags(pt_regs). In case of tracepoints which always get hit in

Re: [PATCH] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread gre...@linuxfoundation.org
On Tue, Jun 16, 2015 at 07:10:28AM +, Abdul, Hussain (H.) wrote: > From: Abdul Hussain > > This patch removes casting the values returned by memory allocation functions. > > Signed-off-by: Abdul Hussain > --- > drivers/staging/wilc1000/linux_wlan.c | 6 +++--- > 1 file changed, 3

Re: [PATCH] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread gre...@linuxfoundation.org
On Tue, Jun 16, 2015 at 07:09:56AM +, Abdul, Hussain (H.) wrote: > From: Abdul Hussain > > This patch removes casting the values returned by memory allocation functions. > > Signed-off-by: Abdul Hussain > --- > drivers/staging/wilc1000/linux_mon.c | 4 ++-- > 1 file changed, 2

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-16 Thread Guoqing Jiang
Hi David, David Teigland wrote: > On Thu, Jun 11, 2015 at 05:47:28PM +0800, Guoqing Jiang wrote: > >> Do you consider take the following clean up? If yes, I will send a >> formal patch, otherwise pls ignore it. >> > > On first glance, the old and new code do not appear to do the same

MCE bug?

2015-06-16 Thread Rui Wang
Hi Boris & Tony, While injecting MCEs using einj, I encountered a panic: [0.305697] mce: CPU supports 22 MCE banks [0.310288] BUG: unable to handle kernel NULL pointer dereference at 0100 [0.319057] IP: []

Re: [PATCH 1/6] mtd: r852: Fix device_create_file() usage

2015-06-16 Thread Brian Norris
On Mon, Jun 01, 2015 at 11:10:49PM +0200, Richard Weinberger wrote: > device_create_file() can fail, therefore we have to > handle this case and abort. > > Signed-off-by: Richard Weinberger Pushed the first 5. Still looking at the 6th. -- To unsubscribe from this list: send the line

Re: [PATCH 2/6] mtd: nandsim: Fix kasprintf() usage

2015-06-16 Thread Brian Norris
On Mon, Jun 01, 2015 at 11:10:50PM +0200, Richard Weinberger wrote: > kasprintf() used in get_partition_name() does a dynamic > memory allocation and can fail. We have to handle that case. > > Signed-off-by: Richard Weinberger > --- > drivers/mtd/nand/nandsim.c | 10 ++ > 1 file

[PATCH V2 2/6] of/slimbus: OF helper for SLIMbus

2015-06-16 Thread Sagar Dharia
OF helper routine scans the SLIMbus DeviceTree, allocates resources, and creates slim_devices according to the hierarchy. Signed-off-by: Sagar Dharia --- Documentation/devicetree/bindings/slimbus/bus.txt | 34 ++ drivers/slimbus/slimbus.c | 76

Re: kexec_load(2) bypasses signature verification

2015-06-16 Thread Vivek Goyal
On Tue, Jun 16, 2015 at 08:32:37PM -0500, Eric W. Biederman wrote: > Vivek Goyal writes: > > > On Tue, Jun 16, 2015 at 02:38:31PM -0500, Eric W. Biederman wrote: > >> > >> Adding Vivek as he is the one who implemented kexec_file_load. > >> I was hoping he would respond to this thread, and it

[PATCH V2 5/6] slimbus: Add support for 'clock-pause' feature

2015-06-16 Thread Sagar Dharia
Per slimbus specification, a reconfiguration sequence known as 'clock pause' needs to be broadcast over the bus while entering low- power mode. Clock-pause is initiated by the controller driver. To exit clock-pause, controller typically wakes up the framer device. Since wakeup precedure is

[PATCH V2 4/6] slim: qcom: Add Qualcomm Slimbus controller driver

2015-06-16 Thread Sagar Dharia
This controller driver programs manager, interface, and framer devices for Qualcomm's slimbus HW block. Manager component currently implements logical address setting, and messaging interface. Interface device reports bus synchronization information, and framer device clocks the bus from the time

[PATCH V2 6/6] slim: qcom: Add runtime-pm support using clock-pause feature

2015-06-16 Thread Sagar Dharia
Slimbus HW mandates that clock-pause sequence has to be executed before disabling relevant interface and core clocks. Runtime-PM's autosuspend feature is used here to enter/exit low power mode for Qualcomm's Slimbus controller. Autosuspend feature enables driver to avoid changing power-modes too

[PATCH V2 3/6] slimbus: Add messaging APIs to slimbus framework

2015-06-16 Thread Sagar Dharia
Slimbus devices use value-element, and information elements to control device parameters (e.g. value element is used to represent gain for codec, information element is used to represent interrupt status for codec when codec interrupt fires). Messaging APIs are used to set/get these value and

[PATCH V2 1/6] SLIMbus: Device management on SLIMbus

2015-06-16 Thread Sagar Dharia
SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplexing to accommodate

[PATCH V2 0/6] Introduce framework for SLIMbus device drivers

2015-06-16 Thread Sagar Dharia
SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplexing to accommodate

[PATCH v0] arm64: dts: Add poweroff button device node for APM X-Gene platform

2015-06-16 Thread Y Vo
This patch adds poweroff button device node to support poweroff feature on APM X-Gene Mustang platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-mustang.dts | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts

[PATCH] acer-wmi: update removal notice for sysfs interface

2015-06-16 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- These just look odd when out of date. The proper fix would probably be to create a Documentation/ABI/testing/sysfs-platform-acer-wmi file and remove the deprecated ones. drivers/platform/x86/acer-wmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: kexec_load(2) bypasses signature verification

2015-06-16 Thread Eric W. Biederman
Vivek Goyal writes: > On Tue, Jun 16, 2015 at 02:38:31PM -0500, Eric W. Biederman wrote: >> >> Adding Vivek as he is the one who implemented kexec_file_load. >> I was hoping he would respond to this thread, and it looks like he >> simply has not ever been Cc'd. >> >> Theodore Ts'o writes: >>

[PATCH v2 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX

2015-06-16 Thread Wang Long
Define pr_fmt macro with {ERST DBG: } prefix, then remove all use of ERST_DBG_PFX in the pr_* functions. Signed-off-by: Wang Long --- drivers/acpi/apei/erst-dbg.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/apei/erst-dbg.c

[PATCH v2 1/2] apei/*.c: use pr_warn instead of pr_warning

2015-06-16 Thread Wang Long
This patch can avoid the following WARNING when run checkpatch.pl: WARNING: Prefer pr_warn(... to pr_warning(... #21: FILE: drivers/acpi/apei/erst-dbg.c:134: + pr_warning("Record (ID: 0x%llx) length is too long: %zd\n", Signed-off-by: Wang Long ---

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
Damn, sorry for noise, forgot to mention. And whatever I missed, this ctx->dead check in aio_ring_remap() looks wrong anyway. Please correct me. On 06/17, Oleg Nesterov wrote: > > On 06/17, Oleg Nesterov wrote: > > > > On 06/17, Al Viro wrote: > > > > > > On Wed, Jun 17, 2015 at 01:04:14AM

Re: [PATCH 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX

2015-06-16 Thread long.wanglong
On 2015/6/15 22:42, Joe Perches wrote: > On Mon, 2015-06-15 at 09:57 +, Wang Long wrote: >> Define pr_fmt macro with {ERST DBG: } prefix, then remove all use >> of ERST_DBG_PFXin the pr_* functions. > [] >> diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst-dbg.c > [] >> @@

Re: [PATCH v2 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-16 Thread Stephen Warren
On 06/16/2015 03:39 AM, Noralf Trønnes wrote: > > Den 16.06.2015 05:07, skrev Stephen Warren: >> On 06/13/2015 05:39 AM, Noralf Trønnes wrote: >>> This adds a new poweroff function to the watchdog driver for the >>> Raspberry Pi. Currently poweroff/halt results in a reboot. >>> >>> The Raspberry

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread Hemant Kumar
Hi David, Thanks for the review. On 06/16/2015 08:23 PM, David Ahern wrote: On 6/15/15 8:50 PM, Hemant Kumar wrote: +/* + * Get the instruction pointer from the tracepoint data + */ +u64 arch__get_ip(struct perf_evsel *evsel, struct perf_sample *data) +{ +u64 tp_ip = data->ip; +int

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
On 06/17, Al Viro wrote: > > On Wed, Jun 17, 2015 at 01:39:06AM +0100, Al Viro wrote: > > > Huh? kill_ioctx() picks ctx->mmap_base and passes it to vm_munmap(). > > Which tries to grab mmap_sem, blocks for mremap() from another thread > > and waits for it to drop mmap_sem. By that time

Re: [PATCH v2 2/2] TPM: remove unnecessary little endian conversion

2015-06-16 Thread Ashley Lai
Looks good. Reviewed-by: Ashley Lai Thanks, --Ashley On Tue, 9 Jun 2015, Hon Ching(Vicky) Lo wrote: The base pointer for the event log is allocated in the local kernel (in prom_instantiate_sml()), therefore it is already in the host's endian byte order and requires no conversion. The

Re: [PATCH v2 1/2] vTPM: support little endian guests

2015-06-16 Thread Ashley Lai
Just a small comment otherwise it looks good. On Tue, 9 Jun 2015, Hon Ching(Vicky) Lo wrote: case NONHOST_INFO: - name = tcpa_event_type_strings[event->event_type]; + name = + tcpa_event_type_strings[do_endian_conversion +

Re: call_rcu from trace_preempt

2015-06-16 Thread Steven Rostedt
On Tue, 16 Jun 2015 18:04:39 -0700 Alexei Starovoitov wrote: > > you mean similar to what rb_wakeups() and friends are doing? > makes sense. starting to study it... Yes, I meant those functions. But yours would be slightly different. As it would be the one calling the irq work that would be

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
On 06/17, Oleg Nesterov wrote: > > On 06/17, Al Viro wrote: > > > > On Wed, Jun 17, 2015 at 01:04:14AM +0200, Oleg Nesterov wrote: > > > Al, please help. We are trying to backport some aio fixes and I am > > > absolutely confused by your b2edffdd912b "fix mremap() vs. ioctx_kill() > > > race". > >

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
On 06/17, Al Viro wrote: > > On Wed, Jun 17, 2015 at 01:04:14AM +0200, Oleg Nesterov wrote: > > Al, please help. We are trying to backport some aio fixes and I am > > absolutely confused by your b2edffdd912b "fix mremap() vs. ioctx_kill() > > race". > > > > > > Firstly, I simply can't understand

Re: [PATCH v3 08/18] baycom_epp: Replace rdtscl() with native_read_tsc()

2015-06-16 Thread Thomas Sailer
Acked-by: Thomas Sailer On 06/17/2015 02:35 AM, Andy Lutomirski wrote: This is only used if BAYCOM_DEBUG is defined. Cc: walter harms Cc: Ralf Baechle Cc: Thomas Sailer Cc: linux-h...@vger.kernel.org Signed-off-by: Andy Lutomirski --- I'm hoping for an ack for this to go through -tip.

[PATCH] isdn: disable HiSax NetJet driver on microblaze arch

2015-06-16 Thread Nicolai Stange
Fix an allmodconfig compilation failer on microblaze due to big endian architectures being apparently unsupported by the NetJet code: drivers/isdn/hisax/nj_s.c: In function 'setup_netjet_s': drivers/isdn/hisax/nj_s.c:265:2: error: #error "not running on big endian machines now" Modify

Re: call_rcu from trace_preempt

2015-06-16 Thread Alexei Starovoitov
On 6/16/15 5:47 PM, Steven Rostedt wrote: Do what I do in tracing. Use a bit (per cpu?) test. Add the element to the list (that will be a cmpxchg, but I'm not sure you can avoid it), then check the bit to see if the irq work is already been activated. If not, then activate the irq work and set

[PATCH] scripts/tags.sh: Include trace_*_rcuidle() in tags

2015-06-16 Thread Stephen Boyd
Every tracepoint creates two functions, the usual one 'trace_*()' and the rcuidle one 'trace_*_rcuidle()'. Add regex for the rcuidle variant so that we can jump to the tracepoints that use rcuidle. Cc: Steven Rostedt Signed-off-by: Stephen Boyd --- scripts/tags.sh | 4 1 file changed, 4

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Al Viro
On Wed, Jun 17, 2015 at 01:39:06AM +0100, Al Viro wrote: > Huh? kill_ioctx() picks ctx->mmap_base and passes it to vm_munmap(). > Which tries to grab mmap_sem, blocks for mremap() from another thread > and waits for it to drop mmap_sem. By that time ctx->mmap_base has > nothing whatsoever to

Re: call_rcu from trace_preempt

2015-06-16 Thread Steven Rostedt
On Tue, 16 Jun 2015 17:33:24 -0700 Alexei Starovoitov wrote: > On 6/16/15 10:37 AM, Steven Rostedt wrote: > >>> + kfree(l); > >> > > >> >that's not right, since such thread defeats rcu protection of lookup. > >> >We need either kfree_rcu/call_rcu or synchronize_rcu. > >>

[PATCH v3 01/18] x86/tsc: Inline native_read_tsc and remove __native_read_tsc

2015-06-16 Thread Andy Lutomirski
In cdc7957d1954 ("x86: move native_read_tsc() offline"), native_read_tsc was moved out of line, presumably for some now-obsolete vDSO-related reason. Undo it. The entire rdtsc, shl, or sequence is only 11 bytes, and calls via rdtscl and similar helpers were already inlined. Signed-off-by: Andy

Re: [PATCH] regulator: qcom_spmi: Fix missing parenthesis

2015-06-16 Thread Stephen Boyd
On 06/16/2015 05:39 PM, Axel Lin wrote: > Fix the logic in spmi_regulator_common_list_voltage() to return correct uV. > > Signed-off-by: Axel Lin There are two, and patch already sent[1]. [1] https://patchwork.kernel.org/patch/6619381/ -- Qualcomm Innovation Center, Inc. is a member of Code

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-16 Thread Stephen Boyd
On 06/16/2015 05:31 PM, Paul E. McKenney wrote: > On Tue, Jun 16, 2015 at 05:21:59PM -0700, John Stultz wrote: >> Not sure if I have the right folks on CC. Noticed this booting on a >> apq8064 based system w/ 4.1-rc7 (plus a few patches that I believe are >> unrelated). >> >> >> [0.008796]

[PATCH v3 09/18] staging/lirc_serial: Remove TSC-based timing

2015-06-16 Thread Andy Lutomirski
It wasn't compiled in by default. I suspect that the driver was and still is broken, though -- it's calling udelay with a parameter that's derived from loops_per_jiffy. Cc: Jarod Wilson Cc: de...@driverdev.osuosl.org Cc: Greg Kroah-Hartman Signed-off-by: Andy Lutomirski ---

[PATCH v3 07/18] x86/cpu/amd: Use the full 64-bit TSC to detect the 2.6.2 bug

2015-06-16 Thread Andy Lutomirski
This code is timing 100k indirect calls, so the added overhead of counting the number of cycles elapsed as a 64-bit number should be insignificant. Drop the optimization of using a 32-bit count. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/cpu/amd.c | 6 +++--- 1 file changed, 3

[PATCH v3 08/18] baycom_epp: Replace rdtscl() with native_read_tsc()

2015-06-16 Thread Andy Lutomirski
This is only used if BAYCOM_DEBUG is defined. Cc: walter harms Cc: Ralf Baechle Cc: Thomas Sailer Cc: linux-h...@vger.kernel.org Signed-off-by: Andy Lutomirski --- I'm hoping for an ack for this to go through -tip. drivers/net/hamradio/baycom_epp.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v3 04/18] x86/tsc: Replace rdtscll with native_read_tsc

2015-06-16 Thread Andy Lutomirski
Now that the read_tsc paravirt hook is gone, rdtscll() is just a wrapper around native_read_tsc(). Unwrap it. Signed-off-by: Andy Lutomirski --- arch/x86/boot/compressed/aslr.c | 2 +- arch/x86/include/asm/msr.h | 3 --- arch/x86/include/asm/tsc.h

[PATCH v3 05/18] x86/tsc: Remove the rdtscp and rdtscpll macros

2015-06-16 Thread Andy Lutomirski
They have no users. Leave native_read_tscp, which seems potentially useful despite also having no callers. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/msr.h | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index

[PATCH v3 12/18] x86/tsc: Remove rdtscl()

2015-06-16 Thread Andy Lutomirski
It has no more callers, and it was never a very sensible interface to begin with. Users of the TSC should either read all 64 bits or explicitly throw out the high bits. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/msr.h | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH] ipmi: Convert the IPMI SI ACPI handling to a platform device

2015-06-16 Thread Corey Minyard
Ping, anyone one the ACPI list care to comment on this? I should give some history here. The IPMI spec specifies four different IPMI interfaces using the IPI0001 ID. Three of the interfaces are close enough that they are in the same driver, since they all have about the same behavior and the

[PATCH v3 11/18] drivers/input/gameport: Replace rdtscl() with native_read_tsc()

2015-06-16 Thread Andy Lutomirski
It's unclear to me why this code exists in the first place. Acked-by: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Signed-off-by: Andy Lutomirski --- drivers/input/gameport/gameport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/gameport/gameport.c

[PATCH] regulator: qcom_spmi: Fix missing parenthesis

2015-06-16 Thread Axel Lin
Fix the logic in spmi_regulator_common_list_voltage() to return correct uV. Signed-off-by: Axel Lin --- drivers/regulator/qcom_spmi-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/qcom_spmi-regulator.c

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Al Viro
On Wed, Jun 17, 2015 at 01:04:14AM +0200, Oleg Nesterov wrote: > Al, please help. We are trying to backport some aio fixes and I am > absolutely confused by your b2edffdd912b "fix mremap() vs. ioctx_kill() > race". > > > Firstly, I simply can't understand what exactly it tries to fix. OK, >

[PATCH v3 10/18] input/joystick/analog: Switch from rdtscl() to native_read_tsc()

2015-06-16 Thread Andy Lutomirski
This timing code is hideous, and this doesn't help. It gets rid of one of the last users of rdtscl, though. Acked-by: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Signed-off-by: Andy Lutomirski --- drivers/input/joystick/analog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v3 16/18] x86/tsc: In read_tsc, use rdtsc_ordered() instead of get_cycles()

2015-06-16 Thread Andy Lutomirski
There are two logical changes here. First, this removes a check for cpu_has_tsc. That check is unnecessary, as we don't register the TSC as a clocksource on systems that have no TSC. Second, it adds a barrier, thus preventing observable non-monotonicity. I suspect that the missing barrier was

[PATCH v3 13/18] x86/tsc: Rename native_read_tsc() to rdtsc()

2015-06-16 Thread Andy Lutomirski
Now that there is no paravirt TSC, the "native" is inappropriate. The function does RDTSC, so give it the obvious name: rdtsc() Suggested-by: Borislav Petkov Signed-off-by: Andy Lutomirski --- arch/x86/boot/compressed/aslr.c | 2 +- arch/x86/entry/vdso/vclock_gettime.c

[PATCH v3 15/18] x86/tsc: Use rdtsc_ordered() in check_tsc_warp() and drop extra barriers

2015-06-16 Thread Andy Lutomirski
Using get_cycles was unnecessary: check_tsc_warp() is not called on TSC-less systems. Replace rdtsc_barrier(); get_cycles() with rdtsc_ordered(). While we're at it, make the somewhat more dangerous change of removing barrier_before_rdtsc after RDTSC in the TSC warp check code. This should be

[PATCH v3 14/18] x86: Add rdtsc_ordered() and use it in trivial call sites

2015-06-16 Thread Andy Lutomirski
rdtsc_barrier(); rdtsc() is an unnecessary mouthful and requires more thought than should be necessary. Add an rdtsc_ordered() helper and replace the trivial call sites with it. This should not change generated code. The duplication of the fence asm is temporary. Signed-off-by: Andy Lutomirski

[PATCH v3 17/18] x86/kvm/tsc: Drop extra barrier and use rdtsc_ordered in kvmclock

2015-06-16 Thread Andy Lutomirski
__pvclock_read_cycles had an unnecessary barrier. Get rid of that barrier and clean up the code by just using rdtsc_ordered(). Cc: Paolo Bonzini Cc: Radim Krcmar Cc: Marcelo Tosatti Cc: k...@vger.kernel.org Signed-off-by: Andy Lutomirski --- I'm hoping to get an ack for this to go in

[PATCH v3 18/18] x86/tsc: Remove rdtsc_barrier()

2015-06-16 Thread Andy Lutomirski
All callers have been converted to rdtsc_ordered(). Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/barrier.h | 11 --- arch/x86/um/asm/barrier.h | 13 - 2 files changed, 24 deletions(-) diff --git a/arch/x86/include/asm/barrier.h

[PATCH v3 03/18] x86/tsc/paravirt: Remove the read_tsc and read_tscp paravirt hooks

2015-06-16 Thread Andy Lutomirski
We've had read_tsc and read_tscp paravirt hooks since the very beginning of paravirt, i.e., d3561b7fa0fb ("[PATCH] paravirt: header and stubs for paravirtualisation"). AFAICT the only paravirt guest implementation that ever replaced these calls was vmware, and it's gone. Arguably even vmware

[PATCH v3 06/18] x86/tsc: Use the full 64-bit tsc in tsc_delay

2015-06-16 Thread Andy Lutomirski
As a very minor optimization, tsc_delay was only using the low 32 bits of the TSC. It's a delay function, so just use the whole thing. Signed-off-by: Andy Lutomirski --- arch/x86/lib/delay.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/lib/delay.c

[PATCH v3 00/18] x86/tsc: Clean up rdtsc helpers

2015-06-16 Thread Andy Lutomirski
My sincere apologies for the spam. I send an unholy mixture of the real patch set and an old poorly split-up patch set, and the result is incomprehensible. Here's what I meant to send. After the some recent threads about rdtsc barriers, I remembered that our RDTSC wrappers are a big mess.

[PATCH v3 02/18] x86/msr/kvm: Remove vget_cycles()

2015-06-16 Thread Andy Lutomirski
The only caller was kvm's read_tsc. The only difference between vget_cycles and native_read_tsc was that vget_cycles returned zero instead of crashing on TSC-less systems. KVM's already checks vclock_mode before calling that function, so the extra check is unnecessary. (Off-topic, but the whole

  1   2   3   4   5   6   7   8   9   10   >