[PATCH 0/2] n2rng: Fine-tuning for n2rng_probe()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 11:00:11 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use devm_kcalloc() Combine substrings for two messages drivers/char/hw_random/n2-drv.c | 12 +--- 1 file changed, 5 insert

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +static void __tmigr_handle_remote(struct tmigr_group *group, unsigned int > cpu, > + u64 now, unsigned long jif, bool walkup) > +{ > + struct timerqueue_node *tmr; > + struct tmigr_group *pare

Re: [PATCH 2/3] jump_label: Provide static_key_slow_inc_nohp()

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Peter Zijlstra wrote: > On Tue, Apr 18, 2017 at 10:50:43PM +0200, Thomas Gleixner wrote: > > On Tue, 18 Apr 2017, Peter Zijlstra wrote: > > > On Tue, Apr 18, 2017 at 12:46:29PM -0400, Steven Rostedt wrote: > > > > On Tue, 18 Apr 2017 15:03:50 +0200 > > > > Peter Zijlstra wrote

[RFC PATCH v2 03/12] x86/apic: Prepare for unifying the interrupt delivery modes setup

2017-04-19 Thread Dou Liyang
There are three positions for initializing the interrupt delivery modes: 1) In IRQ initial function, may setup the through-local-APIC virtual wire mode. 2) In an SMP-capable system, will try to switch to symmetric I/O model when preparing the cpus in native_smp_prepare_cpus(). 3) In UP sys

[PATCH 1/2] n2rng: Use devm_kcalloc() in n2rng_probe()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 10:30:47 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". * Replace the specification of a data structure by a

[PATCH 2/2] n2rng: Combine substrings for two messages in n2rng_probe()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 10:50:04 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/char/hw_random/n2-drv.c | 8

Re: [PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 15:36 +0200, Peter Rosin wrote: > On 2017-04-18 12:06, Philipp Zabel wrote: > > On Thu, 2017-04-13 at 18:43 +0200, Peter Rosin wrote: > >> Allow specifying that a single multiplexer controller can be used to > >> control several parallel multiplexers, thus enabling sharing of

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +#ifdef CONFIG_SMP > +static u64 > +tick_tmigr_idle(struct tick_sched *ts, u64 next_global, u64 next_local) > +{ > + ts->tmigr_idle = 1; > + > + /* > + * If next_global is after next_local, event does not have to > +

Re: [PATCH V4 00/16] Introduce the BFQ I/O scheduler

2017-04-19 Thread Paolo Valente
> Il giorno 12 apr 2017, alle ore 18:23, Paolo Valente > ha scritto: > > Hi, > new patch series, addressing (both) issues raised by Bart [1], and > with block/Makefile fixed as suggested by Bart [2]. > Hi Jens, apparently no complain of any sort on this last series. Do you think we could mak

[PATCH] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-19 Thread Roger Quadros
Some boards [1] leave the PHYs at an invalid state during system power-up or reset thus causing unreliability issues with the PHY which manifests as PHY not being detected or link not functional. To fix this, these PHYs need to be RESET via a GPIO connected to the PHY's RESET pin. Some boards have

Re: [PATCH v2 0/4] ARM: imx: Set LDO regulator supply

2017-04-19 Thread Leonard Crestez
On Tue, 2017-04-04 at 20:04 +0300, Leonard Crestez wrote: > Setting the LDO regulator parent is optional but beneficial. It will cause > the PMIC output voltage to be dynamically set to the minimum input for the > LDOs, this should be more efficient. > > This propagation was introduced by: > commi

[RFC PATCH] apic: drop useless apic_read

2017-04-19 Thread Cao jin
APIC ESR register reading doesn't clear its content. Signed-off-by: Cao jin --- It is also a question represented by a patch: Intel developer manual doesn't say reading will clear it content, so why read it here? arch/x86/kernel/apic/apic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arc

Re: [PATCH] nvmet: convert from kmap to nvmet_copy_from_sgl

2017-04-19 Thread Max Gurtovoy
Hi Logan, On 4/19/2017 2:32 AM, Logan Gunthorpe wrote: This is safer as it doesn't rely on the data being stored in a single page in an sgl. It also aids our effort to start phasing out users of sg_page. See [1]. For this we kmalloc some memory, copy to it and free at the end. Note: we can't a

Re: [PATCH] nvmet: convert from kmap to nvmet_copy_from_sgl

2017-04-19 Thread Johannes Thumshirn
On Wed, Apr 19, 2017 at 12:33:09PM +0300, Max Gurtovoy wrote: > Hi Logan, > > On 4/19/2017 2:32 AM, Logan Gunthorpe wrote: > >This is safer as it doesn't rely on the data being stored in > >a single page in an sgl. > > > >It also aids our effort to start phasing out users of sg_page. See [1]. > >

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Peter Zijlstra wrote: > > +done: > > + raw_spin_unlock(&group->lock); > > + return nextevt; > > +} > > Would it be very onerous to rewrite that into regular loops? That avoids > us having to think (and worry) about blowing our stack. The issue is that this is walking a hi

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 11:09:14AM +0200, Peter Zijlstra wrote: > Would it be very onerous to rewrite that into regular loops? That avoids > us having to think (and worry) about blowing our stack. void walk_groups(bool (*up)(void *), void (*down)(void *), void *data) { struct tmigr_cpu *t

Re: [PATCH] nvmet: convert from kmap to nvmet_copy_from_sgl

2017-04-19 Thread Max Gurtovoy
On 4/19/2017 12:38 PM, Johannes Thumshirn wrote: On Wed, Apr 19, 2017 at 12:33:09PM +0300, Max Gurtovoy wrote: Hi Logan, On 4/19/2017 2:32 AM, Logan Gunthorpe wrote: This is safer as it doesn't rely on the data being stored in a single page in an sgl. It also aids our effort to start phasin

Re: [PATCH V4] x86: call smp vmxoff in smp stop

2017-04-19 Thread Ingo Molnar
* Paolo Bonzini wrote: > > > > On 18/01/2017 12:32, Xishi Qiu wrote: > > > > From: Tiantian Feng > > > > > > > > We need to disable VMX on all CPUs before stop cpu when OS panic, > > > > otherwisewe risk hanging up the machine, because the CPU ignore INIT > > > > signals when VMX is enabled.

Re: [PATCH 1/6] drm: Add writeback connector type

2017-04-19 Thread Brian Starkey
On Tue, Apr 18, 2017 at 09:57:17PM +0200, Boris Brezillon wrote: Hi Brian, On Tue, 18 Apr 2017 18:34:43 +0100 Brian Starkey wrote: >> @@ -214,6 +214,19 @@ struct drm_connector_state { >>struct drm_encoder *best_encoder; >> >>struct drm_atomic_state *state; >> + >> + /** >

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 11:44:45AM +0200, Peter Zijlstra wrote: > On Wed, Apr 19, 2017 at 11:09:14AM +0200, Peter Zijlstra wrote: > > > Would it be very onerous to rewrite that into regular loops? That avoids > > us having to think (and worry) about blowing our stack. > > void walk_groups(bool (*

Re: [PATCH v5 01/32] x86: Documentation for AMD Secure Memory Encryption (SME)

2017-04-19 Thread David Howells
Borislav Petkov wrote: > "Subject: [PATCH v5 01/32] x86: Add documentation for AMD Secure Memory > Encryption (SME)" Or: x86: Document AMD Secure Memory Encryption (SME) support David

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 11:43:01AM +0200, Thomas Gleixner wrote: > On Wed, 19 Apr 2017, Peter Zijlstra wrote: > > > +done: > > > + raw_spin_unlock(&group->lock); > > > + return nextevt; > > > +} > > > > Would it be very onerous to rewrite that into regular loops? That avoids > > us having to think

Re: [PATCH] ARM: dts: rockchip: reuse firefly dtsi

2017-04-19 Thread Heiko Stuebner
Hi Eddie, Am Mittwoch, 19. April 2017, 08:42:09 CEST schrieb Eddie Cai: > 2017-04-19 6:20 GMT+08:00 Heiko Stuebner : > > Hi Eddie, > > > > Am Dienstag, 18. April 2017, 20:15:27 CEST schrieb Eddie Cai: > >> firefly reload is very similar with firefly board, so reuse firefly dtsi > >> > >> Signed-of

Re: [PATCH v3 7/7] ARM: dma-mapping: Remove traces of NOMMU code

2017-04-19 Thread Arnd Bergmann
On Fri, Mar 10, 2017 at 10:23 AM, Vladimir Murzin wrote: > DMA operations for NOMMU case have been just factored out into > separate compilation unit, so don't keep dead code. > > Tested-by: Benjamin Gaignard > Tested-by: Andras Szemzo > Tested-by: Alexandre TORGUE > Signed-off-by: Vladimir Mur

Re: [patch V2 05/10] timer: Retrieve next expiry of pinned/non-pinned timers seperately

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Peter Zijlstra wrote: > On Tue, Apr 18, 2017 at 01:11:07PM +0200, Thomas Gleixner wrote: > > + > > + /* > > +* If the local queue expires first, there is no requirement for > > +* queuing the CPU in the global expiry mechanism. > > The comment doesn't make sense... (

[PATCH] printk: fix lost last line in kmsg dump

2017-04-19 Thread Rabin Vincent
From: Rabin Vincent kmsg_dump_get_buffer() selects the youngest log messages which fit into the provided buffer. When that function determines the correct start index, by looping and calling msg_print_text() with a NULL buffer, it allows the youngest log messages to completely fill the provided

Re: [PATCH v3 6/7] ARM: NOMMU: Set ARM_DMA_MEM_BUFFERABLE for M-class cpus

2017-04-19 Thread Arnd Bergmann
On Fri, Mar 10, 2017 at 10:23 AM, Vladimir Murzin wrote: > Now, we have dedicated non-cacheable region for consistent DMA > operations. However, that region can still be marked as bufferable by > MPU, so it'd be safer to have barriers by default. > > Tested-by: Benjamin Gaignard > Tested-by: Andr

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Sergei Shtylyov
Hello! On 4/19/2017 9:14 AM, Peter Senna Tschudin wrote: We need the SMSC USB3315 clock and regulator to always be initialized. We also need the PHY driver to take the PHY out of reset. This patch extends the existing USB generic nop phy driver to include a new initialization path. A new compa

RE: Reduce Linux boot time on Large scale system

2017-04-19 Thread Noam Camus
>From: Thomas Gleixner [mailto:t...@linutronix.de] >Sent: Wednesday, April 19, 2017 11:58 AM >On Wed, 19 Apr 2017, Peter Zijlstra wrote: >> On Tue, Apr 04, 2017 at 04:39:06PM +, Noam Camus wrote: >> > Hi Peter & Vineet >> > >> > I wish to reduce boot time of my platform ARC/plat-eznps (4K CPU

Re: [PATCH v3 5/7] ARM: NOMMU: Introduce dma operations for noMMU

2017-04-19 Thread Arnd Bergmann
On Fri, Mar 10, 2017 at 10:23 AM, Vladimir Murzin wrote: > R/M classes of cpus can have memory covered by MPU which in turn might > configure RAM as Normal i.e. bufferable and cacheable. It breaks > dma_alloc_coherent() and friends, since data can stuck in caches now > or be buffered. > > This pat

[tip:ras/core] x86/mce: Check MCi_STATUS[MISCV] for usable addr on Intel only

2017-04-19 Thread tip-bot for Borislav Petkov
Commit-ID: c6a9583fb41c8bd017f643d5bc90a0fe0a92fe43 Gitweb: http://git.kernel.org/tip/c6a9583fb41c8bd017f643d5bc90a0fe0a92fe43 Author: Borislav Petkov AuthorDate: Tue, 18 Apr 2017 20:39:24 +0200 Committer: Thomas Gleixner CommitDate: Wed, 19 Apr 2017 12:04:46 +0200 x86/mce: Check MCi_S

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-19 Thread Viresh Kumar
On 18-04-17, 17:01, Sudeep Holla wrote: > No, may be I was not so clear. I am just referring a power controller > that provides say 3 different power domains and are indexed 0 - 2. > The consumer just passes the index along with the phandle for the power > domain info. Ahh, I got you now. Will tak

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-19 Thread Viresh Kumar
On 18-04-17, 17:03, Sudeep Holla wrote: > Was it posted externally ? Was there any objections for that approach ? > IMO that's better approach but if I am late to the party, I would like > to read through the discussions that happened on it(if any) Maybe Stephen can tell more about it. AFAIK, ther

[tip:ras/core] ACPI/APEI: Use setup_deferrable_timer()

2017-04-19 Thread tip-bot for Geliang Tang
Commit-ID: 7237c75b2717d59ebf2c2595d416e16a160154e1 Gitweb: http://git.kernel.org/tip/7237c75b2717d59ebf2c2595d416e16a160154e1 Author: Geliang Tang AuthorDate: Tue, 18 Apr 2017 20:45:28 +0200 Committer: Thomas Gleixner CommitDate: Wed, 19 Apr 2017 12:00:14 +0200 ACPI/APEI: Use setup_de

Re: [PATCH] of: introduce event tracepoints for dynamic device_node lifecyle

2017-04-19 Thread Michael Ellerman
Oliver O'Halloran writes: > On Wed, Apr 19, 2017 at 2:46 AM, Rob Herring wrote: >> On Mon, Apr 17, 2017 at 7:32 PM, Tyrel Datwyler >> wrote: >>> This patch introduces event tracepoints for tracking a device_nodes >>> reference cycle as well as reconfig notifications generated in response >>> to

BITTE ENDEAVOR ZU BENUTZEN FÜR GOTT ..

2017-04-19 Thread teresabl
Liebste Geliebte. Lob Gott, der Höchste. Ich bin Frau Teresa Boigny aus Abidjan Cote D 'Ivoire, ich bin verheiratet zu spät Dr.Lambert Boigny, ich und mein verstorbener Mann war in, Estate Management und auch eine Regierung Estate Building Auftragnehmer vor meinem Mann Tod. Er wurde mit dem Inn

Re: [PATCH] morse code panics for 2.5.65

2017-04-19 Thread Pavel Machek
On Sat 2017-03-11 19:02:20, Oleksij Rempel wrote: > Andrew, Tomas, > > can you please give GPL permission for this code. > > https://old.lwn.net/Articles/25868/ This code is clearly derivative of the GPLed code -- it is not port from other operating system or something...

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +static u64 tmigr_set_cpu_inactive(struct tmigr_group *group, > + struct tmigr_group *child, > + struct tmigr_event *evt, > + unsigned int cpu

Re: [RFC] usb-phy-generic: Add support to SMSC USB3315

2017-04-19 Thread Peter Senna Tschudin
On Wed, Apr 19, 2017 at 01:03:23PM +0300, Sergei Shtylyov wrote: > Hello! > > On 4/19/2017 9:14 AM, Peter Senna Tschudin wrote: > > > We need the SMSC USB3315 clock and regulator to always be initialized. > > We also need the PHY driver to take the PHY out of reset. This patch > > extends the exi

Re: [PATCH V3 1/4] reset: Add API to count number of reset available with device

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Count number of reset phandles available with the device node > to know the resets a given device has. > > Cc: Philipp Zabel > Signed-off-by: Vivek Gautam > --- > drivers/reset/core.c | 23 +++ > include/linux/reset.h

Re: Doubt on first access for PCIe device

2017-04-19 Thread Lorenzo Pieralisi
On Tue, Apr 11, 2017 at 07:45:40PM +0530, abhijit wrote: > > Hi All, > > I was referring Linux code for PCIe enumeration and I have one doubt > w.r.t to very first operation that must be done on device. > > Currently while scanning for device, we directly read vendor ID from > device. But PCIE b

Re: [v6 PATCH 07/21] x86/insn-eval: Add utility function to get segment descriptor

2017-04-19 Thread Borislav Petkov
On Tue, Mar 07, 2017 at 04:32:40PM -0800, Ricardo Neri wrote: > The segment descriptor contains information that is relevant to how linear > address need to be computed. It contains the default size of addresses as > well as the base address of the segment. Thus, given a segment selector, > we ough

Re: [PATCH 0/9] Unify i2c_mux_add_adapter error reporting

2017-04-19 Thread Mauro Carvalho Chehab
Em Mon, 3 Apr 2017 13:27:48 +0200 Peter Rosin escreveu: > On 2017-04-03 12:27, Wolfram Sang wrote: > > On Mon, Apr 03, 2017 at 10:38:29AM +0200, Peter Rosin wrote: > >> Hi! > >> > >> Many users of the i2c_mux_add_adapter interface log a message > >> on failure, but the function already logs suc

Re: [PATCH V3 2/4] reset: Add APIs to manage array of resets

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Many devices may want to request a bunch of resets > and control them. So it's better to manage them as an > array. Add APIs to _get(), _assert(), and _deassert() > an array of reset_control. Thanks! This looks good to me, one small issue be

Re: [PATCH V3 3/4] usb: dwc3: of-simple: Add support to get resets for the device

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Add support to get a list of resets available for the device. > These resets must be kept de-asserted until the device is > in use. > > Cc: Felipe Balbi > Cc: Philipp Zabel > Signed-off-by: Vivek Gautam > --- > drivers/usb/dwc3/dwc3-of-s

Re: [PATCH 3/3] [media] cobalt: Use v4l2_calc_timeperframe helper

2017-04-19 Thread Jose Abreu
Hi Hans, On 31-03-2017 09:59, Jose Abreu wrote: > Hi Hans, > > > On 30-03-2017 14:42, Hans Verkuil wrote: >> Hi Jose, >> >> On 21/03/17 12:49, Jose Abreu wrote: >>> Currently, cobalt driver always returns 60fps in g_parm. >>> This patch uses the new v4l2_calc_timeperframe helper to >>> calculate

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread Catalin Marinas
On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: > On 18 April 2017 at 18:01, Catalin Marinas wrote: > > On Thu, Apr 13, 2017 at 08:33:52PM +0800, dongbo (E) wrote: > >> From: Dong Bo > >> > >> In load_elf_binary(), once the READ_IMPLIES_EXEC flag is set, > >> the flag is propagated

RE: Reduce Linux boot time on Large scale system

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Noam Camus wrote: Please fix your mail client to do proper line wraps around 78 chars and proper citation. Also please trim your replies. There is no point in scrolling through 2 pages of cited mail just to get to your question. > > From: Thomas Gleixner [mailto:t...@linutron

Re: git process question

2017-04-19 Thread Michael Ellerman
Steven Rostedt writes: > Hi Linus, > > I have a minor bug I found and a fix for it. I'm currently putting it > through the grind and will send it to you for this rc release cycle. > > Here's the question. My current linux-next development depends on this > fix. I already posted work to linux-nex

Re: [PATCH V3 4/4] soc/tegra: pmc: Use the new reset APIs to manage reset controllers

2017-04-19 Thread Philipp Zabel
On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: > Make use of reset_control_array_*() set of APIs to manage > an array of reset controllers available with the device. > > Cc: Thierry Reding > Cc: Philipp Zabel > Signed-off-by: Vivek Gautam > --- > drivers/soc/tegra/pmc.c | 99 > +++

Re: [PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-19 Thread Peter Rosin
On 2017-04-19 11:17, Philipp Zabel wrote: > On Tue, 2017-04-18 at 15:36 +0200, Peter Rosin wrote: >> If I got things wrong when I skimmed whatever I came across, and if the >> mmio register is the only mux control option in the stars, it becomes >> less obvious... It's of course still possible to h

Re: [PATCH] fs: Preventing READ_IMPLIES_EXEC Propagation

2017-04-19 Thread Peter Maydell
On 19 April 2017 at 11:33, Catalin Marinas wrote: > On Tue, Apr 18, 2017 at 09:01:52PM +0100, Peter Maydell wrote: >> >> > That's affecting most architectures with a risk of ABI breakage. We >> > could do it on arm64 only, though I'm not yet clear on the ABI >> > implications (at a first look, the

[PATCH 1/3] usb: dwc2: Define PCGCCTL1 register in hw.h

2017-04-19 Thread Razmik Karapetyan
PCGCCTL1 (Power and Clock Control) register will be used for controlling the core`s active clock gating feature. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hw.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/hw.h b/drivers/usb/dwc2/hw.h index 4592012..b726701

[PATCH 2/3] usb: dwc2: Define Active Clock Gating support bit in GHWCFG4

2017-04-19 Thread Razmik Karapetyan
The previously reserved 12th bit in GHWCFG4 now indicates that the controller supports the Dynamic Power Reduction (Active Clock Gating) during no traffic scenarios such as L0, idle, resume and suspend states. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hw.h | 1 + 1 file changed, 1 in

[PATCH 3/3] usb: dwc2: Add dwc2_enable_acg function

2017-04-19 Thread Razmik Karapetyan
Added function for supporting Active Clock Gating functionality. This function checks GHWCFG4 register and if ACG supported, it sets GATEEN bit in PCGCCTL1 register and enables ACG. According to ACG functional specification, enabling of ACG feature in host mode done in host initialization, before

Re: 4.11-rc*: PCI IRQ allocation broken

2017-04-19 Thread Meelis Roos
> On Thu, Apr 13, 2017 at 2:03 PM, Meelis Roos wrote: > >> > This happens on my HP Compaq 8100 Elite SFF PC. While 4.10 works fine, > >> > 4.11.-rc5 and at least back to 4.10.0-10770-g2d6be4abf514 fail to assign > >> > PCI IRQ to multiple devices (no GSI messages in the dmesg). This results > >> >

Re: [PATCH] media: mtk-vcodec: remove informative log

2017-04-19 Thread Mauro Carvalho Chehab
Em Wed, 5 Apr 2017 19:09:59 +0800 Tiffany Lin escreveu: > On Wed, 2017-04-05 at 18:54 +0800, Minghsiu Tsai wrote: > > Driver is stable. Remove DEBUG definition from driver. > > > > There are debug message in /var/log/messages if DEBUG is defined, > > such as: > > [MTK_V4L2] level=0 fops_vcodec_o

[PATCH 0/3] powerpc/mm: Fix kernel protection and implement CONFIG_DEBUG_RODATA on PPC32

2017-04-19 Thread Christophe Leroy
This patch set implements CONFIG_DEBUG_RODATA on Powerpc32 after fixing a few issues related to kernel code page protection. The second patch of the set was initially submitted as standalone. This new version takes into account Michael comments. It is part of the set because it is now based on fun

[PATCH 3/3] powerpc/mm: Implement CONFIG_DEBUG_RODATA on PPC32

2017-04-19 Thread Christophe Leroy
This patch implements CONFIG_DEBUG_RODATA on PPC32. As for CONFIG_DEBUG_PAGEALLOC, it deactivates BAT and LTLB mappings in order to allow page protection setup at the level of each page. As BAT/LTLB mappings are deactivated, their might be performance impact. For this reason, we keep it OFF by de

[PATCH 2/3] powerpc/mm: Fix kernel RAM protection after freeing unused memory on PPC32

2017-04-19 Thread Christophe Leroy
As seen below, allthough the init sections have been freed, the associated memory area is still marked as executable in the page tables. ~ dmesg [5.860093] Freeing unused kernel memory: 592K (c057 - c0604000) ~ cat /sys/kernel/debug/kernel_page_tables ---[ Start of kernel VM ]--- 0xc0

Re: [PATCH v4 3/6] mfd: exynos-lpass: Remove pad retention control

2017-04-19 Thread Marek Szyprowski
Hi Lee, On 2017-04-11 14:02, Lee Jones wrote: On Thu, 23 Mar 2017, Marek Szyprowski wrote: Pad retention should be controlled from pin control driver, so remove it from Exynos LPASS driver. After this change, no more access to PMU regmap is needed, so remove also the code for handling PMU regm

[PATCH 1/3] powerpc/mm: Ensure change_page_attr() doesn't invalidate pinned TLBs

2017-04-19 Thread Christophe Leroy
__change_page_attr() uses flush_tlb_page(). flush_tlb_page() uses tlbie instruction, which also invalidates pinned TLBs, which is not what we expect. This patch modifies the implementation to use flush_tlb_kernel_range() instead. This will make use of tlbia which will preserve pinned TLBs. Signed

Re: [PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-19 Thread Philipp Zabel
On Wed, 2017-04-19 at 12:41 +0200, Peter Rosin wrote: > On 2017-04-19 11:17, Philipp Zabel wrote: > > On Tue, 2017-04-18 at 15:36 +0200, Peter Rosin wrote: > >> If I got things wrong when I skimmed whatever I came across, and if the > >> mmio register is the only mux control option in the stars, it

[PATCH 1/3] usb: dwc2: Update dwc2_handle_incomplete_isoc_in() function

2017-04-19 Thread Razmik Karapetyan
Disabled only that ISOC endpoints,for which interrupt bit was set in the DAINTMSK register. This will allow to minimize incomplete ISOC IN interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v2 1/5] kprobes: convert kprobe_lookup_name() to a function

2017-04-19 Thread 'Naveen N. Rao'
On 2017/04/19 08:48AM, David Laight wrote: > From: Naveen N. Rao > > Sent: 19 April 2017 09:09 > > To: David Laight; Michael Ellerman > > Cc: linux-kernel@vger.kernel.org; linuxppc-...@lists.ozlabs.org; Masami > > Hiramatsu; Ingo Molnar > > Subject: RE: [PATCH v2 1/5] kprobes: convert kprobe_looku

[PATCH 3/3] usb: dwc2: Update GINTSTS_GOUTNAKEFF interrupt handling

2017-04-19 Thread Razmik Karapetyan
Disabled only unmasked endpoints based on DAINTMSK register. This will allow to minimize GINTSTS_GOUTNAKEFF interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/d

[PATCH 2/3] usb: dwc2: Update dwc2_handle_incomplete_isoc_out() function

2017-04-19 Thread Razmik Karapetyan
In 'for' loop skipped masked and non-ISOC EPs. Also breaked 'for' loop after setting SGOUTNAK in DCTL,when one enabled EP was detected. This will allow to minimize incomplete ISOC OUT interrupt handling. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 14 -- 1 file

Re: [PATCH 28/38] Annotate hardware config module parameters in drivers/staging/media/

2017-04-19 Thread Mauro Carvalho Chehab
Em Wed, 05 Apr 2017 18:01:01 +0100 David Howells escreveu: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access by

Re: [PATCH 13/38] Annotate hardware config module parameters in drivers/media/

2017-04-19 Thread Mauro Carvalho Chehab
Em Wed, 05 Apr 2017 17:58:41 +0100 David Howells escreveu: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access by

Re: [Query] Enabling parent device clock from resume_noirq

2017-04-19 Thread Kishon Vijay Abraham I
Hi, On Wednesday 19 April 2017 01:35 AM, Grygorii Strashko wrote: > + linux-pm > > On 04/18/2017 01:07 AM, Kishon Vijay Abraham I wrote: >> Hi, >> >> resume_noirq callbacks are used in PCIe core to restore PCI state (this >> accesses PCI module). So the clocks of PCI module has to be enabled befo

[PATCH] usb: dwc2: Set AHB burst size to INCR

2017-04-19 Thread Razmik Karapetyan
Changed AHB burst size from INCR4 to INCR by default. With this value driver show excellent DMA performance. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 2 +- drivers/usb/dwc2/params.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/ga

[PATCH 1/2] usb: dwc2: Remove unnecessary debug prints

2017-04-19 Thread Razmik Karapetyan
Removed unnecessary debug prints about DMA mode for host side from dwc2_gahbcfg_init() function. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/hcd.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index

Re: [PATCH] make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-19 Thread James Morris
On Tue, 18 Apr 2017, Matt Brown wrote: > This patch reproduces GRKERNSEC_HARDEN_TTY functionality from the grsecurity > project in-kernel. It seems like an ugly hack to an ugly feature (CAP_SYS_ADMIN barely makes sense here), and rather than sprinkling these types of things throughout the kerne

Re: [RFC PATCH v0.2] PCI: Add support for tango PCIe host bridge

2017-04-19 Thread Mason
On 12/04/2017 11:59, Marc Zyngier wrote: > And that's *wrong*. I've repeatedly said that you only need to deal with > *your* irqchip. End of story. Nowhere else. Please leave the MSI irqchip > alone, it is very unlikely that you have to provide anything at all to it. Hello Marc, I am hoping you

Re: [PATCH v13 02/10] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-04-19 Thread Peter Rosin
On 2017-04-19 13:05, Philipp Zabel wrote: > On Wed, 2017-04-19 at 12:41 +0200, Peter Rosin wrote: >> On 2017-04-19 11:17, Philipp Zabel wrote: >>> On Tue, 2017-04-18 at 15:36 +0200, Peter Rosin wrote: If I got things wrong when I skimmed whatever I came across, and if the mmio register is

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-04-19 Thread Heikki Krogerus
Hi, On Tue, Apr 18, 2017 at 11:52:33AM -0700, Badhri Jagan Sridharan wrote: > Hi Heikki, > > I have a question regarding the preferred_role node. > > +What: /sys/class/typec//preferred_role > +Date: March 2017 > +Contact: Heikki Krogerus > +Description: > +

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Peter Zijlstra
So the thing Maz complained about is because KVM assumes synchronize_srcu() is 'free' when there is no srcu_read_lock() activity. This series 'breaks' that. I've not looked hard enough at the new SRCU to see if its possible to re-instate that feature.

Re: [PATCH v2] usb: dwc3: add disable u2mac linestate check quirk

2017-04-19 Thread wlf
Dear Guenter, 在 2017年04月19日 13:15, Guenter Roeck 写道: On Tue, Apr 18, 2017 at 8:59 PM, wlf wrote: Dear Guenter, 在 2017年04月18日 21:18, Guenter Roeck 写道: On Mon, Apr 17, 2017 at 10:17 PM, William Wu wrote: This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Ref

Re: [PATCH 1/6] drm: Add writeback connector type

2017-04-19 Thread Boris Brezillon
On Wed, 19 Apr 2017 10:51:23 +0100 Brian Starkey wrote: > On Tue, Apr 18, 2017 at 09:57:17PM +0200, Boris Brezillon wrote: > >Hi Brian, > > > >On Tue, 18 Apr 2017 18:34:43 +0100 > >Brian Starkey wrote: > > > >> >> @@ -214,6 +214,19 @@ struct drm_connector_state { > >> >> struct drm_enc

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 01:28:45PM +0200, Peter Zijlstra wrote: > > So the thing Maz complained about is because KVM assumes > synchronize_srcu() is 'free' when there is no srcu_read_lock() activity. > This series 'breaks' that. Could've been call_srcu() instead. Looking at the code that trigger

[PATCH] usb: dwc2: Rename function names

2017-04-19 Thread Razmik Karapetyan
Renamed __orr32 and __bic32 function names to more descriptive dwc2_set_bit and dwc2_clear_bit respectively. Signed-off-by: Razmik Karapetyan --- drivers/usb/dwc2/gadget.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/usb

Re: [PATCH] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-19 Thread Andrew Lunn
On Wed, Apr 19, 2017 at 12:24:26PM +0300, Roger Quadros wrote: > Some boards [1] leave the PHYs at an invalid state > during system power-up or reset thus causing unreliability > issues with the PHY which manifests as PHY not being detected > or link not functional. To fix this, these PHYs need to

Re: [RFC 1/2] dt-bindings: add mmio-based syscon mux controller DT bindings

2017-04-19 Thread Philipp Zabel
On Thu, 2017-04-13 at 18:03 -0700, Steve Longerbeam wrote: > > On 04/13/2017 08:48 AM, Philipp Zabel wrote: > > This adds device tree binding documentation for mmio-based syscon > > multiplexers controlled by a single bitfield in a syscon register > > range. > > Nice! (you beat me to it, I was ab

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-19 Thread Viresh Kumar
On 18-04-17, 17:01, Sudeep Holla wrote: > Understood. I would incline towards reusing regulators we that's what is It can be just a regulator, but it can be anything else as well. That entity may have its own clock/volt/current tunables, etc. > changed behind the scene. Calling this operating per

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Christian Borntraeger
On 04/19/2017 01:28 PM, Peter Zijlstra wrote: > > So the thing Maz complained about is because KVM assumes > synchronize_srcu() is 'free' when there is no srcu_read_lock() activity. > This series 'breaks' that. Why is such a behaviour change not mentioned in the cover letter? I could not find any

Re: [PATCH V3 1/4] reset: Add API to count number of reset available with device

2017-04-19 Thread Vivek Gautam
On 04/19/2017 03:55 PM, Philipp Zabel wrote: On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: Count number of reset phandles available with the device node to know the resets a given device has. Cc: Philipp Zabel Signed-off-by: Vivek Gautam --- drivers/reset/core.c | 23 +++

Re: [RFC 2/2] mux: mmio-based syscon mux controller

2017-04-19 Thread Philipp Zabel
On Thu, 2017-04-13 at 18:09 -0700, Steve Longerbeam wrote: > > On 04/13/2017 08:48 AM, Philipp Zabel wrote: > > This adds a driver for mmio-based syscon multiplexers controlled by a > > single bitfield in a syscon register range. > > > > Signed-off-by: Philipp Zabel > > --- > > drivers/mux/Kcon

Re: copy_page() on a kmalloc-ed page with DEBUG_SLAB enabled (was "zram: do not use copy_page with non-page alinged address")

2017-04-19 Thread Matthew Wilcox
On Wed, Apr 19, 2017 at 03:02:37PM +0900, Minchan Kim wrote: > On Tue, Apr 18, 2017 at 09:33:07AM +0200, Michal Hocko wrote: > > I do not follow. Why would you need kmap for something that is already > > in the kernel space? > > Because it can work with highmem pages. That's copy_user_highpage().

Re: [PATCH V3 2/4] reset: Add APIs to manage array of resets

2017-04-19 Thread Vivek Gautam
Hi Philipp, On 04/19/2017 04:01 PM, Philipp Zabel wrote: On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: Many devices may want to request a bunch of resets and control them. So it's better to manage them as an array. Add APIs to _get(), _assert(), and _deassert() an array of reset_contr

Re: [PATCH v3 0/7] ARM: Fix dma_alloc_coherent() and friends for NOMMU

2017-04-19 Thread Joerg Roedel
On Tue, Apr 18, 2017 at 01:51:35PM +0100, Vladimir Murzin wrote: > FYI, nothing has changed since last "ping" - András and Alexandre are still > dependant on this series to safely enable DMA on their platforms. It is really > scary that these patches do not move forward even though they are suppose

Re: [PATCH] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-19 Thread Roger Quadros
Hi, On 19/04/17 14:39, Andrew Lunn wrote: > On Wed, Apr 19, 2017 at 12:24:26PM +0300, Roger Quadros wrote: >> Some boards [1] leave the PHYs at an invalid state >> during system power-up or reset thus causing unreliability >> issues with the PHY which manifests as PHY not being detected >> or link

Re: [RFC 2/2] mux: mmio-based syscon mux controller

2017-04-19 Thread Peter Rosin
On 2017-04-19 13:50, Philipp Zabel wrote: > On Thu, 2017-04-13 at 18:09 -0700, Steve Longerbeam wrote: >> >> On 04/13/2017 08:48 AM, Philipp Zabel wrote: >>> This adds a driver for mmio-based syscon multiplexers controlled by a >>> single bitfield in a syscon register range. >>> >>> Signed-off-by:

Re: [PATCH 1/3] mm: consider zone which is not fully populated to have holes

2017-04-19 Thread Vlastimil Babka
On 04/18/2017 11:27 AM, Michal Hocko wrote: > On Tue 18-04-17 10:45:23, Vlastimil Babka wrote: >> On 04/15/2017 02:17 PM, Michal Hocko wrote: >>> From: Michal Hocko >>> >> >> My issue with this is that PageReserved can be also set for other >> reasons than offlined block, e.g. by a random driver.

Re: [PATCH] Revert "arm64: Increase the max granular size"

2017-04-19 Thread Catalin Marinas
On Tue, Apr 18, 2017 at 10:35:02PM +0530, Sunil Kovvuri wrote: > On Tue, Apr 18, 2017 at 8:18 PM, Catalin Marinas > wrote: > > On Mon, Apr 17, 2017 at 04:08:52PM +0530, Sunil Kovvuri wrote: > >> >> >> Do you have an explanation on the performance variation when > >> >> >> L1_CACHE_BYTES is

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-19 Thread Peter Rosin
On 2017-04-19 11:06, Philipp Zabel wrote: > On Thu, 2017-04-13 at 18:43 +0200, Peter Rosin wrote: >> Add a new minimalistic subsystem that handles multiplexer controllers. >> When multiplexers are used in various places in the kernel, and the >> same multiplexer controller can be used for several i

Re: [tip:x86/platform 1/1] platform_bt.c:undefined reference to `gpiod_add_lookup_table'

2017-04-19 Thread Andy Shevchenko
On Wed, 2017-04-19 at 11:01 +0200, Linus Walleij wrote: > On Tue, Apr 18, 2017 at 3:41 PM, Andy Shevchenko > wrote: > > On Fri, 2017-04-07 at 12:36 +0200, Linus Walleij wrote: > > > They return NULL if the GPIO is not there, or if the > > > GPIO library is compiled out (as of HEAD, due to the > >

Re: [PATCH V3 3/4] usb: dwc3: of-simple: Add support to get resets for the device

2017-04-19 Thread Vivek Gautam
On 04/19/2017 04:02 PM, Philipp Zabel wrote: On Tue, 2017-04-18 at 16:51 +0530, Vivek Gautam wrote: Add support to get a list of resets available for the device. These resets must be kept de-asserted until the device is in use. Cc: Felipe Balbi Cc: Philipp Zabel Signed-off-by: Vivek Gautam

Re: [PATCH] fpga: allow to compile-test Altera FPGA bridge drivers

2017-04-19 Thread Tobias Klauser
Hi Matthew Thanks for the detailed analysis! On 2017-04-18 at 17:27:15 +0200, matthew.gerl...@linux.intel.com wrote: [...] > >[auto build test WARNING on linus/master] > >[also build test WARNING on v4.11-rc6 next-20170411] > >[if your patch is applied to the wrong git tree, please drop us a

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 01:48:08PM +0200, Christian Borntraeger wrote: > On 04/19/2017 01:28 PM, Peter Zijlstra wrote: > > > > So the thing Maz complained about is because KVM assumes > > synchronize_srcu() is 'free' when there is no srcu_read_lock() activity. > > This series 'breaks' that. > > W

[PATCH v3] usb: dwc3: add disable u2mac linestate check quirk

2017-04-19 Thread William Wu
This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Refer the dwc3 databook, we can use it for some special platforms if the linestate not reflect the expected line state(J) during transmission. When use this quirk, the controller implements a fixed 40-bit TxEndDelay

<    1   2   3   4   5   6   7   8   9   10   >