Re: rowhammer protection [was Re: Getting interrupt every million cache misses]

2016-10-28 Thread Pavel Machek
Hi! > > I agree this needs to be tunable (and with the other suggestions). But > > this is actually not the most important tunable: the detection > > threshold (rh_attr.sample_period) should be way more important. > > So being totally ignorant of the detail of how rowhammer abuses the DDR >

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-28 Thread Hannes Reinecke
On 10/28/2016 11:53 AM, Steffen Maier wrote: > > > On 10/13/2016 06:24 PM, Johannes Thumshirn wrote: >> On Thu, Oct 13, 2016 at 05:15:25PM +0200, Steffen Maier wrote: >>> I'm puzzled. >>> >>> $ git bisect start fc_bsg master > 3087864ce3d7282f59021245d8a5f83ef1caef18 is the first bad

kernel/rcu/tree.c:3026:1: warning: the frame size of 1040 bytes is larger than 1024 bytes

2016-10-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 14970f204b1993af7459d5bd34aaff38dfee6670 commit: 0766f788eb727e2e330d55d30545db65bcf2623f latent_entropy: Mark functions with __latent_entropy date: 3 weeks ago config: i386-randconfig-b0-10281653

Re: [RFC v1 06/14] bus1: util - queue utility library

2016-10-28 Thread Tom Gundersen
On Thu, Oct 27, 2016 at 6:43 PM, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 09:18:02PM +0200, David Herrmann wrote: > >> A bus1 message queue is a FIFO, i.e., messages are linearly ordered by >> the time they were sent. Moreover, atomic delivery of messages to >> multiple queues are

[PATCH] pinctrl: generic: Parse pinmux init nodes if node status is okay

2016-10-28 Thread Laxman Dewangan
During pinmux registration, pinmux table is parsed from DT for making the pinmux table configuration of pins. Parse the only those node whose status is not disabled. This will help on reusing the pin configuration table across platform and disabling the node by status property if that node is not

Re: [PATCH] netfilter: ip_vs_sync: fix bogus maybe-uninitialized warning

2016-10-28 Thread Simon Horman
On Fri, Oct 28, 2016 at 11:34:22AM +0200, Pablo Neira Ayuso wrote: > On Mon, Oct 24, 2016 at 10:47:54PM +0300, Julian Anastasov wrote: > > > > Hello, > > > > On Mon, 24 Oct 2016, Arnd Bergmann wrote: > > > > > Building the ip_vs_sync code with CONFIG_OPTIMIZE_INLINING on x86 > > > confuses

[PATCH 2/2] drm: tilcdc: Correct misspelling in error message

2016-10-28 Thread Daniel Schultz
This error message will be printed when a FIFO underflow irq has triggered. Since this happens sometimes and the error message will be displayed on the console, it should have a correct spelling. Signed-off-by: Daniel Schultz --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1

Re: [PATCH v2 2/2] arm64: dts: hi6220: add resets property into dwmmc nodes

2016-10-28 Thread Jaehoon Chung
Hi, On 10/28/2016 07:19 PM, Leo Yan wrote: > On Fri, Oct 28, 2016 at 06:54:58PM +0900, Jaehoon Chung wrote: > > [...] > > Could you share the log? Is there any log about failure? Sure, please see below log: >>> >>> It's related with -EPROBE_DEFER..I'm not sure but if >>>

Re: [PATCHv4 4/4] arm64: dump: Add checking for writable and exectuable pages

2016-10-28 Thread Ard Biesheuvel
On 27 October 2016 at 17:27, Laura Abbott wrote: > > Page mappings with full RWX permissions are a security risk. x86 > has an option to walk the page tables and dump any bad pages. > (See e1a58320a38d ("x86/mm: Warn on W^X mappings")). Add a similar > implementation for arm64. > > Reviewed-by:

[PATCH 1/2] drm: tilcdc: Add revision handling for FB_CEILING

2016-10-28 Thread Daniel Schultz
The commit d8ff0c63fbcb ("drm/tilcdc: Adjust the FB_CEILING address") added an adjustment of the FB_CEILING address. This is done by decrementing the address by one. On the AM335x (rev 0x4F201000) the framebuffer is rotated left over the display border, because the ceiling address is 8f276fff

Re: rowhammer protection [was Re: Getting interrupt every million cache misses]

2016-10-28 Thread Pavel Machek
Hi! > > I agree this needs to be tunable (and with the other suggestions). But > > this is actually not the most important tunable: the detection > > threshold (rh_attr.sample_period) should be way more important. > > > > And yes, this will all need to be tunable, somehow. But lets verify > >

Re: [RFC v1 08/14] bus1: implement peer management context

2016-10-28 Thread Richard Weinberger
David, Tom, On Wed, Oct 26, 2016 at 9:18 PM, David Herrmann wrote: > +struct bus1_peer *bus1_peer_new(void) > +{ > + static atomic64_t peer_ids = ATOMIC64_INIT(0); > + const struct cred *cred = current_cred(); > + struct bus1_peer *peer; > + struct bus1_user *user; > + >

[PATCH 2/2] tty: serial_core: fix NULL struct tty pointer access in uart_write_wakeup

2016-10-28 Thread Rob Herring
Since commit 761ed4a94582ab29 ("tty: serial_core: convert uart_close to use tty_port_close"), the serial console is broken on various systems and typing "reboot" splats the following on the serial console: INIT: Sending p[ 427.863916] BUG: unable to handle kernel NULL pointer dereference at

Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-28 Thread Paolo Bonzini
On 28/10/2016 13:08, Borislav Petkov wrote: > On Fri, Oct 28, 2016 at 12:17:02PM +0200, Paolo Bonzini wrote: >> Otherwise, if you add a cpuid_count_edx function to processor.h then one >> can do: >> >> entry_>edx &= cpuid_count_edx(7, 0); >> >> which is decent too. > > If you think of

[PATCH 0/2] uart_close related fixes

2016-10-28 Thread Rob Herring
Greg, As discussed, these are the 2 fixes needed to fix regressions with 761ed4a94582ab29 ("tty: serial_core: convert uart_close to use tty_port_close"). Hopefully these fix all the fallout. These apply on top of the previous patch from me which you applied. Rob Geert Uytterhoeven (1):

[PATCH 1/2] tty: serial_core: Fix serial console crash on port shutdown

2016-10-28 Thread Rob Herring
From: Geert Uytterhoeven The port->console flag is always false, as uart_console() is called before the serial console has been registered. Hence for a serial port used as the console, uart_tty_port_shutdown() will still be called when userspace closes the port, powering it down. This may lead

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-28 Thread Arnd Bergmann
On Thursday, October 27, 2016 8:13:08 PM CEST Ulf Hansson wrote: > On 27 October 2016 at 19:43, Jens Axboe wrote: > > On 10/27/2016 11:32 AM, Ulf Hansson wrote: > >> > >> [...] > >> > >>> > >>> I'm hesistant to add a new scheduler because it's very easy to add, very > >>> difficult to get rid of.

Re: [PATCH V2 4/4] gpio: pv88080: Add GPIO function support

2016-10-28 Thread Linus Walleij
On Thu, Oct 27, 2016 at 3:03 AM, Eric Jeong wrote: > From: Eric Jeong > > This patch adds support for PV88080 PMIC GPIOs. > PV88080 has two configurable GPIOs. > > Kconfig and Makefile are updated to reflect support > for PV88080 PMIC GPIO. > > Signed-off-by: Eric Jeong (...) > +static int

Re: [PATCH v6] tty/serial: at91: fix hardware handshake on Atmel platforms

2016-10-28 Thread Greg Kroah-Hartman
On Fri, Oct 28, 2016 at 12:56:09PM +0200, Richard Genoud wrote: > 2016-10-28 11:51 GMT+02:00 Uwe Kleine-König : > > On Fri, Oct 28, 2016 at 01:13:31AM +0200, Alexandre Belloni wrote: > >> On 27/10/2016 at 20:02:29 +0200, Uwe Kleine-König wrote : > >> > Hello Richard, > >> > > >> > On Thu, Oct 27,

Re: [PATCH 0/2] uart_close related fixes

2016-10-28 Thread Greg Kroah-Hartman
On Fri, Oct 28, 2016 at 07:07:46AM -0500, Rob Herring wrote: > Greg, > > As discussed, these are the 2 fixes needed to fix regressions with > 761ed4a94582ab29 ("tty: serial_core: convert uart_close to use > tty_port_close"). Hopefully these fix all the fallout. > > These apply on top of the

Re: [PATCH] netfilter: ip_vs_sync: fix bogus maybe-uninitialized warning

2016-10-28 Thread Pablo Neira Ayuso
On Fri, Oct 28, 2016 at 01:40:23PM +0200, Simon Horman wrote: > On Fri, Oct 28, 2016 at 11:34:22AM +0200, Pablo Neira Ayuso wrote: > > On Mon, Oct 24, 2016 at 10:47:54PM +0300, Julian Anastasov wrote: > > > > > > Hello, > > > > > > On Mon, 24 Oct 2016, Arnd Bergmann wrote: > > > > > > >

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-28 Thread Richard Weinberger
On Fri, Oct 28, 2016 at 2:07 PM, Arnd Bergmann wrote: >> > I don't think that's an accurate statement. In terms of coverage, most >> > drivers do support blk-mq. Anything SCSI, nvme, virtio-blk, SATA runs on >> > (or can run on) top of blk-mq. >> >> Well, I just used "git grep" and found that

Re: [PATCH V2 2/4] mfd: pv88080: MFD core support

2016-10-28 Thread Linus Walleij
On Thu, Oct 27, 2016 at 3:03 AM, Eric Jeong wrote: > +++ b/drivers/mfd/pv88080-i2c.c > + > +static const struct of_device_id pv88080_of_match_table[] = { > + { .compatible = "pvs,pv88080",.data = (void *)TYPE_PV88080_AA }, > + { .compatible = "pvs,pv88080-aa", .data = (void

Re: [PATCH v4 2/2] drm/panel: simple: add support for Sharp LQ150X1LG11 panels

2016-10-28 Thread Peter Rosin
On 2016-10-19 14:31, Thierry Reding wrote: > On Wed, Oct 19, 2016 at 02:27:50PM +0200, Thierry Reding wrote: >> On Tue, Oct 04, 2016 at 05:29:21PM +0200, Peter Rosin wrote: >>> From: Gustaf Lindström >>> >>> The Sharp 15" LQ150X1LG11 panel is an XGA TFT LCD panel. >>> >>> The simple-panel driver

Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

2016-10-28 Thread Arnd Bergmann
On Thursday, October 27, 2016 4:12:54 PM CEST Dmitry Torokhov wrote: > On Thu, Oct 27, 2016 at 03:25:43PM -0700, Deepa Dinamani wrote: > > > If users are forced to update to adapt to the new event format, should > > > we consider more radical changes? For example, does it make sense to > > > send

Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-28 Thread Borislav Petkov
On Fri, Oct 28, 2016 at 02:07:21PM +0200, Paolo Bonzini wrote: > cpuid_count_edx would be just > > static inline unsigned int cpuid_count_edx(unsigned op, unsigned count) > { > unsigned int eax, ebx, ecx, edx; > > cpuid_count(op, count, , , , ); > > return edx; > } Even

Re: [PATCH] miscdevice: introduce builtin_misc_device

2016-10-28 Thread Greg Kroah-Hartman
On Sat, Oct 22, 2016 at 06:36:05PM -0400, Paul Gortmaker wrote: > This is basically the same as module_misc_device but without the > presence of an exit/remove function. Similar in nature to the > commit f309d4443130bf814e991f836e919dca22df37ae ("platform_device: > better support builtin

Re: [PATCH v6 4/6] drm/fence: add in-fences support

2016-10-28 Thread Gustavo Padovan
2016-10-28 Daniel Vetter : > On Thu, Oct 27, 2016 at 05:37:09PM -0200, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > There is now a new property called FENCE_FD attached to every plane > > state that receives the sync_file fd from userspace via the atomic commit > > IOCTL. > > > >

Re: [PATCH v2 2/2] arm64: dts: hi6220: add resets property into dwmmc nodes

2016-10-28 Thread Leo Yan
On Fri, Oct 28, 2016 at 08:52:49PM +0900, Jaehoon Chung wrote: [...] > >> Could you check the below thing.. > >> > >> /* find reset controller when exist */ > >> - pdata->rstc = devm_reset_control_get_optional(dev, NULL); > >> + pdata->rstc =

[PATCH v2 0/8] Support TPS65217 PMIC interrupt in DT

2016-10-28 Thread Milo Kim
TPS65217 interrupt events include push button pressed/released, USB and AC voltage status change. AM335x bone based boards (like BB, BBB, BBG) have common PMIC interrupt pin (named NMI) of AM335x core. This patchset support interrupts in device tree file. v2: Add missing a dt-binding header

[PATCH v2 1/8] ARM: dts: tps65217: Specify the interrupt controller

2016-10-28 Thread Milo Kim
TPS65217 MFD driver supports the IRQ domain to handle the charger input interrupts and push button status event. The interrupt controller enables corresponding IRQ handling in the charger[*] and power button driver[**]. [*] drivers/power/supply/tps65217_charger.c [**]

[PATCH v2 5/8] dt-bindings: mfd: Provide human readable defines for TPS65217 interrupts

2016-10-28 Thread Milo Kim
TPS65217 supports three interrupt sources. This patch enables assigning each IRQ number in the charger and power button node. Then corresponding IRQ will be requested by each driver. Signed-off-by: Milo Kim --- include/dt-bindings/mfd/tps65217.h | 26 ++ 1 file changed,

[PATCH v2 3/8] ARM: dts: tps65217: Add the power button device

2016-10-28 Thread Milo Kim
Support the power button driver and disable it by default. Signed-off-by: Milo Kim --- arch/arm/boot/dts/tps65217.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi index 8f77d0d..02de56b 100644 ---

[PATCH v2 8/8] mfd: tps65217: Fix mismatched interrupt number

2016-10-28 Thread Milo Kim
Enum value of 'tps65217_irq_type' is not matched with DT parsed hwirq number[*]. The MFD driver gets the IRQ data by referencing hwirq, but the value is different. So, irq_to_tps65217_irq() returns mismatched IRQ data. Eventually, the power button driver enables not PB but USB interrupt when it

[PATCH v2 6/8] ARM: dts: am335x: Add the charger interrupt

2016-10-28 Thread Milo Kim
This enables the charger driver gets corresponding IRQ number by using platform_get_irq_byname() helper. Signed-off-by: Milo Kim --- arch/arm/boot/dts/am335x-bone-common.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi

[PATCH v2 7/8] ARM: dts: am335x: Add the power button interrupt

2016-10-28 Thread Milo Kim
This enables the power button driver gets corresponding IRQ number by using platform_get_irq(). Signed-off-by: Milo Kim --- arch/arm/boot/dts/am335x-bone-common.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi

[PATCH v2 4/8] ARM: dts: am335x: Support the PMIC interrupt

2016-10-28 Thread Milo Kim
AM335x bone based boards have the PMIC interrupt named NMI which is connected to TPS65217 device. AM335x main interrupt controller provides it and the number is 7. Signed-off-by: Milo Kim --- arch/arm/boot/dts/am335x-bone-common.dtsi | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH v2 3/3] usb: musb: da8xx: Only execute the OTG workaround when phy in OTG mode

2016-10-28 Thread Alexandre Bailon
On 10/28/2016 04:56 AM, David Lechner wrote: > On 10/26/2016 05:58 AM, Alexandre Bailon wrote: >> When the phy is forced in host mode, only the first hot plug and >> hot remove works. That is actually because the driver execute the >> OTG workaround, whereas it is not applicable in host or device

[PATCH v2 2/8] ARM: dts: tps65217: Add the charger device

2016-10-28 Thread Milo Kim
Support the charger driver and disable it by default. Signed-off-by: Milo Kim --- arch/arm/boot/dts/tps65217.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi index 27935f8..8f77d0d 100644 ---

Re: [PATCH v10 10/19] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-10-28 Thread Alex Williamson
On Fri, 28 Oct 2016 15:33:58 +0800 Jike Song wrote: > On 10/27/2016 05:29 AM, Kirti Wankhede wrote: > > Added blocking notifier to IOMMU TYPE1 driver to notify vendor drivers > > about DMA_UNMAP. > > Exported two APIs vfio_register_notifier() and vfio_unregister_notifier(). > > Vendor driver

Re: [PATCH v10 10/19] vfio iommu: Add blocking notifier to notify DMA_UNMAP

2016-10-28 Thread Kirti Wankhede
On 10/28/2016 1:03 PM, Jike Song wrote: > On 10/27/2016 05:29 AM, Kirti Wankhede wrote: >> >> +/* >> + * This function finds pfn in domain->external_addr_space->pfn_list for >> given >> + * iova range. If pfn exist, notify pfn to registered notifier list. On >> + * receiving notifier

Re: [PATCH] nvmem: sunxi-sid: SID content is not a valid source of randomness

2016-10-28 Thread LABBE Corentin
On Tue, Oct 25, 2016 at 09:06:34AM +0200, Jean-Francois Moine wrote: > On Tue, 25 Oct 2016 07:38:55 +0200 > LABBE Corentin wrote: > > > > On Sat, Oct 22, 2016 at 03:53:28PM +0200, Corentin Labbe wrote: > > > > Since SID's content is constant over reboot, > > > > > > That's not true, at least

Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

2016-10-28 Thread Arnd Bergmann
On Monday, October 17, 2016 8:27:32 PM CEST Deepa Dinamani wrote: > @@ -55,24 +60,24 @@ struct ff_effect_compat { > > static inline size_t input_event_size(void) > { > - return (in_compat_syscall() && !COMPAT_USE_64BIT_TIME) ? > - sizeof(struct input_event_compat) :

Re: [PATCH v2 3/4] input: Deprecate real timestamps beyond year 2106

2016-10-28 Thread Arnd Bergmann
On Friday, October 28, 2016 2:46:42 PM CEST Peter Hutterer wrote: > On Thu, Oct 27, 2016 at 03:24:55PM -0700, Deepa Dinamani wrote: > > On Wed, Oct 26, 2016 at 7:56 PM, Peter Hutterer > > wrote: > > > On Mon, Oct 17, 2016 at 08:27:32PM -0700, Deepa Dinamani wrote: > > > general comment here -

Re: ILP32 for ARM64 - testing with lmbench

2016-10-28 Thread Yury Norov
[Add Steve Ellcey, thanks for testing on ThunderX] Lmbench-3.0-a9 testing is performed on ThunderX machine to check that ILP32 series does not add performance regressions for LP64. Test summary is in the table below. Our measurements doesn't show significant performance regression of LP64 if

[PATCH] scripts/checkpatch: Check for Reviewed-by under --strict

2016-10-28 Thread Chris Wilson
Some subsystem polices have a strict requirement that every patch must have at least one reviewer before being approved for upstream. Since encouraging review is good policy (great review is even better policy!) enforce checking for a Reviewed-by when checkpath is run with --strict (or with

Re: [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-10-28 Thread Baolin Wang
Hi, On 28 October 2016 at 06:00, NeilBrown wrote: > On Thu, Oct 27 2016, Baolin Wang wrote: > >> Hi Felipe, >> >> On 19 October 2016 at 10:37, Baolin Wang wrote: >>> Currently the Linux kernel does not provide any standard integration of this >>> feature that integrates the USB subsystem with

Re: [PATCH 08/15] perf tools: Introduce timestamp_in_usec()

2016-10-28 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 27, 2016 at 04:14:55PM -0700, Joonwoo Park escreveu: > > > On 10/27/2016 01:40 PM, Arnaldo Carvalho de Melo wrote: > > From: Namhyung Kim > > > > Joonwoo reported that there's a mismatch between timestamps in script > > and sched commands. This was because of difference in

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-10-28 Thread Raphael Hertzog
Hi, On Wed, 26 Oct 2016, Miklos Szeredi wrote: > On Tue, Oct 25, 2016 at 1:57 PM, Raphael Hertzog wrote: [ redirect feature enabled by default ] > I think it would be safe to make it the default if upperdir is empty. > Nonempty implies that it was created with old kernel (or it was > crafted

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-10-28 Thread Miklos Szeredi
On Fri, Oct 28, 2016 at 2:56 PM, Raphael Hertzog wrote: > Hi, > > On Wed, 26 Oct 2016, Miklos Szeredi wrote: >> On Tue, Oct 25, 2016 at 1:57 PM, Raphael Hertzog wrote: > > [ redirect feature enabled by default ] > >> I think it would be safe to make it the default if upperdir is empty. >>

Re: [PATCH v2] EDAC: expose per-dimm error counts in sysfs

2016-10-28 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 02:33:32PM -0700, Aaron Miller wrote: > The old 'csrowX' sysfs directories had per-csrow error counters, but the > new 'dimmX' directories do not currently expose error counts. > > EDAC already keeps these counts, add them to sysfs so per-dimm counts > are still available

Re: [RFC v1 08/14] bus1: implement peer management context

2016-10-28 Thread Richard Weinberger
On Wed, Oct 26, 2016 at 9:18 PM, David Herrmann wrote: > + /* initialize constant fields */ > + peer->id = atomic64_inc_return(_ids); > + peer->flags = 0; > + peer->cred = get_cred(current_cred()); > + peer->pid_ns = get_pid_ns(task_active_pid_ns(current)); > +

Re: [PATCH resent v3 2/3] dts: omap5: board-common: enable twl6040 headset jack detection

2016-10-28 Thread Tony Lindgren
* Peter Ujfalusi [161026 01:03]: > On 10/25/16 20:38, H. Nikolaus Schaller wrote: > > Signed-off-by: H. Nikolaus Schaller > > I'm not sure if this is valid for igep0500 as I have not seen the schematics. > It might be safer to enable the jack detection only for omap5-uevm? FYI it's pretty much

Re: [RFC v1 00/14] Bus1 Kernel Message Bus

2016-10-28 Thread Richard Weinberger
On Wed, Oct 26, 2016 at 9:17 PM, David Herrmann wrote: > Hi > > This proposal introduces bus1.ko, a kernel messaging bus. This is not a > request > for inclusion, yet. It is rather an initial draft and a Request For Comments. > > While bus1 emerged out of the kdbus project, bus1 was started from

Re: [RFC v1 08/14] bus1: implement peer management context

2016-10-28 Thread Tom Gundersen
On Fri, Oct 28, 2016 at 2:06 PM, Richard Weinberger wrote: > David, Tom, > > On Wed, Oct 26, 2016 at 9:18 PM, David Herrmann wrote: >> +struct bus1_peer *bus1_peer_new(void) >> +{ >> + static atomic64_t peer_ids = ATOMIC64_INIT(0); >> + const struct cred *cred = current_cred(); >> +

Re: [PATCH v2 3/3] reset: Add the TI SCI reset driver

2016-10-28 Thread Nishanth Menon
On Fri, Oct 28, 2016 at 4:36 AM, Philipp Zabel wrote: > Hi Andrew, > > is there (going to be) as stable branch I can base these on, or should I > just wait until the prerequisite patches appear in arm-soc/for-next? > TISCI is still to be merged.

Re: [RFC v1 08/14] bus1: implement peer management context

2016-10-28 Thread Richard Weinberger
On 28.10.2016 15:18, Tom Gundersen wrote: > On Fri, Oct 28, 2016 at 2:06 PM, Richard Weinberger > wrote: >> David, Tom, >> >> On Wed, Oct 26, 2016 at 9:18 PM, David Herrmann >> wrote: >>> +struct bus1_peer *bus1_peer_new(void) >>> +{ >>> + static atomic64_t peer_ids = ATOMIC64_INIT(0);

Re: [RFC v1 08/14] bus1: implement peer management context

2016-10-28 Thread Tom Gundersen
On Fri, Oct 28, 2016 at 3:05 PM, Richard Weinberger wrote: > On Wed, Oct 26, 2016 at 9:18 PM, David Herrmann wrote: >> + /* initialize constant fields */ >> + peer->id = atomic64_inc_return(_ids); >> + peer->flags = 0; >> + peer->cred = get_cred(current_cred()); >> +

Re: [PATCH v2 1/2] backlight: pwm_bl: Move the checks for initial power state to a separate function

2016-10-28 Thread Philipp Zabel
Hi Peter, Am Donnerstag, den 27.10.2016, 13:01 +0300 schrieb Peter Ujfalusi: > Move the checks to select the initial state for the backlight to a new > function and document the checks we are doing. > > At the same time correct the handling of the case when the GPIO is > initially configured as

Re: common android definition bug in 3.18 kernel

2016-10-28 Thread Patrick Bellasi
On 28-Oct 09:27, Peter Zijlstra wrote: > On Fri, Oct 28, 2016 at 11:00:21AM +0530, Rajesh P8 wrote: > > Hi all, > >   I am currently working on porting eas features using 3.18 common > > android kernel. In file  kernel/sched/fair.c there is no definition > > for the function

Re: [PATCH 08/15] perf tools: Introduce timestamp_in_usec()

2016-10-28 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 28, 2016 at 10:53:38AM -0200, Arnaldo Carvalho de Melo escreveu: > Em Thu, Oct 27, 2016 at 04:14:55PM -0700, Joonwoo Park escreveu: > > > > > > On 10/27/2016 01:40 PM, Arnaldo Carvalho de Melo wrote: > > > From: Namhyung Kim > > > > > > Joonwoo reported that there's a mismatch

Re: [Intel-gfx] [PATCH] scripts/checkpatch: Check for Reviewed-by under --strict

2016-10-28 Thread Jani Nikula
On Fri, 28 Oct 2016, Chris Wilson wrote: > Some subsystem polices have a strict requirement that every patch must > have at least one reviewer before being approved for upstream. Since > encouraging review is good policy (great review is even better policy!) > enforce checking for a Reviewed-by

Re: [RFC v1 06/14] bus1: util - queue utility library

2016-10-28 Thread Peter Zijlstra
On Fri, Oct 28, 2016 at 01:33:25PM +0200, Tom Gundersen wrote: > On Thu, Oct 27, 2016 at 6:43 PM, Peter Zijlstra wrote: > > On Wed, Oct 26, 2016 at 09:18:02PM +0200, David Herrmann wrote: > > > >> A bus1 message queue is a FIFO, i.e., messages are linearly ordered by > >> the time they were sent.

Re: [PATCH 1/3] ARM: dts: exynos: Document eMMC/SD/SDIO devices in Exynos5250 Snow board

2016-10-28 Thread Krzysztof Kozlowski
On Thu, Oct 27, 2016 at 02:11:41PM -0300, Javier Martinez Canillas wrote: > There's a cognitive load to figure out which mmc device node corresponds > to the eMMC flash, uSD card and WiFI SDIO module on the Snow boards. > > So it's better to have comments in the DTS to make this more clear. > >

Re: [PATCH 1/3] ARM: dts: exynos: Document eMMC/SD/SDIO devices in Exynos5250 Snow board

2016-10-28 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/28/2016 10:34 AM, Krzysztof Kozlowski wrote: > On Thu, Oct 27, 2016 at 02:11:41PM -0300, Javier Martinez Canillas wrote: >> There's a cognitive load to figure out which mmc device node corresponds >> to the eMMC flash, uSD card and WiFI SDIO module on the Snow boards. >> >>

Re: Implement complete_all() with swait

2016-10-28 Thread Steven Rostedt
On Fri, 28 Oct 2016 09:17:04 +0200 Daniel Wagner wrote: > > So I went through the list of users and tried to identify which of them > is going to make troubles. I found 4 users which are using > complete_all() while IRQs are disabled. The rest looks like it just > would work nice. I already

Re: [RFC v1 00/14] Bus1 Kernel Message Bus

2016-10-28 Thread Tom Gundersen
On Fri, Oct 28, 2016 at 3:11 PM, Richard Weinberger wrote: > On Wed, Oct 26, 2016 at 9:17 PM, David Herrmann wrote: >> Hi >> >> This proposal introduces bus1.ko, a kernel messaging bus. This is not a >> request >> for inclusion, yet. It is rather an initial draft and a Request For Comments. >>

Re: [PATCH 1/2] ARM: dts: exynos: Use macro for PWM signal polarity in Exynos4 boards

2016-10-28 Thread Krzysztof Kozlowski
On Thu, Oct 27, 2016 at 02:47:17PM -0300, Javier Martinez Canillas wrote: > Using the PWM_POLARITY_INVERTED macro instead of the hardcoded number > 0 makes the DTS easier to read. Eeee PWM_POLARITY_INVERTED = 1 << 0 = 1. And you are replacing 0 with 1. Hm? This is not described at all in

Re: [PATCH 0/5] drm/i915/skl: Backport watermark fixes for 4.8.y

2016-10-28 Thread Greg KH
On Wed, Oct 26, 2016 at 03:36:32PM -0400, Lyude wrote: > Now that these have finally made it into 4.9, it's time to finally backport > these fixes. Skylake has been a mess in multi-monitor setups for a while now > because up until recently we've been updating the watermarks on Skylake just > like

Re: [RFC v1 06/14] bus1: util - queue utility library

2016-10-28 Thread Tom Gundersen
On Fri, Oct 28, 2016 at 3:33 PM, Peter Zijlstra wrote: > On Fri, Oct 28, 2016 at 01:33:25PM +0200, Tom Gundersen wrote: >> On Thu, Oct 27, 2016 at 6:43 PM, Peter Zijlstra wrote: >> > On Wed, Oct 26, 2016 at 09:18:02PM +0200, David Herrmann wrote: >> > >> >> A bus1 message queue is a FIFO, i.e.,

Re: [PATCH 1/2] ARM: dts: exynos: Use macro for PWM signal polarity in Exynos4 boards

2016-10-28 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/28/2016 10:41 AM, Krzysztof Kozlowski wrote: > On Thu, Oct 27, 2016 at 02:47:17PM -0300, Javier Martinez Canillas wrote: >> Using the PWM_POLARITY_INVERTED macro instead of the hardcoded number >> 0 makes the DTS easier to read. > > > Eeee PWM_POLARITY_INVERTED = 1 <<

[PATCH v7 0/4] Enabling Ring 3 MONITOR/MWAIT feature for Knights Landing

2016-10-28 Thread Grzegorz Andrejczuk
These patches enable Intel Xeon Phi x200 feature to use MONITOR/MWAIT instruction in ring 3 (userspace) Patches set MSR 0x140 for all logical CPUs. Then expose it as CPU feature and introduces elf HWCAP capability for x86. Reference:

[PATCH v7 4/4] x86: Add enabling of the R3MWAIT during boot

2016-10-28 Thread Grzegorz Andrejczuk
If processor is Intel Xeon Phi x200 we enable user-level mwait feature. Enabling this feature suppresses invalid-opcode error, when MONITOR/MWAIT is called from ring 3. Signed-off-by: Grzegorz Andrejczuk --- Documentation/kernel-parameters.txt | 5 + arch/x86/kernel/cpu/intel.c |

[PATCH v7 2/4] x86: Use HWCAP2 to expose Xeon Phi ring 3 MWAIT

2016-10-28 Thread Grzegorz Andrejczuk
Add HWCAP2 for x86 and reserve its 1st bit to expose Xeon Phi ring 3 monitor/mwait to userspace apps. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/elf.h | 9 + arch/x86/include/uapi/asm/hwcap2.h | 7 +++ arch/x86/kernel/cpu/common.c | 3 +++ 3 files

[PATCH v7 3/4] x86/cpufeature: Add PHIR3MWAIT to CPU features

2016-10-28 Thread Grzegorz Andrejczuk
Add Intel Xeon Phi x200 (KnightsLanding) cpu feature - ring 3 monitor/mwait Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index

[PATCH v7 1/4] x86/msr: Add MSR(140H) and PHIR3MWAIT bit to msr-info.h

2016-10-28 Thread Grzegorz Andrejczuk
Intel Xeon Phi x200 (codenamed Knights Landing) has MSR MISC_FEATURE_ENABLES 0x140. Setting 2nd bit of this register makes MONITOR and MWAIT instructions do not cause invalid-opcode exception when called from ring different than 0. Hex Dec NameScope 140H 320

Re: [PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-28 Thread Steffen Maier
On 10/28/2016 01:31 PM, Hannes Reinecke wrote: On 10/28/2016 11:53 AM, Steffen Maier wrote: On 10/13/2016 06:24 PM, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:15:25PM +0200, Steffen Maier wrote: I'm puzzled. $ git bisect start fc_bsg master

Re: [RFC v1 08/14] bus1: implement peer management context

2016-10-28 Thread Richard Weinberger
On 28.10.2016 15:23, Tom Gundersen wrote: > On Fri, Oct 28, 2016 at 3:05 PM, Richard Weinberger > wrote: >> On Wed, Oct 26, 2016 at 9:18 PM, David Herrmann >> wrote: >>> + /* initialize constant fields */ >>> + peer->id = atomic64_inc_return(_ids); >>> + peer->flags = 0; >>> +

Re: [RFC v1 06/14] bus1: util - queue utility library

2016-10-28 Thread Peter Zijlstra
On Fri, Oct 28, 2016 at 03:47:58PM +0200, Tom Gundersen wrote: > On Fri, Oct 28, 2016 at 3:33 PM, Peter Zijlstra wrote: > > On Fri, Oct 28, 2016 at 01:33:25PM +0200, Tom Gundersen wrote: > > And this, precisely, is what generates all the complexity found in this > > patch. You want to strictly

Re: [Intel-gfx] [PATCH] scripts/checkpatch: Check for Reviewed-by under --strict

2016-10-28 Thread Chris Wilson
On Fri, Oct 28, 2016 at 04:33:10PM +0300, Jani Nikula wrote: > On Fri, 28 Oct 2016, Chris Wilson wrote: > > Some subsystem polices have a strict requirement that every patch must > > have at least one reviewer before being approved for upstream. Since > > encouraging review is good policy (great

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-28 Thread Jens Axboe
On 10/27/2016 04:27 PM, Linus Walleij wrote: On Thu, Oct 27, 2016 at 11:08 PM, Jens Axboe wrote: blk-mq has evolved to support a variety of devices, there's nothing special about mmc that can't work well within that framework. There is. Read mmc_queue_thread() in drivers/mmc/card/queue.c

[GIT PULL] Btrfs

2016-10-28 Thread Chris Mason
Hi Linus, My for-linus-4.9 has two fixes in it: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus-4.9 My patch fixes the btrfs list_head abuse that we tracked down during Dave Jones' memory corruption investigation. With both Jens and my patches in place, I'm no

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-28 Thread Jens Axboe
On 10/28/2016 01:59 AM, Jan Kara wrote: On Thu 27-10-16 10:26:18, Jens Axboe wrote: On 10/27/2016 03:26 AM, Jan Kara wrote: On Wed 26-10-16 10:12:38, Jens Axboe wrote: On 10/26/2016 10:04 AM, Paolo Valente wrote: Il giorno 26 ott 2016, alle ore 17:32, Jens Axboe ha scritto: On 10/26/2016

Re: [kernel-hardening] rowhammer protection [was Re: Getting interrupt every million cache misses]

2016-10-28 Thread Mark Rutland
Hi, On Fri, Oct 28, 2016 at 01:21:36PM +0200, Pavel Machek wrote: > > Has this been tested on a system vulnerable to rowhammer, and if so, was > > it reliable in mitigating the issue? > > > > Which particular attack codebase was it tested against? > > I have rowhammer-test here, > > commit

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-28 Thread Jens Axboe
On 10/28/2016 12:36 AM, Ulf Hansson wrote: [...] Moreover, I am still trying to understand what's the big deal to why you say no to BFQ as a legacy scheduler. Ideally it shouldn't cause you any maintenance burden and it doesn't make the removal of the legacy blk layer any more difficult,

Re: [kernel-hardening] rowhammer protection [was Re: Getting interrupt every million cache misses]

2016-10-28 Thread Peter Zijlstra
On Fri, Oct 28, 2016 at 03:05:22PM +0100, Mark Rutland wrote: > > > > * the precise semantics of performance counter events varies drastically > > > across implementations. PERF_COUNT_HW_CACHE_MISSES, might only map to > > > one particular level of cache, and/or may not be implemented on all

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-28 Thread Jens Axboe
On 10/28/2016 03:32 AM, Linus Walleij wrote: On Fri, Oct 28, 2016 at 12:27 AM, Linus Walleij wrote: On Thu, Oct 27, 2016 at 11:08 PM, Jens Axboe wrote: blk-mq has evolved to support a variety of devices, there's nothing special about mmc that can't work well within that framework. There

Re: [PATCH net-next 5/5] ipv6: Compute multipath hash for forwarded ICMP errors from offending packet

2016-10-28 Thread Tom Herbert
On Fri, Oct 28, 2016 at 1:32 AM, Jakub Sitnicki wrote: > On Thu, Oct 27, 2016 at 10:35 PM GMT, Tom Herbert wrote: >> On Mon, Oct 24, 2016 at 2:28 AM, Jakub Sitnicki wrote: >>> Same as for the transmit path, let's do our best to ensure that received >>> ICMP errors that may be subject to

Re: [lkp] [block] b1fa1b67c1: BUG: KASAN: null-ptr-deref on address 0000000000000080

2016-10-28 Thread Jens Axboe
On 10/27/2016 08:15 PM, kernel test robot wrote: FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle commit b1fa1b67c176e41eeae2bfcc7df38117976cd92d ("block: hook up writeback throttling") in testcase: boot on test

RE: [v13, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-10-28 Thread Y.B. Lu
> -Original Message- > From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- > ow...@vger.kernel.org] On Behalf Of Scott Wood > Sent: Friday, October 28, 2016 12:46 PM > To: Y.B. Lu; linux-...@vger.kernel.org; ulf.hans...@linaro.org; Arnd > Bergmann > Cc:

Re: [RFC v1 06/14] bus1: util - queue utility library

2016-10-28 Thread Tom Gundersen
On Fri, Oct 28, 2016 at 3:58 PM, Peter Zijlstra wrote: > On Fri, Oct 28, 2016 at 03:47:58PM +0200, Tom Gundersen wrote: >> On Fri, Oct 28, 2016 at 3:33 PM, Peter Zijlstra wrote: >> > On Fri, Oct 28, 2016 at 01:33:25PM +0200, Tom Gundersen wrote: > >> > And this, precisely, is what generates all

Re: tpm_tis regression in 4.9?

2016-10-28 Thread Jarkko Sakkinen
On Thu, Oct 27, 2016 at 05:33:57PM -0700, Andy Lutomirski wrote: > Hi- > > I think this error on my laptop is new on 4.9 kernels: > > [ +0.014696] tpm_tis 00:09: 1.2 TPM (device-id 0xFE, rev-id 2) > [ +0.012228] tpm tpm0: TPM self test failed > [ +0.19] tpm_tis: probe of 00:09 failed with

Re: tpm_tis regression in 4.9?

2016-10-28 Thread Jarkko Sakkinen
On Thu, Oct 27, 2016 at 09:09:16PM -0600, Jason Gunthorpe wrote: > On Thu, Oct 27, 2016 at 05:33:57PM -0700, Andy Lutomirski wrote: > > Hi- > > > > I think this error on my laptop is new on 4.9 kernels: > > > > [ +0.014696] tpm_tis 00:09: 1.2 TPM (device-id 0xFE, rev-id 2) > > [ +0.012228]

Re: [RFC v1 09/14] bus1: provide transaction context for multicasts

2016-10-28 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 09:18:05PM +0200, David Herrmann wrote: > From: Tom Gundersen > > The transaction engine is an object that lives on the stack and is used > to stage and commit multicasts properly. Unlike unicasts, a multicast > cannot just be queued on each destination, but must be

[PATCH] mac80211: Ignore VHT IE from peer with wrong rx_mcs_map

2016-10-28 Thread Filip Matusiak
This is a workaround for VHT-enabled STAs which break the spec and have the VHT-MCS Rx map filled in with value 3 for all eight spacial streams. As per spec, in section 22.1.1 Introduction to the VHT PHY A VHT STA shall support at least single spactial stream VHT-MCSs 0 to 7 (transmit and

[GIT PULL] Re: [PATCH 08/15] perf tools: Introduce timestamp_in_usec()

2016-10-28 Thread Arnaldo Carvalho de Melo
on, as used > elsewhere in tools/perf (tools/perf/util/annotate.h has several > examples). Ingo, I've just signed a perf-core-for-mingo-20161028 with the only change being the patch below, re-run my tests, I think this doesn't introduce any bugs and addresses Joonwoo's concerns, please cons

Re: [RFC][PATCH] arm64: Add support for CONFIG_DEBUG_VIRTUAL

2016-10-28 Thread Mark Rutland
Hi Laura, On Thu, Oct 27, 2016 at 05:18:12PM -0700, Laura Abbott wrote: > x86 has an option CONFIG_DEBUG_VIRTUAL to do additional checks > on virt_to_phys calls. The goal is to catch users who are calling > virt_to_phys on non-linear addresses immediately. As features > such as CONFIG_VMAP_STACK

Re: [PATCH v2 0/3] usb: trivial cleanups with list_first_entry_or_null()

2016-10-28 Thread Masahiro Yamada
Hello Felipe, If this series looks good, can you pick it up please? Thanks, 2016-09-19 1:03 GMT+09:00 Masahiro Yamada : > Replace the chain of list_empty() and list_first_entry() > with list_first_entry_or_null(). > > Changes in v2: > - Split into per-driver patches > > > Masahiro Yamada (3):

Re: [PATCH 1/8] block: add WRITE_BG

2016-10-28 Thread Jens Axboe
On 10/27/2016 12:37 AM, Christoph Hellwig wrote: * non-volatile media on completion. + * WRITE_BGBackground write. This is for background activity like + * the periodic flush and background threshold writeback * */ #define RW_MASK

Re: [PATCH] scripts/checkpatch: Check for Reviewed-by under --strict

2016-10-28 Thread Joe Perches
On Fri, 2016-10-28 at 13:49 +0100, Chris Wilson wrote: > Some subsystem polices have a strict requirement that every patch must > have at least one reviewer before being approved for upstream. Since > encouraging review is good policy (great review is even better policy!) > enforce checking for a

<    5   6   7   8   9   10   11   12   13   14   >