[kernel-hardening] [PATCH] arm: kernel: implement fast refcount checking

2017-12-20 Thread Jinbum Park
This adds support to arm for fast refcount checking. It's heavily based on x86, arm64 implementation. (7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection) This doesn't support under-ARMv6, thumb2-kernel yet. Test result of this patch is as follows. 1. LKDTM te

Re: BUG: unable to handle kernel paging request in hmac_init_tfm

2017-12-20 Thread Dmitry Vyukov
On Thu, Dec 21, 2017 at 12:09 AM, Eric Biggers wrote: > On Mon, Dec 18, 2017 at 11:36:01AM -0800, syzbot wrote: >> Hello, >> >> syzkaller hit the following crash on >> 6084b576dca2e898f5c101baef151f7bfdbb606d >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler:

Re: [PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-20 Thread Kuninori Morimoto
Hi Jiada > diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi > b/arch/arm64/boot/dts/renesas/salvator-common.dtsi > index a298df7..16f3214 100644 > --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi > +++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi > @@ -94,14 +94,24 @@ >

Re: [PATCH 1/2] padata: Remove FSF address

2017-12-20 Thread Philippe Ombredanne
Dear CheahKC, On Wed, Dec 20, 2017 at 10:17 PM, Cheah Kok Cheong wrote: > On Wed, Dec 20, 2017 at 09:20:48PM +0100, Philippe Ombredanne wrote: >> On Wed, Dec 20, 2017 at 9:15 PM, Cheah Kok Cheong wrote: >> > Remove FSF address otherwise checkpatch will flag my next patch. >> > >> > Signed-off-by

Re: [PATCH] cpufreq: imx6q-cpufreq: Fix speed grading check for imx6qp

2017-12-20 Thread Stefan Riedmüller
Hi, On 19.12.2017 18:02, Lucas Stach wrote: Am Dienstag, den 19.12.2017, 16:56 +0100 schrieb Stefan Riedmueller: Add compatibility for the i.MX 6QuadPlus to make it behave like the i.MX 6Quad, as both SOCs use the same operating points. Otherwise the i.MX 6QuadPlus tries to run with 1.2 GHz eve

Re: [PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates

2017-12-20 Thread Viresh Kumar
On 20-12-17, 16:30, Peter Zijlstra wrote: > > So I ended up with the below (on top of Juri's cpufreq-dl patches). Nice :) There are two things that I noticed in your tree. Firstly, there is no need of the following patch as we shouldn't have the problem mentioned in the commit anymore: 38e19db

Re: [PATCH v3 04/21] fpga: add device feature list support

2017-12-20 Thread Wu Hao
On Wed, Dec 20, 2017 at 06:58:01PM -0600, Alan Tull wrote: > On Wed, Dec 20, 2017 at 4:29 PM, Alan Tull wrote: > > On Mon, Nov 27, 2017 at 12:42 AM, Wu Hao wrote: > > > > Hi Hao, > > > >> + > >> +enum port_feature_id { > >> + PORT_FEATURE_ID_HEADER = 0x0, > >> + PORT_FEATURE_ID_ERROR

Re: cgroups-related hard lockup in 4.14?

2017-12-20 Thread Dan Aloni
On Wed, Dec 20, 2017 at 03:24:09PM -0800, Tejun Heo wrote: > On Thu, Dec 21, 2017 at 12:59:23AM +0200, Dan Aloni wrote: > > Hi, > > > > Using netconsole, I was able to capture a hard lockup that seems to be > > related to cgroups, on a Fedora kernel based on v4.14.4. > > > > By my analysis, from

Re: [RFC PATCH 0/5] mm, hugetlb: allocation API and migration improvements

2017-12-20 Thread Michal Hocko
On Wed 20-12-17 14:43:03, Mike Kravetz wrote: > On 12/20/2017 01:53 AM, Michal Hocko wrote: > > On Wed 20-12-17 05:33:36, Naoya Horiguchi wrote: > >> I have one comment on the code path from mbind(2). > >> The callback passed to migrate_pages() in do_mbind() (i.e. new_page()) > >> calls alloc_huge_

Re: [RESEND PATCH v5 0/6] ARM: Add Variscite DART-MX6 SoM and Carrier-board support

2017-12-20 Thread Shawn Guo
On Mon, Dec 04, 2017 at 10:21:04AM +0100, Neil Armstrong wrote: > Neil Armstrong (6): > ARM: dts: imx6qdl-pinfunc: Add missing > MX6QDL_PAD_ENET_RXD0__OSC32K_32K_OUT > dt-bindings: Add vendor prefix for Solomon Goldentek Display > Corporation > dt-bindings: display: Add bindings for S

Re: [PATCH v4] checkpatch.pl: Add SPDX license tag check

2017-12-20 Thread Philippe Ombredanne
Rob, On Thu, Dec 21, 2017 at 12:46 AM, Rob Herring wrote: > Add SPDX license tag check based on the rules defined in > Documentation/process/license-rules.rst. To summarize, SPDX license tags > should be on the 1st line (or 2nd line in scripts) using the appropriate > comment style for the file t

[PATCH] ptrace: correctly indent return statement

2017-12-20 Thread Christian Brauner
This has been bugging me the whole time I read through that code. Enough so to send a patch for this trivial thing. Signed-off-by: Christian Brauner --- kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 84b1367935e4..374a0

Re: [Intel-wired-lan] v4.15-rc2 on thinkpad x60: ethernet stopped working

2017-12-20 Thread Neftin, Sasha
On 20/12/2017 18:01, Pavel Machek wrote: On Wed 2017-12-20 16:54:21, Pavel Machek wrote: Hi! Before ask for reverting 19110cfbb..., please, check if follow patch of Benjamin work for you http://patchwork.ozlabs.org/patch/846825/ Pavel, before ask for revert - let's check Benjamin's patch foll

Re: [PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-20 Thread Jiada Wang
Hi Morimoto-san On 12/20/2017 10:42 PM, Kuninori Morimoto wrote: Hi Jiada Thank you for your patch Same SSI device may be used in different dai links, by only having one dma struct in rsnd_ssi, after the first instance's dma config be initilized, the following instances can no longer configur

[PATCH V4 net-next 13/17] net: hns3: add support to update flow control settings after autoneg

2017-12-20 Thread Lipeng
When auto-negotiation is enabled, the MAC flow control settings is based on the flow control negotiation result. And it should be configured after a valid link has been established. This patch adds support to update flow control settings after auto-negotiation has completed. Signed-off-by: Lipeng

[PATCH V4 net-next 01/17] net: hns3: add support to query tqps number

2017-12-20 Thread Lipeng
This patch adds the support to query tqps number for PF driver by using ehtool -l command. Signed-off-by: Lipeng Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 10 ++ .../net/ethernet/his

[PATCH V4 net-next 08/17] net: hns3: add ethtool related offload command

2017-12-20 Thread Lipeng
This patch adds offload command related to "ethtool -K". Signed-off-by: Lipeng Signed-off-by: Jian Shen --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 16 drivers/net/ethernet/hisilicon/hns3/hns3pf

[PATCH V4 net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-20 Thread Lipeng
This patchset adds some new feature support and fixes some bugs: [Patch 1/17 - 5/17] add the support to modify/query the tqp number through ethtool -L/l command, and also fix some related bugs for change tqp number. [Patch 6/17 - 9-17] add support vlan tag offload on tx&&rx direction for pf, and fi

[PATCH V4 net-next 02/17] net: hns3: add support to modify tqps number

2017-12-20 Thread Lipeng
This patch adds the support to change tqps number for PF driver by using ehtool -L command. Signed-off-by: Lipeng Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 122 + drivers/n

[PATCH V4 net-next 05/17] net: hns3: get rss_size_max from configuration but not hardcode

2017-12-20 Thread Lipeng
Add configuration for rss_size_max in hdev but not hardcode it. Signed-off-by: Lipeng Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[PATCH V4 net-next 17/17] net: hns3: change TM sched mode to TC-based mode when SRIOV enabled

2017-12-20 Thread Lipeng
TC-based sched mode supports SRIOV enabled and SRIOV disabled. This patch change the TM sched mode to TC-based mode in initialization process. Fixes: cc9bb43ab394 ("net: hns3: Add tc-based TM support for sriov enabled port") Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3pf/h

[PATCH V4 net-next 07/17] net: hns3: add vlan offload config command

2017-12-20 Thread Lipeng
This patch adds vlan offload config commands, initializes the rules of tx/rx vlan tag handle for hw. Signed-off-by: Lipeng Signed-off-by: Jian Shen --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 158 -

Re: [PATCH v2 2/2] PCI: mediatek: Fixup class type for MT7622

2017-12-20 Thread Honghui Zhang
On Thu, 2017-12-21 at 14:41 +0800, Yong Wu wrote: > On Thu, 2017-12-21 at 10:11 +0800, honghui.zh...@mediatek.com wrote: > > From: Honghui Zhang > > > > The host bridge of MT7622 has hardware code the class code to an > > arbitrary, meaningless value, fix that. > > > > Signed-off-by: Honghui Zha

[PATCH V4 net-next 11/17] net: hns3: fix for getting auto-negotiation state in hclge_get_autoneg

2017-12-20 Thread Lipeng
From: Fuyun Liang When phy exists, we use the value of phydev.autoneg to represent the auto-negotiation state of hardware. Otherwise, we use the value of mac.autoneg to represent it. This patch fixes for getting a error value of auto-negotiation state in hclge_get_autoneg(). Fixes: 46a3df9f9718

Re: [PATCH V3 net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-20 Thread lipeng (Y)
On 2017/12/21 12:04, David Miller wrote: From: "lipeng (Y)" Date: Thu, 21 Dec 2017 09:30:01 +0800 On 2017/12/21 3:28, David Miller wrote: From: Lipeng Date: Wed, 20 Dec 2017 16:43:02 +0800 This patchset adds some new feature support and fixes some bugs: [Patch 1/17 - 5/17] add the suppo

[PATCH V4 net-next 06/17] net: hns3: add a mask initialization for mac_vlan table

2017-12-20 Thread Lipeng
This patch sets vlan masked, in order to avoid the received packets being filtered. Signed-off-by: Lipeng Signed-off-by: Jian Shen --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 39 +- 2 files changed,

[PATCH V4 net-next 16/17] net: hns3: Increase the default depth of bucket for TM shaper

2017-12-20 Thread Lipeng
Burstiness of a flow is determined by the depth of a bucket, When the upper rate of shaper is large, the current depth of a bucket is not enough. The default upper rate of shaper is 100G, so increase the depth of a bucket according to UM. Signed-off-by: Lipeng Signed-off-by: Yunsheng Lin --- d

Re: [Intel-wired-lan] [PATCH] e1000e: Fix e1000_check_for_copper_link_ich8lan return value.

2017-12-20 Thread Neftin, Sasha
On 11/12/2017 9:26, Benjamin Poirier wrote: e1000e_check_for_copper_link() and e1000_check_for_copper_link_ich8lan() are the two functions that may be assigned to mac.ops.check_for_link when phy.media_type == e1000_media_type_copper. Commit 19110cfbb34d ("e1000e: Separate signaling for link check

[PATCH V4 net-next 09/17] net: hns3: add handling vlan tag offload in bd

2017-12-20 Thread Lipeng
This patch deals with the vlan tag information between sk_buff and rx/tx bd. Signed-off-by: Lipeng Signed-off-by: Jian Shen --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/his

[PATCH V4 net-next 04/17] net: hns3: free the ring_data structrue when change tqps

2017-12-20 Thread Lipeng
This patch fixes a memory leak problems in change tqps process, the function hns3_uninit_all_ring and hns3_init_all_ring may be called many times. Signed-off-by: Lipeng Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 1 file changed, 4 insertions(+) dif

[PATCH V4 net-next 15/17] net: hns3: add support for querying advertised pause frame by ethtool ethx

2017-12-20 Thread Lipeng
This patch adds support for querying advertised pause frame by using ethtool command(ethtool ethx). Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver") Signed-off-by: Lipeng Signed-off-by: Fuyun Liang --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers

[PATCH V4 net-next 14/17] net: hns3: add Asym Pause support to phy default features

2017-12-20 Thread Lipeng
From: Fuyun Liang commit c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization") adds default supported features for phy, but our hardware also supports Asym Pause. This patch adds Asym Pause support to phy default features to prevent Asym Pause can not be advertised when t

[PATCH V4 net-next 10/17] net: hns3: cleanup mac auto-negotiation state query

2017-12-20 Thread Lipeng
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes the mac auto-ne

[PATCH V4 net-next 03/17] net: hns3: change the returned tqp number by ethtool -x

2017-12-20 Thread Lipeng
This patch modifies the return data of get_rxnfc, it will return the current handle's rss_size but not the total tqp number. because the tc_size has been change to the log2 of roundup power of two of rss_size. Signed-off-by: Lipeng Signed-off-by: Mingguang Qu --- drivers/net/ethernet/hisilicon/

[PATCH V4 net-next 12/17] net: hns3: add support for set_pauseparam

2017-12-20 Thread Lipeng
This patch adds set_pauseparam support for ethtool cmd. Signed-off-by: Lipeng Signed-off-by: Fuyun Liang --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 83 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge

[PATCH v17 1/5] serdev: Make .remove in struct serdev_device_driver optional

2017-12-20 Thread Andrey Smirnov
Using devres infrastructure it is possible to write a serdev driver that doesn't have any code that needs to be called as a part of .remove. Add code to make .remove optional. Cc: linux-kernel@vger.kernel.org Cc: linux-ser...@vger.kernel.org Cc: Rob Herring Cc: cphe...@gmail.com Cc: Guenter Roeck

[PATCH v17 5/5] dt-bindings: watchdog: Add bindings for RAVE SP watchdog driver

2017-12-20 Thread Andrey Smirnov
Add Device Tree bindings for RAVE SP watchdog drvier - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt). Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: cphe...@gmail.com Cc: Lucas Stac

[PATCH v17 0/5] ZII RAVE platform driver

2017-12-20 Thread Andrey Smirnov
Everyone: This patch series is v17 of the driver for supervisory processor found on RAVE series of devices from ZII. Supervisory processor is a PIC microcontroller connected to various electrical subsystems on RAVE devices whose firmware implements protocol to command/qery them. NOTE: * This dr

[PATCH v17 4/5] watchdog: Add RAVE SP watchdog driver

2017-12-20 Thread Andrey Smirnov
This driver provides access to RAVE SP watchdog functionality. Cc: linux-kernel@vger.kernel.org Cc: linux-watch...@vger.kernel.org Cc: cphe...@gmail.com Cc: Lucas Stach Cc: Nikita Yushchenko Cc: Lee Jones Cc: Greg Kroah-Hartman Cc: Pavel Machek Cc: Andy Shevchenko Cc: Guenter Roeck Cc: Rob

[PATCH v17 2/5] serdev: Introduce devm_serdev_device_open()

2017-12-20 Thread Andrey Smirnov
Add code implementing managed version of serdev_device_open() for serdev device drivers that "open" the device during driver's lifecycle only once (e.g. opened in .probe() and closed in .remove()). Cc: linux-kernel@vger.kernel.org Cc: linux-ser...@vger.kernel.org Cc: Rob Herring Cc: cphe...@gmail

[PATCH v17 3/5] mfd: Add driver for RAVE Supervisory Processor

2017-12-20 Thread Andrey Smirnov
Add a driver for RAVE Supervisory Processor, an MCU implementing various bits of housekeeping functionality (watchdoging, backlight control, LED control, etc) on RAVE family of products by Zodiac Inflight Innovations. This driver implementes core MFD/serdev device as well as communication subrouti

[PATCH] drm: move lease init after validation in drm_lease_create

2017-12-20 Thread Keith Packard
Patch bd36d3bab2e3d08f80766c86487090dbceed4651 fixed a deadlock in the failure path of drm_lease_create. This made the partially initialized lease object visible for a short window of time. To avoid having the lessee state appear transiently, I've rearranged the code so that the lessor fields are

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-20 Thread Sergey Senozhatsky
Hi Tetsuo, On (12/20/17 21:06), Tetsuo Handa wrote: > Sergey Senozhatsky wrote: > [..] > > Anyway, the rule that "do not try to printk() faster than the kernel can > write to consoles" will remain no matter how printk() changes. and the "faster than the kernel can write to consoles" is tricky. it

Re: [PATCH 1/7] soc: mediatek: Add USB wakeup driver

2017-12-20 Thread Chunfeng Yun
On Fri, 2017-12-15 at 14:55 -0600, Rob Herring wrote: > On Sat, Dec 09, 2017 at 04:45:30PM +0800, Chunfeng Yun wrote: > > This driver is used to support usb wakeup which is controlled by > > the glue layer between SSUSB and SPM. Usually the glue layer is put > > into a system controller, such as pe

Re: [PATCH] irqchip/gic-v3-its: Flush GICR caching for a cross node collection move of an irq

2017-12-20 Thread Ganapatrao Kulkarni
On Wed, Dec 20, 2017 at 6:42 PM, Marc Zyngier wrote: > On 20/12/17 09:34, Ganapatrao Kulkarni wrote: >> Hi Marc, >> >> On Wed, Dec 20, 2017 at 2:56 PM, Marc Zyngier wrote: >>> On 20/12/17 09:15, Ganapatrao Kulkarni wrote: When an interrupt is moved, it is possible that an implementation that

Re: [PATCH 0/7] Add USB remote wakeup driver

2017-12-20 Thread Chunfeng Yun
On Fri, 2017-12-15 at 14:55 -0600, Rob Herring wrote: > On Sat, Dec 09, 2017 at 04:45:29PM +0800, Chunfeng Yun wrote: > > These patches introduce the SSUSB and SPM glue layer driver which is > > used to support usb remote wakeup. Usually the glue layer is put into > > a system controller, such

Re: [PATCH v2 2/2] PCI: mediatek: Fixup class type for MT7622

2017-12-20 Thread Yong Wu
On Thu, 2017-12-21 at 10:11 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > The host bridge of MT7622 has hardware code the class code to an > arbitrary, meaningless value, fix that. > > Signed-off-by: Honghui Zhang > --- > drivers/pci/host/pcie-mediatek.c | 12

Re: virtio: make VIRTIO a menuconfig to ease disabling it all

2017-12-20 Thread Andrei Vagin
On Sat, Dec 09, 2017 at 04:26:57PM +0100, Vincent Legoll wrote: > No need to get into the submenu to disable all VIRTIO-related > config entries. > > This makes it easier to disable all VIRTIO config options > without entering the submenu. It will also enable one > to see that en/dis-abled state f

Re: [PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-20 Thread Kuninori Morimoto
Hi Jiada Thank you for your patch > Same SSI device may be used in different dai links, > by only having one dma struct in rsnd_ssi, after the first > instance's dma config be initilized, the following instances > can no longer configure dma, this causes issue, when their > dma data address are

Re: [PATCH RFC 2/3] crypto: Implement a generic crypto statistics

2017-12-20 Thread Stephan Mueller
Am Mittwoch, 20. Dezember 2017, 21:09:26 CET schrieb Corentin Labbe: Hi Corentin, > This patch implement a generic way to get statistics about all crypto > usages. > > Signed-off-by: Corentin Labbe > --- > crypto/Kconfig | 11 +++ > crypto/ahash.c | 18 + > crypto

Re: [PATCH RFC 1/3] crypto: Prevent to register duplicate cra_driver_name

2017-12-20 Thread Herbert Xu
On Wed, Dec 20, 2017 at 08:09:25PM +, Corentin Labbe wrote: > Each crypto algorithm "cra_name" can have multiple implementation called > "cra_driver_name". > If two different implementation have the same cra_driver_name, nothing > can easily differentiate them. > Furthermore the mechanism for g

Re: [PATCH v4] checkpatch.pl: Add SPDX license tag check

2017-12-20 Thread Joe Perches
On Wed, 2017-12-20 at 17:46 -0600, Rob Herring wrote: > Add SPDX license tag check based on the rules defined in > Documentation/process/license-rules.rst. To summarize, SPDX license tags > should be on the 1st line (or 2nd line in scripts) using the appropriate > comment style for the file type. >

Re: [PATCH RFC 1/3] crypto: Prevent to register duplicate cra_driver_name

2017-12-20 Thread Stephan Mueller
Am Mittwoch, 20. Dezember 2017, 21:09:25 CET schrieb Corentin Labbe: Hi Corentin, > Each crypto algorithm "cra_name" can have multiple implementation called > "cra_driver_name". > If two different implementation have the same cra_driver_name, nothing > can easily differentiate them. > Furthermore

[PATCH 1/5] bindings: regulator: added support for suspend states

2017-12-20 Thread Chunyan Zhang
Documented a few new added properties which are used for supporting regulator suspend states. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/regulator/regulator.txt | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindin

[PATCH 4/5] drivers: regulator: empty the old suspend functions

2017-12-20 Thread Chunyan Zhang
Regualtor suspend/resume functions should only be called by PM suspend core via registering dev_pm_ops, and regulator devices should implement the callback functions. Thus, any regulator consumer shouldn't call the regulator suspend/resume functions directly. In order to avoid compile errors, two

[PATCH 5/5] regulator: add PM suspend and resume hooks

2017-12-20 Thread Chunyan Zhang
In this patch, consumers are allowed to set suspend voltage, and this actually just set the "uV" in constraint::regulator_state, when the regulator_suspend_late() was called by PM core through callback when the system is entering into suspend, the regulator device would act suspend activity then.

Re: [PATCH] proc: rearrange struct proc_dir_entry

2017-12-20 Thread Alexey Dobriyan
On Wed, Dec 20, 2017 at 03:10:48PM -0800, Randy Dunlap wrote: > On 12/20/2017 01:59 PM, Alexey Dobriyan wrote: > > struct proc_dir_entry became bit messy over years: > > > > * move 16-bit ->mode_t before namelen to get rid of padding > > * make ->in_use first field: it seems to be most used result

[PATCH 0/5] Add regulator suspend and resume support

2017-12-20 Thread Chunyan Zhang
Some systems need to set regulators to specific states when they enter low power modes, especially around CPUs. Currently the regulator driver, for suspend and resume features, provides two functions which are exported for being called directly by any modules or subsystems when they thought the re

[PATCH 2/5] regulator: make regulator voltage be an array to support more states

2017-12-20 Thread Chunyan Zhang
Some regulator consumers would like to make the regulator device keeping a voltage range output when the system entering into suspend states. Making regulator voltage be an array can allow consumers to set voltage for normal state as well as for suspend states through the same code. Signed-off-by

[PATCH 3/5] drivers: regulator: leave one item to record whether regulator is enabled

2017-12-20 Thread Chunyan Zhang
The items "disabled" and "enabled" are a little redundant, since only one of them would be set to record if the regulator device should keep on or be switched to off in suspend states. So in this patch, the "disabled" was removed, only leave the "enabled": - enabled == 1 for regulator-on-in-susp

Re: [PATCH v3 01/21] docs: fpga: add a document for Intel FPGA driver overview

2017-12-20 Thread Wu Hao
On Wed, Dec 20, 2017 at 04:31:15PM -0600, Alan Tull wrote: > On Mon, Nov 27, 2017 at 12:42 AM, Wu Hao wrote: > > + > > +PORT > > + > > +A port represents the interface between the static FPGA fabric (the "blue > > +bitstream") and a partially reconfigurable region containing an AFU (the > > "

Re: [PATCH 00/13] replace print_symbol() with printk()-s

2017-12-20 Thread Sergey Senozhatsky
On (12/11/17 19:10), Joe Perches wrote: [..] > As far as I'm concerned, as soon as there is > no longer a single user in the kernel tree, > better to delete it instead. sounds good to me. can drop it, once the series upstreamed. 8< --- From: Sergey Senozhatsky Subject: [PATCH] kallsyms: remove

[PATCHv3] printk: add console_msg_format command line option

2017-12-20 Thread Sergey Senozhatsky
0day and kernelCI automatically parse kernel log - basically some sort of grepping using the pre-defined text patterns - in order to detect and report regressions/errors. There are several sources they get the kernel logs from: a) dmesg or /proc/ksmg This is the preferred way. Because `dmesg -

Re: [PATCH/RFC] VFS: don't keep disconnected dentries on d_anon

2017-12-20 Thread Al Viro
On Wed, Dec 20, 2017 at 04:57:28PM -0800, Linus Torvalds wrote: > On Wed, Dec 20, 2017 at 2:45 PM, NeilBrown wrote: > > > > We could just leave the code unchanged, but apart from that being > > potentially confusing, the (unfair) bit-spin-lock which protects > > s_anon can become a bottle neck whe

Re: [PATCH] kobject: fix suppressing modalias in uevents delivered over netlink

2017-12-20 Thread Dmitry Torokhov
On Tue, Dec 19, 2017 at 3:20 PM, Casey Leedom wrote: > By the way, Komali went back and tried 4.14.7 and it does exhibit the > issue which she originally reported. As noted before, the origin of the new > behavior was tracked down to kernel.org:1455cf8 ... Also as noted, Dmitry's > patch does

linux-next: Signed-off-by missing for commits in the drm tree

2017-12-20 Thread Stephen Rothwell
Hi all, Commits bb5cdf8d1c76 ("drm: omapdrm: Remove filename from header and fix copyright tag") d66c36a3ee79 ("drm: omapdrm: Simplify platform registration") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell

Re: [PATCH] hw: Fix permissions for OCRDMA_RESET_STATS

2017-12-20 Thread Leon Romanovsky
On Tue, Dec 19, 2017 at 11:14:03PM +0530, Selvin Xavier wrote: > On Tue, Dec 19, 2017 at 6:00 PM, Leon Romanovsky wrote: > >> status = ocrdma_nonemb_mbx_cmd(dev, mqe, dev->stats_mem.va); > > > > It still doesn't make a lot of sense to me: > > > > ocrdma_mbx_rdma_stats(): > > 1315if (reset)

Re: [PATCH] powerpc/powernv : Add support to enable sensor groups

2017-12-20 Thread Shilpasri G Bhat
Hi, On 12/04/2017 10:11 AM, Stewart Smith wrote: > Shilpasri G Bhat writes: >> On 11/28/2017 05:07 PM, Michael Ellerman wrote: >>> Shilpasri G Bhat writes: >>> Adds support to enable/disable a sensor group. This can be used to select the sensor groups that needs to be copied to main me

[PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-20 Thread jiada_wang
From: Jiada Wang Same SSI device may be used in different dai links, by only having one dma struct in rsnd_ssi, after the first instance's dma config be initilized, the following instances can no longer configure dma, this causes issue, when their dma data address are different from the first ins

linux-next: Tree for Dec 21

2017-12-20 Thread Stephen Rothwell
Hi all, News: tomorrow will be the last linux-next for 2017. The next release (after tomorrow) will be on January 2nd. Changes since 20171220: The net-next tree gained a conflict against the net tree. It also gained a build failure due to an interaction with the net tree for which I applied a

Re: [PATCH net-next v4 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-12-20 Thread David Miller
From: Masami Hiramatsu Date: Thu, 21 Dec 2017 11:36:57 +0900 > Could you share your .config file? You never need to ask me this question. All of my test builds are with "allmodconfig".

Re: [PATCH V3 net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-20 Thread David Miller
From: "lipeng (Y)" Date: Thu, 21 Dec 2017 09:30:01 +0800 > > > On 2017/12/21 3:28, David Miller wrote: >> From: Lipeng >> Date: Wed, 20 Dec 2017 16:43:02 +0800 >> >>> This patchset adds some new feature support and fixes some bugs: >>> [Patch 1/17 - 5/17] add the support to modify/query the tq

Re: [BUG] Build error for 4.15-rc3 kernel caused by patch "kbuild: Add a cache for generated variables"

2017-12-20 Thread Masahiro Yamada
Hi Doug 2017-12-21 2:07 GMT+09:00 Doug Anderson : > Hi, > > On Tue, Dec 19, 2017 at 6:29 PM, Masahiro Yamada > wrote: >> 2017-12-19 2:17 GMT+09:00 Doug Anderson : >>> Hi, >>> >>> On Mon, Dec 18, 2017 at 7:50 AM, Masahiro Yamada >>> wrote: 2017-12-18 23:56 GMT+09:00 Masahiro Yamada : > 2

Re: [PATCH 5/7] blk-mq: remove REQ_ATOM_COMPLETE usages from blk-mq

2017-12-20 Thread jianchao.wang
Hi tejun On 12/16/2017 08:07 PM, Tejun Heo wrote: > After the recent updates to use generation number and state based > synchronization, blk-mq no longer depends on REQ_ATOM_COMPLETE except > to avoid firing the same timeout multiple times. > > Remove all REQ_ATOM_COMPLETE usages and use a new rq

Re: [BUG] Build error for 4.15-rc3 kernel caused by patch "kbuild: Add a cache for generated variables"

2017-12-20 Thread Masahiro Yamada
2017-12-21 1:55 GMT+09:00 Doug Anderson : > Hi, > > On Mon, Dec 18, 2017 at 9:22 AM, Yang Shi wrote: >> >> >> On 12/18/17 9:17 AM, Doug Anderson wrote: >>> >>> Hi, >>> >>> On Mon, Dec 18, 2017 at 7:50 AM, Masahiro Yamada >>> wrote: 2017-12-18 23:56 GMT+09:00 Masahiro Yamada : >

Re: Prototype patch for Linux-kernel memory model

2017-12-20 Thread afzal mohammed
Hi, On Wed, Dec 20, 2017 at 08:45:38AM -0800, Paul E. McKenney wrote: > On Wed, Dec 20, 2017 at 05:01:45PM +0530, afzal mohammed wrote: > > > +It is tempting to assume that CPU0()'s store to x is globally ordered > > > +before CPU1()'s store to z, but this is not the case: > > > + > > > + /* See

Re: proc_flush_task oops

2017-12-20 Thread Dave Jones
On Wed, Dec 20, 2017 at 12:25:52PM -0600, Eric W. Biederman wrote: > > > > > > If the warning triggers it means the bug is in alloc_pid and somehow > > > something has gotten past the is_child_reaper check. > > > > You're onto something. > > > I am not seeing where things go wrong, but th

Re: [PATCH net-next v4 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-12-20 Thread Steven Rostedt
On Thu, 21 Dec 2017 11:36:57 +0900 Masami Hiramatsu wrote: > On Wed, 20 Dec 2017 14:24:24 -0500 (EST) > David Miller wrote: > > > From: David Miller > > Date: Wed, 20 Dec 2017 14:20:40 -0500 (EST) > > > > > From: Masami Hiramatsu > > > Date: Wed, 20 Dec 2017 13:14:11 +0900 > > > > > >>

Re: hw: Fix permissions for OCRDMA_RESET_STATS

2017-12-20 Thread Jason Gunthorpe
On Tue, Aug 08, 2017 at 06:56:37PM +0300, Anton Vasilyev wrote: > Debugfs file reset_stats is created with S_IRUSR permissions, > but ocrdma_dbgfs_ops_read() doesn't support OCRDMA_RESET_STATS, > whereas ocrdma_dbgfs_ops_write() supports only OCRDMA_RESET_STATS. > > The patch fixes misstype with p

[PATCH/RFC] NFS: add nostatflush mount option.

2017-12-20 Thread NeilBrown
When an i_op->getattr() call is made on an NFS file (typically from a 'stat' family system call), NFS will first flush any dirty data to the server. This ensures that the mtime reported is correct and stable, but has a performance penalty. 'stat' is normally thought to be a quick operation, and

Re: [PATCH linux-next] KVM: x86: don't forget vcpu_put() in kvm_arch_vcpu_ioctl_set_sregs()

2017-12-20 Thread Lan Tianyu
On 2017年12月21日 08:30, Paolo Bonzini wrote: > On 21/12/2017 01:24, Eric Biggers wrote: >> From: Eric Biggers >> >> Due to a bad merge resolution between commit f29810335965 ("KVM/x86: >> Check input paging mode when cs.l is set") and commit b4ef9d4e8cb8 >> ("KVM: Move vcpu_load to arch-specific kvm

Re: [PATCH v2 2/3] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2017-12-20 Thread Yong
Hi, On Tue, 19 Dec 2017 13:53:28 +0200 Sakari Ailus wrote: > Hi Yong, > > On Thu, Jul 27, 2017 at 01:01:36PM +0800, Yong Deng wrote: > > Add binding documentation for Allwinner V3s CSI. > > > > Signed-off-by: Yong Deng > > DT bindings should precede the driver. OK. > > > --- > > .../devi

Re: [PATCH v20 0/7] Virtio-balloon Enhancement

2017-12-20 Thread Wei Wang
On 12/21/2017 01:10 AM, Matthew Wilcox wrote: On Wed, Dec 20, 2017 at 04:13:16PM +, Wang, Wei W wrote: On Wednesday, December 20, 2017 8:26 PM, Matthew Wilcox wrote: unsigned long bit; xb_preload(GFP_KERNEL); xb_set_bit(xb, 700); xb_preload_end(); bit

[PATCH v20 3/7 RESEND] xbitmap: add more operations

2017-12-20 Thread Wei Wang
This patch adds support to find next 1 or 0 bit in a xbmitmap range and clear a range of bits. More possible optimizations to add in the future: 1) xb_set_bit_range: set a range of bits. 2) when searching a bit, if the bit is not found in the slot, move on to the next slot directly. 3) add tags to

Re: [PATCH V3 net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-20 Thread Hanjun Guo
On 2017/12/21 10:27, lipeng (Y) wrote: > > > On 2017/12/21 3:28, David Miller wrote: >> From: Lipeng >> Date: Wed, 20 Dec 2017 16:43:02 +0800 >> >>> This patchset adds some new feature support and fixes some bugs: >>> [Patch 1/17 - 5/17] add the support to modify/query the tqp number >>> through

Re: [PATCH v2 3/3] media: MAINTAINERS: add entries for Allwinner V3s CSI

2017-12-20 Thread Yong
On Tue, 19 Dec 2017 13:48:03 +0200 Sakari Ailus wrote: > On Thu, Jul 27, 2017 at 01:01:37PM +0800, Yong Deng wrote: > > Signed-off-by: Yong Deng > > --- > > MAINTAINERS | 8 > > 1 file changed, 8 insertions(+) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 9826a91..b91fa27 1

Re: [linux-sunxi] [PATCH v3 1/3] media: V3s: Add support for Allwinner CSI.

2017-12-20 Thread Yong
Hi, On Tue, 19 Dec 2017 18:35:49 +0800 Chen-Yu Tsai wrote: > On Mon, Nov 13, 2017 at 3:30 PM, Yong Deng wrote: > > Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > > and CSI1 is used for parallel interface. This is not documented in > > datasheet but by testing and guess

Re: [PATCH 1/2 v3] scsi: ufs: introduce static sysfs entries

2017-12-20 Thread Martin K. Petersen
>> For future patch series submissions, please include a cover letter >> that explains the purpose of the patch series and please also >> document the changes between the different versions of the patch >> series in the cover letter. > > Yup, I'll be aware of it. Thank you for the advice. These l

Re: [PATCH net-next v4 0/6] net: tcp: sctp: dccp: Replace jprobe usage with trace events

2017-12-20 Thread Masami Hiramatsu
On Wed, 20 Dec 2017 14:24:24 -0500 (EST) David Miller wrote: > From: David Miller > Date: Wed, 20 Dec 2017 14:20:40 -0500 (EST) > > > From: Masami Hiramatsu > > Date: Wed, 20 Dec 2017 13:14:11 +0900 > > > >> This series is v4 of the replacement of jprobe usage with trace > >> events. This ver

Re: [PATCH V3 net-next 00/17] add some features and fix some bugs for HNS3 driver

2017-12-20 Thread lipeng (Y)
On 2017/12/21 3:28, David Miller wrote: From: Lipeng Date: Wed, 20 Dec 2017 16:43:02 +0800 This patchset adds some new feature support and fixes some bugs: [Patch 1/17 - 5/17] add the support to modify/query the tqp number through ethtool -L/l command, and also fix some related bugs for chan

Re: [PATCH] scsi: storvsc: Fix scsi_cmd error assignments in storvsc_handle_error

2017-12-20 Thread Martin K. Petersen
Cathy, > When an I/O is returned with an srb_status of SRB_STATUS_INVALID_LUN > which has zero good_bytes it must be assigned an error. Otherwise the > I/O will be continuously requeued and will cause a deadlock in the > case where disks are being hot added and removed. sd_probe_async will > wait

Re: linux-next: Signed-off-by missing for commit in the scsi tree

2017-12-20 Thread Martin K. Petersen
chenxiang, > John is on vacation. I have checked it and please add a > "Signed-off-by: Xiang Chen " or let me know > if want us to re-send this patch again . I fixed it up. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-20 Thread Minchan Kim
On Wed, Dec 20, 2017 at 09:26:32AM +0800, Huang, Ying wrote: > From: Huang Ying > > When the swapin is performed, after getting the swap entry information > from the page table, system will swap in the swap entry, without any > lock held to prevent the swap device from being swapoff. This may >

Re: [PATCH v3 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-20 Thread Andi Shyti
Hi Philipp, On Tue, Dec 19, 2017 at 09:07:42AM +0100, Philipp Rossak wrote: > This patch updates the sunxi-ir driver to set the base clock frequency from > devicetree. > > This is necessary since there are different ir receivers on the > market, that operate with different frequencies. So this va

Re: [PATCH v2 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code

2017-12-20 Thread Honghui Zhang
On Thu, 2017-12-21 at 10:08 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > Two fixups for mediatek's host bridge: > The first patch fixup the IRQ handle routine to avoid IRQ reentry which > may exist for both MT2712 and MT7622. > The second patch fixup class type for MT7622. >

[PATCH v2 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code

2017-12-20 Thread honghui.zhang
From: Honghui Zhang Two fixups for mediatek's host bridge: The first patch fixup the IRQ handle routine to avoid IRQ reentry which may exist for both MT2712 and MT7622. The second patch fixup class type for MT7622. Change Since v1: - Add the second patch. - Make the first patch's commit messag

[PATCH v2 1/2] PCI: mediatek: Clear IRQ status after IRQ dispatched to avoid reentry

2017-12-20 Thread honghui.zhang
From: Honghui Zhang There maybe a same IRQ reentry scenario after IRQ received in current IRQ handle flow: EP device PCIe host driverEP driver 1. issue an IRQ 2. received IRQ 3. clear IRQ status

[PATCH v2 2/2] PCI: mediatek: Fixup class type for MT7622

2017-12-20 Thread honghui.zhang
From: Honghui Zhang The host bridge of MT7622 has hardware code the class code to an arbitrary, meaningless value, fix that. Signed-off-by: Honghui Zhang --- drivers/pci/host/pcie-mediatek.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/pci/host/pcie-mediatek.c b/dr

[PATCH v2 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code

2017-12-20 Thread honghui.zhang
From: Honghui Zhang Two fixups for mediatek's host bridge: The first patch fixup the IRQ handle routine to avoid IRQ reentry which may exist for both MT2712 and MT7622. The second patch fixup class type for MT7622. Change Since v1: - Add the second patch. - Make the first patch's commit messag

[PATCH v2 2/2] PCI: mediatek: Fixup class type for MT7622

2017-12-20 Thread honghui.zhang
From: Honghui Zhang The host bridge of MT7622 has hardware code the class code to an arbitrary, meaningless value, fix that. Signed-off-by: Honghui Zhang --- drivers/pci/host/pcie-mediatek.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/pci/host/pcie-mediatek.c b/dr

  1   2   3   4   5   6   7   8   9   10   >