Re: [PATCH v3 09/18] xen/pvcalls: implement bind command

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Allocate a socket. Track the allocated passive sockets with a new data > structure named sockpass_mapping. It contains an unbound workqueue to > schedule delayed work for the accept and poll commands. It also has a > reqcopy field to be used to store a

Re: [PATCH v3 10/18] xen/pvcalls: implement listen command

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Call inet_listen to implement the listen command. > > Signed-off-by: Stefano Stabellini > CC: boris.ostrov...@oracle.com > CC: jgr...@suse.com > --- > drivers/xen/pvcalls-back.c | 21 - > 1 file changed, 20 insertions(+), 1 delet

Re: [-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

2017-06-13 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > function mwifiex_ret_pkt_aggr_ctrl can be made static as it does not > need to be in global scope. > > Cleans up sparse warning: "symbol 'mwifiex_ret_pkt_aggr_ctrl' was not > declared. Should it be static?" > > Signed-off-by: Colin Ian King P

Re: [wireless-next] qtnfmac: check band before allocating cmd_skb to avoid resource leak

2017-06-13 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > The current code allocates cmd_skb and then will leak this if band->band > is an illegal value. It is simpler to sanity check the band first before > allocating cmd_skb so that we don't have to free cmd_skb if an invalid > band occurs. > > Detec

Re: [PATCH v6 00/18] mtd: nand: denali: Denali NAND IP patch bomb

2017-06-13 Thread Boris Brezillon
Le Tue, 13 Jun 2017 14:03:52 +0900, Masahiro Yamada a écrit : > This patch series intends to solve various problems. > > [1] The driver just retrieves the OOB area as-is > whereas the controller uses syndrome page layout. > [2] ONFi devices are not working > [3] It can not read Bad Block Mar

Re: [PATCH] mwifiex: fixes the trivial print

2017-06-13 Thread Kalle Valo
Caesar Wang writes: > Kalle, > > 在 2017年06月13日 14:28, Kalle Valo 写道: >> Caesar Wang writes: >> >>> We have always met the unused log be printed as following. >>> >>> ... >>> [23193.523182] mwifiex_pcie :01:00.0: mwifiex_get_cfp: >>> cannot find cfp by band 2& channel=13 freq=0 >>> [23378

Re: mwifiex: Replace semaphore async_sem with mutex

2017-06-13 Thread Kalle Valo
Binoy Jayan wrote: > The semaphore 'async_sem' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > Reviewed-by: Arnd Bergmann Patch applied to wireless-drivers-next.git, thanks. 1abf9ae719f6 mwifiex: Replace s

Re: WMI and Kernel:User interface

2017-06-13 Thread Christoph Hellwig
Hi Darren, first - can you please properly trim your replies and don't write more than 7 characters per line? On Mon, Jun 12, 2017 at 06:24:35PM -0700, Darren Hart wrote: > This is a big topic for sure. Speed and scale of platform enabling is > something > I would like to see us support better.

Re: [PATCH v5 0/6] reset: APIs to manage a list of resets

2017-06-13 Thread Vivek Gautam
On 06/01/2017 10:21 PM, Philipp Zabel wrote: A set of patches to allow consumers to get and de/assert or trigger a number of resets at the same time. A patch on top of Vivek's original API extension is added to hide the reset_control_array behind a struct reset_control so that the consumer does

Re: [PATCHv5] wlcore: add wl1285 compatible

2017-06-13 Thread Kalle Valo
Sebastian Reichel wrote: > Motorola Droid 4 uses a WL 1285C. With differences between > chips not being public let's add explicit binding for wl1285 > instead of relying on wl1283 being very similar. > > Reviewed-by: Rob Herring > Acked-by: Kalle Valo > Acked-by: Tony Lindgren > Signed-off-by

Re: wlcore: spi: remove unnecessary variable

2017-06-13 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Remove unnecessary variable and refactor the code. > > Addresses-Coverity-ID: 1365000 > Signed-off-by: Gustavo A. R. Silva Patch applied to wireless-drivers-next.git, thanks. c48c281e7236 wlcore: spi: remove unnecessary variable -- https://patchwork.kernel.org

[PATCH v3] ASoC: sgtl5000: add avc support

2017-06-13 Thread Richard Leitner
The sgtl5000 features a automatic volume control block (AVC), which reduces loud signals and amplifies low level signals for easier listening. This patch adds support for this AVC block to the driver. Apart from the "AVC Switch" control which enables the block following controls for the configurat

Re: [PATCH 1/3] PCI: ensure the PCI device is locked over ->reset_notify calls

2017-06-13 Thread Christoph Hellwig
On Mon, Jun 12, 2017 at 06:14:23PM -0500, Bjorn Helgaas wrote: > My main concern is being able to verify the locking. I think that is > much easier if the locking is adjacent to the method invocation. But > if you just add a comment at the method invocation about where the > locking is, that shou

Re: [PATCH v2 3/8] PM / Domains: Add lockdep asserts for domains list mutex

2017-06-13 Thread Krzysztof Kozlowski
On Mon, Jun 12, 2017 at 09:09:59PM +0200, Ulf Hansson wrote: > On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > > Add lockdep checks for holding mutex protecting the list of domains. > > This might expose misuse even though only file-scope functions use it > > for now. > > I think it seems

Re: [PATCH v2 0/8] scheduler tinification

2017-06-13 Thread Ingo Molnar
* Nicolas Pitre wrote: > > A series that shrinks the .text size of the allnoconfig core Linux kernel > > from 1MB > > to 9.9MB in isolation is not proof. > > I assume you meant 0.9MB. 0.992 MB actually if we apply the ~8k .text savings. 0.9MB would imply 100k of savings on an allnoconfig ke

[PATCH net-next v2 0/2] r8152: adjust runtime suspend/resume

2017-06-13 Thread Hayes Wang
v2: For #1, replace GFP_KERNEL with GFP_NOIO for usb_submit_urb(). v1: Improve the flow about runtime suspend/resume and make the code easy to read. Hayes Wang (2): r8152: split rtl8152_resume function r8152: move calling delay_autosuspend function drivers/net/usb/r8152.c | 107

[PATCH net-next v2 1/2] r8152: split rtl8152_resume function

2017-06-13 Thread Hayes Wang
Split rtl8152_resume() into rtl8152_runtime_resume() and rtl8152_system_resume(). Besides, replace GFP_KERNEL with GFP_NOIO for usb_submit_urb(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 99 ++--- 1 file changed, 61 insertions(+), 38 de

Re: linux-next: manual merge of the char-misc tree with the jc_docs tree

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 04:23:41PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > Documentation/admin-guide/index.rst > > between commit: > > 504f231cda56 ("doc: ReSTify and split LSM.txt") > > from the jc_docs tree and co

[PATCH net-next v2 2/2] r8152: move calling delay_autosuspend function

2017-06-13 Thread Hayes Wang
Move calling delay_autosuspend() in rtl8152_runtime_suspend(). Calling delay_autosuspend() as late as possible. The original flows are 1. check if the driver/device is busy now. 2. set wake events. 3. enter runtime suspend. If the wake event occurs between (1) and (2), the device may mis

Re: [PATCH] w1: Fix slave count on 1-Wire bus (resend)

2017-06-13 Thread Greg Kroah-Hartman
On Sat, Jun 10, 2017 at 10:43:36AM +0300, Evgeniy Polyakov wrote: > Hi > > 30.05.2017, 21:04, "Alex A. Mihaylov" : > > 1-Wire bus have very fast algorith for exchange with single slave > > device. Fix incorrect count of slave devices on connect second slave > > device. This case on slave device pr

Re: [PATCH 0/2] arm64: fix crash when reading /proc/kcore

2017-06-13 Thread Ard Biesheuvel
On 13 June 2017 at 04:00, Tan Xiaojun wrote: > On 2017/6/9 3:41, Ard Biesheuvel wrote: >> This is a follow-up to patches from zhonjiang [0] and myself [1] that aim >> to solve a problem in the kcore code, which gets confused by the presence >> of block mappings in the vmalloc region. >> >> While f

[PATCH] PCI: dwc: dra7xx: Fix compilation warning.

2017-06-13 Thread Arvind Yadav
drivers/pci/dwc/pci-dra7xx.c: In function ‘dra7xx_pcie_enable_msi_interrupts’: drivers/pci/dwc/pci-dra7xx.c:177:7: warning: large integer implicitly truncated to unsigned type [-Woverflow] ~LEG_EP_INTERRUPTS & ~MSI); ^ drivers/pci/dwc/pci-dra7xx.c: In function ‘dra7xx_pcie_enable_wr

Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true

2017-06-13 Thread Tony Lindgren
* Russell King - ARM Linux [170610 03:24]: > On Sat, Jun 10, 2017 at 01:44:00PM +0900, Hoeun Ryu wrote: > > Hello, Russell. > > > > Would you please review this patch ? > > It's really up to Tony Lindgren, who is the OMAP maintainer. I'll take a look today. I think we can simplify things quite

Re: [PATCH v3] arm64: allwinner: h5: Add initial Orangepi Zero Plus 2 support

2017-06-13 Thread Maxime Ripard
On Mon, Jun 12, 2017 at 03:23:14PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Orangepi Zero Plus 2 is an open-source single-board computer > using the Allwinner h5 SOC. > > H5 Orangepi Zero Plus 2 has > - Quad-core Cortex-A53 > - 512MB DDR3 > - micrSD slot and 8GB eMMC > - Debug TTL UART >

Re: [PATCH v3] arm64: allwinner: a64: Add initial Orangepi Win/WinPlus support

2017-06-13 Thread Maxime Ripard
On Mon, Jun 12, 2017 at 03:23:13PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Orangepi Win/WinPlus is an open-source single-board computer > using the Allwinner A64 SOC. > > A64 Orangepi Win/WinPlus has > - A64 Quad-core Cortex-A53 64bit > - 1GB(Win)/2GB(Win Plus) DDR3 SDRAM > - Debug TTL U

Re: [PATCH 4.11 000/150] 4.11.5-stable review

2017-06-13 Thread Greg Kroah-Hartman
On Mon, Jun 12, 2017 at 06:12:43PM -0600, Shuah Khan wrote: > On 06/12/2017 09:23 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.11.5 release. > > There are 150 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: [PATCH 4.11 000/150] 4.11.5-stable review

2017-06-13 Thread Greg Kroah-Hartman
On Mon, Jun 12, 2017 at 03:03:32PM -0700, Guenter Roeck wrote: > On Mon, Jun 12, 2017 at 05:23:27PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.11.5 release. > > There are 150 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH 4.9 000/119] 4.9.32-stable review

2017-06-13 Thread Greg Kroah-Hartman
On Mon, Jun 12, 2017 at 02:54:26PM -0700, Guenter Roeck wrote: > On Mon, Jun 12, 2017 at 05:24:22PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.32 release. > > There are 119 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH v3 11/18] xen/pvcalls: implement accept command

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Implement the accept command by calling inet_accept. To avoid blocking > in the kernel, call inet_accept(O_NONBLOCK) from a workqueue, which get > scheduled on sk_data_ready (for a passive socket, it means that there > are connections to accept). > >

RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Gabriele Paoloni
Hi Lorenzo, Rafael > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: 12 June 2017 16:57 > To: Gabriele Paoloni; raf...@kernel.org; Rafael J. Wysocki; Mika > Westerberg > Cc: catalin.mari...@arm.com; will.dea...@arm.com; robh...@kernel.org; > frowand.

[PATCH v4] mmc: dw_mmc-k3: add sd support for hi3660

2017-06-13 Thread liwei
Add sd card support for hi3660 soc Signed-off-by: Li Wei Signed-off-by: Chen Jun Major changes in v3: - solve review comments from Heiner Kallweit. *use the GENMASK and FIELD_PREP macros replace the bit shift operation. *use usleep_range() replace udelay() and mdelay(). Major changes in

Re: [PATCH 5/7] ima: add securityfs interface to save a measurements list with kexec header

2017-06-13 Thread Roberto Sassu
On 6/6/2017 3:23 PM, Mimi Zohar wrote: On Tue, 2017-06-06 at 14:45 +0200, Roberto Sassu wrote: On 6/6/2017 12:56 PM, Mimi Zohar wrote: On Tue, 2017-06-06 at 10:49 +0200, Roberto Sassu wrote: On 6/5/2017 8:04 AM, Mimi Zohar wrote: On Tue, 2017-05-16 at 14:53 +0200, Roberto Sassu wrote: Throug

Re: [PATCH v3 12/18] xen/pvcalls: implement poll command

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Implement poll on passive sockets by requesting a delayed response with > mappass->reqcopy, and reply back when there is data on the passive > socket. > > Poll on active socket is unimplemented as by the spec, as the frontend > should just wait for ev

Re: [PATCH 4.11 145/150] tracing: Use strlcpy() instead of strcpy() in __trace_find_cmdline()

2017-06-13 Thread Greg Kroah-Hartman
On Mon, Jun 12, 2017 at 12:25:39PM -0400, Steven Rostedt wrote: > On Mon, 12 Jun 2017 18:05:00 +0200 > Greg Kroah-Hartman wrote: > > > > Link: > > > http://lkml.kernel.org/r/1493806274-13936-1-git-send-email-amit.pun...@linaro.org > > > Hm, Amit asked me to merge all of these for some reason.

[PATCH v1 1/2] ASoC: rockchip: add support for pdm controller

2017-06-13 Thread Sugar Zhang
The Pulse Density Modulation Interface Controller (PDMC) is a PDM interface controller and decoder that support PDM format. It integrates a clock generator driving the PDM microphone and embeds filters which decimate the incoming bit stream to obtain most common audio rates. Signed-off-by: Sugar Z

[PATCH v1 2/2] arm64: dts: rk3328: add pdm node

2017-06-13 Thread Sugar Zhang
This patch add pdm controller device node for rk3328. Signed-off-by: Sugar Zhang --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 55 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dt

[PATCH v1 0/2] Patches to add support pdm controller for rk3328

2017-06-13 Thread Sugar Zhang
These patches to add support pdm for rk3328 socs. Sugar Zhang (2): ASoC: rockchip: add support for pdm controller arm64: dts: rk3328: add pdm node .../devicetree/bindings/sound/rockchip,pdm.txt | 39 ++ arch/arm64/boot/dts/rockchip/rk3328.dtsi | 55 +++ sound/soc/rockchip/Kc

Re: [PATCH v4 1/2] media: i2c: adv748x: add adv748x driver

2017-06-13 Thread Niklas Söderlund
Hi Kieran, Thanks for your patch, and great work! On 2017-06-13 01:35:07 +0100, Kieran Bingham wrote: > From: Kieran Bingham > > Provide support for the ADV7481 and ADV7482. > > The driver is modelled with 4 subdevices to allow simultaneous streaming > from the AFE (Analog front end) and HDMI

Re: posix timer: general protection fault in cleanup_timers

2017-06-13 Thread Thomas Gleixner
On Mon, 12 Jun 2017, idaif...@gmail.com wrote: > Update: got another reproducible KASAN report on commit > 32c1431eea4881a6b17bd7c639315010aeefa452(4.12-rc5) : Can you please provide the reproducer code? Thanks, tglx

Re: [PATCH 2/4] ARM: dts: tps65217: Add power button interrupt to the common tps65217.dtsi file

2017-06-13 Thread Tony Lindgren
* Enric Balletbo i Serra [170612 14:28]: > The interrupt for power button is static data that comes from the > datasheet, there is no reason to need to define this value on every > board so seams reasonable put this information into the common tps65217 > file. I think there's a problem with these

Re: [PATCH 1/2] arm: nommu: remove unused KTHREAD_SIZE definition

2017-06-13 Thread Vladimir Murzin
On 12/06/17 18:09, Jérémy Lefaure wrote: > I didn't find any use of this macro in the current kernel tree (with git > grep). KTHREAD_SIZE is no longer used for a very very long time. So > let's remove this definition. > > Signed-off-by: Jérémy Lefaure > --- > arch/arm/include/asm/page-nommu.h |

Re: [PATCH v3 13/18] xen/pvcalls: implement release command

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Release both active and passive sockets. For active sockets, make sure > to avoid possible conflicts with the ioworker reading/writing to those > sockets concurrently. Set map->release to let the ioworker know > atomically that the socket will be relea

Re: [linux-sunxi] Re: [PATCH v2 01/11] dt-bindings: update the binding for Allwinner H3 TVE support

2017-06-13 Thread Maxime Ripard
On Sat, Jun 10, 2017 at 12:51:02AM +0800, Icenowy Zheng wrote: > > > 于 2017年6月10日 GMT+08:00 上午12:49:15, Maxime Ripard > 写到: > >On Wed, Jun 07, 2017 at 04:48:50PM +0800, Icenowy Zheng wrote: > >> >> @@ -189,6 +211,8 @@ supported. > >> >> Required properties: > >> >>- compatible: value must

Re: [PATCH 08/11] Creation of "pagefault_handler_x86" LSM hook

2017-06-13 Thread Salvatore Mesoraca
2017-06-12 19:32 GMT+02:00 Thomas Gleixner : > That explains, what you could do with it, but it completely lacks any > rationale WHY this is desired and good behaviour and how that is a security > feature. You are right, I could have been more descriptive. This is not a security feature "per se",

Re: [PATCH v3 2/7] staging: sm750fb: unifying macro usage and definitions

2017-06-13 Thread Matej Dujava
On Thu, May 18, 2017 at 03:56:26PM +0200, Greg KH wrote: > On Tue, May 16, 2017 at 11:20:18AM +0200, Matej Dujava wrote: > > This patch adds tabs into macro definitions so all rhs are on same column. > > Move MHz macro from ddk_chip.c to ddk_chip.h. > > > > Signed-off-by: Matej Dujava > > --- > >

Re: [PATCH] mwifiex: fixes the trivial print

2017-06-13 Thread Caesar Wang
在 2017年06月13日 15:04, Kalle Valo 写道: Caesar Wang writes: Kalle, 在 2017年06月13日 14:28, Kalle Valo 写道: Caesar Wang writes: We have always met the unused log be printed as following. ... [23193.523182] mwifiex_pcie :01:00.0: mwifiex_get_cfp: cannot find cfp by band 2& channel=13 freq=

Re: [PATCH V2] i2c: ismt: fix wrong device address when unmap the data buffer

2017-06-13 Thread Andy Shevchenko
On Tue, Jun 13, 2017 at 7:59 AM, Song liwei wrote: > From: Liwei Song > > Fix the following kernel bug: > > kernel BUG at drivers/iommu/intel-iommu.c:3260! > invalid opcode: [#5] PREEMPT SMP > Hardware name: Intel Corp. Harcuvar/Server, BIOS > HAVLCRB0.X64.0013.D39.1608311820 08/31/2016 > t

Re: [kernel-hardening] [PATCH 01/11] S.A.R.A. Documentation

2017-06-13 Thread Salvatore Mesoraca
2017-06-12 19:49 GMT+02:00 Jann Horn : > On Mon, Jun 12, 2017 at 6:56 PM, Salvatore Mesoraca > As far as I can tell, the wxprot interface in procfs, when used as > /proc/PID/attr/sara/wxprot, actually only sets restrictions on one of the > threads. > The documentation doesn't seem to mention this.

Re: [PATCH v2 07/11] drm: sun4i: add support for the TV encoder in H3 SoC

2017-06-13 Thread Maxime Ripard
On Sun, Jun 11, 2017 at 02:43:42PM +0800, icen...@aosc.io wrote: > 在 2017-06-07 17:38,Maxime Ripard 写道: > > On Mon, Jun 05, 2017 at 12:01:45AM +0800, Icenowy Zheng wrote: > > > Allwinner H3 features a TV encoder similar to the one in earlier SoCs, > > > but has a internal fixed clock divider that d

Re: [PATCH] drm/mediatek: check for memory allocation failure

2017-06-13 Thread CK Hu
Hi, Christophe: Applied to my branch mediatek-drm-next-4.13, thanks. Regards, CK On Fri, 2017-06-09 at 21:27 +0200, Christophe JAILLET wrote: > If 'devm_kmalloc_array' returns NULL, we should return -ENOMEM as already > done a few lines above instead of deferencing a NULL pointer a few lines > b

Re: [PATCH 01/16] move copyout of timespec into do_cpu_nanosleep()

2017-06-13 Thread Thomas Gleixner
On Tue, 13 Jun 2017, Thomas Gleixner wrote: > On Wed, 7 Jun 2017, Al Viro wrote: > > @@ -1242,12 +1243,14 @@ static int do_cpu_nanosleep(const clockid_t > > which_clock, int flags, > > > > error = -ERESTART_RESTARTBLOCK; > > + /* > > +* Report back to the user t

Re: [PATCH 03/11] Creation of "usb_device_auth" LSM hook

2017-06-13 Thread Salvatore Mesoraca
2017-06-12 19:35 GMT+02:00 Krzysztof Opasiak : > Could you please explain me why we need LSM for this? > > There are tools like usbguard[1] and as far as I can tell it looks like they > can do everything for you... I have to admit that this is the first time I read about usbguard and it made me re

Re: [PATCH 2/2] drm/vc4: Add get/set tiling ioctls.

2017-06-13 Thread Boris Brezillon
Hi Eric, On Wed, 7 Jun 2017 17:13:36 -0700 Eric Anholt wrote: > This allows mesa to set the tiling format for a BO and have that > tiling format be respected by mesa on the other side of an > import/export (and by vc4 scanout in the kernel), without defining a > protocol to pass the tiling thro

Re: [PATCH 1/2] drm/vc4: Add T-format scanout support.

2017-06-13 Thread Boris Brezillon
On Wed, 7 Jun 2017 17:13:35 -0700 Eric Anholt wrote: > The T tiling format is what V3D uses for textures, with no raster > support at all until later revisions of the hardware (and always at a > large 3D performance penalty). If we can't scan out V3D's format, > then we often need to do a relay

Re: [PATCH 1/3] kbuild: Add cc-option-no-kbuild macro

2017-06-13 Thread Michal Marek
On 2017-06-13 02:55, Matthias Kaehlcke wrote: > cc-option uses KBUILD_CFLAGS and KBUILD_CPPFLAGS when it determines > whether an option is supported or not. This is fine for options used to > build the kernel itself, however some components like the x86 boot code > use a different set of flags. >

Re: [PATCH 03/11] Creation of "usb_device_auth" LSM hook

2017-06-13 Thread Salvatore Mesoraca
2017-06-12 21:38 GMT+02:00 Greg Kroah-Hartman : > No, like Krzysztof said, you can already do this today, just fine, from > userspace. I think that support has been there for over a decade now, > why are you not taking advantage of this already? > No need to add extra stuff to the kernel at all to

Re: [PATCH v3 14/18] xen/pvcalls: disconnect and module_exit

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Implement backend_disconnect. Call pvcalls_back_release_active on active > sockets and pvcalls_back_release_passive on passive sockets. > > Implement module_exit by calling backend_disconnect on frontend > connections. > > Signed-off-by: Stefano Stab

Re: [PATCH v3 15/18] xen/pvcalls: implement the ioworker functions

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > We have one ioworker per socket. Each ioworker goes through the list of > outstanding read/write requests. Once all requests have been dealt with, > it returns. > > We use one atomic counter per socket for "read" operations and one > for "write" opera

Re: [PATCH 03/11] Creation of "usb_device_auth" LSM hook

2017-06-13 Thread Salvatore Mesoraca
2017-06-12 23:31 GMT+02:00 Casey Schaufler : > Return the error reported by the hook rather than -EPERM. Agreed, anyway this part will be, probably, dropped in the next version (read Greg and Krzysztof answers). I'm sorry :( Thank you very much for the time you spent on this.

Re: [PATCH 05/11] Creation of "check_vmflags" LSM hook

2017-06-13 Thread Salvatore Mesoraca
2017-06-13 8:34 GMT+02:00 Christoph Hellwig : > Please always post the whole series including the users, thanks. I'm sorry for the inconvenience, it won't happen again. Thank you for your comment.

Re: [PATCH] mwifiex: fixes the trivial print

2017-06-13 Thread Kalle Valo
Caesar Wang writes: > 在 2017年06月13日 15:04, Kalle Valo 写道: >> Caesar Wang writes: >> >>> Kalle, >>> >>> 在 2017年06月13日 14:28, Kalle Valo 写道: Caesar Wang writes: > We have always met the unused log be printed as following. > > ... > [23193.523182] mwifiex_pcie :01:00.

Re: posix timer: general protection fault in cleanup_timers

2017-06-13 Thread idaifish
Hi, My first report has already attached the C reproducer and .config. I've tested on my Ubuntu16.04 (4.4.0-79-generic #100-Ubuntu SMP x86_64). The reproducer can cause my computer to freeze. 2017-06-13 13:11 GMT+08:00 Dmitry Vyukov : > On Tue, Jun 13, 2017 at 4:27 AM, wrote: >> Update: got

Re: [PATCH 05/11] Creation of "check_vmflags" LSM hook

2017-06-13 Thread Salvatore Mesoraca
2017-06-12 23:31 GMT+02:00 Casey Schaufler : > Have the hook return a value and return that rather > than -EPERM. That way a security module can choose an > error that it determines is appropriate. It is possible > that a module might want to deny the access for a reason > other than lack of privil

[PATCH] ip6_tunnel: Correct tos value in collect_md mode

2017-06-13 Thread Haishuang Yan
Same as ip_gre, geneve and vxlan, use key->tos as tos value. Signed-off-by: Haishuang Yan --- net/ipv6/ip6_tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index ef99d59..5f4aff5 100644 --- a/net/ipv6/ip6_tunnel.c +++

Re: [PATCH v3 16/18] xen/pvcalls: implement read

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > When an active socket has data available, increment the io and read > counters, and schedule the ioworker. > > Implement the read function by reading from the socket, writing the data > to the data ring. > > Set in_error on error. > > Signed-off-by:

[PATCH V2 1/2] dt-bindings: timer: add nxp tpm timer binding doc

2017-06-13 Thread Dong Aisheng
Adding NXP Low Power Timer/Pulse Width Modulation Module (TPM) binding doc. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Shawn Guo Cc: Bai Ping Acked-by: Rob Herring Signed-off-by: Dong Aisheng --- ChangeLog: v1->v2: * No changes --- .../dev

[PATCH V2 0/2] timer: add imx tpm timer support

2017-06-13 Thread Dong Aisheng
The Timer/PWM Module (TPM) supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. The counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. TPM can suppo

[PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-13 Thread Dong Aisheng
IMX Timer/PWM Module (TPM) supports both timer and pwm function while this patch only adds the timer support. PWM would be added later. The TPM counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. Cc: Daniel Lezcano Cc: Arnd Berg

Re: [PATCH v3 17/18] xen/pvcalls: implement write

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > When the other end notifies us that there is data to be written > (pvcalls_back_conn_event), increment the io and write counters, and > schedule the ioworker. > > Implement the write function called by ioworker by reading the data from > the data ring

Re: [linux-sunxi] Re: [PATCH v2 10/11] ARM: sun8i: h3: add display engine pipeline for TVE

2017-06-13 Thread Maxime Ripard
On Sun, Jun 11, 2017 at 02:58:47PM +0800, icen...@aosc.io wrote: > 在 2017-06-07 17:42,Maxime Ripard 写道: > > On Mon, Jun 05, 2017 at 12:01:48AM +0800, Icenowy Zheng wrote: > > > + soc { > > > + display_clocks: clock@100 { > > > + compatible = "allwinner,sun8i-a83t-de2-clk

[GIT PULL] selinux: fix double free bug

2017-06-13 Thread James Morris
Please pull this fix for a double free bug in SELinux. The following changes since commit 63f700aab4c11d46626de3cd051dae56cf7e9056: Merge tag 'xtensa-20170612' of git://github.com/jcmvbkbc/linux-xtensa (2017-06-13 15:09:10 +0900) are available in the git repository at: git://git.kernel.org

Re: [PATCH v6 00/18] mtd: nand: denali: Denali NAND IP patch bomb

2017-06-13 Thread Masahiro Yamada
Hi Boris, 2017-06-13 16:02 GMT+09:00 Boris Brezillon : > Le Tue, 13 Jun 2017 14:03:52 +0900, > Masahiro Yamada a écrit : > >> This patch series intends to solve various problems. >> >> [1] The driver just retrieves the OOB area as-is >> whereas the controller uses syndrome page layout. >> [2

Re: [PATCH] regulator: core: Prioritise consumer mappings over regulator name

2017-06-13 Thread Charles Keepax
On Mon, Jun 12, 2017 at 05:38:56PM +0100, Mark Brown wrote: > On Mon, Jun 12, 2017 at 04:17:52PM +0100, Charles Keepax wrote: > > > r = regulator_lookup_by_name(supply); > > - if (r) > > - return r; > > Why have you left the lookup here? Yeah was thinking that could maybe use a c

Re: [PATCH] storvsc: use default I/O timeout handler for FC devices

2017-06-13 Thread Johannes Thumshirn
On 06/13/2017 02:23 AM, Long Li wrote: > From: Long Li > > FC disks are usually setup in a multipath system, and they don't want to > unconditionaly reset I/O on timeout. I/O timeout is detected by multipath > as a good time to failover and recover. > > Signed-off-by: Long Li > --- Looks goo

Re: [PATCH] aio: Add command to wait completion of all requests

2017-06-13 Thread Cyrill Gorcunov
On Fri, Jun 09, 2017 at 12:49:34PM +0300, Kirill Tkhai wrote: ... > +static int aio_wait_all(struct kioctx *ctx) > +{ > + unsigned users, reqs = 0; > + struct kioctx_cpu *kcpu; > + int cpu, ret; > + > + if (atomic_xchg(&ctx->dead, 1)) > + return -EBUSY; > + > + users

Re: [PATCH v6 00/18] mtd: nand: denali: Denali NAND IP patch bomb

2017-06-13 Thread Masahiro Yamada
Hi Boris, 2017-06-13 16:02 GMT+09:00 Boris Brezillon : > > BTW, I also implemented ->read/write_buf_word() since the core may one > day call these functions, and the default implementations used by the > core when these hooks are NULL are not appropriate in your case. > BTW, why doesn't the def

Re: [PATCH 3/4] mfd: tps65217: remove duplicated interrupt resources.

2017-06-13 Thread Enric Balletbo Serra
Hi Grygorii, 2017-06-13 0:41 GMT+02:00 Grygorii Strashko : > > > On 06/12/2017 04:24 PM, Enric Balletbo i Serra wrote: >> I don't think it makes sense to have the interrupt resources for charger >> and power button in two different places, the driver and the DT binding. >> That's confusing so remo

Re: [PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-13 Thread Alexander Stein
On Tuesday 13 June 2017 15:58:45, Dong Aisheng wrote: > diff --git a/drivers/clocksource/timer-imx-tpm.c > b/drivers/clocksource/timer-imx-tpm.c new file mode 100644 > index 000..940a4f75 > --- /dev/null > +++ b/drivers/clocksource/timer-imx-tpm.c > @@ -0,0 +1,227 @@ > [...] > +static int tpm_s

Re: [PATCH 6/6] mac80211/wpa: use constant time memory comparison for MACs

2017-06-13 Thread Johannes Berg
On Sat, 2017-06-10 at 04:59 +0200, Jason A. Donenfeld wrote: > Otherwise, we enable all sorts of forgeries via timing attack. I'm not really sure that this is actually true, since you don't get much feedback on your frame that's dropped, especially if you're attacking from remote. Basically, I don

Re: [PATCH v6 00/18] mtd: nand: denali: Denali NAND IP patch bomb

2017-06-13 Thread Boris Brezillon
On Tue, 13 Jun 2017 17:04:11 +0900 Masahiro Yamada wrote: > Hi Boris, > > > 2017-06-13 16:02 GMT+09:00 Boris Brezillon > : > > Le Tue, 13 Jun 2017 14:03:52 +0900, > > Masahiro Yamada a écrit : > > > >> This patch series intends to solve various problems. > >> > >> [1] The driver just retrie

Re: mtd: nand: fsl_ifc: fix handing of bit flips in erased pages

2017-06-13 Thread Pavel Machek
Hi! > > Looks like uboot has similar IFC driver. Do you have plans to apply this > change to uboot as well? > First, sorry for the delay. You are right that u-boot needs similar changes, but we do not hit the problem in u-boot so it was not priority. Thanks for handling it.

Re: [PATCH 0/2] microcode: Do early microcode application during resume-from-RAM

2017-06-13 Thread Borislav Petkov
On Tue, Jun 13, 2017 at 07:55:34AM +0200, Dominik Brodowski wrote: > Nice job; works fine here. Thanks for testing, I'll add your Tested-by. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH v6 00/18] mtd: nand: denali: Denali NAND IP patch bomb

2017-06-13 Thread Boris Brezillon
On Tue, 13 Jun 2017 17:17:41 +0900 Masahiro Yamada wrote: > Hi Boris, > > > 2017-06-13 16:02 GMT+09:00 Boris Brezillon > : > > > > > BTW, I also implemented ->read/write_buf_word() since the core may one > > day call these functions, and the default implementations used by the > > core when t

Re: [PATCH 1/3] kbuild: Add cc-option-no-kbuild macro

2017-06-13 Thread Arnd Bergmann
On Tue, Jun 13, 2017 at 9:49 AM, Michal Marek wrote: > On 2017-06-13 02:55, Matthias Kaehlcke wrote: >> cc-option uses KBUILD_CFLAGS and KBUILD_CPPFLAGS when it determines >> whether an option is supported or not. This is fine for options used to >> build the kernel itself, however some components

Re: [net-next] net: phy: marvell: Show complete link partner advertising

2017-06-13 Thread Tom Bogendoerfer
On Mon, Jun 12, 2017 at 09:05:04AM -0700, Florian Fainelli wrote: > On 06/12/2017 05:54 AM, Thomas Bogendoerfer wrote: > > From: Thomas Bogendoerfer > > > > Give back all modes advertised by the link partner. This change brings > > the marvell phy driver in line with all other phy drivers. > > >

[PATCH linux-next v4 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-06-13 Thread Jiada Wang
previously burst length (BURST_LENGTH) is always set to equal to bits_per_word, causes a 10us gap between each word in transfer, which significantly affects performance. This patch uses 32 bits transfer to simulate lower bits transfer, and adjusts burst length runtimely to use biggeest burst lengt

Re: [PATCH v2 3/8] PM / Domains: Add lockdep asserts for domains list mutex

2017-06-13 Thread Ulf Hansson
On 13 June 2017 at 09:12, Krzysztof Kozlowski wrote: > On Mon, Jun 12, 2017 at 09:09:59PM +0200, Ulf Hansson wrote: >> On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: >> > Add lockdep checks for holding mutex protecting the list of domains. >> > This might expose misuse even though only file

Re: [kbuild-all] [PATCH] include/linux/vfio.h: Guard powerpc-specific functions with CONFIG_VFIO_SPAPR_EEH

2017-06-13 Thread Ye Xiaolong
On 06/08, Alexey Kardashevskiy wrote: >On 08/06/17 15:35, Alexey Kardashevskiy wrote: >> Hi, >> >> How did you manage to have CONFIG_EEH=y and CONFIG_VFIO_SPAPR_EEH=n? "make >> oldconfig" fixes this to CONFIG_VFIO_SPAPR_EEH=y. > > >Also, the attached config has "CONFIG_VFIO_SPAPR_EEH=m" and cannot

linux-next: Tree for Jun 13

2017-06-13 Thread Stephen Rothwell
Hi all, Changes since 20170609: New tree: actions Dropped tree: sound-current The sound-current tree gained a build failure so I dropped it for today. The block tree gained conflicts against the s390 and btrfs-kdave trees. The device-mapper tree lost its build failure. The mmc tree gained a c

Re: [PATCH 2/2] drm/vc4: Add get/set tiling ioctls.

2017-06-13 Thread Daniel Stone
Hi Eric, On 8 June 2017 at 01:13, Eric Anholt wrote: > This allows mesa to set the tiling format for a BO and have that > tiling format be respected by mesa on the other side of an > import/export (and by vc4 scanout in the kernel), without defining a > protocol to pass the tiling through userspa

Admin

2017-06-13 Thread Sistem Administrator
PERHATIAN Kotak surat Anda telah melebihi batas penyimpanan, yaitu 5 GB seperti yang didefinisikan oleh administrator, yang saat ini berjalan pada 10.9GB, Anda mungkin tidak dapat mengirim atau menerima surat baru sampai Anda kembali memvalidasi email mailbox Anda. Untuk memvalidasi ulang kotak

[PATCH][crypto-next] crypto: omap-aes: fix spelling mistake "Encryptio" -> "Encryption"

2017-06-13 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in pr_err message Signed-off-by: Colin Ian King --- drivers/crypto/omap-aes-gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-aes-gcm.c index 521a310ea699..7d4f8a4be

Re: [PATCH] ARM: dts: mvebu: Add PWM properties to .dtsi files

2017-06-13 Thread Gregory CLEMENT
Hi Ralph, On jeu., juin 01 2017, Ralph Sennhauser wrote: > From: Andrew Lunn > > Add properties to the GPIO nodes for Armada 370/XP to allow them to be > also used as PWM lines. > > Signed-off-by: Andrew Lunn > URL: https://patchwork.ozlabs.org/patch/427294/ > [Ralph Sennhauser: Add new comp

Re: [PATCH] ARM: dts: mvebu: Add PWM properties for armada-38x

2017-06-13 Thread Gregory CLEMENT
Hi Ralph, On jeu., juin 01 2017, Ralph Sennhauser wrote: > Add the required properties to the GPIO nodes for them to be used as PWM > lines. > > Signed-off-by: Ralph Sennhauser Applied on mvebu/dt Thanks, Gregory > > --- > > Hi everyone, > > this patch uses "marvell,armada-370-gpio" for t

[PATCH][crypto-next] crypto: cavium: fix spelling mistake "Revsion" -> "Revision"

2017-06-13 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in seq_printf message Signed-off-by: Colin Ian King --- drivers/crypto/cavium/nitrox/nitrox_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cavium/nitrox/nitrox_main.c b/drivers/crypto/cavium/nitrox

Re: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning

2017-06-13 Thread Mika Westerberg
On Mon, Jun 12, 2017 at 04:57:00PM +0100, Lorenzo Pieralisi wrote: > I had a more in-depth look at this series and from my understanding > the problem are the following to manage the LPC bindings in ACPI. > > (1) Child devices of an LPC controller require special handling when > filling their

Re: [PATCH v2 2/8] USB / PCI / PM: Allow the PCI core to do the resume cleanup

2017-06-13 Thread Greg KH
On Mon, Jun 12, 2017 at 10:49:40PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > hcd_pci_resume_noirq() used as a universal _resume_noirq handler for > PCI USB controllers calls pci_back_from_sleep() which is unnecessary > and may become problematic. > > It is unnecessary, becaus

Re: [PATCH v6 00/18] mtd: nand: denali: Denali NAND IP patch bomb

2017-06-13 Thread Masahiro Yamada
Hi Boris, 2017-06-13 17:30 GMT+09:00 Boris Brezillon : > On Tue, 13 Jun 2017 17:17:41 +0900 > Masahiro Yamada wrote: > >> Hi Boris, >> >> >> 2017-06-13 16:02 GMT+09:00 Boris Brezillon >> : >> >> > >> > BTW, I also implemented ->read/write_buf_word() since the core may one >> > day call these fun

[PATCH v2 0/3] ngene: Replace semaphores with mutexes

2017-06-13 Thread Binoy Jayan
These are a set of patches [v2] which removes semaphores from ngene. These are part of a bigger effort to eliminate unwanted semaphores from the linux kernel. v1 --> v2 - Moved mutex_[lock/unlock] outside caller for stream_mutex mutex_lock converted to mutex_destroy in cmd_mutex Binoy Ja

[PATCH v2 2/3] media: ngene: Replace semaphore stream_mutex with mutex

2017-06-13 Thread Binoy Jayan
The semaphore 'stream_mutex' is used as a simple mutex, so it should be written as one. Also moving the mutex_[lock/unlock] to the caller as it is anyway locked at the beginning of the callee thus avoiding repetition. Signed-off-by: Binoy Jayan --- drivers/media/pci/ngene/ngene-core.c | 18 +

  1   2   3   4   5   6   7   8   9   10   >