Re: [PATCH 2/2] irqchip/renesas-intc-irqpin: Add R-Car Gen1 fallback binding

2016-12-14 Thread Simon Horman
On Mon, Dec 12, 2016 at 12:43:11PM -0600, Rob Herring wrote: > On Fri, Dec 09, 2016 at 01:52:20PM +0100, Geert Uytterhoeven wrote: > > Hi Simon, > > > > On Fri, Dec 9, 2016 at 11:50 AM, Simon Horman > > wrote: > > > In the case of Renesas R-Car hardware we know that there are generations > > > o

Re: [PATCH v2] keys/encrypted: Fix two crypto-on-the-stack bugs

2016-12-14 Thread Eric Biggers
On Wed, Dec 14, 2016 at 01:04:04PM +0800, Herbert Xu wrote: > On Tue, Dec 13, 2016 at 06:53:03PM -0800, Andy Lutomirski wrote: > > On Tue, Dec 13, 2016 at 6:48 PM, Andy Lutomirski wrote: > > > The driver put a constant buffer of all zeros on the stack and > > > pointed a scatterlist entry at it in

Re: linux-next: build warning after merge of the tip tree

2016-12-14 Thread Stephen Rothwell
Hi Ingo, On Wed, 14 Dec 2016 08:24:11 +0100 Ingo Molnar wrote: > > FYI, f4f61d2cc6d8 is not in the -tip tree, so it cannot possibly have > introduced > this warning. Yeah, I know, but the warning only seemed to happen after merging the tip tree. I would have expected it to appear much earlier

[PATCH v9 0/4] Add Mediatek JPEG Decoder

2016-12-14 Thread Rick Chang
This series of patches provide a v4l2 driver to control Mediatek JPEG decoder for decoding JPEG image and Motion JPEG bitstream. changes since v8: - Fix state error in first bit stream when capture buffer has been stream on. This will trigger device run inadvertently. changes since v7: - Update

[PATCH v9 1/4] dt-bindings: mediatek: Add a binding for Mediatek JPEG Decoder

2016-12-14 Thread Rick Chang
Add a DT binding documentation for Mediatek JPEG Decoder of MT2701 SoC. Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai Acked-by: Rob Herring --- .../bindings/media/mediatek-jpeg-decoder.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documen

[PATCH v9 3/4] arm: dts: mt2701: Add node for Mediatek JPEG Decoder

2016-12-14 Thread Rick Chang
Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- This patch depends on: CCF "Add clock support for Mediatek MT2701"[1] iommu and smi "Add the dtsi node of iommu and smi for mt2701"[2] [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-October/007271.html [2] https://patc

[PATCH v9 4/4] vcodec: mediatek: Add Maintainers entry for Mediatek JPEG driver

2016-12-14 Thread Rick Chang
Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai Signed-off-by: Bin Liu --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 93e9f42..6f68fb6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7818,6 +7818,13 @@ L: net...@vger.kernel

[PATCH v9 2/4] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

2016-12-14 Thread Rick Chang
Add v4l2 driver for Mediatek JPEG Decoder Signed-off-by: Rick Chang Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig | 15 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-jpeg/Makefile |2 + drivers/media/pla

Re: linux-next: build warning after merge of the tip tree

2016-12-14 Thread Richard Weinberger
Stephen, Ingo, CC'ing David. On 14.12.2016 08:24, Ingo Molnar wrote: > > * Stephen Rothwell wrote: > >> Hi all, >> >> After merging the tip tree, today's linux-next build (x86_64 allmodconfig) >> produced this warning: >> >> fs/ubifs/dir.c: In function 'ubifs_readdir': >> fs/ubifs/dir.c:629:13

Re: [patch 0/2] tsc/adjust: Cure suspend/resume issues and prevent TSC deadline timer irq storm

2016-12-14 Thread Thomas Gleixner
On Wed, 14 Dec 2016, Roland Scheidegger wrote: > Am 13.12.2016 um 17:46 schrieb Thomas Gleixner: > > What are the adjust values after a warm boot? > > So, after cold boot with a kernel which doesn't adjust TSCs, then warm > boot I got: > [0.00] TSC ADJUST: CPU0: -602358264300 176072418728 >

[PATCH v2] clk: imx: pllv3: support fractional multiplier on vf610 PLL1/PLL2

2016-12-14 Thread Nikita Yushchenko
On vf610, PLL1 and PLL2 have registers to configure fractional part of frequency multiplier. This patch adds support for these registers. This fixes "fast system clock" issue on boards where bootloader sets fractional multiplier for PLL1. Suggested-by: Andrey Smirnov CC: Chris Healy Signed-off

Re: [PATCH] vhost: introduce O(1) vq metadata cache

2016-12-14 Thread kbuild test robot
Hi Jason, [auto build test WARNING on vhost/linux-next] [also build test WARNING on v4.9 next-20161214] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jason-Wang/vhost-introduce-O-1-vq-metadata

Re: [PATCH] cifs: Fix smbencrypt() to stop pointing a scatterlist at the stack

2016-12-14 Thread Steve French
merged into cifs-2.6.git for-next On Tue, Dec 13, 2016 at 7:07 AM, Jeff Layton wrote: > On Mon, 2016-12-12 at 12:54 -0800, Andy Lutomirski wrote: >> smbencrypt() points a scatterlist to the stack, which is breaks if >> CONFIG_VMAP_STACK=y. >> >> Fix it by switching to crypto_cipher_encrypt_one().

Re: [PATCH] [PATCH] GenWQE: drop duplicate headers

2016-12-14 Thread Frank Haverkamp
Hi Geliang, > On 28 Nov 2016, at 15:15, Geliang Tang wrote: > > On Thu, Nov 24, 2016 at 01:51:57PM +0100, Frank Haverkamp wrote: >> Hi Geliang, >> >> thanks for the simplification. Did you find those by manual inspection, or >> did you use a tool? >> >> Acked-by: Frank Haverkamp > > Hi Fran

RE: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-12-14 Thread Li, Liang Z
> fast (de)inflating & fast live migration > > Hello, > > On Fri, Dec 09, 2016 at 05:35:45AM +, Li, Liang Z wrote: > > > On 12/08/2016 08:45 PM, Li, Liang Z wrote: > > > > What's the conclusion of your discussion? It seems you want some > > > > statistic before deciding whether to ripping th

[PATCH] 9p: safer definition of P9_NOTAG and P9_NOFID

2016-12-14 Thread Greg Kurz
Both defines should at least have enclosing parenthesis to be usable in any syntactical situation. This is the case of U16_MAX and U32_MAX, so let's use them. This patch is just cleanup, it doesn't change any behaviour with the current code. Signed-off-by: Greg Kurz --- include/net/9p/9p.h |

Re: linux-next: build warning after merge of the tip tree

2016-12-14 Thread Stephen Rothwell
Hi Richard, On Wed, 14 Dec 2016 09:05:10 +0100 Richard Weinberger wrote: > > The commit comes via my UBIFS tree. But I never saw this warning, I'm testing > with both gcc-4.8 and gcc-6.1. > Let me investigate into that. > > Does today's tip change some compiler flags? Linus' tree commit a76

Re: linux-next: build warning after merge of the tip tree

2016-12-14 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > fs/ubifs/dir.c: In function 'ubifs_readdir': > fs/ubifs/dir.c:629:13: warning: 'fstr_real_len' may be used uninitialized in > this function [-Wmaybe-

Re: Documenting the ioctl interfaces to discover relationships between namespaces

2016-12-14 Thread Michael Kerrisk (man-pages)
On 12/12/2016 07:18 PM, Eric W. Biederman wrote: > "Michael Kerrisk (man-pages)" writes: > >> On 12/11/2016 11:30 PM, Eric W. Biederman wrote: >>> "Michael Kerrisk (man-pages)" writes: >>> [was: [PATCH 0/4 v3] Add an interface to discover relationships between namespaces] >>> >>> One s

[tip:x86/urgent] x86/boot/64: Use 'push' instead of 'call' in start_cpu()

2016-12-14 Thread tip-bot for Josh Poimboeuf
Commit-ID: ec2d86a9b646d93f1948569f368e2c6f5449e6c7 Gitweb: http://git.kernel.org/tip/ec2d86a9b646d93f1948569f368e2c6f5449e6c7 Author: Josh Poimboeuf AuthorDate: Tue, 13 Dec 2016 21:25:35 -0600 Committer: Ingo Molnar CommitDate: Wed, 14 Dec 2016 08:48:05 +0100 x86/boot/64: Use 'push' i

[tip:x86/urgent] x86/boot/64: Push correct start_cpu() return address

2016-12-14 Thread tip-bot for Josh Poimboeuf
Commit-ID: 31dcfec11f827e9a5d8720fe4728f1305894884f Gitweb: http://git.kernel.org/tip/31dcfec11f827e9a5d8720fe4728f1305894884f Author: Josh Poimboeuf AuthorDate: Tue, 13 Dec 2016 21:25:36 -0600 Committer: Ingo Molnar CommitDate: Wed, 14 Dec 2016 08:48:05 +0100 x86/boot/64: Push correct

Re: [PATCH v2] keys/encrypted: Fix two crypto-on-the-stack bugs

2016-12-14 Thread David Howells
Andy Lutomirski wrote: > > - sg_set_buf(&sg_out[1], pad, sizeof pad); > > + sg_set_buf(&sg_out[1], empty_zero_page, 16); > > My fix here is obviously bogus (I meant to use ZERO_PAGE(0)), but what > exactly is the code trying to do? The old code makes no sense. It's > setting the *o

Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-14 Thread Peter Zijlstra
On Tue, Dec 13, 2016 at 04:54:30PM -0600, Segher Boessenkool wrote: > On Tue, Dec 13, 2016 at 09:39:55PM +0100, christophe leroy wrote: > > Le 13/12/2016 à 20:15, Segher Boessenkool a écrit : > > >On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: > > >>At exception prologs, once SRR

Re: [PATCH 08/12] misc: Flexcard misc device support

2016-12-14 Thread Arnd Bergmann
On Wednesday, December 14, 2016 1:11:49 AM CET Holger Dengler wrote: > The Flexcard PCI BAR0 contain registers for configuration but also > for informational purpose like error counter, statistical information > and some timestamps. The read-only mmap of the misc device offers the > userspace a fas

Re: [PATCH 12/23] drm: omapdrm: plane: update fifo size on atomic update

2016-12-14 Thread Tomi Valkeinen
On 13/12/16 19:35, Laurent Pinchart wrote: > Hi Sebastian, > > Thank you for the patch. > > On Tuesday 08 Mar 2016 17:39:44 Sebastian Reichel wrote: >> This is a workaround for a hardware bug occuring >> on OMAP3 with manually updated panels. > > Could you please explain what the bug is and how

Re: [PATCH 10/12] misc: Flexcard basic timestamp counter support

2016-12-14 Thread Arnd Bergmann
On Wednesday, December 14, 2016 1:11:51 AM CET Holger Dengler wrote: > The Eberspaecher Flexcard PMC II offers a Flexray network synchronized > counter with a selectable resolution of 1us, 100ns or 10ns. Add basic > support for the timestamp counter with 1us resolution, which is the > standard Flex

Re: [PATCH linux v1 4/4] arm: dts: Add dt-binding to support seven segment display on zaius

2016-12-14 Thread Arnd Bergmann
On Tuesday, December 13, 2016 11:55:04 PM CET Jaghathiswari Rankappagounder Natarajan wrote: > Add clock, data and clear signal GPIO lines to control seven segment display > on > zaius platform. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan > --- > arch/arm/boot/dts/aspeed-bmc-opp

Re: [RFC PATCH] mm: introduce kv[mz]alloc helpers

2016-12-14 Thread Michal Hocko
On Tue 13-12-16 14:07:33, Joe Perches wrote: > On Tue, 2016-12-13 at 11:14 +0100, Michal Hocko wrote: > > Are there any more comments or objections to this patch? Is this a good > > start or kv[mz]alloc has to provide a way to cover GFP_NOFS users as > > well in the initial version. > > Did Andrew

Re: [PATCH V4] i2c: designware: fix wrong Tx/Rx FIFO for ACPI

2016-12-14 Thread Jarkko Nikula
On 12/14/2016 05:20 AM, Tin Huynh wrote: On Tue, Dec 13, 2016 at 6:25 PM, Andy Shevchenko + param = i2c_dw_read_comp_param(dev); + tx_fifo_depth = ((param >> 16) & 0xff) + 1; + rx_fifo_depth = ((param >> 8) & 0xff) + 1; + if (!dev->tx_fifo_depth) { + dev->tx_fifo_dep

Re: [PATCH linux v1 4/4] arm: dts: Add dt-binding to support seven segment display on zaius

2016-12-14 Thread Arnd Bergmann
On Wednesday, December 14, 2016 9:55:47 AM CET Arnd Bergmann wrote: > According to your introductory mail, the interface is assumed to be > a 74HC164. Should we use that ID in the compatible string? > > We can always add other strings later if we want to support multiple > wire formats. Actually,

RE: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-12-14 Thread Li, Liang Z
> Subject: Re: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for > fast (de)inflating & fast live migration > > On 12/08/2016 08:45 PM, Li, Liang Z wrote: > > What's the conclusion of your discussion? It seems you want some > > statistic before deciding whether to ripping the bitmap fr

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Dodji Seketeli
Michal Marek a écrit: [...] > Does the abidiff tool handle the case when an exported symbol is moved > between .c files? This is always a mess with genksyms, because the two > .c files have different includes and thus the type expansion stops at > different points. So typically the move needs to

Re: [PATCH] char: lack of bool string made CONFIG_DEVPORT always on

2016-12-14 Thread Geert Uytterhoeven
On Wed, Dec 14, 2016 at 2:18 AM, Max wrote: > Without a bool string present, using "# CONFIG_DEVPORT is not set" in > defconfig files would not actually unset devport. This ensured that > /dev/port was always on, but there are reasons a user may wish to disable > it (smaller kernel, attack surface

Re: [PATCH linux v1 4/4] arm: dts: Add dt-binding to support seven segment display on zaius

2016-12-14 Thread Joel Stanley
Hello Jagha, On Wed, Dec 14, 2016 at 6:25 PM, Jaghathiswari Rankappagounder Natarajan wrote: > Add clock, data and clear signal GPIO lines to control seven segment display > on > zaius platform. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan The Zaius device tree is not upstream. I

Re: [PATCH v4 3/4] powernv: Pass PSSCR value and mask to power9_idle_stop

2016-12-14 Thread Gautham R Shenoy
Hi Balbir, Thanks for reviewing the patch. Please find my comments inline. On Wed, Dec 14, 2016 at 11:16:26AM +1100, Balbir Singh wrote: [..snip..] > > > > /* > > - * r3 - requested stop state > > + * r3 - PSSCR value corresponding to the requested stop state. > > */ > > power_enter_stop:

Re: [PATCH 12/23] drm: omapdrm: plane: update fifo size on atomic update

2016-12-14 Thread Laurent Pinchart
Hi Tomi, On Wednesday 14 Dec 2016 10:43:18 Tomi Valkeinen wrote: > On 13/12/16 19:35, Laurent Pinchart wrote: > > On Tuesday 08 Mar 2016 17:39:44 Sebastian Reichel wrote: > >> This is a workaround for a hardware bug occuring > >> on OMAP3 with manually updated panels. > > > > Could you please exp

Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask

2016-12-14 Thread Michal Hocko
On Tue 13-12-16 08:33:34, Alan Stern wrote: > On Tue, 13 Dec 2016, Michal Hocko wrote: > > > > > That being said, what ep_write_iter does sounds quite stupit. It just > > > > allocates a large continuous buffer which seems to be under user > > > > control... Aka no good! It should do that per pag

Re: [PATCH] char: lack of bool string made CONFIG_DEVPORT always on

2016-12-14 Thread Arnd Bergmann
On Wednesday, December 14, 2016 9:58:53 AM CET Geert Uytterhoeven wrote: > > > > --- a/drivers/char/Kconfig > > +++ b/drivers/char/Kconfig > > @@ -589,10 +589,13 @@ config TELCLOCK > > controlling the behavior of this hardware. > > > > config DEVPORT > > - bool > > + bool "/d

[PATCH 1/2] mm: don't dereference struct page fields of invalid pages

2016-12-14 Thread Ard Biesheuvel
The VM_BUG_ON() check in move_freepages() checks whether the node id of a page matches the node id of its zone. However, it does this before having checked whether the struct page pointer refers to a valid struct page to begin with. This is guaranteed in most cases, but may not be the case if CONFI

[PATCH 2/2] arm64: mm: enable CONFIG_HOLES_IN_ZONE for NUMA

2016-12-14 Thread Ard Biesheuvel
The NUMA code may get confused by the presence of NOMAP regions within zones, resulting in spurious BUG() checks where the node id deviates from the containing zone's node id. Since the kernel has no business reasoning about node ids of pages it does not own in the first place, enable CONFIG_HOLES

[PATCH 0/2] arm64: numa: fix spurious BUG() on NOMAP regions

2016-12-14 Thread Ard Biesheuvel
This fixes the issue reported by Robert Richter where the fact that the node id of struct pages covered by NOMAP regions is not initialized, triggering a VM_BUG_ON() in the mm code. I know that this approach is the least preferred option by Robert, but it has been used successfully in the downstre

Re: [PATCH 12/23] drm: omapdrm: plane: update fifo size on atomic update

2016-12-14 Thread Tomi Valkeinen
On 14/12/16 11:10, Laurent Pinchart wrote: > Hi Tomi, > > On Wednesday 14 Dec 2016 10:43:18 Tomi Valkeinen wrote: >> On 13/12/16 19:35, Laurent Pinchart wrote: >>> On Tuesday 08 Mar 2016 17:39:44 Sebastian Reichel wrote: This is a workaround for a hardware bug occuring on OMAP3 with manu

Re: [RESEND PATCH v4 1/2] sysctl: introduce new proc handler proc_dobool

2016-12-14 Thread hejianet
Thanks, this error is caused by # CONFIG_PROC_SYSCTL is not set Will fixed in next version Jia B.R. On 12/14/16 2:13 PM, kbuild test robot wrote: Hi Jia, [auto build test ERROR on linus/master] [also build test ERROR on v4.9 next-20161214] [if your patch is applied to the wrong git tree

Re: [PATCH v2 8/9] openrisc: Updates after openrisc.net has been lost

2016-12-14 Thread Geert Uytterhoeven
Hi Stafford, Stefan, On Mon, Nov 14, 2016 at 2:30 PM, Stafford Horne wrote: > The openrisc.net domain expired and was taken over by squatters. > These updates point documentation to the new domain, mailing lists > and git repos. > > Also, Jonas is not the main maintainer anylonger, he reviews cha

Re: [RFC 2/2] powerpc/8xx: Perf events on PPC 8xx

2016-12-14 Thread Peter Zijlstra
On Tue, Dec 13, 2016 at 07:19:43PM +0100, Christophe Leroy wrote: > +int mpc8xx_pmu_event_init(struct perf_event *event) > +{ > + int type = event_type(event); > + > + switch (type) { > + case PERF_8xx_ID_CPU_CYCLES: > + case PERF_8xx_ID_ITLB_LOAD_MISS: > + case PERF_8xx_ID_DTLB

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Michal Marek
On 2016-12-14 09:58, Dodji Seketeli wrote: > Michal Marek a écrit: > > [...] > >> Does the abidiff tool handle the case when an exported symbol is moved >> between .c files? This is always a mess with genksyms, because the two >> .c files have different includes and thus the type expansion stops

Re: [RFC PATCH] mm: introduce kv[mz]alloc helpers

2016-12-14 Thread Michal Hocko
On Tue 13-12-16 13:55:46, Andreas Dilger wrote: > On Dec 13, 2016, at 3:14 AM, Michal Hocko wrote: > > > > Are there any more comments or objections to this patch? Is this a good > > start or kv[mz]alloc has to provide a way to cover GFP_NOFS users as > > well in the initial version. > > I'm in

Re: [PATCH 10/12] misc: Flexcard basic timestamp counter support

2016-12-14 Thread Thomas Gleixner
On Wed, 14 Dec 2016, Arnd Bergmann wrote: > On Wednesday, December 14, 2016 1:11:51 AM CET Holger Dengler wrote: > > The Eberspaecher Flexcard PMC II offers a Flexray network synchronized > > counter with a selectable resolution of 1us, 100ns or 10ns. Add basic > > support for the timestamp counter

[PATCH V5] i2c: designware: fix wrong Tx/Rx FIFO for ACPI

2016-12-14 Thread Tin Huynh
ACPI always sets Tx/Rx FIFO to 32. This configuration will cause problem if the IP core supports a FIFO size of less than 32. The driver should read the FIFO size from the IP and select the smaller one of the two. Signed-off-by: Tin Huynh --- drivers/i2c/busses/i2c-designware-platdrv.c | 31 +

Re: [PATCH v7 1/2] usb: xhci: plat: Enable runtime PM

2016-12-14 Thread Baolin Wang
Hi Robert, On 14 December 2016 at 14:43, Robert Foss wrote: > Hey Baolin, > > On 2016-12-12 12:21 AM, Baolin Wang wrote: >> >> Hi Robert, >> >> On 2 December 2016 at 05:46, Robert Foss >> wrote: >>> >>> Enable runtime PM for the xhci-plat device so that the parent device >>> may implement runtim

Re: [PATCH 08/12] misc: Flexcard misc device support

2016-12-14 Thread Holger Dengler
On 12/14/2016 09:42 AM, Arnd Bergmann wrote: > On Wednesday, December 14, 2016 1:11:49 AM CET Holger Dengler wrote: >> The Flexcard PCI BAR0 contain registers for configuration but also >> for informational purpose like error counter, statistical information >> and some timestamps. The read-only mm

Re: [PATCH 2/6] clk: sunxi-ng: set the parent rate when adjustin CPUX clock on A33

2016-12-14 Thread Maxime Ripard
On Wed, Dec 14, 2016 at 04:54:14AM +0800, Icenowy Zheng wrote: > > > 13.12.2016, 23:44, "Maxime Ripard" : > > On Tue, Dec 13, 2016 at 11:22:48PM +0800, Icenowy Zheng wrote: > >>  The CPUX clock on A33, which is for the Cortex-A7 cores, is designed to > >>  be changeable by changing the rate of PL

Re: [PATCH] vhost: introduce O(1) vq metadata cache

2016-12-14 Thread Jason Wang
On 2016年12月14日 16:14, kbuild test robot wrote: Hi Jason, [auto build test WARNING on vhost/linux-next] [also build test WARNING on v4.9 next-20161214] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Dodji Seketeli
Michal Marek a écrit: [...] > A minimal example would be > > t1.c: > struct s1; > struct s2 { > int i; > } > struct s3 { > struct s1 *ptr1; > struct s2 *ptr2; > } > void foo(struct s3*); > EXPORT_SYMBOL(foo); > > t2.c: > struct s1 { > int j; > } > struct s2; > struct s3 {

Re: [PATCH 09/18] arm64: introduce binfmt_elf32.c

2016-12-14 Thread Yury Norov
On Mon, Dec 05, 2016 at 03:10:19PM +, Catalin Marinas wrote: > On Fri, Oct 21, 2016 at 11:33:08PM +0300, Yury Norov wrote: > > As we support more than one compat formats, it looks more reasonable > > to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 > > specific defini

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Michal Marek
On 2016-12-14 10:36, Dodji Seketeli wrote: > Michal Marek a écrit: > > [...] > >> A minimal example would be >> >> t1.c: >> struct s1; >> struct s2 { >> int i; >> } >> struct s3 { >> struct s1 *ptr1; >> struct s2 *ptr2; >> } >> void foo(struct s3*); >> EXPORT_SYMBOL(foo); >> >> t2

Re: [PATCH 6/7] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2016-12-14 Thread Bart Van Assche
On 12/08/2016 09:13 PM, Jens Axboe wrote: > +static inline bool dd_rq_is_shadow(struct request *rq) > +{ > + return rq->rq_flags & RQF_ALLOCED; > +} Hello Jens, Something minor: because req_flags_t has been defined using __bitwise (typedef __u32 __bitwise req_flags_t) sparse complains for the

Re: [PATCH] char: lack of bool string made CONFIG_DEVPORT always on

2016-12-14 Thread Josh Triplett
On Wed, Dec 14, 2016 at 10:11:19AM +0100, Arnd Bergmann wrote: > On Wednesday, December 14, 2016 9:58:53 AM CET Geert Uytterhoeven wrote: > > > > > > --- a/drivers/char/Kconfig > > > +++ b/drivers/char/Kconfig > > > @@ -589,10 +589,13 @@ config TELCLOCK > > > controlling the behavior of t

RE: [PATCH 3/3] secure_seq: use fast&secure siphash instead of slow&insecure md5

2016-12-14 Thread David Laight
From: Jason A. Donenfeld > Sent: 14 December 2016 00:17 > This gives a clear speed and security improvement. Rather than manually > filling MD5 buffers, we simply create a layout by a simple anonymous > struct, for which gcc generates rather efficient code. ... > + const struct { > +

Re: [RFT PATCH] ARM64: dts: meson-gxbb: Add reserved memory zone and usable memory range

2016-12-14 Thread Neil Armstrong
On 12/12/2016 10:22 PM, Heinrich Schuchardt wrote: > On 12/12/2016 11:18 AM, Neil Armstrong wrote: >> The Amlogic Meson GXBB secure monitor uses part of the memory space, this >> patch adds these reserved zones and redefines the usable memory range for >> each boards. >> >> Signed-off-by: Neil Arms

[GIT PULL] MMC for v.4.10 - take 2/2

2016-12-14 Thread Ulf Hansson
Hi Linus, Here's a second PR for MMC for v4.10. As a matter of fact it's only one change that moves some mmc files around. I thought it was a good idea to get this into v4.10, as it gives us a nice and fresh base for v4.11. Details are as usual found in the signed tag. Please pull this in! Kin

Re: [PATCH v7 4/5] ARM: dts: da850-lcdk: add the vga-bridge node

2016-12-14 Thread Tomi Valkeinen
On 13/12/16 12:09, Bartosz Golaszewski wrote: > Add the vga-bridge node to the board DT together with corresponding > ports and vga connector. This allows to retrieve the edid info from > the display automatically. > > Signed-off-by: Bartosz Golaszewski > Reviewed-by: Laurent Pinchart > --- > a

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Dodji Seketeli
Dodji Seketeli a écrit: Grr, I did paste the wrong content of t1.c and t2.c in my last message sorry. Here are the correct ones: $ cat t1.c struct s1; struct s2 { int i; }; struct s3 { struct s1 *ptr1; struct s2 *ptr2; }; void foo(struct s3* s __attribute__((unused))) {

Re: [PATCH v4 2/4] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-12-14 Thread Gautham R Shenoy
Hi Balbir, On Tue, Dec 13, 2016 at 10:51:04PM +1100, Balbir Singh wrote: > > > On 10/12/16 00:32, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > In the current code for powernv_add_idle_states, there is a lot of code > > duplication while initializing an idle state in powernv_s

RE: [PATCH 1/3] siphash: add cryptographically secure hashtable function

2016-12-14 Thread David Laight
From: Jason A. Donenfeld > Sent: 14 December 2016 00:17 > SipHash is a 64-bit keyed hash function that is actually a > cryptographically secure PRF, like HMAC. Except SipHash is super fast, > and is meant to be used as a hashtable keyed lookup function. > > SipHash isn't just some new trendy hash

Re: [PATCH v7 1/5] ARM: dts: da850: rename the display node label

2016-12-14 Thread Tomi Valkeinen
On 13/12/16 12:09, Bartosz Golaszewski wrote: > The tilcdc node name is 'display' as per the ePAPR 1.1 recommendation. > The label is also 'display', but change it to 'lcdc' to make it clear > what the underlying hardware is. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/boot/dts/da850

[PATCH v2] arm64: mm: Fix NOMAP page initialization

2016-12-14 Thread Robert Richter
On ThunderX systems with certain memory configurations we see the following BUG_ON(): kernel BUG at mm/page_alloc.c:1848! This happens for some configs with 64k page size enabled. The BUG_ON() checks if start and end page of a memmap range belongs to the same zone. The BUG_ON() check fails if a

[PATCH v2 0/2] iio: adc: hx711: Add IIO driver for AVIA HX711 ADC

2016-12-14 Thread Andreas Klinger
This series adds IIO driver support for the AVIA HX711 ADC which is mostly used in weighting cells. The first patch adds the new DT binding for which a new vendor avia was also added. The second patch is the simple IIO driver implemented as ADC. The protocol is specific to this device and implem

Re: [PATCH] drm/bridge: analogix_dp: set the DPCD600 during disabling the psr

2016-12-14 Thread Sean Paul
On Wed, Dec 14, 2016 at 12:03 AM, Archit Taneja wrote: > Hi, > > On 12/12/2016 08:28 PM, Sean Paul wrote: >> >> On Fri, Dec 9, 2016 at 9:49 PM, Caesar Wang wrote: >>> >>> Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host >>> device, that will cause the panel hang on the sta

[PATCH v2 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-14 Thread Andreas Klinger
This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting cells. The protocol is quite simple and using GPIO's: One GPIO is used as clock (SCK) while another GPIO is read (DOUT) The raw value read from the chip is delivered. To get a weight one needs to subtract the zero offse

[PATCH v2 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-14 Thread Andreas Klinger
Add DT bindings for avia,hx711 Add vendor avia to vendor list Signed-off-by: Andreas Klinger --- .../devicetree/bindings/iio/adc/avia-hx711.txt | 21 + .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 22 insertions(+) create mode 100644 Docum

Re: [PATCH] arm64: mm: Fix NOMAP page initialization

2016-12-14 Thread Robert Richter
On 12.12.16 17:53:02, Yisheng Xie wrote: > It seems that memblock_is_memory() is also too strict for early_pfn_valid, > so what about this patch, which use common pfn_valid as early_pfn_valid > when CONFIG_HAVE_ARCH_PFN_VALID=y: > > diff --git a/include/linux/mmzone.h b/include/linux/m

[PATCH V2] vhost: introduce O(1) vq metadata cache

2016-12-14 Thread Jason Wang
When device IOTLB is enabled, all address translations were stored in interval tree. O(lgN) searching time could be slow for virtqueue metadata (avail, used and descriptors) since they were accessed much often than other addresses. So this patch introduces an O(1) array which points to the interval

Re: sctp: suspicious rcu_dereference_check() usage in sctp_epaddr_lookup_transport

2016-12-14 Thread Xin Long
On Wed, Dec 14, 2016 at 5:37 AM, Marcelo Ricardo Leitner wrote: > On Tue, Dec 13, 2016 at 07:07:01PM +0100, Dmitry Vyukov wrote: >> Hello, >> >> I am getting the following reports while running syzkaller fuzzer: >> >> [ INFO: suspicious RCU usage. ] >> 4.9.0+ #85 Not tainted >> ---

[RFC PATCH net-next v4 2/2] macb: Enable 1588 support in SAMA5Dx platforms.

2016-12-14 Thread Andrei Pistirica
This patch does the following: - Enable HW time stamp for the following platforms: SAMA5D2, SAMA5D3 and SAMA5D4. - HW time stamp capabilities are advertised via ethtool and macb ioctl is updated accordingly. - HW time stamp on the PTP Ethernet packets are received using the SO_TIMESTAMPING AP

[GIT PULL] trivial for 4.10

2016-12-14 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial.git for-linus to receive 4.10 merge window updates from trivial tree I hereby confess to having rebased the for-next branch, because I wanted to drop all the '\n' additions that were obsoleted by the recent p

[GIT PULL] HID for 4.10

2016-12-14 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive 4.10 merge window updates for HID subsystem, namely = - support for new Wacom "MobileStudio Pro" class of tablets from Jason Gerecke - Microsoft Surface 3 support from Benjamin Tiss

[RFC PATCH net-next v4 1/2] macb: Add 1588 support in Cadence GEM.

2016-12-14 Thread Andrei Pistirica
Cadence GEM provides a 102 bit time counter with 48 bits for seconds, 30 bits for nsecs and 24 bits for sub-nsecs to control 1588 timestamping. This patch does the following: - Registers to ptp clock framework - Timer initialization is done by writing time of day to the timer counter. - ns increme

[GIT PULL] livepatching for 4.10

2016-12-14 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus to receive 4.10 merge window updates for livepatching tree; this is just a small documentation update (as the work on the hybrid model is still underway). Thanks.

[PATCH] ubifs: Initialize fstr_real_len

2016-12-14 Thread Richard Weinberger
While fstr_real_len is only being used under if (encrypted), gcc-6 still warns. Fixes this false positive: fs/ubifs/dir.c: In function 'ubifs_readdir': fs/ubifs/dir.c:629:13: warning: 'fstr_real_len' may be used uninitialized in this function [-Wmaybe-uninitialized] fstr.len = fstr_real_len I

[PATCH 2/3] clk: rockchip: rk3399: export 480M_SRC clocks id for usbphy0/usbphy1

2016-12-14 Thread Xing Zheng
This patch exports USBPHYx_480M_SRC clocks for usbphy. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 3490887..cf2af4c 100644 ---

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Dodji Seketeli
Michal Marek a écrit: >> Libabigail does a "whole binary" analysis of types. >> >> So, consider the point of use of the type 'struct s1*'. Even if 'struct >> s' is just forward-declared at that point, the declaration of struct s1 >> is "resolved" to its definition. Even if the definition comes

[PATCH 1/3] clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs

2016-12-14 Thread Xing Zheng
This patch add two clock IDs for the usb phy 480m source clocks. Signed-off-by: Xing Zheng --- include/dt-bindings/clock/rk3399-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 220a60f..224daf7 100

[patch v1 1/1] platform/x86: mlx-platform: mlxcpld-hotplug driver style fixes

2016-12-14 Thread Vadim Pasternak
The patch contains several styling fixes: - Make names of hotplug devices shorter; - Change register offset assignment to defines; - Add defines for the all event masks; - Use PLATFORM_DEVID_NONE instead of -1; Signed-off-by: Vadim Pasternak --- drivers/platform/x86/mlx-platform.c | 84 +

[PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-14 Thread Xing Zheng
From: William wu We found that the suspend process was blocked when it run into ehci/ohci module due to clk-480m of usb2-phy was disabled. The root cause is that usb2-phy suspended earlier than ehci/ohci (usb2-phy will be auto suspended if no devices plug-in). and the clk-480m provided by it was

Re: [PATCH v2 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-14 Thread Lars-Peter Clausen
On 12/14/2016 10:59 AM, Andreas Klinger wrote: > Add DT bindings for avia,hx711 > Add vendor avia to vendor list > > Signed-off-by: Andreas Klinger > --- > .../devicetree/bindings/iio/adc/avia-hx711.txt | 21 > + > .../devicetree/bindings/vendor-prefixes.txt |

[patch v1 0/1] platform/x86: mlx-platform: mlxcpld-hotplug driver notes

2016-12-14 Thread Vadim Pasternak
This patch contains the non-functional fixes, pointed out by Andy. I was waiting with sending the patch until the patch which moves mlx-platform driver from arch/x86/platform/mellanox to drivers/platform/x86 folder is accepted. Now after the below patches are committed to the testing branch: platfo

Re: Fw: [lkp-developer] [sched,rcu] cf7a2dca60: [No primary change] +186% will-it-scale.time.involuntary_context_switches

2016-12-14 Thread Michal Hocko
On Tue 13-12-16 07:14:08, Paul E. McKenney wrote: > Just FYI for the moment... > > So even with the slowed-down checking, making cond_resched() do what > cond_resched_rcu_qs() does results in a smallish but quite measurable > degradation according to 0day. So if I understand those results properl

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Michal Marek
On 2016-12-14 11:02, Dodji Seketeli wrote: > Michal Marek a écrit: > >>> Libabigail does a "whole binary" analysis of types. >>> >>> So, consider the point of use of the type 'struct s1*'. Even if 'struct >>> s' is just forward-declared at that point, the declaration of struct s1 >>> is "resolve

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-14 Thread Michal Marek
On 2016-12-14 10:15, Michal Marek wrote: > A minimal example would be > > t1.c: > struct s1; > struct s2 { > int i; > } > struct s3 { > struct s1 *ptr1; > struct s2 *ptr2; > } > void foo(struct s3*); > EXPORT_SYMBOL(foo); > > t2.c: > struct s1 { > int j; > } > struct s2; >

答复: [PATCH] fuse: freezing abort when use wait_event_killable{,_exclusive}().

2016-12-14 Thread 崔立飞
Rafael, Any questions about the patch, please let me know. Thanks! BR, Cui Li Fei 发件人: 崔立飞 发送时间: 2016年12月8日 14:31 收件人: Rafael J. Wysocki 抄送: linux-kernel@vger.kernel.org; mik...@szeredi.hu; pa...@ucw.cz; len.br...@intel.com; linux-fsde...@vger.kernel.org

[PATCH 0/3] Add and export clk-480m clocks for ehci and ohci on RK3399

2016-12-14 Thread Xing Zheng
Hi, This patches would like to fix the USB suspend block without the clk-480m clock. Let's add and export them to control them. Thanks. William wu (1): arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399 Xing Zheng (2): clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs c

Re: page allocation stall in kernel 4.9 when copying files from one btrfs hdd to another

2016-12-14 Thread Michal Hocko
On Tue 13-12-16 18:11:01, David Arendt wrote: > Hi, > > I receive the following page allocation stall while copying lots of > large files from one btrfs hdd to another. > > Dec 13 13:04:29 server kernel: kworker/u16:8: page allocation stalls for > 12260ms, order:0, mode:0x2400840(GFP_NOFS|__GFP_

[PATCH] serial: fsl_lpuart: Remove the alias node dependence

2016-12-14 Thread Yuan Yao
From: Yuan Yao Numbering the ttyLPn space should not depend on the generic name "serial". If don't add the alias node like:"serial0 = &lpuart0;", then lpuart will probe failed: [0.773410] fsl-lpuart 295.serial: failed to get alias id, errno -19 So remove the alias node dependence, and a

Re: [PATCH] vfio/pci: Support error recovery

2016-12-14 Thread Cao jin
Sorry for late. after reading all your comments, I think I will try the solution 1. On 12/13/2016 03:12 AM, Alex Williamson wrote: > On Mon, 12 Dec 2016 21:49:01 +0800 > Cao jin wrote: > >> Hi, >> I have 2 solutions(high level design) came to me, please see if they are >> acceptable, or which on

[GIT PULL] sound updates for 4.10

2016-12-14 Thread Takashi Iwai
Linus, please pull sound updates for 4.10 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.10-rc1 The topmost commit is 995c6a7fd9b9212abdf01160f6ce3193176be503 sound updates for 4.10-rc1 No dr

Re: [PATCH] block_dev: don't update file access position for sync direct IO

2016-12-14 Thread Christoph Hellwig
On Tue, Dec 13, 2016 at 09:08:18PM -0700, Jens Axboe wrote: > That's not great... Thanks, added. Ooops, yeah - we're still going through ->direct_IO for block devices. I'll take a stab at removing that, as it's just a pointless indirect call.

Re: [PATCH 6/6] media/cobalt: use pci_irq_allocate_vectors

2016-12-14 Thread Christoph Hellwig
Hi Hans, just checked the current Linux tree and cobalt still uses the old pci_enable_msi_range call. Did you queue this patch up for 4.10?

Re: page allocation stall in kernel 4.9 when copying files from one btrfs hdd to another

2016-12-14 Thread Michal Hocko
Btw. the stall should be preceded by the OOM killer invocation. Could you share the OOM report please. I am asking because such an OOM killer would be clearly pre-mature as per your meminfo. I am trying to change that code and seeing your numbers might help me. Thanks! On Wed 14-12-16 11:17:43, M

Re: [PATCH 5/7] blk-mq-sched: add framework for MQ capable IO schedulers

2016-12-14 Thread Bart Van Assche
On 12/13/2016 04:14 PM, Jens Axboe wrote: > On 12/13/2016 06:56 AM, Bart Van Assche wrote: >> On 12/08/2016 09:13 PM, Jens Axboe wrote: >>> +struct request *blk_mq_sched_alloc_shadow_request(struct request_queue *q, >>> + struct blk_mq_alloc_data >>> *da

  1   2   3   4   5   6   7   8   9   >