[PATCH v4] staging: lustre: llite: Fix variable length array warning

2017-05-08 Thread Guru Das Srinagesh
Fix sparse warning "warning: Variable length array is used." by using kmalloc_array to allocate the required amount of memory instead and kfree to deallocate memory after use. Signed-off-by: Guru Das Srinagesh --- v4: - Changed kmalloc_array flags from GFP_KERNEL to GFP_ATOMIC v3: - Fixe

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-08 Thread Ingo Molnar
* Kees Cook wrote: > > There's the option of using GCC plugins now that the infrastructure was > > upstreamed from grsecurity. It can be used as part of the regular build > > process and as long as the analysis is pretty simple it shouldn't hurt > > compile > > time much. > > Well, and that

[GIT PULL 2/7] ARM: SoC platform updates

2017-05-08 Thread Olof Johansson
SoC platform changes (arch/arm/mach-*). This merge window, the bulk is for a few platforms: * Gemini: - Legacy platform that Linus Walleij has converted to multiplatform and DT, so a handful of various tweaks there, removal of some old stale support, etc. * Atmel AT91: - Fixup of various power ma

[GIT PULL 7/7] ARM: 64-bit DT updates

2017-05-08 Thread Olof Johansson
Device-tree updates for arm64 platforms. Just as with 32-bit, a bunch of smaller changes, but also some new platforms that are worth mentioning: * Rockchip RK3399 platforms for Chromebooks, including Samsung Chromebook Plus (Kevin) * Orange Pi PC2 (Allwinner H5) * Freescale LS2088A and LS1088A SoC

[GIT PULL 4/7] ARM: SoC defconfig updates

2017-05-08 Thread Olof Johansson
We've traditionally kept defconfig updates in a separate branch, often to encourage submaintainers to handle those patches separately to avoid conflicts on the shared files. The amount of changes seem to be decreasing though, so we might rethink how we handle this going forward. There really isn't

[GIT PULL 3/7] ARM: Device-tree updates

2017-05-08 Thread Olof Johansson
Device-tree continues to see lots of updates. The majority of patches here are smaller changes for new hardware on existing platforms, and there are a few larger changes worth pointing out. Major new platforms: - Gemini has been ported to DT, so a handful of "new" platforms moved over from board

[GIT PULL 6/7] ARM: SoC 64-bit changes

2017-05-08 Thread Olof Johansson
Changes to platform code for 64-bit ARM platforms. Most of these are small changes to the one defconfig we use on arm64 (no per-platform configs there), to enable new drivers. There are also a few other changes. Broadcom sold off their 'Vulcan' design to Cavium, where it is now called ThunderX2.

[GIT PULL 5/7] ARM: SoC driver updates

2017-05-08 Thread Olof Johansson
Driver updates for ARM SoCs. * Reset subsystem, merged through arm-soc by tradition: - Make bool drivers explicitly non-modular - New support for i.MX7 and Arria10 reset controllers * PATA driver for Palmchip BK371 (acked by Tejun) * Power domain drivers for i.MX (GPC, GPCv2) - Moved out of mach

[GIT PULL 1/7] ARM: SoC non-urgent fixes for merge window

2017-05-08 Thread Olof Johansson
Smaller patches that didn't seem to find a home in other branches, and low-priority fixes from late in the merge window. A number of these are MAINTAINER updates, it seems. Highlights: * Maintainers: - Remove Alexandre Courbot and Stephen Warren from Tegra maintainership, add Jon Hunter - Remove

[GIT PULL 0/7] ARM: SoC contents for 4.12 merge window

2017-05-08 Thread Olof Johansson
Hi Linus, It's been a relatively quiet release cycle here. Patch count is about the usual (818 commits, which includes merges). Accumulated diffstat: 683 files changed, 28234 insertions(+), 7251 deletions(-) Dirstat is also more or less as we're used to it these days. Since arm's dts structure

[tip:x86/urgent] x86/build: Don't add -maccumulate-outgoing-args w/o compiler support

2017-05-08 Thread tip-bot for Nick Desaulniers
Commit-ID: 4a1bec4605838fd7872ec41677585e241e256785 Gitweb: http://git.kernel.org/tip/4a1bec4605838fd7872ec41677585e241e256785 Author: Nick Desaulniers AuthorDate: Mon, 8 May 2017 20:29:46 -0700 Committer: Ingo Molnar CommitDate: Tue, 9 May 2017 08:16:45 +0200 x86/build: Don't add -mac

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-08 Thread Ingo Molnar
* Greg KH wrote: > What about a simple coccinelle script to test for this type of thing? > We write it once, add it to the in-kernel body of tests, and then 0-day > runs it on all trees all the time. That should catch this type of > issue, like all of the other "bad programming bus" that the to

[tip:x86/urgent] x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init()

2017-05-08 Thread tip-bot for Laura Abbott
Commit-ID: 861ce4a3244c21b0af64f880d5bfe5e6e2fb9e4a Gitweb: http://git.kernel.org/tip/861ce4a3244c21b0af64f880d5bfe5e6e2fb9e4a Author: Laura Abbott AuthorDate: Mon, 8 May 2017 14:23:16 -0700 Committer: Ingo Molnar CommitDate: Tue, 9 May 2017 08:12:27 +0200 x86/mm/32: Set the '__vmalloc

Re: [PATCH] sched/fair: WARN and refuse to set buddy when !se->on_rq

2017-05-08 Thread Peter Zijlstra
On Mon, May 08, 2017 at 10:32:30PM +0300, Konstantin Khlebnikov wrote: > On Mon, May 8, 2017 at 10:22 PM, Daniel Axtens wrote: > > I recently had to debug a problem with these (we hadn't backported > > Konstantin's patches in this area) and this would have saved a lot > > of time/pain. > > Yep,

[no subject]

2017-05-08 Thread Chris Rankin
Hi Linux http://www.carpediemeventos.cl/case-studies.php?france=2k712cqa9ksz Chris

Re: [PATCH] platform/x86: peaq-wmi: Add new peaq-wmi driver

2017-05-08 Thread Hans de Goede
Hi, Darren, Dmitry, thank you for the review. On 08-05-17 23:04, Darren Hart wrote: On Mon, May 08, 2017 at 09:56:31PM +0200, Hans de Goede wrote: PEAQ is a new European OEM, I've bought one of their 2-in-1 x86 devices, which is actually quite a nice device. Under Windows it has Dolby software

Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures

2017-05-08 Thread Peter Senna Tschudin
On Mon, May 08, 2017 at 10:30:13PM -0300, Fabio Estevam wrote: > Hi Peter, > > On Mon, May 8, 2017 at 12:02 PM, Peter Senna Tschudin > wrote: > > Hello Kishon, > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > linux-next and I could bisect until: > > > > commit 442ec4c04

Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-08 Thread Ingo Molnar
* Kees Cook wrote: > On Mon, May 8, 2017 at 7:02 AM, Ingo Molnar wrote: > > > > * Kees Cook wrote: > > > >> > And yes, I realize that there were other such bugs and that such bugs > >> > might > >> > occur in the future - but why not push the overhead of the security > >> > check to > >> > t

Re: [PATCH] wcn36xx: Close SMD channel on device removal

2017-05-08 Thread Kalle Valo
Bjorn Andersson writes: > The SMD channel is not the primary WCNSS channel and must explicitly be > closed as the device is removed, or the channel will already by open on > a subsequent probe call in e.g. the case of reloading the kernel module. > > This issue was introduced because I simplified

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-08 Thread Madhavan Srinivasan
On Monday 08 May 2017 07:42 PM, Daniel Axtens wrote: Hi all, I've had a look at the API as it was a big thing I didn't like in the earlier version. I am much happier with this one. Thanks to mpe for suggesting this. :) Some comments: - I'm no longer subscribed to skiboot but I've had

get/put_cpu() usage in block/blk-mq.c

2017-05-08 Thread Mike Galbraith
Hi Jens, I was about to fix up this splat.. [ 445.022141] loop: module loaded [ 445.078116] BUG: using smp_processor_id() in preemptible [] code: loop0/3801 [ 445.085873] caller is debug_smp_processor_id+0x17/0x20 [ 445.091016] CPU: 7 PID: 3801 Comm: loop0 Tainted: GE

[PATCH v4 2/4] ACPICA: Tables: Add mechanism to allow to balance late stage acpi_get_table() independently

2017-05-08 Thread Lv Zheng
For all frequent late stage acpi_get_table() clone invocations, we should only change them altogether, otherwise, excessive acpi_put_table() could unexpectedly unmap the table used by the other users. Thus the current plan is to change all acpi_get_table() clones together or to change none of them.

[PATCH v4 1/3] KASLR: Parse all memmap entries in cmdline

2017-05-08 Thread Baoquan He
In commit: f28442497b5c ("x86/boot: Fix KASLR and memmap= collision") ... the memmap= option is parsed so that KASLR can avoid those reserved regions. It uses cmdline_find_option() to get the value if memmap= is specified, however the problem is that cmdline_find_option() can only find the last

[PATCH v4 3/4] ACPI: sysfs: Fix acpi_get_table() leak

2017-05-08 Thread Lv Zheng
From: Dan Williams Reading an ACPI table through the /sys/firmware/acpi/tables interface more than 65,536 times leads to the following log message: ACPI Error: Table 88033595eaa8, Validation count is zero after increment (20170119/tbutils-423) Add the missing acpi_put_table() so the tabl

[PATCH v4 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-05-08 Thread Baoquan He
Option mem= will limit the max address a system can use and any memory region above the limit will be removed. Furthermore, memmap=nn[KMG] which has no offset specified has the same behaviour as mem=. KASLR needs to consider this when choosing the random position for decompressing the kernel. Th

[PATCH v4 3/3] Documentation/kernel-parameters.txt: Update 'memmap=' option description

2017-05-08 Thread Baoquan He
In commit: 9710f581bb4c ("x86, mm: Let "memmap=" take more entries one time") ... 'memmap=' was changed to adopt multiple, comma delimited values in a single entry, so update the related description. In the special case of only specifying size value without an offset, like memmap=nn[KMG], memm

[PATCH v4 4/4] ACPI: Fix memory mapping leaks in current sysfs dumpable ACPI tables support

2017-05-08 Thread Lv Zheng
This patch adds acpi_put_table() to make all acpi_get_table() clone invocations balanced for sysfs ACPI table dump code. Since Linux does not use all of the tables, this can help to reduce some usless memory mappings. While originally, all tables will be remained to be mapped after a userspace ac

[PATCH v4 0/3] Handle memmap and mem kernel options in boot stage kaslr

2017-05-08 Thread Baoquan He
People reported kernel panic occurs during system boots up with mem boot option. After checking code, several problems are found about memmap= and mem= in boot stage kaslr. *) In commit f28442497b5c ("x86/boot: Fix KASLR and memmap= collision"), only one memmap entry is considered and only th

[PATCH v4 1/4] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-05-08 Thread Lv Zheng
In the Linux kernel side, acpi_get_table() clones haven't been fully balanced by acpi_put_table() invocations. In ACPICA side, due to the design change, there are also unbalanced acpi_get_table_by_index() invocations requiring special care. So it is not a good timing to report acpi_get_table() cou

Re: [PATCH] mfd: cros-ec: Add cros_ec_readmem() helpers for I2C/SPI based ECs

2017-05-08 Thread kbuild test robot
Hi Moritz, [auto build test WARNING on ljones-mfd/for-mfd-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Moritz-Fischer/mfd-cros-ec-Add-cros_ec_readmem-helpers-for-I2C-SPI-based-ECs/201705

Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block

2017-05-08 Thread Oleksij Rempel
On 05/09/2017 07:37 AM, Amir Goldstein wrote: On Tue, May 9, 2017 at 7:13 AM, Oleksij Rempel mailto:o...@pengutronix.de>> wrote: On 05/02/2017 09:37 AM, Richard Weinberger wrote: Amir, Am 02.05.2017 um 09:19 schrieb Amir Goldstein: On Fri, Apr 28, 2017 at

lening bieden

2017-05-08 Thread SAFETY NET CREDIT
Goede dag,  Dit is het beveiligingsnetwerk van de kredietverstrekking.   SAFETY NET CREDIT biedt flexibele en betaalbare leningen voor elk doel om u te helpen uw doelen te bereiken. We lenen tegen een lage rente van 3%. Hier zijn enkele belangrijke kenmerken van de persoonlijke lening aangebo

Re: sky2: Use seq_putc() in sky2_debug_show()

2017-05-08 Thread Stephen Hemminger
On Mon, 8 May 2017 19:42:46 +0200 SF Markus Elfring wrote: > > Which issue do you mean? I dont see any issue you fix here. > > Are the run time characteristics a bit nicer for the function “seq_putc” > in comparison to the function “seq_puts” for printing a single line break > here? > > Rega

Re: [PATCH] dt-bindings: power: New bindings for ltc3651-charger

2017-05-08 Thread Mike Looijmans
On 08-05-17 19:12, Rob Herring wrote: On Fri, May 05, 2017 at 08:38:35AM +0200, Mike Looijmans wrote: This adds the devicetree bindings documentation for the LTC3651 battery charger. Signed-off-by: Mike Looijmans --- .../bindings/power/supply/ltc3651-charger.txt | 26 +++

[PATCH v3] power: Add ltc3651-charger driver

2017-05-08 Thread Mike Looijmans
The LTC3651 reports its status via GPIO lines. This driver translates the GPIO levels to battery charger status information via sysfs. It relies on devicetree to supply the IO configuration. Signed-off-by: Mike Looijmans --- v3: Add "lltc" vendor prefix to DT gpios properties v2: Remove unused in

Re: CFP: KVM Forum 2017

2017-05-08 Thread Jon Masters
On 05/02/2017 06:41 AM, Paolo Bonzini wrote: > > KVM Forum 2017: Call For Participation > October 25-27, 2017 - Hilton Prague - Prague, Czech Republic > > (All submissions must be received before midnight June 15, 2017) > ===

Re: [PATCH] driver core: platform: Add ability to find resource by name or index

2017-05-08 Thread Greg Kroah-Hartman
On Mon, May 08, 2017 at 05:59:48PM -0400, Jon Mason wrote: > It is not always possible to find a resource via the name. This may be > due to using previous versions of device tree without the names or using > ACPI. To allow for resources to be discovered by either the name or the > index, a wrapp

Re: [PATCH] misc: Implement devm_misc_register

2017-05-08 Thread Greg Kroah-Hartman
On Tue, May 09, 2017 at 02:27:48AM +, Gregory Fong wrote: > Add device managed devm_misc_register() to allow simplifying some > miscdevice code. > > Signed-off-by: Gregory Fong > --- > This seemed like it would be handy for removing a large chunk of the cleanup > code in various miscdevice us

[PATCH] net: fec: select queue depending on VLAN priority

2017-05-08 Thread Stefan Agner
Since the addition of the multi queue code with commit 59d0f7465644 ("net: fec: init multi queue date structure") the queue selection has been handelt by the default transmit queue selection implementation which tries to evenly distribute the traffic across all available queues. This selection pres

[PATCH v2] dt-bindings: power: New bindings for ltc3651-charger

2017-05-08 Thread Mike Looijmans
This adds the devicetree bindings documentation for the LTC3651 battery charger. Signed-off-by: Mike Looijmans --- v2: Add "lltc," vendor prefix to gpios Expand irq paragraph .../bindings/power/supply/ltc3651-charger.txt | 27 ++ 1 file changed, 27 insertions(+) cr

[git pull] vfs.git misc stuff

2017-05-08 Thread Al Viro
Assorted bits and pieces from various people. No common topic in that pile, sorry. The following changes since commit 4f7d029b9bf009fbee76bb10c0c4351a1870d2f3: Linux 4.11-rc7 (2017-04-16 13:00:18 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kern

Re: [PATCH] net: wireless: ath: ath10k: remove unnecessary code

2017-05-08 Thread Kalle Valo
"Gustavo A. R. Silva" writes: > The name of an array used by itself will always return the array's address. > So these tests will always evaluate as false and therefore the _return_ > will never be executed. > > Signed-off-by: Gustavo A. R. Silva I don't understand the commit log, especially wh

[git pull] vfs.git fix

2017-05-08 Thread Al Viro
Braino fix for iov_iter_revert() misuse The following changes since commit a6a5993243550b09f620941dea741b7421fdf79c: iov_iter: don't revert iov buffer if csum error (2017-05-01 14:49:53 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro

Re: [greybus-dev] [PATCH v2] Staging: greybus: light: Prefer kcalloc over kzalloc

2017-05-08 Thread Viresh Kumar
On 08-05-17, 18:05, kart...@techveda.org wrote: > From: Karthik Tummala > > Fixed following checkpatch.pl warning: > * WARNING: Prefer kcalloc over kzalloc with multiply > > Instead of specifying no.of bytes * size as argument > in kzalloc, prefer kcalloc. > > Signed-off-by: Karthik Tummala >

Re: [PATCH V6 1/9] PM / OPP: Introduce "power-domain-opp" property

2017-05-08 Thread Viresh Kumar
On 08-05-17, 14:57, Sudeep Holla wrote: > Yes, I followed the thread and figured that out. But Rajendra also > raised "What if the microcontroller firmware maps the performance-index > to voltage but expects linux to scale the frequency? There is no way to > specify a performance-index *and* a freq

sound/core/hwdep_compat.c:43:31: sparse: incorrect type in argument 2 (different address spaces)

2017-05-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bf5f89463f5b3109a72ed13ca62b57e90213387d commit: beba3a20bf90ce1b93e24592c3ebf0d0bb581bbe x86: switch to RAW_COPY_USER date: 6 weeks ago reproduce: # apt-get install sparse git checkout beba

[PATCH] rpmsg: Make rpmsg_create_ept() propagate error

2017-05-08 Thread Bjorn Andersson
Make the rpmsg_create_ept() return an ERR_PTR() rather than NULL, as this is common practice throughout the kernel and I got the first two clients of this API wrong. Signed-off-by: Bjorn Andersson --- drivers/rpmsg/qcom_smd.c | 8 drivers/rpmsg/rpmsg_char.c | 4 ++-- drive

Re: [PATCH 3/3] arm64/locking: qspinlocks and qrwlocks support

2017-05-08 Thread Boqun Feng
On Wed, May 03, 2017 at 05:51:41PM +0300, Yury Norov wrote: > From: Jan Glauber > > Ported from x86_64 with paravirtualization support removed. > > Signed-off-by: Jan Glauber > > Note. This patch removes protection from direct inclusion of > arch/arm64/include/asm/spinlock_types.h. It's done b

[PATCH] mfd: intel_quark_i2c_gpio: Add support for SIMATIC IOT2000 platform

2017-05-08 Thread Jan Kiszka
The SIMATIC IOT2000 is derived from the Galileo Gen2 board and shares its I2C frequency. Signed-off-by: Jan Kiszka Signed-off-by: Sascha Weisenberger --- drivers/mfd/intel_quark_i2c_gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd

[PATCH] wcn36xx: Close SMD channel on device removal

2017-05-08 Thread Bjorn Andersson
The SMD channel is not the primary WCNSS channel and must explicitly be closed as the device is removed, or the channel will already by open on a subsequent probe call in e.g. the case of reloading the kernel module. This issue was introduced because I simplified the underlying SMD implementation

[PATCH] net: wireless: ath: ath10k: remove unnecessary code

2017-05-08 Thread Gustavo A. R. Silva
The name of an array used by itself will always return the array's address. So these tests will always evaluate as false and therefore the _return_ will never be executed. Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/ath/ath10k/wmi.c | 9 - 1 file changed, 9 deletions(-)

Re: [PATCH 0/4] DMA-buf: Fine-tuning for four function implementations

2017-05-08 Thread Sumit Semwal
Hello Markus, On 8 May 2017 at 14:40, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 8 May 2017 11:05:05 +0200 > > A few update suggestions were taken into account > from static source code analysis. > > Markus Elfring (4): > Combine two function calls into one in dma_buf_debug_s

[regression, bisected] 4.11+ imx uarts broken

2017-05-08 Thread Mika Penttilä
Hi, The following commit e61c38d85b7 makes the uarts on i.MX6 nonfunctional (no data transmitted or received). With e61c38d85b7 reverted the uarts work ok. --- commit e61c38d85b7392e033ee03bca46f1d6006156175 Author: Uwe Kleine-König Date: Tue Apr 4 11:18:51 2017 +0200 se

Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block

2017-05-08 Thread Oleksij Rempel
On 05/02/2017 09:37 AM, Richard Weinberger wrote: Amir, Am 02.05.2017 um 09:19 schrieb Amir Goldstein: On Fri, Apr 28, 2017 at 1:03 AM, Richard Weinberger wrote: Am 24.04.2017 um 17:47 schrieb Richard Weinberger: So, if some flag should be implemented, who should do it? :) I'll not do it

[PATCH] net: wireless: ath: ath9k: remove unnecessary code

2017-05-08 Thread Gustavo A. R. Silva
The name of an array used by itself will always return the array's address. So this test will always evaluate as true. Addresses-Coverity-ID: 1364903 Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/ath/ath9k/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

linux-next: Tree for May 9

2017-05-08 Thread Stephen Rothwell
Hi all, Please do not add any v4.13 destined material in your linux-next included branches until after v4.12-rc1 has been released. Changes since 20170508: Non-merge commits (relative to Linus' tree): 2374 2523 files changed, 83999 insertions(+), 42709 dele

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-05-08 Thread Steve Longerbeam
On 05/08/2017 02:41 AM, Philipp Zabel wrote: Hi Steve, On Wed, 2017-04-12 at 17:45 -0700, Steve Longerbeam wrote: This patch adds a call to imx_media_fill_empty_mbus_fields() in the *_try_fmt() functions at the sink pads, to set empty field order and colorimetry parameters. If the field orde

Re: [Patch v4] x86/build: don't add -maccumulate-outgoing-args w/o compiler support

2017-05-08 Thread Josh Poimboeuf
On Mon, May 08, 2017 at 08:29:46PM -0700, Nick Desaulniers wrote: > Clang does not support this machine dependent option. > > Older versions of GCC (pre 3.0) may not support this option, added in > 2000, but it's unlikely they can still compile the kernel. > > Signed-off-by: Nick Desaulniers > -

Re: [PATCH 7/7] DWARF: add the config option

2017-05-08 Thread Josh Poimboeuf
On Mon, May 08, 2017 at 07:31:50PM -0700, Andy Lutomirski wrote: > On Mon, May 8, 2017 at 6:38 PM, Josh Poimboeuf wrote: > >> Also, don't you need some indication of which reg is the base from > >> which you find previous frame? After all, sometimes GCC will emit a > >> frame pointer even in an o

Re: [PATCH] thermal: core: make thermal_emergency_poweroff static

2017-05-08 Thread Keerthy
On Monday 08 May 2017 04:06 PM, Colin King wrote: > From: Colin Ian King > > Making thermal_emergency_poweroff static fixes sparse warning: > > drivers/thermal/thermal_core.c:6: warning: symbol > 'thermal_emergency_poweroff' was not declared. Should it be static? Acked-by: Keerthy > >

Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-05-08 Thread Baoquan He
On 05/08/17 at 05:25pm, Borislav Petkov wrote: > On Mon, May 08, 2017 at 09:36:49AM +0800, Baoquan He wrote: > > Thanks for explaining, Bhupesh. > > > > BIOS issue of SGI uv1 is still not fixed. There's a quirk for uv1 to > > use efi old map: > > > > void __init efi_apply_memmap_quirks(void) > >

[Patch v4] x86/build: don't add -maccumulate-outgoing-args w/o compiler support

2017-05-08 Thread Nick Desaulniers
Clang does not support this machine dependent option. Older versions of GCC (pre 3.0) may not support this option, added in 2000, but it's unlikely they can still compile the kernel. Signed-off-by: Nick Desaulniers --- arch/x86/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) d

net/xfrm/xfrm_input.c:84:9: sparse: context imbalance in 'xfrm_rcv_cb' - unexpected unlock

2017-05-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bf5f89463f5b3109a72ed13ca62b57e90213387d commit: 960fdfdeb9e85a67bed136bc945c541ba61c2bdd xfrm: input: constify xfrm_input_afinfo date: 3 months ago reproduce: # apt-get install sparse git

Re: [PATCH] scsi: qedf: properly update arguments position in function call

2017-05-08 Thread Gustavo A. R. Silva
Hi Martin, Quoting "Martin K. Petersen" : Gustavo A., Properly update the position of the arguments in function call. Applied to 4.12/scsi-fixes, thank you! Awesome, glad to help. :) -- Gustavo A. R. Silva

Re: [PATCH v8 2/7] doc: Add documentation for Coresight CPU debug

2017-05-08 Thread Leo Yan
Hi Mathieu, On Wed, May 03, 2017 at 04:29:37PM -0600, Mathieu Poirier wrote: > On Tue, May 02, 2017 at 06:08:32PM +0800, Leo Yan wrote: > > Update kernel-parameters.txt to add new parameter: > > coresight_cpu_debug.enable is a knob to enable debugging at boot time. > > > > Add detailed documentat

[PATCH v9 5/9] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-05-08 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor fix is to use of_cpu_dev

[PATCH v9 9/9] arm64: dts: qcom: msm8916: Add debug unit

2017-05-08 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boo

[PATCH v9 8/9] arm64: dts: hi6220: register debug module

2017-05-08 Thread Leo Yan
Bind debug module driver for Hi6220. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 470461d..467

[PATCH v9 7/9] coresight: add support for CPU debug module

2017-05-08 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g. we

[PATCH v9 6/9] coresight: refactor with function of_coresight_get_cpu

2017-05-08 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_c

[PATCH v9 4/9] MAINTAINERS: update file entries for Coresight subsystem

2017-05-08 Thread Leo Yan
Update document file entries for Coresight debug module. Signed-off-by: Leo Yan --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b948dfa..a4b1f60 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1191,7 +1191,9 @@ L:linux-arm-ker...@lists

[PATCH v9 3/9] doc: Add coresight_cpu_debug.enable to kernel-parameters.txt

2017-05-08 Thread Leo Yan
Add coresight_cpu_debug.enable to kernel-parameters.txt, this flag is used to enable/disable the CPU sampling based debugging. Signed-off-by: Leo Yan --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/admin-guide/kernel-pa

[PATCH v9 2/9] doc: Add documentation for Coresight CPU debug

2017-05-08 Thread Leo Yan
Add detailed documentation for Coresight CPU debug driver, which contains the info for driver implementation, Mike Leach excellent summary for "clock and power domain". At the end some examples on how to enable the debugging functionality are provided. Suggested-by: Mike Leach Signed-off-by: Leo

[PATCH v9 0/9] coresight: enable debug module

2017-05-08 Thread Leo Yan
ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter H7 "The Sample-based Profiling Extension" has description for sampling registers, we can utilize these registers to check program counter value with combined CPU exception level, secure state, etc. So this is helpful for CPU lockup bugs,

[PATCH v9 1/9] coresight: bindings for CPU debug module

2017-05-08 Thread Leo Yan
According to ARMv8 architecture reference manual (ARM DDI 0487A.k) Chapter 'Part H: External debug', the CPU can integrate debug module and it can support self-hosted debug and external debug. Especially for supporting self-hosted debug, this means the program can access the debug module from mmio

Re: [PATCH 2/6] Documentation: devicetree: add bindings to support ARM MHU subchannels

2017-05-08 Thread Jassi Brar
On Mon, May 8, 2017 at 10:37 PM, Sudeep Holla wrote: > > > On 08/05/17 17:46, Jassi Brar wrote: >> On Mon, May 8, 2017 at 9:40 PM, Rob Herring wrote: >>> +Bjorn >>> >>> On Tue, May 02, 2017 at 02:55:49PM +0100, Sudeep Holla wrote: The ARM MHU has mechanism to assert interrupt signals to faci

Re: [virtio-dev] Re: [PATCH v9 2/5] virtio-balloon: VIRTIO_BALLOON_F_BALLOON_CHUNKS

2017-05-08 Thread Wei Wang
On 05/09/2017 01:40 AM, Michael S. Tsirkin wrote: On Sun, May 07, 2017 at 04:19:28AM +, Wang, Wei W wrote: On 05/06/2017 06:26 AM, Michael S. Tsirkin wrote: On Thu, Apr 27, 2017 at 02:31:49PM +0800, Wei Wang wrote: On 04/27/2017 07:20 AM, Michael S. Tsirkin wrote: On Wed, Apr 26, 2017 at

Re: [drm:qxl] BUG: sleeping function called from invalid context - qxl_bo_kmap_atomic_page()...splat

2017-05-08 Thread Mike Galbraith
On Mon, 2017-05-08 at 16:48 -0300, Gabriel Krisman Bertazi wrote: > Thanks for reporting this. Can you confirm the following patch prevents > the issue? Nope, it still gripes. [ 43.910362] BUG: sleeping function called from invalid context at mm/slab.h:432 [ 43.910955] in_atomic(): 1, irqs

Re: [PATCH 7/7] DWARF: add the config option

2017-05-08 Thread Andy Lutomirski
On Mon, May 8, 2017 at 6:38 PM, Josh Poimboeuf wrote: > On Mon, May 08, 2017 at 05:21:24PM -0700, Andy Lutomirski wrote: >> On Sun, May 7, 2017 at 9:55 AM, Josh Poimboeuf wrote: >> > struct undwarf { >> > unsigned int ip;/* instruction pointer (relative >> > offse

[PATCH] misc: Implement devm_misc_register

2017-05-08 Thread Gregory Fong
Add device managed devm_misc_register() to allow simplifying some miscdevice code. Signed-off-by: Gregory Fong --- This seemed like it would be handy for removing a large chunk of the cleanup code in various miscdevice users. Let me know whether you think it'd be worth going ahead changing this

Re: [PATCH v7 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-05-08 Thread Wolfram Sang
> > + /* TODO: provide device tree option for multi-master mode. > > */ > > > I am curious what everyone thinks about this. It seemed that, earlier on, > people did not like me disabling multi-master mode, but I think that it > would make bus recovery not work as well. Given that, I

Re: [PATCH v3 7/8] arm64: exception: handle asynchronous SError interrupt

2017-05-08 Thread Xiongfeng Wang
Hi James, On 2017/5/9 1:27, James Morse wrote: > Hi Xiongfeng Wang, > > On 28/04/17 03:55, Xiongfeng Wang wrote: >> It is ok to just ignore the process following the ESB instruction in >> el0_sync, because the process will be sent SIGBUS signal. I don't understand. How will Lin

Re: [PATCH] scsi: pmcraid: remove redundant check to see if request_size is less than zero

2017-05-08 Thread Martin K. Petersen
Colin, > The 2nd check to see if request_size is less than zero is redundant > because the first check takes error exit path on this condition. So, > since it is redundant, remove it. Applied to 4.12/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: lpfc: ensure els_wq is being checked before destroying it

2017-05-08 Thread Martin K. Petersen
Colin, > I believe there is a typo on the wq destroy of els_wq, currently the > driver is checking if els_cq is not null and I think this should be a > check on els_wq instead. Applied to 4.12/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] cxlflash: Select IRQ_POLL

2017-05-08 Thread Martin K. Petersen
Guenter, > The driver now uses IRQ_POLL and needs to select it to avoid the following > build error. Applied to 4.12/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qedf: Avoid reading past end of buffer

2017-05-08 Thread Martin K. Petersen
Kees, > Using memcpy() from a string that is shorter than the length copied > means the destination buffer is being filled with arbitrary data from > the kernel rodata segment. Instead, use strncpy() which will fill the > trailing bytes with zeros. Applied to 4.12/scsi-fixes, thanks! -- Martin

Re: [PATCH v3 2/2] x86/refcount: Implement fast refcount overflow protection

2017-05-08 Thread Josh Poimboeuf
On Mon, May 08, 2017 at 04:31:11PM -0700, Kees Cook wrote: > On Mon, May 8, 2017 at 3:53 PM, Josh Poimboeuf wrote: > > On Mon, May 08, 2017 at 12:32:52PM -0700, Kees Cook wrote: > >> +#define REFCOUNT_EXCEPTION \ > >> + "movl $0x7fff, %[counter]\n\t"

RE: [PATCH v3 2/4] ACPICA: Tables: Add mechanism to allow to balance late stage acpi_get_table() independently

2017-05-08 Thread Zheng, Lv
Hi, > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH v3 2/4] ACPICA: Tables: Add mechanism to allow to balance > late stage > acpi_get_table() independently > > On Thursday, May 04, 2017 07:18:28 AM Zheng

Re: [PATCH v2] sd: Ignore sync cache failures when not supported

2017-05-08 Thread Martin K. Petersen
Christoph, > Normally we'd just pass the scsi_sense_hdr structure in from the caler > if we care about sense data. Is this something you considered? > > Otherwise this looks fine to me. I agree with Christoph that passing the sense header would be more consistent with the rest of the SCSI code.

[PATCH 0/3] coding style warnings fixes

2017-05-08 Thread Harinath Nampally
This patchset is for fixes reported by checkpatch.pl Please find the following patches: [PATCH 1/3] staging: iio: meter: Add the comment for mutex definition [PATCH 2/3] staging: iio: meter: Fix the identations for proper [PATCH 3/3] staging: iio: meter: Replace symbolic permissions with octal pe

Re: [PATCH v8] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

2017-05-08 Thread Tomohiro Yoshidomi
Mr.Torokhov Hi. I fixed source, and sent v8 patch to you. * FF codes ('CONFIG_JOYSTICK_PSXPAD_SPI_FF' defined), put together in one place. * psxpad_spi_suspend() stub removed again. Regard. --- Tomohiro Yoshidomi

Re: [PATCH] f2fs: split bio cache

2017-05-08 Thread Chao Yu
Hi Jaegeuk, On 2017/5/9 5:23, Jaegeuk Kim wrote: > Hi Chao, > > I can't see a strong reason to split meta from data/node and rename the > existing > function names. Instead, how about keeping the existing one while adding some > page types to deal with log types? Hmm.. before write this patch,

[PATCH v8] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

2017-05-08 Thread Tomohiro Yoshidomi
PlayStation 1/2 joypads can be connected directly to the SPI interface. Signed-off-by: Tomohiro Yoshidomi Acked-by: David Herrmann --- drivers/input/joystick/Kconfig | 22 ++ drivers/input/joystick/Makefile | 1 + drivers/input/joystick/psxpad-spi.c | 431 +++

Re: [PATCH] scsi: qedf: properly update arguments position in function call

2017-05-08 Thread Martin K. Petersen
Gustavo A., > Properly update the position of the arguments in function call. Applied to 4.12/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

[PATCH 1/3] staging: iio: meter: Add the comment for mutex definition

2017-05-08 Thread Harinath Nampally
This patch fixes below checkpatch.pl warning: CHECK: struct mutex definition without comment Signed-off-by: Harinath Nampally --- drivers/staging/iio/meter/ade7753.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/meter/ade7753.c b/drivers/staging/iio/m

[PATCH 2/3] staging: iio: meter: Fix the identations for proper alignments

2017-05-08 Thread Harinath Nampally
This patch fixes below checkpatch.pl kind of warnings: CHECK: Alignment should match open parenthesis Signed-off-by: Harinath Nampally --- drivers/staging/iio/meter/ade7753.c | 55 ++--- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/drivers/stagi

[PATCH 3/3] staging: iio: meter: Replace symbolic permissions with octal permissions

2017-05-08 Thread Harinath Nampally
This patch fixes below kind of warnings: WARNING: Symbolic permissions 'S_IXXX | S_IXXX' are not preferred. Below errors are false positives: ade7753.c:382: ERROR: Use 4 digit octal (0777) not decimal permissions ade7753.c:386: ERROR: Use 4 digit octal (0777) not decimal permissions Signed-off-by

Re: [PATCH] sched/fair: WARN and refuse to set buddy when !se->on_rq

2017-05-08 Thread Daniel Axtens
Konstantin Khlebnikov writes: > On Mon, May 8, 2017 at 10:22 PM, Daniel Axtens wrote: >> If we set a next or last buddy for a se that is not on_rq, we will >> end up taking a NULL pointer dereference in wakeup_preempt_entity >> via pick_next_task_fair. >> >> Detect when we would be about to do t

Re: [PATCH v2] Input: elan_i2c - check if device is there before really probing

2017-05-08 Thread Fabio Estevam
On Mon, May 8, 2017 at 9:45 PM, Dmitry Torokhov wrote: > + /* Make sure there is something at this address */ > + error = i2c_smbus_read_byte(client); > + if (error < 0) { > + dev_dbg(&client->dev, "nothing at this address: %d\n", error); > + return -

Re: [PATCH, RFC] MAINTAINERS: update OSD entries

2017-05-08 Thread Martin K. Petersen
Christoph, > The open-osd domain doesn't exist anymore, and mails to the list lead > to really annoying bounced that repeat every day. > > Also the primarydata address for Benny bounces, and while I have a new > one for him he doesn't seem to be maintaining the OSD code any more. > > Which beggs

  1   2   3   4   5   6   7   >