Re: [PATCH] usbnet: Fix two races between usbnet_stop() and the BH

2015-08-18 Thread David Miller
From: Eugene Shatokhin Date: Fri, 14 Aug 2015 19:58:36 +0300 > 2. The second race is on dev->flags. > > dev->flags is set to 0 here: > *0 usbnet_stop (usbnet.c:816) > /* deferred work (task, timer, softirq) must also stop. > * can't flush_scheduled_work() until we drop rtnl (later), >

Re: [PATCH v3 1/3] gadget: Support for the usb charger framework

2015-08-18 Thread Baolin Wang
On 19 August 2015 at 00:04, Greg KH wrote: > On Tue, Aug 18, 2015 at 07:14:19PM +0800, Baolin Wang wrote: >> The usb charger framework is based on usb gadget, and each usb gadget >> can be one usb charger to set the current limitation. >> >> This patch adds a notifier mechanism for usb charger to

Re: [PATCH v4 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-08-18 Thread Ley Foon Tan
On Wed, Aug 19, 2015 at 3:22 AM, Dinh Nguyen wrote: > On Mon, Aug 17, 2015 at 4:09 AM, Ley Foon Tan wrote: >> This patch adds the bindings for Altera PCIe host controller driver and >> Altera PCIe MSI driver. >> >> Signed-off-by: Ley Foon Tan >> --- >> .../devicetree/bindings/pci/altera-pcie-ms

Re: [PATCH v4 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-18 Thread Ley Foon Tan
On Wed, Aug 19, 2015 at 3:11 AM, Dinh Nguyen wrote: > > On Mon, Aug 17, 2015 at 4:09 AM, Ley Foon Tan wrote: > > This patch adds the Altera PCIe host controller driver. > > > > Signed-off-by: Ley Foon Tan > > --- > > drivers/pci/host/Kconfig | 7 + > > drivers/pci/host/Makefile |

Re: [PATCH v2 3/3] power: wm831x_power: Support USB charger current limit management

2015-08-18 Thread Peter Chen
On Tue, Aug 18, 2015 at 09:12:00AM -0700, Mark Brown wrote: > On Tue, Aug 18, 2015 at 01:20:12PM +0800, Peter Chen wrote: > > > ok, I just had suspected below function's correctness, after looking > > it again, it always set 1800 as charging limit, does it be expected? > > > + /* Find the h

Re: [PATCH] mtd: pxa3xx_nand: add a default chunk size

2015-08-18 Thread Brian Norris
On Tue, Aug 18, 2015 at 10:59:10AM +0200, Antoine Tenart wrote: > When keeping the configuration set by the bootloader (by using > the marvell,nand-keep-config property), the pxa3xx_nand_detect_config() > function is called and set the chunk size to 512 as a default value if > NDCR_PAGE_SZ is not s

[PATCH] staging/lustre/o2iblnd: remove references to ib_reg_phsy_mr()

2015-08-18 Thread green
From: Oleg Drokin Removed references to ib_reg_phsy_mr() and PMR which was added to deal with some Chelsio specific scenario, but no longer needed now. Signed-off-by: Amir Shehata Signed-off-by: Oleg Drokin --- This fixes a build failure in Lustre due to ib_reg_phys_mr being removed. .../sta

Re: [PATCH] mtd: fix null pointer deference when kzalloc returns null

2015-08-18 Thread Brian Norris
On Fri, Jul 17, 2015 at 11:37:52AM +0100, Colin King wrote: > From: Colin Ian King > > static analysis by smatch caught the following error: > > drivers/mtd/maps/physmap_of.c:135 of_get_probes() >error: potential null dereference 'res'. (kzalloc returns null) > > Check for failed kzalloc a

Re: [05/27] macintosh: therm_windtunnel: Export I2C module alias information

2015-08-18 Thread Michael Ellerman
On Tue, 2015-08-18 at 12:35 +0200, Javier Martinez Canillas wrote: > Hello Michael, > > On 08/18/2015 12:24 PM, Michael Ellerman wrote: > > On Thu, 2015-30-07 at 16:18:30 UTC, Javier Martinez Canillas wrote: > >> The I2C core always reports the MODALIAS uevent as "i2c: >> regardless if the driver

Re: [PATCH] mtd: nand: pxa3xx-nand: fix random command timeouts

2015-08-18 Thread Brian Norris
Hi Robert, On Mon, Aug 17, 2015 at 09:15:48PM +0200, Robert Jarzmik wrote: > Ezequiel Garcia writes: > > So unless I'm completely off, the current patch is right, and a comment > > would be helpful. > Ok Ezequiel, I'll wait for your Tested-by, and respin with something like : > > /* Clear

Re: [PATCH] mtd: nettel: do not ignore mtd_device_register() failure in nettel_init()

2015-08-18 Thread Brian Norris
On Fri, Aug 14, 2015 at 01:37:47AM +0300, Alexey Khoroshilov wrote: > If mtd_device_register() fails in nettel_init(), iomap left mapped. > > The patch adds failure handling for mtd_device_register(). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Kh

Re: [PATCH] mtd: denali: Use module_pci_driver

2015-08-18 Thread Brian Norris
On Tue, Jul 07, 2015 at 12:53:45PM +0530, Vaishali Thakkar wrote: > Use module_pci_driver for drivers whose init and exit functions > only register and unregister, respectively. > > A simplified version of the Coccinelle semantic patch that performs > this transformation is as follows: > > @a@ >

Re: [PATCH] x86/entry/64: Context-track syscalls before enabling interrupts

2015-08-18 Thread Andy Lutomirski
On Tue, Aug 18, 2015 at 12:11 PM, Andy Lutomirski wrote: > This fixes a couple minor holes if we took an IRQ very early in syscall > processing: > The patch is buggy. v2 coming soon, hopefully. --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a me

Re: [PATCH] mtd: denali: Use module_pci_driver()

2015-08-18 Thread Brian Norris
On Tue, Jul 07, 2015 at 10:54:03PM -0700, Rajat Jain wrote: > Use module_pci_driver, since init and exit functions only register > and unregister the pci driver, respectively. > > Signed-off-by: Rajat Jain > Signed-off-by: Rajat Jain I pushed an identical patch to l2-mtd.git from another author

Re: [PATCH 03/13] twl4030_charger: correctly handle -EPROBE_DEFER from devm_usb_get_phy_by_node

2015-08-18 Thread NeilBrown
On Tue, 18 Aug 2015 01:07:58 -0700 Tony Lindgren wrote: > * NeilBrown [150729 17:29]: > > Now that twl4030_bci_probe can safely return -EPROBE_DEFER, > > do so when devm_usb_get_phy_by_node returns that error. > > > > Signed-off-by: NeilBrown > > --- > > drivers/power/twl4030_charger.c |6

Re: [PATCH v2] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-08-18 Thread John Youn
On 8/18/2015 2:41 AM, Yunzhi Li wrote: > We initiate dwc2 usb controller in BIOS, dwc2_core_reset() should > be called before dwc2_get_hwparams() to reset core registers to > default value. Without this the FIFO setting might be incorrect > because calculating FIFO size need power-on value of > GRX

Re: linux-next: build failure after merge of the nfs tree

2015-08-18 Thread Drokin, Oleg
Hello! On Aug 18, 2015, at 8:05 PM, Stephen Rothwell wrote: > Hi Trond, > > On Tue, 18 Aug 2015 10:56:34 +1000 Stephen Rothwell > wrote: >> >> After merging the nfs tree, today's linux-next build (x86_64 allmodconfig) >> failed like this: >> >> drivers/staging/lustre/lnet/klnds/o2iblnd/o2ibl

Re: linux-next: build failure after merge of the nfs tree

2015-08-18 Thread Stephen Rothwell
Hi Trond, On Tue, 18 Aug 2015 10:56:34 +1000 Stephen Rothwell wrote: > > After merging the nfs tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c: In function > 'kiblnd_pmr_pool_map': > drivers/staging/lustre/lnet/kl

Re: [GIT PULL for v4.2] media fixes

2015-08-18 Thread Linus Torvalds
On Tue, Aug 18, 2015 at 1:18 PM, Mauro Carvalho Chehab wrote: > > - Revert the IR encode patches, as the API is not mature enough. > So, better to postpone the changes to a latter Kernel; What the hell have you done with the commit messages? The first line is completely corrupt

[PATCHv4 net-next 01/10] openvswitch: Serialize acts with original netlink len

2015-08-18 Thread Joe Stringer
Previously, we used the kernel-internal netlink actions length to calculate the size of messages to serialize back to userspace. However,the sw_flow_actions may not be formatted exactly the same as the actions on the wire, so store the original actions length when de-serializing and re-use the orig

[PATCHv4 net-next 07/10] netfilter: Always export nf_connlabels_replace()

2015-08-18 Thread Joe Stringer
The following patches will reuse this code from OVS. Signed-off-by: Joe Stringer --- v2-v4: No change. --- net/netfilter/nf_conntrack_labels.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/netfilter/nf_conntrack_labels.c b/net/netfilter/nf_conntrack_labels.c index bb53f12..daa7c13 10

[PATCHv4 net-next 08/10] netfilter: connlabels: Export setting connlabel length

2015-08-18 Thread Joe Stringer
Add functions to change connlabel length into nf_conntrack_labels.c so they may be reused by other modules like OVS and nftables without needing to jump through xt_match_check() hoops. Suggested-by: Florian Westphal Signed-off-by: Joe Stringer Acked-by: Florian Westphal --- v2: Protect connlabe

[GIT PULL] Last minute fixes on Thermal-SoC for v4.2-rc8

2015-08-18 Thread Eduardo Valentin
Hello Linus, I have these last minute fixes on the thermal-soc tree. It has gone through linux-next. There is a fix of a long lasting bug in cpu cooling device, thanks for RMK for being pushing this. So, if there is still time, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/e

[PATCHv4 net-next 09/10] openvswitch: Allow matching on conntrack label

2015-08-18 Thread Joe Stringer
Allow matching and setting the conntrack label field. As with ct_mark, this is populated by executing the CT action, and is a writable field. Specifying a label and optional mask allows the label to be modified, which takes effect on the entry found by the lookup of the CT action. E.g.: actions:ct

Re: [PATCH v2] devpts: allow mounting with uid/gid of uint32_t

2015-08-18 Thread Andrew Morton
On Tue, 18 Aug 2015 17:18:19 +0200 Dongsu Park wrote: > To allow devpts to be mounted with options of uid/gid of uint32_t, > use kstrtouint() instead of match_int(). Doing that, mounting devpts > with uid or gid > (2^31 - 1) will work as expected, e.g.: > > # mount -t devpts devpts /tmp/devptsd

[PATCHv4 net-next 10/10] openvswitch: Allow attaching helpers to ct action

2015-08-18 Thread Joe Stringer
Add support for using conntrack helpers to assist protocol detection. The new OVS_CT_ATTR_HELPER attribute of the ct action specifies a helper to be used for this connection. Example ODP flows allowing FTP connections from ports 1->2: in_port=1,tcp,action=ct(helper=ftp,commit),2 in_port=2,tcp,ct_s

[PATCHv4 net-next 05/10] openvswitch: Add conntrack action

2015-08-18 Thread Joe Stringer
Expose the kernel connection tracker via OVS. Userspace components can make use of the "ct()" action, followed by "recirculate", to populate the conntracking state in the OVS flow key, and subsequently match on that state. Example ODP flows allowing traffic from 1->2, only replies from 2->1: in_po

[PATCHv4 net-next 06/10] openvswitch: Allow matching on conntrack mark

2015-08-18 Thread Joe Stringer
Allow matching and setting the conntrack mark field. As with conntrack state and zone, these are populated when the CT action is executed, and are made available for matching via RECIRC. To write to this field, a value and optional mark can be passed as part of the conntrack action. E.g.: actions:

[PATCHv4 net-next 03/10] ipv6: Export nf_ct_frag6_gather()

2015-08-18 Thread Joe Stringer
Signed-off-by: Joe Stringer Acked-by: Thomas Graf Acked-by: Pravin B Shelar --- v4: Add ack. --- net/ipv6/netfilter/nf_conntrack_reasm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index 6d02498..701cd2b

[PATCHv4 net-next 04/10] dst: Add __skb_dst_copy() variation

2015-08-18 Thread Joe Stringer
This variation on skb_dst_copy() doesn't require two skbs. Signed-off-by: Joe Stringer Acked-by: Pravin B Shelar --- v4: Add ack. --- include/net/dst.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/net/dst.h b/include/net/dst.h index 2578811..0539940 10064

Re: [PATCH v2 1/3] sched: sync a se with its cfs_rq when attaching and dettaching

2015-08-18 Thread Byungchul Park
On Wed, Aug 19, 2015 at 12:32:43AM +0800, T. Zhou wrote: > Hi, > > On Mon, Aug 17, 2015 at 04:45:50PM +0900, byungchul.p...@lge.com wrote: > > From: Byungchul Park > > > > current code is wrong with cfs_rq's avg loads when changing a task's > > cfs_rq to another. i tested with "echo pid > cgroup

[PATCHv4 net-next 02/10] openvswitch: Move MASKED* macros to datapath.h

2015-08-18 Thread Joe Stringer
This will allow the ovs-conntrack code to reuse these macros. Signed-off-by: Joe Stringer Acked-by: Thomas Graf Acked-by: Pravin B Shelar --- v4: Add ack. --- net/openvswitch/actions.c | 52 ++ net/openvswitch/datapath.h | 4 2 files changed,

[PATCHv4 net-next 00/10] OVS conntrack support

2015-08-18 Thread Joe Stringer
The goal of this series is to allow OVS to send packets through the Linux kernel connection tracker, and subsequently match on fields populated by conntrack. This version addresses the feedback from v3, primarily shifting the masked set of connmark and connlabel to nest under the conntrack action.

Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy

2015-08-18 Thread Kamezawa Hiroyuki
On 2015/08/19 5:31, Tejun Heo wrote: Hello, Paul. On Mon, Aug 17, 2015 at 09:03:30PM -0700, Paul Turner wrote: 2) Control within an address-space. For subsystems with fungible resources, e.g. CPU, it can be useful for an address space to partition its own threads. Losing the capability to do

Re: [PATCH v2 6/8] ARCv2: perf: implement exclusion of event counting in user or kernel mode

2015-08-18 Thread Peter Zijlstra
On Wed, Aug 05, 2015 at 06:13:32PM +0300, Alexey Brodkin wrote: > + hwc->config = 0; > + > + if (is_isa_arcv2()) { > + /* "exclude user" means "count only kernel" */ > + if (event->attr.exclude_user) > + hwc->config |= ARC_REG_PCT_CONFIG_KERN; > +

Re: [PATCH 2/2] ARM: dts: rockchip: correct regulator PM properties

2015-08-18 Thread Brian Norris
On Tue, Aug 18, 2015 at 03:48:31PM -0700, Brian Norris wrote: > On Tue, Aug 18, 2015 at 09:17:06PM +0200, Heiko Stuebner wrote: > > Am Dienstag, 18. August 2015, 11:44:15 schrieb Brian Norris: > > > This DTS file was submitted with non-upstream bindings. I happened > > > across this while reviewing

Re: linux-next: Tree for Aug 17 (staging/hfi1)

2015-08-18 Thread Stephen Rothwell
Hi Mike, On Tue, 18 Aug 2015 14:24:32 + "Marciniszyn, Mike" wrote: > > > A: these and other similar errors: > > > > In file included from ../drivers/staging/hfi1/chip.c:61:0: > > ../drivers/staging/hfi1/chip.c: In function ‘__hfi1_trace_LINKVERB’: > > ../drivers/staging/hfi1/trace.h:13

[PATCH] perf, tools, stat: Quieten failed to read counter message

2015-08-18 Thread Andi Kleen
From: Andi Kleen Since 3b3eb0445 running perf stat on a system without backend-stalled-cycles spits out ugly warnings by default. Since that is quite common, make the message a debug message only. We know anyways that the counter wasn't read by the normal output. Signed-off-by: Andi Kleen ---

Re: [PATCH] x86/entry/64: Context-track syscalls before enabling interrupts

2015-08-18 Thread Andy Lutomirski
On Tue, Aug 18, 2015 at 4:02 PM, Frederic Weisbecker wrote: > On Tue, Aug 18, 2015 at 03:35:30PM -0700, Andy Lutomirski wrote: >> On Tue, Aug 18, 2015 at 3:16 PM, Frederic Weisbecker >> wrote: >> > On Tue, Aug 18, 2015 at 12:11:59PM -0700, Andy Lutomirski wrote: >> >> This fixes a couple minor h

Re: [PATCH v2] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-08-18 Thread Doug Anderson
lyz, On Tue, Aug 18, 2015 at 2:40 AM, Yunzhi Li wrote: > We initiate dwc2 usb controller in BIOS, dwc2_core_reset() should > be called before dwc2_get_hwparams() to reset core registers to > default value. Without this the FIFO setting might be incorrect > because calculating FIFO size need power

Re: [PATCH] x86/entry/64: Context-track syscalls before enabling interrupts

2015-08-18 Thread Frederic Weisbecker
On Tue, Aug 18, 2015 at 03:35:30PM -0700, Andy Lutomirski wrote: > On Tue, Aug 18, 2015 at 3:16 PM, Frederic Weisbecker > wrote: > > On Tue, Aug 18, 2015 at 12:11:59PM -0700, Andy Lutomirski wrote: > >> This fixes a couple minor holes if we took an IRQ very early in syscall > >> processing: > >>

Re: [PATCH 1/2] ARM: dts: rockchip: add veyron-jaq board

2015-08-18 Thread Brian Norris
Thanks for the quick review. On Tue, Aug 18, 2015 at 09:19:05PM +0200, Heiko Stuebner wrote: > Am Dienstag, 18. August 2015, 11:44:14 schrieb Brian Norris: > > a.k.a. Haier Chromebook 11 > > > > Signed-off-by: Brian Norris > > Cc: Alexandru M Stan > > Cc: Douglas Anderson > > --- > > arch/arm

Re: [PATCH] mm: mmap: Simplify the failure return working flow

2015-08-18 Thread Andrew Morton
On Wed, 19 Aug 2015 06:27:58 +0800 Chen Gang wrote: > From: Chen Gang As sent, this patch is From:you@hotmail and Signed-off-by:you@gmail. This is peculiar. I'm assuming that it should have been From:you@gmail and I have made that change to my copy of the patch. You can do this yourself by

Re: [PATCH 2/2] ARM: dts: rockchip: correct regulator PM properties

2015-08-18 Thread Brian Norris
On Tue, Aug 18, 2015 at 09:17:06PM +0200, Heiko Stuebner wrote: > Am Dienstag, 18. August 2015, 11:44:15 schrieb Brian Norris: > > This DTS file was submitted with non-upstream bindings. I happened > > across this while reviewing the jaq DTS. > > > > Signed-off-by: Brian Norris > > Cc: Alexandru

Re: [regression] x86/signal/64: Fix SS handling for signals delivered to 64-bit programs breaks dosemu

2015-08-18 Thread Andy Lutomirski
On Mon, Aug 17, 2015 at 11:19 PM, Stas Sergeev wrote: > 14.08.2015 04:37, Andy Lutomirski пишет: > >> On Thu, Aug 13, 2015 at 6:32 PM, Stas Sergeev wrote: >>> >>> 14.08.2015 04:21, Andy Lutomirski пишет: >>> On Thu, Aug 13, 2015 at 5:50 PM, Stas Sergeev wrote: > > 14.08.2015 03:27,

Re: [RFT PATCH] ia64: zx1_defconfig: convert to use libata PATA drivers

2015-08-18 Thread Émeric MASCHINO
2015-08-17 22:41 GMT+02:00 Luck, Tony : > > Do you have PATA drives? My zx6000 just has SCSI: Yes Sir, the internal DVD drive (TEAC DV-28E-B [1]): emeric@longspeak ~ $ dmesg | grep ATA [0.947229] ata1: PATA max UDMA/100 cmd 0xd58 ctl 0xd64 bmdma 0xd40 irq 54 [1.103782] ata1.00: ATAPI: DV

Re: [PATCH] staging: lustre: whitespace fixes

2015-08-18 Thread Greg Kroah-Hartman
On Tue, Aug 18, 2015 at 11:04:26PM +0300, Mike Rapoport wrote: > Signed-off-by: Mike Rapoport You didn't provide a changelog entry explaining exactly what you did, and why you did it, so I can't apply this :( -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

Re: [PATCH] dmaengine: vdma: Add 64 bit addressing support to the driver

2015-08-18 Thread Laurent Pinchart
Hi Anurag, Thank you for the patch. On Wednesday 05 August 2015 17:17:37 Anurag Kumar Vulisha wrote: > This patch adds the 64 bit addressing support to the vdma driver. > > Signed-off-by: Anurag Kumar Vulisha > --- > drivers/dma/Kconfig |2 +- > drivers/dma/xilinx/xilinx_vdma.

Re: [regression] x86/signal/64: Fix SS handling for signals delivered to 64-bit programs breaks dosemu

2015-08-18 Thread Andy Lutomirski
On Mon, Aug 17, 2015 at 11:29 PM, Stas Sergeev wrote: > 13.08.2015 20:00, Brian Gerst пишет: > >> On Thu, Aug 13, 2015 at 11:43 AM, Andy Lutomirski >> wrote: >>> >>> On Thu, Aug 13, 2015 at 8:37 AM, Linus Torvalds >>> wrote: On Tue, Aug 11, 2015 at 5:17 PM, Stas Sergeev wrote: > >

Re: [tip:x86/asm] x86/asm/entry/64: Migrate error and IRQ exit work to C and remove old assembly code

2015-08-18 Thread Andy Lutomirski
On Tue, Aug 18, 2015 at 3:34 PM, Frederic Weisbecker wrote: > On Wed, Aug 12, 2015 at 07:59:44AM -0700, Andy Lutomirski wrote: >> On Wed, Aug 12, 2015 at 6:32 AM, Frederic Weisbecker >> wrote: >> > Right, and doing it the way we did previously was safe wrt. that. >> > >> > Can't we have exceptio

Re: [PATCH v3 20/51] PCI: Skip must+optional if there is no optional addon

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 4:56 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:38PM -0700, Yinghai Lu wrote: >> If the bridge does not support hotplug or no child with sriov support >> we could get out early and don't try must+optional allocation. > > You mention non-hotplug bridges and non

Re: [PATCH 1/2] zpool: define and use max type length

2015-08-18 Thread Andrew Morton
On Tue, 18 Aug 2015 16:06:00 -0400 Dan Streetman wrote: > Add ZPOOL_MAX_TYPE_NAME define, and change zpool_driver *type field to > type[ZPOOL_MAX_TYPE_NAME]. Remove redundant type field from struct zpool > and use zpool->driver->type instead. > > The define will be used by zswap for its zpool p

Re: [PATCH] x86/entry/64: Context-track syscalls before enabling interrupts

2015-08-18 Thread Andy Lutomirski
On Tue, Aug 18, 2015 at 3:16 PM, Frederic Weisbecker wrote: > On Tue, Aug 18, 2015 at 12:11:59PM -0700, Andy Lutomirski wrote: >> This fixes a couple minor holes if we took an IRQ very early in syscall >> processing: >> >> - We could enter the IRQ with CONTEXT_USER. Everything worked (RCU >>

Re: [tip:x86/asm] x86/asm/entry/64: Migrate error and IRQ exit work to C and remove old assembly code

2015-08-18 Thread Frederic Weisbecker
On Wed, Aug 12, 2015 at 07:59:44AM -0700, Andy Lutomirski wrote: > On Wed, Aug 12, 2015 at 6:32 AM, Frederic Weisbecker > wrote: > > Right, and doing it the way we did previously was safe wrt. that. > > > > Can't we have exceptions slow path just like the way we do it in syscalls? > > > > Then th

Re: [PATCH] ARM: multi_v7_defconfig: Enable CROS_EC_PROTO for ChromeOS EC mfd driver

2015-08-18 Thread Javier Martinez Canillas
Hello Olof, On 08/18/2015 11:46 PM, Olof Johansson wrote: > On Tue, Aug 18, 2015 at 09:10:27AM +0200, Javier Martinez Canillas wrote: >> The ChromeOS mfd driver (MFD_CROS_EC) select the CROS_EC_PROTO config >> symbol because the driver uses some communication helper functions in >> drivers/platfor

Re: [PATCH] lpfc: Fix possible use-after-free and double free in lpfc_mbx_cmpl_rdp_page_a2()

2015-08-18 Thread Sebastian Herbszt
Johannes Thumshirn wrote: > Sebastian Herbszt writes: > > > Johannes Thumshirn wrote: > >> If the bf_get() call in lpfc_mbx_cmpl_rdp_page_a2() does succeeds, > >> execution > >> continues normally and mp gets kfree()d. > >> > >> If the subsequent call to lpfc_sli_issue_mbox() fails execution ju

[PATCH] ARM: qcom: add memory node to IPQ806x/AP148

2015-08-18 Thread Mathieu Olivari
On recent bootloaders, the bootloader patches the DT blob with memory information. However, with old bootloader, this operation doesn't happen, which leads the board to freeze in the early init code. This patch adds the memory node to the AP148 dts explicitly to cover all boot cases. Signed-off-b

[PATCH] mm: mmap: Simplify the failure return working flow

2015-08-18 Thread Chen Gang
__split_vma() doesn't need out_err label, neither need initializing err. copy_vma() can return NULL directly when kmem_cache_alloc() fails. Signed-off-by: Chen Gang --- mm/mmap.c | 39 +++ 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/mm/mma

[PATCH] ARM: qcom: Disable i2c device on gsbi4 for ipq806x

2015-08-18 Thread Mathieu Olivari
Disable the i2c device on gsbi4 and mark gsbi4_h and gsbi4_qup clks as unused. If they are enabled, clock framework will turn them off at end of probe. On ipq806x by design gsbi4_qup, gsbi4_h clks and i2c on gsbi4 are meant for RPM usage. So turning them off in kernel is incorrect. Signed-off-by:

Re: [PATCH] x86/entry/64: Context-track syscalls before enabling interrupts

2015-08-18 Thread Frederic Weisbecker
On Tue, Aug 18, 2015 at 12:11:59PM -0700, Andy Lutomirski wrote: > This fixes a couple minor holes if we took an IRQ very early in syscall > processing: > > - We could enter the IRQ with CONTEXT_USER. Everything worked (RCU >was fine), but we could warn if all the debugging options were >

[PATCH] regulator: Introduce property to flag set-load support

2015-08-18 Thread Bjorn Andersson
Introduce "regulator-allow-set-load" property to make it possible to flag in the board configuration that a regulator is allowed to have the load requirements changed. Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/regulator/regulator.txt | 1 + drivers/regulator/of_regulat

Re: [PATCH v2 4/8] ARCv2: perf: Support sampling events using overflow interrupts

2015-08-18 Thread Peter Zijlstra
On Wed, Aug 05, 2015 at 06:13:30PM +0300, Alexey Brodkin wrote: > @@ -319,6 +336,20 @@ static int arc_pmu_add(struct perf_event *event, int > flags) > } > > write_aux_reg(ARC_REG_PCT_INDEX, idx); > + > + arc_pmu->act_counter[idx] = event; > + > + if (is_sampling_event(event))

[PATCH 1/2] ARM: qcom: add uart labels to IPQ806x dts

2015-08-18 Thread Mathieu Olivari
We want to use references to UART devices from the board specific dts files, so we'll label them according to their gsbi number. Signed-off-by: Mathieu Olivari --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/boo

[PATCH 0/2] ARM: qcom: enable console output on IPQ806x

2015-08-18 Thread Mathieu Olivari
This change set adds uart nodes in ipq806x dtsi and add the chosen node in AP148 dts file to use it as a console. Mathieu Olivari (2): ARM: qcom: add uart labels to IPQ806x dts ARCH: qcom: enable uart output by default on AP148 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 8 arch/arm

[PATCH 2/2] ARM: qcom: enable uart output by default on AP148

2015-08-18 Thread Mathieu Olivari
This change adds a new chosen node to boot using UART console on AP148 Signed-off-by: Mathieu Olivari --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts inde

Re: [PATCH v3 13/51] PCI: Separate realloc list checking after allocation

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 4:54 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:31PM -0700, Yinghai Lu wrote: >> We check the realloc list, as list must be empty after allocation. >> >> Separate the realloc list checking to another function. >> >> Add checking that is missed in acpiphp drive

Re: [PATCH block/for-linus] writeback: fix syncing of I_DIRTY_TIME inodes

2015-08-18 Thread Dave Chinner
On Tue, Aug 18, 2015 at 12:54:39PM -0700, Tejun Heo wrote: > Hello, > > On Tue, Aug 18, 2015 at 10:47:18AM -0700, Tejun Heo wrote: > > Hmm... the only possibility I can think of is tot_write_bandwidth > > being zero when it shouldn't be. I've been staring at the code for a > > while now but nothi

[PATCH v2 5/7] drm/vc4: Allow vblank to be disabled

2015-08-18 Thread Eric Anholt
From: Derek Foreman Signed-off-by: Derek Foreman Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_kms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_kms.c b/drivers/gpu/drm/vc4/vc4_kms.c index a34439f..f881cd4 100644 --- a/drivers/gpu/drm/vc4/vc4_kms.c ++

[PATCH v2 6/7] ARM: bcm2835: Add the DDC I2C controller to the device tree.

2015-08-18 Thread Eric Anholt
We need to use it for getting video modes over HDMI. Signed-off-by: Eric Anholt --- v2: Mark it as disabled by default, and enable it in bcm2835-rpi. arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 arch/arm/boot/dts/bcm2835.dtsi | 10 ++ 2 files changed, 14 insertions(+) diff --git

[PATCH v2 7/7] ARM: bcm2835: Add VC4 to the device tree.

2015-08-18 Thread Eric Anholt
VC4 is the GPU (display and 3D) present on the 2835. Signed-off-by: Eric Anholt --- v2: Sort by register address, mark HDMI as disabled by default in the SoC file and enable it from -rpi. arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 arch/arm/boot/dts/bcm2835.dtsi | 44

[PATCH v2 1/7] drm/vc4: Add devicetree bindings for VC4.

2015-08-18 Thread Eric Anholt
VC4 is the GPU (display and 3D) subsystem present on the 2835 and some other Broadcom SoCs. This binding follows the model of msm, imx, sti, and others, where there is a subsystem node for the whole GPU, with nodes for the individual HW components within it. Signed-off-by: Eric Anholt --- v2: E

[PATCH v2 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-18 Thread Eric Anholt
This is the start of a full VC4 driver. Right now this just supports configuring the display using a pre-existing video mode (because changing the pixel clock isn't available yet, and doesn't work when it is). However, this is enough for fbcon and bringing up X using xf86-video-modesetting. Sign

[PATCH v2 2/7] MAINTAINERS: Add myself for the new VC4 (RPi GPU) graphics driver.

2015-08-18 Thread Eric Anholt
Signed-off-by: Eric Anholt --- v2: Mark it Supported, not Maintained. MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9c9dd5f..5292087 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3592,6 +3592,12 @@ S: Maintained F: drivers/gpu/

[PATCH v2 4/7] drm/vc4: Use the fbdev_cma helpers

2015-08-18 Thread Eric Anholt
From: Derek Foreman Keep the fbdev_cma pointer around so we can use it on hotplog and close to ensure the frame buffer console is in a useful state. Signed-off-by: Derek Foreman Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_drv.c | 14 ++ drivers/gpu/drm/vc4/vc4_drv.h |

Raspberry Pi KMS-only driver V2

2015-08-18 Thread Eric Anholt
Here's a respin of the RPi KMS series, taking a bunch of review feedback into account. It's also rebased on danvet's drm-misc now, which cut some stub code. The new series can still be found at: https://github.com/anholt/linux/tree/vc4-kms-squash -- To unsubscribe from this list: send the line

Re: [GIT PULL] at91: defconfig for 4.3 #2

2015-08-18 Thread Olof Johansson
Hi Stephen, On Fri, Aug 14, 2015 at 1:22 AM, Stephen Rothwell wrote: > Hi Olof, > > On Thu, 13 Aug 2015 14:26:43 +0200 Olof Johansson wrote: >> >> On Thu, Aug 13, 2015 at 01:21:18PM +0200, Alexandre Belloni wrote: >> > On 13/08/2015 at 12:09:38 +0200, Olof Johansson wrote : >> > > On Fri, Aug 07

Re: [PATCH 2/2] ARM64: dts: vexpress: Use assigned-clock-parents for sp810

2015-08-18 Thread Olof Johansson
On Tue, Aug 11, 2015 at 06:36:51PM -0700, Stephen Boyd wrote: > The sp810 clk driver is calling the clk consumer APIs from > clk_prepare ops to change the parent to a 1 MHz fixed rate clock > for each of the clocks that the driver provides. Use > assigned-clock-parents for this instead of doing it

Re: [PATCH] ARM: multi_v7_defconfig: Enable CROS_EC_PROTO for ChromeOS EC mfd driver

2015-08-18 Thread Olof Johansson
On Tue, Aug 18, 2015 at 09:10:27AM +0200, Javier Martinez Canillas wrote: > The ChromeOS mfd driver (MFD_CROS_EC) select the CROS_EC_PROTO config > symbol because the driver uses some communication helper functions in > drivers/platform/chrome/cros_ec_proto.c but other drivers depends on > CROS_EC_

Re: [PATCH 1/2] ARM: dts: vexpress: Use assigned-clock-parents for sp810

2015-08-18 Thread Olof Johansson
On Tue, Aug 11, 2015 at 06:36:50PM -0700, Stephen Boyd wrote: > The sp810 clk driver is calling the clk consumer APIs from > clk_prepare ops to change the parent to a 1 MHz fixed rate clock > for each of the clocks that the driver provides. Use > assigned-clock-parents for this instead of doing it

Re: [PATCH v3 09/51] PCI: Rename pdev_sort_resources to pdev_check_resources

2015-08-18 Thread Yinghai Lu
On Tue, Aug 18, 2015 at 2:36 PM, Yinghai Lu wrote: > On Mon, Aug 17, 2015 at 4:53 PM, Bjorn Helgaas wrote: >> On Mon, Jul 27, 2015 at 04:29:27PM -0700, Yinghai Lu wrote: >>> We don't do sorting in those functions anymore, so change "sort" to "check" >>> instead. >> >> What *do* we do in those fun

Re: Why is SECTOR_SIZE = 512 inside kernel ?

2015-08-18 Thread tytso
On Tue, Aug 18, 2015 at 11:06:47PM +0200, Brice Goglin wrote: > Le 17/08/2015 15:54, Theodore Ts'o a écrit : > > > > It's cast in stone. There are too many places all over the kernel, > > especially in a huge number of file systems, which assume that the > > sector size is 512 bytes. So above th

Re: [PATCH v3 09/51] PCI: Rename pdev_sort_resources to pdev_check_resources

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 4:53 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:27PM -0700, Yinghai Lu wrote: >> We don't do sorting in those functions anymore, so change "sort" to "check" >> instead. > > What *do* we do in those functions? "Check" doesn't tell me anything. Put all childre

[PATCH V4 3/7] perf,tools: rename perf_session_env and add backpointer to evlist

2015-08-18 Thread Kan Liang
From: Kan Liang Rename perf_session_env to perf_env. Add backpointer to evlist, so we can easily access env when processing something where we have a evsel or evlist. Suggested-by: Arnaldo Carvalho de Melo Signed-off-by: Kan Liang --- tools/perf/arch/common.c| 4 ++-- tools/perf/arch

Re: [Intel-wired-lan] [Patch V3 6/9] i40evf: Use numa_mem_id() to better support memoryless node

2015-08-18 Thread Jeff Kirsher
On Mon, 2015-08-17 at 12:03 -0700, Patil, Kiran wrote: > ACK. > Just an FYI, top posting is frowned upon in the Linux public mailing lists. Also, if you really want your ACK to be added to the patch, you need to reply with: Acked-by: Kiran Patil > -Original Message- > From: Intel-wire

[PATCH V4 1/7] perf,tools: introduce generic FEAT for CPU attributes

2015-08-18 Thread Kan Liang
From: Kan Liang This patch introduces generic FEAT for CPU attributes. For the patch set, we only need cpu max frequency. But it can be easily extented to support more other CPU attributes. The cpu max frequency is from the first online cpu. Signed-off-by: Kan Liang --- tools/perf/util/cpumap.

[PATCH V4 5/7] perf,tools: Dump per-sample freq/CPU%/CORE_BUSY% in report -D

2015-08-18 Thread Kan Liang
From: Kan Liang The group read results from cycles/ref-cycles/TSC/ASTATE/MSTATE event can be used to calculate the frequency, CPU Utilization and percent performance during each sampling period. This patch shows them in report -D. Here is an example: $ perf record -e '{cycles,ref-cycles,msr/tsc

[PATCH V4 7/7] perf,tools: Show freq/CPU%/CORE_BUSY% in perf report --stdio

2015-08-18 Thread Kan Liang
From: Kan Liang Show frequency, CPU Utilization and percent performance for each symbol in perf report by --stdio --show-freq-perf In sampling group, only group leader do sampling. So only need to print group leader's freq in --group. Here is an example. $ perf report --stdio --group --show-fr

[PATCH V4 0/7] Freq/CPU%/CORE_BUSY% support

2015-08-18 Thread Kan Liang
This patch set supports per-sample freq/CPU%/CORE_BUSY% print in perf report -D and --stdio. For printing these information, the perf.data file must have been obtained by group read and using special events cycles, ref-cycles, msr/tsc/, msr/aperf/ or msr/mperf/. - Freq (MHz): The frequency during

[PATCH V4 6/7] perf,tools: caculate and save freq/CPU%/CORE_BUSY% in he_stat

2015-08-18 Thread Kan Liang
From: Kan Liang Caculate freq/CPU%/CORE_BUSY% in add_entry_cb, and update the value in he_stat. Signed-off-by: Kan Liang --- tools/perf/builtin-report.c | 36 tools/perf/util/sort.h | 3 +++ 2 files changed, 39 insertions(+) diff --git a/tools/perf/b

[PATCH V4 2/7] perf,tools: read msr pmu type from header.

2015-08-18 Thread Kan Liang
From: Kan Liang Get msr pmu type when processing pmu_mappings Signed-off-by: Kan Liang --- tools/perf/util/header.c | 3 +++ tools/perf/util/header.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 0a06fb8..b7158c5 100644 --- a/to

[PATCH V4 4/7] perf evsel: Add a backpointer to the evlist a evsel is in

2015-08-18 Thread Kan Liang
From: Arnaldo Carvalho de Melo So that functions that deal primarily with an evsel to access information that concerns the whole evlist it is in. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Kan Liang --- tools/perf/util/evlist.c | 2 ++ tools/perf/util/evsel.c | 2 ++ tools/perf/u

Re: linux-next: build failure after merge of the net-next tree

2015-08-18 Thread David Miller
From: Stephen Rothwell Date: Tue, 18 Aug 2015 18:39:17 +1000 > drivers/net/built-in.o: In function `.vnic_wq_devcmd2_alloc': > (.text+0x49fe40): multiple definition of `.vnic_wq_devcmd2_alloc' > drivers/scsi/built-in.o:(.text+0xb4318): first defined here > drivers/net/built-in.o:(.opd+0x2af00): m

Re: [PATCH v3 01/51] PCI: Cleanup res_to_dev_res() printout for addon resources

2015-08-18 Thread Yinghai Lu
On Mon, Aug 17, 2015 at 3:50 PM, Bjorn Helgaas wrote: > On Mon, Jul 27, 2015 at 04:29:19PM -0700, Yinghai Lu wrote: >> Now get_res_add_size and get_res_add_align all have same printout >> from res_to_dev_res(), and it is confusing. >> >> Move out debug messages printout from res_to_dev_res(), >> a

[PATCH] docs: update HOWTO for 3.x -> 4.x versioning

2015-08-18 Thread Mario Carrillo
The HOWTO document needed updating for the new kernel versioning. Signed-off-by: Mario Carrillo --- Documentation/HOWTO | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Documentation/HOWTO b/Documentation/HOWTO index 93aa860..21152d3 100644 --- a

Re: Why is SECTOR_SIZE = 512 inside kernel ?

2015-08-18 Thread Brice Goglin
Le 17/08/2015 15:54, Theodore Ts'o a écrit : > > It's cast in stone. There are too many places all over the kernel, > especially in a huge number of file systems, which assume that the > sector size is 512 bytes. So above the block layer, the sector size > is always going to be 512. Could this

[PATCH v4 3/3] mtd: add SMEM parser for QCOM platforms

2015-08-18 Thread Mathieu Olivari
On QCOM platforms using MTD devices storage (such as IPQ806x), SMEM is used to store partition layout. This new parser can now be used to read SMEM and use it to register an MTD layout according to its content. Signed-off-by: Mathieu Olivari --- Notes: v2: *Release the SPI device referen

[PATCH v4 2/3] ARM: qcom: add SMEM device node to IPQ806x dts

2015-08-18 Thread Mathieu Olivari
SMEM is used on IPQ806x to store various board related information such as boot device and flash partition layout. We'll declare it as a device so we can make use of it thanks to the new SMEM soc driver. Signed-off-by: Mathieu Olivari --- Notes: v2: *Rename "smem" tag into "smem_region"

[PATCH v4 0/3] qcom: Add SMEM MTD parser

2015-08-18 Thread Mathieu Olivari
QCOM platforms such as IPQ806x are using SMEM to store their flash layout. This patch set adds the DT nodes required to instanciate SMEM on IPQ806x and add an MTD parser using it. This change is based on the SMEM driver posted here: *https://lkml.org/lkml/2015/7/27/1125 v2: *Release the SPI devic

Re: [PATCH 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-18 Thread Eric Anholt
Daniel Vetter writes: > On Thu, Aug 13, 2015 at 01:44:03PM -0700, Eric Anholt wrote: >> Daniel Vetter writes: >> >> > On Wed, Aug 12, 2015 at 05:56:16PM -0700, Eric Anholt wrote: >> >> This is the start of a full VC4 driver. Right now this just supports >> >> configuring the display using a pr

[PATCH v4 1/3] ARM: qcom: add SFPB nodes to IPQ806x dts

2015-08-18 Thread Mathieu Olivari
Add one new node to the ipq806x.dtsi file to declare & register the hardware spinlock devices. This mechanism is required to be used by other drivers such as SMEM. Signed-off-by: Mathieu Olivari --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --gi

<    1   2   3   4   5   6   7   >