[PATCH] debugfs: Add stub function for debugfs_create_automount().

2015-11-22 Thread Jiaxing Wang
Add stub for debugfs_create_automount() for when debugfs is not configured in. Signed-off-by: Jiaxing Wang --- include/linux/debugfs.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 19c066d..981e53a 100644 --- a/include/linux/d

[PATCH] [ALSA] midi: constify snd_rawmidi_global_ops structures

2015-11-22 Thread Julia Lawall
The snd_rawmidi_global_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- include/sound/rawmidi.h |2 +- sound/core/seq/seq_virmidi.c |2 +- sound/usb/midi.c |2 +- 3 files changed, 3 inser

Re: [PATCH] [ALSA] midi: constify snd_rawmidi_global_ops structures

2015-11-22 Thread Takashi Iwai
On Sun, 22 Nov 2015 08:55:07 +0100, Julia Lawall wrote: > > The snd_rawmidi_global_ops structures are never modified, so declare them > as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied, thanks. Takashi > > --- > include/sound/rawmidi.h |2 +-

[RFC PATCH v1] Trying to fix the stmmac memory leak during suspend/resume

2015-11-22 Thread Shunqian Zheng
From: ZhengShunQian When I run Suspend-to-Ram stress test on my Rockchip RK3288(SoC) board that integrated stmmac ethernet, it always OOM after a few iterations, usually 50 times is enough to reproduce. Compiled kernel with KMEMLEAK feature, I got the logs as below: unreferenced object 0xed89ac0

[PATCH v1] net: stmmac: Free rx_skbufs before realloc

2015-11-22 Thread Shunqian Zheng
From: ZhengShunQian The init_dma_desc_rings() may realloc the rx_skbuff[] when suspend and resume. This patch free the rx_skbuff[] before reallocing memory. Signed-off-by: ZhengShunQian --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 18 ++ 1 file changed, 10 insertions

RE: [PATCH V3 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-22 Thread Yuval Mintz
> +static void hns_ae_set_tso_stats(struct hnae_handle *handle, int > +enable) { > + struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); > + > + hns_ppe_set_tso_enable(ppe_cb, enable); } Style issues? > +void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value) { > + dsaf_set_

Re: [PATCH v5 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-22 Thread Dave Penkler
On Wed, Nov 18, 2015 at 11:41:30AM +0200, Andy Shevchenko wrote: > On Wed, Nov 18, 2015 at 10:38 AM, Dave Penkler wrote: > > These ioctls provide support for the USBTMC-USB488 control requests > > for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT > > Couple of comments below. > > > diff --git a/dri

Re: [PATCH] sp5100_tco: Add AMD Mullins platform support

2015-11-22 Thread Denis Turischev
Hi Rui, On 11/20/2015 04:33 AM, Huang Rui wrote: > Hi Denis, > > On Thu, Nov 19, 2015 at 05:56:00PM +0800, Denis Turischev wrote: >> AMD Mullins watchdog is fully compatible to the previous Hudson chipset, >> reuse the existent sp5100_tco driver. >> > > Thank you to add this support! > Actually,

[PATCH] thermal: constify pch_dev_ops structure

2015-11-22 Thread Julia Lawall
The pch_dev_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/thermal/intel_pch_thermal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/therm

Re: [PATCH v5 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-22 Thread Dave Penkler
On Wed, Nov 18, 2015 at 11:55:27AM +0200, Andy Shevchenko wrote: > On Wed, Nov 18, 2015 at 10:37 AM, Dave Penkler wrote: > > Background: > > When performing a read on an instrument that is executing a function > > that runs longer than the USB timeout the instrument may hang and > > require a devi

RE: [PATCH V3 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-22 Thread Yuval Mintz
> +void hns_rcbv2_int_ctrl_hw(struct hnae_queue *q, u32 flag, u32 mask) > +{ > + u32 int_mask_en = !!mask; > + > + if (flag & RCB_INT_FLAG_TX) > + dsaf_write_dev(q, RCB_RING_INTMSK_TXWL_REG, > int_mask_en); > + > + if (flag & RCB_INT_FLAG_RX) > + dsaf_write_dev(q

[PATCH] [media] soc_camera: constify v4l2_subdev_sensor_ops structures

2015-11-22 Thread Julia Lawall
The v4l2_subdev_sensor_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/i2c/soc_camera/mt9m001.c |2 +- drivers/media/i2c/soc_camera/mt9t031.c |2 +- drivers/media/i2c/soc_camera/mt9v022.c |

[PATCH 3/6] drivers: staging: vme: Fixed the using of sizeof

2015-11-22 Thread Egor Uleyskiy
From: Egor Uleyskiy Constructions that looks like card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL); are changed to card = kzalloc(sizeof(*card), GFP_KERNEL); Signed-off-by: Egor Uleyskiy --- drivers/staging/vme/devices/vme_pio2_core.c | 2 +- drivers/staging/vme/devices/vme_user

[PATCH 1/6] drivers: staging: vme: Fixed indention

2015-11-22 Thread Egor Uleyskiy
From: Egor Uleyskiy Signed-off-by: Egor Uleyskiy --- drivers/staging/vme/devices/vme_pio2_cntr.c | 2 +- drivers/staging/vme/devices/vme_pio2_core.c | 16 drivers/staging/vme/devices/vme_pio2_gpio.c | 24 3 files changed, 21 insertions(+), 21 deletions

[PATCH 2/6] drivers: staging: vme: Deleted extra empty lines

2015-11-22 Thread Egor Uleyskiy
From: Egor Uleyskiy Signed-off-by: Egor Uleyskiy --- drivers/staging/vme/devices/vme_pio2_gpio.c | 2 -- drivers/staging/vme/devices/vme_user.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/vme/devices/vme_pio2_gpio.c b/drivers/staging/vme/devices/vme_pio2_gpio.c i

[PATCH 5/6] drivers: staging: vme: Fixed checking NULL and 0 code style

2015-11-22 Thread Egor Uleyskiy
From: Egor Uleyskiy Signed-off-by: Egor Uleyskiy --- drivers/staging/vme/devices/vme_pio2_core.c | 2 +- drivers/staging/vme/devices/vme_pio2_gpio.c | 2 +- drivers/staging/vme/devices/vme_user.c | 12 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/st

[PATCH 4/6] drivers: staging: vme: Deleted extra bracking

2015-11-22 Thread Egor Uleyskiy
From: Egor Uleyskiy * Deleted extra bracking of VME_* constants * Deleted extra bracking of address operator Signed-off-by: Egor Uleyskiy --- drivers/staging/vme/devices/vme_pio2_core.c | 2 +- drivers/staging/vme/devices/vme_pio2_gpio.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(

[PATCH 6/6] drivers: staging: vme: Deleted casting to (void *)

2015-11-22 Thread Egor Uleyskiy
From: Egor Uleyskiy Signed-off-by: Egor Uleyskiy --- drivers/staging/vme/devices/vme_pio2_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vme/devices/vme_pio2_core.c b/drivers/staging/vme/devices/vme_pio2_core.c index 30712da..4f3cdbc 100644 ---

RE: [PATCH V3 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-22 Thread Yuval Mintz
> static void hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb) { ... > + /* Set default RSS key and indrection table*/ > + const u32 rss_key[HNS_PPEV2_RSS_KEY_NUM] = { > + 0x6d5a56da, 0x255b0ec2, > + 0x4167253d, 0x43a38fb0, > + 0xd0ca2bcb, 0xae7b30b4, > +

Re: [PATCH 10/13] ARM: mvebu: add buffer manager nodes to armada-38x.dtsi

2015-11-22 Thread Sergei Shtylyov
Hello. On 11/22/2015 10:53 AM, Marcin Wojtas wrote: Armada 38x network controller supports hardware buffer management (BM). Since it is now enabled in mvneta driver, appropriate nodes can be added to armada-38x.dtsi - for the actual common BM unit (bm@c8000) and its internal SRAM (bm-bppi), whi

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-22 Thread Sagi Grimberg
Hello Christoph, The comment about locality in the above quote is interesting. How about modifying patch 2/9 as indicated below ? The modification below does not change the behavior of this patch if ib_cq.w.cpu is not modified. And it allows users who care about locality and who want to skip th

[PATCH v4 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2015-11-22 Thread Jitao Shi
This patch adds drm_bridge driver for parade DSI to eDP bridge chip. Signed-off-by: Jitao Shi --- Changes since v3 -add ps8640 support patchset and drop RFC -remove .owner = THIS_MODULE, --- drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile|1 + drivers

[PATCH v4 1/2] Documentation: bridge: Add documentation for ps8640 DT properties

2015-11-22 Thread Jitao Shi
Add documentation for DT properties supported by ps8640 DSI-eDP converter. Signed-off-by: Jitao Shi Acked-by: Rob Herring Reviewed-by: Philipp Zabel --- Changes since v3 - add ps8640 support patchset and drop RFC --- .../devicetree/bindings/display/bridge/ps8640.txt | 43 +++

Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-22 Thread Taeung Song
Hi, Arnaldo, Namhyung I left out indentation for config example. I fixed the bugs and I resent patch mail. Thanks, Taeung > On Nov 20, 2015, at 4:24 AM, Arnaldo Carvalho de Melo > wrote: > > Em Wed, Nov 18, 2015 at 08:13:13AM +0900, Namhyung Kim escreveu: >> On Tue, Nov 17, 2015 at 10:53:22PM

[PATCH v11 RESEND 02/24] perf tools: Add perf-config document

2015-11-22 Thread Taeung Song
Add perf-config document to describe the perf configuration and a subcommand 'list’. Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/Documentation/perf-config.txt | 103 +++ 1 file changed, 103 insertions(+) create mode 100644 tools/perf/Docum

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-22 Thread Christoph Hellwig
On Sun, Nov 22, 2015 at 11:51:13AM +0200, Sagi Grimberg wrote: > >> Hello Christoph, >> >> The comment about locality in the above quote is interesting. How about >> modifying patch 2/9 as indicated below ? The modification below does not >> change the behavior of this patch if ib_cq.w.cpu is not m

Re: [PATCH] mfd: wm8994: Ensure that the whole MFD is built into a single module

2015-11-22 Thread Peter Robinson
Sorry for the delay in confirmation that it works. Tested-by: Peter Robinson On Thu, Nov 19, 2015 at 4:46 PM, Charles Keepax wrote: > The MFD part of wm8994 consists of three files wm8994-core.c, > wm8994-irq.c and wm8994-regmap.c only wm8994-core.c has a > MODULE_DESCRIPTION / LICENSE. These w

Re: [PATCH v5 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-22 Thread Andy Shevchenko
On Sun, Nov 22, 2015 at 11:19 AM, Dave Penkler wrote: > On Wed, Nov 18, 2015 at 11:55:27AM +0200, Andy Shevchenko wrote: >> On Wed, Nov 18, 2015 at 10:37 AM, Dave Penkler wrote: >> > + switch (status) { >> > + case 0: /* SUCCESS */ >> > + if (data->iin_buffer[0] & 0x80)

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-22 Thread Sagi Grimberg
Wouldn't it be a better idea to set the WQ_SYSFS interface and use the standard sysfs interface for specifying cpumasks or node affinity? I think that bart wants to allow the caller to select cpu affinity per CQ. In this case ib_alloc_cq in workqueue mode would need to accept a affinity_hint f

Re: [PATCH v5 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-22 Thread Andy Shevchenko
On Sun, Nov 22, 2015 at 10:51 AM, Dave Penkler wrote: > On Wed, Nov 18, 2015 at 11:41:30AM +0200, Andy Shevchenko wrote: >> On Wed, Nov 18, 2015 at 10:38 AM, Dave Penkler wrote: >> > + if (rv < 0) { >> > + dev_err(dev, "simple usb_control_msg failed %d\n", rv); >> > +

Re: [PATCH 4/4] m68knommu: Add missing initialization of max_pfn and {min,max}_low_pfn

2015-11-22 Thread Geert Uytterhoeven
Hi Greg, On Tue, Nov 17, 2015 at 12:54 AM, Greg Ungerer wrote: > On 15/11/15 21:04, Geert Uytterhoeven wrote: >> If max_pfn is not initialized, the block layer may use wrong DMA masks. >> >> Replace open-coded shifts by PFN_DOWN() while we're at it. >> >> Signed-off-by: Geert Uytterhoeven > > Te

[PATCH] media, sound: tea575x: constify snd_tea575x_ops structures

2015-11-22 Thread Julia Lawall
The snd_tea575x_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/pci/bt8xx/bttv-cards.c |2 +- drivers/media/radio/radio-maxiradio.c |2 +- drivers/media/radio/radio-sf16fmr2.c |2 +- driv

network card doesn't recovered itself after a SYN flooding attack

2015-11-22 Thread Toralf Förster
At 22th of November at 21:26 UTC my server (64 bit stable Gentoo hardened) suffered from a DDoS attack. >From the kern.log: Nov 20 22:26:29 tor-relay kernel: [2431358.124515] TCP: request_sock_TCP: Possible SYN flooding on port 80. Sending cookies. Check SNMP counters. Nov 20 22:26:4

RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-22 Thread Yuval Mintz
> +static netdev_features_t hns_nic_fix_features( > + struct net_device *netdev, netdev_features_t features) { > + struct hns_nic_priv *priv = netdev_priv(netdev); > + > + switch (priv->enet_ver) { > + case AE_VERSION_1: > + features &= ~(NETIF_F_TSO | NETIF_F_TS

Re: [4.3] kworker busy in pm_runtime_work

2015-11-22 Thread Daniel J Blueman
On 16 November 2015 at 23:22, Alan Stern wrote: > On Mon, 16 Nov 2015, Daniel J Blueman wrote: > >> Tuning USB suspend [1] in 4.3 on a Dell XPS 15 9553 (Skylake), I see a >> kworker thread spinning in rpm_suspend [2]. >> >> What is the most useful debug to get here beyond the immediate [3]? > > Yo

[PATCH] lightnvm: do device max sectors boundary check first

2015-11-22 Thread Wenwei Tao
do device max_phys_sect boundary check first, otherwise we will allocate dma_pools for devices whose max sectors are beyond lightnvm support and register them. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/driver

Re: [PATCH V3 2/6] acpi: pci: Setup MSI domain for ACPI based pci devices

2015-11-22 Thread Marc Zyngier
On Sat, 21 Nov 2015 15:18:45 -0600 Suravee Suthikulpanit wrote: > Hi Marc, > > On 11/19/15 06:08, Marc Zyngier wrote: > > On Wed, 21 Oct 2015 11:47:25 -0700 > > Suravee Suthikulpanit wrote: > > > > Hi Suravee, > > > > Sorry it took so long to get to this series. Comments below. > > No worry. >

Re: [PATCH 02/14] irqchip: irq-pic32-evic: Add support for PIC32 interrupt controller

2015-11-22 Thread Marc Zyngier
On Fri, 20 Nov 2015 17:17:14 -0700 Joshua Henderson wrote: Joshua, Cristian, > From: Cristian Birsan > > This adds support for the EVIC present on a PIC32MZDA. > > The following features are supported: > - DT properties for EVIC and for devices that use interrupt lines > - persistent and no

[GIT PULL] parisc huge page support for v4.4

2015-11-22 Thread Helge Deller
Hi Linus, please pull the latest patches for the parisc architecture for kernel v4.4 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.4-2 This patchset adds Huge Page and HUGETLBFS support for parisc. Thanks, Helge

[PATCH 1/2] MIPS: ath79: Fix the ar724x clock calculation

2015-11-22 Thread Alban Bedel
From: Weijie Gao According to the AR7242 datasheet section 2.8, AR724X CPUs use a 40MHz input clock as the REF_CLK instead of 5MHz. The correct CPU PLL calculation procedure is as follows: CPU_PLL = (FB * REF_CLK) / REF_DIV / 2. This patch is compatible with the current calculation procedure wi

[PATCH 2/2] MIPS: ath79: Fix the ar913x reference clock rate

2015-11-22 Thread Alban Bedel
The reference clock on ar913x is at 40MHz and not 5MHz. The current implementation use the wrong reference rate because it doesn't take the PLL divider in account. But if we fix the code to use the divider it becomes identical with the implementation for ar724x, so just drop the broken ar913x imple

Re: [PATCH] IIO: adc: at91_adc.c Prefer kmalloc_array over kmalloc with multiply

2015-11-22 Thread Jonathan Cameron
On 16/11/15 00:05, Nizam Haider wrote: > So this patch swaps that use out for kmalloc_array instead. > > Signed-off-by Nizam Haider Applied to the togreg branch of iio.git - initially push out as staging Thanks, Jonathan > --- > drivers/iio/adc/at91_adc.c | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH V4 07/26] coresight: moving PM runtime operations to core framework

2015-11-22 Thread Linus Walleij
On Fri, Nov 13, 2015 at 7:44 PM, Mathieu Poirier wrote: > Moving PM runtime operations in Coresight devices enable() and > disable() API to the framework core when a path is setup. That > way the runtime core doesn't have to be involved everytime a > path is enabled. It also avoids calling runt

Re: [PATCH] nfsd: recover: constify nfsd4_client_tracking_ops structures

2015-11-22 Thread Jeff Layton
On Sun, 22 Nov 2015 08:22:10 +0100 Julia Lawall wrote: > The nfsd4_client_tracking_ops structures are never modified, so declare > them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > > --- > fs/nfsd/netns.h |2 +- > fs/nfsd/nfs4recover.c |6 ++

[PATCH] IB/mlx5: fix null dereference

2015-11-22 Thread Saurabh Sengar
removing null dereference Signed-off-by: Saurabh Sengar --- is there any better way to fix it ? as if there is no 'x' there is no way we can access 'x->lock' drivers/infiniband/hw/mlx5/qp.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infini

Re: [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-22 Thread Vlastimil Babka
On 11.11.2015 14:48, mho...@kernel.org wrote: > mm/page_alloc.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 8034909faad2..d30bce9d7ac8 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -2766,8 +2766,16 @@ _

Re: [PATCH] regulator: of: simplifing the parsing code

2015-11-22 Thread Mark Brown
On Sat, Nov 21, 2015 at 07:41:54PM +0530, Saurabh Sengar wrote: > On 21 November 2015 at 18:52, Mark Brown wrote: > > On Fri, Nov 20, 2015 at 01:27:27PM +0530, Saurabh Sengar wrote: > > No, they can't - the values we set for modes in the DT are defined per > > regulator and we need to translate t

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-22 Thread Marcel Apfelbaum
On 11/08/2015 01:49 PM, Joerg Roedel wrote: On Sun, Nov 08, 2015 at 12:37:47PM +0200, Michael S. Tsirkin wrote: I have no problem with that. For example, can we teach the DMA API on intel x86 to use PT for virtio by default? That would allow merging Andy's patches with full compatibility with ol

Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC

2015-11-22 Thread Mark Brown
On Sat, Nov 21, 2015 at 02:40:50PM -0600, Andrew F. Davis wrote: > On 11/21/2015 07:37 AM, Mark Brown wrote: > >An earlier version of this patch has already been applied, please don't > >resend already applied patches but send incremental patches with any > >changes. > Odd, I didn't seem to get a

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-22 Thread Christoph Hellwig
On Sun, Nov 22, 2015 at 12:36:00PM +0200, Sagi Grimberg wrote: > >> Wouldn't it be a better idea to set the WQ_SYSFS interface and use >> the standard sysfs interface for specifying cpumasks or node affinity? > > I think that bart wants to allow the caller to select cpu affinity > per CQ. In this c

Re: [RESEND PATCH v5 2/3] regulator: s2mps11: add support for S2MPS15 regulators

2015-11-22 Thread Mark Brown
On Fri, Nov 20, 2015 at 04:07:52PM +0530, Alim Akhtar wrote: > From: Thomas Abraham > > The S2MPS15 PMIC is similar in functionality to S2MPS11/14 PMIC. It contains > 27 LDO and 10 Buck regulators and allows programming these regulators via a > I2C interface. This patch adds initial support for L

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-22 Thread Peter Maydell
On 21 November 2015 at 23:21, Arnd Bergmann wrote: > Regarding PJ4, it's still unclear whether that has the same > problem and it only reports idivt when it actually supports idiva, > or whether the lack of idiva support on PJ4 is instead the reason > why the ARM ARM was updated to have separate f

[RFC PATCH v1 0/2] Add basic HDCP function support for dw_hdmi driver

2015-11-22 Thread Yakir Yang
Hi, This series try to add the basic HDCP function support for bridge dw_hdmi driver. Beside this series also resend the patch from Sean Paul that try to introduce a common way for userspace to operate the HDCP function. Userspace could chose to enable/disable the HDCP function throught the new s

[RFC PATCH v1 1/2] drm: Add Content Protection properties to drm

2015-11-22 Thread Yakir Yang
From: Sean Paul Add new standard connector properties to track whether content protection (ex: hdcp) is desired by userspace. There are two properties involved, "Content Protection" and "Content Protection KSV". The "Content Protection" property allows userspace to request protection on a connec

[RFC PATCH v1 2/2] drm: bridgw/dw_hdmi: add basic hdmi hdcp driver

2015-11-22 Thread Yakir Yang
Userspace could set the drm property "Content Protection" to "Desired", and then driver would start to authenticate. If the authentication successed, then the "Content Protection KSV" would be write with the right HDCP KSV KEY, and enable the HDCP encryption. Besides driver export an interface for

Re: [PATCH v4 2/3] ASoC: cygnus: Add Cygnus audio DAI driver

2015-11-22 Thread Mark Brown
On Mon, Nov 09, 2015 at 04:17:43PM -0800, Simran Rai wrote: > +#ifdef CONFIG_PM_SLEEP > +static int cygnus_ssp_suspend(struct snd_soc_dai *cpu_dai) > +{ > + struct cygnus_aio_port *aio = cygnus_dai_get_portinfo(cpu_dai); > + struct cygnus_audio *cygaud = snd_soc_dai_get_drvdata(cpu_dai); >

[PATCH] lightnvm: calculate device values correctly

2015-11-22 Thread Wenwei Tao
In the original calculation, the relationships among block, plane and lun was confusing, refine it on the basis of Open-channelSSDInterfaceSpecification. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/lig

Re: [PATCH v4 2/2] drm/bridge: Add I2C based driver for ps8640 bridge

2015-11-22 Thread kbuild test robot
Hi Jitao, [auto build test ERROR on: drm/drm-next] [also build test ERROR on: v4.4-rc1 next-20151120] url: https://github.com/0day-ci/linux/commits/Jitao-Shi/Documentation-bridge-Add-documentation-for-ps8640-DT-properties/20151122-180613 base: git://people.freedesktop.org/~airlied

Re: [PATCH 4/10] (Was: [PATCH 4/4]) MIPS: bmips: Convert bcm63xx_wdt to use WATCHDOG_CORE

2015-11-22 Thread Simon Arlott
On 22/11/15 02:32, Guenter Roeck wrote: > On 11/21/2015 01:44 PM, Simon Arlott wrote: >> On 21/11/15 21:32, Guenter Roeck wrote: >>> this is really doing a bit too much in a single patch. >>> Conversion to the watchdog infrastructure should probably be >>> the first step, followed by further optimi

[PATCH 4/10] watchdog: bcm63xx_wdt: Handle hardware interrupt and remove software timer

2015-11-22 Thread Simon Arlott
There is a level triggered interrupt for the watchdog timer as part of the bcm63xx_timer device. The interrupt occurs when the hardware watchdog timer reaches 50% of the remaining time. It is not possible to mask the interrupt within the bcm63xx_timer device. To get around this limitation, handle

Re: [PATCH] lightnvm: calculate device values correctly

2015-11-22 Thread Wenwei Tao
I'm a new guy to flash, if I'm wrong about this patch, please correct me. Thanks. 2015-11-22 21:51 GMT+08:00 Wenwei Tao : > In the original calculation, the relationships among > block, plane and lun was confusing, refine it on the > basis of Open-channelSSDInterfaceSpecification. > > Signed-off-b

[PATCH 5/10] watchdog: bcm63xx_wdt: Use WATCHDOG_CORE

2015-11-22 Thread Simon Arlott
Convert bcm63xx_wdt to use WATCHDOG_CORE. The default and maximum time constants that are only used once have been moved to the initialisation of the struct watchdog_device. Signed-off-by: Simon Arlott --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/bcm63xx_wdt.c | 249

[PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-22 Thread Simon Arlott
Instead of using a fixed clock HZ in the driver, obtain it from the "periph" clk that the watchdog timer uses. Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog

[PATCH 7/10] watchdog: bcm63xx_wdt: Add get_timeleft function

2015-11-22 Thread Simon Arlott
Return the remaining time from the hardware control register. Warn when the device is registered if the hardware watchdog is currently running and report the remaining time left. Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 38 +- 1 file c

[PATCH 8/10] watchdog: bcm63xx_wdt: Remove dependency on mach-bcm63xx functions/defines

2015-11-22 Thread Simon Arlott
The bcm_readl() and bcm_writel() functions are only defined for mach-bcm63xx, replace them with __raw_readl() and raw_writel(). The register defines required for the watchdog are in a mach-bcm63xx header file. Move them to include/linux/bcm63xx_wdt.h so that they are also available on other machin

[PATCH 9/10] watchdog: bcm63xx_wdt: Use bcm63xx_timer interrupt directly

2015-11-22 Thread Simon Arlott
There is only one user of bcm63xx_timer and that is the watchdog. To allow the watchdog driver to be used on machine types other than mach-bcm63xx, it needs to use an interrupt instead of a custom register function. Modify bcm63xx_timer to only disable the timers (so that they don't interfere with

[PATCH 10/10] watchdog: bcm63xx_wdt: Use brcm,bcm6345-wdt device tree binding

2015-11-22 Thread Simon Arlott
Add of_match_table for "brcm,bcm6345-wdt". Use a NULL clock name when not on mach-bcm63xx so that the device tree clock name does not have to be "periph". Allow the watchdog to be selected on BMIPS_GENERIC and select the BCM6345 timer interrupt handler. Signed-off-by: Simon Arlott --- drivers/

Use-after-free in ppoll

2015-11-22 Thread Dmitry Vyukov
Hello, On commit f2d10565b9bdbb722bd43e6e1a759eeddb9645c8 (Nov 20). The following program triggers use-after-free: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include void *thread(void *p) { syscall(SYS_write, (long)p, 0x2000278ful,

Re: [PATCH (v2) 2/2] MIPS: bmips: Add bcm6345-l1 interrupt controller

2015-11-22 Thread Simon Arlott
Add the BCM6345 interrupt controller based on the SMP-capable BCM7038 and the BCM3380 but with packed interrupt registers. Add the BCM6345 interrupt controller to a list with the existing BCM7038 so that interrupts on CPU1 are not ignored. Update the maintainers file list for BMIPS to include thi

Re: Use-after-free in ppoll

2015-11-22 Thread Rainer Weikusat
Dmitry Vyukov writes: > Hello, > > On commit f2d10565b9bdbb722bd43e6e1a759eeddb9645c8 (Nov 20). > > The following program triggers use-after-free: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > > void *thread(void *p) > { >

[PATCH (v3) 2/2] mtd: brcmnand: Add support for the BCM63268

2015-11-22 Thread Simon Arlott
The BCM63268 has a NAND interrupt register with combined status and enable registers. It also has a clock for the NAND controller that needs to be enabled. Set up the device by enabling the clock, disabling and acking all interrupts, then handle the CTRL_READY interrupt. Add a "device_remove" fun

[RFC][PATCH v2] Memory allocation watchdog kernel thread.

2015-11-22 Thread Tetsuo Handa
>From ee98a42df32060fd08555dabbc3dd65ce9f1d643 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Sun, 22 Nov 2015 22:36:39 +0900 Subject: [PATCH v2] Memory allocation watchdog kernel thread. This patch adds a kernel thread which periodically reports number of memory allocating tasks, dying tasks

Re: Use-after-free in ppoll

2015-11-22 Thread Dmitry Vyukov
On Sun, Nov 22, 2015 at 3:32 PM, Rainer Weikusat wrote: > Dmitry Vyukov writes: >> Hello, >> >> On commit f2d10565b9bdbb722bd43e6e1a759eeddb9645c8 (Nov 20). >> >> The following program triggers use-after-free: >> >> // autogenerated by syzkaller (http://github.com/google/syzkaller) >> #include >

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-22 Thread Sagi Grimberg
I think that bart wants to allow the caller to select cpu affinity per CQ. In this case ib_alloc_cq in workqueue mode would need to accept a affinity_hint from the caller (default to wild-card WORK_CPU_UNBOUND). Hmm, true. How would be set that hint from userspace? I'd really prefer to see

Re: [PATCH] Fix a memory leak in scsi_host_dev_release()

2015-11-22 Thread Christoph Hellwig
On Fri, Nov 20, 2015 at 09:49:42AM -0800, Bart Van Assche wrote: > On 11/20/2015 03:52 AM, Christoph Hellwig wrote: > >the memory leak looks real, and your fix looks corret, but I still > >don't like it. > > > >I think it's reasonable for SCSI to assume that the final put_device > >fully frees the

Re: [PATCH 2/3] perf tools: Add callchain order support for libunwind DWARF unwinder

2015-11-22 Thread Namhyung Kim
Hello, Sorry for late reply, I missed this in the mailbox.. On Wed, Nov 18, 2015 at 03:26:54PM +0800, Wangnan (F) wrote: > On 2015/11/18 13:41, Namhyung Kim wrote: > >On Wed, Nov 18, 2015 at 12:13:08PM +0800, Wangnan (F) wrote: > >> > >>On 2015/11/17 23:05, Jiri Olsa wrote: > >>>From: Jiri Olsa

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-22 Thread David Woodhouse
On Sun, 2015-11-22 at 15:06 +0200, Marcel Apfelbaum wrote: > > > I tried to generate a DMAR table that excludes some devices from > IOMMU translation, however it does not help. > > The reason is, as far as I understand, that Linux kernel does > not allow any device being outside an IOMMU scope i

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-22 Thread David Woodhouse
On Fri, 2015-11-20 at 10:21 +0200, Michael S. Tsirkin wrote: > > David, there are two things a hypervisor needs to tell the guest. > 1. The actual device is behind an IOMMU. This is what you >    are suggesting we use DMAR for. > 2. Using IOMMU from kernel (as opposed to from userspace with VFIO)

Re: [PATCH 06/14] MIPS: Add support for PIC32MZDA platform

2015-11-22 Thread Joshua Henderson
On 11/21/2015 04:37 AM, Alban wrote: > On Fri, 20 Nov 2015 17:17:18 -0700 > Joshua Henderson wrote: > >> This adds support for the Microchip PIC32 MIPS microcontroller with >> the specific variant PIC32MZDA. PIC32MZDA is based on the MIPS m14KEc >> core and boots using device tree. >> >> This inc

Re: [PATCH] Input: xpad - remove spurious events of wireless xpad 360 controller

2015-11-22 Thread Clément Calmels
On Sun, 1 Nov 2015 21:26:11 +0100 clement.calm...@free.fr wrote: > From: Clement Calmels > > When powering up a wireless xbox 360 controller, some wrong joystick > events are generated. It is annoying because, for example, it makes > unwanted moves in Steam big picture mode's menu. > > When my

dma mapping fixes

2015-11-22 Thread Christoph Hellwig
Hi Andew, below are a couple of fixes for the dma mapping series for architectures now covered by the automatic build bot. Thanks to Dan and Guenter for finding these! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

[PATCH 3/4] c6x: dma mapping fixes

2015-11-22 Thread Christoph Hellwig
Reported-by: Guenter Roeck Signed-off-by: Christoph Hellwig --- arch/c6x/include/asm/dma-mapping.h | 6 ++ arch/c6x/kernel/dma.c | 2 ++ arch/c6x/mm/dma-coherent.c | 10 -- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/c6x/include/asm/dma

[PATCH 1/4] C6X: fix build breakage

2015-11-22 Thread Christoph Hellwig
From: Dan Carpenter There is a missing curly brace so this code doesn't build. Fixes: 84f2f1c6ad15 ('c6x: convert to dma_map_ops') Signed-off-by: Dan Carpenter Signed-off-by: Christoph Hellwig --- arch/c6x/kernel/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/c

[PATCH 2/4] arc: dma mapping fixes

2015-11-22 Thread Christoph Hellwig
Reported-by: Guenter Roeck Signed-off-by: Christoph Hellwig --- arch/arc/mm/dma.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c index da289cb..695029f 100644 --- a/arch/arc/mm/dma.c +++ b/arch/arc/mm/dma.c @@ -46,7 +46,7 @@ stat

[PATCH 4/4] nios2: dma mapping fixes

2015-11-22 Thread Christoph Hellwig
Reported-by: Guenter Roeck Signed-off-by: Christoph Hellwig http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v2] Input: xpad - remove spurious events of wireless xpad 360 controller

2015-11-22 Thread clement . calmels
From: Clement Calmels When powering up a wireless xbox 360 controller, some wrong joystick events are generated. It is annoying because, for example, it makes unwanted moves in Steam big picture mode's menu. When my controller is powering up, this packet is received by the driver: : 00 0

[PATCH V6 1/3] dma: qcom_bam_dma: move to qcom directory

2015-11-22 Thread Sinan Kaya
Creating a QCOM directory for all QCOM DMA source files. Signed-off-by: Sinan Kaya --- drivers/dma/Kconfig| 11 ++- drivers/dma/Makefile | 2 +- drivers/dma/qcom/Kconfig | 9 + drivers/dma/qcom/Makefile

[PATCH V6 0/3] dma: add Qualcomm Technologies HIDMA driver

2015-11-22 Thread Sinan Kaya
been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of common parameters. These parameters are initiali

[PATCH V6 3/3] dma: add Qualcomm Technologies HIDMA channel driver

2015-11-22 Thread Sinan Kaya
This patch adds support for hidma engine. The driver consists of two logical blocks. The DMA engine interface and the low-level interface. The hardware only supports memcpy/memset and this driver only support memcpy interface. HW and driver doesn't support slave interface. Signed-off-by: Sinan Kay

[PATCH V6 2/3] dma: add Qualcomm Technologies HIDMA management driver

2015-11-22 Thread Sinan Kaya
The Qualcomm Technologies HIDMA device has been designed to support virtualization technology. The driver has been divided into two to follow the hardware design. 1. HIDMA Management driver 2. HIDMA Channel driver Each HIDMA HW consists of multiple channels. These channels share some set of commo

[PATCH] gpio: 104-idio-16: Disable IRQ on device probe

2015-11-22 Thread William Breathitt Gray
IRQ should be disabled on device probe so that the device IRQ is in a known starting state. If IRQ is not disabled, interrupts may be reported as handled by the IRQ handler, despite no irq_unmask calls made by the user. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idio-16.c |

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-22 Thread Bart Van Assche
On 11/22/15 06:57, Sagi Grimberg wrote: I think that bart wants to allow the caller to select cpu affinity per CQ. In this case ib_alloc_cq in workqueue mode would need to accept a affinity_hint from the caller (default to wild-card WORK_CPU_UNBOUND). Hmm, true. How would be set that hint from

[PATCH 2/3] staging: most: return proper error

2015-11-22 Thread Sudip Mukherjee
We were returning ENOMEM on all types of errors. Lets return the actual error code. At the same time remove the label which became unused as a result of this patch. Signed-off-by: Sudip Mukherjee --- drivers/staging/most/mostcore/core.c | 22 +++--- 1 file changed, 15 insertions(

[PATCH 3/3] staging: most: fix id leak

2015-11-22 Thread Sudip Mukherjee
If create_most_inst_obj() fails we returned an error pointer but we missed releasing id. Signed-off-by: Sudip Mukherjee --- drivers/staging/most/mostcore/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c index

[PATCH 1/3] staging: most: fix error comparison

2015-11-22 Thread Sudip Mukherjee
device_create() returns ERR_PTR on error, it does not return NULL. Signed-off-by: Sudip Mukherjee --- drivers/staging/most/mostcore/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most/mostcore/core.c index ed1ed2

Re: [PATCH v3 0/3] virtio DMA API core stuff

2015-11-22 Thread Marcel Apfelbaum
On 11/22/2015 05:54 PM, David Woodhouse wrote: On Sun, 2015-11-22 at 15:06 +0200, Marcel Apfelbaum wrote: I tried to generate a DMAR table that excludes some devices from IOMMU translation, however it does not help. The reason is, as far as I understand, that Linux kernel does not allow any d

Re: [PATCH] media, sound: tea575x: constify snd_tea575x_ops structures

2015-11-22 Thread Takashi Iwai
On Sun, 22 Nov 2015 11:32:53 +0100, Julia Lawall wrote: > > The snd_tea575x_ops structures are never modified, so declare them as > const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Reviewed-by: Takashi Iwai Feel free to take via media tree. thanks, Takashi >

Re: [PATCH V6 2/3] dma: add Qualcomm Technologies HIDMA management driver

2015-11-22 Thread Andy Shevchenko
On Sun, Nov 22, 2015 at 6:37 PM, Sinan Kaya wrote: > The Qualcomm Technologies HIDMA device has been designed > to support virtualization technology. The driver has been > divided into two to follow the hardware design. > > 1. HIDMA Management driver > 2. HIDMA Channel driver > > Each HIDMA HW con

Re: [PATCH v2 06/27] brcm80211: move under broadcom vendor directory

2015-11-22 Thread Kalle Valo
Arend van Spriel writes: > On 11/19/2015 08:48 AM, Kalle Valo wrote: >> Hauke Mehrtens writes: >> >>> On 11/18/2015 03:45 PM, Kalle Valo wrote: Part of reorganising wireless drivers directory and Kconfig. Note that I had to edit Makefiles from subdirectories to use the new locati

Re: [PATCH v2 00/27] wireless drivers vendor directories

2015-11-22 Thread Kalle Valo
Kalle Valo writes: > Hi, > > I started to reorganise drivers/net/wireless directory and follow what > drivers/net/ethernet has. The major change is that new vendor > directories are created and most of the drivers are now under those > vendor directories: > > admtek/ > ath/ > atmel/ > broadcom/ >

  1   2   3   >