Re: [PATCH v3 3/3] arm/arm64: signal SIBGUS and inject SEA Error

2017-05-10 Thread gengdongjiu
Hi Christoffer, On 2017/5/10 20:20, Christoffer Dall wrote: > On Wed, May 10, 2017 at 05:15:04PM +0800, gengdongjiu wrote: >> Thanks James's explanation. >> >> Hi Christoffer, >> >> On 2017/5/9 22:28, James Morse wrote: >>> Hi Christoffer, >>> >>> On 08/05/17 18:54, Christoffer Dall wrote: On

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread Karel Zak
On Tue, May 09, 2017 at 10:03:43AM +0200, Miklos Szeredi wrote: > On Tue, May 9, 2017 at 12:57 AM, David Howells wrote: > > Miklos Szeredi wrote: > > > >> > + (3) Validate and pre-process the mount context. > >> > >> (3.5) Create super block > >> > >> I think this need to be triggered by somethin

Re: [PATCH 7/7] DWARF: add the config option

2017-05-10 Thread Josh Poimboeuf
On Wed, May 10, 2017 at 09:39:39AM +0200, Jiri Slaby wrote: > OTOH, TBH, I am not sure KASAN can be enabled for dwarf.c, the same as > holds now for the rest of the current unwinding: > KASAN_SANITIZE_dumpstack.o := n > KASAN_SANITIZE_dumpstack_$(BITS).o

Re: [PATCH 7/7] DWARF: add the config option

2017-05-10 Thread Jiri Slaby
On 05/10/2017, 02:42 PM, Josh Poimboeuf wrote: > On Wed, May 10, 2017 at 09:39:39AM +0200, Jiri Slaby wrote: >> OTOH, TBH, I am not sure KASAN can be enabled for dwarf.c, the same as >> holds now for the rest of the current unwinding: >> KASAN_SANITIZE_dumpstack.o := n

[GIT PULL] fuse update for 4.12

2017-05-10 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-linus This contains support for pid namespaces from Seth and refcount_t work from Elena. Thanks, Miklos --- Elena Reshetova (3): fuse: convert fuse_file.count from atomic_t to refcount_t

Re: [PATCH v2 3/3] tpm: vtpm_proxy: Add ioctl to request locality prepended to command

2017-05-10 Thread Jarkko Sakkinen
On Tue, May 09, 2017 at 11:49:05AM -0400, Stefan Berger wrote: > On 05/08/2017 07:43 PM, Jarkko Sakkinen wrote: > > On Thu, May 04, 2017 at 04:03:18PM -0400, Stefan Berger wrote: > > > On 05/04/2017 02:40 PM, Jarkko Sakkinen wrote: > > > > On Thu, May 04, 2017 at 07:14:27AM -0400, Stefan Berger wro

Re: [PATCH v4 06/27] fs: check for writeback errors after syncing out buffers in generic_file_fsync

2017-05-10 Thread Matthew Wilcox
On Tue, May 09, 2017 at 11:49:09AM -0400, Jeff Layton wrote: > ext2 currently does a test+clear of the AS_EIO flag, which is > is problematic for some coming changes. > > What we really need to do instead is call filemap_check_errors > in __generic_file_fsync after syncing out the buffers. That >

[PATCH v4 0/5] Platform driver support for 'amd5536udc' driver

2017-05-10 Thread Raviteja Garimella
Changes in PATCH v4: === -- Rebased with Balbi's git repo testing/next branch. -- Removed a patch that replaces pci_pool calls with dma_pool since the change is already pushed by other submitter. Resending PATCH v3 after rebasing with testing/next branch in Felipe Balbi's git

[PATCH v4 2/5] usb: gadget: udc: make debug prints compatible with both pci and platform devices

2017-05-10 Thread Raviteja Garimella
This patch adds a struct device member to UDC data structure and makes changes to the arguments of dev_err and dev_dbg calls so that the debug prints work for both pci and platform devices. Signed-off-by: Raviteja Garimella --- drivers/usb/gadget/udc/amd5536udc.h | 4 +++- drivers/usb/gadge

[PATCH v4 5/5] usb: gadget: udc: Add Synopsys UDC Platform driver

2017-05-10 Thread Raviteja Garimella
This patch adds platform driver support for Synopsys UDC. A new driver file (snps_udc_plat.c) is created for this purpose where the platform driver registration is done based on OF node. Currently, UDC integrated into Broadcom's iProc SoCs (Northstar2 and Cygnus) work with this driver. New membe

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

2017-05-10 Thread Jarkko Sakkinen
Hi On Wed, May 10, 2017 at 01:23:27PM +1000, Stephen Rothwell wrote: > Hi Jarkko, > > After merging the tpmdd tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_init': > drivers/char/tpm/tpm_tis.c:193:23: error: passing

[PATCH v4 4/5] dt-bindings: usb: DT bindings documentation for Broadcom IPROC USB Device controller.

2017-05-10 Thread Raviteja Garimella
The device node is used for UDCs integrated into Broadcom's iProc family of SoCs'. The UDC is based on Synopsys Designware Cores AHB Subsystem USB Device Controller IP. Signed-off-by: Raviteja Garimella --- Documentation/devicetree/bindings/usb/iproc-udc.txt | 21 + 1 file ch

[PATCH v4 3/5] usb: gadget: udc: Provide correct arguments for 'dma_pool_create'

2017-05-10 Thread Raviteja Garimella
Change the argument from NULL to a struct device for the dma_pool_create call during dma init. Signed-off-by: Raviteja Garimella --- drivers/usb/gadget/udc/snps_udc_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/snps_udc_core.c b/drivers/us

[PATCH] sched/deadline: Zero out positive runtime after throttling constrained tasks

2017-05-10 Thread Xunlei Pang
When a contrained task is throttled by dl_check_constrained_dl(), it may carry the remaining positive runtime, as a result when dl_task_timer() fires and calls replenish_dl_entity(), it will not be replenished correctly due to the positive dl_se->runtime. This patch assigns its runtime to 0 if pos

[PATCH] crypto: glue_helper: remove redundant check on nbytes < bsize

2017-05-10 Thread Colin King
From: Colin Ian King There is a check to see if nbytes < bsize (and a jump to label 'done' if it is true) inside the proceeding do-while loop so it is impossible for the second nbytes < bsize check to be true, hence is it redundant and can be removed. Remove it. Detected by CoverityScan, CID#712

[PATCH v1 0/3] Add support for Cavium CNN55XX crypto adapters.

2017-05-10 Thread Srikanth Jampala
Hi Herbert, This series adds support for Cavium CNN55XX crypto adapters. CNN55XX crypto adapters belongs to Cavium NITROX family series, able to accelerates both Symmetric and Asymmetric crypto workloads. These adapters have crypto cores for Symmetric and Asymmetric crypto operations, and

Re: [patch] fs, epoll: short circuit fetching events if thread has been killed

2017-05-10 Thread Michal Hocko
On Wed 03-05-17 17:22:53, David Rientjes wrote: [...] > @@ -1748,6 +1748,16 @@ static int ep_poll(struct eventpoll *ep, struct > epoll_event __user *events, >* to TASK_INTERRUPTIBLE before doing the checks. >*/ > set_current_sta

[PATCH v1 2/3] crypto: cavium - Add debugfs support in CNN55XX driver

2017-05-10 Thread Srikanth Jampala
Add debugfs support in CNN55XX Physical Function driver. Provides hardware counters and firmware information. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_csr.h | 5 ++ drivers/crypto/cavium/nitrox/nitrox_dev.h | 3 + drivers/crypto/cavium/nitrox/nitrox_main.c |

[PATCH v1 1/3] crypto: cavium - Add support for CNN55XX adapters.

2017-05-10 Thread Srikanth Jampala
Add Physical Function driver support for CNN55XX crypto adapters. CNN55XX adapters belongs to Cavium NITROX family series, which accelerate both Symmetric and Asymmetric crypto workloads. These adapters have crypto engines that need firmware to become operational. Signed-off-by: Srikanth Jampala

[PATCH v1 3/3] crypto: cavium - Register the CNN55XX supported crypto algorithms.

2017-05-10 Thread Srikanth Jampala
Register the Symmetric crypto algorithms supported by CNN55XX driver with crypto subsystem. The following Symmetric crypto algorithms are supported, - aes with cbc, ecb, cfb, xts, ctr and cts modes - des3_ede with cbc and ecb modes Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/n

Re: [PATCH v2 2/4] iio: accel: adxl345_core: Introduce set_mode and data_ready functions

2017-05-10 Thread Eva Rachel Retuya
On Tue, May 02, 2017 at 05:32:07PM +0100, Jonathan Cameron wrote: > On 02/05/17 12:39, Eva Rachel Retuya wrote: > > On Mon, May 01, 2017 at 01:22:52AM +0100, Jonathan Cameron wrote: > > Hello Jonathan, > > [...] > >>> +static int adxl345_set_mode(struct adxl345_data *data, u8 mode) > >>> +{ > >>> +

Re: [PATCH] mm/khugepaged: Add missed tracepoint for collapse_huge_page_swapin

2017-05-10 Thread Vlastimil Babka
On 05/07/2017 12:18 PM, SeongJae Park wrote: > One return case of `__collapse_huge_page_swapin()` does not invoke > tracepoint while every other return case does. This commit adds a > tracepoint invocation for the case. > > Signed-off-by: SeongJae Park Right. But extra points by turning all of

Re: [PATCH 7/7] DWARF: add the config option

2017-05-10 Thread Josh Poimboeuf
On Wed, May 10, 2017 at 10:15:09AM +0200, Jiri Slaby wrote: > > I'm, ahem, highly skeptical to creating our own unwinding data > > format unless there is *documented, supported, and tested* way to > > force the compiler to *automatically* fall back to frame pointers > > any time there may be comple

Re: [PATCH v4 1/3] KASLR: Parse all memmap entries in cmdline

2017-05-10 Thread Baoquan He
On 05/10/17 at 02:29pm, Thomas Gleixner wrote: > On Tue, 9 May 2017, Baoquan He wrote: > > > In commit: > > > > f28442497b5c ("x86/boot: Fix KASLR and memmap= collision") > > > > ... the memmap= option is parsed so that KASLR can avoid those reserved > > regions. It uses cmdline_find_option()

Re: [PATCH] i2c-designware: add i2c gpio recovery option

2017-05-10 Thread Andy Shevchenko
On Wed, 2017-05-10 at 13:57 +0200, Tim Sander wrote: > This patch contains much input from Phil Reid and has been tested > on Intel/Altera Cyclone V SOC Hardware with Altera GPIO's for the  > SCL and SDA GPIO's. I am still a little unsure about the recover > in the timeout case (i2c-designware-core

Re: [PATCH 7/7] DWARF: add the config option

2017-05-10 Thread Josh Poimboeuf
On Wed, May 10, 2017 at 10:32:06AM +0200, Jiri Slaby wrote: > On 05/09/2017, 09:22 PM, Josh Poimboeuf wrote: > > On Tue, May 09, 2017 at 08:47:50PM +0200, Jiri Kosina wrote: > >> On Sun, 7 May 2017, Josh Poimboeuf wrote: > >> > >>> DWARF is great for debuggers. It helps you find all the registers

RE: [PATCH] drivers:staging:wlan-ng:hfa384x_usb: Fixing sparse warnings.

2017-05-10 Thread Karim Eshapa
Change the types of capture header, finally we need the header to be represented in the network byte order as __be.. this is a piece of doc that he mentioned it in the code doc/capturefrm.txt You can check https://github.com/jdkoftinoff/mb-linux-msli/blob/master/ uClinux-dist/user/wlan-ng/doc/captu

[PATCH v2] drm/imx: imx-ldb: Accept drm_of_find_panel_or_bridge failure

2017-05-10 Thread Leonard Crestez
Not having an endpoint bound in DT should not cause a failure here, there are fallbacks. So explicitly accept a missing endpoint. This behavior change was introduced by refactoring in drm_of parsing code and it should not require dts changes. In particular this fixes imx6qdl-sabreauto boards. Li

Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures

2017-05-10 Thread Peter Senna Tschudin
On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote: > Hi Peter, > > On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin > wrote: > > > Something that ocurred to me is that u-boot is initializing the PCI, and > > the PCI networkd cards. Ideally this should not affect anything, but >

[RESEND PATCH v4 0/5] Platform driver support for 'amd5536udc' driver

2017-05-10 Thread Raviteja Garimella
Resending PATCH v4 since one of the patches is missing signature. Changes in PATCH v4: === -- Rebased with Balbi's git repo testing/next branch. -- Removed a patch that replaces pci_pool calls with dma_pool since the change is already pushed by other submitter. Resending PATCH

[RESEND PATCH v4 4/5] dt-bindings: usb: DT bindings documentation for Broadcom IPROC USB Device controller.

2017-05-10 Thread Raviteja Garimella
The device node is used for UDCs integrated into Broadcom's iProc family of SoCs'. The UDC is based on Synopsys Designware Cores AHB Subsystem USB Device Controller IP. Signed-off-by: Raviteja Garimella --- Documentation/devicetree/bindings/usb/iproc-udc.txt | 21 + 1 file ch

[RESEND PATCH v4 3/5] usb: gadget: udc: Provide correct arguments for 'dma_pool_create'

2017-05-10 Thread Raviteja Garimella
Change the argument from NULL to a struct device for the dma_pool_create call during dma init. Signed-off-by: Raviteja Garimella --- drivers/usb/gadget/udc/snps_udc_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/snps_udc_core.c b/drivers/us

[RESEND PATCH v4 5/5] usb: gadget: udc: Add Synopsys UDC Platform driver

2017-05-10 Thread Raviteja Garimella
This patch adds platform driver support for Synopsys UDC. A new driver file (snps_udc_plat.c) is created for this purpose where the platform driver registration is done based on OF node. Currently, UDC integrated into Broadcom's iProc SoCs (Northstar2 and Cygnus) work with this driver. New membe

[RESEND PATCH v4 2/5] usb: gadget: udc: make debug prints compatible with both pci and platform devices

2017-05-10 Thread Raviteja Garimella
This patch adds a struct device member to UDC data structure and makes changes to the arguments of dev_err and dev_dbg calls so that the debug prints work for both pci and platform devices. Signed-off-by: Raviteja Garimella --- drivers/usb/gadget/udc/amd5536udc.h | 4 +++- drivers/usb/gadge

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread Jeff Layton
On Wed, 2017-05-10 at 09:05 +0100, David Howells wrote: > Miklos Szeredi wrote: > > > Possible rule of thumb: use it only at the place where the error > > originates and not where errors are just passed on. This would result > > in at most one report per syscall, normally. > > That might be hard

Re: [PATCH v2 3/3] tpm: vtpm_proxy: Add ioctl to request locality prepended to command

2017-05-10 Thread Stefan Berger
On 05/10/2017 08:47 AM, Jarkko Sakkinen wrote: On Tue, May 09, 2017 at 11:49:05AM -0400, Stefan Berger wrote: On 05/08/2017 07:43 PM, Jarkko Sakkinen wrote: On Thu, May 04, 2017 at 04:03:18PM -0400, Stefan Berger wrote: On 05/04/2017 02:40 PM, Jarkko Sakkinen wrote: On Thu, May 04, 2017 at 07

Re: [PATCH v1 2/3] platform/x86: thinkpad_acpi: Join string literals back

2017-05-10 Thread Henrique de Moraes Holschuh
On Wed, 10 May 2017, Andy Shevchenko wrote: > Okay, what I'm going to do is: > 1) drop patch 1 for now; > 2) split patch 2 into two patches (and append your Ack on both); > 3) push to our testing branch (I can send v2 if we need one more round > of review). > > Tell me if there is any objection.

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-05-10 Thread Eva Rachel Retuya
On Wed, May 03, 2017 at 12:05:00AM +0300, Andy Shevchenko wrote: > On Tue, May 2, 2017 at 3:15 PM, Eva Rachel Retuya wrote: > > On Mon, May 01, 2017 at 02:31:00PM +0300, Andy Shevchenko wrote: > > [...] > >> > -int adxl345_core_probe(struct device *dev, struct regmap *regmap, > >> > +int adxl345_c

[PATCH] irqchip/bcm2836: Move SMP startup code to arch/arm

2017-05-10 Thread Marc Zyngier
One of the RPi-2/3 irqchip's key features is that it contains some SMP startup code for the 32bit ARM architecture version. The only reason I can imagine for this is "RPi is special". Let's move this code where it belongs (in the platform support code), creating a shared include file for this purp

Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures

2017-05-10 Thread Fabio Estevam
On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin wrote: > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote: >> Hi Peter, >> >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin >> wrote: >> >> > Something that ocurred to me is that u-boot is initializing the PCI, and >> > th

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread Miklos Szeredi
On Wed, May 10, 2017 at 3:20 PM, Jeff Layton wrote: > On Wed, 2017-05-10 at 09:05 +0100, David Howells wrote: >> Miklos Szeredi wrote: >> >> > Possible rule of thumb: use it only at the place where the error >> > originates and not where errors are just passed on. This would result >> > in at mo

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-05-10 Thread Eva Rachel Retuya
On Fri, May 05, 2017 at 07:26:06PM +0100, Jonathan Cameron wrote: > On 02/05/17 13:15, Eva Rachel Retuya wrote: > > On Mon, May 01, 2017 at 02:31:00PM +0300, Andy Shevchenko wrote: > > [...] > >>> -int adxl345_core_probe(struct device *dev, struct regmap *regmap, > >>> +int adxl345_core_probe(struc

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread David Howells
Jeff Layton wrote: > One idea might be to always kfree it on syscall entry You can't do that otherwise there's no way to retrieve the strings. David

Re: [PATCH] irqchip/bcm2836: Move SMP startup code to arch/arm

2017-05-10 Thread Marc Zyngier
On 10/05/17 14:26, Marc Zyngier wrote: > One of the RPi-2/3 irqchip's key features is that it contains some > SMP startup code for the 32bit ARM architecture version. The only > reason I can imagine for this is "RPi is special". > > Let's move this code where it belongs (in the platform support co

Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures

2017-05-10 Thread Lucas Stach
Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam: > On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin > wrote: > > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote: > >> Hi Peter, > >> > >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin > >> wrote: > >> > >>

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread Miklos Szeredi
> That's why I liked the static string thing. It's just one assignment > and no worries about freeing. Not sure what to do about modules, > though. Can we somehow move the cost of checking the validity to the > place where the error is retrieved? I'm thinking along the lines of not allowing mod

Re: [PATCH] sched/deadline: Zero out positive runtime after throttling constrained tasks

2017-05-10 Thread Steven Rostedt
On Wed, 10 May 2017 21:03:37 +0800 Xunlei Pang wrote: > When a contrained task is throttled by dl_check_constrained_dl(), > it may carry the remaining positive runtime, as a result when > dl_task_timer() fires and calls replenish_dl_entity(), it will > not be replenished correctly due to the posi

Re: [patch 1/3] MM: remove unused quiet_vmstat function

2017-05-10 Thread Rik van Riel
On Wed, 2017-05-03 at 15:40 -0300, Marcelo Tosatti wrote: > Remove unused quiet_vmstat function. > > Signed-off-by: Marcelo Tosatti Reviewed-by: Rik van Riel

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread Jeff Layton
On Wed, 2017-05-10 at 14:31 +0100, David Howells wrote: > Jeff Layton wrote: > > > One idea might be to always kfree it on syscall entry > > You can't do that otherwise there's no way to retrieve the strings. > > True...you'd have to exempt the syscall that does the retrieving. -- Jeff Layto

[PATCH v2 0/3] Add I2S driver

2017-05-10 Thread olivier moysan
This patch-set handles the SPI/I2S IP on STM32 platforms. It applies to STM32 platforms implementing version 2 of SPI/I2S IP like STM32H7 series. The SPI/I2S block is a serial peripheral interface (SPI), which can also be configured to work on I2S/PCM mode. ASoC STM32 I2S driver only supports t

[PATCH v2 3/3] ASoC: stm32: Add full duplex support to i2s

2017-05-10 Thread olivier moysan
This patch allows to use i2s interface either as single audio path (rx or tx), or bidirectional audio path. This patch is added separately, as the driver does not follow recommended use of the interface, to support this configuration. Signed-off-by: olivier moysan --- sound/soc/stm/stm32_i2s.c |

[PATCH v2 1/3] dt-bindings: Document STM32 I2S bindings

2017-05-10 Thread olivier moysan
Add documentation of device tree bindings for STM32 SPI/I2S. Signed-off-by: olivier moysan --- .../devicetree/bindings/sound/st,stm32-i2s.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/st,stm32-i2s.txt diff --git

[GIT PULL] overlayfs update for 4.12

2017-05-10 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus The biggest part of this is making st_dev/st_ino on the overlay behave like a normal filesystem (i.e. st_ino doesn't change on copy up, st_dev is the same for all files and directories).

[PATCH v2 2/3] ASoC: stm32: Add I2S driver

2017-05-10 Thread olivier moysan
Add I2S ASoC driver for STM32. This version of the driver supports only exclusive playback and capture interface. Signed-off-by: olivier moysan --- sound/soc/stm/Kconfig | 2 +- sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_i2s.c | 941 +

Re: [PATCH v2 6/8] drm: Introduce drm_bridge_mode_valid()

2017-05-10 Thread Ville Syrjälä
On Tue, May 09, 2017 at 06:00:13PM +0100, Jose Abreu wrote: > Introduce a new helper function which calls mode_valid() callback > for all bridges in an encoder chain. > > Signed-off-by: Jose Abreu > Cc: Carlos Palminha > Cc: Alexey Brodkin > Cc: Ville Syrjälä > Cc: Daniel Vetter > Cc: Dave Ai

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-10 Thread Pasha Tatashin
Well, I didn't object to this particular part. I was mostly concerned about http://lkml.kernel.org/r/1494003796-748672-4-git-send-email-pasha.tatas...@oracle.com and the "zero" argument for other functions. I guess we can do without that. I _think_ that we should simply _always_ initialize the pa

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

2017-05-10 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

[RFC PATCH v3 05/12] x86/ioapic: Refactor the delay logic in timer_irq_works()

2017-05-10 Thread Dou Liyang
Kernel use timer_irq_works() to detects the timer IRQs. It calls mdelay(10) to delay ten ticks and checks whether the timer IRQs work or not. The mdelay() depends on the loops_per_jiffy which is set up in calibrate_delay(). And in "notsc" case, calibrating delay also should make sure the timer IRQs

[RFC PATCH v3 00/12] Unify interrupt mode and setup it as soon as possible

2017-05-10 Thread Dou Liyang
According to Ingo's and Eric's advice[1,2], Try my best to optimize the init of interrupt delivery mode for x86. MP specification defines three different interrupt modes as follows: 1. PIC Mode 2. Virtual Wire Mode 3. Symmetric I/O Mode Currently, in kernel, 1. Setup Virtual Wire Mode durin

[RFC PATCH v3 01/12] x86/apic: Replace init_bsp_APIC() with apic_virtual_wire_mode_setup()

2017-05-10 Thread Dou Liyang
The init_bsp_APIC() sets up virtual wire mode through the local APIC. The function name implies that the BSP's APIC will be initialized here, which is unsuitable, while its initialization actually locates almost at the end of start_kernel(). And the CONFIG X86_64 is also imply the X86_LOCAL_APIC i

[RFC PATCH v3 04/12] x86/time: Initialize interrupt mode behind timer init

2017-05-10 Thread Dou Liyang
In start_kernel(), firstly, it works on the default interrupy mode, then switch to the final mode. Normally, Booting with BIOS reset is OK. But, At dump-capture kernel, it boot up without BIOS reset, default mode may not be compatible with the actual registers, that causes the delivery interrupt t

[RFC PATCH v3 10/12] x86/apic: Make the interrupt mode setup earlier for UP system

2017-05-10 Thread Dou Liyang
In UniProcessor kernel with UP_LATE_INIT=y, enable and setup the interrupt delivery mode in smp_init() which almost be called at the end of start_kernel(). But, system should not make sure the timer IRQs work well for calibrating delay in dump-capture kernel. Due to the MP table or ACPI has been

[RFC PATCH v3 11/12] x86/apic: Mark the apic_interrupt_mode extern for disable_smp()

2017-05-10 Thread Dou Liyang
Calling native_smp_prepare_cpus() to prepare for SMP bootup, does some sanity checking, enables APIC mode and disables SMP feature. Now, APIC mode setup has been unified to apic_interrupt_mode_init() earlier, the sanity checking is redundant and need to be cleaned up. Mark the apic_interrupt_mode

Re: [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior

2017-05-10 Thread Boris Ostrovsky
On 05/10/2017 12:08 AM, Juergen Gross wrote: > When booted as pv-guest the p2m list presented by the Xen is already > mapped to virtual addresses. In dom0 case the hypervisor might make use > of 2M- or 1G-pages for this mapping. Unfortunately while being properly > aligned in virtual and machine ad

[RFC PATCH v3 09/12] x86/apic: Setup interrupt mode earlier in case of no SMP motherboard

2017-05-10 Thread Dou Liyang
Kernel falls back to non SMP mode and sets up interrupt delivery mode in APIC_init_uniprocessor() in case of no SMP motherboard. Setting up interrupt delivery mode as soon as possible should wraps this case for SMP-capable system too. Wrap this case, make it consistent with SMP-capable systems. I

[RFC PATCH v3 12/12] x86/apic: Remove the apic_virtual_wire_mode_setup()

2017-05-10 Thread Dou Liyang
Currently, enable and setup the interrupt mode has been advanced just behind the timer IRQ setup. It can setup the virtual wire mode if the system select it. and it also can switch to the final mode from PIC mode directly. The apic_virtual_wire_mode_setup() which works for the virtual wire mode is

[RFC PATCH v3 06/12] x86/apic: Split local APIC timer setup from the APIC setup

2017-05-10 Thread Dou Liyang
The apic_bsp_setup() set up the local APIC, I/O APIC and APIC timer. The local APIC and I/O APIC setup belongs to interrupt delivery mode setup. Setting up the local APIC timer for booting CPU is another job. Unifying the interrupt delivery mode need setting the apic_bsp_setup() in advance of cali

[RFC PATCH v3 07/12] x86/apic: Move the logical APIC ID setup from apic_bsp_setup()

2017-05-10 Thread Dou Liyang
The apic_bsp_setup() sets and returns logical APIC ID for setting up cpu0_logical_apicid in SMP-capable system. The id has nothing to do with the initialization of local APIC and I/O APIC. And apic_bsp_setup() will be called earlier. Move the id setup to native_smp_prepare_cpus() for cleanup. Si

[RFC PATCH v3 08/12] x86/apic: Make interrupt mode setup earlier for SMP-capable system

2017-05-10 Thread Dou Liyang
In the SMP-capable system, enable and setup the interrupt delivery mode in native_smp_prepare_cpus() which almost be called at the end of start_kernel() in rest_init(). But, due to default mode may not be compatible with the actual interrupt registers, calibrating delay which needs the timer IRQs

Re: [PATCH v4 14/27] fs: new infrastructure for writeback error handling and reporting

2017-05-10 Thread Jan Kara
On Wed 10-05-17 08:19:50, Jeff Layton wrote: > On Wed, 2017-05-10 at 13:48 +0200, Jan Kara wrote: > > On Tue 09-05-17 11:49:17, Jeff Layton wrote: > > > diff --git a/fs/file_table.c b/fs/file_table.c > > > index 954d510b765a..d6138b6411ff 100644 > > > --- a/fs/file_table.c > > > +++ b/fs/file_table

[RFC PATCH v3 02/12] x86/apic: Construct a selector for the interrupt delivery mode

2017-05-10 Thread Dou Liyang
Now, there are many switches in kernel which are used to determine the final interrupt delivery mode, as shown below: 1) kconfig: CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC 2) kernel option: disable_apic; skip_ioapic_setup 3) CPU Capability: boot_cpu_has(X86_FEATURE_APIC) 4) MP ta

Re: [PATCH 3/9] VFS: Introduce a mount context

2017-05-10 Thread Jeff Layton
On Wed, 2017-05-10 at 15:30 +0200, Miklos Szeredi wrote: > On Wed, May 10, 2017 at 3:20 PM, Jeff Layton wrote: > > On Wed, 2017-05-10 at 09:05 +0100, David Howells wrote: > > > Miklos Szeredi wrote: > > > > > > > Possible rule of thumb: use it only at the place where the error > > > > originates

[RFC][PATCH] sched/deadline: Remove if statement before clearing throttle and yielded

2017-05-10 Thread Steven Rostedt
[ This is an RFC as I didn't run any benchmarks. It just seemed a bit weird to me that we would add such a check instead of just clearing these variables out regardless. ] The function replenish_dl_entity() clears dl_throttled and dl_yielded, but checks first if they are set before doing so

Re: [patch 0/6] hwmon/coretemp: Hotplug fixes, cleanups and state machine conversion

2017-05-10 Thread Tommi Rantala
2017-05-09 10:16 GMT+03:00 Thomas Gleixner : > On Thu, 4 May 2017, Tommi Rantala wrote: >> Here's the trace output, does it help? > > Not much. Can you please try the following: > > 1) Offline all CPUs except CPU0 before suspend/resume it works! > 2) Offline all CPUs except CPU0 and CPU1 before s

Re: [PATCH 3/4] ARM: dts: rockchip: use pin constants to describe IO in pinctrl

2017-05-10 Thread Heiko Stuebner
Hi Kever, Am Mittwoch, 10. Mai 2017, 09:25:25 CEST schrieb Kever Yang: > On 05/10/2017 05:43 AM, Heiko Stuebner wrote: > > Am Mittwoch, 12. April 2017, 15:10:43 CEST schrieb Kever Yang: > >> Use command below to replace the IO naming in pinctrl: > >> sed -i -e 's/ 31 RK_FUNC_/ RK_PD7 RK_FUNC_/' ar

Re: [PATCH v2] drm/imx: imx-ldb: Accept drm_of_find_panel_or_bridge failure

2017-05-10 Thread Philipp Zabel
On Wed, 2017-05-10 at 16:17 +0300, Leonard Crestez wrote: > Not having an endpoint bound in DT should not cause a failure here, > there are fallbacks. So explicitly accept a missing endpoint. > > This behavior change was introduced by refactoring in drm_of parsing > code and it should not require

Re: [PATCH v1 3/3] crypto: cavium - Register the CNN55XX supported crypto algorithms.

2017-05-10 Thread Stephan Müller
Am Mittwoch, 10. Mai 2017, 15:06:40 CEST schrieb Srikanth Jampala: Hi Srikanth, In general: you are using the ablkcipher API. I think it is on its way out and being replaced with skcipher. Maybe it makes sense to replace it here too. It could be as simple as s/ ablkcipher/skcipher/g > +static

RE: [PATCH V5] perf/x86: add sysfs entry to freeze counter on SMI

2017-05-10 Thread Thomas Gleixner
On Mon, 8 May 2017, Liang, Kan wrote: > Hi tglx, > > Are you OK with patch? > Could I get your "acked-by"? No. > > > +static void flip_smm_bit(void *data) > > > +{ > > > + bool set = *(int *)data; data points to an unsigned long. So while this works on LE machines this is still crap. > > > +

Re: [PATCH -mm -v10 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-05-10 Thread Johannes Weiner
Hi Michan, On Tue, May 02, 2017 at 08:53:32AM +0900, Minchan Kim wrote: > @@ -1144,7 +1144,7 @@ void swap_free(swp_entry_t entry) > /* > * Called after dropping swapcache to decrease refcnt to swap entries. > */ > -void swapcache_free(swp_entry_t entry) > +void __swapcache_free(swp_entry_t en

Re: [patch 0/6] hwmon/coretemp: Hotplug fixes, cleanups and state machine conversion

2017-05-10 Thread Thomas Gleixner
On Wed, 10 May 2017, Tommi Rantala wrote: > 2017-05-09 10:16 GMT+03:00 Thomas Gleixner : > > On Thu, 4 May 2017, Tommi Rantala wrote: > >> Here's the trace output, does it help? > > > > Not much. Can you please try the following: > > > > 1) Offline all CPUs except CPU0 before suspend/resume > > it

Re: [PATCH v2 6/8] drm: Introduce drm_bridge_mode_valid()

2017-05-10 Thread Jose Abreu
Hi Ville, On 10-05-2017 14:41, Ville Syrjälä wrote: > On Tue, May 09, 2017 at 06:00:13PM +0100, Jose Abreu wrote: >> Introduce a new helper function which calls mode_valid() callback >> for all bridges in an encoder chain. >> >> Signed-off-by: Jose Abreu >> Cc: Carlos Palminha >> Cc: Alexey Bro

Re: [PATCH v2] kthread: fix use-after-free if kthread fork fails

2017-05-10 Thread Oleg Nesterov
On 05/09, Vegard Nossum wrote: > > If a kthread forks (e.g. usermodehelper since commit 1da5c46fa965) but > fails in copy_process() between calling dup_task_struct() and setting > p->set_child_tid, then the value of p->set_child_tid will be inherited > from the parent and get prematurely freed by f

Re: [patch 0/6] hwmon/coretemp: Hotplug fixes, cleanups and state machine conversion

2017-05-10 Thread Tommi Rantala
2017-05-10 17:01 GMT+03:00 Thomas Gleixner : > On Wed, 10 May 2017, Tommi Rantala wrote: >> 2017-05-09 10:16 GMT+03:00 Thomas Gleixner : >> > On Thu, 4 May 2017, Tommi Rantala wrote: >> >> Here's the trace output, does it help? >> > >> > Not much. Can you please try the following: >> > >> > 1) Offl

Re: [PATCH v2 6/8] drm: Introduce drm_bridge_mode_valid()

2017-05-10 Thread Jose Abreu
Hi Ville, On 10-05-2017 15:01, Jose Abreu wrote: > Hi Ville, > > > On 10-05-2017 14:41, Ville Syrjälä wrote: >> On Tue, May 09, 2017 at 06:00:13PM +0100, Jose Abreu wrote: >>> Introduce a new helper function which calls mode_valid() callback >>> for all bridges in an encoder chain. >>> >>> Signed

Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures

2017-05-10 Thread Peter Senna Tschudin
On Wed, May 10, 2017 at 03:32:19PM +0200, Lucas Stach wrote: > Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam: > > On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin > > wrote: > > > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote: > > >> Hi Peter, > > >> > > >> O

Re: Updating kernel.org cross compilers?

2017-05-10 Thread Segher Boessenkool
Hi Arnd, long time no see, On Wed, May 10, 2017 at 09:58:13AM +0200, Arnd Bergmann wrote: > >> So in addition to GCC 7.1 I'd like to have at least GCC 6.3 around, > >> which builds kernels without warnings today. > > > > If you don't want warnings, turn off the warnings or just don't look at > > t

Re: [PATCH v4 13/27] lib: add errseq_t type and infrastructure for handling it

2017-05-10 Thread Matthew Wilcox
On Tue, May 09, 2017 at 11:49:16AM -0400, Jeff Layton wrote: > +++ b/lib/errseq.c > @@ -0,0 +1,199 @@ > +#include > +#include > +#include > +#include > + > +/* > + * An errseq_t is a way of recording errors in one place, and allowing any > + * number of "subscribers" to tell whether it has chan

[PATCH v2] vhost/vsock: use static minor number

2017-05-10 Thread Stefan Hajnoczi
Vhost-vsock is a software device so there is no probe call that causes the driver to register its misc char device node. This creates a chicken and egg problem: userspace applications must open /dev/vhost-vsock to use the driver but the file doesn't exist until the kernel module has been loaded.

Re: [PATCH] vhost/vsock: use static minor number

2017-05-10 Thread Stefan Hajnoczi
On Wed, May 10, 2017 at 10:01:36AM +0200, Arnd Bergmann wrote: > On Tue, May 9, 2017 at 9:28 PM, Stefan Hajnoczi wrote: > > > > Note that the "reserved for local use" range in > > Documentation/admin-guide/devices.txt is incorrect. The userio driver > > already occupies part of that range. I've

Re: [PATCH] xen: adjust early dom0 p2m handling to xen hypervisor behavior

2017-05-10 Thread Juergen Gross
On 10/05/17 15:45, Boris Ostrovsky wrote: > On 05/10/2017 12:08 AM, Juergen Gross wrote: >> When booted as pv-guest the p2m list presented by the Xen is already >> mapped to virtual addresses. In dom0 case the hypervisor might make use >> of 2M- or 1G-pages for this mapping. Unfortunately while bei

[PATCH 01/11] spmi: pmic_arb: block access of invalid read and writes

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar The system crashes due to bad access when reading from an non configured peripheral and when writing to peripheral which is not owned by current ee. This patch verifies ownership to avoid crashing on write. For reads, since the forward mapping table, data_channel->ppi

[PATCH 02/11] spmi: pmic-arb: rename spmi_pmic_arb_dev to spmi_pmic_arb

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar Usually *_dev best used for structures that embed a struct device in them. spmi_pmic_arb_dev doesn't embed one. It is simply a driver data structure. Use an appropriate name for it. Also there are many places in the driver that left shift the bit to generate a bit ma

[PATCH 03/11] spmi: pmic-arb: fix inconsistent use of apid and chan

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar The driver currently uses "apid" and "chan" to mean apid. Remove the use of chan and use only apid. On a SPMI bus there is allocation to manage up to 4K peripherals. However, in practice only few peripherals are instantiated and only few among the instantiated ones a

[PATCH 04/11] spmi: pmic-arb: optimize table lookups

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar The current driver uses a mix of radix tree and a fwd lookup table to translate between apid and ppid. It is buggy and confusing. Instead simply use a radix tree for v1 hardware and use the forward lookup table for v2. Signed-off-by: Abhijeet Dharmapurikar Signed-o

[PATCH 06/11] spmi: pmic-arb: fix missing interrupts

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar irq_enable is called when the device resumes. Note that the irq_enable is called regardless of whether the interrupt was marked enabled/disabled in the descriptor or whether it was masked/unmasked at the controller while resuming. The current driver unconditionally c

[PATCH 05/11] spmi: pmic-arb: cleanup unrequested irqs

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar We see a unmapped irqs trigger right around bootup. This could likely be because the bootloader exited leaving the interrupts in an unknown or unhandled state. Ack and mask the interrupt if one is found. A request_irq later will unmask it and also setup proper mappin

[PATCH 07/11] spmi: pmic-arb: clear the latched status of the interrupt

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar PMIC interrupts each have an internal latched status bit which is not visible from any register. This status bit is set as soon as the conditions specified in the interrupt type and polarity registers are met even if the interrupt is not enabled. When it is set, not

[PATCH 08/11] spmi: pmic_arb: use appropriate flow handler

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar The current code uses handle_level_irq flow handler even if the trigger type of the interrupt is edge. This can lead to missing of an edge transition that happens when the interrupt is being handled. The level flow handler masks the interrupt while it is being handled

[PATCH 09/11] spmi: pmic-arb: check apid enabled before calling the handler

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar The driver currently invokes the apid handler (periph_handler()) once it sees that the summary status bit for that apid is set. However the hardware is designed to set that bit even if the apid interrupts are disabled. The driver should check whether the apid is inde

[PATCH 10/11] spmi: pmic_arb: add support for PMIC bus arbiter v3

2017-05-10 Thread Kiran Gunda
From: Abhijeet Dharmapurikar PMIC bus arbiter v3 supports 512 SPMI peripherals. Add the v3 operators to support this new arbiter version. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 133 +++ 1 file

<    1   2   3   4   5   6   7   >