Re: [PATCH 12/15] hyperv: move VMBus connection ids to uapi

2017-01-02 Thread Paolo Bonzini
On 28/12/2016 18:09, Roman Kagan wrote: > Am I correct assuming that QEMU is currently the only user of > arch/x86/include/uapi/asm/hyperv.h? > > Then I think we're fine withdrawing it from uapi as a whole and letting > QEMU pull it in through its header-harvesting scripts (as does now > anyway)

Re: [PATCH] greybus: timesync: replace init_timer with setup_timer

2017-01-02 Thread Johan Hovold
On Tue, Dec 13, 2016 at 10:39:57PM +0800, Xie Qirong wrote: > The combination of init_timer and setting up the data and function field > manually is equivalent to calling setup_timer(). This is an api > consolidation only and improves readability. > > Signed-off-by: Xie Qirong > --- > > setup_

Re: [PATCH] staging: greybus: arche-apb-ctrl: fix unused warnings on resume/suspend

2017-01-02 Thread Johan Hovold
On Fri, Dec 16, 2016 at 07:33:02PM -0500, Jérémy Lefaure wrote: > When CONFIG_PM_SLEEP is disabled, SIMPLE_DEV_PM_OPS does not use > arche_apb_ctrl_resume and arche_apb_ctrl_suspend functions: > > drivers/staging/greybus/arche-apb-ctrl.c:478:12: warning: > ‘arche_apb_ctrl_resume’ defined but not u

[PATCH v2 1/6] staging: fbtft: convert fbtft_reset() to be non-atomic

2017-01-02 Thread Andy Shevchenko
First of all, fbtft in current state doesn't allow to override GPIOs to be optional, like "reset" one. It might be a bug somewhere, but rather out of scope of this fix. Second, not all GPIOs available on the board would be SoC based, some of them might sit on I2C GPIO expanders, for example, on In

[PATCH v2 5/6] staging: fbtft: fb_ssd1306: Support smaller screen sizes

2017-01-02 Thread Andy Shevchenko
There is 64x48 display exists. In order to support that set multiplexer to 48 pixels and window address to proper position in the graphic display data RAM. Signed-off-by: Andy Shevchenko --- drivers/staging/fbtft/fb_ssd1306.c | 21 + 1 file changed, 21 insertions(+) diff --g

[PATCH v2 6/6] staging: fbtft: fb_ssd1306: Refactor write_vmem()

2017-01-02 Thread Andy Shevchenko
Refactor write_vmem() for sake of readability. While here, fix indentation in one comment. Signed-off-by: Andy Shevchenko --- drivers/staging/fbtft/fb_ssd1306.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/staging/fbtft/fb_ssd1306.c b/drivers/sta

[PATCH v2 4/6] staging: fbtft: propagate error code from kstrto*()

2017-01-02 Thread Andy Shevchenko
kstrto*() functions return proper error code. Do propogate it to the user. Signed-off-by: Andy Shevchenko --- drivers/staging/fbtft/fbtft-sysfs.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-sysfs.c b/drivers/staging/fbtft/fbtft-sysfs.c i

[PATCH v2 0/6] fbtft: make it work with DMA enabled SPI

2017-01-02 Thread Andy Shevchenko
This series enables 64x48 OLED display and fixes the driver to work with DMA enabled SPI properly. Has been tested on Intel Edison board with Adafruit 2'8" and SSD1306 64x48 (Sparkfun for Intel Edison) OLED displays at their maximum speed (25MHz and 10MHz). Andy Shevchenko (6): staging: fbtft:

[PATCH v2 2/6] staging: fbtft: do not override DMA coherent mask

2017-01-02 Thread Andy Shevchenko
Usually it's not consumer's business to override resources passed from provider, in particularly DMA coherent mask. Signed-off-by: Andy Shevchenko --- drivers/staging/fbtft/fbtft-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft

[PATCH v2 3/6] staging: fbtft: fallback to usual allocation when DMA fails

2017-01-02 Thread Andy Shevchenko
Fall back to usual allocation method if DMA coherent allocation fails. SPI framework will map and use DMA mapped memory when possible. Signed-off-by: Andy Shevchenko --- drivers/staging/fbtft/fbtft-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtf

Re: [PATCH v2 0/6] fbtft: make it work with DMA enabled SPI

2017-01-02 Thread Andy Shevchenko
On Mon, 2017-01-02 at 13:35 +0200, Andy Shevchenko wrote: > This series enables 64x48 OLED display and fixes the driver to work > with DMA > enabled SPI properly. > > Has been tested on Intel Edison board with Adafruit 2'8" and SSD1306 > 64x48 > (Sparkfun for Intel Edison) OLED displays at their m

Re: [PATCH] staging: greybus: add host device function pointer checks

2017-01-02 Thread Johan Hovold
On Tue, Dec 20, 2016 at 02:49:27PM -0600, Jason Hrycay wrote: > Add sanity checks for cport_quiesce and cport_clear before invoking the > callbacks as these function pointers are not required during the host > device registration. This follows the logic implemented elsewhere for > various other fun

Re: [PATCH v2] staging: greybus: svc_watchdog: Fix spaces on a single definition statement

2017-01-02 Thread Johan Hovold
On Thu, Dec 22, 2016 at 04:22:02PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - "CHECK: spaces preferred around that '*' (ctx:VxV) " > > Signed-off-by: Emmanuil Chatzipetru Acked-by: Johan Hovold > --- > v2: A

Re: [PATCH v2] staging: greybus: svc_watchdog: replace printk() with pr_err()

2017-01-02 Thread Johan Hovold
On Thu, Dec 22, 2016 at 04:22:03PM +0100, Emmanuil Chatzipetru wrote: > Fix coding style issue caught by checkpatch.pl related to the following > warning: > - "WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then > dev_err(dev, ... then pr_err(... to printk(KERN_ERR ." > > Si

Re: [PATCH v2 1/2] staging: greybus: loopback: use gb_loopback_async_wait_all don't spin

2017-01-02 Thread Johan Hovold
On Thu, Dec 22, 2016 at 12:37:28AM +, Bryan O'Donoghue wrote: > Currently the greybus-loopback thread logic spins around waiting for > send_count == iteration_max which on real hardware doesn't make a > difference to us but in simulation is excruciatingly slow, anti-social and > bad manners. Us

Re: [PATCH v2 2/2] staging: greybus: loopback_test: Fix race preventing test completion

2017-01-02 Thread Johan Hovold
Adding Axel on CC. On Thu, Dec 22, 2016 at 12:37:29AM +, Bryan O'Donoghue wrote: > commit 9250c0ee2626 ("greybus: Loopback_test: use poll instead of > inotify") changes the flow of determining when to break out of a loop > polling for loopback test completion. > > The clause is_complete() whi

Re: [PATCH v2 1/5] staging: greybus: operation: add asynchronous gb_operation_cancel

2017-01-02 Thread Johan Hovold
On Tue, Dec 27, 2016 at 01:01:35PM +, Bryan O'Donoghue wrote: > Later patches don't want or need to serialize the cancellation of an > operation. This patch adds gb_operation_cancel_async() as a simple subset > of the existing gb_operation_cancel() sans the synchronous wait on the > cancellatio

Re: [PATCH v2 2/2] staging: greybus: loopback_test: Fix race preventing test completion

2017-01-02 Thread Axel Haslam
Hi Bryan, On Mon, Jan 2, 2017 at 3:32 PM, Johan Hovold wrote: > Adding Axel on CC. > > On Thu, Dec 22, 2016 at 12:37:29AM +, Bryan O'Donoghue wrote: >> commit 9250c0ee2626 ("greybus: Loopback_test: use poll instead of >> inotify") changes the flow of determining when to break out of a loop >>

Re: [PATCH v2 4/6] staging: fbtft: propagate error code from kstrto*()

2017-01-02 Thread kbuild test robot
-work-with-DMA-enabled-SPI/20170102-201151 config: openrisc-allyesconfig (attached as .config) compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

Re: [PATCH v2 2/6] staging: fbtft: do not override DMA coherent mask

2017-01-02 Thread Noralf Trønnes
Den 02.01.2017 12:35, skrev Andy Shevchenko: Usually it's not consumer's business to override resources passed from provider, in particularly DMA coherent mask. Signed-off-by: Andy Shevchenko --- drivers/staging/fbtft/fbtft-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/s

Re: [PATCH v3 1/2] staging: iio: ad7606: replace range/range_available with corresponding scale

2017-01-02 Thread Lars-Peter Clausen
On 12/30/2016 08:59 PM, Jonathan Cameron wrote: > On 11/12/16 02:47, Eva Rachel Retuya wrote: >> Eliminate the non-standard attributes in_voltage_range and >> in_voltage_range_available. Implement in_voltage_scale_available in place >> of these attributes and update the SCALE accordingly. The array

Re: [PATCH v3 2/2] staging: iio: ad7606: move out of staging

2017-01-02 Thread Lars-Peter Clausen
On 12/30/2016 09:16 PM, Jonathan Cameron wrote: > On 11/12/16 02:47, Eva Rachel Retuya wrote: >> Move the ad7606 driver from staging/iio/adc to iio/adc. Also, update the >> corresponding Makefile and Kconfig associated with the change. >> >> Signed-off-by: Eva Rachel Retuya > Personally (and this

Re: [PATCH 12/15] hyperv: move VMBus connection ids to uapi

2017-01-02 Thread Stephen Hemminger
On Wed, 28 Dec 2016 20:09:44 +0300 Roman Kagan wrote: > On Wed, Dec 21, 2016 at 07:54:11PM +, KY Srinivasan wrote: > > > > > > > -Original Message- > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Wednesday, December 21, 2016 10:03 AM > > > To: Christo

[PATCH 0/4] hv_util: adjust system time smoothly

2017-01-02 Thread Vitaly Kuznetsov
(First, I have to admit I'm not a timekeeping expert ...) With TimeSync version 4 protocol support we started updating system time continuously through the whole lifetime of Hyper-V guests. Every 5 seconds there is a time sample from the host which triggers do_settimeofday[64](). While the time fr

[PATCH 4/4] hv_util: improve time adjustment accuracy by disabling interrupts

2017-01-02 Thread Vitaly Kuznetsov
If we happen to receive interrupts during hv_set_host_time() execution our adjustments may get inaccurate. Make the whole function atomic. Unfortunately, we can's call do_settimeofday64() with interrupts disabled as some cross-CPU work is being done but this call happens very rarely. Signed-off-by

[PATCH 2/4] hv_util: switch to using timespec64

2017-01-02 Thread Vitaly Kuznetsov
do_settimeofday() is deprecated, use do_settimeofday64() instead. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index e770774..94719eb 100644 --- a/drivers/hv/hv_util.

[PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-02 Thread Vitaly Kuznetsov
With TimeSync version 4 protocol support we started updating system time continuously through the whole lifetime of Hyper-V guests. Every 5 seconds there is a time sample from the host which triggers do_settimeofday[64](). While the time from the host is very accurate such adjustments may cause iss

[PATCH 1/4] timekeeping: export do_adjtimex() to modules

2017-01-02 Thread Vitaly Kuznetsov
While do_adjtimex() is available to userspace via adjtimex syscall it is not available to modules which may want to implement in-kernel 'NTP clients'. Hyper-V hv_utils is going to be the first one. Signed-off-by: Vitaly Kuznetsov --- kernel/time/timekeeping.c | 1 + 1 file changed, 1 insertion(+

Re: [PATCH 0/7] hv: CPU onlining/offlining fixes and improvements

2017-01-02 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Some time ago we forbade CPU offlining for Hyper-V and this was sufficient > if you boot with all CPUs onlined. Turns out, people may want to limit the > number online CPUs by passing 'maxcpus=' kernel parameter and we hit a > crash in Hyper-V code in this case. After s

Re: [PATCH 4/4] hv_util: improve time adjustment accuracy by disabling interrupts

2017-01-02 Thread Stephen Hemminger
On Mon, 2 Jan 2017 20:41:14 +0100 Vitaly Kuznetsov wrote: > If we happen to receive interrupts during hv_set_host_time() execution > our adjustments may get inaccurate. Make the whole function atomic. > Unfortunately, we can's call do_settimeofday64() with interrupts > disabled as some cross-CPU

Re: [PATCH 00/20] i.MX Media Driver

2017-01-02 Thread Fabio Estevam
Hi Steve, On Thu, Dec 29, 2016 at 8:27 PM, Steve Longerbeam wrote: > This is a media driver for video capture on i.MX. > > Refer to Documentation/media/v4l-drivers/imx.rst for example capture > pipelines on SabreSD, SabreAuto, and SabreLite reference platforms. > > This patchset includes the OF g

RE: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-02 Thread Alex Ng (LIS)
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, January 2, 2017 11:41 AM > To: de...@linuxdriverproject.org > Cc: linux-ker...@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; John Stultz > ; Thomas Gleixner ; Alex Ng > (LIS) > Subject: [PATCH 3