[PATCH SPEAKUP v2 2/3] remove unecessary initial allocation of vc

2017-02-28 Thread Pranay Kr. Srivastava
This patch removes the unnecessary allocation of current foreground vc during initialization. This initialization is already handled in the loop that follows it for all available virtual consoles. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 11 --- 1 file c

Re: [PATCH 0/4] fujitsu_init() cleanup

2017-02-28 Thread Michał Kępień
> On Mon, Feb 27, 2017 at 10:17:55PM -0800, Darren Hart wrote: > > Greg, question for you below, see "GregKH"... > > > > On Mon, Feb 27, 2017 at 08:19:09AM +0100, Michał Kępień wrote: > > > > Darren, Andy, > > > > > > > > Please drop this patch series for now. I will send a rebased v2 after a >

Re: [PATCH 2/5] clk: tegra: define Tegra210 DMIC sync clocks

2017-02-28 Thread Peter De Schrijver
On Mon, Feb 27, 2017 at 08:27:33PM +0200, Mikko Perttunen wrote: > On 02/23/2017 02:39 PM, Peter De Schrijver wrote: > >Tegra210 has 3 DMIC inputs which can be clocked from the recovered clock > >of several other audio inputs (eg. i2s0, i2s1, ...). To model this, we add > >a 3 new clocks similar to

Re: [Outreachy kernel] Re: [PATCH v6] staging: xgifb: correct the multiple line dereference

2017-02-28 Thread Julia Lawall
On Tue, 28 Feb 2017, Arushi Singhal wrote: > > > On Tue, Feb 28, 2017 at 11:21 AM, Greg Kroah-Hartman > wrote: > On Tue, Feb 28, 2017 at 10:35:30AM +0530, Arushi Singhal wrote: > > Error reported by checkpatch.pl as "avoid multiple line dereference". > > Addition of new varia

[RESEND PATCH v2 2/5] arm64: dts: exynos: Remove the OF graph from DSI node for exynos5433 dts

2017-02-28 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. So Remove the ports node and move burst and esc clock frequency properties to the parent (DSI node). Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 16 ++--

[RESEND PATCH v2 1/5] drm/exynos: dsi: Fix the parse_dt function

2017-02-28 Thread Hoegeun Kwon
The dsi + panel is a parental relationship, so OF grpah is not needed. Therefore, the current dsi_parse_dt function will throw an error, because there is no linked OF graph for case such as fimd + dsi + panel. So this patch parse the Pll, burst and esc clock frequency properties in dsi_parse_dt and

[RESEND PATCH v2 0/5] Fix the parse_dt of exynos dsi and remove the OF graph

2017-02-28 Thread Hoegeun Kwon
Hi All, [Resend this v2 patches, because i have missing TO and CC.] The dsi + panel is a parental relationship, so OF grpah is not needed. Therefore, the current dsi_parse_dt function will throw an error, because there is no linked OF graph for case such as fimd + dsi + panel. So the 1/5 patch p

Re: [locking/ww_mutex] f2a5fec173 EIP: __mutex_trylock

2017-02-28 Thread Chris Wilson
On Tue, Feb 28, 2017 at 11:59:24AM +0800, Fengguang Wu wrote: > Hello, > > Here is another bisect result with a different call trace. Is this a single processor VM without pre-emption? It's a busy spin loop, so relies on the other thread being run to break the loop. That cpu_relax() should become

Re: [PATCH 0/4] vc4 RST documentation

2017-02-28 Thread Daniel Vetter
On Mon, Feb 27, 2017 at 12:11:40PM -0800, Eric Anholt wrote: > danvet asked me a while ago to try generating documentation with the > new RST-based infrastructure. I had a couple of hours to do some > editing, so here it is. > > So far I'm not including any kerneldoc for functions. I don't think

Re: [PATCH v3 3/6] ARM: davinci: da8xx: add pdata-quirks for VPIF capture

2017-02-28 Thread Sekhar Nori
On Wednesday 22 February 2017 07:43 PM, Bartosz Golaszewski wrote: > From: Kevin Hilman > > For da8xx DT platforms, use pdata-quirks to add legacy platform data for > vpif_capture driver. > > Passing legacy platform_data is required until the V4L2 framework, and > subdevice drivers (such as the

Re: [RESEND PATCH 0/2] sched/fair: Add documentation and optimize __update_sched_avg()

2017-02-28 Thread Yuyang Du
Hi Peter and Ingo, Could you please give a look at this? Thanks, Yuyang On Mon, Feb 13, 2017 at 05:44:21AM +0800, Yuyang Du wrote: > Hi Peter, > > I found I have some patches that go nowhere, out of which two stand out. So I > resend them. > > The first one adds a document about how to calcul

Re: [PATCH v1] regulator: Add driver for voltage controlled regulators

2017-02-28 Thread Matthias Kaehlcke
El Fri, Feb 24, 2017 at 07:19:19PM -0800 Matthias Kaehlcke ha dit: > El Tue, Feb 21, 2017 at 06:22:14PM -0600 Rob Herring ha dit: > > > > > +Optional properties: > > > + > > > ... > > > +- min-slew-down-rate : Describes how slowly the regulator voltage > > > will decay > >

Re: [PATCH RESEND] drm/via: use get_user_pages_unlocked()

2017-02-28 Thread Daniel Vetter
On Mon, Feb 27, 2017 at 09:50:08PM +, Lorenzo Stoakes wrote: > Moving from get_user_pages() to get_user_pages_unlocked() simplifies the code > and takes advantage of VM_FAULT_RETRY functionality when faulting in pages. > > Signed-off-by: Lorenzo Stoakes Queued for 4.12, thanks for the patch.

Re: [PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution

2017-02-28 Thread Lars-Peter Clausen
On 02/28/2017 09:21 AM, Fabrice Gasnier wrote: > On 02/25/2017 04:11 PM, Jonathan Cameron wrote: >> On 24/02/17 16:04, Fabrice Gasnier wrote: >>> On 02/19/2017 01:09 PM, Jonathan Cameron wrote: On 15/02/17 16:55, Fabrice Gasnier wrote: > Add documentation for 'st,adc-res' dt optional prope

Re: [PATCH] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-02-28 Thread Charles Keepax
On Mon, Feb 27, 2017 at 11:13:59AM +0900, Tomasz Figa wrote: > > diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c > > b/drivers/pinctrl/samsung/pinctrl-samsung.c > > index ddc8d6b..864d8b4d 100644 > > --- a/drivers/pinctrl/samsung/pinctrl-samsung.c > > +++ b/drivers/pinctrl/samsung/pinctrl-s

Re: [PATCH 2/2] gpu: drm: Convert printk(KERN_ to pr_

2017-02-28 Thread Daniel Vetter
On Mon, Feb 27, 2017 at 05:31:04PM -0800, Joe Perches wrote: > Use a more common logging style. > > Miscellanea: > > o Coalesce formats and realign arguments > o Neaten a few macros now using pr_ > > Signed-off-by: Joe Perches I know this is pain, but can you pls split this into: - amd/radeon

Re: [PATCH SPEAKUP v2 2/3] remove unecessary initial allocation of vc

2017-02-28 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 28 févr. 2017 13:57:54 +0530, wrote: > This patch removes the unnecessary allocation of > current foreground vc during initialization. > > This initialization is already handled in the loop > that follows it for all available virtual consoles. > > Signed-off-by: Pra

Re: [PATCH v3 6/6] ARM: davinci: add enable GPIOs for vpif capture to pdata-quirks

2017-02-28 Thread Sekhar Nori
On Wednesday 22 February 2017 07:43 PM, Bartosz Golaszewski wrote: > On the da850-evm board we need to select the UI expander video capture > function to make vpif capture work. Add the relevant GPIOs to the > pdata-quirks. > > Signed-off-by: Bartosz Golaszewski Hmm, why do we need this despite

Re: [PATCH SPEAKUP v2 3/3] use spkeaup_allocate as per required context

2017-02-28 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 28 févr. 2017 13:57:55 +0530, wrote: > speakup_allocate used GFP_ATOMIC for allocations > even while during initialization due to it's use > in notifier call. > > Pass GFP_ flags as well to speakup_allocate depending > on the context it is called in. > > Signed-off-

Re: [PATCH SPEAKUP v2 1/3] return same error value from spk_set_key_info

2017-02-28 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 28 févr. 2017 13:57:53 +0530, wrote: > This patch makes spk_set_key_info return -EINVAL > in case of failure instead of returning 4 different > values for the type of error that occurred. > > Print the offending values instead as debug message. > > Signed-off-by: Pr

Re: [PATCH 0/2] key payload access with just rcu_read_lock()

2017-02-28 Thread Jan Stancek
- Original Message - > Jan Stancek wrote: > > > Looks like there are still couple users that need updating, > > I'm hitting following compilation error: > > Aargh - I remembered to grep for rcu_dereference_key() but not > user_key_payload(). > > How about the attached? v2 builds OK (

Re: [PATCH] [media] tw5864: handle unknown video std gracefully

2017-02-28 Thread Andrey Utkin
On Tue, Feb 28, 2017 at 09:20:53AM +0100, Arnd Bergmann wrote: > On Tue, Feb 28, 2017 at 2:08 AM, Andrey Utkin > wrote: > > Retcode checking takes place everywhere, but currently it overwrites > > supplied structs with potentially-uninitialized values. To make it > > cleaner, it should be (e.g. tw

Re: [PATCH] target/user: Add daynmic growing data area featuresupport

2017-02-28 Thread Xiubo Li
On 02/17/2017 01:24 AM, lixi...@cmss.chinamobile.com wrote: From: Xiubo Li Currently for the TCMU, the ring buffer size is fixed to 64K cmd area + 1M data area, and this will be bottlenecks for high iops. Hi Xiubo, thanks for your work. daynmic -> dynamic Have you benchmarked this patch and

Re: [mm/kasan] 80a9201a59 BUG: kernel reboot-without-warning in early-boot stage, last printk: Booting the kernel.

2017-02-28 Thread Dmitry Vyukov
On Tue, Feb 28, 2017 at 4:12 AM, Fengguang Wu wrote: > Hi Alexander, > > FYI, we find an old bug that's still alive in linux-next. The attached > reproduce-* script may help debug the problem. Hi Fengguang, KASAN works fine for us all that time in qemu and on real machines. Do you have any idea

Re: [PATCH v2 2/3] spi: allocate spi_board_info entries one by one

2017-02-28 Thread Mark Brown
On Mon, Feb 27, 2017 at 08:18:56PM -0800, Dmitry Torokhov wrote: > Lists of spi_board_info entries registered with spi_register_board_info() > can be quite long; instead of forcing memory allocator find contagious Do you have numbers on that? signature.asc Description: PGP signature

Re: [PATCH 1/4] v4l2: device_register_subdev_nodes: allow calling multiple times

2017-02-28 Thread Pavel Machek
Hi! > Please find my comments below. Thanks for quick review, will fix. > > switch (vfwn.base.port) { > > case ISP_OF_PHY_CSIPHY1: > > - buscfg->interface = ISP_INTERFACE_CSI2C_PHY1; > > + if (csi1) > > You could compare vfwn.bus_type

[PATCH] clk: meson: fix SET_PARM macro

2017-02-28 Thread Jerome Brunet
parameter val is not enclosed in parenthesis which is buggy when given an expression instead of a simple value Signed-off-by: Jerome Brunet --- drivers/clk/meson/clkc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/clkc.h b/drivers/clk/meson/clkc.h index 9

Re: [REGRESSION] pinctrl, of, unable to find hogs

2017-02-28 Thread Gary Bisson
Hi Tony, On Mon, Feb 27, 2017 at 03:05:43PM -0800, Tony Lindgren wrote: > * Gary Bisson [170227 13:08]: > > Hi Tony, > > > > On Mon, Feb 27, 2017 at 10:45:35AM -0800, Tony Lindgren wrote: > > > * Tony Lindgren [170227 09:37]: > > > > * Gary Bisson [170227 08:42]: > > > > > > Not sure how to fi

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-28 Thread Daniel Vetter
On Mon, Feb 27, 2017 at 10:03:20PM -0800, John Stultz wrote: > On Mon, Feb 20, 2017 at 2:32 PM, Daniel Vetter wrote: > > I thought about this some more, I think what we need to fix this mess > > properly is: > > - mode_valid helper callbacks for crtc, encoder, bridges, with the > > same interface

Re: [PATCH 1/4] clk: sunxi-ng: Add clocks and reset indices for sun7i-a20 SoC

2017-02-28 Thread Emmanuel Vadot
Hello Priit, On Mon, 27 Feb 2017 23:09:11 +0200 Priit Laes wrote: > Add preliminary list of exported clocks and reset indices for > sun7i-a20 SoC, based on existing sun7i-a20 devicetree implementation. > > Signed-off-by: Priit Laes > --- > include/dt-bindings/clock/sun7i-ccu.h | 127 >

Re: [PATCH v5 2/3] nvmem: sunxi-sid: add support for H3's SID controller

2017-02-28 Thread Maxime Ripard
On Tue, Feb 28, 2017 at 04:35:31PM +0800, Icenowy Zheng wrote: > > > 28.02.2017, 14:43, "Maxime Ripard" : > > On Tue, Feb 28, 2017 at 03:27:14AM +0800, Icenowy Zheng wrote: > >>  The H3 SoC have a bigger SID controller, which has its direct read > >>  address at 0x200 position in the SID block, n

Re: [PATCH v2] mmc: meson-gx: remove mmc host on device removal

2017-02-28 Thread Kevin Hilman
Michał Zegan writes: > The mmc host was added in meson_mmc_probe, but never removed in > meson_mmc_remove. > Fix that by removing the host before deallocating other resources. > > Signed-off-by: Michał Zegan > Tested-by: Michał Zegan Acked-by: Kevin Hilman > --- > changes since v1: > rebased

[PATCH] Input: sparse-keymap - add managed version of sparse_keymap_setup()

2017-02-28 Thread Michał Kępień
Some platform drivers use devm_input_allocate_device() together with sparse_keymap_setup() in their .probe callbacks. While using the former simplifies error handling, using the latter necessitates calling sparse_keymap_free() in the error path and upon module unloading to avoid leaking the copy o

Re: [PATCH v1 0/4] gpio: make gpiod_count() API consistent

2017-02-28 Thread Andy Shevchenko
On Mon, 2017-02-27 at 09:27 +0100, Benjamin Tissoires wrote: > On Feb 20 2017 or thereabouts, Andy Shevchenko wrote: > > There are three possibilities in gpiod_count(): ACPI, OF, and > > platform data. > > > > Some of them return 0, which requires to be handled separately, > > though > > developer

Re: [PATCH] locking/ww_mutex: Replace cpu_relax with cond_resched for tests

2017-02-28 Thread Peter Zijlstra
On Tue, Feb 28, 2017 at 09:40:11AM +, Chris Wilson wrote: > When busy-spinning on a ww_mutex_trylock(), we depend upon the other > thread advancing and releasing the lock. This can not happen on a single > CPU unless we relinquish it. Thanks, do you have any clue about those other ww-mutex tes

Re: [PATCH V2 2/3] Documentation: sprd: Add bindings for SP9860G

2017-02-28 Thread Rob Herring
On Tue, Feb 21, 2017 at 02:55:03PM +0800, Chunyan Zhang wrote: > Added support for Spreadtrum SP9860G board and SC9860 SoC. > This patch also revised bindings of SC9836 to make the format > more clear. > > Signed-off-by: Chunyan Zhang > --- > Documentation/devicetree/bindings/arm/sprd.txt

[PATCH] locking/ww_mutex: Replace cpu_relax with cond_resched for tests

2017-02-28 Thread Chris Wilson
When busy-spinning on a ww_mutex_trylock(), we depend upon the other thread advancing and releasing the lock. This can not happen on a single CPU unless we relinquish it. [ 28.709171] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [kworker/0:1:18] [ 28.710974] irq event stamp: 25570 [

Re: [PATCH 0/4] blk-mq: cleanup on all kinds of kobjects

2017-02-28 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 06:13:58PM +0800, Ming Lei wrote: > This patchset cleans up on kojects of request_queue.mq_kobj, > sw queue's kobject and hw queue's kobject. > > The 1st patch initialized kobject of request_queue and sw queue > in blk_mq_init_allocated_queue(), so we can avoid to initializ

Re: [RFT 0/4] mfd: regulator: max14577: Remove support for platform data

2017-02-28 Thread Mark Brown
On Mon, Feb 27, 2017 at 04:52:36PM +0100, Bartlomiej Zolnierkiewicz wrote: > On Monday, February 27, 2017 05:32:37 PM Krzysztof Kozlowski wrote: > > The driver supports two chipsets: max14577 and max77836. As you noted, > > the first one is for Gear 1. The second one is present on Gear2 which > >

Re: [PATCH v3 6/6] ARM: davinci: add enable GPIOs for vpif capture to pdata-quirks

2017-02-28 Thread Bartosz Golaszewski
2017-02-28 9:49 GMT+01:00 Sekhar Nori : > On Wednesday 22 February 2017 07:43 PM, Bartosz Golaszewski wrote: >> On the da850-evm board we need to select the UI expander video capture >> function to make vpif capture work. Add the relevant GPIOs to the >> pdata-quirks. >> >> Signed-off-by: Bartosz G

Re: IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device"

2017-02-28 Thread Sebastian Ott
On Mon, 27 Feb 2017, Bart Van Assche wrote: > On Mon, 2017-02-27 at 21:17 +0100, Sebastian Ott wrote: > > commit 99db94940 "IB/core: Remove ib_device.dma_device" > > breaks infiniband on s390 (and I think also other archs that do something > > like to_pci_dev(dev) in one of their dma_ops callbacks

[PATCH V3] vhost: introduce O(1) vq metadata cache

2017-02-28 Thread Jason Wang
When device IOTLB is enabled, all address translations were stored in interval tree. O(lgN) searching time could be slow for virtqueue metadata (avail, used and descriptors) since they were accessed much often than other addresses. So this patch introduces an O(1) array which points to the interval

Re: [RESEND PATCH v2 0/5] Fix the parse_dt of exynos dsi and remove the OF graph

2017-02-28 Thread Krzysztof Kozlowski
On Tue, Feb 28, 2017 at 10:17 AM, Hoegeun Kwon wrote: > Hi All, > > [Resend this v2 patches, because i have missing TO and CC.] > > The dsi + panel is a parental relationship, so OF grpah is not needed. > Therefore, the current dsi_parse_dt function will throw an error, > because there is no linke

Re: [PATCH] locking/ww_mutex: Replace cpu_relax with cond_resched for tests

2017-02-28 Thread Chris Wilson
On Tue, Feb 28, 2017 at 10:48:53AM +0100, Peter Zijlstra wrote: > On Tue, Feb 28, 2017 at 09:40:11AM +, Chris Wilson wrote: > > When busy-spinning on a ww_mutex_trylock(), we depend upon the other > > thread advancing and releasing the lock. This can not happen on a single > > CPU unless we rel

[PATCH 2/2] regulator: lm363x: Use generic DT property name for external control pins

2017-02-28 Thread Milo Kim
Vpos and Vneg LDOs can be enabled or disabled by external GPIOs. Use general DT property 'enable-gpios' for this usage. Two enable pins are differentiable by selecting the index number. Signed-off-by: Milo Kim --- drivers/regulator/lm363x-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH V3 1/3] sched/deadline: Replenishment timer should fire in the next period

2017-02-28 Thread Daniel Bristot de Oliveira
Currently, the replenishment timer is set to fire at the deadline of a task. Although that works for implicit deadline tasks because the deadline is equals to the begin of the next period, that is not correct for constrained deadline tasks (deadline < period). For instance: f.c: ---

Re: perf test 'instruction decoder' failing

2017-02-28 Thread Adrian Hunter
On 24/02/17 22:27, Arnaldo Carvalho de Melo wrote: > Hi Adrian, > > This test is failing, I'll try to recheck this and bisect it, > but since I haven't had the time so far and I saw it since yesterday (at > least), lemme document it here: > > > [root@jouet ~]# perf test -v 57 > 57: x86 ins

[PATCH V3 3/3] sched/deadline: Use deadline instead of period when calculating overflow

2017-02-28 Thread Daniel Bristot de Oliveira
From: "Steven Rostedt (VMware)" I was testing Daniel's changes with his test case, and tweaked it a little. Instead of having the runtime equal to the deadline, I increased the deadline ten fold. Daniel's test case had: attr.sched_runtime = 2 * 1000 * 1000; /* 2 ms */

[PATCH V3 2/3] sched/deadline: Throttle a constrained deadline task activated after the deadline

2017-02-28 Thread Daniel Bristot de Oliveira
During the activation, CBS checks if it can reuse the current task's runtime and period. If the deadline of the task is in the past, CBS cannot use the runtime, and so it replenishes the task. This rule works fine for implicit deadline tasks (deadline == period), and the CBS was designed for implic

[PATCH V3 0/3] sched/deadline: Fixes for constrained deadline tasks

2017-02-28 Thread Daniel Bristot de Oliveira
While reading sched deadline code, I find out that a constrained deadline task could be replenished before the next period if activated after the deadline, opening the window to run for more than Q/P. The patch [2] explains and fixes this problem. Furthermore, while fixing this issue, I found that

Re: [Lsf-pc] [LSF/MM TOPIC] do we really need PG_error at all?

2017-02-28 Thread Boaz Harrosh
On 02/28/2017 03:11 AM, Jeff Layton wrote: <> > > I'll probably have questions about the read side as well, but for now it > looks like it's mostly used in an ad-hoc way to communicate errors > across subsystems (block to fs layer, for instance). If memory does not fail me it used to be checked l

Re: [PATCH V2 2/3] Documentation: sprd: Add bindings for SP9860G

2017-02-28 Thread Chunyan Zhang
On 28 February 2017 at 03:56, Rob Herring wrote: > On Tue, Feb 21, 2017 at 02:55:03PM +0800, Chunyan Zhang wrote: >> Added support for Spreadtrum SP9860G board and SC9860 SoC. >> This patch also revised bindings of SC9836 to make the format >> more clear. >> >> Signed-off-by: Chunyan Zhang >> ---

[PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation and this cause writing to configuration space will fail. This patch fix it by using correct FMTTYPE for write operation. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 10 +++--- 1 file changed, 7 ins

Re: [PATCH] kbuild: avoid unrecognized option error for external DTC

2017-02-28 Thread Michael Ellerman
Ben Hutchings writes: > [ Unknown signature status ] > On Mon, 2017-02-27 at 14:40 +0900, Masahiro Yamada wrote: >> Since commit 6b22b3d1614a ("kbuild: Allow using host dtc instead of >> kernel's copy"), it is possible to use an external dtc.  In this >> case, we do not know which options are sup

Re: [PATCH 0/2] key payload access with just rcu_read_lock()

2017-02-28 Thread David Howells
Here's an updated patch with fixed user_key_payload_locked() and user_read(). David --- commit f57350ca3480c418dbc20bf73a7678a7f8e3e4ab Author: David Howells Date: Tue Feb 28 10:08:01 2017 + KEYS: Differentiate uses of rcu_dereference_key() and user_key_payload() rcu_dereferen

Re: [WARNING: A/V UNSCANNABLE][Merge tag 'media/v4.11-1' of git] ff58d005cd: BUG: unable to handle kernel NULL pointer dereference at 0000039c

2017-02-28 Thread Ingo Molnar
* Linus Torvalds wrote: > In other words: what will happen is that distros start getting bootup problem > reports six months or a year after we've done it, and *if* they figure out > it's > the irq enabling, they'll disable it, because they have no way to solve it > either. > > And core dev

Re: [PATCH] arm64: dump: hide kernel pointers

2017-02-28 Thread Mark Rutland
On Tue, Feb 28, 2017 at 08:42:51AM +, Ard Biesheuvel wrote: > (+ Mark) (+ Laura) > On 28 February 2017 at 07:05, Miles Chen wrote: > > Mask kernel pointers of /sys/kernel/debug/kernel_page_tables entry like > > /proc/vmallocinfo does. > > > > With sysctl kernel.kptr_restrict=0 or 1: > > cat

Re: [PATCH v6] staging: xgifb: correct the multiple line dereference

2017-02-28 Thread Greg Kroah-Hartman
On Tue, Feb 28, 2017 at 01:59:53PM +0530, Arushi Singhal wrote: Please fix your email client to not send html mail, otherwise the mailing lists reject them, and your quoting is all messed up :( > On Tue, Feb 28, 2017 at 11:21 AM, Greg Kroah-Hartman < > gre...@linuxfoundation.org> wrote: > >

[PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation and this cause writing to configuration space will fail. This patch fix it by using correct FMTTYPE for write operation. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 10 +++--- 1 file changed, 7 ins

Re: [PATCH] staging: fsl-mc: fix warning in DT ranges parser

2017-02-28 Thread Laurentiu Tudor
Hi Arnd, On 02/27/2017 10:42 PM, Arnd Bergmann wrote: > The fsl-mc-bus driver in staging contains a copy of the standard > 'ranges' property parsing algorithm with a hack to treat a missing > property the same way as an empty one. This code produces false-positive > warnings for me in an allmodcon

Re: [PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
On Tue, Feb 28, 2017 at 6:37 PM, Ley Foon Tan wrote: > Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation > and this cause writing to configuration space will fail. This patch > fix it by using correct FMTTYPE for write operation. > > Signed-off-by: Ley Foon Tan > Cc: sta..

Re: [f2fs-dev] [PATCH 2/3] f2fs: add bitmaps for empty or full NAT blocks

2017-02-28 Thread Chao Yu
On 2017/2/28 6:19, Jaegeuk Kim wrote: > On 02/27, Chao Yu wrote: >> On 2017/2/26 2:34, Jaegeuk Kim wrote: >>> On 02/25, Chao Yu wrote: On 2017/2/24 6:54, Jaegeuk Kim wrote: > On 02/23, Chao Yu wrote: >> On 2017/2/14 10:06, Jaegeuk Kim wrote: >>> ... > >>> +static int scan_nat_b

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-02-28 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: > Provide support so that kexec can be used to boot a kernel when SME is > enabled. > > Support is needed to allocate pages for kexec without encryption. This > is needed in order to be able to reboot in the kernel in the same manner >

[PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation and this cause writing to configuration space will fail. This patch fix it by using correct FMTTYPE for write operation. Signed-off-by: Ley Foon Tan Cc: sta...@vger.kernel.org --- drivers/pci/host/pcie-altera.c | 10 ++

[PATCH 1/2] drivers: pwm: pwm-atmel: switch to atomic PWM

2017-02-28 Thread Claudiu Beznea
The currently Atmel PWM controllers supported by this driver could change period and duty factor without channel disable (sama5d3 supports this by using period and duty factor update registers, sam9rl support this by writing channel update register and select the corresponding update: period or dut

[PATCH 0/2] switch to atomic PWM

2017-02-28 Thread Claudiu Beznea
Switch atmel-pwm driver to atomic PWM and enable it for sama5d2 Claudiu Beznea (2): drivers: pwm: pwm-atmel: switch to atomic PWM drivers: pwm: pwm-atmel: enable pwm on sama5d2 .../devicetree/bindings/pwm/atmel-pwm.txt | 1 + drivers/pwm/pwm-atmel.c| 22

[PATCH 2/2] drivers: pwm: pwm-atmel: enable pwm on sama5d2

2017-02-28 Thread Claudiu Beznea
sama5d2 can use the same atmel_pwm_data as sama5d3. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/pwm/atmel-pwm.txt | 1 + drivers/pwm/pwm-atmel.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/atmel

[tip:core/urgent] objtool: Enclose contents of unreachable() macro in a block

2017-02-28 Thread tip-bot for Josh Poimboeuf
Commit-ID: 4e4636cf981b5b629fbfb78aa9f232e015f7d521 Gitweb: http://git.kernel.org/tip/4e4636cf981b5b629fbfb78aa9f232e015f7d521 Author: Josh Poimboeuf AuthorDate: Mon, 27 Feb 2017 22:21:16 -0600 Committer: Ingo Molnar CommitDate: Tue, 28 Feb 2017 07:47:26 +0100 objtool: Enclose contents

Re: [LKP] [lkp-developer] [sched/fair] 4e5160766f: +149% ftq.noise.50% regression

2017-02-28 Thread Vincent Guittot
On 28 February 2017 at 01:33, Huang, Ying wrote: > Vincent Guittot writes: > >> Hi Ying, >> >> On 21 February 2017 at 03:40, Huang, Ying wrote: >>> Hi, Vincent, >>> >>> Vincent Guittot writes: >>> >> >> [snip] >> > > Here is the test result, > > =

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-28 Thread Lorenzo Pieralisi
Arnd, all, On Mon, Feb 27, 2017 at 03:14:18PM +, Lorenzo Pieralisi wrote: > The introduction of the pci_remap_cfgspace() interface allows > PCI host controller drivers to map PCI config space through a > dedicated kernel interface. Current PCI host controller drivers > use the devm_ioremap_* D

[PATCH v7] staging: xgifb: correct the multiple line dereference

2017-02-28 Thread Arushi Singhal
Error reported by checkpatch.pl as "avoid multiple line dereference". Addition of new variables to make the code more readable. Signed-off-by: Arushi Singhal --- changes in v7 - Improve the coding style. - Introduced new variables. drivers/staging/xgifb/XGI_main_26.c | 29 ++

Re: Issues with irq handling in mfd/intel_soc_pmic_bxtwc.c

2017-02-28 Thread Andy Shevchenko
(Cc: Vincent, he might be interested in that since he is working on Basin Cove ADC driver for the moment) On Mon, Feb 27, 2017 at 2:38 PM, Hans de Goede wrote: > Hi All, > > While working on Whiskey Cove PMIC support for Cherrytrail devices > I noticed that the irq handling in the Broxton Whiskey

Re: IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device"

2017-02-28 Thread Sebastian Ott
On Tue, 28 Feb 2017, Sebastian Ott wrote: > On Mon, 27 Feb 2017, Bart Van Assche wrote: > > On Mon, 2017-02-27 at 21:17 +0100, Sebastian Ott wrote: > > > commit 99db94940 "IB/core: Remove ib_device.dma_device" > > > breaks infiniband on s390 (and I think also other archs that do something > > > lik

Re: [PATCH v3 2/2] perf/sdt: Directly record SDT events with 'perf record'

2017-02-28 Thread Ravi Bangoria
Thanks Masami for the review. Please find my replies to your comments. On Tuesday 28 February 2017 11:15 AM, Masami Hiramatsu wrote: > On Fri, 24 Feb 2017 13:13:25 +0530 > Ravi Bangoria wrote: > >> After invoking 'perf record', behind the scenes, it checks whether >> the event specified is an SDT

Re: [f2fs-dev] [PATCH 2/3 v2] f2fs: add bitmaps for empty or full NAT blocks

2017-02-28 Thread Chao Yu
On 2017/2/28 13:33, Jaegeuk Kim wrote: > On 02/28, Chao Yu wrote: >> On 2017/2/24 6:58, Jaegeuk Kim wrote: >>> @@ -2326,7 +2431,8 @@ void flush_nat_entries(struct f2fs_sb_info *sbi) >>> * entries, remove all entries from journal and merge them >>> * into nat entry set. >>> */ >>> -

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-28 Thread Nicolai Stange
Hi Abel, On Tue, Feb 28 2017, Abel Vesa wrote: > On Mon, Feb 27, 2017 at 04:52:06PM +0100, Nicolai Stange wrote: >> On Fri, Feb 24 2017, Abel Vesa wrote: >> >> >> >> > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> > index fda6a46..877df5b 100644 >> > --- a/arch/arm/Kconfig >> > +++ b/arc

Re: [PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
On Tue, Feb 28, 2017 at 6:31 PM, Ley Foon Tan wrote: > Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation > and this cause writing to configuration space will fail. This patch > fix it by using correct FMTTYPE for write operation. > > Signed-off-by: Ley Foon Tan > --- > dr

[PATCH] scsi: qedi: fix missing return error code check on call to qedi_setup_int

2017-02-28 Thread Colin King
From: Colin Ian King The call to qedi_setup_int is not updating the return code rc yet rc is being checked for an error. Fix this by assigning rc to the return code from the call to qedi_setup_int. Signed-off-by: Colin Ian King --- drivers/scsi/qedi/qedi_main.c | 2 +- 1 file changed, 1 insert

Re: [PATCH 13/20] PCI: iproc-platform: update PCI config space remap function

2017-02-28 Thread Lorenzo Pieralisi
Hi Ray, On Mon, Feb 27, 2017 at 01:21:39PM -0800, Ray Jui wrote: > Hi Lorenzo, > > On 2/27/2017 7:14 AM, Lorenzo Pieralisi wrote: > > PCI configuration space should be mapped with a memory region type that > > generates on the CPU host bus non-posted write transations. Update the > > driver to us

RE: [PATCH V2] PCI/ASPM: reconfigure ASPM following hotplug for POLICY_DEFAULT

2017-02-28 Thread Patel, Mayurkumar
> >When the operating system is booted with the default ASPM policy >(POLICY_DEFAULT), the current code is determining the ASPM policy >set up by the BIOS by querying the enable/disable states from ASPM >registers. > >In the case of hotplug removal, the ASPM registers get cleared by >calling the pc

Re: [PATCH v1 1/2] pinctrl: rockchip:Add input schmitt support

2017-02-28 Thread David.Wu
Hi Heiko, 在 2017/2/24 0:51, Heiko Stuebner 写道: Hi David, Am Dienstag, 14. Februar 2017, 18:35:40 CET schrieb David Wu: From: "david.wu" struct rockchip_pin_config { @@ -1355,6 +1358,53 @@ static int rockchip_set_pull(struct rockchip_pin_bank *bank, return ret; } +static int rockchip_get_s

Re: [bpf] 9d876e79df: BUG: unable to handle kernel paging request at 653a8346

2017-02-28 Thread Fengguang Wu
5 git bisect bad 327d9d62aac2d74f41564e22f3ce52eb241e1dae # 17:40 0- 51 ERR_USER_PTR # extra tests on tree/branch linus/master git bisect bad 5782fd14aaecc72f27473f380ba2044c7598b14a # 17:57 47- 30 Merge tag 'rtc-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux # extra tests on t

Re: [PATCH v5] usb: misc: add USB251xB/xBi Hi-Speed Hub Controller Driver

2017-02-28 Thread Jan Lübbe
On Mo, 2017-02-27 at 16:27 -0600, Rob Herring wrote: > On Mon, Feb 27, 2017 at 3:48 AM, Jan Lübbe wrote: > > On Di, 2017-02-21 at 15:57 +0100, Richard Leitner wrote: > >> >>> This is a lot of properties. Are you really finding a need for all of > >> >>> them? Is this to handle h/w designers too ch

Re: [PATCH v7] staging: xgifb: correct the multiple line dereference

2017-02-28 Thread Joe Perches
On Tue, 2017-02-28 at 16:15 +0530, Arushi Singhal wrote: > Error reported by checkpatch.pl as "avoid multiple line dereference". > Addition of new variables to make the code more readable. You should probably split this into 2 patches, one for each file. What Julia said about finding a better/sho

Re: [PATCH 0/6] ARM: dts: socfpga: Fix dtc warnings

2017-02-28 Thread Florian Vaussard
On 02/27/2017 05:45 PM, Dinh Nguyen wrote: > > > On 02/24/2017 11:54 PM, Florian Vaussard wrote: >> We get a bunch of warnings when compiling the SoCFPGA device trees with W=1. >> This warnings happens because some nodes have a unit name but no 'reg' >> property, >> or are missing a unit name

Re: [PATCH 0/4] fujitsu_init() cleanup

2017-02-28 Thread Jonathan Woithe
On Tue, Feb 28, 2017 at 09:07:04AM +0100, Greg Kroah-Hartman wrote: > On Mon, Feb 27, 2017 at 10:17:55PM -0800, Darren Hart wrote: > > > > > > > The problem I have with this driver is that it is generally > > > > > > > oblivious to > > > > > > > the user's chosen backlight provider. It was writte

Re: Issues with irq handling in mfd/intel_soc_pmic_bxtwc.c

2017-02-28 Thread Heikki Krogerus
Hi, On Tue, Feb 28, 2017 at 12:26:03PM +0200, Andy Shevchenko wrote: > (Cc: Vincent, he might be interested in that since he is working on > Basin Cove ADC driver for the moment) > > On Mon, Feb 27, 2017 at 2:38 PM, Hans de Goede wrote: > > Hi All, > > > > While working on Whiskey Cove PMIC supp

Re: [PATCHv4] arm: ftrace: Adds support for CONFIG_DYNAMIC_FTRACE_WITH_REGS

2017-02-28 Thread Abel Vesa
On Tue, Feb 28, 2017 at 11:58:49AM +0100, Nicolai Stange wrote: > Hi Abel, > > On Tue, Feb 28 2017, Abel Vesa wrote: > > > On Mon, Feb 27, 2017 at 04:52:06PM +0100, Nicolai Stange wrote: > >> On Fri, Feb 24 2017, Abel Vesa wrote: > >> > >> > >> > >> > diff --git a/arch/arm/Kconfig b/arch/arm/K

Re: [PATCH] scsi: qedi: fix missing return error code check on call to qedi_setup_int

2017-02-28 Thread Rangankar, Manish
On 28/02/17 4:32 PM, "Colin King" wrote: >From: Colin Ian King > >The call to qedi_setup_int is not updating the return code rc yet rc >is being checked for an error. Fix this by assigning rc to the return >code from the call to qedi_setup_int. > >Signed-off-by: Colin Ian King >--- > drivers/s

Re: [Outreachy kernel] Re: [PATCH v7] staging: xgifb: correct the multiple line dereference

2017-02-28 Thread Joe Perches
On Tue, 2017-02-28 at 12:24 +0100, Julia Lawall wrote: > It's drifting a little bit from the original issue, but the whole *i thing > is not very nice. The function is used in only one place, and the call > looks like this: > >temp = XGI_AjustCRT2Rate(ModeIdIndex, RefreshRateTable

[PATCH] netfilter: remove redundant check on ret being non-zero

2017-02-28 Thread Colin King
From: Colin Ian King ret is initialized to zero and if it is set to non-zero in the xt_entry_foreach loop then we exit via the out_free label. Hence the check for ret being non-zero is redundant and can be removed. Detected by CoverityScan, CID#1357132 ("Logically Dead Code") Signed-off-by: Col

Re: [Lsf-pc] [LSF/MM TOPIC] do we really need PG_error at all?

2017-02-28 Thread Jeff Layton
On Tue, 2017-02-28 at 12:12 +0200, Boaz Harrosh wrote: > On 02/28/2017 03:11 AM, Jeff Layton wrote: > <> > > > > I'll probably have questions about the read side as well, but for now it > > looks like it's mostly used in an ad-hoc way to communicate errors > > across subsystems (block to fs layer,

net: GPF in rt6_nexthop_info

2017-02-28 Thread Dmitry Vyukov
Hello, The following program triggers GPF in rt6_nexthop_info // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include int main() { unshare(CLONE_NEWNET); int fd = socket(PF_NETLINK, SOCK_DGRAM|SOCK_NONBLOCK, 0); const char* data

Re: [PATCH v3] sched/deadline: Change the time to replenish runtime for sleep tasks

2017-02-28 Thread Juri Lelli
Hi, On 23/02/17 15:14, Byungchul Park wrote: > Let's consider the following example. > > timeline : o...o.o...o..o >^ ^ ^ ^ ^ >| | | | | >start |

[PATCH] staging: ks7010: Unnecessary parentheses removed and improved coding style.

2017-02-28 Thread Arushi Singhal
Unnecessary parentheses are removed as reported by checkpatch.pl to make coder nicer and to improve readability. Also coding style is improved as it's often nicer to read if &(foo[0]) is converted to foo like: memcpy(&(ap->bssid[0]), &(ap_info->bssid[0]), ETH_ALEN); memcpy(ap->bssid, ap_info->bs

[PATCH] omap3isp: Parse CSI1 configuration from the device tree.

2017-02-28 Thread Pavel Machek
Add support for parsing CSI1 configuration. Signed-off-by: Pavel Machek --- > Please find my comments below. Thanks for comments. They are fixed now, plus I fixed the checkpatch stuff that was possible. It should be ready to apply to the right branch. diff --git a/drivers/media/platform/omap

Re: [PATCH] sched: deadline: Fix confusing comments about selection of top pi-waiter

2017-02-28 Thread Juri Lelli
Hi, On 22/02/17 20:09, Joel Fernandes wrote: > This comment in the code is incomplete, and I believe it begs a definition of > dl_boosted to make sense of the condition that follows. Rewrite the comment > and > also rearrange the condition that follows to reflect the first condition "we > have a

[PATCH] staging: wilc1000: add check for kmalloc allocation failure.

2017-02-28 Thread Colin King
From: Colin Ian King Add a sanity check that wid.val has been allocated, fixes a null pointer deference on stamac when calling ether_add_copy. Detected by CoverityScan, CID#1369537 ("Dereference null return value") Signed-off-by: Colin Ian King --- drivers/staging/wilc1000/host_interface.c |

Re: [PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution

2017-02-28 Thread Fabrice Gasnier
On 02/28/2017 09:34 AM, Lars-Peter Clausen wrote: On 02/28/2017 09:21 AM, Fabrice Gasnier wrote: On 02/25/2017 04:11 PM, Jonathan Cameron wrote: On 24/02/17 16:04, Fabrice Gasnier wrote: On 02/19/2017 01:09 PM, Jonathan Cameron wrote: On 15/02/17 16:55, Fabrice Gasnier wrote: Add documentati

Re: [PATCH v2 1/2] dt-bindings: arm: hisilicon: add bindings for hi3798cv200 SoC and Poplar board

2017-02-28 Thread Peter Griffin
Hi Andreas, On Mon, 27 Feb 2017, Andreas Färber wrote: > Hi, > > Am 27.02.2017 um 03:48 schrieb Alex Elder: > > On 02/26/2017 07:24 PM, Jiancheng Xue wrote: > >> On 2017/2/26 9:32, Andreas Färber wrote: > >>> Am 22.02.2017 um 09:38 schrieb Jiancheng Xue: > Add bindings for HiSilicon hi3798c

<    2   3   4   5   6   7   8   9   >