Re: [PATCH] samples/bpf: fix resource leak on opened file descriptor

2016-07-28 Thread Alexei Starovoitov
On Sun, Jul 24, 2016 at 06:50:47PM +0100, Colin King wrote: > From: Colin Ian King > > file f needs to be closed, fixes resource leak. > > Signed-off-by: Colin Ian King have been travelling. sorry for delay. Acked-by: Alexei Starovoitov

Re: [PATCH v3 2/4] mfd: add support for Allwinner SoCs ADC

2016-07-28 Thread Maxime Ripard
Hi Quentin, On Tue, Jul 26, 2016 at 09:43:45AM +0200, Quentin Schulz wrote: > The Allwinner SoCs all have an ADC that can also act as a touchscreen > controller and a thermal sensor. For now, only the ADC and the thermal > sensor drivers are probed by the MFD, the touchscreen controller support >

RE: [PATCH V2 1/1] iio: as6200: add AS6200 temperature sensor driver from ams AG

2016-07-28 Thread Peter Meerwald-Stadler
Hello Florian, > As requested we can also provide a link to the datasheet of the chip: > http://ams.com/eng/Products/Environmental-Sensors/Temperature-Sensors > We also tried to cover all points (removed all debug msgs, simpler IRQ > pin config, etc.). Still all the show/store functions for each

[ANNOUNCE] git-series: track changes to a patch series over time

2016-07-28 Thread Josh Triplett
I'd like to announce a project I've been working on for a while: git-series provides a tool for managing patch series with git, tracking the "history of history". git series tracks changes to the patch series over time, including rebases and other non-fast-forwarding changes. git series also track

Re: [PATCH] sched/core: add taint on "BUG: sleeping function called from invalid context"

2016-07-28 Thread Vegard Nossum
On 07/29/2016 03:22 AM, Rusty Russell wrote: Vegard Nossum writes: Seeing this, it occurs to me that we should probably add a taint here: Taint has traditionally meant "the user did something unsupported, take the bug report with a grain of salt". Such as force removing a module. So this se

Re: [lkp] [blk] ee5c4fef9f: BUG: unable to handle kernel NULL pointer dereference at 0000010b

2016-07-28 Thread Minfei Huang
owing commit: > > https://github.com/0day-ci/linux > Minfei-Huang/blk-core-Fix-the-bad-IO-during-checking-bio/20160728-182758 > commit ee5c4fef9f2ef03ee8f283a5b24192df00e17f0f ("blk-core: Fix the bad IO > during checking bio") > > in testcase: boot > > on tes

Re: [RFC v0 7/8] Input: ims-pcu: use firmware_stat instead of completion

2016-07-28 Thread Daniel Wagner
On 07/28/2016 09:01 PM, Bjorn Andersson wrote: On Thu 28 Jul 11:33 PDT 2016, Dmitry Torokhov wrote: On Thu, Jul 28, 2016 at 09:55:11AM +0200, Daniel Wagner wrote: From: Daniel Wagner [..] Do not quite like it... I'd rather asynchronous request give out a firmware status pointer that could

Re: [RFC v0 3/8] firmware: Factor out firmware load helpers

2016-07-28 Thread Daniel Wagner
On 07/28/2016 07:57 PM, Dmitry Torokhov wrote: On Thu, Jul 28, 2016 at 09:55:07AM +0200, Daniel Wagner wrote: +int __firmware_stat_wait(struct firmware_stat *fwst, + long timeout) +{ + int err; + err = swait_event_interruptible_timeout(fwst->wq, +

Re: [RFC v0 3/8] firmware: Factor out firmware load helpers

2016-07-28 Thread Daniel Wagner
It's somewhat odd to me that the structure is "firmware_stat" but most of the functions are "fw_loading_*". That seems inconsistent for a structure that is (currently) only used by these functions. I agree, my proposal is odd. I would personally do either: a) "struct fw_load_status" and "fw_

RE: [PATCH V2 1/1] iio: as6200: add AS6200 temperature sensor driver from ams AG

2016-07-28 Thread Florian Lobmaier
As requested we can also provide a link to the datasheet of the chip: http://ams.com/eng/Products/Environmental-Sensors/Temperature-Sensors We also tried to cover all points (removed all debug msgs, simpler IRQ pin config, etc.). Still all the show/store functions for each configuration bit of t

RE: [PATCH v2 1/5] ramoops: use persistent_ram_free() instead of kfree() for freeing prz

2016-07-28 Thread 岩松信洋 / IWAMATSU,NOBUHIRO
Hi, > -Original Message- > From: keesc...@google.com [mailto:keesc...@google.com] On Behalf Of Kees > Cook > Sent: Friday, July 29, 2016 4:35 AM > To: 岩松信洋 / IWAMATSU,NOBUHIRO > Cc: Anton Vorontsov; Colin Cross; Tony Luck; LKML; Hiraku Toyooka; Mark > Salyzyn; 阿口誠司 / AGUCHI,SEIJI > Subject

Re: [PATCH] regulator: axp20x: support AXP813 variant

2016-07-28 Thread Jean-Francois Moine
On Thu, 28 Jul 2016 22:19:44 +0200 Maxime Ripard wrote: > > Documentation/devicetree/bindings/mfd/axp20x.txt | 32 - > > drivers/mfd/axp20x-rsb.c | 1 + > > drivers/mfd/axp20x.c | 3 + > > drivers/regulator/axp20x-regulator.c

Re: [PATCH 00/13] arm64: Allwinner A64 support based on sunxi-ng

2016-07-28 Thread Jean-Francois Moine
On Thu, 28 Jul 2016 22:07:05 +0200 Maxime Ripard wrote: > > > Let me know what you think, > > > > I don't see the interest to have common code for 32bits and 64bits. > > The clock driver of a SoC will never evolve, so, it is simpler to > > copy the source common with the H3 into a clean A64 cloc

Re: Build failure in linux mainline when building arcv2 images

2016-07-28 Thread Vineet Gupta
Hi Guenter, On 07/28/2016 08:23 PM, Guenter Roeck wrote: > Hi Vineet, > > Mainline fails to build arcv2 images with the following error. > > {standard input}: Assembler messages: > {standard input}:19174: Error: Instruction with long immediate data in delay > slot > make[2]: *** [block/cfq-iosc

Re: [PATCH v2 4/4] ARM: OMAP2+: omap_device: fix crash on omap_device removal

2016-07-28 Thread Peter Ujfalusi
On 07/28/16 20:50, Grygorii Strashko wrote: > Below call chain causes system crash when OMAP device is > removed by calling of_platform_depopulate()/device_del(): Should you swap 3 <-> 4 in the series? Currently patch 3 will introduce the crash you are fixing in patch 4... > > device_del() > - b

linux-next: Tree for Jul 29

2016-07-28 Thread Stephen Rothwell
Hi all, Please do not add material destined for v4.9 to your linux-next included branches until after v4.8-rc1 has been released. Changes since 20160728: The vfs tree gained a build failure due to an interaction with Linus' tree. I applied a merge fix patch. The drm tree gained a con

RE: [PATCH] ACPICA: cleanup method properly on error

2016-07-28 Thread Zheng, Lv
Hi, Vegard > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Vegard Nossum > Subject: [PATCH] ACPICA: cleanup method properly on error > > If the call to acpi_ds_init_aml_walk() fails, then we have to undo the > walk state push done by acpi_ds_crea

Re: [PATCH] sparc64 mm: Fix base TSB sizing when hugetlb pages are used

2016-07-28 Thread David Miller
From: Mike Kravetz Date: Fri, 15 Jul 2016 13:08:42 -0700 > do_sparc64_fault() calculates both the base and huge page RSS sizes and > uses this information in calls to tsb_grow(). The calculation for base > page TSB size is not correct if the task uses hugetlb pages. hugetlb > pages are not acco

[PATCH 2/3] mpt3sas: Eliminate dead sleep_flag code

2016-07-28 Thread Calvin Owens
With the exception of a single call to wait_for_doorbell_int(), all this conditional sleeping code is dead. So delete it. Signed-off-by: Calvin Owens --- drivers/scsi/mpt3sas/mpt3sas_base.c | 241 +-- drivers/scsi/mpt3sas/mpt3sas_base.h | 6 +- drivers/scs

[PATCH 1/3] mpt3sas: Eliminate conditional locking in mpt3sas_scsih_issue_tm()

2016-07-28 Thread Calvin Owens
This flag that conditionally acquires the mutex is confusing and prone to bugginess: refactor it into two separate function calls, and make the unlocked one complain if it's called outside the mutex. Signed-off-by: Calvin Owens --- drivers/scsi/mpt3sas/mpt3sas_base.h | 16 +++-- drivers/scs

[PATCH 3/3] mpt3sas: Fix warnings exposed by W=1

2016-07-28 Thread Calvin Owens
Trivial non-functional changes for a couple annoying things: 1) Functions local to files are not declared static, which is frustrating when reading the code because it's non-obvious at first glance what's actually called from other files. 2) Set-but-unused variables abound, presumably to

RE: [PATCH] ACPI / button: remove pointer to old lid_sysfs on unbind

2016-07-28 Thread Zheng, Lv
Hi, Benjamin > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Benjamin Tissoires > Subject: [PATCH] ACPI / button: remove pointer to old lid_sysfs on unbind > > When we removed the procfs dir on error or if the driver is > unbound, the two variabl

Re: [Regression?] fib_rules: Added NLM_F_EXCL support to fib_nl_newrule breaks Android userspace

2016-07-28 Thread David Miller
From: John Stultz Date: Thu, 28 Jul 2016 21:18:16 -0700 > After moving my HiKey tree to pre-v4.8-rc, I noticed when using > Android that I was getting routing errors after toggling networking on > and off (or entering suspend). Wifi associated, but I got some > rounting errors in the logcat the c

[PATCH 5/5] mmc: sdhci-of-arasan: add power domain support

2016-07-28 Thread Shawn Lin
We should enable power domain once provided. Otherwise we take risk of bus err as it's maybe in off state before probing. Signed-off-by: Shawn Lin --- drivers/mmc/host/sdhci-of-arasan.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers

[PATCH 1/5] Documentation: mmc: synopsys-dw-mshc: add power domain description

2016-07-28 Thread Shawn Lin
This patch adds power domain as a optional property for dw_mmc. We should handle the power domain if available as it's in off state dut to the policy of power-saving after booting up. Otherwise dw_mmc can not be accessed. Signed-off-by: Shawn Lin --- Documentation/devicetree/bindings/mmc/synop

[PATCH 2/5] Documentation: mmc: sdhci-of-arasan: add power domain description

2016-07-28 Thread Shawn Lin
This patch adds power domain as a optional property for sdhci-of-arasan. We should handle the power domain if available as it's in off state due to the policy of power-saving after booting up. Otherwise controller can not be accessed. Signed-off-by: Shawn Lin --- Documentation/devicetree/bindin

[PATCH 3/5] arm64: dts: rockchip: Provide power-domains for sd/sdio/emmc controllers

2016-07-28 Thread Shawn Lin
We add these two properties as we need to enable it manually in case of been turned off by pd code if not referenced. We can't take risk of it, so let's do it. Signed-off-by: Shawn Lin --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64

[PATCH 4/5] mmc: dw_mmc: add power domain support

2016-07-28 Thread Shawn Lin
We should enable power domain once provided. Otherwise we take risk of bus err as it's maybe in off state before probing. Signed-off-by: Shawn Lin --- drivers/mmc/host/dw_mmc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c

[PATCH 0/5] Add power domain support for dw_mmc/sdhci-of-arasan

2016-07-28 Thread Shawn Lin
We need to enable the power domain manually while probing as the power policy will turn off the pd which is not referenced. Otherwise we may take risk of breaking kernel once Feng Xiao land the rockchip pd relate stuff. So, let's do it in advance. This pachset is based on the latest linux-next[1]

[Regression?] fib_rules: Added NLM_F_EXCL support to fib_nl_newrule breaks Android userspace

2016-07-28 Thread John Stultz
After moving my HiKey tree to pre-v4.8-rc, I noticed when using Android that I was getting routing errors after toggling networking on and off (or entering suspend). Wifi associated, but I got some rounting errors in the logcat the connection manager wouldn't detect a valid network. Not being able

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

2016-07-28 Thread Al Viro
On Fri, Jul 29, 2016 at 11:19:38AM +1000, Stephen Rothwell wrote: > --- > fs/fuse/dir.c| 2 +- > fs/fuse/fuse_i.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c > index f910578e51ba..c47b7780ce37 100644 > --- a/fs/fuse/dir.c > +++ b/f

RE: [PATCH 1/1] EDAC, sb_edac: Fix channel reporting on Knights Landing

2016-07-28 Thread Odzioba, Lukasz
On Saturday, July 23, 2016 1:45 AM, Lukasz Odzioba wrote: > On Intel Xeon Phi Knights Landing processor family the channels > of memory controller have untypical arrangement - MC0 is mapped to > CH3,4,5 and MC1 is mapped to CH0,1,2. This causes EDAC driver to > report the channel name incorrectly.

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

2016-07-28 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: arch/x86/include/asm/thread_info.h between commit: 609c19a385c8 ("x86/ptrace: Stop setting TS_COMPAT in ptrace code") from the tip tree and commit: 58f9594bd42f ("signal: consolidate {TS,TLF}_RESTORE_SIGMASK

Re: [PATCH v2 2/2] sparc64: Fix pagetable freeing for hugepage regions

2016-07-28 Thread David Miller
From: Nitin Gupta Date: Thu, 23 Jun 2016 15:05:36 -0700 > 8M pages now allocate page tables till PMD level only. > So, when freeing page table for 8M hugepage backed region, > make sure we don't try to access non-existent PTE level. > > Signed-off-by: Nitin Gupta The manner in which you have s

RE: [PATCH v2] perf sched: fix wrong conversion of task state

2016-07-28 Thread Tomoki Sekiyama
Hi Hiramatsu-san, On 2016/7/28, 2016 8:43, Masami Hiramatsu wrote: > Hmm, this includes several fixes and enhancements. > 1. Use first bit of the state instead of state itself (critical bug to avoid crash?) > 2. Check the range of the array and return '?' if out (minor bug, it can access data area

[PATCH v3] perf sched: fix wrong conversion of task state

2016-07-28 Thread Tomoki Sekiyama
sched_out_state() converts the prev_state u64 bitmask to a char in a wrong way, which may cause invalid memory access. TASK_STATE_TO_CHAR_STR should also be fixed to adapt current kernel's sched.h. Signed-off-by: Tomoki Sekiyama Cc: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra

[PATCH] cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()

2016-07-28 Thread Andrew Donnellan
Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use for_each_child_of_node() rather than a hand-coded for loop. Remove the useless of_node_put(afu_np) call after the loop, where it's guaranteed that afu_np == NULL. Reported-by: SF Markus Elfring Reported-by: Julia Lawall Signed-off-b

Re: [PATCH V6 3/9] irqdomain: Don't set type when mapping an IRQ

2016-07-28 Thread Masahiro Yamada
Hi. I noticed my board would not work any more when pulling recent updates. I did "git-bisect" and I found the following commit is it. commit 1e2a7d78499ec8859d2b469051b7b80bad3b08aa Author: Jon Hunter Date: Tue Jun 7 16:12:28 2016 +0100 irqdomain: Don't set type when mapping an IRQ

Re: [PATCH 0/3] new feature: monitoring page cache events

2016-07-28 Thread George Amvrosiadis
On Thu, Jul 28, 2016 at 02:02:45PM -0700, Dave Hansen wrote: > On 07/25/2016 08:47 PM, George Amvrosiadis wrote: > > 21 files changed, 2424 insertions(+), 1 deletion(-) > > I like the idea, but yikes, that's a lot of code. > > Have you considered using or augmenting the kernel's existing tracing

Re: [PATCH 2/2] mmc: dw_mmc: remove the deprecated "supports-highspeed" property

2016-07-28 Thread Jaehoon Chung
Hi Shawn, On 07/29/2016 11:44 AM, Shawn Lin wrote: > 在 2016/7/28 17:55, Jaehoon Chung 写道: >> Remvoe the deprecated "supports-highspeed" property. >> DWMMC controller will not use this property anymore. >> > > We had set up a flag day to remove these deprecated property > long time agao. > > It d

Re: [PATCH] mm: move swap-in anonymous page into active list

2016-07-28 Thread Minchan Kim
On Fri, Jul 29, 2016 at 12:25:40PM +0900, Minchan Kim wrote: > Every swap-in anonymous page starts from inactive lru list's head. > It should be activated unconditionally when VM decide to reclaim > because page table entry for the page always usually has marked > accessed bit. Thus, their window s

[PATCH] mm: move swap-in anonymous page into active list

2016-07-28 Thread Minchan Kim
Every swap-in anonymous page starts from inactive lru list's head. It should be activated unconditionally when VM decide to reclaim because page table entry for the page always usually has marked accessed bit. Thus, their window size for getting a new referece is 2 * NR_inactive + NR_active while o

[PATCH 1/2] Documentation: kdump: update maxcpus to nr_cpus

2016-07-28 Thread Zhou Wenjian
Parameter nr_cpus is used to bring up a SMP dump-capture kernel, instead of the old parameter maxcpus. This commit update it in Documentation/kdump/kdump.txt. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documen

[PATCH 2/2] Documentation: kdump: add description of bringing up SMP dump-capture kernel

2016-07-28 Thread Zhou Wenjian
SMP dump-capture kernel is useful to improve the performance of kdump in some cases. So add the description of bringing up SMP dump-capture kernel. Signed-off-by: Zhou Wenjian --- Documentation/kdump/kdump.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/kdump/kdump.tx

Build failure in linux mainline when building arcv2 images

2016-07-28 Thread Guenter Roeck
Hi Vineet, Mainline fails to build arcv2 images with the following error. {standard input}: Assembler messages: {standard input}:19174: Error: Instruction with long immediate data in delay slot make[2]: *** [block/cfq-iosched.o] Error 1 Bisect points to commit 9a7f38c42c2 ("cfq-iosched: Conver

[PATCH v5] virtio: new feature to detect IOMMU device quirk

2016-07-28 Thread Michael S. Tsirkin
The interaction between virtio and IOMMUs is messy. On most systems with virtio, physical addresses match bus addresses, and it doesn't particularly matter which one we use to program the device. On some systems, including Xen and any system with a physical device that speaks virtio behind a phys

Re: [PATCH v3 2/2] tpm: add driver for cr50 on SPI

2016-07-28 Thread Andrey Pronin
On Thu, Jul 28, 2016 at 05:17:06PM -0600, Jason Gunthorpe wrote: > On Thu, Jul 28, 2016 at 04:01:41PM -0700, Dmitry Torokhov wrote: > > > > + u8 tx_buf[MAX_SPI_FRAMESIZE]; > > > + u8 rx_buf[MAX_SPI_FRAMESIZE]; > > > > Both of these need to be annotated as "cacheline_aligned" since we > > eye

[PATCH] tpm: fix cacheline alignment for DMA-able buffers

2016-07-28 Thread Andrey Pronin
Annotate buffers used in spi transactions as cacheline_aligned to use in DMA transfers. Signed-off-by: Andrey Pronin --- drivers/char/tpm/st33zp24/spi.c | 4 ++-- drivers/char/tpm/tpm_tis_spi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/char/tpm/st33zp2

Re: [RFC] can we use vmalloc to alloc thread stack if compaction failed

2016-07-28 Thread Joonsoo Kim
On Thu, Jul 28, 2016 at 08:07:51AM -0700, Andy Lutomirski wrote: > On Thu, Jul 28, 2016 at 3:51 AM, Xishi Qiu wrote: > > On 2016/7/28 17:43, Michal Hocko wrote: > > > >> On Thu 28-07-16 16:45:06, Xishi Qiu wrote: > >>> On 2016/7/28 15:58, Michal Hocko wrote: > >>> > On Thu 28-07-16 15:41:53,

[PATCH v8 1/2] Documentation: bindings: add dt doc for Rockchip PCIe controller

2016-07-28 Thread Shawn Lin
This patch adds a binding that describes the Rockchip PCIe controller found on Rockchip SoCs PCIe interface. Signed-off-by: Shawn Lin Acked-by: Rob Herring Reviewed-by: Brian Norris --- Changes in v8: - add Brian's review-tag Changes in v7: - move optional properties ahead of interrupt subno

[PATCH v8 2/2] PCI: Rockchip: Add Rockchip PCIe controller support

2016-07-28 Thread Shawn Lin
This patch adds Rockchip PCIe controller support found on RK3399 Soc platform. Signed-off-by: Shawn Lin Reviewed-by: Brian Norris --- Changes in v8: - fix all the comments suggested by Bjorn Helgaas in v7[1] [1] https://patchwork.kernel.org/patch/9233887/ - enable bandwith interrupt for debu

Re: [PATCH 2/2] mmc: dw_mmc: remove the deprecated "supports-highspeed" property

2016-07-28 Thread Shawn Lin
在 2016/7/28 17:55, Jaehoon Chung 写道: Remvoe the deprecated "supports-highspeed" property. DWMMC controller will not use this property anymore. We had set up a flag day to remove these deprecated property long time agao. It doesn't *break* old dtb which may(not ?) still boot up new kernel code

[PATCH] lkdtm: Fix targets for objcopy usage

2016-07-28 Thread Kees Cook
The targets for lkdtm's objcopy were missing which caused them to always be rebuilt. This corrects the problem. Additionally, commit f8fa70f392fa ("arm64: localise Image objcopy flags") has landed now, so this removes the work-around for the global OBJCOPY flag setting. Reported-by: Linus Torvald

Re: warning: calling ‘__builtin_return_address’ with a nonzero argument is unsafe

2016-07-28 Thread Steven Rostedt
On Thu, 28 Jul 2016 18:25:33 -0700 Linus Torvalds wrote: > I tried something like that, but the CFLAGS games the tracing code > does made my thing result in > > kernel/trace/Makefile:20: *** Recursive variable 'KBUILD_CFLAGS' > references itself (eventually). Stop. > > but yes, if you have t

Re: [PATCH] perf sched: fix wrong conversion of task state

2016-07-28 Thread 関山友輝 / SEKIYAMA,TOMOKI
On 2016/07/28 23:26、David Ahern wrote: >> But that means we cannot handle preemption correctly as far as >> sched:sched_switch >> event uses TASK_STATE_MAX to mark preempted tasks. >> >> Should we stop using TASK_STATE_MAX for preempted tasks in ftrace and >> use (1 << 63) or something that doesn'

Re: [PATCH v11] acpi, apei, arm64: APEI initial support for aarch64.

2016-07-28 Thread Fu Wei
Hi Suzuki, On 28 July 2016 at 17:39, Suzuki K Poulose wrote: > On 27/07/16 18:29, fu@linaro.org wrote: >> >> From: Tomasz Nowicki >> >> This commit provides APEI arch-specific bits for aarch64 >> >> Meanwhile, >> (1)add a new subfunction "hest_ia32_init" for >> "acpi_disable_cmcff" which is

Re: [PATCH v3 1/6] binding-doc: power: pwrseq-generic: add binding doc for generic power sequence library

2016-07-28 Thread Peter Chen
On Wed, Jul 20, 2016 at 05:40:24PM +0800, Peter Chen wrote: > Add binding doc for generic power sequence library. > > Signed-off-by: Peter Chen > Acked-by: Philipp Zabel > --- > .../bindings/power/pwrseq/pwrseq-generic.txt | 48 > ++ > 1 file changed, 48 insertions(+)

Re: [tip:smp/hotplug 5/6] arch/x86/xen/enlighten.c:1522:2: error: implicit declaration of function 'xen_pvh_early_cpu_init'

2016-07-28 Thread Boris Ostrovsky
On 07/28/2016 12:14 PM, kbuild test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug head: c713c8cb2055f5f3b32ee4315be589177a2658cc commit: 854e9fa5a56a9771fad4701a427e4844d2cbade1 [5/6] xen/x86: Define stubs for xen_smp_intr_init/xen_smp_intr_free c

[PATCH v4 0/2] tpm: add driver for cr50 on SPI

2016-07-28 Thread Andrey Pronin
This patchset adds support for H1 Secure Microcontroller running Cr50 firmware. It implements several functions, including TPM-like functionality, and communicates over SPI using the FIFO protocol described in the PTP Spec, section 6. H1 is a proprietary chip that the Chrome OS team is investigatin

[PATCH v4 2/2] tpm: add driver for cr50 on SPI

2016-07-28 Thread Andrey Pronin
Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. The firmware running on the currently supported H1 Secure Microcontroller requires a special driver to handle its specifics: - need to ensure a certain delay between spi transactions, or else the chip may miss some part

Re: [PATCH v3 0/6] power: add power sequence library

2016-07-28 Thread Peter Chen
On Thu, Jul 28, 2016 at 08:56:40AM -0700, Joshua Clayton wrote: > Hi, Peter > > On 07/20/2016 02:40 AM, Peter Chen wrote: > > Hi all, > > > > This is a follow-up for my last power sequence framework patch set [1]. > > According to Rob Herring and Ulf Hansson's comments[2], I use a generic > > powe

[PATCH v4 1/2] tpm: devicetree: document properties for cr50

2016-07-28 Thread Andrey Pronin
Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Signed-off-by: Andrey Pronin --- .../devicetree/bindings/security/tpm/cr50_spi.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/cr50_spi

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

2016-07-28 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/i915_debugfs.c between commit: 194dc870a589 ("Add braces to avoid "ambiguous ‘else’" compiler warnings") from Linus' tree and commit: 24f1d3cc0997 ("drm/i915: Refactor execlists default context pin

[PATCH v3 7/7] doc: bindings: act8945a-charger: Update properties

2016-07-28 Thread Wenyou Yang
Due the driver improvements, update the properties, - Remove "active-semi,check-battery-temperature" property. - Add the properties, "active-semi,irq_gpio" and "active-semi,lbo-gpios". Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None Documentation/devicetree/bindings

[PATCH v3 6/7] power: act8945a_charger: Add max current property

2016-07-28 Thread Wenyou Yang
Add the power supply's current max property, POWER_SUPPLY_PROP_CURRENT_MAX. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.c | 79 +++- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH v3 5/7] power: act8945a_charger: Add capacity level property

2016-07-28 Thread Wenyou Yang
Add the power supply capacity level property, it corresponds to POWER_SUPPLY_CAPACITY_LEVEL_*. It also utilizes the precision voltage detector function module to catch the low battery voltage. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/power/act8945a_charge

[PATCH v3 4/7] power: act8945a_charger: Fix the power supply type

2016-07-28 Thread Wenyou Yang
The power supply type property is varying as the external power supply changes. It is not a constant. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None drivers/power/act8945a_charger.c | 48 1 file changed, 39 insertions(+), 9 delet

[PATCH v3 3/7] power: act8945a_charger: Add status change update support

2016-07-28 Thread Wenyou Yang
Add the charger status change interrupt support, it will report the power supply changed event. This interrupt is generated by one of the conditions as below: - the state machine jumps out of or into the EOC state - the CHGIN input voltage goes out of or into the valid range. - the battery temp

[PATCH v3 2/7] power: act8945a_charger: Improve

2016-07-28 Thread Wenyou Yang
When get the property, first check the charger state machine, then check the status bit to decide what value is assigned to the corresponding property. Retain the SUSCHG bit of REG 0x71 when configure the timers to avoid losting the charger suspending info after boot. Signed-off-by: Wenyou Yang

[PATCH v3 1/7] power: act8945a_charger: Remove "battery_temperature"

2016-07-28 Thread Wenyou Yang
Remove "battery_temperature" member, it is redundant, it is the hardware's responsibility to handle TH pin properly. It is unnecessary to use the dt property to check if there is a battery temperature monitor or not. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None driver

[PATCH v3 0/7] power: act8945a_charger: Improvements

2016-07-28 Thread Wenyou Yang
This patch series is used to improve the act8945a-charger, such as improve the way to check the status, fix the power supply type property, add the status change update, and add more properties: capacity level property and max current property. Changes in v3: - Remove unneeded semicolon to fix se

[PATCH v4 2/2] phy: add a driver for the Rockchip SoC internal PCIe PHY

2016-07-28 Thread Shawn Lin
This patch to add a generic PHY driver for rockchip PCIe PHY. Access the PHY via registers provided by GRF (general register files) module. Signed-off-by: Shawn Lin --- Changes in v4: - remove laneoff symbol as we still fail to get a workable solution except for exporting symbol. But I will b

Re: warning: calling ‘__builtin_return_address’ with a nonzero argument is unsafe

2016-07-28 Thread Linus Torvalds
On Wed, Jul 27, 2016 at 8:52 PM, Steven Rostedt wrote: > > I just looked at your patch. Would this work if you moved that > KBUILD_CFLAGS to the tracing directory? Something like the below (never > compiled or tested). I tried something like that, but the CFLAGS games the tracing code does made m

[PATCH v4 1/2] Documentation: bindings: add dt documentation for Rockchip PCIe PHY

2016-07-28 Thread Shawn Lin
This patch adds a binding that describes the Rockchip PCIe PHY found on Rockchip SoCs PCIe interface. Signed-off-by: Shawn Lin --- Changes in v4: None Changes in v3: - rename the node to pcie_phy: pcie-phy suggested by Doug Changes in v2: - add clk and reset description - remove unit-address

Re: [PATCH] sched/core: add taint on "BUG: sleeping function called from invalid context"

2016-07-28 Thread Rusty Russell
Vegard Nossum writes: > Seeing this, it occurs to me that we should probably add a taint here: Taint has traditionally meant "the user did something unsupported, take the bug report with a grain of salt". Such as force removing a module. So this seems wrong... Cheers, Rusty. > > BUG: sle

Re: [PATCH] ses: Fix racy cleanup of /sys in remove_dev()

2016-07-28 Thread Martin K. Petersen
> "Calvin" == Calvin Owens writes: >> Any thoughts? Squinting at this more it still seems racy, but a >> narrow race is surely better than just blatantly freeing everything >> while the file is still exposed in /sys? Is there a better way you'd >> prefer I accomplish this? >> >> (I have boxe

Re: [PATCH] lpfc: Fix possible NULL pointer dereference

2016-07-28 Thread Martin K. Petersen
> "James" == James Smart writes: James> This patch is good. Johannes: You were going to tweak a few things and resubmit. Please do. -- Martin K. Petersen Oracle Linux Engineering

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

2016-07-28 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/fuse/dir.c: In function 'fuse_reverse_inval_entry': fs/fuse/dir.c:958:13: error: assignment of member 'hash' in read-only object name->hash = full_name_hash(dir, name->name, name->len);

Re: To add, or not to add, a bio REQ_ROTATIONAL flag

2016-07-28 Thread Martin K. Petersen
> "Eric" == Eric Wheeler writes: Eric, Eric> However, just because FADV_SEQUENTIAL is flagged doesn't mean the Eric> cache should bypass. Filesystems can fragment, and while the file Eric> being read may be read sequentially, the blocks on which it Eric> resides may not be. Same thing for

Re: To add, or not to add, a bio REQ_ROTATIONAL flag

2016-07-28 Thread Wols Lists
On 29/07/16 01:50, Eric Wheeler wrote: > Hello all, > > With the many SSD caching layers being developed (bcache, dm-cache, > dm-writeboost, etc), how could we flag a bio from userspace to indicate > whether the bio is preferred to hit spinning disks instead of an SSD? > > Unnecessary promotion

RE: [virtio-dev] Re: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-28 Thread Li, Liang Z
> > > On Wed, Jul 27, 2016 at 09:03:21AM -0700, Dave Hansen wrote: > > > > On 07/26/2016 06:23 PM, Liang Li wrote: > > > > > + vb->pfn_limit = VIRTIO_BALLOON_PFNS_LIMIT; > > > > > + vb->pfn_limit = min(vb->pfn_limit, get_max_pfn()); > > > > > + vb->bmap_len = ALIGN(vb->pfn_limit, BITS_P

Re: [kbuild-all] [PATCH] power: act8945a_charger: fix semicolon.cocci warnings

2016-07-28 Thread Fengguang Wu
Hi Wenyou, On Fri, Jul 29, 2016 at 12:57:20AM +, Yang, Wenyou wrote: Hi Fengguang, I would like to merge this patch and add your Signed-off-by, do you agree? I think it is better. Yes that'd be fine, too. Thanks, Fengguang From: kbuild test robot [l...@intel.com] Sent: Friday, June 24

RE: [PATCH] power: act8945a_charger: fix semicolon.cocci warnings

2016-07-28 Thread Yang, Wenyou
Hi Fengguang, I would like to merge this patch and add your Signed-off-by, do you agree? I think it is better. Best Regards, Wenyou Yang From: kbuild test robot [l...@intel.com] Sent: Friday, June 24, 2016 20:43 To: Yang, Wenyou Cc: kbuild-...@01.org; Se

To add, or not to add, a bio REQ_ROTATIONAL flag

2016-07-28 Thread Eric Wheeler
Hello all, With the many SSD caching layers being developed (bcache, dm-cache, dm-writeboost, etc), how could we flag a bio from userspace to indicate whether the bio is preferred to hit spinning disks instead of an SSD? Unnecessary promotions, evections, and writeback increase the write burden

[RESEND PATCH 2/2] ARM: cache-l2x0.c: Do not clear bit 23 in prefetch control register

2016-07-28 Thread Andrey Smirnov
As per L2C-310 TRM[1]: "... You can control this feature using bits 30,27 and 23 of the Prefetch Control Register. Bit 23 and 27 are only used if you set bit 30 HIGH..." which means there is no need to clear bit 23 if bit 30 is being cleared. [1] http://infocenter.arm.com/help/index.jsp?topic=/

[RESEND PATCH 1/2] ARM: cache-l2x0.c: Replace magic numbers

2016-07-28 Thread Andrey Smirnov
Replace magic numbers used for L310 Prefetch Control Register Acked-by: Arnd Bergmann Signed-off-by: Andrey Smirnov --- arch/arm/mm/cache-l2x0.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 9f9d542..30e2012 1

Re: [PATCH v2 0/3] ntb: Asynchronous NTB devices support

2016-07-28 Thread Serge Semin
Hello, Allen. Thanks for the message. I see your point. Yes, I've seen a lot of cruel threads in mailing threads in lkml.org , so it's not my intention to argue about basic things like Coding Style. That's why I left most of the warnings discussable. While you a digging into the Patch 1/3, I'll do

RE: [virtio-dev] Re: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-28 Thread Li, Liang Z
> On Thu, Jul 28, 2016 at 06:36:18AM +, Li, Liang Z wrote: > > > > > This ends up doing a 1MB kmalloc() right? That seems a _bit_ big. > > > > > How big was the pfn buffer before? > > > > > > > > Yes, it is if the max pfn is more than 32GB. > > > > The size of the pfn buffer use before is 256*

RE: [PATCH] mtd: spi-nor: Add at25df321 spi-nor flash support

2016-07-28 Thread Wenyou.Yang
> -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: 2016年7月26日 16:38 > To: linux-...@lists.infradead.org > Cc: David Woodhouse ; linux-kernel@vger.kernel.org; > Jagan Teki ; Brian Norris > ; Wenyou Yang > Subject: [PATCH] mtd: spi-nor: Add at25df321 spi-nor flash

RE: [PATCH v2 repost 4/7] virtio-balloon: speed up inflate/deflate process

2016-07-28 Thread Li, Liang Z
> On Thu, Jul 28, 2016 at 03:06:37AM +, Li, Liang Z wrote: > > > > + * VIRTIO_BALLOON_PFNS_LIMIT is used to limit the size of page > > > > +bitmap > > > > + * to prevent a very large page bitmap, there are two reasons for this: > > > > + * 1) to save memory. > > > > + * 2) allocate a large bitm

[PATCH 0/3] objtool warning fixes

2016-07-28 Thread Josh Poimboeuf
Fixes for some objtool-related warnings reported by Linus. Josh Poimboeuf (3): objtool: support new gcc 6 switch jump table pattern objtool: resync x86 instruction decoder with the kernel's objtool: un-capitalize "Warning" for out-of-sync instruction decoder tools/objtool/Makefile

[PATCH 2/3] objtool: resync x86 instruction decoder with the kernel's

2016-07-28 Thread Josh Poimboeuf
This fixes the following warning: Warning: objtool: x86 instruction decoder differs from kernel Unfortunately we have three identical copies of the x86 instruction decoder in the kernel tree that have to be manually kept in sync. It's on my TODO list to at least library-ize the ones in the too

[PATCH 3/3] objtool: un-capitalize "Warning" for out-of-sync instruction decoder

2016-07-28 Thread Josh Poimboeuf
Change "Warning" to "warning" to make it look more like a gcc warning. Hopefully that will be enough to help the 0-day bot or other automated tools catch this warning earlier before it ends up in Linus's tree. Reported-by: Linus Torvalds Reviewed-by: Josh Poimboeuf --- tools/objtool/Makefile |

[PATCH 1/3] objtool: support new gcc 6 switch jump table pattern

2016-07-28 Thread Josh Poimboeuf
This fixes some false positive objtool warnings seen with gcc 6.1.1: kernel/trace/ring_buffer.o: warning: objtool: ring_buffer_read_page()+0x36c: sibling call from callable instruction with changed frame pointer arch/x86/kernel/reboot.o: warning: objtool: native_machine_emergency_restart()+0

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-28 Thread Dave Chinner
On Thu, Jul 28, 2016 at 11:25:13AM +0100, Mel Gorman wrote: > On Thu, Jul 28, 2016 at 03:49:47PM +1000, Dave Chinner wrote: > > Seems you're all missing the obvious. > > > > Add a tracepoint for a shrinker callback that includes a "name" > > field, have the shrinker callback fill it out appropriat

Re: [Intel-gfx] [PATCH v4 0/6] Finally fix watermarks

2016-07-28 Thread Matt Roper
This is completely untested (and probably horribly broken/buggy), but here's a quick mockup of the general approach I was thinking for ensuring DDB & WM's can be updated together while ensuring the three-step pipe flushing process is honored: https://github.com/mattrope/kernel/commits/expe

Re: [BUG -next] "random: make /dev/urandom scalable for silly userspace programs" causes crash

2016-07-28 Thread Tony Luck
On Thu, Jul 28, 2016 at 6:41 AM, Theodore Ts'o wrote: > On Thu, Jul 28, 2016 at 09:24:08AM +0200, Heiko Carstens wrote: >> >> Oh, I just realized that Linus pulled your changes. Actually I was hoping >> we could get this fixed before the broken code would be merged. >> Could you please make sure t

Re: [PATCH v4 2/2] input: add ADC resistor ladder driver

2016-07-28 Thread Dmitry Torokhov
On Fri, Jul 29, 2016 at 12:49:21AM +0200, Alexandre Belloni wrote: > On 28/07/2016 at 15:09:18 -0700, Dmitry Torokhov wrote : > > On Tue, Jul 12, 2016 at 05:41:50PM -0700, Dmitry Torokhov wrote: > > > Hi Alexandre, > > > > > > On Tue, Jul 12, 2016 at 09:36:26PM +0200, Alexandre Belloni wrote: > >

Re: [PATCH v2 05/13] gpu: ipu-v3: Add IDMA channel linking support

2016-07-28 Thread Steve Longerbeam
On 07/26/2016 03:06 AM, Philipp Zabel wrote: Am Dienstag, den 19.07.2016, 18:11 -0700 schrieb Steve Longerbeam: Adds functions to link and unlink IDMAC source channels to sink channels. So far the following links are supported: IPUV3_CHANNEL_IC_PRP_ENC_MEM -> IPUV3_CHANNEL_MEM_ROT_ENC PUV3_C

[PATCH 1/5] ipc/msg: Implement lockless pipelined wakeups

2016-07-28 Thread Davidlohr Bueso
From: Sebastian Andrzej Siewior This patch moves the wakeup_process() invocation so it is not done under the ipc global lock by making use of a lockless wake_q. With this change, the waiter is woken up once the message has been assigned and it does not need to loop on SMP if the message points to

  1   2   3   4   5   6   >