Re: [tip:sched/core] sched/core: Fix unserialized r-m-w scribbling stuff

2016-01-06 Thread Tejun Heo
On Wed, Jan 06, 2016 at 10:48:15AM -0800, tip-bot for Peter Zijlstra wrote: > Commit-ID: be958bdc96f18bc1356177bbb79d46ea0c037b96 > Gitweb: http://git.kernel.org/tip/be958bdc96f18bc1356177bbb79d46ea0c037b96 > Author: Peter Zijlstra > AuthorDate: Wed, 25 Nov 2015 16:02:07 +0100 > Committer

Re: [PATCH v2 31/32] sh: support a 2-byte smp_store_mb

2016-01-06 Thread Rob Landley
On 01/06/2016 10:57 AM, Peter Zijlstra wrote: > On Wed, Jan 06, 2016 at 09:42:35AM -0600, Rob Landley wrote: >> (I would have thought the presence of working QEMU support would tide us >> over providing an easy basic regression testing environment, but people >> keep insisting that's not real and

Re: [PATCH v2 31/32] sh: support a 2-byte smp_store_mb

2016-01-06 Thread Michael S. Tsirkin
On Wed, Jan 06, 2016 at 01:23:50PM -0500, Rich Felker wrote: > On Wed, Jan 06, 2016 at 03:32:18PM +0100, Peter Zijlstra wrote: > > On Wed, Jan 06, 2016 at 01:52:17PM +0200, Michael S. Tsirkin wrote: > > > > > Peter, what do you think? How about I leave this patch as is for now? > > > > > > > > No,

Re: [PATCH v2 15/32] powerpc: define __smp_xxx

2016-01-06 Thread Michael S. Tsirkin
On Wed, Jan 06, 2016 at 09:51:52AM +0800, Boqun Feng wrote: > On Tue, Jan 05, 2016 at 06:16:48PM +0200, Michael S. Tsirkin wrote: > [snip] > > > > > Another thing is that smp_lwsync() may have a third user(other than > > > > > smp_load_acquire() and smp_store_release()): > > > > > > > > > > http:/

Re: [PATCH] scsi: mvsas: fix indenting on return error code

2016-01-06 Thread Martin K. Petersen
> "Colin" == Colin King writes: Colin, Colin> The return code and error return is incorrectly indented which Colin> may cause some confusion as it appears at first sight to be Colin> associated with a device not ready error (with missing { } Colin> braces) rather than a DEV_IS_GONE() failure

[PATCH 17/31] media: au0828 video change to use v4l_enable_media_tuner()

2016-01-06 Thread Shuah Khan
au0828 is changed to use v4l_enable_media_tuner() to check for tuner availability from vidioc_g_tuner(), and au0828_v4l2_close(), before changing tuner settings. If tuner isn't free, return busy condition from vidioc_g_tuner() and in au0828_v4l2_close() tuner is left untouched without powering down

[PATCH 16/31] media: au0828 video remove au0828_enable_analog_tuner()

2016-01-06 Thread Shuah Khan
au0828_enable_analog_tuner() is no longer needed with v4l2-core and au0828-video invoking enable_source and disable_source handlers. In addition, it is unnecessary to check for tuner availability in queue_setup() as v4l2-core handles the tuner availability checks. Signed-off-by: Shuah Khan --- d

[PATCH 14/31] media: Change v4l-core to check for tuner availability

2016-01-06 Thread Shuah Khan
Change s_input, s_fmt, s_tuner, s_frequency, querystd, s_hw_freq_seek, and vb2_core_streamon interfaces that alter the tuner configuration to check for tuner availability by calling v4l_enable_media_tuner(). If tuner isn't free, return -EBUSY. v4l_disable_media_tuner() is called from v4l2_fh_exit()

[PATCH 13/31] media: au0828 fix au0828_create_media_graph() entity checks

2016-01-06 Thread Shuah Khan
au0828_create_media_graph() doesn't do any checks to determine, if vbi_dev, vdev, and input entities have been registered prior to creating pad links. Checking graph_obj.mdev field works as the graph_obj.mdev field gets initialized in the entity register interface. Fix it to check graph_obj.mdev fi

[PATCH 20/31] media: au0828 change to register/unregister entity_notify hook

2016-01-06 Thread Shuah Khan
au0828 registers entity_notify hook to create media graph for the device. This handler runs whenvere a new entity gets added to the media device. It creates necessary links from video, vbi, and ALSA entities to decoder and links tuner and decoder entities. As this handler runs as entities get added

[PATCH 15/31] media: dvb-frontend invoke enable/disable_source handlers

2016-01-06 Thread Shuah Khan
Checking for tuner availability from frontend thread start disrupts video stream. Change to check for tuner and start pipeline from frontend open instead and stop pipeline from frontend release. In addition, make a change to invoke enable_source and disable_source handlers to check for tuner availa

[PATCH 24/31] media: au0828 fix null pointer reference in au0828_create_media_graph()

2016-01-06 Thread Shuah Khan
Add a new wrapper function to au0828_create_media_graph() to be called as an entity_notify function to fix null pointer dereference. A rebasing mistake resulted in registering au0828_create_media_graph() without the correct parameters which lead to the following null pointer dereference: [ 69.00

[PATCH 19/31] media: au0828 handle media_init and media_register window

2016-01-06 Thread Shuah Khan
Media device initialization and registration is split and there is a window between media device init and media device register during usb probe. au0828 bridge driver has to coordinate managed media device init and register with snd-usb-audio. Checking if the device is registered during media devic

[PATCH 21/31] media: au0828 create tuner to decoder link in deactivated state

2016-01-06 Thread Shuah Khan
Create tuner to demod pad link in disabled state to help avoid disable step when tuner resource is requested by dvb. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/au0828/au0828-core.c

[PATCH 23/31] media: au0828 implement enable_source and disable_source handlers

2016-01-06 Thread Shuah Khan
Implements enable_source and disable_source handlers for other drivers (v4l2-core, dvb-core, and ALSA) to use to check for tuner connected to the decoder and activate the link if tuner is free, and deactivate and free the tuner when it is no longer needed. Signed-off-by: Shuah Khan --- drivers/m

[PATCH 22/31] media: dvb-core create tuner to demod pad link in disabled state

2016-01-06 Thread Shuah Khan
Create tuner to demod pad link in disabled state to help avoid disable step when tuner resource is requested by video or audio. Signed-off-by: Shuah Khan --- drivers/media/dvb-core/dvbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvbdev.c b/dr

[PATCH 18/31] media: au0828 change to use Managed Media Controller API

2016-01-06 Thread Shuah Khan
Change au0828 to use Managed Media Controller API to coordinate creating/deleting media device on parent usb device it shares with the snd-usb-audio driver. With this change, au0828 uses media_device_get_devres() to allocate a new media device devres or return an existing one, if it finds one. Sig

[PATCH 00/31] Sharing media resources across ALSA and au0828 drivers

2016-01-06 Thread Shuah Khan
This patch series updates ALSA driver, and au0828 core driver to use Managed Media controller API and Media Controller API to share tuner. Media Controller Next Generation API has been enhanced to add two new interfaces to register and unregister entity_notify hooks to allow drivers to take approp

[PATCH 05/31] media: Media Controller fix to not let stream_count go negative

2016-01-06 Thread Shuah Khan
Add a range check to not let the stream_count become negative. Wthout this check, calls to stop pipeline when there is no active pipeline will result in stream_count < 0 condition and lock and preventing link state (activate/deactivate) changes. This will happen from error leg in start pipeline int

[PATCH 01/31] uapi/media.h: Declare interface types for ALSA

2016-01-06 Thread Shuah Khan
From: Mauro Carvalho Chehab Declare the interface types to be used on alsa for the new G_TOPOLOGY ioctl. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/media-entity.c | 12 include/uapi/linux/media.h | 8 2 files changed, 20 insertions(+) diff --git a/drivers/

[PATCH 12/31] media: au0828 Use au8522_media_pads enum for pad defines

2016-01-06 Thread Shuah Khan
Change au0828-core to use au8522_media_pads enum defines instead of hard-coding the pad values when it creates media graph linking decode pads to other entities. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) dif

[PATCH 07/31] media: Media Controller non-locking __media_entity_pipeline_start/stop()

2016-01-06 Thread Shuah Khan
Add non-locking __media_entity_pipeline_start/stop() interfaces to be called from code paths that hold the graph_mutex. For this change, the media_entity_pipeline_start() routine is renamed to __media_entity_pipeline_start() minus the graph_mutex lock and unlock. media_entity_pipeline_start() now c

[PATCH 02/31] media: Add ALSA Media Controller function entities

2016-01-06 Thread Shuah Khan
Add ALSA Media Controller capture, playback, and mixer function entity defines. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 75cbe92..53a96ae 1006

[PATCH 09/31] media: v4l2-core add v4l_vb2q_enable_media_tuner() helper

2016-01-06 Thread Shuah Khan
Add a new v4l_vb2q_enable_media_tuner() wrapper function to be called from v4l2-core to enable the media tuner with videobuf2 queue, when the calling frunction has the videobuf2 queue and doesn't have the struct video_device associated with the queue handy as in the case of vb2_core_streamon(). Thi

[PATCH 06/31] media: Media Controller export non locking __media_entity_setup_link()

2016-01-06 Thread Shuah Khan
Export __media_entity_setup_link() to be used from code paths that hold the graph_mutex. Signed-off-by: Shuah Khan --- drivers/media/media-entity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 78486a9..b8769aa 100644 --- a/

[PATCH 10/31] media: Move au8522_media_pads enum to au8522.h from au8522_priv.h

2016-01-06 Thread Shuah Khan
Move the au8522_media_pads enum to au8522.h from au8522_priv.h. This will allow au0828-core to use these defines instead of hard-coding the pad values when it creates media graph linking decode pads to other entities. Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/au8522.h | 7 ++

[PATCH 03/31] media: Media Controller register/unregister entity_notify API

2016-01-06 Thread Shuah Khan
Add new interfaces to register and unregister entity_notify hook to media device to allow drivers to take appropriate actions when as new entities get added to the shared media device.When a new entity is registered, all registered entity_notify hooks are invoked to allow drivers or modules that re

[PATCH 08/31] media: v4l-core add v4l_enable/disable_media_tuner() helper functions

2016-01-06 Thread Shuah Khan
Add a new interfaces to be used by v4l-core to invoke enable source and disable_source handlers in the media_device. The enable_source helper function invokes the enable_source handler to find tuner entity connected to the decoder and check is it is available or busy. If tuner is available, link is

Nokia N900: u-SD card in v4.2+

2016-01-06 Thread Pavel Machek
Hi! In v4.1, both internal MMC and u-SD cards work ok. In v4.2, only the internal MMC is detected. In v4.3, not even internal MMC works. In v4.4, only the internal MMC is detected. Does it work for you? Any patches? (I do have hack in the dts to disable back cover detection...)

Re: [PATCH] perf pmu: fix alias->snapshot missing initialization bug

2016-01-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 06, 2016 at 07:50:01PM +0100, Stephane Eranian escreveu: > This patch fixes a bug in __perf_pmu__new_alias() whereby > the alias->snapshot field was not initialized to false. This > led to random alias->snapshot value for an alias and > was breaking some measurements such as: > > $ per

[PATCH 11/31] media: au8522 change to create MC pad for ALSA Audio Out

2016-01-06 Thread Shuah Khan
Add new pad for ALSA Audio Out to au8522_media_pads. Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/au8522.h | 1 + drivers/media/dvb-frontends/au8522_decoder.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/au8522.h b/drivers/media/dvb-fron

[PATCH 30/31] sound/usb: Check media device unregister progress state

2016-01-06 Thread Shuah Khan
Change to release media resources for pcm streams and mixer before snd_card_disconnect() is done from usb_audio_disconnect(). The stream and mixer resource release interfaces access managed media resources (device resources) created on the usb device parent. These interfaces should be called before

[PATCH 04/31] media: Media Controller enable/disable source handler API

2016-01-06 Thread Shuah Khan
Add new fields to struct media_device to add enable_source, and disable_source handlers, and source_priv to stash driver private data that is need to run these handlers. The enable_source handler finds source entity for the passed in entity and check if it is available, and activate the link using

[PATCH 28/31] media: au0828 create link between ALSA Mixer and decoder

2016-01-06 Thread Shuah Khan
Change au0828_create_media_graph() to create pad link between MEDIA_ENT_F_AUDIO_MIXER entity and decoder's AU8522_PAD_AUDIO_OUT. With mixer entity now linked to decoder, change to link MEDIA_ENT_F_AUDIO_CAPTURE to mixer's source pad. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-

[PATCH 29/31] media: track media device unregister in progress

2016-01-06 Thread Shuah Khan
Add support to track media device unregister in progress state to prevent more than one driver entering unregister. This enables fixing the general protection faults while snd-usb-audio was cleaning up media resources for pcm streams and mixers. In this patch a new interface is added to return the

[PATCH 31/31] media: au0828 change to check media device unregister progress state

2016-01-06 Thread Shuah Khan
Change au0828_unregister_media_device() to check media device media device unregister is in progress and avoid calling media_device_unregister() and other cleanup done in au0828_unregister_media_device(). Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 4 +++- 1 file chang

Re: [PATCH v3 0/4] scsi: cleanup ioctl headers and provide UAPI versions

2016-01-06 Thread Martin K. Petersen
> "Paolo" == Paolo Bonzini writes: >> This is v3 of the series to provide an "official" sg.h header (and >> scsi_ioctl.h too, though it's basically obsolete) together with the >> other userspace API definitions. The change from v2 to v3 is that >> defaults for sg.c are not exported in includ

[PATCH 25/31] media: au0828 fix to not call media_device_unregister_entity_notify()

2016-01-06 Thread Shuah Khan
entity_notify handlers are removed from media_device_unregister(). There is no need to call media_device_unregister_entity_notify() to do that right before calling media_device_unregister(). Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 2 -- 1 file changed, 2 deletions(

Re: [RFC PATCH 5/5] arm64: Introduce Allwinner SoC config option

2016-01-06 Thread Maxime Ripard
Hi Arnd, On Mon, Jan 04, 2016 at 01:12:53PM +0100, Arnd Bergmann wrote: > On Monday 04 January 2016 12:26:48 Maxime Ripard wrote: > > Hi Andre, Arnd, > > > > On Tue, Dec 22, 2015 at 12:27:47PM +, Andre Przywara wrote: > > > To prepare for supporting the Allwinner A64 SoC, introduce a config >

Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation

2016-01-06 Thread Thadeu Lima de Souza Cascardo
On Wed, Jan 06, 2016 at 11:11:41PM +0300, Konstantin Khlebnikov wrote: > On Wed, Jan 6, 2016 at 10:59 PM, Cong Wang wrote: > > On Wed, Jan 6, 2016 at 11:15 AM, Konstantin Khlebnikov > > wrote: > >> Looks like this happens because ip_options_fragment() relies on > >> correct ip options length in

[PATCH 27/31] sound/usb: Create media mixer function and control interface entities

2016-01-06 Thread Shuah Khan
Add support for creating MEDIA_ENT_F_AUDIO_MIXER entity for each mixer and a MEDIA_INTF_T_ALSA_CONTROL control interface entity that links to mixer entities. MEDIA_INTF_T_ALSA_CONTROL entity corresponds to the control device for the card. Signed-off-by: Shuah Khan --- sound/usb/card.c | 5 +

[PATCH 26/31] sound/usb: Update ALSA driver to use Managed Media Controller API

2016-01-06 Thread Shuah Khan
Change ALSA driver to use Managed Media Managed Controller API to share tuner with DVB and V4L2 drivers that control AU0828 media device. Media device is created based on a newly added field value in the struct snd_usb_audio_quirk. Using this approach, the media controller API usage can be added f

[PATCH] include/linux/cleancache.h: Clean up code

2016-01-06 Thread chengang
From: Chen Gang Let cleancache_fs_enabled() call cleancache_fs_enabled_mapping() directly. Remove redundant variable ret in cleancache_get_page(). Signed-off-by: Chen Gang --- include/linux/cleancache.h | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/include

[PATCH 0/6] wireless:libertas: ieee80211 powersave mode

2016-01-06 Thread Andreas Kemnade
This series makes IEEE 80211 powersave mode work again so that power usage is dramatically reduced when the device is connected. It does not include other power saving methods which are working when the device is not connected (like enabling deep sleep modus) Tested on GTA04 which includes a W2CBW

[PATCH 2/6] wireless:libertas: check whether bus can do more than polling

2016-01-06 Thread Andreas Kemnade
If a sdio host does not support sdio irqs, polling is used instead. That has an impact on performance. Some functionality should not be enabled then. This add a variable in libertas_priv to indicate that. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/dev.h | 1 + drivers/n

[PATCH 1/6] wireless:libertas: do not strip header for PS_MODE commands

2016-01-06 Thread Andreas Kemnade
struct cmd_ds_802_11_ps_mode contains the command header and a pointer to it was initialized with data points to the body which leads to mis-interpretation of the cmd_ds_802_11_ps_mode.action member. Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/cmd.c | 4 ++-- drivers/net

[PATCH 3/6] wireless:libertas: add an cfg80211 interface for powersaving

2016-01-06 Thread Andreas Kemnade
This patch adds an interface for handling commands like iwconfig wlanX power on/off. Such an interface formerly existed when the driver used wext. While performance with sdio in polling mode without using powersave mode is quite bad, powersaving mode is unusable, so do not enable it under such con

[PATCH 5/6] wireless:libertas: go back to ps mode without commands pending

2016-01-06 Thread Andreas Kemnade
Removes the old todo block and checks only whether ieee powersave mode is requested. We still have to check for being connected as this powersave mode includes logic for regularly waking up and checking for packets which only makes sense when connected. For not being connected, another mode is need

[PATCH 6/6] wireless:libertas: fix suspend problems

2016-01-06 Thread Andreas Kemnade
When the device goes to suspend mode with powersaving enabled, lbs_remove_card tries to exit powersaving state even when already woken up. That command is not processed properly in that situation, so the system hangs at suspend, so disable it. Signed-off-by: Andreas Kemnade --- drivers/net/wirel

[PATCH 4/6] wireless:libertas: do not confirm sleep if commands are pending

2016-01-06 Thread Andreas Kemnade
If the main thread gets one PS AWAKE event and one PS SLEEP event in one iteration over event_fifo there will never be checks for commands to be processed, since psstate will always be PS_STATE_SLEEP or PS_STATE_PRE_SLEEP Signed-off-by: Andreas Kemnade --- drivers/net/wireless/libertas/cmdresp.c

Re: [PATCH V4 0/4] scsi: storvsc: Properly support FC hosts

2016-01-06 Thread Martin K. Petersen
> "KYS" == K Y Srinivasan writes: The template discussion appears to have lost momentum and since the concerns were minor I have applied your latest series to 4.5/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [linux-sunxi] [RFC PATCH] drivers: pinctrl: add driver for Allwinner A64 SoC

2016-01-06 Thread Maxime Ripard
Hi Andre, On Tue, Jan 05, 2016 at 12:00:11PM +, Andre Przywara wrote: > Hi Maxime, > > On 04/01/16 20:30, Maxime Ripard wrote: > > Hi Andre, > > > > On Mon, Jan 04, 2016 at 10:29:06AM +, Andre Przywara wrote: > diff --git a/drivers/pinctrl/sunxi/Makefile > b/drivers/pinctrl/su

Re: [PATCH net] Driver: Vmxnet3: Fix regression caused by 5738a09

2016-01-06 Thread David Miller
From: Shrikrishna Khare Date: Wed, 6 Jan 2016 10:44:27 -0800 > Reported-by: Bingkuo Liu > Signed-off-by: Shrikrishna Khare Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH v3] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2016-01-06 Thread John Allen
This patch fixes a bug where a kernel warning is triggered when performing a memory hotplug on ppc64. This warning may also occur on any architecture that uses the memory_probe_store interface. WARNING: at drivers/base/memory.c:200 CPU: 9 PID: 13042 Comm: systemd-udevd Not tainted 4.4.0-rc4-00113

Re: [PATCH] staging/ion: Add support to get ion handle from dma buf

2016-01-06 Thread Jonathan Corbet
On Wed, 6 Jan 2016 12:06:22 +0300 Dan Carpenter wrote: > It's not really necessary to CC linux-kernel. No one reads it. I have to take issue with this too; more of us read it than you might think. The fact that we're probably all crazy doesn't really figure into it. Think of linux-kernel as t

[PATCH] staging: android: sync_debug.c: remove unnecessary braces

2016-01-06 Thread Robin Krahl
Remove unnecessary braces {} around a single statement within a for loop. Indicated by checkpatch. Signed-off-by: Robin Krahl --- drivers/staging/android/sync_debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/android/sync_debug.c b/drivers/staging/and

RE: Happy New Year

2016-01-06 Thread Carl Leinbach
From: Carl Leinbach Sent: Wednesday, January 06, 2016 4:13 PM To: Carl Leinbach Subject: Happy New Year You Have Been Picked...Email:(mr_sgloria_macken...@email.com) For More Details -- To unsubscribe from this list: s

Re: [PATCH v2 2/4] clk: arizona: Add clock driver for the Arizona devices

2016-01-06 Thread kbuild test robot
Hi Charles, [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.4-rc8 next-20160106] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Charles-Keepax/extcon-arizona-Remove

Re: [PATCH v3] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2016-01-06 Thread kbuild test robot
Hi John, [auto build test WARNING on v4.4-rc8] [also build test WARNING on next-20160106] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/John-Allen/memory-hotplug-Fix-kernel-warning-during

Re: [PATCH v2 10/14] serial: pic32_uart: Add PIC32 UART driver

2016-01-06 Thread Paul.Thacker
On 01/05/2016 03:50 PM, One Thousand Gnomes wrote: > >> +#define PIC32_SDEV_NAME "ttyS" >> +#define PIC32_SDEV_MAJORTTY_MAJOR >> +#define PIC32_SDEV_MINOR64 > > No. Same goes for you as every one of the forty other people a year who > try and claim their console is ttyS. If it's

Re: [BUG] skb corruption and kernel panic at forwarding with fragmentation

2016-01-06 Thread Florian Westphal
Thadeu Lima de Souza Cascardo wrote: > On Wed, Jan 06, 2016 at 11:11:41PM +0300, Konstantin Khlebnikov wrote: > > On Wed, Jan 6, 2016 at 10:59 PM, Cong Wang wrote: > > > On Wed, Jan 6, 2016 at 11:15 AM, Konstantin Khlebnikov > > > wrote: > > >> Looks like this happens because ip_options_fragmen

Re: [PATCH] PCI: imx6:don't sleep in atomic context

2016-01-06 Thread Bjorn Helgaas
Hi Sanjeev, On Mon, Nov 09, 2015 at 04:18:00PM +0530, Sanjeev Sharma wrote: > If additional PCIe switch get connected between the > host and the NIC,the kernel crashes with "BUG: > scheduling while atomic". To handle this we need to > call mdelay() instead of usleep_range(). > > For more detail p

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-01-06 Thread Maxime Ripard
On Mon, Dec 28, 2015 at 04:06:49AM +0100, Danny Milosavljevic wrote: > Hi Maxime, > > On Sun, 27 Dec 2015 19:21:57 +0100 > Maxime Ripard wrote: > > > On Mon, Dec 21, 2015 at 12:34:16PM +0100, Danny Milosavljevic wrote: > > > This is the second part, actually adding FM, Line and Mic inputs. > >

[GIT] Networking

2016-01-06 Thread David Miller
As usual, there are a couple straggler bug fixes: 1) qlcnic_alloc_mbx_args() error returns are not checked in qlcnic driver. Fix from Insu Yun. 2) SKB refcounting bug in connector, from Florian Westphal. 3) vrf_get_saddr() has to propagate fib_lookup() errors to it's callers, from David A

blog post: Monitoring real-time latencies

2016-01-06 Thread Julien Desfossez
Hi, Here is a blog post related to detecting and understanding high interrupt-processing latencies on real-time systems. It is based on a new project called latency_tracker that hooks on the existing kernel tracepoints and executes actions when high latency events occur. https://lttng.org/blog/20

Re: [PATCH v2 31/32] sh: support a 2-byte smp_store_mb

2016-01-06 Thread Michael S. Tsirkin
On Wed, Jan 06, 2016 at 01:23:50PM -0500, Rich Felker wrote: > On Wed, Jan 06, 2016 at 03:32:18PM +0100, Peter Zijlstra wrote: > > On Wed, Jan 06, 2016 at 01:52:17PM +0200, Michael S. Tsirkin wrote: > > > > > Peter, what do you think? How about I leave this patch as is for now? > > > > > > > > No,

Re: [PATCH v3] PCI: hosts: mark pcie/pci (msi) irq cascade handler as IRQF_NO_THREAD

2016-01-06 Thread Bjorn Helgaas
Hi Grygorii, On Thu, Dec 10, 2015 at 09:18:20PM +0200, Grygorii Strashko wrote: > On -RT and if kernel is booting with "threadirqs" cmd line parameter > pcie/pci (msi) irq cascade handlers (like dra7xx_pcie_msi_irq_handler()) > will be forced threaded and, as result, will generate warnings like: >

[PATCH RESEND v4 10/11] staging: fsl-mc: Added DPRC interrupt handler

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" The interrupt handler for DPRC IRQs is added. DPRC IRQs are generated for hot plug events related to DPAA2 objects in a given DPRC. These events include, creating/destroying DPAA2 objects in the DPRC, changing the "plugged" state of DPAA2 objects and moving objects betwee

[PATCH RESEND v4 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" THE MSI domain associated with a root DPRC object is obtained form the device tree. Child DPRCs inherit the parent DPRC MSI domain. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Changed call to fsl_mc_find

[PATCH RESEND v4 06/11] staging: fsl-mc: Changed DPRC built-in portal's mc_io to be atomic

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" The DPRC built-in portal's mc_io is used to send commands to the MC to program MSIs for MC objects. This is done by the fsl_mc_msi_write_msg() callback, which is invoked by the generic MSI layer with interrupts disabled. As a result, the mc_io used in fsl_mc_msi_write_msg

[PATCH RESEND v4 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: - Addressed comment from Jiang Liu * Added a dedicate

[PATCH RESEND v4 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Scan the corresponding DPRC container to get total count of IRQs needed by all its child DPAA2 objects. Then, preallocate a set of MSI IRQs with the DPRC's ICID (GIT-ITS device Id) to populate the the DPRC's IRQ pool. Each child DPAA2 object in the DPRC and the DPRC objec

[PATCH RESEND v4 01/11] irqdomain: Added domain bus token DOMAIN_BUS_FSL_MC_MSI

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Since an FSL-MC bus is a new bus type that is neither PCI nor PLATFORM, we need a new domain bus token to disambiguate the IRQ domain for FSL-MC MSIs. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none inc

[PATCH RESEND v4 00/11] staging: fsl-mc: MC bus MSI support

2016-01-06 Thread J. German Rivera
*** This is a resend of the last iteration of this patch series *** This patch series addresses the following item from the TODO list for the MC bus driver to exit staging: * Interrupt support. For meaningful driver support we need interrupts, and thus need message interrupt support by the bus

[PATCH] iwlwifi: Document missing module options

2016-01-06 Thread Rodrigo Freire
This patch documents two missing module options in the internal code comment block. Signed-off-by: Rodrigo Freire --- drivers/net/wireless/iwlwifi/iwl-modparams.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-modparams.h b/drivers/net

[PATCH RESEND v4 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: - Addressed comment from Dan Carpenter: * Renamed goto error labels

[PATCH RESEND v4 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Created an MSI domain for the fsl-mc bus-- including functions to create a domain, find a domain, alloc/free domain irqs, and bus specific overrides for domain and irq_chip ops. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: - Addressed comments from

[PATCH RESEND v4 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Moved bus type check earlier in its_fsl_mc_msi_prepare() * Removed its_dev_id variable * Chan

[PATCH RESEND v4 11/11] staging: fsl-mc: Added MSI support to the MC bus driver

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Initialize/Cleanup ITS-MSI support for the MC bus driver at driver init/exit time. Associate an MSI domain with each DPAA2 child device. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none drivers/staging/f

[PATCH RESEND v4 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" All the IRQs for DPAA2 objects in the same DPRC must use the ICID of that DPRC, as their device Id in the GIC-ITS. Thus, all these IRQs must share the same ITT table in the GIC. As a result, a pool of IRQs with the same device Id must be preallocated per DPRC (fsl-mc bus

[PATCH v4] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2016-01-06 Thread John Allen
This patch fixes a bug where a kernel warning is triggered when performing a memory hotplug on ppc64. This warning may also occur on any architecture that uses the memory_probe_store interface. WARNING: at drivers/base/memory.c:200 CPU: 9 PID: 13042 Comm: systemd-udevd Not tainted 4.4.0-rc4-00113

[PATCH 0/4] x86/fpu: FPU init code bugfixes

2016-01-06 Thread yu-cheng yu
The function fpu__init_system() is executed before parse_early_param(). This causes wrong fpu configuration. In addition, there are three related issues: 1. XGETBV1 is enabled when noxsave is given 2. MPX is enabled when eagerfpu=off is given 3. AVX is enabled when eagerfpu=off is given I

[PATCH 1/4] x86/fpu: Fix early fpu command-line parsing

2016-01-06 Thread yu-cheng yu
The function fpu__init_system() is executed before parse_early_param(). This causes wrong fpu configuration. This patch fixes this issue by parsing boot_command_line in the beginning of fpu__init_system(). With all four patches in this series, each parameter disables features as the following: ea

[PATCH 2/4] x86/fpu: Disable XGETBV1 when no XSAVE

2016-01-06 Thread yu-cheng yu
When "noxsave" is given as a command-line input, the kernel should disable XGETBV1. This issue currently does not cause any actual problems. XGETBV1 is only useful if we have something using the 'init optimization' (i.e. xsaveopt, xsaves). We already clear both of those in fpu__xstate_clear_all_cpu

[PATCH 4/4] x86/fpu: Disable AVX when eagerfpu is off

2016-01-06 Thread yu-cheng yu
When "eagerfpu=off" is given as a command-line input, the kernel should disable AVX support. The Task Switched bit used for lazy context switching does not support AVX. If AVX is enabled without eagerfpu context switching, one task's AVX state could become corrupted or leak to other tasks. This is

[PATCH 3/4] x86/fpu: Disable MPX when eagerfpu is off

2016-01-06 Thread yu-cheng yu
This issue is a fallout from the command-line parsing move. When "eagerfpu=off" is given as a command-line input, the kernel should disable MPX support. The decision for turning off MPX was made in fpu__init_system_ctx_switch(), which is after the selection of the XSAVE format. This patch fixes it

Re: [PATCH v2 10/14] serial: pic32_uart: Add PIC32 UART driver

2016-01-06 Thread One Thousand Gnomes
On Wed, 6 Jan 2016 22:00:43 + wrote: > On 01/05/2016 03:50 PM, One Thousand Gnomes wrote: > > > >> +#define PIC32_SDEV_NAME "ttyS" > >> +#define PIC32_SDEV_MAJOR TTY_MAJOR > >> +#define PIC32_SDEV_MINOR 64 > > > > No. Same goes for you as every one of the forty other people a year

[PATCH v2 3/3] efi: implement interruptible runtime services

2016-01-06 Thread Sylvain Chouleur
From: Sylvain Chouleur This patch adds an implementation of EFI runtime services wappers which allow interrupts and preemption during execution of BIOS code. It's needed by Broxton platform which requires the OS to do the write of the non volatile variables. To do that, the OS will receive an in

[PATCH v2 0/3] efi interruptible runtime services

2016-01-06 Thread Sylvain Chouleur
From: Sylvain Chouleur Changes in v2: - Split patch 1 in patches 1 and 2 - Document (un)registration of __efivars protection - Return early from efivars_sysfs_exit() in case of failure - Improve readability - Update functions documentation - Fix typo - Fix checkpatch warnings - Warning in

[PATCH] mm/hugetlbfs: Unmap pages if page fault raced with hole punch

2016-01-06 Thread Mike Kravetz
Page faults can race with fallocate hole punch. If a page fault happens between the unmap and remove operations, the page is not removed and remains within the hole. This is not the desired behavior. The race is difficult to detect in user level code as even in the non-race case, a page within t

linux-next: error while fetching the microblaze tree

2016-01-06 Thread Stephen Rothwell
Hi Michal, Fetching the microblaze tree (git://git.monstr.eu/linux-2.6-microblaze.git#next) produces this error. fatal: read error: Connection reset by peer I will use the previously fetched version for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au -- To unsubscri

Re: [PATCH] input: gpio_keys: Fix check for disabling unsupported key

2016-01-06 Thread Dmitry Torokhov
On Tue, Jan 05, 2016 at 09:24:40AM +0200, Ivaylo Dimitrov wrote: > Hi, > > On 5.01.2016 03:19, Dmitry Torokhov wrote: > >>/* First validate */ > >>- for (i = 0; i < ddata->pdata->nbuttons; i++) { > >>- struct gpio_button_data *bdata = &ddata->data[i]; > >>+ for (i = 0; i < n_eve

Re: [PATCHv1 6/6] rdmacg: Added documentation for rdma controller.

2016-01-06 Thread Parav Pandit
On Wed, Jan 6, 2016 at 3:23 AM, Tejun Heo wrote: > Hello, > > On Wed, Jan 06, 2016 at 12:28:06AM +0530, Parav Pandit wrote: >> +5-4-1. RDMA Interface Files >> + >> + rdma.resource.verb.list >> + rdma.resource.verb.limit >> + rdma.resource.verb.usage >> + rdma.resource.verb.failcnt >> + rdma.r

[PATCH] Input: rohm_bu21023 - fix handling of retrying firmware update

2016-01-06 Thread Dmitry Torokhov
Because of the wrong condition we'd never retry firmware update. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/rohm_bu21023.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/rohm_bu21023.c b/drivers/input/touchscreen/rohm_bu21023.c in

Re: [PATCH for-4.5 v2] mtd: nand: assign reasonable default name for NAND drivers

2016-01-06 Thread Brian Norris
On Tue, Jan 05, 2016 at 10:39:45AM -0800, Brian Norris wrote: > Commits such as commit 853f1c58c4b2 ("mtd: nand: omap2: show parent > device structure in sysfs") attempt to rely on the core MTD code to set > the MTD name based on the parent device. However, nand_base tries to set > a different defa

Re: [PATCH v3 1/4] mtd: spi-nor: fsl-quadspi: add big-endian support

2016-01-06 Thread Brian Norris
On Wed, Jan 06, 2016 at 07:52:31AM +, Yao Yuan wrote: > On Tue, Jan 05, 2015 at 04:58AM, Han Xu wrote: > > once again, please document the new property. > > Thanks for your review. > I have already send the patch named "Documentation: fsl-quadspi: Add optional > properties" to community on De

[PATCH v5 6/6] nvdimm: Add IOCTL pass thru functions

2016-01-06 Thread Jerry Hoemann
Add ioctl command ND_CMD_CALL_DSM to acpi_nfit_ctl and __nd_ioctl which allow kernel to call a nvdimm's _DSM as a passthru without using the marshaling code of the nd_cmd_desc. Signed-off-by: Jerry Hoemann --- drivers/acpi/nfit.c | 52 +++- driver

[PATCH v5 1/6] ACPI / util: Fix acpi_evaluate_dsm() argument type

2016-01-06 Thread Jerry Hoemann
The ACPI spec speicifies that arguments "Revision ID" and "Function Index" to a _DSM are type "Integer." Type Integers are 64 bit quantities. The function evaluate_dsm specifies these types as simple "int" which are 32 bits. Correct type passed to acpi_evaluate_dsm and its callers and derived ca

[PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls

2016-01-06 Thread Jerry Hoemann
The NVDIMM code in the kernel supports an IOCTL interface to user space based upon the Intel Example DSM: http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf This interface cannot be used by other NVDIMM DSMs that support incompatible functions. This patch set adds a generic "passt

[PATCH v5 4/6] nvdimm: Fix security issue with DSM IOCTL.

2016-01-06 Thread Jerry Hoemann
Code attempts to prevent certain IOCTL DSM from being called when device is opened read only. This security feature can be trivially overcome by changing the size portion of the ioctl_command which isn't used. Check only the _IOC_NR (i.e. the command). Signed-off-by: Jerry Hoemann --- drivers/

<    2   3   4   5   6   7   8   9   10   >