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

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

[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

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. >

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

[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

[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

Re: [PATCH] tpm: vtpm: constify vio_device_id

2017-08-18 Thread Jason Gunthorpe
On Fri, Aug 18, 2017 at 09:32:46PM +1000, Michael Ellerman wrote: > >> drivers/char/tpm/tpm_ibmvtpm.c | 2 +- > > Who merges changes for this driver? I assume it's Jarkko? Yes Jason

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- > >

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

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

[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(>bd_mutex/1); lock(s_active#228); lock(>bd_mutex); *** DEADLOCK

[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:

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

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) > > { > > ... > >

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

[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

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

2017-08-18 Thread Waiman Long
On 08/18/2017 02:07 PM, Bart Van Assche wrote: > 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

Re: [PATCH 3.16 000/134] 3.16.47-rc1 review

2017-08-18 Thread Ben Hutchings
On Fri, 2017-08-18 at 07:55 -0700, Guenter Roeck wrote: > On 08/18/2017 06:13 AM, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.47 release. > > There are 134 patches in this series, which will be posted as responses > > to this one.  If anyone has any issues

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

2017-08-18 Thread Linus Torvalds
On Fri, Aug 18, 2017 at 12:58 PM, Andi Kleen wrote: >> which is hacky, but there's a rationale for it: >> >> (a) avoid the crazy long wait queues ;) >> >> (b) we know that migration is *supposed* to be CPU-bound (not IO >> bound), so yielding the CPU and retrying may just

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

2017-08-18 Thread Richard Cochran
On Fri, Aug 18, 2017 at 06:44:08PM +, Vallish Vaidyeshwara wrote: > There has been a behavior change in 4.9 kernel with refactoring of Kernel > timer wheel in 4.8. We have a use case wherein our datagram socket > application is sensitive to socket timeout including long timeouts. > > One of

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

2017-08-18 Thread Bart Van Assche
On Fri, 2017-08-18 at 16:01 -0400, Waiman Long wrote: > [ ... ] > Instead of using bd_mutex, a new global blktrace mutex is now used > to protect against concurrent access, creation and destruction of the > blk_trace structure that is used only in the blktrace.c file. As > blktrace files will not

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

2017-08-18 Thread Waiman Long
On 08/18/2017 04:18 PM, Bart Van Assche wrote: > On Fri, 2017-08-18 at 16:01 -0400, Waiman Long wrote: >> [ ... ] >> Instead of using bd_mutex, a new global blktrace mutex is now used >> to protect against concurrent access, creation and destruction of the >> blk_trace structure that is used only

[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.

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

[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

[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

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

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

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|

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 > > ---

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

[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

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

[GIT PULL 00/14] EFI changes for v4.14

2017-08-18 Thread Ard Biesheuvel
Hi all, These are the changes we have queued up in the EFI tree for v4.14. Please pull. Russell has been cc'ed twice on the patches that touch the linker script of the ARM decompressor, and has elected not to respond, so I assume he has no objections. The following changes since commit

[PATCH v2 1/5] dt-bindings: add vendor prefix for Theobroma Systems

2017-08-18 Thread Klaus Goger
Theobroma Systems is a design house specialized in embedded systems and a manufacturer of system-on-modules. Signed-off-by: Klaus Goger --- Changes in v2: None Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH 4.12 55/65] pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver

2017-08-18 Thread Ben Hutchings
On Mon, 2017-08-14 at 18:19 -0700, Greg Kroah-Hartman wrote: > 4.12-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Icenowy Zheng > > commit d81ece747d8727bb8b1cfc9a20dbe62f09a4e35a upstream. > > The PH16 pin has a

[PATCH v5 1/4] can: dev: Add support for limiting configured bitrate

2017-08-18 Thread Franklin S Cooper Jr
Various CAN or CAN-FD IP may be able to run at a faster rate than what the transceiver the CAN node is connected to. This can lead to unexpected errors. However, CAN transceivers typically have fixed limitations and provide no means to discover these limitations at runtime. Therefore, add support

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

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 > --- >

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

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. > >

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

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

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: > >

[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 ---

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

[PATCH 03/14] efi/libstub: arm64: force 'hidden' visibility for section markers

2017-08-18 Thread Ard Biesheuvel
To prevent the compiler from emitting absolute references to the section markers when running in PIC mode, override the visibility to 'hidden' for all contents of asm/sections.h Cc: Matt Fleming Tested-by: Matthias Kaehlcke Signed-off-by: Ard

[PATCH 02/14] efi/libstub: arm64: use hidden attribute for struct screen_info reference

2017-08-18 Thread Ard Biesheuvel
To prevent the compiler from emitting absolute references to screen_info when building position independent code, redeclare the symbol with hidden visibility. Cc: Matt Fleming Tested-by: Matthias Kaehlcke Signed-off-by: Ard Biesheuvel

[PATCH 04/14] efi/libstub: arm64: set -fpie when building the EFI stub

2017-08-18 Thread Ard Biesheuvel
Clang may emit absolute symbol references when building in non-PIC mode, even when using the default 'small' code model, which is already mostly position independent to begin with, due to its use of adrp/add pairs that have a relative range of +/- 4 GB. The remedy is to pass the -fpie flag, which

[PATCH 08/14] arm: efi: remove forbidden values from the PE/COFF header

2017-08-18 Thread Ard Biesheuvel
Bring the PE/COFF header in line with the PE/COFF spec, by setting NumberOfSymbols to 0, and removing the section alignment flags. Cc: Matt Fleming Signed-off-by: Ard Biesheuvel --- arch/arm/boot/compressed/efi-header.S | 6 +++--- 1 file

Re: [PATCH 4.12 47/65] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-18 Thread Ben Hutchings
On Mon, 2017-08-14 at 18:19 -0700, Greg Kroah-Hartman wrote: > 4.12-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Sandeep Singh > > commit e788787ef4f9c24aafefc480a8da5f92b914e5e6 upstream. [...] > ---

[PATCH v2 3/5] dt-bindings: add rk3399-q7 SoM

2017-08-18 Thread Klaus Goger
RK3399-Q7 is a Qseven compatible system-on-module by Theobroma Systems. This adds the module and the EVK baseboard "Haikou" Signed-off-by: Klaus Goger --- Changes in v2: None Documentation/devicetree/bindings/arm/rockchip.txt | 4 1 file changed, 4

Re: [PATCH] Enable reset attack mitigation

2017-08-18 Thread Ard Biesheuvel
On 18 August 2017 at 20:57, Matthew Garrett wrote: > On Fri, Aug 18, 2017 at 12:29 PM, Ard Biesheuvel > wrote: >> On 18 August 2017 at 20:08, Matthew Garrett wrote: >>> If the kernel doesn't synchronously zero the key when dm-crypt

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

2017-08-18 Thread Liang, Kan
> >> > >> 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? > > > > No, disabling THP doesn't help the case. > > Interesting. That particular

Re: bfq/ext4 disk IO hangs forever on resume

2017-08-18 Thread Alex Xu
On Tue, 25 Jul 2017 20:18:07 +0800 Ming Lei wrote as excerpted: > On Mon, Jun 26, 2017 at 11:07 AM, Alex Xu wrote: > > Hi, > > > > I get hangs when resuming when using bfq-mq with ext4 on 4.12-rc6+ > > (currently

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

2017-08-18 Thread Linus Torvalds
On Fri, Aug 18, 2017 at 1:05 PM, Andi Kleen wrote: > > I think what's happening is that it allows more parallelism during wakeup: > > Normally it's like > > CPU 1 CPU 2 CPU 3 > . > > LOCK > wake up tasks on

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, >

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 + >

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

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

[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) > >

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

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

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

[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

[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

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,

[PATCH 13/14] firmware: efi: 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

[PATCH 10/14] arm: efi: replace open coded constants with symbolic ones

2017-08-18 Thread Ard Biesheuvel
Replace the various open coded constants in the EFI PE/COFF header with definitions from pe.h, or expressions based on local symbols. Cc: Matt Fleming Signed-off-by: Ard Biesheuvel --- arch/arm/boot/compressed/efi-header.S | 128

[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

[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

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

2017-08-18 Thread Andi Kleen
> which is hacky, but there's a rationale for it: > > (a) avoid the crazy long wait queues ;) > > (b) we know that migration is *supposed* to be CPU-bound (not IO > bound), so yielding the CPU and retrying may just be the right thing > to do. So this would degenerate into a spin when the

[PATCH v2 4/5] arm64: dts: add RK3399-Q7 (Puma) SoM

2017-08-18 Thread Klaus Goger
The RK3399-Q7 SoM is a Qseven-compatible (70mm x 70mm, MXM-230 connector) system-on-module from Theobroma Systems, featuring the Rockchip RK3399. It provides the following feature set: * up to 4GB DDR3 * on-module SPI-NOR flash * on-module eMMC (with 8-bit 1.8V interface) * SD card (on a

[PATCH v2 0/5] arm64: dts: add RK3399-Q7

2017-08-18 Thread Klaus Goger
Adds the devicetree for the Qseven module RK3399-Q7 and it's EVK baseboard. See https://www.theobroma-systems.com/rk3399-q7/ for more information about the module As it uses fan53 instead of syr82x that has slightly different voltage settings we also overwrite the cpu_b cluster opp settings

[PATCH v2 5/5] arm64: dts: add Haikou baseboard with RK3399-Q7 SoM

2017-08-18 Thread Klaus Goger
Haikou is a Qseven and μQseven baseboard featuring PCIe, USB3 and a video connector for MIPI-DSI/CSI and eDP adapter. This dts is for usage with the RK3399-Q7 SoM Puma. Signed-off-by: Klaus Goger --- Changes in v2: ₋ split baseboard parts in it's own dts -

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

2017-08-18 Thread jeffy
Hi guys, On 08/19/2017 02:14 AM, Tony Lindgren wrote: static irqreturn_t handle_threaded_wake_irq(int irq, void *_wirq) >{ > struct wake_irq *wirq = _wirq; > int res; > > /* Maybe abort suspend? */ > if (irqd_is_wakeup_set(irq_get_irq_data(irq))) { >

RCU boosting and lockdep are not playing nice

2017-08-18 Thread Sebastian Andrzej Siewior
Once RCU-boosting kicks in I see this: |= |WARNING: bad unlock balance detected! |4.13.0-rc5+ #102 Not tainted |- |hackbench/1127 is trying to release lock (rcu_preempt_state) at: |[] rcu_read_unlock_special+0x330/0x340 |but

[PATCH v2 2/5] dt-bindings: add amc6821, isl1208 trivial bindings

2017-08-18 Thread Klaus Goger
TI AMC6821 fan controller and Intersil ISL1208 are trivial devices, so add them to the binding list. Signed-off-by: Klaus Goger --- Changes in v2: None Documentation/devicetree/bindings/trivial-devices.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

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

2017-08-18 Thread Andi Kleen
> I was really hoping that we'd root-cause this and have a solution (and > then apply Tim's patch as a "belt and suspenders" kind of thing), but One thing I wanted to point out is that Tim's patch seems to make several schedule intensive micro benchmarks faster. I think what's happening is that

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

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

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

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

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.

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: [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

[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

[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

[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

[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

[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

[PATCH 11/14] arm: efi: split zImage code and data into separate PE/COFF sections

2017-08-18 Thread Ard Biesheuvel
To prevent unintended modifications to the kernel text (malicious or otherwise) while running the EFI stub, describe the kernel image as two separate sections: a .text section with read-execute permissions, covering .text, .rodata, .piggytext and the GOT sections (which the stub does not care

[PATCH 06/14] efi/reboot: Fall back to original power-off method if EFI_RESET_SHUTDOWN returns

2017-08-18 Thread Ard Biesheuvel
From: Hans de Goede Commit 44be28e9dd98 ("x86/reboot: Add EFI reboot quirk for ACPI Hardware Reduced flag") sets pm_power_off to efi_power_off() when the acpi_gbl_reduced_hardware flag is set. According to its commit message this is necessary because: "BayTrail-T class of

[PATCH 09/14] arm: efi: remove pointless dummy .reloc section

2017-08-18 Thread Ard Biesheuvel
The kernel's EFI PE/COFF header contains a dummy .reloc section, and an explanatory comment that claims that this is required for the EFI application loader to accept the Image as a relocatable image (i.e., one that can be loaded at any offset and fixed up in place) This was inherited from the

[PATCH v4] 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(>bd_mutex/1); lock(s_active#228); lock(>bd_mutex); *** DEADLOCK

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

2017-08-18 Thread Joe Lawrence
On 08/17/2017 10:05 AM, Petr Mladek wrote: > On Mon 2017-08-14 16:02:43, Joe Lawrence wrote: >> [ ... snip ... ] >> +/* Allocate a new shadow variable for use inside the lock below */ >> +new_shadow = kzalloc(size + sizeof(*new_shadow), gfp_flags); > > We should print an error message

[PATCH v5 2/4] dt-bindings: can: can-transceiver: Document new binding

2017-08-18 Thread Franklin S Cooper Jr
Add documentation to describe usage of the new can-transceiver binding. This new binding is applicable for any CAN device therefore it exists as its own document. Signed-off-by: Franklin S Cooper Jr Acked-by: Rob Herring --- Version 5 changes: Remove @ symbol

Re: [PATCH] Enable reset attack mitigation

2017-08-18 Thread Lukas Wunner
On Fri, Aug 18, 2017 at 12:08:34PM -0700, Matthew Garrett wrote: > On Fri, Aug 18, 2017 at 11:52 AM, Ard Biesheuvel > wrote: > > So how would that work with, e.g., the keys for your encrypted file > > system? Surely, you can't expect the kernel to drop that secret when

[GIT PULL] xfs: fixes for 4.13-rc6

2017-08-18 Thread Darrick J. Wong
Hi Linus, A handful more bug fixes for you today. --Darrick The following changes since commit 56bdf855e676f1f2ed7033f288f57dfd315725ba: xfs: Fix per-inode DAX flag inheritance (2017-08-04 13:43:36 -0700) are available in the git repository at:

  1   2   3   4   5   6   7   8   9   10   >