Re: [PATCH tip/core/rcu 10/20] rcu: Add functions to test for trivial grace periods

2017-01-16 Thread Josh Triplett
On Sat, Jan 14, 2017 at 01:13:11AM -0800, Paul E. McKenney wrote: > Under some circumstances, RCU grace periods are zero cost. For > RCU-preempt, this is the case during boot, and for RCU-bh and RCU-sched, > this is the case if there is only one CPU. This means that RCU users > might wish to

RE: [PATCH v3 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2017-01-16 Thread Felipe Balbi
Hi, Jerry Huang writes: >> > On Thu, Dec 22, 2016 at 8:52 PM, Jerry Huang >> wrote: >> > > Hi, Rob, >> > >> -Original Message- >> > >> From: Rob Herring [mailto:r...@kernel.org] >> > >> Sent: Friday, December 23, 2016 2:45 AM >> > >> To: Jerry

Build regressions/improvements in v4.10-rc4

2017-01-16 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.10-rc4[1] compared to v4.9[2]. Summarized: - build errors: +10/-8 - build warnings: +1067/-470 JFYI, when comparing v4.10-rc4[1] to v4.10-rc3[3], the summaries are: - build errors: +10/-1 - build warnings: +634/-375

Re: [PATCH v1 1/3] dt: bindings: add documentation for zx2967 family watchdog controller

2017-01-16 Thread Shawn Guo
On Mon, Jan 16, 2017 at 12:19:53PM +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > watchdog controller. > > Signed-off-by: Baoyou Xie > --- > .../bindings/watchdog/zte,zx2967-wdt.txt | 29 > ++ > 1

Re: [PATCH v2 2/2] phy: sun4i-usb: Replace the deprecated extcon API

2017-01-16 Thread Kishon Vijay Abraham I
On Friday 30 December 2016 09:41 AM, Chanwoo Choi wrote: > This patch replaces the deprecated extcon API as following: > - extcon_set_cable_state_() -> extcon_set_state_sync() > > Cc: Kishon Vijay Abraham I > Cc: Maxime Ripard > Cc: Chen-Yu

Re: [PATCH 2/3] Broadcom USB DRD Phy driver for Northstar2

2017-01-16 Thread Kishon Vijay Abraham I
Hi, On Wednesday 30 November 2016 11:25 AM, Raviteja Garimella wrote: > This is driver for USB DRD Phy used in Broadcom's Northstar2 > SoC. The phy can be configured to be in Device mode or Host > mode based on the type of cable connected to the port. The > driver registers to extcon framework

Re: [PATCH] Revert "scsi: mpt3sas: Fix secure erase premature termination"

2017-01-16 Thread Ingo Molnar
* James Bottomley wrote: > On Sun, 2017-01-15 at 10:19 +0100, Ingo Molnar wrote: > > So there's a new mpt3sas SCSI driver boot regression, introduced in > > this merge window, which made one of my servers unbootable. > > We're not reverting a fix that

Re: [PATCH] drm: etnaviv: constify etnaviv_iommu_ops structures

2017-01-16 Thread Lucas Stach
Am Montag, den 16.01.2017, 00:20 +0530 schrieb Bhumika Goyal: > Declare etnaviv_iommu_ops structure as const as it is only used when > the reference of one of its field is stored in the ops field of a > iommu_domain structure. This ops field is of type const, so > etnaviv_iommu_ops structures

Re: [PATCH v2 0/2] phy: Replace the deprecated extcon API

2017-01-16 Thread Kishon Vijay Abraham I
On Monday 16 January 2017 02:40 PM, Chanwoo Choi wrote: > Hi Kishon, > > On 2017년 01월 10일 17:16, Chanwoo Choi wrote: >> Hi Kishon, >> >> Could you review these patches or pick up them if there is no any comment? > > If there are no comments, could you apply these patches? merged it already.

Re: [PATCH] fix race caused by hyperthreads when online an offline cpu

2017-01-16 Thread zhouchengming
On 2017/1/16 17:05, Thomas Gleixner wrote: On Mon, 16 Jan 2017, Zhou Chengming wrote: Can you please stop sending the same patch over and over every other day? Granted, things get forgotten, but sending a polite reminder after a week is definitely enough. Maintainers are not machines

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2017-01-16 Thread Vladimir Murzin
Hi, On 15/01/17 11:47, Afzal Mohammed wrote: > Hi, > > On Sat, Jan 07, 2017 at 10:43:39PM +0530, Afzal Mohammed wrote: >> On Tue, Dec 13, 2016 at 10:02:26AM +, Russell King - ARM Linux wrote: > >>> Also, if the region setup for the vectors was moved as well, it would >>> then be possible to

[PATCH v2 02/11] drm/rockchip/dsi: dw-mipi: support RK3399 mipi dsi

2017-01-16 Thread Chris Zhong
The vopb/vopl switch register of RK3399 mipi is different from RK3288, the default setting for mipi dsi mode is different too, so add a of_device_id structure to distinguish them, and make sure set the correct mode before mipi phy init. Signed-off-by: Chris Zhong

[PATCH v2 07/11] drm/rockchip/dsi: fix mipi display can't found at init time

2017-01-16 Thread Chris Zhong
From: Mark Yao The problem is that: mipi panel probe request mipi_dsi_host_register. mipi host attach is call from panel device, so the defer function always can't works. So at the first bind time, always can't found mipi panel. Signed-off-by: Mark Yao

[PATCH v2 03/11] drm/rockchip/dsi: remove mode_valid function

2017-01-16 Thread Chris Zhong
The MIPI DSI do not need check the validity of resolution, the max resolution should depend VOP. Hence, remove rk3288_mipi_dsi_mode_valid here. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 39 -- 1 file changed, 39

[PATCH] thermal: ti-soc-thermal: Remove CPU_THERMAL Dependency from TI_THERMAL

2017-01-16 Thread Keerthy
Currently when CPU_THERMAL is not defined the thermal sensors are not even exposed consequently no cooling is possible. CPU_THERMAL eventually depends on CPUFREQ. CPPUFREQ is not the only cooling for CPU. The thermal shutdown for critical temperatures is another cooling solution which will

Re: [Intel-gfx] [PATCH v4] lib/scatterlist: Avoid potential scatterlist entry overflow

2017-01-16 Thread Andy Shevchenko
On Mon, Jan 16, 2017 at 12:05 PM, Tvrtko Ursulin wrote: > - for (i = 1; i < n_pages; ++i) > + for (i = 1; i < n_pages; ++i) { // Are compilers so stupid doing calculation per iteration in for-conditional? // for (i = 0; i + 1 <

RE: [PATCH v3 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2017-01-16 Thread Jerry Huang
> -Original Message- > From: Jerry Huang > Sent: Wednesday, January 04, 2017 10:25 AM > To: 'Rob Herring' > Cc: ba...@kernel.org; mark.rutl...@arm.com; catalin.mari...@arm.com; > will.dea...@arm.com; li...@armlinux.org.uk; devicet...@vger.kernel.org; >

Re: [PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-16 Thread Boris Brezillon
On Sun, 15 Jan 2017 01:23:48 +0100 Marek Vasut wrote: > On 01/14/2017 09:29 AM, Boris Brezillon wrote: > > On Fri, 13 Jan 2017 18:33:40 +0100 > > Marek Vasut wrote: > > > >> On 01/13/2017 05:56 PM, Boris Brezillon wrote: > >>> On Fri, 13 Jan

Re: [PATCH] net_sched: use kvmalloc rather than opencoded variant

2017-01-16 Thread Michal Hocko
On Sun 15-01-17 07:43:01, kbuild test robot wrote: > Hi Michal, > > [auto build test ERROR on net-next/master] > [also build test ERROR on v4.10-rc3 next-20170113] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: >

Re: [PATCH] s390: virtio: constify virtio_config_ops structures

2017-01-16 Thread Christian Borntraeger
On 01/13/2017 07:48 PM, Bhumika Goyal wrote: > Declare virtio_config_ops structure as const as it is only stored in the > config field of a virtio_device structure. This field is of type const, so > virtio_config_ops structures having this property can be declared const. > Done using Coccinelle: >

[PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Borislav Petkov
From: Borislav Petkov We wanna know who's doing such a thing. Like slab.c does that. Signed-off-by: Borislav Petkov --- mm/slub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/slub.c b/mm/slub.c index 067598a00849..1b0fa7625d6d 100644 --- a/mm/slub.c +++

Re: Build regressions/improvements in v4.10-rc4

2017-01-16 Thread Geert Uytterhoeven
On Mon, Jan 16, 2017 at 10:05 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.10-rc4[1] to v4.10-rc3[3], the summaries are: > - build errors: +10/-1 > [1] > http://kisskb.ellerman.id.au/kisskb/head/49def1853334396f948dcb4cedb9347abb318df5/ > (all 267 configs) >

Re: fs, net: deadlock between bind/splice on af_unix

2017-01-16 Thread Dmitry Vyukov
On Fri, Dec 9, 2016 at 7:41 AM, Al Viro wrote: > On Thu, Dec 08, 2016 at 10:32:00PM -0800, Cong Wang wrote: > >> > Why do we do autobind there, anyway, and why is it conditional on >> > SOCK_PASSCRED? Note that e.g. for SOCK_STREAM we can bloody well get >> > to sending

Re: [PATCH] tpm/tpm_i2c_infineon: ensure no ongoing commands on shutdown

2017-01-16 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 04:42:30PM -0800, Andrey Pronin wrote: > On Fri, Jan 13, 2017 at 05:28:57PM -0700, Jason Gunthorpe wrote: > > On Fri, Jan 13, 2017 at 04:09:54PM -0800, Andrey Pronin wrote: > > > Resetting TPM while processing a command may lead to issues > > > on the next boot. Ensure that

Re: [patch net-next] stmmac: indent an if statement

2017-01-16 Thread Dan Carpenter
On Mon, Jan 16, 2017 at 12:19:24PM +0300, Dan Carpenter wrote: > On Sun, Jan 15, 2017 at 10:14:38PM -0500, David Miller wrote: > > From: Dan Carpenter > > Date: Thu, 12 Jan 2017 21:46:32 +0300 > > > > > The break statement should be indented one more tab. > > > > > >

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 10:37:02AM +0100, Borislav Petkov wrote: > On Mon, Jan 16, 2017 at 11:28:40AM +0200, Leon Romanovsky wrote: > > On Mon, Jan 16, 2017 at 10:16:43AM +0100, Borislav Petkov wrote: > > > From: Borislav Petkov > > > > > > We wanna know who's doing such a thing.

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Michal Hocko
On Mon 16-01-17 11:48:51, Leon Romanovsky wrote: > On Mon, Jan 16, 2017 at 10:37:02AM +0100, Borislav Petkov wrote: > > On Mon, Jan 16, 2017 at 11:28:40AM +0200, Leon Romanovsky wrote: > > > On Mon, Jan 16, 2017 at 10:16:43AM +0100, Borislav Petkov wrote: > > > > From: Borislav Petkov

[PATCH] rtc: stm32: fix comparison warnings

2017-01-16 Thread Amelie Delaunay
This patches fixes comparison between signed and unsigned values as it could produce an incorrect result when the signed value is converted to unsigned: drivers/rtc/rtc-stm32.c: In function 'stm32_rtc_valid_alrm': drivers/rtc/rtc-stm32.c:404:21: warning: comparison between signed and unsigned

[PATCH v2 05/11] drm/rockchip/dsi: add dw-mipi power domain support

2017-01-16 Thread Chris Zhong
Reference the power domain incase dw-mipi power down when in use. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c

[PATCH v2 06/11] drm/rockchip/dsi: return probe defer if attach panel failed

2017-01-16 Thread Chris Zhong
From: Mark Yao Return -EINVAL would cause mipi dsi bad behavior, probe defer to ensure mipi find the correct mode, Signed-off-by: Mark Yao Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 13

Re: [PATCH 1/5] [media] ir-rx51: port to rc-core

2017-01-16 Thread Sean Young
Hi Ivo, On Fri, Dec 30, 2016 at 03:50:42PM +0200, Ivaylo Dimitrov wrote: > On 30.12.2016 15:30, Sean Young wrote: > > > >On Fri, Dec 30, 2016 at 01:07:52PM +, Sean Young wrote: > >>Hi Ivo,, > >> > >>On Fri, Dec 30, 2016 at 01:30:01PM +0200, Ivaylo Dimitrov wrote: > >>>On 20.12.2016 19:50,

Re: [PATCH] fbdev: ssd1307fb: allow reset-gpios is missing

2017-01-16 Thread Maxime Ripard
On Sun, Jan 15, 2017 at 07:21:46PM +0800, Icenowy Zheng wrote: > Currently some SSD1306 OLED modules are sold without a reset pin (only > VCC, GND, SCK, SDA four pins). > > Add support for missing reset-gpios property. > > Signed-off-by: Icenowy Zheng Unfortunately, a similar

Re: [PATCHSET v6] blk-mq scheduling framework

2017-01-16 Thread Hannes Reinecke
On 01/13/2017 05:02 PM, Jens Axboe wrote: > On 01/13/2017 09:00 AM, Jens Axboe wrote: >> On 01/13/2017 08:59 AM, Hannes Reinecke wrote: >>> On 01/13/2017 04:34 PM, Jens Axboe wrote: On 01/13/2017 08:33 AM, Hannes Reinecke wrote: >>> [ .. ] > Ah, indeed. > There is an ominous udev rule

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 08:33:11AM +0100, Michal Hocko wrote: > On Sat 14-01-17 12:56:32, Leon Romanovsky wrote: > [...] > > Hi Michal, > > > > I don't see mlx5_vzalloc in the changed list. Any reason why did you skip > > it? > > > > 881 static inline void *mlx5_vzalloc(unsigned long size) > >

Re: [PATCH V2 2/5] phy: phy-exynos-pcie: Add support for Exynos PCIe phy

2017-01-16 Thread Kishon Vijay Abraham I
Hi, On Wednesday 04 January 2017 06:04 PM, Jaehoon Chung wrote: > This patch supports to use Generic Phy framework for Exynos PCIe phy. > When Exynos that supported the pcie want to use the PCIe, > it needs to control the phy resgister. > But it should be more complex to control in their own PCIe

Re: [PATCH V7 1/4] Documentation/devicetree/bindings: b850v3_lvds_dp

2017-01-16 Thread Peter Senna Tschudin
On Tue, Jan 10, 2017 at 11:04:58PM +0200, Laurent Pinchart wrote: > Hi Peter, Laurent! > > On Saturday 07 Jan 2017 01:29:52 Peter Senna Tschudin wrote: > > On 04 January, 2017 21:39 CET, Rob Herring wrote: > > > On Tue, Jan 3, 2017 at 5:34 PM, Peter Senna Tschudin wrote: > > >> On 03 January,

Re: [PATCH v4 3/4] dt-bindings: phy: Add support for QMP phy

2017-01-16 Thread Kishon Vijay Abraham I
Hi, On Tuesday 10 January 2017 04:21 PM, Vivek Gautam wrote: > Qualcomm chipsets have QMP phy controller that provides > support to a number of controller, viz. PCIe, UFS, and USB. > Adding dt binding information for the same. > > Signed-off-by: Vivek Gautam >

[PATCH RFC] powerpc/32: fix handling of stack protector with recent GCC

2017-01-16 Thread Christophe Leroy
Since 2005, powerpc GCC doesn't manage anymore __stack_chk_guard as a global variable but as some value located at -0x7008(r2) In the Linux kernel, r2 is used as a pointer to current task struct. This patch changes the meaning of r2 when stack protector is activated: - current is taken from

[PATCH 1/2] spi: pxa2xx: Prepare for edge-triggered interrupts

2017-01-16 Thread Jan Kiszka
When using the a device with edge-triggered interrupts, such as MSIs, the interrupt handler has to ensure that there is a point in time during its execution where all interrupts sources are silent so that a new event can trigger a new interrupt again. This is achieved here by looping over SSSR

[PATCH 0/2] spi: pca2xx: Prepare for and enable MSI support

2017-01-16 Thread Jan Kiszka
This enhances the pca2xx driver's interrupt handler with support for edge-triggered interrupts and makes use of that for PCI-hosted variants, like the Intel Quark SoC. Jan Jan Kiszka (2): spi: pxa2xx: Prepare for edge-triggered interrupts spi: pca2xx-pci: Allow MSI

Re: [PATCH 1/2] spi: pxa2xx: Prepare for edge-triggered interrupts

2017-01-16 Thread Andy Shevchenko
On Mon, 2017-01-16 at 10:05 +0100, Jan Kiszka wrote: > When using the a device with edge-triggered interrupts, such as MSIs, > the interrupt handler has to ensure that there is a point in time > during > its execution where all interrupts sources are silent so that a new > event can trigger a new

Re: [PATCH] tpm_tis: use default timeout value if chip reports it as zero

2017-01-16 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 10:37:00PM +0100, Maciej S. Szmigiero wrote: > Since commit 1107d065fdf1 ("tpm_tis: Introduce intermediate layer for TPM > access") Atmel 3203 TPM on ThinkPad X61S (TPM firmware version 13.9) no > longer works. > The initialization proceeds fine until we get and start using

Re: [PATCH] staging: greybus: fix checkpatch unsigned warnings

2017-01-16 Thread Johan Hovold
On Fri, Jan 13, 2017 at 09:54:51PM +0100, Roman Sommer wrote: > Fix checkpatch warnings for parameter type unsigned in greybus. > Note that this patch does not fix all checkpatch warnings for the > affected files. Thanks for the update. In the future, make sure to include a patch revision in the

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Vlastimil Babka
On 01/16/2017 10:16 AM, Borislav Petkov wrote: > From: Borislav Petkov > > We wanna know who's doing such a thing. Like slab.c does that. > > Signed-off-by: Borislav Petkov Acked-by: Vlastimil Babka > --- > mm/slub.c | 1 + > 1 file changed, 1

[PATCH v2 01/11] dt-bindings: add rk3399 support for dw-mipi-rockchip

2017-01-16 Thread Chris Zhong
The dw-mipi-dsi of rk3399 is almost the same as rk3288, the rk3399 has additional phy config clock. Signed-off-by: Chris Zhong --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 0/11] Rockchip dw-mipi-dsi driver

2017-01-16 Thread Chris Zhong
Hi all This patch serial is for RK3399 MIPI DSI. The MIPI DSI controller of RK3399 is almost the same as RK3288, except a little bit of difference in phy clock controlling and port id selection register. And these patches also fixes some driver bugs; add the power domain support. they have been

Re: [PATCH] mm, page_alloc: don't check cpuset allowed twice in fast-path

2017-01-16 Thread Anshuman Khandual
On 01/06/2017 04:10 PM, Michal Hocko wrote: > On Fri 06-01-17 09:18:05, Vlastimil Babka wrote: >> Since commit 682a3385e773 ("mm, page_alloc: inline the fast path of the >> zonelist iterator") we replace a NULL nodemask with >> cpuset_current_mems_allowed >> in the fast path, so that

drivers/gpu/drm/i915/i915_gem_gtt.c:2367: error: 'gtt_entry' may be used uninitialized in this function

2017-01-16 Thread kbuild test robot
Hi Dave, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 49def1853334396f948dcb4cedb9347abb318df5 commit: 85d1225ec066b2ef46fbd0ed1bae78ae1f3e6c91 drm/i915: Introduce & use new lightweight SGL iterators date: 8

Re: [PATCH 1/6] mm: introduce kv[mz]alloc helpers

2017-01-16 Thread Michal Hocko
On Sun 15-01-17 20:34:13, John Hubbard wrote: > > > On 01/12/2017 07:37 AM, Michal Hocko wrote: [...] > > diff --git a/mm/util.c b/mm/util.c > > index 3cb2164f4099..7e0c240b5760 100644 > > --- a/mm/util.c > > +++ b/mm/util.c > > @@ -324,6 +324,48 @@ unsigned long vm_mmap(struct file *file,

Re: llist code relies on undefined behaviour, upsets llvm/clang

2017-01-16 Thread Peter Zijlstra
On Mon, Jan 16, 2017 at 08:36:00AM +1100, Anton Blanchard wrote: > Hi, > > I was debugging a hang on a ppc64le kernel built with clang, and it > looks to be undefined behaviour with pointer wrapping in the llist code. > > A test case is below. llist_for_each_entry() does container_of() on a >

Re: [PATCH] fix race caused by hyperthreads when online an offline cpu

2017-01-16 Thread Thomas Gleixner
On Mon, 16 Jan 2017, Zhou Chengming wrote: Can you please stop sending the same patch over and over every other day? Granted, things get forgotten, but sending a polite reminder after a week is definitely enough. Maintainers are not machines responding within a split second on every mail they

Re: [PATCH v2 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set

2017-01-16 Thread Kishon Vijay Abraham I
On Wednesday 21 December 2016 01:42 PM, Baolin Wang wrote: > According to the documentation, we should set the EXTCON_USB when > one SDP charger connector was reported. > > Signed-off-by: Baolin Wang > Reviewed-by: Chanwoo Choi merged, thanks!

Re: [RFC PATCH v2 05/10] genirq: export irq_get_percpu_devid_partition to modules

2017-01-16 Thread Thomas Gleixner
On Fri, 13 Jan 2017, Will Deacon wrote: > Any modular driver using cluster-affine PPIs needs to be able to call > irq_get_percpu_devid_partition so that it can enable the IRQ on the > correct subset of CPUs. > > This patch exports the symbol so that it can be called from within a > module. > >

[PATCH 2/2] spi: pca2xx-pci: Allow MSI

2017-01-16 Thread Jan Kiszka
Now that the core is ready for edge-triggered interrupts, we can safely allow the PCI versions that provide this to enable the feature and, thus, have less shared interrupts. Signed-off-by: Jan Kiszka --- drivers/spi/spi-pxa2xx-pci.c | 14 -- 1 file changed,

Re: [Intel-gfx] [RESEND PATCH v14 2/2] drm/i915: Put "cooked" vlank counters in frame CRC lines

2017-01-16 Thread Tomeu Vizoso
On 10 January 2017 at 17:31, Daniel Vetter wrote: > On Tue, Jan 10, 2017 at 05:54:57PM +0200, Ville Syrjälä wrote: >> On Tue, Jan 10, 2017 at 02:43:05PM +0100, Tomeu Vizoso wrote: >> > Use drm_accurate_vblank_count so we have the full 32 bit to represent >> > the frame counter

Re: [PATCH 1/4] phy: sun4i-usb: add support for V3s USB PHY

2017-01-16 Thread Kishon Vijay Abraham I
On Friday 06 January 2017 07:26 PM, Maxime Ripard wrote: > On Tue, Jan 03, 2017 at 11:25:31PM +0800, Icenowy Zheng wrote: >> Allwinner V3s come with a USB PHY controller slightly different to other >> SoCs, with only one PHY. >> >> Add support for it. >> >> Signed-off-by: Icenowy Zheng

Re: [PATCH] drivers: phy: constify phy_ops structures

2017-01-16 Thread Kishon Vijay Abraham I
On Sunday 08 January 2017 04:05 PM, Bhumika Goyal wrote: > Declare phy_ops structures as const as they are only passed as an > argument to the function devm_phy_create. This argument is of type const > struct phy_ops *, so phy_ops structures having this property can be > declared as const. >

Re: [patch net-next] stmmac: indent an if statement

2017-01-16 Thread Dan Carpenter
On Sun, Jan 15, 2017 at 10:14:38PM -0500, David Miller wrote: > From: Dan Carpenter > Date: Thu, 12 Jan 2017 21:46:32 +0300 > > > The break statement should be indented one more tab. > > > > Signed-off-by: Dan Carpenter > > Applied, but like

Re: [PATCH] pcie: ti: Provide patch to force GEN1 PCIe operation

2017-01-16 Thread Lukasz Majewski
Hi Kishon, > Hi Łukasz, > > On Monday 16 January 2017 12:19 PM, Lukasz Majewski wrote: > > Hi Kishon, > > > >> Hi, > >> > >> On Sunday 15 January 2017 06:49 PM, Lukasz Majewski wrote: > >>> Some devices (due to e.g. bad PCIe signal integrity) require to > >>> run with forced GEN1 speed on PCIe

Re: [tpmdd-devel] [PATCH v8 2/2] tpm: add securityfs support for TPM 2.0 firmware event log

2017-01-16 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 01:09:29PM -0500, Stefan Berger wrote: > On 01/11/2017 02:54 AM, Nayna Jain wrote: > > Unlike the device driver support for TPM 1.2, the TPM 2.0 does > > not support the securityfs pseudo files for displaying the > > firmware event log. > > > > This patch enables support

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Michal Hocko
[Let's add Andrew] On Mon 16-01-17 10:16:43, Borislav Petkov wrote: > From: Borislav Petkov > > We wanna know who's doing such a thing. Like slab.c does that. Yes this was an omission on my side in 72baeef0c271 ("slab: do not panic on invalid gfp_mask"). > > Signed-off-by:

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Borislav Petkov
On Mon, Jan 16, 2017 at 11:48:51AM +0200, Leon Romanovsky wrote: > Almost, except one point - pr_warn and dump_stack have different log Actually, Michal pointed out on IRC a more relevant difference: WARN() taints the kernel and we don't want that for GFP flags misuse. Also, from looking at

Re: [PATCH v1 1/3] dt: bindings: add documentation for zx2967 family reset controller

2017-01-16 Thread Philipp Zabel
Hi, On Sat, 2017-01-14 at 15:05 +0800, Baoyou Xie wrote: > This patch adds dt-binding documentation for zx2967 family > reset controller. > > Signed-off-by: Baoyou Xie > --- > .../devicetree/bindings/reset/zte,zx2967-reset.txt | 20 > > 1 file

Re: [Intel-gfx] [PATCH v4] lib/scatterlist: Avoid potential scatterlist entry overflow

2017-01-16 Thread Tvrtko Ursulin
On 13/01/2017 22:23, Andy Shevchenko wrote: @@ -402,9 +403,16 @@ int sg_alloc_table_from_pages(struct sg_table *sgt, /* compute number of contiguous chunks */ chunks = 1; - for (i = 1; i < n_pages; ++i) - if (page_to_pfn(pages[i]) != page_to_pfn(pages[i -

Re: [PATCH] tpm: add session handles to the save and restore of the tpm2 space manager

2017-01-16 Thread Jarkko Sakkinen
On Mon, Jan 16, 2017 at 12:04:15PM +0200, Jarkko Sakkinen wrote: > On Fri, Jan 13, 2017 at 11:24:13AM -0800, James Bottomley wrote: > > Session handles are slightly more difficult to manage because any TPM > > only has a finite number of allowed handles, even if the session has > > been saved; so

Re: [PATCH v1 3/3] reset: zx2967: add reset controller driver for ZTE's zx2967 family

2017-01-16 Thread Shawn Guo
On Sat, Jan 14, 2017 at 03:05:30PM +0800, Baoyou Xie wrote: > +static int zx2967_reset_assert(struct reset_controller_dev *rcdev, > +unsigned long id) > +{ > + struct zx2967_reset *reset = NULL; > + int bank = id / 32; > + int offset = id % 32; > + unsigned

Re: [PATCH] pcie: ti: Provide patch to force GEN1 PCIe operation

2017-01-16 Thread Kishon Vijay Abraham I
Hi Łukasz, On Monday 16 January 2017 12:19 PM, Lukasz Majewski wrote: > Hi Kishon, > >> Hi, >> >> On Sunday 15 January 2017 06:49 PM, Lukasz Majewski wrote: >>> Some devices (due to e.g. bad PCIe signal integrity) require to run >>> with forced GEN1 speed on PCIe bus. >>> >>> This patch changes

Re: [PATCH v4 2/4] phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips

2017-01-16 Thread Kishon Vijay Abraham I
Hi, On Tuesday 10 January 2017 04:21 PM, Vivek Gautam wrote: > PHY transceiver driver for QUSB2 phy controller that provides > HighSpeed functionality for DWC3 controller present on > Qualcomm chipsets. > > Signed-off-by: Vivek Gautam > Reviewed-by: Stephen Boyd

Re: [v2 2/3] ARM: dts: STM32 Add USB FS host mode support

2017-01-16 Thread Alexandre Torgue
Hi Bruno, On 01/16/2017 03:09 AM, Bruno Herrera wrote: This patch adds the USB pins and nodes for USB HS/FS cores working at FS speed, using embedded PHY. Signed-off-by: Bruno Herrera Sorry, but what is patch 1 & pacth 3 status ? For this one, can split it in 3

[PATCH] rtc: stm32: use 0 instead of ~PWR_CR_DBP in regmap_update_bits

2017-01-16 Thread Amelie Delaunay
Using the ~ operator on a BIT() constant results in a large 'unsigned long' constant that won't fit into an 'unsigned int' function argument on 64-bit architectures, resulting in a harmless build warning in x86 allmodconfig: drivers/rtc/rtc-stm32.c: In function 'stm32_rtc_probe':

[GIT PULL] AppArmor fixes for 4.11

2017-01-16 Thread John Johansen
Hi James, This is a set of bug fixes, a few additions to apparmorfs policy introspection, a lot of code refactoring, and cleanups taking care of most of the compiler and sparse warnings. It does not implement new mediation or change the behavior of current upstream apparmor mediation but

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 10:16:43AM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > We wanna know who's doing such a thing. Like slab.c does that. > > Signed-off-by: Borislav Petkov > --- > mm/slub.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: linux-next 0112 tree breaks fs DAX

2017-01-16 Thread Xiong Zhou
On Fri, Jan 13, 2017 at 06:16:41PM +0800, Xiong Zhou wrote: > Hi, > > These cases "hang" when testing with -o dax mount option: > xfstests generic/030 generic/34{0,4,5,6} generic/198 > (maybe more) > > The test programme holetest or aiodio keep running for a > long time. It's killable, but it

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Borislav Petkov
On Mon, Jan 16, 2017 at 11:28:40AM +0200, Leon Romanovsky wrote: > On Mon, Jan 16, 2017 at 10:16:43AM +0100, Borislav Petkov wrote: > > From: Borislav Petkov > > > > We wanna know who's doing such a thing. Like slab.c does that. > > > > Signed-off-by: Borislav Petkov

Re: [PATCH 2/2] spi: pca2xx-pci: Allow MSI

2017-01-16 Thread Andy Shevchenko
On Mon, 2017-01-16 at 10:06 +0100, Jan Kiszka wrote: > Now that the core is ready for edge-triggered interrupts, we can > safely > allow the PCI versions that provide this to enable the feature and, > thus, have less shared interrupts. > My comments below. > -  if (IS_ERR(ssp->clk)) > +

Re: [PATCH v1 3/3] reset: zx2967: add reset controller driver for ZTE's zx2967 family

2017-01-16 Thread Philipp Zabel
On Sat, 2017-01-14 at 15:05 +0800, Baoyou Xie wrote: > This patch adds reset controller driver for ZTE's zx2967 family. > > Signed-off-by: Baoyou Xie > --- > drivers/reset/Kconfig| 6 ++ > drivers/reset/Makefile | 1 + > drivers/reset/reset-zx2967.c |

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 10:55:22AM +0100, Borislav Petkov wrote: > On Mon, Jan 16, 2017 at 11:48:51AM +0200, Leon Romanovsky wrote: > > Almost, except one point - pr_warn and dump_stack have different log > > Actually, Michal pointed out on IRC a more relevant difference: > > WARN() taints the

[PATCH v2 11/11] drm/rockchip/dsi: fix insufficient bandwidth of some panel

2017-01-16 Thread Chris Zhong
Set the lanes bps to 1 / 0.9 times of pclk, the margin is not enough for some panel, it will cause the screen display is not normal, so increases the badnwidth to 1 / 0.8. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2

[PATCH v2 10/11] drm/rockchip/dsi: fix phy clk lane stop state timeout

2017-01-16 Thread Chris Zhong
Before phy init, the detection of phy state should be controlled manually. After that, we can switch the detection to hardward, it is automatic. Hence move PHY_TXREQUESTCLKHS setting to the end of phy init. Signed-off-by: Chris Zhong ---

[PATCH v2 04/11] dt-bindings: add power domain node for dw-mipi-rockchip

2017-01-16 Thread Chris Zhong
Signed-off-by: Chris Zhong Acked-by: Rob Herring --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt

[PATCH v2 08/11] drm/rockchip/dsi: fix the issue can not send commands

2017-01-16 Thread Chris Zhong
From: xubilv There is a bug in hdr_write function, the value from the caller will be overwritten, it cause the mipi can not send the correct command. And the MIPI_DSI_GENERIC_SHORT_WRITE_n_PARAM message type should be supported. Signed-off-by: xubilv

[PATCH v2 09/11] drm/rockchip/dsi: decrease the value of Ths-prepare

2017-01-16 Thread Chris Zhong
From: xubilv Signed-off-by: xubilv Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c

Re: [PATCH tip/core/rcu 11/20] sched,rcu: Make cond_resched() provide RCU quiescent state

2017-01-16 Thread Josh Triplett
On Sat, Jan 14, 2017 at 01:13:12AM -0800, Paul E. McKenney wrote: > There is some confusion as to which of cond_resched() or > cond_resched_rcu_qs() should be added to long in-kernel loops. > This commit therefore eliminates the decision by adding RCU > quiescent states to cond_resched(). > >

Re: [PATCH tip/core/rcu 0/20] Miscellaneous fixes for 4.11

2017-01-16 Thread Josh Triplett
On Sat, Jan 14, 2017 at 01:12:55AM -0800, Paul E. McKenney wrote: > Hello! > > This series provides miscellaneous fixes: > > 1.Make RCU_EXPEDITE_BOOT be the default in order to speed up > boot, courtesy of Sebastian Andrzej Siewior. > > 2.Make RCU suspicious-access lockdep splats

Re: [PATCH perf/core v2 0/4] perf-probe: Fix and improve module probe events

2017-01-16 Thread Masami Hiramatsu
Ping? Arnaldo, could you merge it if it is acceptable? Thank you, On Wed, 11 Jan 2017 14:58:25 +0900 Masami Hiramatsu wrote: > Hello, > > This is the 2nd version of the series for fixing offline/online > module probe support and improving perf-probe to probe module >

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-16 Thread Tariq Toukan
On 12/01/2017 5:37 PM, Michal Hocko wrote: From: Michal Hocko There are many code paths opencoding kvmalloc. Let's use the helper instead. The main difference to kvmalloc is that those users are usually not considering all the aspects of the memory allocator. E.g. allocation

Re: [PATCH 1/2] ns: Allow ns_entries to have custom symlink content

2017-01-16 Thread Cyrill Gorcunov
On Sat, Jan 14, 2017 at 05:14:48PM +0300, Kirill Tkhai wrote: > Make possible to have link content prefix yyy > different from the link name xxx: > > $ readlink /proc/[pid]/ns/xxx > yyy:[4026531838] > > This will be used in next patch. > > Signed-off-by: Kirill Tkhai I

Re: [tpmdd-devel] [PATCH RFC v2 3/5] tpm: infrastructure for TPM spaces

2017-01-16 Thread Jarkko Sakkinen
On Thu, Jan 12, 2017 at 05:17:23PM -0800, James Bottomley wrote: > On Thu, 2017-01-12 at 19:46 +0200, Jarkko Sakkinen wrote: > > @@ -189,6 +190,12 @@ struct tpm_chip *tpm_chip_alloc(struct device > > *pdev, > > chip->cdev.owner = THIS_MODULE; > > chip->cdev.kobj.parent = >dev.kobj; > > >

Re: [PATCH v8 00/18] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2017-01-16 Thread Auger Eric
Hi Tomasz, On 13/01/2017 14:59, Tomasz Nowicki wrote: > Hello Eric, > > On 11.01.2017 10:41, Eric Auger wrote: >> Following LPC discussions, we now report reserved regions through >> the iommu-group sysfs reserved_regions attribute file. >> >> Reserved regions are populated through the IOMMU

Re: [PATCH v2 0/2] phy: Replace the deprecated extcon API

2017-01-16 Thread Chanwoo Choi
Hi Kishon, On 2017년 01월 10일 17:16, Chanwoo Choi wrote: > Hi Kishon, > > Could you review these patches or pick up them if there is no any comment? If there are no comments, could you apply these patches? > > On 2016년 12월 30일 13:11, Chanwoo Choi wrote: >> This patches just replace the

Re: [PATCH 0/6] USB support for Broadcom NSP SoC

2017-01-16 Thread Kishon Vijay Abraham I
On Tuesday 13 December 2016 07:50 AM, Florian Fainelli wrote: > On 11/09/2016 01:33 AM, Yendapally Reddy Dhananjaya Reddy wrote: >> This patch set contains the usb support for Broadcom NSP SoC. >> The usb phy is connected through mdio interface. The mdio interface >> can be used to access either

[PATCH v2] virtio_console: fix a crash in config_work_handler

2017-01-16 Thread G. Campana
Using control_work instead of config_work as the 3rd argument to container_of results in an invalid portdev pointer. Indeed, the work structure is initialized as below: INIT_WORK(>config_work, _work_handler); It leads to a crash when portdev->vdev is dereferenced later. This bug is triggered

Re: [tpmdd-devel] [PATCH RFC v2 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-16 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 09:40:08AM -0800, James Bottomley wrote: > On Fri, 2017-01-13 at 10:25 -0700, Jason Gunthorpe wrote: > > On Thu, Jan 12, 2017 at 10:56:28PM +0200, Jarkko Sakkinen wrote: > > > > > > dev_t tpm_devt; > > > > > > But they should have different major device numbers. > > > >

Re: [tpmdd-devel] [PATCH RFC v2 3/5] tpm: infrastructure for TPM spaces

2017-01-16 Thread Jarkko Sakkinen
On Sat, Jan 14, 2017 at 12:53:15PM -0500, Ken Goldman wrote: > On 1/13/2017 11:28 AM, Jarkko Sakkinen wrote: > > > > > + > > > > + if (!tpm2_find_cc_attrs(chip, cc, )) { > > > > + /* should never happen */ > > > > + dev_err(>dev, "TPM returned a different CC: > >

Re: [PATCH] tpm: add session handles to the save and restore of the tpm2 space manager

2017-01-16 Thread Jarkko Sakkinen
On Fri, Jan 13, 2017 at 11:24:13AM -0800, James Bottomley wrote: > Session handles are slightly more difficult to manage because any TPM > only has a finite number of allowed handles, even if the session has > been saved; so when you context save a session, you must not flush it > because that

Re: [PATCH 09/10] ARM: dts: da850: add the SATA node

2017-01-16 Thread Bartosz Golaszewski
2017-01-13 20:36 GMT+01:00 David Lechner : > On 01/13/2017 06:38 AM, Bartosz Golaszewski wrote: >> >> Add the SATA node to the da850 device tree. >> >> Signed-off-by: Bartosz Golaszewski >> --- >> arch/arm/boot/dts/da850.dtsi | 6 ++ >> 1 file

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Borislav Petkov
On Mon, Jan 16, 2017 at 12:09:30PM +0200, Leon Romanovsky wrote: > And doesn't dump_stack do the same? It pollutes the log too. It is not about polluting the log - it is about tainting. __warn()->add_taint(taint, LOCKDEP_STILL_OK); -- Regards/Gruss, Boris. Good mailing practices for 400:

Re: [PATCH 03/10] devicetree: bindings: add bindings for ahci-da850

2017-01-16 Thread Bartosz Golaszewski
2017-01-13 20:25 GMT+01:00 David Lechner : > On 01/13/2017 06:37 AM, Bartosz Golaszewski wrote: >> >> Add DT bindings for the TI DA850 AHCI SATA controller. >> >> Signed-off-by: Bartosz Golaszewski >> --- >>

Re: [PATCH 06/10] sata: ahci_da850: implement a softreset quirk

2017-01-16 Thread Bartosz Golaszewski
2017-01-16 0:12 GMT+01:00 Tejun Heo : > On Fri, Jan 13, 2017 at 01:38:00PM +0100, Bartosz Golaszewski wrote: >> +static int ahci_da850_softreset(struct ata_link *link, >> + unsigned int *class, unsigned long deadline) >> +{ >> + int pmp, ret; >> +

[PATCH] ARM64: meson-gxbb-p200: add ADC laddered keys

2017-01-16 Thread Neil Armstrong
Add the 5 buttons connected to a resistor laddered matrix and sampled by the SAR ADC channel 0. Only the p200 board has these buttons, the P201 doesn't. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts | 50 + 1

  1   2   3   4   5   6   7   8   9   10   >