Re: git email From: parsing (was Re: [GIT PULL] Staging/IIO driver patches for 4.11-rc1)

2017-02-23 Thread Simon Sandström
On Thu, Feb 23, 2017 at 01:17:02AM -0500, Jeff King wrote: > On Thu, Feb 23, 2017 at 07:04:44AM +0100, Greg KH wrote: > > > > > I don't know what happened, I used git for this, I don't use quilt for > > "normal" patches accepted into my trees anymore, only for stable kernel > > work. > > > > So

Re: [PATCHv7 2/8] printk: rename nmi.c and exported api

2017-02-23 Thread Sergey Senozhatsky
Hello Geert, On (02/23/17 08:50), Geert Uytterhoeven wrote: > Hi Sergey, [..] > > -config NMI_LOG_BUF_SHIFT > > - int "Temporary per-CPU NMI log buffer size (12 => 4KB, 13 => 8KB)" > > +config PRINTK_SAFE_LOG_BUF_SHIFT > > + int "Temporary per-CPU printk log buffer size (12 => 4KB, 13

[PATCH 02/11] drm/sun4i: Set drm_crtc.port to the underlying TCON's output port node

2017-02-23 Thread Chen-Yu Tsai
The way drm_of_find_possible_crtcs is it tries to match the remote-endpoint of the given node's various endpoints to all the crtc's .port field. Thus we need to set drm_crtc.port to the output port node of the underlying TCON. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_crtc.c |

[PATCH 03/11] drm/sun4i: Add end of list element for sun4i_layers_init's returned list

2017-02-23 Thread Chen-Yu Tsai
The number of defined planes in sun4i_layer is unknown to other parts of the sun4i drm driver. Since the return value of sun4i_layers_init is a list of layers, make it return 1 more empty layer as an end of list guard value. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_layer.c | 2

[PATCH 04/11] drm/sun4i: Move layers from sun4i_drv to sun4i_crtc

2017-02-23 Thread Chen-Yu Tsai
This patch moves the sun4i_layers_init call from sun4i_drv_bind to sun4i_crtc_init, and the layers pointer from struct sun4i_drv to struct sun4i_crtc. The layers are bound to a specific crtc, and they are not directly used once initiated. They are used through their included drm_plane structures.

[PATCH 01/11] drm/sun4i: Make sunxi_rgb2yuv_coef constant

2017-02-23 Thread Chen-Yu Tsai
sunxi_rgb2yuv_coef is a table of RGB-to-YUV conversion coefficients. They are programmed into the hardware, and can be declared constant. Reported-by: Priit Laes Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH 1/1] drivers/misc: Add Intel System ID driver

2017-02-23 Thread Arnd Bergmann
On Thu, Feb 23, 2017 at 6:58 AM, Loh, Tien Hock wrote: > On Rab, 2017-02-15 at 20:51 +0100, Arnd Bergmann wrote: >> On Wed, Feb 15, 2017 at 6:17 PM, Greg KH >> wrote: >> > >> > On Wed, Feb 15, 2017 at 07:09:41PM +0800, thloh wrote: >> > > >> > > From: "Loh, Tien Hock" >> > > >> > > This patch is

Re: [RFC] perf/sdt: Directly record SDT event with 'perf record'

2017-02-23 Thread Ravi Bangoria
Thanks Arnaldo, I'm working on this but it's taking bit longer time. Will post out a patch within few days. Ravi On Monday 20 February 2017 07:41 PM, Arnaldo Carvalho de Melo wrote: > Em Mon, Feb 20, 2017 at 04:31:50PM +0530, Ravi Bangoria escreveu: >> Thanks Ingo, >> >> On Monday 20 February 2

[PATCH 00/11] drm/sun4i: Various fixes and cleanups part 2

2017-02-23 Thread Chen-Yu Tsai
Hi Maxime, This is the second bunch of fixes for the sun4i drm driver. This is part of the cleanup I am doing towards making the driver support multiple display pipelines. This part mainly aims to get detection of crtcs working with of_graph, and moving data structure pointers around for a more l

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-23 Thread Anshuman Khandual
On 02/22/2017 01:44 AM, Jerome Glisse wrote: > On Tue, Feb 21, 2017 at 06:39:17PM +0530, Anshuman Khandual wrote: >> On 02/17/2017 07:02 PM, Mel Gorman wrote: >>> On Fri, Feb 17, 2017 at 05:11:57PM +0530, Anshuman Khandual wrote: On 02/15/2017 11:50 PM, Mel Gorman wrote: > On Wed, Feb 15,

[git pull] Input updates for 4.11-rc0

2017-02-23 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get: - a new driver for Zeitech touchscreen controller - a new driver for Samsung "touchkeys" - touchscreen driver for Moorestown platf

Re: [PATCH 1/1] drivers/misc: Add Intel System ID driver

2017-02-23 Thread Loh, Tien Hock
OK then I'll move it into driver/soc/ in that case. On Kha, 2017-02-23 at 09:05 +0100, Arnd Bergmann wrote: > On Thu, Feb 23, 2017 at 6:58 AM, Loh, Tien Hock com> wrote: > > > > On Rab, 2017-02-15 at 20:51 +0100, Arnd Bergmann wrote: > > > > > > On Wed, Feb 15, 2017 at 6:17 PM, Greg KH > > org

Re: [PATCH 4/7] clk: tegra: remove non-existing pll_m_out1 clock

2017-02-23 Thread Mikko Perttunen
Whoops, that is, after a commit message is added. On 23.02.2017 10:17, Mikko Perttunen wrote: Reviewed-by: Mikko Perttunen On 22.02.2017 17:13, Peter De Schrijver wrote: Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra210.c | 5 - 1 file changed, 5 deletions(-) diff --

Re: [PATCH 4/7] clk: tegra: remove non-existing pll_m_out1 clock

2017-02-23 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 22.02.2017 17:13, Peter De Schrijver wrote: Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra210.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra210.c b/drivers/clk/tegra/clk-tegra210.c index 7bda8ba..b7ef8a7

[PATCH] iommu: iova: Consolidate code for adding new node to iovad domain rbtree

2017-02-23 Thread Marek Szyprowski
This patch consolidates almost the same code used in iova_insert_rbtree() and __alloc_and_insert_iova_range() functions. There is no functional change. Signed-off-by: Marek Szyprowski --- drivers/iommu/iova.c | 85 +++- 1 file changed, 31 insertion

[PATCH 06/11] drm/sun4i: Drop primary layer pointer from sun4i_drv

2017-02-23 Thread Chen-Yu Tsai
The current layer init code keeps a pointer to the primary plane layer in sun4i_drv. When we eventually support multiple display pipelines, this would force us to keep track of primary planes for all crtcs. And these pointers only get used at bind time. Instead, have the crtc init code iterate thr

[PATCH 07/11] drm/sun4i: Drop hardcoded .possible_crtcs values from layers

2017-02-23 Thread Chen-Yu Tsai
To support multiple display pipelines, we would have multiple crtcs, with one or more planes bound to them. Obviously having hardcoded values for the drm_plane .possible_crtcs field is not going to work. For primary and cursor planes, the value is set by drm_crtc_init_with_planes. We just need to

[PATCH 11/11] drm/sun4i: Add backend and tcon pointers to sun4i_crtc

2017-02-23 Thread Chen-Yu Tsai
sun4i_crtc controls the backend and tcon hardware blocks of the display pipeline. Instead of doing so through the master drm structure, leave pointers to the corresponding backend and tcon in itself. Also drop the drm_device pointer, since it is no longer needed. The next step forward would be to

[PATCH 05/11] drm/sun4i: Initialize crtc from tcon bind function

2017-02-23 Thread Chen-Yu Tsai
The tcon provides part of the functionality of the crtc, and also provides the device node for the output port of the crtc. To be able to use drm_of_find_possible_crtcs(), all crtc must be initialized before any downstream encoders. The other part of the crtc is the display backend. The Rockchip D

[PATCH 09/11] drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder

2017-02-23 Thread Chen-Yu Tsai
The RGB encoder represents channel 0 of the TCON. Instead of fetching the pointer to its TCON from the main sun4i_drv structure, pass it in as part of the init call, save it, and use it directly in the encoder and connector callbacks. We can also drop the otherwise unused sun4i_drv pointer. Signe

[PATCH 10/11] drm/sun4i: Add backend pointer to sun4i_layer

2017-02-23 Thread Chen-Yu Tsai
sun4i_layer only controls the backend hardware block of the display pipeline. Instead of getting a pointer to the underlying backend through the drm_device structure, leave one in itself. Also drop the drm_device pointer, since it is no longer needed. The next step forward would be to pass the po

[PATCH 08/11] drm/sun4i: tv: Switch to drm_of_find_possible_crtcs

2017-02-23 Thread Chen-Yu Tsai
Now that the crtcs have their .port field set properly, we can use drm_of_find_possible_crtcs to find the connected crtcs, instead of hardcoding the first crtc as usable. The new code also defers binding when the upstream crtc hasn't been registered yet. This makes it easier to support multiple tc

Re: [GIT pull] x86/timers for 4.10

2017-02-23 Thread Mike Galbraith
On Thu, 2017-02-09 at 16:07 +0100, Thomas Gleixner wrote: > On Wed, 8 Feb 2017, Mike Galbraith wrote: > > On Wed, 2017-02-08 at 12:44 +0100, Thomas Gleixner wrote: > > > On Mon, 6 Feb 2017, Olof Johansson wrote: > > > > [0.177102] [Firmware Bug]: TSC ADJUST differs: Reference > > > > CPU0: > >

Re: [PATCH 3/3] Input: qt1070 - Add OF device ID table

2017-02-23 Thread Dmitry Torokhov
On Tue, Feb 21, 2017 at 03:12:54PM -0300, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the assumption that a > I2C device registered via OF will always match a legacy I2C device ID a

Re: [PATCH 3/3] Input: qt1070 - Add OF device ID table

2017-02-23 Thread Dmitry Torokhov
On Thu, Feb 23, 2017 at 12:25:24AM -0800, Dmitry Torokhov wrote: > On Tue, Feb 21, 2017 at 03:12:54PM -0300, Javier Martinez Canillas wrote: > > The driver doesn't have a struct of_device_id table but supported devices > > are registered via Device Trees. This is working on the assumption that a >

Re: [PATCH v2 00/01] KVM: x86: never specify a sample period for virtualized in_tx_cp counters

2017-02-23 Thread Paolo Bonzini
On 23/02/2017 03:56, Robert O'Callahan wrote: > Ping? Is there something else I need to do to get someone to look at this? Nothing to do, we will pick it up for 4.11. Paolo

Re: lib: Introduce priority array area manager

2017-02-23 Thread Jiri Pirko
Thu, Feb 23, 2017 at 08:56:26AM CET, ge...@linux-m68k.org wrote: >Hi Jiri, > >On Wed, Feb 22, 2017 at 8:02 PM, Linux Kernel Mailing List > wrote: >> Web: >> https://git.kernel.org/torvalds/c/44091d29f2075972aede47ef17e1e70db3d51190 >> Commit: 44091d29f2075972aede47ef17e1e70db3d51190 >>

Re: [PATCH RFC] iopoll: allow for poll_timeout to back-off

2017-02-23 Thread Masahiro Yamada
Hi Nicholas, 2017-02-14 1:52 GMT+09:00 Nicholas Mc Guire : > > One case in /drivers/mmc/host/sdhci-cadence.c has a timeout_us of 1 and > sleep_us of 0 which might actually be a bug as it means that the poll loop > would do a single read OP in many cases (this is non-atomic context) so it > would

[PATCH] ATM: dts: at91: sama5d2_xplained: add pwm controller

2017-02-23 Thread Claudiu Beznea
Add pwm controller bindings for sam5d2_xplained and enable it. Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi | 4 arch/arm/boot/dts/sama5d2.dtsi | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91-

Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode

2017-02-23 Thread Vivek Gautam
On 02/16/2017 06:36 PM, Roger Quadros wrote: dra7 OTG core limits the host controller to USB2.0 (high-speed) mode when we're operating in dual-role. We work around that by bypassing the OTG core and reading the extcon framework directly for ID/VBUS events. Signed-off-by: Roger Quadros ---

Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51

2017-02-23 Thread Dmitry Torokhov
On Tue, Feb 21, 2017 at 05:38:59PM +0200, Andy Shevchenko wrote: > On Tue, Feb 21, 2017 at 3:39 PM, Pau Espin Pedrol > wrote: > > > If we have user space tools supporting and using this type of event, > > then what about adding them properly with a define + entry in the > > structure array so th

Re: [PATCH 2/3] Input: synaptics_i2c - Add OF device ID table

2017-02-23 Thread Dmitry Torokhov
On Tue, Feb 21, 2017 at 03:12:53PM -0300, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the assumption that a > I2C device registered via OF will always match a legacy I2C device ID a

Re: [PATCH 2/4] input:touchscreen:ad7879-spi.c: Remove bits_per_word = 16 enforcement

2017-02-23 Thread Dmitry Torokhov
On Wed, Feb 22, 2017 at 05:14:36PM +0100, michael.henner...@analog.com wrote: > From: Michael Hennerich > > Using regmap this is no longer required. > > Signed-off-by: Michael Hennerich This gave me warnings about unused "err" variable, I removed it and applied, thank you. > --- > drivers/in

Re: [PATCH v1 4/4] Input: soc_button_array - Propagate error from gpiod_count()

2017-02-23 Thread Dmitry Torokhov
On Mon, Feb 20, 2017 at 06:15:49PM +0200, Andy Shevchenko wrote: > Since gpiod_count() does not return 0 anymore, we don't need to shadow > its error code and would safely propagate to the user. > > While here, replace second parameter by NULL in order to prevent side > effects on _DSD enabled fir

[PATCH 0/2] drivers: pwm: add pwm support for sama5d2

2017-02-23 Thread Claudiu Beznea
Extend atmel-pwm driver in order to support sama5d2 pwm specifics. Since the new SoC supports changing of pwm parameters (period and duty factor) without need to first disable/enable the pwm channel this series adapt the existing code in order to let changing of these parameters for sama5d2. Claud

Re: [PATCH 3/4] Documentation: Add SPI example

2017-02-23 Thread Dmitry Torokhov
On Wed, Feb 22, 2017 at 05:14:37PM +0100, michael.henner...@analog.com wrote: > From: Michael Hennerich > > Signed-off-by: Michael Hennerich Applied, thank you. > --- > .../devicetree/bindings/input/touchscreen/ad7879.txt | 18 > ++ > 1 file changed, 18 insertions(+) > > d

[PATCH 2/2] drivers: pwm: pwm-atmel: add support to allow run time changing of pwm parameters

2017-02-23 Thread Claudiu Beznea
sama5d2 supports changing of pwm parameters like period and duty factor without first to disable pwm. Since pwm code is supported by more than one SoC add allow_runtime_cfg parameter to atmel_pwm_chip data structure. This will be filled statically for every SoC, saved in pwm specific structure at p

Re: [PATCH 4/4] input:touchscreen:ad7879: Update MODULE_AUTHOR email address

2017-02-23 Thread Dmitry Torokhov
On Wed, Feb 22, 2017 at 05:14:38PM +0100, michael.henner...@analog.com wrote: > From: Michael Hennerich > > Signed-off-by: Michael Hennerich Applied, thank you. > --- > drivers/input/touchscreen/ad7879-i2c.c | 2 +- > drivers/input/touchscreen/ad7879-spi.c | 2 +- > drivers/input/touchscreen/

Re: [PATCH 1/4] input:touchscreen:ad7879-spi.c: Fix regmap flag_masks

2017-02-23 Thread Dmitry Torokhov
On Wed, Feb 22, 2017 at 05:14:35PM +0100, michael.henner...@analog.com wrote: > From: Michael Hennerich > > Mask only applied to the top byte of the register > > Signed-off-by: Michael Hennerich Thank you Michael, I folded it with the patch introducing regmaps. > --- > drivers/input/touchscr

[PATCH 1/2] drivers: pwm: pwm-atmel: add support for pwm on sama5d2

2017-02-23 Thread Claudiu Beznea
Enable PWM on sama5d2 by adding atmel_pwm_config_v3(). This, simply, sets the period and duty factor registers. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/pwm/atmel-pwm.txt | 1 + drivers/pwm/pwm-atmel.c | 16 2 files changed

Re: [PATCH] ATM: dts: at91: sama5d2_xplained: add pwm controller

2017-02-23 Thread Alexandre Belloni
Hi, There is a typo in your subject, please fix. On 23/02/2017 at 10:32:58 +0200, Claudiu Beznea wrote: > Add pwm controller bindings for sam5d2_xplained > and enable it. > > Signed-off-by: Claudiu Beznea > --- > arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi | 4 > arch/arm/boot/dts

Re: [PATCH] ATM: dts: at91: sama5d2_xplained: add pwm controller

2017-02-23 Thread m18063
Hi, I will correct it asap. Thank you, Claudiu Beznea On 23.02.2017 10:42, Alexandre Belloni wrote: > Hi, > > There is a typo in your subject, please fix. > > On 23/02/2017 at 10:32:58 +0200, Claudiu Beznea wrote: >> Add pwm controller bindings for sam5d2_xplained >> and enable it. >> >> Signed-

Re: [PATCH 1/3] Input: tsc2007 - rename function tsc2007_calculate_pressure to tsc2007_calculate_resistance because that is what it does

2017-02-23 Thread Dmitry Torokhov
On Mon, Feb 20, 2017 at 05:56:34PM +0100, H. Nikolaus Schaller wrote: >p Signed-off-by: H. Nikolaus Schaller Applied, thank you. > --- > drivers/input/touchscreen/tsc2007_core.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/input/touchscreen/tsc2007_c

Re: [PATCH 2/3] Input: tsc2007 - correctly report pressure and not resistance to user space

2017-02-23 Thread Dmitry Torokhov
On Tue, Feb 21, 2017 at 06:13:32PM +0100, Sebastian Reichel wrote: > Hi, > > On Mon, Feb 20, 2017 at 05:56:35PM +0100, H. Nikolaus Schaller wrote: > > previously, tsc2007 will report as ABS_PRESSURE: > > 0 for no pressure (resistance infinite) > > high value for soft pressure (hig

Re: [PATCH] fuse: fix use after free issue in fuse_dev_do_read()

2017-02-23 Thread Miklos Szeredi
On Wed, Feb 8, 2017 at 4:00 PM, Sahitya Tummala wrote: > There is a potential race between fuse_dev_do_write() > and request_wait_answer() contexts as shown below: > > TASK 1: > __fuse_request_send(): > |--spin_lock(&fiq->waitq.lock); > |--queue_request(); > |--spin_unlock(&fiq->waitq.lock);

[PATCH v2] ARM: dts: at91: sama5d2_xplained: add pwm controller

2017-02-23 Thread Claudiu Beznea
Add pwm controller bindings for sam5d2_xplained and enable it. Changes since v1: - Correct the typo in patch subject. Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi | 4 arch/arm/boot/dts/sama5d2.dtsi | 8 2 files changed

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-23 Thread Anshuman Khandual
On 02/22/2017 02:59 PM, Michal Hocko wrote: > On Tue 21-02-17 18:39:17, Anshuman Khandual wrote: >> On 02/17/2017 07:02 PM, Mel Gorman wrote: > [...] >>> Why can this not be expressed with cpusets and memory policies >>> controlled by a combination of administrative steps for a privileged >>> appli

Re: [Outreachy kernel] Re: [PATCH v2] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full

2017-02-23 Thread Arend Van Spriel
On 23-2-2017 8:08, Julia Lawall wrote: >> Thanks for the feedback Arend, I really appreciate it. I've decided to go >> with >> these changes in my follow-up patch request: >> >> - rename tstrRSSI to 'rssi_history_buffer' as Aren suggested since it makes >> the >> purpose of the struct clear >> -

Re: [PATCH 2/2] mm/cgroup: delay soft limit data allocation

2017-02-23 Thread Laurent Dufour
On 22/02/2017 19:24, Michal Hocko wrote: > On Wed 22-02-17 18:50:19, Laurent Dufour wrote: >> On 22/02/2017 18:11, Michal Hocko wrote: >>> On Wed 22-02-17 16:58:11, Laurent Dufour wrote: >>> [...] static struct mem_cgroup_tree_per_node * soft_limit_tree_node(int nid) { @@ -46

Re: [PATCH 3/7] clk: tegra: correct afi parent

2017-02-23 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 22.02.2017 17:13, Peter De Schrijver wrote: The parent for afi is actually mselect, not clk_m. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra-periph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-

Re: [PATCH v3 2/2] drm/fb-helper: implement ioctl FBIO_WAITFORVSYNC

2017-02-23 Thread Stefan Lengfeld
Hi Maxime, Hi Ville, On Wed, Feb 22, 2017 at 04:52:33PM -0800, Maxime Ripard wrote: > Hi Ville, Stefan, > > On Tue, Feb 21, 2017 at 12:55:01PM +0200, Ville Syrjälä wrote: > > On Tue, Feb 21, 2017 at 11:00:59AM +0100, Stefan Lengfeld wrote: > > > > > > Furthmore most exiting userspace code just p

Re: [PATCH v2 7/7] tpm2: add session handle context saving and restoring to the space code

2017-02-23 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 09:25:20PM +0200, Jarkko Sakkinen wrote: > From: James Bottomley > > Sessions are different from transient objects in that their handles > may not be virtualized (because they're used for some hmac > calculations). Additionally when a session is context saved, a > vestigi

[PATCH v2] scsi: ufs: Factor out ufshcd_read_desc_param

2017-02-23 Thread Potomski, MichalX
Since in UFS 2.1 specification some of the descriptor lengths differs from 2.0 specification and some devices, which are reporting spec version 2.0 have different descriptor lengths we can not rely on hardcoded values taken from 2.0 specification. This patch introduces reading these lengths per eac

Re: [PATCH 5/7] clk: tegra: don't warn for PLL defaults unnecessarily

2017-02-23 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 22.02.2017 17:14, Peter De Schrijver wrote: If the PLL is on, only warn if the defaults are not yet set. Otherwise be silent. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra210.c | 18 -- 1 file changed, 12 insertions(+), 6 de

Re: [PATCH v2 5/7] tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c

2017-02-23 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 09:25:18PM +0200, Jarkko Sakkinen wrote: > From: James Bottomley > > Signed-off-by: James Bottomley Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen /Jarkko > --- > drivers/char/tpm/Makefile | 2 +- > drivers/char/tpm/tpm-dev-common.c | 148 > +

Re: [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-23 Thread Jarkko Sakkinen
On Thu, Feb 16, 2017 at 09:25:19PM +0200, Jarkko Sakkinen wrote: > From: James Bottomley > > Currently the tpm spaces are not exposed to userspace. Make this > exposure via a separate device, which can now be opened multiple times > because each read/write transaction goes separately via the spa

Re: [PATCH v2 4/5] perf: kretprobes: offset from reloc_sym if kernel supports it

2017-02-23 Thread Masami Hiramatsu
On Wed, 22 Feb 2017 19:23:40 +0530 "Naveen N. Rao" wrote: > We indicate support for accepting sym+offset with kretprobes through a > line in ftrace README. Parse the same to identify support and choose the > appropriate format for kprobe_events. > > Signed-off-by: Naveen N. Rao > --- > tools/p

Re: [PATCH v4 33/36] media: imx: redo pixel format enumeration and negotiation

2017-02-23 Thread Philipp Zabel
Hi Steve, On Wed, 2017-02-22 at 15:52 -0800, Steve Longerbeam wrote: > Hi Philipp, > > > On 02/16/2017 03:32 AM, Philipp Zabel wrote: > > On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > >> The previous API and negotiation of mbus codes and pixel formats > >> was broken, and has been

RE: [PATCH 3/9] tools: convert comm_str.refcnt from atomic_t to refcount_t

2017-02-23 Thread Reshetova, Elena
> Em Wed, Feb 22, 2017 at 07:20:45PM -0300, Arnaldo Carvalho de Melo > escreveu: > > Em Wed, Feb 22, 2017 at 05:33:50PM -0300, Arnaldo Carvalho de Melo > escreveu: > > > Em Tue, Feb 21, 2017 at 05:34:57PM +0200, Elena Reshetova escreveu: > > > > refcount_t type and corresponding API should be > > >

[PATCH] x86/apic: Remove the extra judgement of skipped IO APIC setup

2017-02-23 Thread Dou Liyang
As the commit 2e63ad4bd5dd ("x86/apic: Do not init irq remapping if ioapic is disabled") added the judgement of skipped IO APIC setup at the beginning of enable_IR_x2apic(). It may be redundant that we check it again when we try to enable the interrupt mapping. So, remove the one in try_to_enable_

Re: [PATCH 1/2] drivers: pwm: pwm-atmel: add support for pwm on sama5d2

2017-02-23 Thread Alexandre Belloni
On 23/02/2017 at 10:38:39 +0200, Claudiu Beznea wrote: > Enable PWM on sama5d2 by adding atmel_pwm_config_v3(). > This, simply, sets the period and duty factor registers. > > Signed-off-by: Claudiu Beznea Acked-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/pwm/atmel-pwm.txt |

Re: [GIT pull] x86/timers for 4.10

2017-02-23 Thread Peter Zijlstra
On Thu, Feb 23, 2017 at 09:20:06AM +0100, Mike Galbraith wrote: > On Thu, 2017-02-09 at 16:07 +0100, Thomas Gleixner wrote: > > Can you share your cheatery ? > > I can do better than that... sorta ;-) > > x86/tsc: Fix unreliable tsc adjust > > On a 4 socket BIOS challenged box (4x18), the magic

Re: [PATCH 6/7] clk: tegra: correct tegra210_pll_fixed_mdiv_cfg rate calculation

2017-02-23 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 22.02.2017 17:14, Peter De Schrijver wrote: Return the actually achieved rate in cfg->output_rate rather than just the requested rate. This is important to make clk_round_rate return the correct result. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/c

Re: [PATCH 7/7] clk: tegra: fix type for m field

2017-02-23 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 22.02.2017 17:14, Peter De Schrijver wrote: When used as part of fractional ndiv calculations, the current range is not enough because the denominator of the fraction is multiplied with m. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk.h | 2 +- 1

Re: [PATCH 2/2] drivers: pwm: pwm-atmel: add support to allow run time changing of pwm parameters

2017-02-23 Thread Alexandre Belloni
On 23/02/2017 at 10:38:40 +0200, Claudiu Beznea wrote: > sama5d2 supports changing of pwm parameters like period and > duty factor without first to disable pwm. Since pwm code > is supported by more than one SoC add allow_runtime_cfg > parameter to atmel_pwm_chip data structure. This will be > fill

Re: [PATCHv7 2/8] printk: rename nmi.c and exported api

2017-02-23 Thread Geert Uytterhoeven
Hi Sergey, On Thu, Feb 23, 2017 at 9:02 AM, Sergey Senozhatsky wrote: > On (02/23/17 08:50), Geert Uytterhoeven wrote: >> > -config NMI_LOG_BUF_SHIFT >> > - int "Temporary per-CPU NMI log buffer size (12 => 4KB, 13 => 8KB)" >> > +config PRINTK_SAFE_LOG_BUF_SHIFT >> > + int "Temporary

Re: [f2fs-dev] [PATCH 5/5] f2fs: avoid out-of-order execution of atomic writes

2017-02-23 Thread Chao Yu
On 2017/2/4 7:48, Jaegeuk Kim wrote: > We need to flush data writes before flushing last node block writes by using > FUA with PREFLUSH. We don't need to guarantee precedent node writes since if > those are not written, we can't reach to the last node block when scanning > node block chain during r

[PATCH v6] mm: vmscan: do not pass reclaimed slab to vmpressure

2017-02-23 Thread Vinayak Menon
During global reclaim, the nr_reclaimed passed to vmpressure includes the pages reclaimed from slab. But the corresponding scanned slab pages is not passed. There is an impact to the vmpressure values because of this. While moving from kernel version 3.18 to 4.4, a difference is seen in the vmpre

Re: [f2fs-dev] [PATCH 3/5] f2fs: move flush tracepoint

2017-02-23 Thread Chao Yu
On 2017/2/4 7:48, Jaegeuk Kim wrote: > This patch moves the tracepoint location for flush command. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

Re: [f2fs-dev] [PATCH 4/5] f2fs: move write_node_page above fsync_node_pages

2017-02-23 Thread Chao Yu
On 2017/2/4 7:48, Jaegeuk Kim wrote: > This patch just moves write_node_page and introduces an inner function. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

Re: lib: Introduce priority array area manager

2017-02-23 Thread Jiri Pirko
Thu, Feb 23, 2017 at 10:22:22AM CET, ge...@linux-m68k.org wrote: >Hi Jiri, > >On Thu, Feb 23, 2017 at 9:32 AM, Jiri Pirko wrote: >> Thu, Feb 23, 2017 at 08:56:26AM CET, ge...@linux-m68k.org wrote: >>>On Wed, Feb 22, 2017 at 8:02 PM, Linux Kernel Mailing List >>> wrote: Web: https

Re: lib: Introduce priority array area manager

2017-02-23 Thread Geert Uytterhoeven
Hi Jiri, On Thu, Feb 23, 2017 at 9:32 AM, Jiri Pirko wrote: > Thu, Feb 23, 2017 at 08:56:26AM CET, ge...@linux-m68k.org wrote: >>On Wed, Feb 22, 2017 at 8:02 PM, Linux Kernel Mailing List >> wrote: >>> Web: >>> https://git.kernel.org/torvalds/c/44091d29f2075972aede47ef17e1e70db3d51190 >>>

Re: [PATCH v4 15/17] x86/traps: Fixup general protection faults caused by UMIP

2017-02-23 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 10:37:04PM -0800, Ricardo Neri wrote: > @@ -492,6 +493,9 @@ do_general_protection(struct pt_regs *regs, long > error_code) > RCU_LOCKDEP_WARN(!rcu_is_watching(), "entry code didn't wake RCU"); > cond_local_irq_enable(regs); > > + if (user_mode(regs) && (fi

[GIT PULL] GPIO bulk changes for the v4.11 kernel cycle

2017-02-23 Thread Linus Walleij
Hi Linus, this is the bulk of the GPIO changes for the v4.11 kernel cycle. The details are in the signed tag as usual. Here some merge mechanics: - As expected an immutable branch with changes shared with the pin control subsystem was pulled into the GPIO tree as well, making a slew of change

Re: [PATCH 1/1] ARM: dts: BCM953012HR: Initial Checkin

2017-02-23 Thread Rafał Miłecki
On 02/22/2017 10:14 PM, Steve Lin wrote: Initial version of DTS to support Broadcom BCM953012HR Northstar HR platform, similar to, but not the same as existing 953012K. Signed-off-by: Steve Lin --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/bcm953012hr.dts | 115 +

Re: [PATCH] mm/thp/autonuma: Use TNF flag instead of vm fault.

2017-02-23 Thread Kirill A. Shutemov
On Sun, Feb 19, 2017 at 03:29:55PM +0530, Aneesh Kumar K.V wrote: > We are using wrong flag value in task_numa_falt function. This can result in > us doing wrong numa fault statistics update, because we update > num_pages_migrate > and numa_fault_locality etc based on the flag argument passed. >

Re: [PATCH v2 00/01] KVM: x86: never specify a sample period for virtualized in_tx_cp counters

2017-02-23 Thread Robert O'Callahan
Great, thanks! Rob -- lbir ye,ea yer.tnietoehr rdn rdsme,anea lurpr edna e hnysnenh hhe uresyf toD selthor stor edna siewaoeodm or v sstvr esBa kbvted,t rdsme,aoreseoouoto o l euetiuruewFa kbn e hnystoivateweh uresyf tulsa rehr rdm or rnea lurpr .a war hsrer holsa rodvted,t nenh hneir

[PATCH] irqchip: crossbar: Fix incorrect type of local variables

2017-02-23 Thread Franck Demathieu
The max and entry variables are unsigned according to the dt-bindings. Fix following 3 sparse issues (-Wtypesign): drivers/irqchip/irq-crossbar.c:222:52: warning: incorrect type in argument 3 (different signedness) drivers/irqchip/irq-crossbar.c:222:52:expected unsigned int [usertype] *o

Re: [PATCH v4 01/17] x86/mpx: Do not use SIB index if index points to R/ESP

2017-02-23 Thread Paul Crawford
On 23/02/17 07:24, Peter Zijlstra wrote: On Wed, Feb 22, 2017 at 10:36:50PM -0800, Ricardo Neri wrote: + /* +* A negative offset generally means a error, except +* -EDOM, which means that the contents of the register +

Re: min_vruntime update when a task is sleeping/migrating

2017-02-23 Thread Peter Zijlstra
On Thu, Feb 23, 2017 at 11:45:26AM +0530, Pavan Kondeti wrote: > Hi Peter, > > The comment and the code around 2nd update_min_vruntime() call in > dequeue_entity() are not matching. If I understand commit b60205c7c558 > ("sched/fair: Fix min_vruntime tracking") correctly, the check is > inverted t

Re: netfilter: nft_ct: add zone id set support

2017-02-23 Thread Geert Uytterhoeven
Hi Florian, On Wed, Feb 22, 2017 at 8:02 PM, Linux Kernel Mailing List wrote: > Web: > https://git.kernel.org/torvalds/c/edee4f1e92458299505ff007733f676b00c516a1 > Commit: edee4f1e92458299505ff007733f676b00c516a1 > Parent: 5c178d81b69f08ca3195427a6ea9a46d9af23127 > Refname:ref

Re: [PATCH v9 5/8] dt-bindings: input: move ads7846 bindings to touchscreen subdirectory

2017-02-23 Thread H. Nikolaus Schaller
Hi Dmitry, this patch from the series seems to have been lost in the other discussions. It is just moving a bindings document to where it should be. I don't know if it should go through your git. BR and thanks, Nikolaus > Am 28.12.2016 um 15:53 schrieb H. Nikolaus Schaller : > > Signed-off-by: H.

Re: [PATCH v3 01/14] Documentation: dt/bindings: Document pinctrl-ingenic

2017-02-23 Thread Linus Walleij
On Tue, Feb 21, 2017 at 12:20 PM, Paul Cercueil wrote: > Le 2017-02-20 14:56, Linus Walleij a écrit : >> >> On Thu, Feb 9, 2017 at 6:28 PM, Paul Cercueil >> wrote: >> >>> I was thinking that instead of having one pinctrl-ingenic instance >>> covering >>> 0x600 of register space, and 6 instances o

Re: making documentation targets on v4.10 with Fedora 25

2017-02-23 Thread Jani Nikula
On Mon, 20 Feb 2017, Jim Davis wrote: > For the Sphinx targets, htmldocs, pdfdocs, epubdocs, and cleandocs > failed. cleandocs works without the O= argument, and arguably the O= > thing isn't very useful with any of these targets, but it is supported > by the top-level Makefile. Why do you say O

Re: [PATCH RFC] iopoll: allow for poll_timeout to back-off

2017-02-23 Thread Nicholas Mc Guire
On Thu, Feb 23, 2017 at 05:29:03PM +0900, Masahiro Yamada wrote: > Hi Nicholas, > > > 2017-02-14 1:52 GMT+09:00 Nicholas Mc Guire : > > > > > One case in /drivers/mmc/host/sdhci-cadence.c has a timeout_us of 1 and > > sleep_us of 0 which might actually be a bug as it means that the poll loop > >

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

2017-02-23 Thread Byungchul Park
On Thu, Feb 23, 2017 at 03:14:59PM +0900, Byungchul Park wrote: > Let's consider the following example. > > timeline : o...o.o...o..o >^ ^ ^ ^ ^ >| | | | | >start

mmotm git tree since-4.10 branch created (was: mmotm 2017-02-22-16-28 uploaded)

2017-02-23 Thread Michal Hocko
I have just created since-4.10 branch in mm git tree (http://git.kernel.org/?p=linux/kernel/git/mhocko/mm.git;a=summary). It is based on v4.10 tag in Linus tree and mmotm-2017-02-22-16-28. I have pulled also Tejun's cgroup for-4.11 branch because he has reorganized the cgroup directory structure an

Re: [PATCH 1/4] f2fs: avoid very large discard command

2017-02-23 Thread Christoph Hellwig
On Wed, Feb 22, 2017 at 08:28:47PM -0800, Jaegeuk Kim wrote: > This patch adds MAX_DISCARD_BLOCKS() to avoid issuing too much large single > discard command. Needs an explanation in the code on why this number was chosen. In doubt I suspect it should be a quirk in the driver for the device, and no

Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-23 Thread Michal Hocko
On Wed 22-02-17 15:16:57, Johannes Weiner wrote: [...] > Can we simply count the number of balance_pgdat() runs that didn't > reclaim anything and have kswapd sleep after MAX_RECLAIM_RETRIES? > > And a follow-up: once it gives up, when should kswapd return to work? > We used to reset NR_PAGES_SCAN

Re: [PATCH] pinctrl: Really force states during suspend/resume

2017-02-23 Thread Linus Walleij
Hi Florian, a big sorry for not looking into this earlier, I've been having a mess in my inbox... and too much fun with the Gemini hehe :) On Wed, Feb 8, 2017 at 2:17 AM, Florian Fainelli wrote: > In case a platform only defaults a "default" set of pins, but not a > "sleep" set of pins, and this

Re: [GIT pull] x86/timers for 4.10

2017-02-23 Thread Borislav Petkov
On Thu, Feb 23, 2017 at 09:20:06AM +0100, Mike Galbraith wrote: > --- a/arch/x86/kernel/tsc_sync.c > +++ b/arch/x86/kernel/tsc_sync.c > @@ -294,7 +294,7 @@ void check_tsc_sync_source(int cpu) > if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST)) > atomic_set(&test_runs, 1); > else

Re: [PATCH 2/2] drivers: pwm: pwm-atmel: add support to allow run time changing of pwm parameters

2017-02-23 Thread m18063
Hi, On 23.02.2017 11:21, Alexandre Belloni wrote: > On 23/02/2017 at 10:38:40 +0200, Claudiu Beznea wrote: >> sama5d2 supports changing of pwm parameters like period and >> duty factor without first to disable pwm. Since pwm code >> is supported by more than one SoC add allow_runtime_cfg >> param

SIPHASH (was: Re: [GIT] Networking)

2017-02-23 Thread Geert Uytterhoeven
Hi Jason, On Wed, Feb 22, 2017 at 5:31 AM, David Miller wrote: > 3) Introduce SIPHASH and it's usage for secure sequence numbers and >syncookies. From Jason A. Donenfeld. > Jason A. Donenfeld (4): > siphash: add cryptographically secure PRF > siphash: implement HalfSipHash1-3 fo

[PATCH v1 3/3] extcon: int3496: Add GPIO ACPI mapping table

2017-02-23 Thread Andy Shevchenko
In order to make GPIO ACPI library stricter prepare users of gpiod_get_index() to correctly behave when there no mapping is provided by firmware. Here we add explicit mapping between _CRS GpioIo() resources and their names used in the driver. Signed-off-by: Andy Shevchenko --- drivers/extcon/ex

Re: [PATCH 2/2] drivers: pwm: pwm-atmel: add support to allow run time changing of pwm parameters

2017-02-23 Thread Boris Brezillon
Hi Claudiu, On Thu, 23 Feb 2017 12:25:58 +0200 m18063 wrote: > Hi, > > > On 23.02.2017 11:21, Alexandre Belloni wrote: > > On 23/02/2017 at 10:38:40 +0200, Claudiu Beznea wrote: > >> sama5d2 supports changing of pwm parameters like period and > >> duty factor without first to disable pwm. Si

[PATCH v1 1/3] extcon: int3496: Propagate error code of gpiod_to_irq()

2017-02-23 Thread Andy Shevchenko
gpiod_to_irq() doesn't return 0. Thus, we just adjust condition and replace -EINVAL by actual error code it returns. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon-intel-int3496.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/extcon/extcon-intel-int349

Re: [PATCH 2/2] drivers: pwm: pwm-atmel: add support to allow run time changing of pwm parameters

2017-02-23 Thread Alexandre Belloni
On 23/02/2017 at 12:25:58 +0200, m18063 wrote: > > It is probably worth switching to atomic PWM instead of changing this > > function. This would simplify the whole driver. > I was thinking to switch to atomic PWM in a future patch. Then why wait ? -- Alexandre Belloni, Free Electrons Embedded

[PATCH v1 2/3] extcon: int3496: Rename GPIO pins in accordance with binding

2017-02-23 Thread Andy Shevchenko
First of all, add an optional binding for external muxer which might be used. Second, update GPIO pin names in extcon-intel-int3496.c driver to follow the existing binding. Signed-off-by: Andy Shevchenko --- Documentation/devicetree/bindings/extcon/extcon-usb-gpio.txt | 3 +++ drivers/extcon/ex

Re: [PATCH 4/5] KVM: add __kvm_request_needs_mb

2017-02-23 Thread David Hildenbrand
Am 22.02.2017 um 20:57 schrieb Christian Borntraeger: > On 02/22/2017 04:17 PM, Radim Krčmář wrote: >> > [...] >> while (vcpu->arch.sie_block->prog0c & PROG_IN_SIE) >> cpu_relax(); >>} > >> And out of curiosity -- how many cycles does this loop usually take? > > A quick hac

Re: [PATCH] pinctrl: Really force states during suspend/resume

2017-02-23 Thread Linus Walleij
On Wed, Feb 8, 2017 at 10:46 PM, Andy Shevchenko wrote: > Btw, I have got similar issue and thinking about those states they are > quite orthogonal to the pin states. Wouldn't be better to actually > differentiate PM related states and pin states? I don't fully understand what you mean here, but

  1   2   3   4   5   6   7   >