Re: [PATCH 1/5] perf tests: Add tip/pid mmap automated tests

2014-03-16 Thread Jiri Olsa
On Fri, Mar 14, 2014 at 05:24:21PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 14, 2014 at 03:00:02PM +0100, Jiri Olsa escreveu: > > Adding automated test for memory maps lookup within > > multiple machines threads. > > CC /tmp/build/perf/arch/x86/util/tsc.o > tests/mmap-events.c:

[PATCH 4/8] printk: Remove separate printk_sched buffers and use printk buf instead

2014-03-16 Thread Jan Kara
From: Steven Rostedt To prevent deadlocks with doing a printk inside the scheduler, printk_sched() was created. The issue is that printk has a console_sem that it can grab and release. The release does a wake up if there's a task pending on the sem, and this wake up grabs the rq locks that is hel

[PATCH 2/8] printk: Release lockbuf_lock before calling console_trylock_for_printk()

2014-03-16 Thread Jan Kara
There's no reason to hold lockbuf_lock when entering console_trylock_for_printk(). The first thing this function does is calling down_trylock(console_sem) and if that fails it immediately unlocks lockbuf_lock. So lockbuf_lock isn't needed for that branch. When down_trylock() succeeds, the rest of c

[PATCH 3/8] printk: Enable interrupts before calling console_trylock_for_printk()

2014-03-16 Thread Jan Kara
We need interrupts disabled when calling console_trylock_for_printk() only so that cpu id we pass to can_use_console() remains valid (for other things console_sem provides all the exclusion we need and deadlocks on console_sem due to interrupts are impossible because we use down_trylock()). Howeve

[PATCH 6/8] printk: Start printing handover kthreads on demand

2014-03-16 Thread Jan Kara
Start kthreads for handing over printing only when printk.offload_chars is set to value > 0 (i.e., when print offloading gets enabled). Signed-off-by: Jan Kara --- kernel/printk/printk.c | 64 +++--- 1 file changed, 50 insertions(+), 14 deletions(-) d

[PATCH 5/8] printk: Hand over printing to console if printing too long

2014-03-16 Thread Jan Kara
Currently, console_unlock() prints messages from kernel printk buffer to console while the buffer is non-empty. When serial console is attached, printing is slow and thus other CPUs in the system have plenty of time to append new messages to the buffer while one CPU is printing. Thus the CPU can sp

[PATCH 8/8] printk: Add config option for disabling printk offloading

2014-03-16 Thread Jan Kara
Necessity for offloading of printing was observed only for large systems. So add a config option (disabled by default) which removes most of the overhead added by this functionality. Signed-off-by: Jan Kara --- Documentation/kernel-parameters.txt | 13 +++-- init/Kconfig

[PATCH 0/8 v3] printk: Cleanups and softlockup avoidance

2014-03-16 Thread Jan Kara
Hello, this is another revision of the printk softlockup series. Since previous version I have fixed up some small problems pointed out by Andrew, added possibility to configure out the printk offloading logic (for small systems), and offload kthreads are now started only once printk.offload_c

[PATCH 1/8] printk: Remove outdated comment

2014-03-16 Thread Jan Kara
Comment about interesting interlocking between lockbuf_lock and console_sem is outdated. It was added in 2002 by commit a880f45a48be2956d2c78a839c472287d54435c1 during conversion of console_lock to console_sem + lockbuf_lock. At that time release_console_sem() (today's equivalent is console_unlock(

[PATCH 7/8] kernel: Avoid softlockups in stop_machine() during heavy printing

2014-03-16 Thread Jan Kara
When there are lots of messages accumulated in printk buffer, printing them (especially over serial console) can take a long time (tens of seconds). stop_machine() will effectively make all cpus spin in multi_cpu_stop() waiting for the CPU doing printing to print all the messages which triggers NMI

Re: [PATCH] perf sched latency: prettify printed table

2014-03-16 Thread Jiri Olsa
On Sat, Mar 15, 2014 at 12:17:38PM -0400, Ramkumar Ramachandra wrote: > Cc: Frederic Weisbecker > Cc: David Ahern > Cc: Jiri Olsa > Cc: Arnaldo Carvalho de Melo > Signed-off-by: Ramkumar Ramachandra > --- > tools/perf/builtin-sched.c | 10 +- > 1 file changed, 5 insertions(+), 5 delet

Re: [RESEND v2 PATCH 1/2] aio, memory-hotplug: Fix confliction when migrating and accessing ring pages.

2014-03-16 Thread Tang Chen
On 03/14/2014 11:14 PM, Benjamin LaHaise wrote: .. What about the following patch? It adds additional reference to protect the page avoid being freed when we reading it. ps.It is applied on linux-next(3-13). I think that's even worse than the spinlock approach since we'll end up bouncing ar

Re: [PATCH net V2] vhost: net: switch to use data copy if pending DMAs exceed the limit

2014-03-16 Thread Ronen Hod
On 03/13/2014 09:28 AM, Jason Wang wrote: On 03/10/2014 04:03 PM, Michael S. Tsirkin wrote: On Fri, Mar 07, 2014 at 01:28:27PM +0800, Jason Wang wrote: We used to stop the handling of tx when the number of pending DMAs exceeds VHOST_MAX_PEND. This is used to reduce the memory occupation of both

Re: [RFA][PATCH 3/4] tracing/module: Remove include of tracepoint.h from module.h

2014-03-16 Thread Steven Rostedt
On Mon, 2014-03-17 at 13:04 +1030, Rusty Russell wrote: > Steven Rostedt writes: > > On Wed, 26 Feb 2014 14:01:43 -0500 > > Hi Rusty, > > > > This patch doesn't need to be stable, and can wait till v3.15. But I > > have other patches that will break with this patch (headers that needed > > to incl

[PATCH V3] NTFS: Logging clean-up

2014-03-16 Thread Fabian Frederick
-Convert spinlock/static array to va_format (inspired by Joe Perches help on previous logging patches). -Convert printk(KERN_ERR to pr_warn in __ntfs_warning. -Convert printk(KERN_ERR to pr_err in __ntfs_error. -Convert printk(KERN_DEBUG to pr_debug in __ntfs_debug. (Note that __ntfs_debug is still

[PATCH v4 02/16] perf, core: introduce pmu context switch callback

2014-03-16 Thread Yan, Zheng
The callback is invoked when process is scheduled in or out. It provides mechanism for later patches to save/store the LBR stack. For the schedule in case, the callback is invoked at the same place that flush branch stack callback is invoked. So it also can replace the flush branch stack callback.

[PATCH v4 00/16] perf, x86: Haswell LBR call stack support

2014-03-16 Thread Yan, Zheng
For many profiling tasks we need the callgraph. For example we often need to see the caller of a lock or the caller of a memcpy or other library function to actually tune the program. Frame pointer unwinding is efficient and works well. But frame pointers are off by default on 64bit code (and on mo

RE: [PATCH net-next v3 1/2] r8152:addRTL8152_EARLY_AGG_TIMEOUT_SUPER

2014-03-16 Thread hayeswang
From: Francois Romieu [mailto:rom...@fr.zoreil.com] > Sent: Saturday, March 15, 2014 7:43 AM [...] > > Besides, I don't wish to modify the setting by ethtool when re-loading > > the driver or rebooting every time. > > Why ? > > The recipe is different but there isn't much setup difference > be

Re: Re: [PATCH V3] serial/uart/8250: Add tunable RX interrupt trigger I/F of FIFO buffers

2014-03-16 Thread Yoshihiro YUNOMAE
Hi Alan, Thank you for your reply. (2014/03/14 21:04), One Thousand Gnomes wrote: @@ -2325,10 +2323,19 @@ serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios, if ((baud < 2400 && !up->dma) || fifo_bug) { fcr &= ~UART_FCR_TRIGGER_MA

[PATCH v4 07/16] perf, x86: track number of events that use LBR callstack

2014-03-16 Thread Yan, Zheng
When enabling/disabling an event, check if the event uses the LBR callstack feature, adjust the LBR callstack usage count accordingly. Later patch will use the usage count to decide if LBR stack should be saved/restored. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event_intel_lbr.c |

[PATCH v4 06/16] perf, core: always switch pmu specific data during context switch

2014-03-16 Thread Yan, Zheng
If two tasks were both forked from the same parent task, Events in their perf task contexts can be the same. Perf core may leave out switching the perf event contexts. Previous patch inroduces pmu specific data. The data is for saving the LBR stack, it is task specific. So we need to switch the da

[PATCH v4 09/16] perf, x86: Save/resotre LBR stack during context switch

2014-03-16 Thread Yan, Zheng
When the LBR call stack is enabled, it is necessary to save/restore the LBR stack on context switch. The solution is saving/restoring the LBR stack to/from task's perf event context. The LBR stack is saved/restored only when there are events that use the LBR call stack. If no event uses LBR call s

[PATCH v4 05/16] perf, core: pmu specific data for perf task context

2014-03-16 Thread Yan, Zheng
Introduce a new field to 'struct pmu' to specify the size of PMU specific data. If the size is not zero, also allocate memory for the PMU specific data when allocating perf task context. The PMU specific data are initialized to zeros. Later patches will use PMU specific data to save LBR stack. Sig

[PATCH v4 08/16] perf, x86: allocate space for storing LBR stack

2014-03-16 Thread Yan, Zheng
When the LBR call stack is enabled, it is necessary to save/restore the LBR stack on context switch. We can use pmu specific data to store LBR stack when task is scheduled out. This patch adds code that allocates the pmu specific data. Signed-off-by: Yan, Zheng Reviewed-by: Stephane Eranian ---

[PATCH v4 04/16] perf, x86: Basic Haswell LBR call stack support

2014-03-16 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing LBR facility to record call chains. To enable this feature, bits (JCC, NEAR_IND_JMP, NEAR_REL_JMP, FAR_BRANCH, EN_CALLSTACK) in LBR_SELECT must be set to 1, bits (NEAR_REL_CALL, NEAR-IND_CALL, NEAR_RET) must be cleared. Due to a hardware bug of H

[PATCH v4 14/16] perf, x86: enable LBR callstack when recording callchain

2014-03-16 Thread Yan, Zheng
If a task specific event wants user space callchain but does not want branch stack sampling, enable the LBR call stack facility implicitly. The LBR call stack facility can help perf to get user space callchain in case of there is no frame pointer. Note: this feature only affects how to get user ca

[PATCH v4 12/16] perf, x86: use LBR call stack to get user callchain

2014-03-16 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing Last Branch Record facility to record call chains. When the feature is enabled, function call will be collected as normal, but as return instructions are executed the last captured branch record is popped from the on-chip LBR registers. The LBR c

RE: [PATCH net-next v3 1/2]r8152:addRTL8152_EARLY_AGG_TIMEOUT_SUPER

2014-03-16 Thread hayeswang
From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, March 15, 2014 2:43 AM [...] > > Besides, I don't wish to modify the setting by ethtool when re-loading > > the driver or rebooting every time. > > You have code to reset the driver, you can do it when the user asks > for the sett

[PATCH v4 10/16] perf, core: simplify need branch stack check

2014-03-16 Thread Yan, Zheng
event->attr.branch_sample_type is non-zero no matter branch stack is enabled explicitly or is enabled implicitly. we can use it to replace intel_pmu_needs_lbr_smpl(). This avoids duplicating code that implicitly enables the LBR. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event_intel.

[PATCH v4 13/16] perf, x86: re-organize code that implicitly enables LBR/PEBS

2014-03-16 Thread Yan, Zheng
make later patch more readable, no logic change. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event.c | 59 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index

[PATCH v4 11/16] perf, core: Pass perf_sample_data to perf_callchain()

2014-03-16 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing Last Branch Record facility to record call chains. When the feature is enabled, function call will be collected as normal, but as return instructions are executed the last captured branch record is popped from the on-chip LBR registers. The LBR c

[PATCH v4 01/16] perf, x86: Reduce lbr_sel_map size

2014-03-16 Thread Yan, Zheng
The index of lbr_sel_map is bit value of perf branch_sample_type. PERF_SAMPLE_BRANCH_MAX is 1024 at present, so each lbr_sel_map uses 4096 bytes. By using bit shift as index, we can reduce lbr_sel_map size to 40 bytes. This patch defines 'bit shift' for branch types, and use 'bit shift' to define l

[PATCH v4 15/16] perf, x86: disable FREEZE_LBRS_ON_PMI when LBR operates in callstack mode

2014-03-16 Thread Yan, Zheng
Due to a hardware bug of Haswell, LBR callstack does not work well with FREEZE_LBRS_ON_PMI. If FREEZE_LBRS_ON_PMI is set, PMIs near call/return instructions may cause superfluous increase/decrease of LBR_TOS. This patch modifies __intel_pmu_lbr_enable() to not enable FREEZE_LBRS_ON_PMI when LBR op

[PATCH v4 16/16] perf, x86: Discard zero length call entries in LBR call stack

2014-03-16 Thread Yan, Zheng
"Zero length call" uses the attribute of the call instruction to push the immediate instruction pointer on to the stack and then pops off that address into a register. This is accomplished without any matching return instruction. It confuses the hardware and make the recorded call stack incorrect.

[PATCH v4 03/16] perf, x86: use context switch callback to flush LBR stack

2014-03-16 Thread Yan, Zheng
Previous commit introduces context switch callback, its function overlaps with the flush branch stack callback. So we can use the context switch callback to flush LBR stack. This patch adds code that uses the flush branch callback to flush the LBR stack when task is being scheduled in. The callbac

Re: [PATCHv2 3/8] devfreq: exynos4: Add ppmu's clock control and code clean about regulator control

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/17/2014 11:51 AM, Chanwoo Choi wrote: > Hi Tomasz, > > On 03/15/2014 02:42 AM, Tomasz Figa wrote: >> Hi Chanwoo, >> >> On 13.03.2014 09:17, Chanwoo Choi wrote: >>> There are not the clock controller of ppmudmc0/1. This patch control the >>> clock >>> of ppmudmc0/1 which is used

[RFCv2 1/7] virtio-scsi.h: Add virtio_scsi_cmd_req_pi header definition

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a virtio_scsi_cmd_req_pi header as recommened by Paolo that contains do_pi_niov + di_pi_niov elements used for signaling when protection information buffers are expected to preceed the data buffers. Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Martin K.

[RFCv2 0/7] vhost/scsi: Add T10 PI SGL passthrough support

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi MST, MKP, Paolo & Co, This is an updated -v2 series for adding T1O protection information (PI) SGL passthrough support between virtio-scsi LLD + vhost-scsi fabric endpoints. The patch series is available at: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target

[RFCv2 5/7] vhost/scsi: Enable T10 PI IOV -> SGL memory mapping

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates vhost_scsi_handle_vq() to check for the existance of virtio_scsi_cmd_req_pi comparing vq->iov[0].iov_len in order to calculate seperate data + protection SGLs from data_num. Also update tcm_vhost_submission_work() to pass the pre-allocated cmd->tvc_pro

[RFCv2 3/7] vhost/scsi: Add preallocation of protection SGLs

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates tcm_vhost_make_nexus() to pre-allocate per descriptor tcm_vhost_cmd->tvc_prot_sgl[] used to expose protection SGLs from within virtio-scsi guest memory to vhost-scsi. Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Martin K. Petersen Cc: Christoph Hell

[RFCv2 4/7] vhost/scsi: Add T10 PI IOV -> SGL memory mapping logic

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds vhost_scsi_map_iov_to_prot() to perform the mapping of T10 data integrity memory between virtio iov + struct scatterlist using get_user_pages_fast() following existing code. As with vhost_scsi_map_iov_to_sgl(), this does sanity checks against the total pr

[RFCv2 6/7] vhost/scsi: Add new VIRTIO_SCSI_F_T10_PI feature bit

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a VIRTIO_SCSI_F_T10_PI feature bit for signaling host support of accepting T10 protection information SGLs from virtio-scsi guest. Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Martin K. Petersen Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Sagi Grim

[RFCv2 2/7] vhost/scsi: Move sanity check into vhost_scsi_map_iov_to_sgl

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Move the overflow check for sgl_count > TCM_VHOST_PREALLOC_SGLS into vhost_scsi_map_iov_to_sgl() so that it's based on the total number of SGLs for all IOVs, instead of single IOVs. Also, rename TCM_VHOST_PREALLOC_PAGES -> TCM_VHOST_PREALLOC_UPAGES to better describe poi

[RFCv2 7/7] virtio-scsi: Enable DIF/DIX modes in SCSI host LLD

2014-03-16 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates virtscsi_probe() to setup necessary Scsi_Host level protection resources. (currently hardcoded to 1) It changes virtscsi_add_cmd() to attach outgoing / incoming protection SGLs preceeding the data payload, and is using the new virtio_scsi_cmd_req_pi->d

Re: [PATCH v4 1/1] drm/i915: Enabling 128x128 and 256x256 ARGB Cursor Support

2014-03-16 Thread Sagar Arun Kamble
Gentle reminder for reviewing this and i-g-t patch. On Mon, 2014-03-10 at 17:06 +0530, sagar.a.kam...@intel.com wrote: > From: Sagar Kamble > > With this patch we allow larger cursor planes of sizes 128x128 > and 256x256. > > v2: Added more precise check on size while setting cursor plane. > >

Re: [PATCH] virtio-blk: make the queue depth the max supportable by the hypervisor

2014-03-16 Thread tytso
On Mon, Mar 17, 2014 at 11:12:15AM +1030, Rusty Russell wrote: > > Note that with indirect descriptors (which is supported by Almost > Everyone), we can actually use the full index, so this value is a bit > pessimistic. But it's OK as a starting point. So is this something that can go upstream w

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

2014-03-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in drivers/clocksource/Kconfig between commit 3f8e8cee2f4b ("clocksource: qcom: Move clocksource code out of mach-msm") from the arm-soc tree and commit fd3f1270d237 ("clocksource: Add Kconfig entries for CMT, MTU2, TMU and STI") from

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

2014-03-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/arm/mach-zynq/Kconfig between commit ddb902cc3459 ("ARM: centralize common multi-platform kconfig options") from the arm-soc tree and commit cd325295871f ("arm: zynq: Add support for cpufreq") from the tip tree. I fixed it up

Re: [PATCHv2 3/8] devfreq: exynos4: Add ppmu's clock control and code clean about regulator control

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/17/2014 11:51 AM, Chanwoo Choi wrote: > Hi Tomasz, > > On 03/15/2014 02:42 AM, Tomasz Figa wrote: >> Hi Chanwoo, >> >> On 13.03.2014 09:17, Chanwoo Choi wrote: >>> There are not the clock controller of ppmudmc0/1. This patch control the >>> clock >>> of ppmudmc0/1 which is used

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

2014-03-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/arm/mach-shmobile/Kconfig between commit 4a51856b4267 ("ARM: shmobile: Use 64-bit dma_addr_t on r8a7790/r8a7791") from the renesas tree and commit aeb8fb7910fc ("ARM: shmobile: Remove CMT, TMU and STI Kconfig entries") from th

[RFC PATCH v2] edac: synopsys: Added EDAC support for zynq ddr ecc controller

2014-03-16 Thread Punnaiah Choudary Kalluri
Added EDAC support for reporting the ecc errors of synopsys ddr controller. The ddr ecc controller corrects single bit errors and detects double bit errors Signed-off-by: Punnaiah Choudary Kalluri --- Changes for v2: - Updated the commit header and message - Renamed the filenames to synopsys_edac

Re: [PATCHv2 8/8] devfreq: exynos4: Add busfreq driver for exynos4210/exynos4x12

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/15/2014 02:35 AM, Tomasz Figa wrote: > Hi Chanwoo, Mark, > > On 14.03.2014 11:56, Chanwoo Choi wrote: >> Hi Mark, >> >> On 03/14/2014 07:35 PM, Mark Rutland wrote: >>> On Fri, Mar 14, 2014 at 07:14:37AM +, Chanwoo Choi wrote: Hi Mark, On 03/14/2014 02:53 AM, Ma

Re: [PATCHv2 4/8] devfreq: exynos4: Fix bug of resource leak and code clean on probe()

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/15/2014 02:49 AM, Tomasz Figa wrote: > Hi Chanwoo, > > On 13.03.2014 09:17, Chanwoo Choi wrote: >> This patch fix bug about resource leak when happening probe fail and code >> clean >> to add debug message. >> >> Signed-off-by: Chanwoo Choi >> --- >> drivers/devfreq/exynos/ex

Re: [PATCH] virtio-blk: make the queue depth configurable

2014-03-16 Thread Joe Perches
On Mon, 2014-03-17 at 14:25 +1030, Rusty Russell wrote: > Erk, our tests are insufficient. Testbuilding an allmodconfig with this > now: Good idea. > diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h [] > @@ -188,6 +188,9 @@ struct kparam_array > /* Default value inst

[Question] Linux CFS sched_entity

2014-03-16 Thread lwcheng
Hi, I am studying Linux CFS recently. After numerous searches, I am still unable to get rid of the following question. Finally I decide to bother this group for the answer. In group scheduling, sched_entity can represent both "task group" and "task", indicated by "se->my_q". When CFS tries to pi

Re: [PATCH 1/5] perf tests: Add tip/pid mmap automated tests

2014-03-16 Thread Namhyung Kim
Hi Jiri, On Fri, 14 Mar 2014 15:00:02 +0100, Jiri Olsa wrote: > +static int thread_init(struct thread_data *td) > +{ > + void *map; > + > + map = mmap(NULL, page_size, PROT_READ|PROT_WRITE, > +MAP_SHARED|MAP_ANONYMOUS, -1, 0); Shouldn't it be an executable mapping to be fo

Re: [PATCH] ARM: zynq: Add OCM driver

2014-03-16 Thread Olof Johansson
On Wed, Mar 12, 2014 at 01:00:51PM +0100, Michal Simek wrote: > Hi Olof, > > >> diff --git a/Documentation/devicetree/bindings/arm/zynq/xlnx,zynq-ocm.txt > >> b/Documentation/devicetree/bindings/arm/zynq/xlnx,zynq-ocm.txt > >> new file mode 100644 > >> index 000..64cb5e8 > >> --- /dev/null >

Re: [PATCH] dma: Add Keystone Packet DMA Engine driver

2014-03-16 Thread Vinod Koul
On Thu, Mar 13, 2014 at 05:16:52AM +0800, Santosh Shilimkar wrote: > On Thursday 13 March 2014 12:00 AM, Vinod Koul wrote: > > On Wed, Mar 12, 2014 at 03:50:32AM +0800, Santosh Shilimkar wrote: > >> On Tuesday 11 March 2014 06:23 PM, Vinod Koul wrote: > >>> On Fri, Feb 28, 2014 at 05:56:40PM -0500,

Re: [PATCH] virtio-blk: make the queue depth configurable

2014-03-16 Thread Rusty Russell
Theodore Ts'o writes: > On Fri, Mar 14, 2014 at 10:38:40AM -0700, Joe Perches wrote: >> > +static int queue_depth = 64; >> > +module_param(queue_depth, int, 444); >> >> 444? Really Ted? > > Oops, *blush*. Thanks for catching that. Erk, our tests are insufficient. Testbuilding an allmodconfig

Re: [RFA][PATCH 3/4] tracing/module: Remove include of tracepoint.h from module.h

2014-03-16 Thread Rusty Russell
Steven Rostedt writes: > On Wed, 26 Feb 2014 14:01:43 -0500 > Hi Rusty, > > This patch doesn't need to be stable, and can wait till v3.15. But I > have other patches that will break with this patch (headers that needed > to include tracepoint.h and not depend on a header chain to include it). > >

Re: [PATCH v3] module: LLVMLinux: Remove unused function warning from __param_check macro

2014-03-16 Thread Rusty Russell
beh...@converseincode.com writes: > From: Mark Charlebois > > This code makes a compile time type check that is optimized away. Clang > complains that it generates an unused function: Thanks, applied. Cheers, Rusty. > > linux/kernel/panic.c:471:1: warning: unused function '__check_panic' >

Re: [PATCH v2 2/2] kallsyms: handle special absolute symbols

2014-03-16 Thread Rusty Russell
Kees Cook writes: > On Wed, Mar 12, 2014 at 8:40 PM, Rusty Russell wrote: >> Kees Cook writes: >>> Why not just do this with 0-base-address detection like my v2? That >>> would mean we don't need to remember to add this flag in the future to >>> imagined new architectures that might want this 0-

Re: mmotm 2014-03-10-15-35 uploaded (virtio_balloon)

2014-03-16 Thread Rusty Russell
Josh Triplett writes: > On Tue, Mar 11, 2014 at 12:31:33PM -0700, Andrew Morton wrote: > I'd love to do that, but as far as I can tell, VIRTIO_BALLOON has gone > out of its way to support !CONFIG_BALLOON_COMPACTION. > > Could someone who works on VIRTIO_BALLOON provide some details here > about th

Re: [Xen-devel] [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-16 Thread H. Peter Anvin
On 03/16/2014 09:12 PM, Sarah Newman wrote: > > Unconditional eager allocation works. Can xen users count on this being > included and applied to the > stable kernels? > I don't know. If we state that it is a bug fix for Xen it might be possible, but it would be up to Greg (Cc:'d) and the rest

[RFC PATCH 1/2] ACPICA: Dispatcher: Ignore SyncLevel for auto-serialization mechanism.

2014-03-16 Thread Lv Zheng
From: Robert Moore It is reported that the auto-serialization mechanism has broken some machine. This patch fixes the issues by igoring the SyncLevel attribute of the marked Method. References: http://www.spinics.net/lists/linux-acpi/msg49496.html Reported-by: Valdis Kletnieks Reported-by: Sab

[RFC PATCH 2/2] ACPI: Default disable auto-serialization.

2014-03-16 Thread Lv Zheng
This feature enabled by the following commit is still under development. Commit: cd52379678785b02d7a357988cfba214fdaf92f4 Subject: ACPICA: Add global option to disable method auto-serialization. This change adds an option to disable the auto-serialization of methods that create named objec

Re: [PATCH] drm/exynos: Fix (more) freeing issues in exynos_drm_drv.c

2014-03-16 Thread Sachin Kamat
Hi Daniel, Thanks for the patch. On 17 March 2014 08:58, Daniel Kurtz wrote: > The following commit [0] fixed a use-after-free, but left the subdrv open > in the error path. > > [0] commit 6ca605f7c70895a35737435f17ae9cc5e36f1466 > drm/exynos: Fix freeing issues in exynos_drm_drv.c > > Signed-of

[RFC PATCH 0/2] ACPICA: Updates for auto-serialization mechanism.

2014-03-16 Thread Lv Zheng
It is reported that the auto-serialization mechanism has broken some machine. A patch in this series tries to fix the reported issue, it is sent to the reporter for verification, thus marked as RFC. Since this feature may still need to be validated, we can disable it temporarily in order not to b

Re: [Xen-devel] [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-16 Thread Sarah Newman
On 03/16/2014 08:43 PM, H. Peter Anvin wrote: > On 03/16/2014 08:35 PM, Sarah Newman wrote: >> Can you please review my patch first? It's only enabled when absolutely >> required. > > It doesn't help. It means you're running on Xen, and you will have > processes subjected to random SIGKILL beca

[PATCH v2 3/3] kmemleak: change some global variables to int

2014-03-16 Thread Li Zefan
They don't have to be atomic_t, because they are simple boolean toggles. Signed-off-by: Li Zefan --- mm/kmemleak.c | 78 +-- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 54270f2..c352c6

[PATCH v2 2/3] kmemleak: remove redundant code

2014-03-16 Thread Li Zefan
- remove kmemleak_padding(). - remove kmemleak_release(). Signed-off-by: Li Zefan --- include/linux/kmemleak.h | 2 -- mm/kmemleak.c| 7 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/include/linux/kmemleak.h b/include/linux/kmemleak.h index 2a5e554..5bb4246 10

[PATCH v2 1/3] kmemleak: allow freeing internal objects after kmemleak was disabled

2014-03-16 Thread Li Zefan
Currently if kmemleak is disabled, the kmemleak objects can never be freed, no matter if it's disabled by a user or due to fatal errors. Those objects can be a big waste of memory. OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME 1200264 1197433 99%0.30K 46164 26369312K

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

2014-03-16 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in fs/bio-integrity.c between commit eec70897d81b ("bio-integrity: Drop bio_integrity_verify BUG_ON in post bip->bip_iter world") from Linus' tree and commit bf36f9cfa6d3 ("fs/bio-integrity: remove duplicate code") from the block t

Re: [PATCH] spi: sc18is602: Don't be that restrictive with the maximum transfer speed

2014-03-16 Thread Guenter Roeck
On 03/16/2014 07:07 PM, Axel Lin wrote: 2014-03-17 9:47 GMT+08:00 Guenter Roeck : Commit 09e99bca8 (spi: sc18is602: Convert to let spi core validate transfer speed) made the maximum transfer speed much more restrictive than before. The transfer speed used to be adjusted to 1/4 of the chip clock

RE: [PATCH v3 0/4] ASoC: simple-card: multi DAI links extension

2014-03-16 Thread li.xi...@freescale.com
> Subject: [PATCH v3 0/4] ASoC: simple-card: multi DAI links extension > > This patch series extends the simple card driver to handle > many DAI links as this exists in the Cubox audio subsystem. > > -v3 > - remove 'Fix the reference count of device nodes' > which is applied (

Apsveicam Uzvarētājs - Ref Nē: Sp/229/0-01/07/5-02/ES.

2014-03-16 Thread Terry K. Halladay
Apsveicam Uzvarētājs - Ref Nē: Sp/229/0-01/07/5-02/ES. Jūsu e-pasts ID ir tikko ieguva € 450,000.00 Eiro(četri simti piecdesmit tūkstoši. Eiro) uz Uplift Starptautiskā Labdarības programma. Ref Nr Sp/229/0-01/07/5-02/ES. Lucky Nr 9/11/13/24/40. Lai iegūtu vairāk informācijas un kontaktu pra

Re: [Xen-devel] [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-16 Thread H. Peter Anvin
On 03/16/2014 08:35 PM, Sarah Newman wrote: > Can you please review my patch first? It's only enabled when absolutely > required. It doesn't help. It means you're running on Xen, and you will have processes subjected to random SIGKILL because they happen to touch the FPU when the atomic pool is

Re: [Xen-devel] [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-16 Thread Sarah Newman
Can you please review my patch first? It's only enabled when absolutely required. On 03/16/2014 08:33 PM, H. Peter Anvin wrote: > No, the right thing is to unf*ck the Xen braindamage and use eagerfpu as a > workaround for the legacy hypervisor versions. > > GFP_ATOMIC -> SIGKILL is definitely

Re: [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-16 Thread H. Peter Anvin
No, the right thing is to unf*ck the Xen braindamage and use eagerfpu as a workaround for the legacy hypervisor versions. GFP_ATOMIC -> SIGKILL is definitely a NAK. On March 16, 2014 8:13:05 PM PDT, Sarah Newman wrote: >On 03/10/2014 10:15 AM, David Vrabel wrote: >> On 10/03/14 16:40, H. Peter

[PATCH] drm/exynos: Fix (more) freeing issues in exynos_drm_drv.c

2014-03-16 Thread Daniel Kurtz
The following commit [0] fixed a use-after-free, but left the subdrv open in the error path. [0] commit 6ca605f7c70895a35737435f17ae9cc5e36f1466 drm/exynos: Fix freeing issues in exynos_drm_drv.c Signed-off-by: Daniel Kurtz --- Hi, I noticed this when reviewing some recent patches. I am only abl

[PATCH] drm/exynos: Fix (more) freeing issues in exynos_drm_drv.c

2014-03-16 Thread Daniel Kurtz
The following commit [0] fixed a use-after-free, but left the subdrv open in the error path. [0] commit 6ca605f7c70895a35737435f17ae9cc5e36f1466 drm/exynos: Fix freeing issues in exynos_drm_drv.c Change-Id: I452e944bf090fb11434d9e34213c890c41c15d73 Signed-off-by: Daniel Kurtz --- drivers/gpu/dr

[PATCH] x86, fpu, xen: Allocate fpu state for xen pv based on PVABI behavior

2014-03-16 Thread Sarah Newman
The xen PVABI dictates that CR0 TS will be automatically cleared for the device not available trap. This means it is not safe to task switch with the default PVABI behavior. One method of working around this is to disallow scheduling when allocating memory for the fpu state, but in extremely low

Re: [ PATCH 0/8] sched: remove cpu_load array

2014-03-16 Thread Alex Shi
On 03/13/2014 01:57 PM, Alex Shi wrote: > In the cpu_load decay usage, we mixed the long term, short term load with > balance bias, randomly pick a big/small value from them according to balance > destination or source. This mix is wrong, the balance bias should be based > on task moving cost betw

Re: [PATCHv1] x86: don't schedule when handling #NM exception

2014-03-16 Thread Sarah Newman
On 03/10/2014 10:15 AM, David Vrabel wrote: > On 10/03/14 16:40, H. Peter Anvin wrote: >> On 03/10/2014 09:17 AM, David Vrabel wrote: >>> math_state_restore() is called from the #NM exception handler. It may >>> do a GFP_KERNEL allocation (in init_fpu()) which may schedule. >>> >>> Change this all

Re: [PATCH 1/3] kmemleak: allow freeing internal objects after disabling kmemleak

2014-03-16 Thread Li Zefan
On 2014/3/13 20:14, Catalin Marinas wrote: > On Thu, Mar 13, 2014 at 06:47:46AM +, Li Zefan wrote: >> +Freeing kmemleak internal objects >> +- >> + >> +To allow access to previosuly found memory leaks even when an error fatal >> +to kmemleak happens, internal kme

Re: Re: [PATCH V3] serial/uart/8250: Add tunable RX interrupt trigger I/F of FIFO buffers

2014-03-16 Thread Yoshihiro YUNOMAE
Hi Heikki, Thank you for your reply. (2014/03/14 23:16), Heikki Krogerus wrote: Hi, On Fri, Mar 14, 2014 at 11:21:54AM +0900, Yoshihiro YUNOMAE wrote: void serial8250_clear_and_reinit_fifos(struct uart_8250_port *p) { - unsigned char fcr; - serial8250_clear_fifos(p); -

Re: [PATCHv2 6/8] devfreq: exynos4: Fix power-leakage of clock on suspend state

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/15/2014 02:52 AM, Tomasz Figa wrote: > Hi Chanwoo, > > On 13.03.2014 09:17, Chanwoo Choi wrote: >> This patch disable ppmu clocks before entering suspend state to remove >> power-leakage and enable ppmu clocks on resume function. > > I don't think there is any need for this, bec

Re: [PATCHv2 3/8] devfreq: exynos4: Add ppmu's clock control and code clean about regulator control

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/15/2014 02:42 AM, Tomasz Figa wrote: > Hi Chanwoo, > > On 13.03.2014 09:17, Chanwoo Choi wrote: >> There are not the clock controller of ppmudmc0/1. This patch control the >> clock >> of ppmudmc0/1 which is used for monitoring memory bus utilization. >> >> Also, this patch code

You have received 1.5m pounds as donation see link www.bbc.co.uk/news/uk-england-19254228 send name address and phone number for info

2014-03-16 Thread Adrian Gillian Bayford
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] fixing some coding style issues on line6 driver.c

2014-03-16 Thread Davide Berardi
Thanks for your replies, I've applied your suggestions to the patch. Davide Fixed some line over 80 characters. From: Davide Berardi Signed-off-by: Davide Berardi --- drivers/staging/line6/driver.c | 54 ++--- drivers/staging/line6/usbdefs.h | 2 +- 2 f

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

2014-03-16 Thread Stephen Rothwell
Hi Jiri, Today's linux-next merge of the hid tree got a conflict in drivers/hid/i2c-hid/i2c-hid.c between commit 9d27f43274e4 ("HID: fix buffer allocations") from Linus' tree and commit 649f94790314 ("HID: i2c-hid: use generic .request() implementation") from the hid tree. I fixed it up (the latt

[f2fs-dev] [PATCH] f2fs: print type for each segment in segment_info's show

2014-03-16 Thread Chao Yu
The original segment_info's show looks out-of-format: cat /proc/fs/f2fs/loop0/segment_info 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 512 512 512 512 512 512 512 512 0 0 512 348 0 263 0 0 512 0 0 512 512

Linux 3.14-rc7

2014-03-16 Thread Linus Torvalds
What a difference a week makes. In a good way. A week ago, cutting rc6, I was not a happy person: the release had much too much noise in it, and I felt that an rc8 and even an rc9 might well be a real possibility. Now it's a week later, and rc7 looks much better. Yeah, there's random stuff all ove

RE: [f2fs-dev] [PATCH 3/5] f2fs: format segment_info's show for better legibility

2014-03-16 Thread Chao Yu
Hi Gu, > -Original Message- > From: Gu Zheng [mailto:guz.f...@cn.fujitsu.com] > Sent: Thursday, March 13, 2014 5:58 PM > To: Chao Yu > Cc: 'Kim'; 'linux-kernel'; 'f2fs' > Subject: Re: [f2fs-dev] [PATCH 3/5] f2fs: format segment_info's show for > better legibility > > Hi, > On 03/13/2014

Re: [PATCH][RESEND 3] hwrng: add randomness to system from rng sources

2014-03-16 Thread H. Peter Anvin
On 03/04/2014 02:39 PM, Matt Mackall wrote: > > [temporarily coming out of retirement to provide a clue] > > The pool mixing function is intentionally _reversible_. This is a > crucial security property. > > That means, if I have an initial secret pool state X, and hostile > attacker controlled

Re: [sched/balance] BUG: unable to handle kernel paging request at ffffffff00000058

2014-03-16 Thread Alex Shi
On 03/15/2014 09:46 AM, Fengguang Wu wrote: > Alex, we noticed the below changes in > > https://github.com/alexshi/power-scheduling.git single-balance > commit e1f728f230025ba2f2ed71e19b156291f53b68fe ("sched/balance: replace > idle_balance") > Thanks a lot for your data! But I am wondering if

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-03-16 Thread Madper Xie
Raghavendra K T writes: > On 02/18/2014 03:19 PM, Jan Kara wrote: >> On Tue 18-02-14 12:55:38, Raghavendra K T wrote: >>> Currently max_sane_readahead() returns zero on the cpu having no local >>> memory node >>> which leads to readahead failure. Fix the readahead failure by returning >>> minim

Re: [PATCH] spi: sc18is602: Don't be that restrictive with the maximum transfer speed

2014-03-16 Thread Axel Lin
2014-03-17 9:47 GMT+08:00 Guenter Roeck : > Commit 09e99bca8 (spi: sc18is602: Convert to let spi core validate > transfer speed) made the maximum transfer speed much more restrictive > than before. The transfer speed used to be adjusted to 1/4 of the chip > clock rate if a higher transfer speed was

Re: [PATCHv2 0/8] devfreq: exynos4: Support dt and use common ppmu driver

2014-03-16 Thread Chanwoo Choi
Hi Tomasz, On 03/15/2014 02:58 AM, Tomasz Figa wrote: > Hi Chanwoo, > > On 13.03.2014 09:17, Chanwoo Choi wrote: >> This patchset support devicetree and use common ppmu driver instead of >> individual code of exynos4_bus.c to remove duplicate code. Also this patchset >> get the resources for busf

Re: [PATCHv2 0/8] devfreq: exynos4: Support dt and use common ppmu driver

2014-03-16 Thread Chanwoo Choi
Hi, On 03/14/2014 07:47 PM, Bartlomiej Zolnierkiewicz wrote: > On Friday, March 14, 2014 12:14:03 PM Chanwoo Choi wrote: >> Hi, >> >> On 03/14/2014 01:43 AM, Bartlomiej Zolnierkiewicz wrote: >>> >>> Hi, >>> >>> On Thursday, March 13, 2014 05:17:21 PM Chanwoo Choi wrote: This patchset support d

  1   2   3   >