[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

[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

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 >>

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 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

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. >> > >> >

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

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

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:

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:

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 =

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: 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

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

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

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

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

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

[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

[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

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

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

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

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

[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 ++

[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 ++

[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

[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& direction for pf, and fix

[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

[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& direction for pf, and fix

[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 +

[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 +

[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 +-

[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 +-

[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 ---

[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 ---

[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

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

[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

[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

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

[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 ++

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. > > >

[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

[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:

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

[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

[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 ---

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

[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

[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

[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 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

[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 ---

[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

[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(+)

[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 ++

[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

[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

[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

[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

[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 ---

[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 ++

[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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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

[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

[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.

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.

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

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

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

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

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 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 >

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

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

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 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

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 + >

  1   2   3   4   5   6   7   8   9   10   >