Re: [PATCH v10 7/8] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2018-01-05 Thread Horia Geantă
On 1/4/2018 9:16 PM, Logan Gunthorpe wrote: > Clean up the extra ifdefs which defined the wr_reg64 and rd_reg64 > functions in non-64bit cases in favour of the new common > io-64-nonatomic-lo-hi header. > > To be consistent with CAAM engine HW spec: in case of 64-bit registers, > irrespective of d

Re: kernel BUG at ./include/linux/skbuff.h:LINE!

2018-01-05 Thread Steffen Klassert
On Thu, Jan 04, 2018 at 07:58:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > ead68f216110170ec729e2c4dec0aad6d38259d7 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: [PATCH 4.14 00/14] 4.14.12-stable review

2018-01-05 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 01:46:41PM -0600, Dan Rue wrote: > On Thu, Jan 04, 2018 at 01:09:17PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.12 release. > > There are 14 patches in this series, all will be posted as a response > > to this one. If any

Re: [f2fs-dev] [PATCH 2/2] f2fs: add reserved blocks for root user

2018-01-05 Thread Yunlong Song
On 2018/1/4 2:58, Jaegeuk Kim wrote: @@ -1590,11 +1598,17 @@ static inline int inc_valid_block_count(struct f2fs_sb_info *sbi, sbi->total_valid_block_count += (block_t)(*count); avail_user_block_count = sbi->user_block_count - sbi->curren

Re: [PATCH v4 2/3] mailbox: Add support for Hi3660 mailbox

2018-01-05 Thread Leo Yan
Hi Jassi, On Fri, Jan 05, 2018 at 09:58:57AM +0530, Jassi Brar wrote: > On Tue, Dec 19, 2017 at 4:45 PM, Kaihua Zhong wrote: > > . > > diff --git a/drivers/mailbox/hi3660-mailbox.c > > b/drivers/mailbox/hi3660-mailbox.c > > new file mode 100644 > > index 000..3ceca40 > > --- /dev/null >

Re: [PATCH net-next] net: tracepoint: adding new tracepoint arguments in inet_sock_set_state

2018-01-05 Thread Yafang Shao
On Fri, Jan 5, 2018 at 3:21 PM, Song Liu wrote: > >> On Jan 4, 2018, at 10:42 PM, Yafang Shao wrote: >> >> sk->sk_protocol and sk->sk_family are exposed as tracepoint arguments. >> Then we can conveniently use these two arguments to do the filter. >> >> Suggested-by: Brendan Gregg >> Signed-off-

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

2018-01-05 Thread Julia Lawall
It looks like the problem in terms of detection is to find values that should be annotated as __user. Poking around a bit, it seems like this tool is doing just that: http://www.cs.umd.edu/~jfoster/cqual/ It dates from 2004, but perhaps the developer could be motivated to pick it up again. I do

[PATCH v2] clk: mediatek: adjust dependency of reset.c to avoid unexpectedly being built

2018-01-05 Thread sean.wang
From: Sean Wang Changes from v1->v2: Add 'select RESET_CONTROLLER' under COMMON_CLK_MEDIATEK and enable reset.c to be built when COMMON_CLK_MEDIATEK is selected. That should be quite reasonable because the reset controller is tightly embedded inside and exported from these clock subsystems. At le

[PATCH RESENT V3] nvme-pci: fix NULL pointer reference in nvme_alloc_ns

2018-01-05 Thread Jianchao Wang
When the io queues setup or tagset allocation failed, ctrl.tagset is NULL. But the scan work will still be queued and executed, then panic comes up due to NULL pointer reference of ctrl.tagset. To fix this, add a new ctrl state NVME_CTRL_ADMIN_ONLY to inidcate only admin queue is live. When non io

Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes

2018-01-05 Thread Philippe Ombredanne
Sean, On Fri, Jan 5, 2018 at 4:42 AM, Sean Wang wrote: > On Thu, 2018-01-04 at 11:27 +0100, Philippe Ombredanne wrote: >> Sean, >> >> On Thu, Jan 4, 2018 at 10:40 AM, wrote: >> > From: Sean Wang >> > >> > Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 >> > regulator nodes in

Re: [PATCH v3] arm64: v8.4: Support for new floating point multiplication instructions

2018-01-05 Thread gengdongjiu
On 2018/1/5 15:57, Greg KH wrote: > On Fri, Jan 05, 2018 at 09:22:54AM +0800, gengdongjiu wrote: >> Hi will/catalin >> >> On 2017/12/13 18:09, Suzuki K Poulose wrote: >>> On 13/12/17 10:13, Dongjiu Geng wrote: ARM v8.4 extensions add new neon instructions for performing a multiplication o

RE

2018-01-05 Thread Mrs Alice Walton
my name is Mrs. Alice Walton, a business woman an America Citizen and the heiress to the fortune of Walmart stores, born October 7, 1949. I have a mission for you worth $100,000,000.00(Hundred Million United State Dollars) which I intend using for CHARITY

[GIT PULL] xen: fix for 4.15-rc7

2018-01-05 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.15-rc7-tag xen: fix for 4.15-rc7 It contains one minor fix adjusting the kmalloc flags in the new pvcalls driver added in rc1. Thanks. Juergen drivers/xen/pvcalls-front.c | 2 +-

Re: checkpatch: Add test for keywords not starting on tabstops

2018-01-05 Thread Sven Eckelmann
On Donnerstag, 21. April 2016 12:41:37 CET Joe Perches wrote: > It's somewhat common and in general a defect for c90 keywords to > not start on a tabstop. > > Add a test for this condition and warn when it occurs. This seems to create some new false positives: WARNING: Statements should star

Re: [PATCH] [linux-next] rt2x00: Fix a typo in printk

2018-01-05 Thread Stanislaw Gruszka
On Fri, Jan 05, 2018 at 12:08:00AM +0900, Masanari Iida wrote: > This patch fix a typo in rt2800lib.c > > Signed-off-by: Masanari Iida Acked-by: Stanislaw Gruszka

[PATCH] xen-netfront: enable device after manual module load

2018-01-05 Thread Eduardo Otubo
When loading the module after unloading it, the network interface would not be enabled and thus wouldn't have a backend counterpart and unable to be used by the guest. The guest would face errors like: [root@guest ~]# ethtool -i eth0 Cannot get driver information: No such device [root@gues

Re: [B.A.T.M.A.N.] checkpatch: Add test for keywords not starting on tabstops

2018-01-05 Thread Sven Eckelmann
On Freitag, 5. Januar 2018 09:30:27 CET Sven Eckelmann wrote: > On Donnerstag, 21. April 2016 12:41:37 CET Joe Perches wrote: > > It's somewhat common and in general a defect for c90 keywords to > > not start on a tabstop. > > > > Add a test for this condition and warn when it occurs. > > This see

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-05 Thread Greentime Hu
Hi, Daniel: 2018-01-05 3:48 GMT+08:00 Daniel Lezcano : > On 04/01/2018 15:06, Greentime Hu wrote: >> Hi, Daniel: >> >> 2018-01-04 21:50 GMT+08:00 Daniel Lezcano : >>> >>> Hi, >>> >>> sorry I missed your answer. Comments below. >>> >>> On 13/12/2017 07:06, Greentime Hu wrote: Hi, Daniel:

Re: mmotm 2018-01-04-16-19 uploaded

2018-01-05 Thread Michal Hocko
On Fri 05-01-18 12:13:17, Anshuman Khandual wrote: > On 01/05/2018 05:50 AM, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2018-01-04-16-19 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-moment: >

Re: [PATCH v3 1/9] dt-bindings: media: Add Renesas CEU bindings

2018-01-05 Thread Geert Uytterhoeven
On Thu, Jan 4, 2018 at 11:28 PM, Laurent Pinchart wrote: > On Thursday, 4 January 2018 18:03:09 EET Jacopo Mondi wrote: >> Add bindings documentation for Renesas Capture Engine Unit (CEU). >> +++ b/Documentation/devicetree/bindings/media/renesas,ceu.txt >> @@ -0,0 +1,85 @@ >> +Renesas Capture Eng

[kernel-hardening] [PATCH v2] arm: Always use REFCOUNT_FULL

2018-01-05 Thread Jinbum Park
refcount_t overflow detection is implemented as two way. 1. REFCOUNT_FULL - It means the full refcount_t implementation which has validation but is slightly slower. - (fd25d19f6b8d ("locking/refcount: Create unchecked atomic_t implementation")) 2. ARCH_HAS_REFCOUNT - refcount_t overflow det

Re: [PATCH 1/3] mm, numa: rework do_pages_move

2018-01-05 Thread Michal Hocko
On Fri 05-01-18 09:22:22, Anshuman Khandual wrote: [...] > Hi Michal, > > After slightly modifying your test case (like fixing the page size for > powerpc and just doing simple migration from node 0 to 8 instead of the > interleaving), I tried to measure the migration speed with and without > the

Re: [RFC PATCH 1/4] asm-generic/barrier: add generic nospec helpers

2018-01-05 Thread Mark Rutland
On Thu, Jan 04, 2018 at 08:21:56PM -0800, Dan Williams wrote: > On Thu, Jan 4, 2018 at 4:00 AM, Mark Rutland wrote: > > On Wed, Jan 03, 2018 at 10:38:24PM +, Mark Rutland wrote: > >> +#define nospec_array_load(arr, idx, sz) > >>\ > >> +({

Re: [PATCH v2 0/3] renesas: irqchip: Use WAKEUP_PATH driver PM flag

2018-01-05 Thread Geert Uytterhoeven
Hi Rafael, On Sun, Dec 31, 2017 at 12:47 PM, Rafael J. Wysocki wrote: > On Sun, Dec 31, 2017 at 10:22 AM, Geert Uytterhoeven > wrote: >> On Sun, Dec 31, 2017 at 1:56 AM, Rafael J. Wysocki wrote: >>> On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson wrote: From: Geert Uytterhoeven Ch

Re: [PATCH 1/3] mm, numa: rework do_pages_move

2018-01-05 Thread Anshuman Khandual
On 01/05/2018 02:44 PM, Michal Hocko wrote: > On Fri 05-01-18 09:22:22, Anshuman Khandual wrote: > [...] >> Hi Michal, >> >> After slightly modifying your test case (like fixing the page size for >> powerpc and just doing simple migration from node 0 to 8 instead of the >> interleaving), I tried to

Re: Bricked x86 CPU with software?

2018-01-05 Thread Pavel Machek
Hi! On Thu 2018-01-04 17:21:36, Tim Mouraveiko wrote: > > On Thu 2018-01-04 14:13:56, Tim Mouraveiko wrote: > > > > > As I mentioned before, I repeatedly and fully power-cycled the > > > > > motherboard and reset BIOS > > > > > and etc. It made no difference. I can see that the processor was not

Re: [PATCH v5 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-05 Thread Daniel Lezcano
On 05/01/2018 09:45, Greentime Hu wrote: > Hi, Daniel: [ ... ] >> [ ... ] >> >>> +config CLKSRC_ATCPIT100 >>> + bool "Clocksource for AE3XX platform" >>> + depends on NDS32 || COMPILE_TEST >>> + depends on HAS_IOMEM >>> + help >>> + This optio

Re: [PATCH 1/3] mm, numa: rework do_pages_move

2018-01-05 Thread Michal Hocko
On Fri 05-01-18 14:50:04, Anshuman Khandual wrote: > On 01/05/2018 02:44 PM, Michal Hocko wrote: > > On Fri 05-01-18 09:22:22, Anshuman Khandual wrote: > > [...] > >> Hi Michal, > >> > >> After slightly modifying your test case (like fixing the page size for > >> powerpc and just doing simple migra

Re: WARNING in ion_ioctl

2018-01-05 Thread Dan Carpenter
Oh.. Duh to me... I didn't even know pr_warn_once() existed. Cool. regards, dan carpenter

[PATCH -next] f2fs: make local functions static

2018-01-05 Thread Wei Yongjun
Fixes the following sparse warnings: fs/f2fs/segment.c:887:6: warning: symbol '__check_sit_bitmap' was not declared. Should it be static? fs/f2fs/segment.c:1327:6: warning: symbol 'f2fs_wait_discard_bio' was not declared. Should it be static? fs/f2fs/super.c:1661:5: warning: symbol 'f2fs_get_pr

[PATCH net] of_mdio: avoid MDIO bus removal when a PHY is missing

2018-01-05 Thread Madalin Bucur
If one of the child devices is missing the of_mdiobus_register_phy() call will return -ENODEV. When a missing device is encountered the registration of the remaining PHYs is stopped and the MDIO bus will fail to register. Propagate all errors except ENODEV to avoid it. Signed-off-by: Madalin Bucur

Re: [PATCH v5 00/12] drm/sun4i: Add A83t LVDS support

2018-01-05 Thread Maxime Ripard
On Thu, Dec 21, 2017 at 12:02:26PM +0100, Maxime Ripard wrote: > Hi, > > Here is an attempt at supporting the LVDS output in our DRM driver. This > has been tested on the A83T (with DE2), but since everything is basically > in the TCON, it should also be usable on the older SoCs with minor > modif

[PATCH v2] vhost: remove unused lock check flag in vhost_dev_cleanup()

2018-01-05 Thread 夷则(Caspar)
From: Caspar Zhang In commit ea5d404655ba ("vhost: fix release path lockdep checks"), Michael added a flag to check whether we should hold a lock in vhost_dev_cleanup(), however, in commit 47283bef7ed3 ("vhost: move memory pointer to VQs"), RCU operations have been replaced by mutex, we can remov

[PATCH] kasan: add declarations for internal functions

2018-01-05 Thread Arnd Bergmann
A patch got merged that made newly added functions static, leading to a warning about unused functions as well as a link error when they are actually used: mm/kasan/kasan.c:780:7: error: '__asan_set_shadow_f8' defined but not used [-Werror=unused-function] mm/kasan/kasan.c:791:8: note: in expansi

[PATCH] media: staging: tegra-vde: select DMA_SHARED_BUFFER

2018-01-05 Thread Arnd Bergmann
Without CONFIG_DMA_SHARED_BUFFER we run into a link error for the dma_buf_* APIs: ERROR: "dma_buf_map_attachment" [drivers/staging/media/tegra-vde/tegra-vde.ko] undefined! ERROR: "dma_buf_attach" [drivers/staging/media/tegra-vde/tegra-vde.ko] undefined! ERROR: "dma_buf_get" [drivers/staging/medi

[PATCH] media: cobalt: select CONFIG_SND_PCM

2018-01-05 Thread Arnd Bergmann
The cobalt sound driver has a dependency on ALSA, but not on the PCM helper code, so this can lead to an extremely rare link error in randconfig builds: ERROR: "snd_pcm_period_elapsed" [drivers/media/pci/cobalt/cobalt.ko] undefined! ERROR: "_snd_pcm_stream_lock_irqsave" [drivers/media/pci/cobalt/c

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

2018-01-05 Thread Peng Li
This patchset adds some new features support and fixes some bugs: [Patch 1/20] adds support to enable/disable vlan filter with ethtool [Patch 2/20] disables VFs change rxvlan offload status [Patch 3/20 - 13/120 fix bugs and refine some codes for packet statistics, support query with both ifconfig a

[PATCH net-next 08/20] net: hns3: Fix an error of total drop packet statistics

2018-01-05 Thread Peng Li
From: Jian Shen The dropped tx/rx packets number of each tqp should also be counted into the total drop tx/rx packets numbers. Fixes: 76ad4f0ee74 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilico

[PATCH net-next 05/20] net: hns3: Remove repeat statistic of rx_errors

2018-01-05 Thread Peng Li
From: Jian Shen The igu_rx_err_pkt indicates the same error with mac_rx_fcs_err_pkt_num, so remove it. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/

[PATCH net-next 09/20] net: hns3: Fix a loop index error of tqp statistics query

2018-01-05 Thread Peng Li
From: Jian Shen An error loop index was used while querying statistics data of tqps, which may cause call trace. Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver") Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 10 ++

[PATCH net-next 18/20] net: hns3: fix for not setting pause parameters

2018-01-05 Thread Peng Li
From: Fuyun Liang Pause parameters include source address, transmit gap and pause time. The default value of the pause source address is zero in the hardware. Default pause parameters need to be set to the hardware. Also, when setting new mac address, the pause source address need to be updated.

[PATCH net-next 16/20] net: hns3: fix for changing MTU

2018-01-05 Thread Peng Li
From: Fuyun Liang when changing MTU, The new MTU must need to be set to netdevice. Fixes: a8e8b7ff3517 ("net: hns3: Add support to change MTU in HNS3 hardware") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 ++ 1 file changed, 2 inse

[PATCH net-next 13/20] net: hns3: Fix a response data read error of tqp statistics query

2018-01-05 Thread Peng Li
From: Jian Shen The result of tqp statistics query was read with an error position, fix it according to the user manual. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisi

[PATCH net-next 07/20] net: hns3: Mask the packet statistics query when NIC is down

2018-01-05 Thread Peng Li
From: Jian Shen Update the HNS3_NIC_STATE_DOWN bit when NIC state changes. When NIC is down, mask the packet statistics for querying with ifconfig command. It's a common practice. Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8

[PATCH net-next 19/20] net: hns3: remove redundant semicolon

2018-01-05 Thread Peng Li
There is a redundant semicolon, this patch removes it. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisili

[GIT PULL]: soundwire updates

2018-01-05 Thread Vinod Koul
Hey Greg, Please PULL to get three patches for static checks which people have found. These have been tested by Fengguang's kbuildbot. The following changes since commit 1443f5b4fb451fdc894e4845ca67b370ed897a94: MAINTAINERS: Add SoundWire entry (2017-12-19 11:32:35 +0100) are available in the

[PATCH net-next 17/20] net: hns3: add MTU initialization for hardware

2018-01-05 Thread Peng Li
From: Fuyun Liang When initializing the MAC, the MTU vlaue need to be set to the hardware too. Otherwise, the MTU value of software will be different from the MTU value of hardware. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Fuyu

Re: [rdma for-next] bnxt_re: report RoCE device support at info level

2018-01-05 Thread Devesh Sharma
Acked-By: Devesh Sharma On Fri, Jan 5, 2018 at 2:34 AM, Jonathan Toppins wrote: > Reporting that a device doesn't support RoCE seems like a valuable piece > of information to have when trying to determine why a driver is not binding > to a device. Better to report this at info log level instead

[PATCH net-next 20/20] net: hns3: Add more packet size statisctics

2018-01-05 Thread Peng Li
From: Jian Shen The statistics of rx/tx packets size greater than 1518 are not detailed. This patch adds more statistics for different packet size range. Signed-off-by: Jian Shen Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 42 +++--- .../eth

[PATCH net-next 10/20] net: hns3: Fix an error macro definition of HNS3_TQP_STAT

2018-01-05 Thread Peng Li
From: Jian Shen The member "stats_offset" was designed to indicate the offset of each member of struct ring_stats in struct hns3_enet_ring, but forgot to add the offset of the member in struct ring_stats. Fixes: 496d03e960a ("net: hns3: Add Ethtool support to HNS3 driver") Signed-off-by: Jian Sh

[PATCH net-next 11/20] net: hns3: Remove a useless member of struct hns3_stats

2018-01-05 Thread Peng Li
From: Jian Shen The member "stats_size" of struct hns3_stats is useless, remove it and fix the macro definition which has uses this struct. Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deleti

[PATCH net-next 03/20] net: hns3: Unify the strings display of packet statistics

2018-01-05 Thread Peng Li
From: Jian Shen Some members of packet statistics are named in different styles. This patch unifies them with new internal name rules, the main modification are below: trans --> tx rcv --> rx rcb_q%d_tx --> txq#%d rcb_q%d_rx --> rxq#%d sw_err_cnt(tx side) --> tx_dropped sw_err_cnt(rx side) -->

[PATCH net-next 02/20] net: hns3: Disable VFs change rxvlan offload status

2018-01-05 Thread Peng Li
From: Jian Shen Rxvlan offload status can only be changed by PF. Initialize the value of NETIF_F_HW_VLAN_CTAG_RX bit of hw_features for VFS to false, make sure user can't be able to change it. Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

[PATCH net-next 14/20] net: hns3: fix for updating fc_mode_last_time

2018-01-05 Thread Peng Li
From: Fuyun Liang commit a9c782822166 ("net: hns3: add support for set_pauseparam") adds set_pauseparam support for ethtool cmd, but forgets to update fc_mode_last_time when PFC mode is disabled in hclge_cfg_pauseparam(). The wrong fc_mode_last_time will be used to update flow control mode when l

[PATCH net-next 06/20] net: hns3: Modify the update period of packet statistics

2018-01-05 Thread Peng Li
From: Jian Shen It takes more than 200 query response messages between driver and IMP, while updating the packet statistics. It's too heavy for IMP to update it per second. Extend the update period of packet statistics data from 1 second to 300 seconds(if too long, the statistics may overflow).

[PATCH 4/6] ARM64: dts: meson-axg: uart: Add the pinctrl info description

2018-01-05 Thread Yixun Lan
Describe the pinctrl info for the UART controller which found in the Meson-AXG SoCs. Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 96 ++ 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm6

[PATCH 0/6] ARM64: dts: meson-axg: UART DT updates

2018-01-05 Thread Yixun Lan
HI Kevin These are the UART DT updates for the Meson-AXG platform. The patch 1, 2 are two general fixes. Other patches are about adding clock & pinctrl info, then using them. Last patch enable UART_A which connect to BT module in the S400 board. Note: This series depend on previous UART_AO cloc

[PATCH 3/6] ARM64: dts: meson-axg: uart: Add the clock info description

2018-01-05 Thread Yixun Lan
Add the clock info description for the EE UART controller. Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 9636a7c5f6ed..

[PATCH 5/6] arm64: dts: meson-axg: complete the pinctrl info for UART_AO_A

2018-01-05 Thread Yixun Lan
Explictly request the pinctrl info for the UART_AO_A controller, otherwise we my rely on bootloader for the initialization. Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400

Re: [PATCH] Input: stmfts,s6sy671 - add SPDX identifier

2018-01-05 Thread Andi Shyti
Hi Dmitry, this is a kind ping, would you also mind giving me a feedback to all the previous patches I sent? Thanks, Andi On Tue, Dec 12, 2017 at 04:41:49PM +0900, Andi Shyti wrote: > Replace the original license statement with the SPDX identifier. > > Update also the copyright owner adding mys

[PATCH 6/6] ARM64: dts: meson-axg: enable the UART_A controller

2018-01-05 Thread Yixun Lan
The UART_A is connect to a BT module in the S400 board. Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index 2b

[PATCH 1/6] ARM64: dts: meson-axg: uart: drop legacy compatible name from EE UART

2018-01-05 Thread Yixun Lan
For the UART controller in EE domain, they require 'pclk' to work. Current logic of the code will force to go for legacy clock probe if it found current compatible string match to 'amlogic,meson-ao-uart'. Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 4 ++-- 1 file ch

[PATCH 2/6] ARM64: dts: meson-axg: uart: fix address space range

2018-01-05 Thread Yixun Lan
The address space range is actually 0x18, fixed here. Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 1c6

[PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE

2018-01-05 Thread Peng Fan
This patch enables configs for Trusted Execution Environment(TEE) and Open Portable Trusted Execution Environment(OP-TEE). With Linux running in Trustzone non-secure world, OP-TEE OS runs in secure world, linux could use secure services provided by OP-TEE. With TEE/OP-TEE options selected, use the

[PATCH net-next 15/20] net: hns3: fix for setting MTU

2018-01-05 Thread Peng Li
From: Fuyun Liang When setting MTU, actually what we do is configuring the max frame size for the hardware. ETH_HLEN、ETH_FCS_LEN and VLAN_HLEN must need to be considered. And the frame size which is less than the default value should not be set to the hardware. Because in the hardware, the the ma

Re: Avoid speculative indirect calls in kernel

2018-01-05 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Jon Masters wrote: > On 01/04/2018 07:54 PM, Thomas Gleixner wrote: > > On Thu, 4 Jan 2018, Jon Masters wrote: > >> P.S. I've an internal document where I've been tracking "nice to haves" > >> for later, and one of them is whether it makes sense to tag binaries as > >> "trusted"

[PATCH 1/4] arm: dts: ls1021a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1021a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- arch/arm/boot/dts/ls1021a.dtsi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ls10

[PATCH 2/4] arm64: dts: ls1043a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1043a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ar

[PATCH 4/4] xHCI: Handle dwc3 erratum on USB3 HW LPM feature.

2018-01-05 Thread Ran Wang
Synopsys STARS ticket: 9969472(A-010131) Description: This erratum is applicable for the USB 3.0 Super Speed host mode operation. When the U2 timer expires while in U1 mode, the USB 3.0 controller completes a U1->U2 entry operation lasting three mac3_clk (24 ns). If the xHCI driver issues a U3

[PATCH 3/4] arm64: dts: ls1046a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1046a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ar

[PATCH net-next 12/20] net: hns3: Add packet statistics of netdev

2018-01-05 Thread Peng Li
From: Jian Shen Add packet statistics of netdev for ethtool -S, in order to show the statistics data for current net device. Remove update_stats() calling because it has been completed in hns3_get_netdev_stats(). Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisili

[PATCH net-next 01/20] net: hns3: Add ethtool interface for vlan filter

2018-01-05 Thread Peng Li
From: Jian Shen This patch adds vlan filter enable switch to support ethtool -K ethX rx-vlan-filter on/off. Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 11 ++

[PATCH net-next 04/20] net: hns3: Fix spelling errors

2018-01-05 Thread Peng Li
From: Jian Shen Fix spelling error "overrsize" --> "oversize". Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 14 +++--- driver

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

2018-01-05 Thread Petr Mladek
On Mon 2017-12-11 21:50:12, Sergey Senozhatsky wrote: > Hello, > > A rather automatic replacement of print_symbol() > with direct printk() calls. print_symbol() uses extra stack > buffer (KSYM_SYMBOL_LEN 128 bytes) and, basically, should > be identical to printk(%pS). To make it clear

Re: [PATCH v2 1/3] drm/sun4i: hdmi: Check for unset best_parent in sun4i_tmds_determine_rate

2018-01-05 Thread Maxime Ripard
On Fri, Jan 05, 2018 at 09:44:39AM +1100, Jonathan Liu wrote: > Hi Maxime, > > On 5 January 2018 at 06:56, Maxime Ripard > wrote: > > On Tue, Dec 26, 2017 at 10:12:25PM +1100, Jonathan Liu wrote: > >> We should check if the best match has been set before comparing it. > >> > >> Fixes: 9c5681011a0

Re: [alsa-devel] [PATCH 15/27] ALSA: hda - Use timecounter_initialize interface

2018-01-05 Thread Sagar Arun Kamble
On 1/3/2018 1:23 AM, Pierre-Louis Bossart wrote: On 1/2/18 12:21 PM, Richard Cochran wrote: On Tue, Jan 02, 2018 at 11:15:45AM -0600, Pierre-Louis Bossart wrote: I wrote the code for HDaudio and I remember wasting time trying to figure out the gory details of the cycle counter stuff when all

Re: [PATCH -next] um: vector: fix missing unlock on error in vector_net_open()

2018-01-05 Thread Anton Ivanov
Hi Wei, I just double-checked. This issue has been fixed in a patch submitted by Dan Carpenter on 09th Dec 2017 which I acknowledged on 11th Dec 2017 and which should be in Richard's queue to be applied. It should at some point show up in Linux-next. Best Regards and once again, thanks for

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-05 Thread Kees Cook
On Thu, Jan 4, 2018 at 9:33 PM, Andy Lutomirski wrote: > On Thu, Jan 4, 2018 at 12:43 PM, Andy Lutomirski wrote: >> >>> On Jan 4, 2018, at 12:29 PM, Linus Torvalds >>> wrote: >>> On Thu, Jan 4, 2018 at 12:16 PM, Thomas Voegtle wrote: Attached a screenshot. Is that useful? A

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

2018-01-05 Thread Sergey Senozhatsky
On (01/05/18 11:03), Petr Mladek wrote: [..] > Anyway, print_symbol() is an old weird API and it would be nice > to eventually get rid of it. I could take this patches into > printk.git. no objections from my side if the patch set will go through the printk tree. shall we wait for ACKs or can we m

Re: [PATCH] doc: memory-barriers: reStructure Text

2018-01-05 Thread Markus Heiser
> Am 05.01.2018 um 04:52 schrieb afzal mohammed : [...] > Initially i was sceptical of rst & once instead of hitting the fly, > hit "make htmldocs" on the keyboard :), and the opinion about it was > changed. Yes, I understand that some of us have a (reasonable) doubt about the reST markup. It

Re: [PATCH 4.9 00/39] 4.9.75-stable review

2018-01-05 Thread Alice Ferrazzi
On Thu, Jan 4, 2018 at 5:11 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.75 release. > There are 39 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Resp

Re: proposal for meltdown-workaround with low overhead

2018-01-05 Thread Alexander Kleinsorge
Hi Tony, at least in the original Paper ( meltdownattack.com/meltdown.pdf ) and in Wikipedia ( en.wikipedia.org/wiki/Meltdown_(security_vulnerability) ) indicate, that the exception variant is the preferred choice (even if it is also possible via branch prediction bending). (I assume, that the

Re: [PATCH 03/11] arm64: Take into account ID_AA64PFR0_EL1.CSV3

2018-01-05 Thread Suzuki K Poulose
On 04/01/18 15:08, Will Deacon wrote: For non-KASLR kernels where the KPTI behaviour has not been overridden on the command line we can use ID_AA64PFR0_EL1.CSV3 to determine whether or not we should unmap the kernel whilst running at EL0. Signed-off-by: Will Deacon --- arch/arm64/include/asm/

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

2018-01-05 Thread Sergey Senozhatsky
On (01/05/18 19:21), Sergey Senozhatsky wrote: > On (01/05/18 11:03), Petr Mladek wrote: > [..] > > Anyway, print_symbol() is an old weird API and it would be nice > > to eventually get rid of it. I could take this patches into > > printk.git. > > no objections from my side if the patch set will g

Re: [PATCH 6/6] ARM64: dts: meson-axg: enable the UART_A controller

2018-01-05 Thread Jerome Brunet
On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: > The UART_A is connect to a BT module in the S400 board. The UART_A is connected to a BT module on the S400 board. ---- Apart from this: Acked-by: Jerome Brunet > > Signed-off-by: Yixun Lan > --- > arc

[PATCH] ANDROID: binder: remove waitqueue when thread exits.

2018-01-05 Thread Martijn Coenen
binder_poll() passes the thread->wait waitqueue that can be slept on for work. When a thread that uses epoll explicitly exits using BINDER_THREAD_EXIT, the waitqueue is freed, but it is never removed from the corresponding epoll data structure. When the process subsequently exits, the epoll cleanup

Re: [PATCH 5/6] arm64: dts: meson-axg: complete the pinctrl info for UART_AO_A

2018-01-05 Thread Jerome Brunet
On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: > Explictly request the pinctrl info for the UART_AO_A controller, > otherwise we my rely on bootloader for the initialization. "we may" ? --^ > > Signed-off-by: Yixun Lan Please be consistent in the title s/arm64/ARM64 Otherwise looks good

Re: [PATCH v3 01/13] x86/retpoline: Add initial retpoline support

2018-01-05 Thread Paul Turner
On Thu, Jan 04, 2018 at 07:27:58PM +, David Woodhouse wrote: > On Thu, 2018-01-04 at 10:36 -0800, Alexei Starovoitov wrote: > > > > Pretty much. > > Paul's writeup: https://support.google.com/faqs/answer/7625886 > > tldr: jmp *%r11 gets converted to: > > call set_up_target; > > capture_spec: >

Re: [PATCH 04/11] arm64: cpufeature: Pass capability structure to ->enable callback

2018-01-05 Thread Suzuki K Poulose
On 04/01/18 15:08, Will Deacon wrote: In order to invoke the CPU capability ->matches callback from the ->enable callback for applying local-CPU workarounds, we need a handle on the capability structure. This patch passes a pointer to the capability structure to the ->enable callback. Signed-of

Re: [PATCH 4/6] ARM64: dts: meson-axg: uart: Add the pinctrl info description

2018-01-05 Thread Jerome Brunet
On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: > Describe the pinctrl info for the UART controller which is > found > in the Meson-AXG SoCs. Yixun, Could you please review this patch again. Some "strings" used here will obviously not work. I've picked up a few but I'm pretty sure there ar

Re: [PATCH 3/6] ARM64: dts: meson-axg: uart: Add the clock info description

2018-01-05 Thread Jerome Brunet
On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: > Add the clock info description for the EE UART controller. > > Signed-off-by: Yixun Lan > --- > arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dts

Re: [PATCH 1/6] ARM64: dts: meson-axg: uart: drop legacy compatible name from EE UART

2018-01-05 Thread Jerome Brunet
On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: > For the UART controller in EE domain, they require 'pclk' to work. they ? "the driver" maybe ? > Current logic of the code will force to go for legacy clock probe > if it found current compatible string match to 'amlogic,meson-ao-uart'. did y

Re: [PATCH 2/6] ARM64: dts: meson-axg: uart: fix address space range

2018-01-05 Thread Jerome Brunet
On Fri, 2018-01-05 at 17:56 +0800, Yixun Lan wrote: > The address space range is actually 0x18, fixed here. Isn't it the same for other meson SoC ? If they are compatible, it should. Could you please re-submit this change addressing all the required platforms ? > > Signed-off-by: Yixun Lan > --

[PATCH 2/6] MIPS: CPS: Introduce mips_gic_enable_eic

2018-01-05 Thread Matt Redfearn
The MIPS GIC supports running in External Interrupt Controller (EIC) mode, in which the GIC can raise up to 64 separate interrupts rather than the usual 6. This mode is enabled by setting bit GIC_VL_CTL.EIC. If the bit sticks, then EIC mode is present and becomes enabled. Otherwise this bit is read

Re: [PATCH v2] xfrm: Use __skb_queue_tail in xfrm_trans_queue

2018-01-05 Thread Steffen Klassert
On Thu, Jan 04, 2018 at 10:25:07PM +1100, Herbert Xu wrote: > On Thu, Jan 04, 2018 at 12:20:26PM +0100, Artem Savkov wrote: > > > Right, thats a better solution. > > > > Reported-and-tested-by: Artem Savkov > > Thanks! > > But I just realised that this patch is based on my dirty tree. > So her

[PATCH] Staging: irda: Prefer 'unsigned int' to bare use of 'unsigned'

2018-01-05 Thread Sumit Pundir
This patch fixes the following checkpatch.pl issue at multiple lines: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Sumit Pundir --- drivers/staging/irda/drivers/act200l-sir.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/i

[PATCH 0/6] irqchip/mips-gic: Enable & use VEIC mode if available

2018-01-05 Thread Matt Redfearn
This series enables the MIPS GIC driver to make use of the EIC mode supported in some MIPS cores. In this mode, the cores 6 interrupt lines are switched to represent a vector number, 0..63. Currently all GIC interrupts are routed to a single CPU interrupt pin, but this is inefficient since we end

[PATCH 1/6] MIPS: Move ehb() to barrier.h

2018-01-05 Thread Matt Redfearn
The current location of ehb() in mipsmtregs.h does not make sense, since it is not strictly related to multi-threading, and may be used in code which does not include mipsmtregs.h Signed-off-by: Matt Redfearn --- arch/mips/include/asm/barrier.h| 13 + arch/mips/include/asm/mipsm

[PATCH 3/6] MIPS: Generic: Support GIC in EIC mode

2018-01-05 Thread Matt Redfearn
The GIC supports running in External Interrupt Controller (EIC) mode, and will signal this via cpu_has_veic if enabled in hardware. Currently the generic kernel will panic if cpu_has_veic is set - but the GIC can legitimately set this flag if either configured to boot in EIC mode, or if the GIC dri

Re: [PATCH v3 01/13] x86/retpoline: Add initial retpoline support

2018-01-05 Thread Paul Turner
On Thu, Jan 04, 2018 at 10:40:23AM -0800, Andi Kleen wrote: > > Clearly Paul's approach to retpoline without lfence is faster. > > I'm guessing it wasn't shared with amazon/intel until now and > > this set of patches going to adopt it, right? > > > > Paul, could you share a link to a set of altern

  1   2   3   4   5   6   7   8   >