[PATCH 3/4] gpu: host1x: Improve debug disassembly formatting

2017-08-18 Thread Mikko Perttunen
The host1x driver prints out "disassembly" dumps of the command FIFO and gather contents on submission timeouts. However, the output has been quite difficult to read with unnecessary newlines and occasional missing parentheses. Fix these problems by using pr_cont to remove unnecessary newlines and

Re: [PATCH v4] livepatch: introduce shadow variable API

2017-08-18 Thread Petr Mladek
On Fri 2017-08-18 09:46:08, Joe Lawrence wrote: > On 08/17/2017 10:05 AM, Petr Mladek wrote: > > On Mon 2017-08-14 16:02:43, Joe Lawrence wrote: > >> [ ... snip ... ] > >> diff --git a/samples/livepatch/livepatch-shadow-fix1.c > >> b/samples/livepatch/livepatch-shadow-fix1.c > >> new file mode 100

Re: [PATCH v2] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Bart Van Assche
On Fri, 2017-08-18 at 09:55 -0400, Waiman Long wrote: > On 08/17/2017 05:30 PM, Steven Rostedt wrote: > > On Thu, 17 Aug 2017 17:10:07 -0400 > > Steven Rostedt wrote: > > > Instead of playing games with taking the lock, the only way this race > > > is hit, is if the partition is being deleted and

Re: [PATCH] EDAC, altera: Fix an error handling path in 'altr_edac_device_probe()'

2017-08-18 Thread Borislav Petkov
On Thu, Aug 17, 2017 at 10:30:23AM -0500, Thor Thayer wrote: > > On 08/16/2017 12:05 AM, Christophe JAILLET wrote: > > 'res' is known to be 0 at this point. > > If 'devm_ioremap()' fails, returns -ENOMEM instead of 0 which means > > success. > > > > Signed-off-by: Christophe JAILLET > > --- > >

Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-18 Thread Rik van Riel
On Thu, 2017-08-17 at 15:50 -0700, Andrew Morton wrote: > On Tue, 15 Aug 2017 22:18:19 -0400 Rik van Riel > wrote: > > > > > --- a/mm/madvise.c > > > > +++ b/mm/madvise.c > > > > @@ -80,6 +80,17 @@ static long madvise_behavior(struct > > > > vm_area_struct *vma, > > > > __ } > > > >

Re: [PATCH v3 2/7] pwm: rockchip: Remove the judge from return value of pwm_config

2017-08-18 Thread Brian Norris
On Fri, Aug 18, 2017 at 05:32:55PM +0200, Thierry Reding wrote: > I don't understand what the "judge" is supposed to be, but I've applied > this to for-4.14/drivers anyway. Thanks. Probably just an artifact of non-native English. Judging by context, David probably meant more like "Remove the chec

Re: [PATCH][next] lkdtm: fix spelling mistake: "incremeted" -> "incremented"

2017-08-18 Thread Kees Cook
On Fri, Aug 18, 2017 at 8:34 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in pr_info message > > Signed-off-by: Colin Ian King Whoops, thanks! Acked-by: Kees Cook Greg, can you please apply this for -next? -Kees > --- > drivers/misc/lkdtm_refcount.c | 2

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Tim Chen
On 08/18/2017 07:46 AM, Mel Gorman wrote: > On Fri, Aug 18, 2017 at 02:20:38PM +, Liang, Kan wrote: >>> Nothing fancy other than needing a comment if it works. >>> >> >> No, the patch doesn't work. >> > > That indicates that it may be a hot page and it's possible that the page is > locked for

Re: [PATCH v2 4/4] iommu: Prevent VMD child devices from being remapping targets

2017-08-18 Thread Robin Murphy
On 18/08/17 17:04, Bjorn Helgaas wrote: > [+cc Robin] > > This series looks fine to me as far as PCI is concerned, and I'd be > happy to take it via my tree given an ack from David for this IOMMU > piece. Alternatively, you can add my > > Acked-by: Bjorn Helgaas > > to the other patches if you

Re: [PATCH] infiniband: avoid overflow warning

2017-08-18 Thread Doug Ledford
On Mon, 2017-07-31 at 08:50 +0200, Arnd Bergmann wrote: > A sockaddr_in structure on the stack getting passed into rdma_ip2gid > triggers this warning, since we memcpy into a larger sockaddr_in6 > structure: > > In function 'memcpy', > inlined from 'rdma_ip2gid' at include/rdma/ib_addr.h:175:3

[GIT PULL rcu/next] RCU commits for 4.14

2017-08-18 Thread Paul E. McKenney
Hello, Ingo, Back to the usual branched format! ;-) This pull request contains the following changes: 1. Documentation updates. http://lkml.kernel.org/r/20170724213605.ga8...@linux.vnet.ibm.com 2. Miscellaneous fixes. http://lkml.kernel.org/r/20170724214425.ga9...@l

Re: [PATCH 02/38] MIPS: GIC: Introduce asm/mips-gic.h with accessor functions

2017-08-18 Thread Paul Burton
Hi Marc, On Friday, 18 August 2017 04:10:20 PDT Marc Zyngier wrote: > On 13/08/17 05:36, Paul Burton wrote: > > This patch introduces a new header providing accessor functions for the > > MIPS Global Interrupt Controller (GIC) mirroring those provided for the > > other 2 components of the MIPS Coh

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Andi Kleen
> Still, I don't think this problem is THP specific. If there is a hot > regular page getting migrated, we'll also see many threads get > queued up quickly. THP may have made the problem worse as migrating > it takes a longer time, meaning more threads could get queued up. Also THP probably make

RE: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Liang, Kan
> On Fri, Aug 18, 2017 at 02:20:38PM +, Liang, Kan wrote: > > > Nothing fancy other than needing a comment if it works. > > > > > > > No, the patch doesn't work. > > > > That indicates that it may be a hot page and it's possible that the page is > locked for a short time but waiters accumula

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Linus Torvalds
On Fri, Aug 18, 2017 at 5:23 AM, Mel Gorman wrote: > > new_page = alloc_pages_node(node, > - (GFP_TRANSHUGE_LIGHT | __GFP_THISNODE), > + (GFP_TRANSHUGE_LIGHT | __GFP_THISNODE) & > ~__GFP_DIRECT_RECLAIM, > HPAGE_PMD_ORDER); That can't make any d

Re: [PATCH v3 4/4] dt-bindings: net: dwmac-sun8i: update documentation about integrated PHY

2017-08-18 Thread Chen-Yu Tsai
On Fri, Aug 18, 2017 at 8:21 PM, Corentin Labbe wrote: > This patch add documentation about the MDIO switch used on sun8i-h3-emac > for integrated PHY. > > Signed-off-by: Corentin Labbe > --- > .../devicetree/bindings/net/dwmac-sun8i.txt| 112 > +++-- > 1 file changed, 1

[PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-18 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a of a port in the HNS NIC hardware . 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- PATCH V2: Addresses comments giv

Re: [PATCH v3 2/4] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated

2017-08-18 Thread Chen-Yu Tsai
On Fri, Aug 18, 2017 at 8:21 PM, Corentin Labbe wrote: > The current way to find if the phy is internal is to compare DT phy-mode > and emac_variant/internal_phy. > But it will negate a possible future SoC where an external PHY use the > same phy mode than the internal one. > > This patch adds a n

Re: [PATCH] perf tools: Add ARM Statistical Profiling Extensions (SPE) support

2017-08-18 Thread Mark Rutland
Hi Kim, Sorry for the late reply. I see you've send an updated version. I'm replying here first so as to answer your queries, and I intend to look at the updated patch shortly. On Mon, Jul 17, 2017 at 07:48:22PM -0500, Kim Phillips wrote: > On Fri, 30 Jun 2017 15:02:41 +0100 Mark Rutland wrote:

Re: [RFC PATCH v2 1/3] PCI: rockchip: Add support for pcie wake irq

2017-08-18 Thread Brian Norris
+ Tony On Thu, Aug 17, 2017 at 08:04:29PM +0800, Jeffy Chen wrote: > Add support for PCIE_WAKE pin in rockchip pcie driver. > > Signed-off-by: Jeffy Chen > --- > > Changes in v2: > Use dev_pm_set_dedicated_wake_irq > -- Suggested by Brian Norris > > drivers/pci/host/pcie-rockchip.c |

RE: [PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
Hi Andrew, > > -Original Message- > > From: Andrew Lunn [mailto:and...@lunn.ch] > > Sent: Friday, August 18, 2017 5:02 PM > > To: Salil Mehta > > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > > ker...@vger.kernel.

Re: [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-18 Thread Chen-Yu Tsai
On Fri, Aug 18, 2017 at 8:21 PM, Corentin Labbe wrote: > In case of a MDIO switch, the registered MDIO node should be > the parent of the PHY. Otherwise of_phy_connect will fail. > > Signed-off-by: Corentin Labbe > --- > drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 12 ++-- >

Re: [RFC PATCH v2 1/3] PCI: rockchip: Add support for pcie wake irq

2017-08-18 Thread Brian Norris
On Fri, Aug 18, 2017 at 10:01:07AM -0700, Brian Norris wrote: > + Tony > > On Thu, Aug 17, 2017 at 08:04:29PM +0800, Jeffy Chen wrote: > > Add support for PCIE_WAKE pin in rockchip pcie driver. > > > > Signed-off-by: Jeffy Chen > > --- > > > > Changes in v2: > > Use dev_pm_set_dedicated_wake_ir

Re: [PATCH] EDAC, thunderx: Fix an error handling path in 'thunderx_lmc_probe()'

2017-08-18 Thread Borislav Petkov
On Wed, Aug 16, 2017 at 06:58:21AM +0200, Christophe JAILLET wrote: > 'ret' is known to be 0 at this point. > If 'ioremap()' fails, returns -ENOMEM instead of 0 which means success. > > Signed-off-by: Christophe JAILLET > --- > drivers/edac/thunderx_edac.c | 1 + > 1 file changed, 1 insertion(+)

[PATCH] Fixed typo in KGDB Kconfig file

2017-08-18 Thread James Pack
Signed-off-by: James Pack Acked-by: Daniel Thompson --- lib/Kconfig.kgdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.kgdb b/lib/Kconfig.kgdb index ab4ff0e..a5f7412 100644 --- a/lib/Kconfig.kgdb +++ b/lib/Kconfig.kgdb @@ -78,7 +78,7 @@ config KDB_DEFAULT_ENABLE

Re: [PATCH] platform/x86: intel_pmc_core: Add Package C-states residency info

2017-08-18 Thread Andy Shevchenko
+PeterZ (since I mentioned his name) On Fri, Aug 18, 2017 at 5:58 PM, Rajneesh Bhardwaj wrote: > On Fri, Aug 18, 2017 at 03:57:34PM +0300, Andy Shevchenko wrote: >> On Fri, Aug 18, 2017 at 3:37 PM, Rajneesh Bhardwaj >> wrote: >> > This patch introduces a new debugfs entry to read current Package

Re: [RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-18 Thread Andreas Färber
Hi Marc, Am 18.08.2017 um 12:53 schrieb Marc Zyngier: > On 17/08/17 11:11, Andreas Färber wrote: >> This irq mux driver is derived from the RTD1295 vendor DT and assumes a >> linear >> mapping between intr_en and intr_status registers. Code for RTD119x indicates >> this may not always be the case

Re: [PATCH v14 4/5] mm: support reporting free page blocks

2017-08-18 Thread Michael S. Tsirkin
On Thu, Aug 17, 2017 at 11:26:55AM +0800, Wei Wang wrote: > This patch adds support to walk through the free page blocks in the > system and report them via a callback function. Some page blocks may > leave the free list after zone->lock is released, so it is the caller's > responsibility to either

Re: [PATCH v2] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Waiman Long
On 08/18/2017 12:21 PM, Bart Van Assche wrote: > On Fri, 2017-08-18 at 09:55 -0400, Waiman Long wrote: >> On 08/17/2017 05:30 PM, Steven Rostedt wrote: >>> On Thu, 17 Aug 2017 17:10:07 -0400 >>> Steven Rostedt wrote: Instead of playing games with taking the lock, the only way this race i

Re: [PATCH] fbdev: fix 1bpp logo for unusual width

2017-08-18 Thread Bartlomiej Zolnierkiewicz
On Friday, July 28, 2017 03:33:53 PM David Lechner wrote: > This check is needed in the case where the width of the framebuffer > is not a multiple of 8 pixels. For example, LEGO MINDSTORMS EV3 has > a 178x128 1bpp display. > > Signed-off-by: David Lechner Patch queued for 4.14, thanks. Best re

Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-18 Thread Mike Kravetz
On 08/11/2017 02:28 PM, r...@redhat.com wrote: > From: Rik van Riel > > Introduce MADV_WIPEONFORK semantics, which result in a VMA being > empty in the child process after fork. This differs from MADV_DONTFORK > in one important way. > > If a child process accesses memory that was MADV_WIPEONFOR

Re: [PATCH v2] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Steven Rostedt
On Fri, 18 Aug 2017 16:21:46 + Bart Van Assche wrote: > Sorry Waiman but personally I thoroughly detest loops around mutex_trylock() > or > mutex_timed_lock() because such loops are usually used to paper over a problem > instead of fixing the root cause. 100% agree. -- Steve

Re: [PATCH] nfp: fix infinite loop on umapping cleanup

2017-08-18 Thread David Miller
From: Colin King Date: Fri, 18 Aug 2017 12:11:50 +0100 > From: Colin Ian King > > The while loop that performs the dma page unmapping never decrements > index counter f and hence loops forever. Fix this with a pre-decrement > on f. > > Detected by CoverityScan, CID#1357309 ("Infinite loop") >

Re: [PATCH v3] fbcon: add fbcon=margin: command line option

2017-08-18 Thread Bartlomiej Zolnierkiewicz
On Tuesday, August 01, 2017 11:35:57 AM David Lechner wrote: > This adds a new command line option to select the fbcon margin color. > > The motivation for this is screens where black does not blend into the > physical surroundings of the screen. For example, using an LCD (not the > backlit kind),

Re: [PATCH net-next 0/3] Misc. Bug fixes for HNS3 Ethernet Driver

2017-08-18 Thread David Miller
From: Salil Mehta Date: Fri, 18 Aug 2017 12:31:36 +0100 > This patch-set fixes various bugs reported by community. Series applied.

Re: [PATCH v2] perf tools: Add ARM Statistical Profiling Extensions (SPE) support

2017-08-18 Thread Mark Rutland
Hi Kim, On Thu, Aug 17, 2017 at 10:11:50PM -0500, Kim Phillips wrote: > Hi Mark, I've tried to proceed as much as possible without your > response, so if you still have comments to my above comments, please > comment in-line above, otherwise review the v2 patch below? Apologies again for the late

Re: [PATCH] ACPI / sysfs: Extend ACPI sysfs to provide access to boot error region

2017-08-18 Thread Punit Agrawal
"Luck, Tony" writes: > From: Tony Luck > > The ACPI sysfs interface provides a way to read each ACPI table from > userspace via entries in /sys/firmware/acpi/tables/ > > The BERT table simply provides the size and address of the error > record in BIOS reserved memory and users may want access to

Re: [PATCH] video: fbdev: constify copied structures

2017-08-18 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, August 02, 2017 11:04:39 AM Julia Lawall wrote: > Make const some structures that are only copied into other structures. > > Signed-off-by: Julia Lawall fb_fix_screeninfo and fb_var_screeninfo structures were already const-ified by commit 40445365a43f ("video: xilinxfb: const

[no subject]

2017-08-18 Thread Rajneesh Bhardwaj
Bcc: Subject: Re: [PATCH] platform/x86: intel_pmc_core: Add Package C-states residency info Reply-To: In-Reply-To: On Fri, Aug 18, 2017 at 08:17:32PM +0300, Andy Shevchenko wrote: > +PeterZ (since I mentioned his name) > > On Fri, Aug 18, 2017 at 5:58 PM, Rajneesh Bhardwaj > wrote: > > On F

Re: [RESEND][PATCH v4] drm: kirin: Add mode_valid logic to avoid mode clocks we can't generate

2017-08-18 Thread John Stultz
On Fri, Aug 18, 2017 at 8:28 AM, Sean Paul wrote: > On Thu, Aug 17, 2017 at 12:00:04PM -0700, John Stultz wrote: >> Currently the hikey dsi logic cannot generate accurate byte >> clocks values for all pixel clock values. Thus if a mode clock >> is selected that cannot match the calculated byte clo

Re: [RFC PATCH v2 1/3] PCI: rockchip: Add support for pcie wake irq

2017-08-18 Thread jeffy
Hi Brian, On 08/19/2017 01:01 AM, Brian Norris wrote: Did you test that this works out correctly as a level-triggered interrupt? IIUC, the dummy handler won't mask the interrupt, so it might keep firing. See: static irqreturn_t handle_threaded_wake_irq(int irq, void *_wirq) { struct wa

Re: [RFC 3/3] irqchip: Add Realtek RTD1295 mux driver

2017-08-18 Thread Marc Zyngier
On 18/08/17 18:21, Andreas Färber wrote: > Hi Marc, > > Am 18.08.2017 um 12:53 schrieb Marc Zyngier: >> On 17/08/17 11:11, Andreas Färber wrote: >>> This irq mux driver is derived from the RTD1295 vendor DT and assumes a >>> linear >>> mapping between intr_en and intr_status registers. Code for R

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Linus Torvalds
On Fri, Aug 18, 2017 at 9:53 AM, Liang, Kan wrote: > >> On Fri, Aug 18, 2017 Mel Gorman wrote: >> >> That indicates that it may be a hot page and it's possible that the page is >> locked for a short time but waiters accumulate. What happens if you leave >> NUMA balancing enabled but disable THP?

Re: [PATCH] video: fbdev: add const to bin_attribute structures

2017-08-18 Thread Bartlomiej Zolnierkiewicz
On Wednesday, August 02, 2017 10:39:55 PM Bhumika Goyal wrote: > Add const to bin_attribute structures as they are only passed to the > functions sysfs_{remove/create}_bin_file or > device_{remove/create}_bin_file. The corresponding arguments are of > type const, so declare the structures to be con

Re: [net-next PATCH] ipv6: fix false-postive maybe-uninitialized warning

2017-08-18 Thread David Miller
From: Arnd Bergmann Date: Fri, 18 Aug 2017 13:34:22 +0200 > Adding a lock around one of the assignments prevents gcc from > tracking the state of the local 'fibmatch' variable, so it can no > longer prove that 'dst' is always initialized, leading to a bogus > warning: > > net/ipv6/route.c: In fu

Re: [PATCH] platform/x86: intel_pmc_core: Add Package C-states residency info

2017-08-18 Thread Rajneesh Bhardwaj
On Fri, Aug 18, 2017 at 08:17:32PM +0300, Andy Shevchenko wrote: > +PeterZ (since I mentioned his name) > > On Fri, Aug 18, 2017 at 5:58 PM, Rajneesh Bhardwaj > wrote: > > On Fri, Aug 18, 2017 at 03:57:34PM +0300, Andy Shevchenko wrote: > >> On Fri, Aug 18, 2017 at 3:37 PM, Rajneesh Bhardwaj > >>

Re: [PATCH] video: fbdev: vt8623fb: constify vt8623_timing_regs

2017-08-18 Thread Bartlomiej Zolnierkiewicz
On Thursday, August 03, 2017 09:27:39 PM Julia Lawall wrote: > vt8623_timing_regs is only passed as the first argument to > svga_check_timings and as the second argument to svga_set_timings, > both of which are const. So make vt8623_timing_regs const also. > > Done with the help of Coccinelle. >

[PATCH v3] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Waiman Long
The lockdep code had reported the following unsafe locking scenario: CPU0CPU1 lock(s_active#228); lock(&bdev->bd_mutex/1); lock(s_active#228); lock(&bdev->bd_mutex); *

[PATCH 2/2] mmc: sdhci-msm: Enable delay circuit calibration clocks

2017-08-18 Thread Bjorn Andersson
The delay circuit used to support HS400 is calibrated based on two additional clocks. When these clocks are not available and FF_CLK_SW_RST_DIS is not set in CORE_HC_MODE, reset might fail. But on some platforms this doesn't work properly and below dump can be seen in the kernel log. mmc0: Reset

Re: your mail

2017-08-18 Thread Rajneesh Bhardwaj
On Fri, Aug 18, 2017 at 11:12:14PM +0530, Rajneesh Bhardwaj wrote: > Bcc: > Subject: Re: [PATCH] platform/x86: intel_pmc_core: Add Package C-states > residency info > Reply-To: > In-Reply-To: > > Please ignore my previous email without subject. It was sent by mistake. > On Fri, Aug 18, 2017

[PATCH 0/2] Support SDHCI on 8974pro devices

2017-08-18 Thread Bjorn Andersson
The calibration clocks for the delay circut should be enabled, as done in the downstream kernel, in order for reset of the SDHCI not to fail on some Qualcomm platforms (e.g. 8974pro). These patches makes it possible to reference these clocks. Bjorn Andersson (2): mmc: sdhci-msm: Utilize bulk clo

[PATCH 1/2] mmc: sdhci-msm: Utilize bulk clock API

2017-08-18 Thread Bjorn Andersson
By stuffing the runtime controlled clocks into a clk_bulk_data array we can utilize the newly introduced bulk clock operations and clean up the error paths. This allow us to handle additional clocks in subsequent patch, without the added complexity. Cc: Ritesh Harjani Signed-off-by: Bjorn Anderss

Re: [Xen-devel] [PATCH 1/1] xen-blkback: stop blkback thread of every queue in xen_blkif_disconnect

2017-08-18 Thread Roger Pau Monné
On Fri, Aug 18, 2017 at 10:29:15AM -0400, annie li wrote: > > On 8/18/2017 5:14 AM, Roger Pau Monné wrote: > > On Thu, Aug 17, 2017 at 06:43:46PM -0400, Annie Li wrote: > > > If there is inflight I/O in any non-last queue, blkback returns -EBUSY > > > directly, and never stops thread of remaining

Re: [PATCH] netxen: fix incorrect loop counter decrement

2017-08-18 Thread David Miller
From: Colin King Date: Fri, 18 Aug 2017 14:12:06 +0100 > From: Colin Ian King > > The loop counter k is currently being decremented from zero which > is incorrect. Fix this by incrementing k instead > > Detected by CoverityScan, CID#401847 ("Infinite loop") > > Fixes: 83f18a557c6d ("netxen_ni

Re: [PATCH 5/5] kernel: tracepoints: add support for relative references

2017-08-18 Thread Ingo Molnar
* Ard Biesheuvel wrote: > On 18 August 2017 at 09:36, Ard Biesheuvel wrote: > > On 18 August 2017 at 09:26, Ingo Molnar wrote: > >> > >> * Ard Biesheuvel wrote: > >> > >>> -static void for_each_tracepoint_range(struct tracepoint * const *begin, > >>> - struct tracepoint * const *e

Re: [PATCH v8 0/7] genirq/gpio: Add driver for ThunderX and OCTEON-TX SoCs

2017-08-18 Thread David Daney
On 08/18/2017 02:24 AM, Thomas Gleixner wrote: On Thu, 17 Aug 2017, David Daney wrote: The ThunderX/OCTEON-TX GPIO hardware looks like a PCIe device, with the interrupt signal from each GPIO line being routed to a dedicated MSI-X. This interrupt routing requires that we add some custom process

Re: [PATCH v3] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-18 Thread Bart Van Assche
On Fri, 2017-08-18 at 13:54 -0400, Waiman Long wrote: > Instead, a global blktrace > mutex will be used to serialize the read/write of the blktrace sysfs > attributes. Hello Waiman, Using a mutex to serialize code is wrong. What is needed is exact documentation of what data structures and/or memb

Re: [PATCH 0/2] IB: add const to bin_attribute structures

2017-08-18 Thread Doug Ledford
On Wed, 2017-08-02 at 15:31 +0530, Bhumika Goyal wrote: > Declare bin_attribute structures as const. > Done using Coccinelle. > > Bhumika Goyal (2): > IB/qib: add const to bin_attribute structures > IB/hfi1: add const to bin_attribute structures > > drivers/infiniband/hw/hfi1/sysfs.c| 4

Re: [PATCH v14 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-18 Thread Michael S. Tsirkin
On Fri, Aug 18, 2017 at 04:36:06PM +0800, Wei Wang wrote: > On 08/18/2017 10:28 AM, Michael S. Tsirkin wrote: > > On Thu, Aug 17, 2017 at 11:26:56AM +0800, Wei Wang wrote: > > > Add a new vq to report hints of guest free pages to the host. > > > > > > Signed-off-by: Wei Wang > > > Signed-off-by:

Re: [RFC PATCH v2 1/3] PCI: rockchip: Add support for pcie wake irq

2017-08-18 Thread Tony Lindgren
* Brian Norris [170818 10:01]: > + Tony > > On Thu, Aug 17, 2017 at 08:04:29PM +0800, Jeffy Chen wrote: > > Add support for PCIE_WAKE pin in rockchip pcie driver. > > > > Signed-off-by: Jeffy Chen > > --- > > > > Changes in v2: > > Use dev_pm_set_dedicated_wake_irq > > -- Suggested by

Re: [PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-18 Thread Andrew Morton
On Fri, 18 Aug 2017 12:28:29 -0400 Rik van Riel wrote: > On Thu, 2017-08-17 at 15:50 -0700, Andrew Morton wrote: > > On Tue, 15 Aug 2017 22:18:19 -0400 Rik van Riel > > wrote: > > > > > > > --- a/mm/madvise.c > > > > > +++ b/mm/madvise.c > > > > > @@ -80,6 +80,17 @@ static long madvise_behavior

Re: [PATCH 5/5] kernel: tracepoints: add support for relative references

2017-08-18 Thread Ard Biesheuvel
On 18 August 2017 at 18:58, Ingo Molnar wrote: > > * Ard Biesheuvel wrote: > >> On 18 August 2017 at 09:36, Ard Biesheuvel wrote: >> > On 18 August 2017 at 09:26, Ingo Molnar wrote: >> >> >> >> * Ard Biesheuvel wrote: >> >> >> >>> -static void for_each_tracepoint_range(struct tracepoint * cons

Re: [PATCH v3] fbcon: add fbcon=margin: command line option

2017-08-18 Thread Geert Uytterhoeven
Hi David, On Tue, Aug 1, 2017 at 6:35 PM, David Lechner wrote: > This adds a new command line option to select the fbcon margin color. > > The motivation for this is screens where black does not blend into the > physical surroundings of the screen. For example, using an LCD (not the > backlit kin

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-08-18 Thread Florian Fainelli
On 08/07/2017 05:56 AM, Marc Zyngier wrote: > On 28/07/17 15:06, Marc Gonzalez wrote: >> On 27/07/2017 20:17, Florian Fainelli wrote: >> >>> On 07/26/2017 12:13 PM, Måns Rullgård wrote: >>> Florian Fainelli writes: > On 07/25/2017 06:29 AM, Måns Rullgård wrote: > >> Marc Gonza

Re: [PATCH v14 5/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-08-18 Thread Michael S. Tsirkin
On Fri, Aug 18, 2017 at 04:41:41PM +0800, Wei Wang wrote: > On 08/18/2017 10:13 AM, Michael S. Tsirkin wrote: > > On Thu, Aug 17, 2017 at 11:26:56AM +0800, Wei Wang wrote: > > > Add a new vq to report hints of guest free pages to the host. > > Please add some text here explaining the report_free_pa

Re: [RFC PATCH v2 1/3] PCI: rockchip: Add support for pcie wake irq

2017-08-18 Thread Tony Lindgren
* jeffy [170818 11:05]: > On 08/19/2017 01:01 AM, Brian Norris wrote: > > BTW, in another context, Tony suggested we might need to fix up the IRQ > > flags > > like this: > > > > int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq) > > { > > ... > > err = request_threaded_irq(

Re: [PATCH -tip v9 3/5] cris: mark _stext and _end as char-arrays, not single char

2017-08-18 Thread Jesper Nilsson
On Wed, Aug 16, 2017 at 08:01:33PM +0900, Masami Hiramatsu wrote: > On Thu, 3 Aug 2017 11:37:15 +0900 > Masami Hiramatsu wrote: > > > diff --git a/arch/cris/kernel/traps.c b/arch/cris/kernel/traps.c > > index a01636a12a6e..d98131c45bb5 100644 > > --- a/arch/cris/kernel/traps.c > > +++ b/arch/cri

Re: [PATCH -tip v9 3/5] cris: mark _stext and _end as char-arrays, not single char

2017-08-18 Thread Jesper Nilsson
On Thu, Aug 03, 2017 at 11:37:15AM +0900, Masami Hiramatsu wrote: > Mark _stext and _end as character arrays instead of single > character, as same as include/asm-generic/sections.h does. Looks good. Acked-by: Jesper Nilsson > Signed-off-by: Masami Hiramatsu > --- > arch/cris/arch-v32/mach-a

Re: [PATCH] staging: wlan-ng: Fix sparse warning: cast to restricted __le16.

2017-08-18 Thread Ricardo Silva
Hi, On 08/09/2017 11:35 PM, AbdAllah-MEZITI wrote: > The same structure is used in both side, so we dont need to cast. I believe there were no casts there, but calls to le16_to_cpu(), meaning there was previously a bug or the data being accessed was really stored in little-endian format, so we sh

[GIT PULL][PATCH 0/6] Timekeeping queue for 4.14

2017-08-18 Thread John Stultz
Thomas, Ingo, Just wanted to send along my current time queue for 4.14. Most of it is actually ksefltest related, so if you'd prefer I can send those through Shuah. Let me know if you have any feedback or objections. thanks -john Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Miroslav Lichvar Cc

[PATCH 2/6] kselftests: timers: freq-step: Fix build warning

2017-08-18 Thread John Stultz
Fixes the following build warning: freq-step.c: In function ‘main’: freq-step.c:271:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ By returning the return values from ksft_success/fail. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Miroslav Lichvar Cc: Richard Cochran C

[PATCH 4/6] kselftests: timers: set-timer-lat: Add one-shot timer test cases

2017-08-18 Thread John Stultz
From: Greg Hackmann These testcases are motivated by a recent alarmtimer regression, which caused one-shot CLOCK_{BOOTTIME,REALTIME}_ALARM timers to become periodic timers. The new testcases are very similar to the existing testcases for repeating timers. But rather than waiting for 5 alarms, t

[PATCH 5/6] timekeeping: Use proper timekeeper for debug code

2017-08-18 Thread John Stultz
From: Stafford Horne When CONFIG_DEBUG_TIMEKEEPING is enabled the timekeeping_check_update() function will update status like last_warning and underflow_seen on the timekeeper. If there are issues found this state is used to rate limit the warnings that get printed. This rate limiting doesn't r

[PATCH 6/6] alarmtimer: Fix unavailable wake-up source in sysfs

2017-08-18 Thread John Stultz
From: Geert Uytterhoeven Currently the alarmtimer registers a wake-up source unconditionally, regardless of the system having a (wake-up capable) RTC or not. Hence the alarmtimer will always show up in /sys/kernel/debug/wakeup_sources, even if it is not available, and thus cannot be a wake-up sou

Re: [PATCH] Enable reset attack mitigation

2017-08-18 Thread Ard Biesheuvel
On 4 August 2017 at 22:20, Matthew Garrett wrote: > If a machine is reset while secrets are present in RAM, it may be > possible for code executed after the reboot to extract those secrets > from untouched memory. The Trusted Computing Group specified a mechanism > for requesting that the firmware

[PATCH 1/6] kselftests: timers: freq-step: Define ADJ_SETOFFSET if device has older kernel headers

2017-08-18 Thread John Stultz
On some systems, the kernel headers haven't been updated to include ADJ_SETOFFSET, so define it in the test if needed. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Miroslav Lichvar Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-

[PATCH 3/6] kselftests: timers: set-timer-lat: Tweak reporting when timer fires early

2017-08-18 Thread John Stultz
From: Greg Hackmann Rather than printing an error inside the alarm signal handler, set a flag that we check later. This keeps the test from spamming the console every time the alarm fires early. It also fixes the test exiting with error code 0 if this was the only test failure. Cc: Thomas Glei

[PATCH RESEND 1/2] net: enable high resolution timer mode to timeout datagram sockets

2017-08-18 Thread Vallish Vaidyeshwara
Enable high resolution timer mode to time SO_RCVTIMEO value used with setsockopt(2) on AF_UNIX and AF_INET datagram sockets. By default, SO_RCVTIMEO uses low resolution timer which is good for most of socket use cases. Background: Kernel timer wheel was refactored in 4.8 to avoid drawbacks with pr

[PATCH RESEND 0/2] enable hires timer to timeout datagram socket

2017-08-18 Thread Vallish Vaidyeshwara
Hello Dave, Resending the patch series to include netdev mailing list with a cover letter. I am submitting 2 patch series to enable hires timer to timeout datagram sockets (AF_UNIX & AF_INET domain) and test code to test timeout accuracy on these sockets. There has been a behavior change in 4.9

[PATCH RESEND 2/2] selftests/net: add test to verify datagram socket timeout

2017-08-18 Thread Vallish Vaidyeshwara
AF_UNIX and AF_INET datagram sockets use high resolution timer to time SO_RCVTIMEO value used with setsockopt(2). This test checks for the accuracy of kernel notifying these sockets timeout to application. Test program has code to check AF_UNIX socket, however the kernel function used to timeout AF

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Mel Gorman
On Fri, Aug 18, 2017 at 10:48:23AM -0700, Linus Torvalds wrote: > On Fri, Aug 18, 2017 at 9:53 AM, Liang, Kan wrote: > > > >> On Fri, Aug 18, 2017 Mel Gorman wrote: > >> > >> That indicates that it may be a hot page and it's possible that the page is > >> locked for a short time but waiters accumu

[rcu:rcu/next 16/16] kernel/irq_work.c:81:3: error: implicit declaration of function 'arch_send_call_function_single_ipi'

2017-08-18 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: 82dd0c5004dcef5bd7c8af7cac913fb507dd1775 commit: 82dd0c5004dcef5bd7c8af7cac913fb507dd1775 [16/16] irq_work: Map irq_work_on_queue() to irq_work_on() in !SMP config: i386-tinyconfig (attached as .config)

Re: [PATCH v4] livepatch: introduce shadow variable API

2017-08-18 Thread Josh Poimboeuf
On Fri, Aug 18, 2017 at 11:42:50AM +0200, Petr Mladek wrote: > On Thu 2017-08-17 12:01:33, Joe Lawrence wrote: > > On 08/17/2017 10:05 AM, Petr Mladek wrote: > > >> diff --git a/kernel/livepatch/shadow.c b/kernel/livepatch/shadow.c > > >> new file mode 100644 > > >> index ..0ebd4b635e4f

[PATCH 0/3] JFFS2: Adjustments for seven function implementations

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 20:50:05 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in four functions Improve a size determination in jffs2_scan_medium() Adj

[PATCH 1/3] jffs2: Delete an error message for a failed memory allocation in four functions

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 20:06:44 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/jffs2/compr.c | 5 ++--- fs/jffs2/dir.c | 1 - fs/jffs2/erase.c

[PATCH 2/3] jffs2: Improve a size determination in jffs2_scan_medium()

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 20:22:15 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

Re: [PATCH] Enable reset attack mitigation

2017-08-18 Thread Matthew Garrett
On Fri, Aug 18, 2017 at 11:52 AM, Ard Biesheuvel wrote: > On 4 August 2017 at 22:20, Matthew Garrett wrote: >> + * Enable reboot attack mitigation. This requests that the firmware clear >> the >> + * RAM on next reboot before proceeding with boot, ensuring that any secrets >> + * are cleared. If

[PATCH 3/3] jffs2: Adjust a null pointer check in two functions

2017-08-18 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 20:40:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-18 Thread Linus Torvalds
On Fri, Aug 18, 2017 at 11:54 AM, Mel Gorman wrote: > > One option to mitigate (but not eliminate) the problem is to record when > the page lock is contended and pass in TNF_PAGE_CONTENDED (new flag) to > task_numa_fault(). Well, finding it contended is fairly easy - just look at the page wait qu

Re: [PATCH v3] fbcon: add fbcon=margin: command line option

2017-08-18 Thread David Lechner
On 08/18/2017 01:21 PM, Geert Uytterhoeven wrote: Hi David, On Tue, Aug 1, 2017 at 6:35 PM, David Lechner wrote: This adds a new command line option to select the fbcon margin color. The motivation for this is screens where black does not blend into the physical surroundings of the screen. Fo

Re: [PATCH 1/2] doc: media/v4l-drivers/qcom_camss: Add abbreviations explanation

2017-08-18 Thread Sakari Ailus
On Fri, Aug 18, 2017 at 11:16:33AM +0300, Todor Tomov wrote: > Add explanations for VFE's PIX and RDI interfaces. > > Signed-off-by: Todor Tomov For both: Acked-by: Sakari Ailus -- Sakari Ailus e-mail: sakari.ai...@iki.fi

Re: [PATCH] Enable reset attack mitigation

2017-08-18 Thread Ard Biesheuvel
On 18 August 2017 at 20:08, Matthew Garrett wrote: > On Fri, Aug 18, 2017 at 11:52 AM, Ard Biesheuvel > wrote: >> On 4 August 2017 at 22:20, Matthew Garrett wrote: >>> + * Enable reboot attack mitigation. This requests that the firmware clear >>> the >>> + * RAM on next reboot before proceeding

[PATCH] Input: synaptics - Lenovo Carbon X1 Gen5 (2017) devices should use RMI

2017-08-18 Thread Dmitry Torokhov
The touchpad on Lenovo Carbon X1 Gen 5 (2017 - Kabylake) is accessible over SMBUS/RMI, so let's activate it by default. Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/synaptics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/syn

[RFC PATCH] can: m_can: Support higher speed CAN-FD bitrates

2017-08-18 Thread Franklin S Cooper Jr
During test transmitting using CAN-FD at high bitrates (4 Mbps) only resulted in errors. Scoping the signals I noticed that only a single bit was being transmitted and with a bit more investigation realized the actual MCAN IP would go back to initialization mode automatically. It appears this issu

Re: [net-next PATCH] ipv6: fix false-postive maybe-uninitialized warning

2017-08-18 Thread Arnd Bergmann
On Fri, Aug 18, 2017 at 7:49 PM, David Miller wrote: > From: Arnd Bergmann > Date: Fri, 18 Aug 2017 13:34:22 +0200 >> >> This kind of warning involving an unlock between variable initialization >> and use is relatively frequent for false-positives. I should try to >> seek clarification from the

[PATCH 07/14] drivers/fbdev: efifb: allow BAR to be moved instead of claiming it

2017-08-18 Thread Ard Biesheuvel
On UEFI systems, the firmware may expose a Graphics Output Protocol (GOP) instance to which the efifb driver attempts to attach in order to provide a minimal, unaccelerated framebuffer. The GOP protocol itself is not very sophisticated, and only describes the offset and size of the framebuffer in m

[PATCH 01/14] efi: arm: Don't mark ACPI reclaim memory as MEMBLOCK_NOMAP

2017-08-18 Thread Ard Biesheuvel
On ARM, regions of memory that are described by UEFI as having special significance to the firmware itself are omitted from the linear mapping. This is necessary since we cannot guarantee that alternate mappings of the same physical region will use attributes that are compatible with the ones we us

[PATCH 05/14] efi: arm/arm64: Add missing assignment of efi.config_table

2017-08-18 Thread Ard Biesheuvel
The ARM EFI init code never assigns the config_table member of the efi struct, which means the sysfs device node is missing, and other in-kernel users will not work correctly. So add the missing assignment. Note that, for now, the runtime and fw_vendor members are still omitted. This is deliberate

[PATCH 14/14] firmware: efi: esrt: constify attribute_group structures.

2017-08-18 Thread Ard Biesheuvel
From: Arvind Yadav attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Cc: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/fi

[PATCH 12/14] firmware: dcdbas: constify attribute_group structures.

2017-08-18 Thread Ard Biesheuvel
From: Arvind Yadav attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Cc: Matt Fleming Cc: Douglas_Warzecha Signed-off-by: Ard Biesh

<    3   4   5   6   7   8   9   10   >