Re: [PATCH] tpm, tpm_crb: fix le64_to_cpu conversions in crb_acpi_add()

2015-06-09 Thread Jarkko Sakkinen
On Tue, Jun 09, 2015 at 10:22:40AM -0600, Jason Gunthorpe wrote: > On Tue, Jun 09, 2015 at 02:36:49PM +0300, Jarkko Sakkinen wrote: > > Needs a commit message, bug description, Fixes: header and does it go > to -stable ? > > > Reported-by: Matt Fleming > > Signed-off-by: Jarkko Sakkinen > >

[PATCH V2] checkpatch: Add some _destroy functions to NEEDLESS_IF tests

2015-06-09 Thread Joe Perches
Sergey Senozhatsky has modified several destroy functions that can now be called with NULL values. - kmem_cache_destroy() - mempool_destroy() - dma_pool_destroy() Update checkpatch to warn when those functions are preceded by an if. Update checkpatch to --fix all the calls too only when the

Re: [PATCH] regulator: core: fix constraints output buffer

2015-06-09 Thread Stefan Wahren
> Mark Brown hat am 10. Juni 2015 um 01:22 geschrieben: > > > On Tue, Jun 09, 2015 at 08:09:42PM +, Stefan Wahren wrote: > > The buffer for condtraints debug isn't big enough to hold the output > > in all cases. So fix this issue by increasing the buffer. > > Applied, thanks. Will you send a

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Julia Lawall
> > Well I like it, even though it's going to cause a zillion little cleanup > > patches. Actually only at most 87. There are some functions that look quite a bit nicer with the change, like: void jffs2_destroy_slab_caches(void) { - if(full_dnode_slab) -

Re: [PATCH v5 1/2] watchdog_core: Add watchdog registration deferral mechanism

2015-06-09 Thread Guenter Roeck
On 06/09/2015 09:55 AM, Jean-Baptiste Theou wrote: Currently, watchdog subsystem require the misc subsystem to register a watchdog. This may not be the case in case of an early registration of a watchdog, which can be required when the watchdog cannot be disabled. This patch introduces a

Re: [PATCH v5 2/2] gpio_wdt: Add option for early registration

2015-06-09 Thread Guenter Roeck
On 06/09/2015 09:55 AM, Jean-Baptiste Theou wrote: In some situation, mainly when it's not possible to disable a watchdog, you may want the watchdog driver to be started as soon as possible. Adding GPIO_WATCHDOG_ARCH_INITCALL to raise initcall from module_init to arch_initcall. This patch

[PATCH] atm: idt77105: Use setup_timer

2015-06-09 Thread Vaishali Thakkar
Use the timer API function setup_timer instead of structure field assignments to initialize a timer. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @change@ expression e1, e2, a; @@ -init_timer(); +setup_timer(, a, 0UL); ... when != a = e2

Re: [PATCH 2/2] scatterlist: cleanup sg_chain() and sg_unmark_end()

2015-06-09 Thread Herbert Xu
On Tue, Jun 09, 2015 at 12:27:15PM -0400, Dan Williams wrote: > > +#define scatterwalk_sg_chain(prv, num, sgl) sg_chain(prv, num, sgl) > +#define scatterwalk_sg_next(sgl) sg_next(sgl) Why are you reintroducing the scatterwalk_sg_next macro that we just removed? I also don't

ftrace question

2015-06-09 Thread Tariq Saeed
Hi, I apologize for the wide audience but I did not get response. How to see the args passed to for example trace_ocfs2_dentry_attach_loc() using /sys/kernel/debug/tracing. I can only see function names and parent fn ls-4530 [000] 10532818.195802: ocfs2_dentry_attach_lock

Re: [RFC PATCH] usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes

2015-06-09 Thread Kishon Vijay Abraham I
Hi, On Tuesday 09 June 2015 10:54 PM, Alan Stern wrote: On Tue, 9 Jun 2015, Kishon Vijay Abraham I wrote: But with a bounce buffer that's only 512 bytes long, you can never send an entire packet's worth of data. If the bounce buffer is 1024 bytes for control endpoint, 512 bytes should be

Re: [PATCHv2] ARM: exynos_defconfig: Enable CONFIG_SND_SOC_ODROIDX2 for Odroid-XU3

2015-06-09 Thread Krzysztof Kozlowski
On 09.06.2015 13:07, Anand Moon wrote: > Enable CONFIG_SND_SOC_ODROIDX2 and CONFIG_SND_SIMPLE_CARD to enable > sound on Odroid-XU3 board using the max98090 audio codec. > > Signed-off-by: Anand Moon > Reviewed-by: Lukasz Majewski > --- > Changes v2: Fixed the commit log. > > Signed-off-by:

Re: [PATCH 3.18 000/178] 3.18.15-review

2015-06-09 Thread Guenter Roeck
On Tue, Jun 09, 2015 at 10:17:11AM -0700, Kevin Hilman wrote: > Hi Sasha, > > On Mon, Jun 8, 2015 at 6:39 AM, Sasha Levin wrote: > > This is the start of the stable review cycle for the 3.18.15 release. > > There are 178 patches in this series, all will be posted as a response > > to this one.

Re: A race condition between debugfs and seq_file operation

2015-06-09 Thread gre...@linuxfoundation.org
On Wed, Jun 10, 2015 at 05:00:03AM +, Lisa Du wrote: > > -Original Message- > > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > Sent: 2015年6月10日 5:12 > > To: Lisa Du > > Cc: linux-kernel@vger.kernel.org > > Subject: Re: A race condition between debugfs and

Re: [PATCH RFC] net: phy: Introduced the PHY_AN_PENDING state

2015-06-09 Thread Florian Fainelli
Le 06/09/15 21:36, Keng Soon Cheah a écrit : > The PHY_AN_PENDING state is put as a gate to enter the PHY_AN state > where it will wait for any uncomplete auto-negotiation session to > finish before starting a new one. > > This extra state could be used to workaround some auto-negotation > issues

Re: [RFC PATCH] powerpc/numa: initialize distance lookup table from drconf path

2015-06-09 Thread Nikunj A Dadhania
Reworded commit log: From: Nikunj A Dadhania powerpc/numa: initialize distance lookup table from drconf path In some situations, a NUMA guest that supports ibm,dynamic-memory-reconfiguration node will end up having flat NUMA distances between nodes. This is because of two problems in the

RE: A race condition between debugfs and seq_file operation

2015-06-09 Thread Lisa Du
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: 2015年6月10日 5:12 > To: Lisa Du > Cc: linux-kernel@vger.kernel.org > Subject: Re: A race condition between debugfs and seq_file operation > > On Mon, Jun 08, 2015 at 04:28:10AM +, Lisa Du

Re: [PATCH] ACPI / init: Switch over platform to the ACPI mode later

2015-06-09 Thread joeyli
On Wed, Jun 10, 2015 at 01:48:29AM +0200, Rafael J. Wysocki wrote: > On Wednesday, June 03, 2015 11:13:57 AM Toshi Kani wrote: > > On Sat, 2015-05-30 at 14:21 +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Commit 73f7d1ca3263 "ACPI / init: Run acpi_early_init() before

Re: [PATCH v14 4/4] cgroup: implement the PIDs subsystem

2015-06-09 Thread Tejun Heo
On Tue, Jun 09, 2015 at 09:32:10PM +1000, Aleksa Sarai wrote: > Adds a new single-purpose PIDs subsystem to limit the number of > tasks that can be forked inside a cgroup. Essentially this is an > implementation of RLIMIT_NPROC that applies to a cgroup rather than a > process tree. > > However,

[RFC PATCH] powerpc/numa: initialize distance lookup table from drconf path

2015-06-09 Thread Nikunj A Dadhania
Node distance will not get initialized in certain cases as dynamic-reconfiguration path does not initialize the lookup table. There is an assumption about the associativity list in initialize_distance_lookup_table(). Associativity list has two forms: a) [cpu,memory]@x/ibm,associativity has

Re: [PATCH v14 1/4] cgroup: fix uninitialised iterator in for_each_subsys_which

2015-06-09 Thread Tejun Heo
On Tue, Jun 09, 2015 at 09:32:07PM +1000, Aleksa Sarai wrote: > Fix the fact that @ssid is uninitialised in the case where > CGROUP_SUBSYS_COUNT = 0 by setting ssid to 0. > > Fixes: cb4a31675270 ("cgroup: use bitmask to filter for_each_subsys") > Signed-off-by: Aleksa Sarai Applied to

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Joe Perches
On Tue, 2015-06-09 at 19:17 -0700, Andrew Morton wrote: > On Tue, 9 Jun 2015 21:00:58 -0500 (CDT) Christoph Lameter > wrote: > > On Tue, 9 Jun 2015, Andrew Morton wrote: > > > > Why do this at all? > > Did some grepping and I did see some call sites that do this but the > > majority has to do

Re: [PATCH] libata: finally use __initconst in ata_parse_force_one()

2015-06-09 Thread Tejun Heo
On Tue, Jun 09, 2015 at 03:33:19PM +0200, Rasmus Villemoes wrote: > Just six days after this FIXME was added seven years ago, Sam Ravnborg > added the missing feature (37c514e3dfc8 "Add missing init section > definitions"), though it ended up being called __initconst. > > Let's use it; better

[PATCH 0/2] Fixup lusre ll_getname

2015-06-09 Thread green
From: Oleg Drokin Some time ago Al Viro noticed that lustre ll_getname is broken. At the time a patch was submitted to convert lustre to use exported getname, that was rejected by hch on the grounds that filesystem code sould not really be reimplementing their own lookups which kind of made

[PATCH 1/2] staging/lustre/llite: remove LL_IOC_REMOVE_ENTRY handler

2015-06-09 Thread green
From: Oleg Drokin It uses getname in unsafe manner and since it's to deal with corrupted or inconsistent filesystem, we are probably better to deal with it from lfsck anyway. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/dir.c | 29 - 1 file

[PATCH 2/2] staging/lustre/llite: fix ll_getname user buffer copy

2015-06-09 Thread green
From: Oleg Drokin strncpy_from_user could return negative values on error, so need to take those into account. Since ll_getname is used to get a single component name from userspace to transfer to server as-is, there's no need to allocate 4k buffer as done by __getname. Allocate NAME_MAX+1

[PATCH] checkpatch: Add some _destroy functions to NEEDLESS_IF tests

2015-06-09 Thread Joe Perches
Sergey Senozhatsky has modified several destroy functions that can now be called with NULL values. - kmem_cache_destroy() - mempool_destroy() - dma_pool_destroy() Update checkpatch to warn when those functions are preceded by an if. Update checkpatch to --fix all the calls too only when the

[PATCH RFC] net: phy: Introduced the PHY_AN_PENDING state

2015-06-09 Thread Keng Soon Cheah
The PHY_AN_PENDING state is put as a gate to enter the PHY_AN state where it will wait for any uncomplete auto-negotiation session to finish before starting a new one. This extra state could be used to workaround some auto-negotation issues from certain vendors. an_pending_timeout module

Re: [RFC PATCH 07/18] kthread: Make iterant kthreads freezable by default

2015-06-09 Thread Tejun Heo
Hello, Petr. On Tue, Jun 09, 2015 at 05:53:13PM +0200, Petr Mladek wrote: > I think that the interaction with the hardware should be the reason to > make them properly freezable. In the current state they are stopped at > some random place, they might either miss some event from the hardware > or

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-09 Thread Fu Wei
Hi Guenter, On 10 June 2015 at 11:41, Fu Wei wrote: > Hi Guenter, > > On 10 June 2015 at 00:45, Guenter Roeck wrote: >> On 06/09/2015 09:29 AM, Timur Tabi wrote: >>> >>> On 06/09/2015 11:22 AM, Guenter Roeck wrote: but I see your point. Essentially, the specification is

[PATCH] Doc:pps: Fix typo in pps.txt

2015-06-09 Thread Masanari Iida
This patch fix a spelling typo in Documentation/pps/pps.txt Signed-off-by: Masanari Iida --- Documentation/pps/pps.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/pps/pps.txt b/Documentation/pps/pps.txt index c03b1be..a811307 100644 ---

[PATCH char-misc-next 2/2] misc: mic: Fix reported static checker warning

2015-06-09 Thread Sudeep Dutt
Delete unnecessary prints resulting in an "spdev could be null" warning from a static checker in scif_peer_remove(..). Reported-by: Dan Carpenter Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_main.c | 4 1 file changed, 4 deletions(-) diff --git

Re: [PATCH] treewide: Fix typo compatability -> compatibility

2015-06-09 Thread Masanari Iida
On Wed, Jun 10, 2015 at 7:27 AM, Mauro Carvalho Chehab wrote: > Em Wed, 27 May 2015 15:05:42 +0300 > Laurent Pinchart escreveu: > >> Even though 'compatability' has a dedicated entry in the Wiktionary, >> it's listed as 'Mispelling of compatibility'. Fix it. >> >> Signed-off-by: Laurent Pinchart

[PATCH char-misc-next 0/2] misc: mic: bug fixes

2015-06-09 Thread Sudeep Dutt
This patch series fixes reported issues including a randconfig build error and a warning from a static checker. Sudeep Dutt (2): misc: mic: Fix randconfig build error by including errno.h misc: mic: Fix reported static checker warning drivers/misc/mic/scif/scif_main.c | 4

[PATCH char-misc-next 1/2] misc: mic: Fix randconfig build error by including errno.h

2015-06-09 Thread Sudeep Dutt
This issue was reported @ https://lkml.org/lkml/2015/6/9/731 Reported-by: Jim Davis Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_rb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/mic/scif/scif_rb.c b/drivers/misc/mic/scif/scif_rb.c

Re: [RFC PATCH v6 25/32] perf tools: Add 'bpf.' config section to perf default config

2015-06-09 Thread Alexei Starovoitov
On 6/9/15 7:23 PM, Wangnan (F) wrote: I'll embed this script in my next version. fine, let's use the script for now and inform the user that they would need to manually copy the flags into .perfconfig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH v4 5/7] Watchdog: introduce ARM SBSA watchdog driver

2015-06-09 Thread Fu Wei
Hi Guenter, On 10 June 2015 at 00:45, Guenter Roeck wrote: > On 06/09/2015 09:29 AM, Timur Tabi wrote: >> >> On 06/09/2015 11:22 AM, Guenter Roeck wrote: >>> >>> >>> >>> but I see your point. Essentially, the specification is broken >>> for all practical purposes, since, as you point out,

Re: [PATCH 2/2] cpufreq: mediatek: Add MT8173 cpufreq driver

2015-06-09 Thread Pi-Cheng Chen
On Tue, Jun 9, 2015 at 5:17 PM, Paul Bolle wrote: > On Mon, 2015-06-08 at 20:29 +0800, Pi-Cheng Chen wrote: >> --- /dev/null >> +++ b/drivers/cpufreq/mt8173-cpufreq.c > >> +#include > > Weren't you going to drop this include? Sorry I forget to merge that part of fix into this patch. Will fix

Re: [PATCH 05/36] HMM: introduce heterogeneous memory management v3.

2015-06-09 Thread Mark Hairgrove
On Tue, 9 Jun 2015, Jerome Glisse wrote: > On Mon, Jun 08, 2015 at 06:54:29PM -0700, Mark Hairgrove wrote: > > Can you clarify how that's different from mmu_notifiers? Those are also > > embedded into a driver-owned struct. > > For HMM you want to be able to kill a mirror from HMM, you might

Re: clustered MD

2015-06-09 Thread Goldwyn Rodrigues
On 06/09/2015 03:30 PM, David Teigland wrote: On Tue, Jun 09, 2015 at 03:08:11PM -0500, Goldwyn Rodrigues wrote: Hi David, On 06/09/2015 02:45 PM, David Teigland wrote: On Tue, Jun 09, 2015 at 02:26:25PM -0500, Goldwyn Rodrigues wrote: On 06/09/2015 01:22 PM, David Teigland wrote: I've

[PATCH 3/4] HID: hid-sony: PS3 Move enable LEDs and Rumble via BT

2015-06-09 Thread Simon Wood
The LED and Rumble control only function via BT if the full output report is sent. The large report still functions via USB. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/hid/hid-sony.c

[PATCH 1/4] HID: hid-sony: Add quirk for MOTION_CONTROLLER_BT

2015-06-09 Thread Simon Wood
Split quirk for PS Move Controller as it has to be treated differently when connected via BT. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 6fcc2b4..28dba6c

[PATCH 4/4] HID: hid-sony: PS Move fix report descriptor

2015-06-09 Thread Simon Wood
Fix the report descriptor so that the buttons and trigger are correctly reported. The format of the input report is described here: https://github.com/nitsch/moveonpc/wiki/Input-report The Accelerometers and Gyros (1st frame only) are also reported as axis, but the Magnetometers are NOT as

[PATCH 2/4] HID_ hid-sony_ Add support PS3 Move Battery via BT

2015-06-09 Thread Simon Wood
Add support for the battery charge level and state to be read via BT. This is not support via USB as there is no know way to get the device sending 'input' reports over USB. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 15 +++ 1 file changed, 11 insertions(+), 4

Re: [RFC PATCH 06/18] signal/kthread: Initial implementation of kthread signal handling

2015-06-09 Thread Tejun Heo
Hello, Jiri. On Tue, Jun 09, 2015 at 02:15:24PM +0200, Jiri Kosina wrote: > To me, the ultimate goal (*) is to make it possible for kthread to be able > to decide whether it wants "some kind of default behavior" (however that'd > be defined), or "ignore all", or "just handle this set of signals

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

2015-06-09 Thread Guoqing Jiang
Bob Peterson wrote: > - Original Message - > >> Hi Bob, >> >> Bob Peterson wrote: >> >>> - Original Message - >>> >>> We don't need the redundant logic since send_message always returns 0. Signed-off-by: Guoqing Jiang --- fs/dlm/lock.c |

[PATCH kernel] powerpc/powernv: Fix crash when CONFIG_IOMMU_API is off

2015-06-09 Thread Alexey Kardashevskiy
The code introduced in "[PATCH kernel v12 17/34] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group" checks that an IOMMU group was registered for the specific table group which is not true when CONFIG_IOMMU_API is off as iommu_register_group() is a stub in this case. This

Re: [ANNOUNCE] 4.0.4-rt1

2015-06-09 Thread Fernando Lopez-Lezcano
On 06/09/2015 03:05 PM, Pavel Vasilyev wrote: 09.06.2015 19:45, Fernando Lopez-Lezcano пишет: This is still happening, about once a day. John Dulaney help me set up a crash kernel dump (thanks!) so now I have a kernel core dump for this one, Asus,Fedora,CGROUPS,

Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-09 Thread Kamezawa Hiroyuki
On 2015/06/09 19:09, Xishi Qiu wrote: On 2015/6/9 15:06, Kamezawa Hiroyuki wrote: On 2015/06/04 22:02, Xishi Qiu wrote: Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means we should allocate mirrored memory for both user and kernel processes. Signed-off-by: Xishi Qiu

Re: [RFC PATCH 01/12] mm: add a new config to manage the code

2015-06-09 Thread Kamezawa Hiroyuki
On 2015/06/09 19:10, Xishi Qiu wrote: On 2015/6/9 14:44, Kamezawa Hiroyuki wrote: On 2015/06/04 21:56, Xishi Qiu wrote: This patch introduces a new config called "CONFIG_ACPI_MIRROR_MEMORY", it is used to on/off the feature. Signed-off-by: Xishi Qiu --- mm/Kconfig | 8 1 file

Re: [RFC PATCH 10/12] mm: add the buddy system interface

2015-06-09 Thread Kamezawa Hiroyuki
On 2015/06/09 19:04, Xishi Qiu wrote: On 2015/6/9 15:12, Kamezawa Hiroyuki wrote: On 2015/06/04 22:04, Xishi Qiu wrote: Add the buddy system interface for address range mirroring feature. Allocate mirrored pages in MIGRATE_MIRROR list. If there is no mirrored pages left, use other types

Re: [PATCH v7 00/10] tracing: 'hist' triggers

2015-06-09 Thread Masami Hiramatsu
On 2015/06/09 6:31, Tom Zanussi wrote: > This is v7 of the 'hist triggers' patchset, following feedback from > v6. > > Changes from v6: > > This version adds a new 'sym-offset' modifier as requested by Masami. > I implemented it as a modifier rather than using the trace option as > suggested, in

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

2015-06-09 Thread Bob Peterson
- Original Message - > Hi Bob, > > Bob Peterson wrote: > > - Original Message - > > > >> We don't need the redundant logic since send_message always returns 0. > >> > >> Signed-off-by: Guoqing Jiang > >> --- > >> fs/dlm/lock.c | 10 ++ > >> 1 file changed, 2

Re: [PATCHSET block/for-4.2/writeback] block, cgroup: make cfq charge async IOs to the appropriate blkcgs

2015-06-09 Thread Tejun Heo
Hello, On Tue, Jun 09, 2015 at 11:05:46AM -0400, Jeff Moyer wrote: > Yeah, I sent this email before realizing that GFP_NOWAIT would work out. > I've reviewed the rest of the series. Looks good to me! You did a nice > job splitting things up into easily reviewable pieces, so thanks for > that.

Re: [PATCH 00/11] ARM64 PCI hostbridge init based on ACPI

2015-06-09 Thread Hanjun Guo
Hi Jagan, On 06/08/2015 08:05 PM, Jagan Teki wrote: On 27 May 2015 at 09:27, Hanjun Guo wrote: On 2015年05月27日 08:30, Rafael J. Wysocki wrote: On Tuesday, May 26, 2015 08:49:13 PM Hanjun Guo wrote: This patch set is introducing ARM64 PCI hostbridge init based on ACPI, which based on Jiang

Re: [PATCH 7/8] cfq-iosched: fold cfq_find_alloc_queue() into cfq_get_queue()

2015-06-09 Thread Tejun Heo
Hey, Jeff. On Tue, Jun 09, 2015 at 10:40:02AM -0400, Jeff Moyer wrote: > The resulting code (introduced by the last patch, I know) is not ideal: > > rcu_read_lock(); > cfqg = cfq_lookup_create_cfqg(cfqd, bio_blkcg(bio)); > if (!cfqg) { > cfqq = >oom_cfqq;

Re: [PATCH v2 1/4] x86, mwaitt: add monitorx and mwaitx instruction

2015-06-09 Thread Huang Rui
On Tue, Jun 09, 2015 at 07:06:14PM +0200, Borislav Petkov wrote: > On Tue, Jun 09, 2015 at 09:44:59AM -0700, Andy Lutomirski wrote: > > [1] For those who weren't bitten by this repeatedly, modern Intel CPUs > > (at least Sandy Bridge, anyway) will, by default, detect when all > > cores are in C1

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

2015-06-09 Thread Guoqing Jiang
Hi Bob, Bob Peterson wrote: > - Original Message - > >> We don't need the redundant logic since send_message always returns 0. >> >> Signed-off-by: Guoqing Jiang >> --- >> fs/dlm/lock.c | 10 ++ >> 1 file changed, 2 insertions(+), 8 deletions(-) >> >> diff --git

Re: [ANNOUNCE] 4.0.4-rt1

2015-06-09 Thread Mike Galbraith
On Wed, 2015-06-10 at 01:05 +0300, Pavel Vasilyev wrote: > 09.06.2015 19:45, Fernando Lopez-Lezcano пишет: > > > This is still happening, about once a day. John Dulaney help me set up a > > crash kernel dump (thanks!) so now I have a kernel core dump for this > > one, > > Asus,Fedora,CGROUPS,

[PATCH v4] powerpc/cache: add cache flush operation for various e500

2015-06-09 Thread Yuantian.Tang
From: Tang Yuantian Various e500 core have different cache architecture, so they need different cache flush operations. Therefore, add a callback function cpu_flush_caches to the struct cpu_spec. The cache flush operation for the specific kind of e500 is selected at init time. The callback

RE: [PATCH] ARM: pgtable: Fix typo in the comment

2015-06-09 Thread Hyuk Myeong
Hello Steve, On Tue, June 09, 2015 5:43 PM, Steve Capper wrote: > On 9 June 2015 at 07:52, Hyuk Myeong wrote: >> This patch fix a spelling typo in the comment in pgtable-2level.h. >> > > Hi Hyuk, > >> Signed-off-by: Hyuk Myeong >> --- >> arch/arm/include/asm/pgtable-2level.h | 2 +- >> 1 file

[PATCH v2] crypto: drbg - reseed often if seedsource is degraded

2015-06-09 Thread Stephan Mueller
Changes v2: * port the patch to current cryptodev tree plus the async seeding DRBG patches ---8<--- As required by SP800-90A, the DRBG implements are reseeding threshold. This threshold is at 2**48 (64 bit) and 2**32 bit (32 bit) as implemented in drbg_max_requests. With the recently introduced

Re: [RFC PATCH v6 25/32] perf tools: Add 'bpf.' config section to perf default config

2015-06-09 Thread Wangnan (F)
On 2015/6/10 9:09, Alexei Starovoitov wrote: On 6/9/15 5:47 PM, Wangnan (F) wrote: On 2015/6/10 7:43, Alexei Starovoitov wrote: On 6/8/15 10:50 PM, Wang Nan wrote: perf_bpf_config() is added to parse 'bpf' section in perf config file. Following is an example: [bpf] clang-path =

Re: [PATCH] HSI: nokia-modem: use flags argument of devm_gpiod_get to set direction

2015-06-09 Thread Alexandre Courbot
On 06/08/2015 06:53 PM, Uwe Kleine-König wrote: Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) which appeared in v3.17-rc1, the gpiod_get* functions take an additional parameter that allows to specify direction and initial value for output. Use this to simplify the

Re: [PATCH v3 0/2] Support for CEVA SATA Host controller

2015-06-09 Thread Tejun Heo
On Tue, Jun 09, 2015 at 02:23:48PM +0530, Suneel Garapati wrote: > Adds support for CEVA SATA Host controller found on Xilinx Zynq > Ultrascale+ MPSoC. Applied to libata/for-4.2. Thanks! -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Andrew Morton
On Tue, 9 Jun 2015 21:00:58 -0500 (CDT) Christoph Lameter wrote: > On Tue, 9 Jun 2015, Andrew Morton wrote: > > > > Why do this at all? > > > > For the third time: because there are approx 200 callsites which are > > already doing it. > > Did some grepping and I did see some call sites that

Re: [PATCH] usb: dwc2: fix unnecessary USB overcurrent condition

2015-06-09 Thread John Youn
Hi Dinh, Responding again to the proper message to add linux-usb. And also added more comments. On 5/26/2015 7:32 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > For platforms that use a ULPI phy, we should enable the external VbusValid > signal instead. I don't think it

Re: [PATCH] ACPI / init: Switch over platform to the ACPI mode later

2015-06-09 Thread Hanjun Guo
On 06/10/2015 07:48 AM, Rafael J. Wysocki wrote: On Wednesday, June 03, 2015 11:13:57 AM Toshi Kani wrote: On Sat, 2015-05-30 at 14:21 +0200, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Commit 73f7d1ca3263 "ACPI / init: Run acpi_early_init() before timekeeping_init()" moved the ACPI

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Sergey Senozhatsky
On (06/09/15 20:11), Christoph Lameter wrote: > On Tue, 9 Jun 2015, Andrew Morton wrote: > > > Well I like it, even though it's going to cause a zillion little cleanup > > patches. > > > > checkpatch already has a "kfree(NULL) is safe and this check is > > probably not required" test so I guess

Re: [PATCH v3] powerpc/cache: add cache flush operation for various e500

2015-06-09 Thread Scott Wood
On Tue, 2015-06-09 at 21:00 -0500, Tang Yuantian-B29983 wrote: > Please see my replay inline. > > From: Wood Scott-B07421 > Sent: Wednesday, June 10, 2015 6:28 AM > To: Tang Yuantian-B29983 > Cc: Wood Scott-B07421; linuxppc-...@lists.ozlabs.org; >

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Christoph Lameter
On Tue, 9 Jun 2015, Andrew Morton wrote: > > Why do this at all? > > For the third time: because there are approx 200 callsites which are > already doing it. Did some grepping and I did see some call sites that do this but the majority has to do other processing as well. 200 call sites? Do we

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

2015-06-09 Thread Hon Ching(Vicky) Lo
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 content of the 'basep' pointer in read_log() stores the base address of the log. This patch ensures that it is

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

2015-06-09 Thread Hon Ching(Vicky) Lo
This patch makes the code endianness independent. We defined a macro do_endian_conversion to apply endianness to raw integers in the event entries so that they will be displayed properly. tpm_binary_bios_measurements_show() is modified for the display. Signed-off-by: Hon Ching(Vicky) Lo

Re: [42/73] rtc: delete non-required instances of include

2015-06-09 Thread Paul Gortmaker
On Tue, Jun 9, 2015 at 3:49 AM, Alexandre Belloni wrote: > On 08/06/2015 at 17:06:34 -0400, Paul Gortmaker wrote : >> > I've contemplated applying that patch but I'm not sure it is actually a >> > good idea because those 46 drivers are using a variant of module_driver >> > which actually uses

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Andrew Morton
On Tue, 9 Jun 2015 20:11:25 -0500 (CDT) Christoph Lameter wrote: > On Tue, 9 Jun 2015, Andrew Morton wrote: > > > Well I like it, even though it's going to cause a zillion little cleanup > > patches. > > > > checkpatch already has a "kfree(NULL) is safe and this check is > > probably not

Re: [PATCH] USB: uvc: add support for the Microsoft Surface Pro 3 Cameras

2015-06-09 Thread Dennis Chen
> Is this needed ? Looking at the patch your cameras are UVC-compliant > and > should thus be picked by the uvcvideo driver without any change to > the code. The cameras are UVC-compliant but are not recognized by the uvc driver. The patch forces the uvc driver to pick up the camera if

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-09 Thread Calvin Owens
On Tuesday 06/09 at 14:13 -0700, Andrew Morton wrote: > On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens wrote: > > > Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and > > is only exposed if CONFIG_CHECKPOINT_RESTORE is set. > > > > This interface very useful because it allows

Re: [RFC PATCH v6 32/32] perf record: Add LLVM options for compiling BPF scripts

2015-06-09 Thread Alexei Starovoitov
On 6/9/15 5:17 PM, Wangnan (F) wrote: Could you please give me some URL to LLVM git repositories so I can track your work on it? traffic on llvm/clang is very heavy. probably as much as lkml. you can subscribe to llvmweekly instead. In the future I'll cc you on new things in that area. -- To

Re: [PATCH v2 1/3] Input: export LEDs as class devices in sysfs

2015-06-09 Thread Dmitry Torokhov
On Wed, Jun 10, 2015 at 02:32:32AM +0200, Samuel Thibault wrote: > Hello, > > Thanks for the modified version. This all seems to be working as > expected with multiple keyboards. Excellent. Let's give Pavel and Pali chance to test it out and let's get it in 4.2. Thanks. -- Dmitry -- To

Re: [PATCH] USB: uvc: add support for the Microsoft Surface Pro 3 Cameras

2015-06-09 Thread Laurent Pinchart
Hi Dennis, Thank you for the patch. On Tuesday 09 June 2015 18:09:06 Dennis Chen wrote: > Add support for the Microsoft Surface Pro 3 Cameras. Is this needed ? Looking at the patch your cameras are UVC-compliant and should thus be picked by the uvcvideo driver without any change to the code.

Re: [PATCH v2] [x86/kvm] emulate.c: Fix comppilation warning

2015-06-09 Thread Bandan Das
Rajat Jain writes: > Fix the following warning: > > arch/x86/kvm/emulate.c: In function '__do_insn_fetch_bytes': > arch/x86/kvm/emulate.c:814:47: warning: 'linear' may be used uninitialized in > this function [-Wmaybe-uninitialized] > arch/x86/kvm/emulate.c:793:16: note: 'linear' was declared

Re: [RFC][PATCH 0/5] do not dereference NULL pools in pools' destroy() functions

2015-06-09 Thread Christoph Lameter
On Tue, 9 Jun 2015, Andrew Morton wrote: > Well I like it, even though it's going to cause a zillion little cleanup > patches. > > checkpatch already has a "kfree(NULL) is safe and this check is > probably not required" test so I guess Joe will need to get busy ;) > > I'll park these patches

Re: [RFC PATCH v6 25/32] perf tools: Add 'bpf.' config section to perf default config

2015-06-09 Thread Alexei Starovoitov
On 6/9/15 5:47 PM, Wangnan (F) wrote: On 2015/6/10 7:43, Alexei Starovoitov wrote: On 6/8/15 10:50 PM, Wang Nan wrote: perf_bpf_config() is added to parse 'bpf' section in perf config file. Following is an example: [bpf] clang-path = /llvm/bin/x86_64-linux-clang" llc-path =

Re: [PATCH v4] seccomp: add ptrace options for suspend/resume

2015-06-09 Thread Andy Lutomirski
On Tue, Jun 9, 2015 at 5:49 PM, Tycho Andersen wrote: > This patch is the first step in enabling checkpoint/restore of processes > with seccomp enabled. > > One of the things CRIU does while dumping tasks is inject code into them > via ptrace to collect information that is only available to the

Re: [PATCH] USB: uvc: add support for the Microsoft Surface Pro 3 Cameras

2015-06-09 Thread Dennis Chen
Add support for the Microsoft Surface Pro 3 Cameras. Signed-off-by: Dennis Chen --- drivers/media/usb/uvc/uvc_driver.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 5970dd6..ec5a407 100644 ---

Re: [RFC 0/4] enable migration of non-LRU pages

2015-06-09 Thread Gioh Kim
2015-06-10 오전 9:08에 Minchan Kim 이(가) 쓴 글: Hello Gioh, On Tue, Jun 02, 2015 at 04:27:40PM +0900, Gioh Kim wrote: Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days)

Re: [RFC] module: add per-module params lock

2015-06-09 Thread Dan Streetman
On Mon, Jun 8, 2015 at 5:13 PM, Rusty Russell wrote: > Dan Streetman writes: >> On Thu, Jun 4, 2015 at 8:42 PM, Rusty Russell wrote: >>> Dan Streetman writes: I sent this as part of a patch series a few days ago, which I was asked to break up, so I'm sending only this patch as a RFC

Re: [RFC PATCH v6 25/32] perf tools: Add 'bpf.' config section to perf default config

2015-06-09 Thread Wangnan (F)
On 2015/6/10 7:43, Alexei Starovoitov wrote: On 6/8/15 10:50 PM, Wang Nan wrote: perf_bpf_config() is added to parse 'bpf' section in perf config file. Following is an example: [bpf] clang-path = /llvm/bin/x86_64-linux-clang" llc-path = /llvm/bin/x86_64-linux-llc" clang-opt =

Re: [PATCH] USB: uvc: add support for the Microsoft Surface Pro 3 Cameras

2015-06-09 Thread Laurent Pinchart
Hi Dennis, -ENOPATCH ? On Tuesday 09 June 2015 12:53:34 Dennis Chen wrote: > -- Regards, Laurent Pinchart -- 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

[PATCH v4] seccomp: add ptrace options for suspend/resume

2015-06-09 Thread Tycho Andersen
This patch is the first step in enabling checkpoint/restore of processes with seccomp enabled. One of the things CRIU does while dumping tasks is inject code into them via ptrace to collect information that is only available to the process itself. However, if we are in a seccomp mode where these

Re: [PATCH v2 1/3] Input: export LEDs as class devices in sysfs

2015-06-09 Thread Samuel Thibault
Hello, Thanks for the modified version. This all seems to be working as expected with multiple keyboards. Samuel -- 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

Re: clock driver

2015-06-09 Thread York Sun
Michael, I have rewritten the driver to use CCF. It will be sent for review when ready. I have some questions, hoping you can shed some light on them. Q1: What does of_clk_add_provider do? I read the code and comment. It registers a clock provider for a node. How is it used after registration?

RE: [PATCH 1/2] scatterlist: use sg_phys()

2015-06-09 Thread Elliott, Robert (Server Storage)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Dan Williams > Sent: Tuesday, June 09, 2015 10:27 AM > Subject: [PATCH 1/2] scatterlist: use sg_phys() > ... > diff --git a/arch/microblaze/kernel/dma.c

[PATCH v2] [x86/kvm] emulate.c: Fix comppilation warning

2015-06-09 Thread Rajat Jain
Fix the following warning: arch/x86/kvm/emulate.c: In function '__do_insn_fetch_bytes': arch/x86/kvm/emulate.c:814:47: warning: 'linear' may be used uninitialized in this function [-Wmaybe-uninitialized] arch/x86/kvm/emulate.c:793:16: note: 'linear' was declared here Signed-off-by: Rajat Jain

[PATCH] [x86/kvm] emulate.c: Fix comppilation warning

2015-06-09 Thread Rajat Jain
Fix the following warning: arch/x86/kvm/emulate.c: In function '__do_insn_fetch_bytes': arch/x86/kvm/emulate.c:814:47: warning: 'linear' may be used uninitialized in this function [-Wmaybe-uninitialized] arch/x86/kvm/emulate.c:793:16: note: 'linear' was declared here Signed-off-by: Rajat Jain

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

2015-06-09 Thread Stephen Rothwell
Hi Alex, On Tue, 9 Jun 2015 14:02:21 + "Deucher, Alexander" wrote: > > > -Original Message- > > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > > Sent: Tuesday, June 09, 2015 9:43 AM > > To: Dave Airlie > > Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org;

Re: [RFC PATCH v6 24/32] perf record: Compile scriptlets if pass '.c' to --event

2015-06-09 Thread Alexei Starovoitov
On 6/9/15 5:06 PM, Wangnan (F) wrote: On 2015/6/10 5:48, Alexei Starovoitov wrote: On 6/8/15 10:50 PM, Wang Nan wrote: +struct bpf_param bpf_param = { +.clang_path = "clang", +.llc_path = "llc", +.clang_opt = "", +.llc_opt = "", +}; the defaults are ok-ish, but llc is never

Re: [PATCH 2/2] drivercore: Fix unregistration path of platform devices

2015-06-09 Thread Kevin Hilman
e kept, only >> >> patch "of/platform: Use platform_device interface" >> >> needs to be reverted. > > No, it's better to drop the whole series. There are still issues and it > will conflict with merging the bugfix for v4.1. > Multiple platforms stopped bo

Re: [RFC PATCH v6 32/32] perf record: Add LLVM options for compiling BPF scripts

2015-06-09 Thread Wangnan (F)
On 2015/6/10 8:02, Alexei Starovoitov wrote: On 6/8/15 10:50 PM, Wang Nan wrote: Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 4 options to 'perf record' for

Re: [PATCH 1/1] net: fs_enet: Disable NETIF_F_SG feature for Freescale MPC5121

2015-06-09 Thread David Miller
From: Alexander Popov Date: Wed, 10 Jun 2015 02:57:42 +0300 > skb_copy_from_linear_data() which doesn't work well for non-linear sk_buff: The correct fix is to use an SKB copy routine which can handle non-linear data. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [RFC PATCH v6 24/32] perf record: Compile scriptlets if pass '.c' to --event

2015-06-09 Thread Wangnan (F)
On 2015/6/10 5:48, Alexei Starovoitov wrote: On 6/8/15 10:50 PM, Wang Nan wrote: +struct bpf_param bpf_param = { +.clang_path = "clang", +.llc_path = "llc", +.clang_opt = "", +.llc_opt = "", +}; the defaults are ok-ish, but llc is never in PATH. So most likely it won't work

  1   2   3   4   5   6   7   8   9   10   >