Re: BUG: unable to handle kernel NULL pointer dereference in rb_insert_color

2017-12-20 Thread Eric Biggers
On Wed, Dec 20, 2017 at 08:50:40AM +0100, Dmitry Vyukov wrote: > > > > The line number in lib/rbtree.c seems to be slightly off. Looking at the > > disassembly: > > > > 825b5ea0 : > > 825b5ea0: 55 push %rbp > > 825b5ea1:

Re: proc_flush_task oops

2017-12-20 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 2:54 AM, Eric W. Biederman wrote: > ebied...@xmission.com (Eric W. Biederman) writes: > >> Dave Jones writes: >> >>> On Tue, Dec 19, 2017 at 12:27:30PM -0600, Eric W. Biederman wrote: >>> > Dave Jones writes: >>> > >>> > > On Mon, Dec 18, 2017 at 03:50:52PM -0800, Linu

Re: [PATCH v3 18/20] ARM: dts: aspeed-romulus: Update Romulus system

2017-12-20 Thread Cédric Le Goater
On 12/20/2017 04:23 AM, Joel Stanley wrote: > - Fix incorrect RAM size > - Remove alias; these are now specified in the dtsi > - Add newly upstreamed devices > - Include OpenBMC flash layout > > Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater > --- > v3: > - Add GPIO include >

Re: [PATCH] pinctrl: rockchip: enable clock when reading pin direction register

2017-12-20 Thread Linus Walleij
On Tue, Dec 12, 2017 at 6:43 PM, Brian Norris wrote: > We generally leave the GPIO clock disabled, unless an interrupt is > requested or we're accessing IO registers. We forgot to do this for the > ->get_direction() callback, which means we can sometimes [1] get > incorrect results [2] from, e.g.

Re: [PATCH 1/2] gpiolib: constify label in gpio_device

2017-12-20 Thread Linus Walleij
On Wed, Dec 13, 2017 at 12:25 PM, Bartosz Golaszewski wrote: > This string is never modified. Make it const. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

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

2017-12-20 Thread Greg KH
On Tue, Dec 19, 2017 at 12:02:53PM -0800, Jaegeuk Kim wrote: > From: Jaegeuk Kim > > This patch introduces attribute group to show existing sysfs entries. > > Cc: Greg KH > Signed-off-by: Jaegeuk Kim > --- > drivers/scsi/ufs/ufshcd.c | 48 > +++ >

Re: [PATCH] cpufreq: powernv: Add support of frequency domain

2017-12-20 Thread Gautham R Shenoy
On Tue, Dec 19, 2017 at 09:21:52PM +1100, Balbir Singh wrote: > On Tue, Dec 19, 2017 at 8:20 PM, Gautham R Shenoy > wrote: > > Hi Viresh, > > On Mon, Dec 18, 2017 at 01:59:35PM +0530, Viresh Kumar wrote: > >> On 18-12-17, 10:41, Abhishek wrote: > >> > We need to do it in this way as the current im

Re: [PATCH v4 4/4] ARM: pinctrl: sunxi-pinctrl: fix pin funtion can not be match correctly.

2017-12-20 Thread Linus Walleij
On Wed, Dec 13, 2017 at 3:47 PM, hao_zhang wrote: > Pin function can not be match correctly when SUNXI_PIN describe with > mutiple variant and same function. > > such as: > on pinctrl-sun4i-a10.c > > SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 2), > SUNXI_FUNCTION(0x0, "gpio_in"), >

Re: BUG: unable to handle kernel NULL pointer dereference in rb_insert_color

2017-12-20 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 8:59 AM, Eric Biggers wrote: > On Wed, Dec 20, 2017 at 08:50:40AM +0100, Dmitry Vyukov wrote: >> > >> > The line number in lib/rbtree.c seems to be slightly off. Looking at the >> > disassembly: >> > >> > 825b5ea0 : >> > 825b5ea0: 55

Re: [PATCH] pinctrl: axp209: dereference pointer after it's been set

2017-12-20 Thread Linus Walleij
On Wed, Dec 13, 2017 at 9:55 AM, Quentin Schulz wrote: > The number of GPIOs is gotten from a field within the structure > referenced in the of_device.data but it was actually read before it was > retrieved, thus it was dereferencing a null pointer. > > Set the number of GPIOs after retrieving of

Re: [PATCH] of: build dbts with symbols when CONFIG_OF_OVERLAY is set

2017-12-20 Thread Andre Heider
On 18/12/17 23:10, Frank Rowand wrote: On 12/16/17 09:25, Andre Heider wrote: Hi Frank, On 15/12/17 22:06, Frank Rowand wrote: On 12/14/17 07:12, Andre Heider wrote: The overlay feature requires the base dtb to be built with symbols, so lets build the dtbs with symbols when overlay support wa

Re: [PATCH v5 0/4] ARM: ep93xx: ts72xx: Add support for BK3 board

2017-12-20 Thread Arnd Bergmann
On Tue, Dec 19, 2017 at 10:36 PM, Lukasz Majewski wrote: > Hi Arnd, > >> Hi! >> >> On Mon Dec 18 12:55:40 2017 Arnd Bergmann wrote: >> > > GCC 7.2 is working >> > >> > Ah wait, this is still for ep93xx, which is always at least armv4t, >> > right? So it won't have a problem with the armv4 depreca

Re: [PATCH 42/45] ARM: dts: at91: vinco: use TCB2 as timers

2017-12-20 Thread Gregory CLEMENT
Hi Alexandre, On mar., déc. 19 2017, Alexandre Belloni wrote: > As TCB2 doesn't have any output pins, use it for timers > > Cc: Gregory CLEMENT > Signed-off-by: Alexandre Belloni Acked-by: Gregory CLEMENT Thanks, Gregory > --- > arch/arm/boot/dts/at91-vinco.dts | 12 > 1 f

[PATCH V3 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: Shenjian Signed-off-by: Lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 45 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 158 -

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

[PATCH V3 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: Shenjian Signed-off-by: Lipeng --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 10 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 39 +- 2 files changed,

Re: [PATCH 00/45] Migrate TCB bindings

2017-12-20 Thread Nicolas Ferre
On 19/12/2017 at 22:31, Alexandre Belloni wrote: > Hi, > > As the bindings were acked by Rob a while ago [1] and I think there is > consensus on what they look like, I'm planning to apply that series for > 4.16 so we get a smoother transition for the TCB driver rework. > > I've simply removed the

Re: [PATCH] pinctrl: axp209: add missing Kconfig dependencies

2017-12-20 Thread Linus Walleij
On Thu, Dec 14, 2017 at 10:43 AM, Quentin Schulz wrote: > This fixes some compilation issues. > > GENERIC_PINCONF and OF at least for pinconf_generic_dt_*, PINMUX at > least for pinmux_ops and GPIOLIB for at least gpio_chip. > > Fixes: 23f75d7dfa92 ("pinctrl: axp209: add pinctrl features") > > Re

[PATCH V3 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: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/h

[PATCH V3 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 V3 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: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 10 ++ .../net/ethernet/hisi

[PATCH V3 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: Fuyun Liang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 13 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 83 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge

[PATCH V3 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: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 3 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 122 + drivers/ne

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

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

[PATCH V3 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: Yunsheng Lin Signed-off-by: Lipeng --- d

Re: [PATCH v2 2/2] gpiolib: use kstrdup_const() for gpio_device label

2017-12-20 Thread Linus Walleij
On Thu, Dec 14, 2017 at 3:29 PM, Bartosz Golaszewski wrote: > Users often pass a pointer to a static string to gpiochip_add_data() > family of functions. Avoid unnecessary memory allocations with the > provided helper routine. > > While at it: use a ternary operator instead of an if else for brev

Re: [PATCH] CIFS: SMBD: fix configurations with INFINIBAND=m

2017-12-20 Thread Arnd Bergmann
On Tue, Dec 19, 2017 at 10:21 PM, Long Li wrote: >> depends on CIFS && INFINIBAND >> + depends on CIFS=m || INFINIBAND=y > > How about we change them to > > depends on CIFS=m && INFINIBAND || CIFS=y && INFINIBAND=y > > This makes it easy to read. Yes, that seems fine. I would no

Re: [Xen-devel] [RFC PATCH 01/60] hyper_dmabuf: initial working version of hyper_dmabuf drv

2017-12-20 Thread Juergen Gross
On 20/12/17 00:27, Dongwon Kim wrote: > I forgot to include this brief information about this patch series. > > This patch series contains the implementation of a new device driver, > hyper_dmabuf, which provides a method for DMA-BUF sharing across > different OSes running on the same virtual OS p

[PATCH V3 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: Shenjian Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 3 +++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 16 drivers/net/ethernet/hisilicon/hns3/hns3pf/

[PATCH V3 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 V3 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: Fuyun L

[PATCH V3 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: Shenjian Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 83 +++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisi

[PATCH V3 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 V3 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 V3 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: Fuyun Liang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 ++ drivers

[PATCH V3 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: qumingguang Signed-off-by: Lipeng --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH v2] gpio: fix "gpio-line-names" property retrieval

2017-12-20 Thread Linus Walleij
On Fri, Dec 15, 2017 at 3:02 PM, Christophe Leroy wrote: > Following commit 9427ecbed46cc ("gpio: Rework of_gpiochip_set_names() > to use device property accessors"), "gpio-line-names" DT property is > not retrieved anymore when chip->parent is not set by the driver. > This is due to OF based pro

Re: [RFC] MIPS memblock: Remove bootmem code and switch to NO_BOOTMEM

2017-12-20 Thread Alexander Sverdlin
Hello Serge, On 19/12/17 21:14, Serge Semin wrote: > Almost a year ago I sent a patchset to the Linux MIPS community. The main > target of the patchset > was to get rid from the old bootmem allocator usage at the MIPS architecture. > Additionally I had > a problem with CMA usage on my MIPS machi

Re: [PATCH V8 2/3] OPP: Introduce "required-opp" property

2017-12-20 Thread Ulf Hansson
On 18 December 2017 at 11:21, Viresh Kumar wrote: > Devices have inter-dependencies some times. For example a device that > needs to run at 800 MHz, needs another device (e.g. Its power domain) to > be configured at a particular operating performance point. > > This patch introduces a new property

Re: [PATCH v3 00/19] ARM: dts: aspeed: updates and new machines

2017-12-20 Thread Arnd Bergmann
On Wed, Dec 20, 2017 at 4:37 AM, Joel Stanley wrote: > On Wed, Dec 20, 2017 at 1:53 PM, Joel Stanley wrote: >> This series of device tree patches for the ASPEED BMC machines >> moves all systems to use the soon to be merged clk driver, and >> updates machines to use all of the drivers we have ups

Re: [PATCH V8 2/3] OPP: Introduce "required-opp" property

2017-12-20 Thread Viresh Kumar
On 20-12-17, 09:23, Ulf Hansson wrote: > Nitpick: Could you please change "parent" to "power", to be consistent > with earlier examples. Sure. Thanks for the review. -- viresh

[PATCH v2 0/2] eeprom: at24: write-protect pin support

2017-12-20 Thread Bartosz Golaszewski
AT24 EEPROMs have a write-protect pin, which - when pulled high - inhibits writes to the upper quadrant of memory (although it has been observed that on some chips it disables writing to the entire memory range). On some boards, this pin is connected to a GPIO and pulled high by default, which for

Re: [PATCH] vfb: fix video mode and line_length being set when loaded

2017-12-20 Thread Geert Uytterhoeven
Hi Pieter, On Wed, Dec 20, 2017 at 1:24 AM, Pieter "PoroCYon" Sluys wrote: > Currently, when loading the vfb module, the newly created fbdev > has a line_length of 0, and its video mode would be PSEUDOCOLOR > regardless of color depth. (The former could be worked around by > calling the FBIOPUT_V

[PATCH v2 2/2] eeprom: at24: add support for the write-protect pin

2017-12-20 Thread Bartosz Golaszewski
AT24 EEPROMs have a write-protect pin, which - when pulled high - inhibits writes to the upper quadrant of memory (although it has been observed that on some chips it disables writing to the entire memory range). On some boards, this pin is connected to a GPIO and pulled high by default, which for

Re: [PATCH 0/2] eeprom: at24: write-protect pin support

2017-12-20 Thread Bartosz Golaszewski
2017-12-19 17:14 GMT+01:00 Bartosz Golaszewski : > AT24 EEPROMs have a write-protect pin, which - when pulled high - > inhibits writes to the upper quadrant of memory (although it has been > observed that on some chips it disables writing to the entire memory > range). > > On some boards, this pin

[PATCH v2 1/2] dt-bindings: at24: new optional property - wp-gpios

2017-12-20 Thread Bartosz Golaszewski
AT24 EEPROMs have a write-protect pin, which - when pulled high - inhibits writes to the upper quadrant of memory (although it has been observed that on some chips it disables writing to the entire memory range). On some boards, this pin is connected to a GPIO and pulled high by default, which for

[PATCH v2 2/2] dt/bindings: Add bindings for Layerscape external irqs

2017-12-20 Thread Rasmus Villemoes
Signed-off-by: Rasmus Villemoes --- .../interrupt-controller/fsl,ls-extirq.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt diff --git a/Documentation/devicetree/bindings/inter

[PATCH v2 1/2] irqchip: add support for Layerscape external interrupt lines

2017-12-20 Thread Rasmus Villemoes
The LS1021A allows inverting the polarity of six interrupt lines IRQ[0:5] via the scfg_intpcr register, effectively allowing IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_EDGE_FALLING for those. We just need to check the type, set the relevant bit in INTPCR accordingly, and fixup the type argument before calling

Re: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags

2017-12-20 Thread Peter Zijlstra
On Wed, Dec 20, 2017 at 09:34:46AM +0530, Viresh Kumar wrote: > On 19-12-17, 20:25, Peter Zijlstra wrote: > > Yeah, not happy about this either; we had code that did the right thing > > without this extra tracking I think. > > Sure, but how do you suggest we fix the problems we are facing with > t

[PATCH RESEND] checkpatch: add *_ON_STACK to declaration_macros

2017-12-20 Thread Gilad Ben-Yossef
Add the crypto API *_ON_STACK to $declaration_macros. Resolves the following false warning: WARNING: Missing a blank line after declarations + int err; + SHASH_DESC_ON_STACK(desc, ctx_p->shash_tfm); Signed-off-by: Gilad Ben-Yossef --- scripts/checkpa

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Dr. Manfred Spraul
Hi Michal, On 12/19/2017 10:48 AM, Michal Hocko wrote: Hi, we have been contacted by our partner about the following permission discrepancy 1. Create a shared memory segment with permissions 600 with user A using shmget(key, 1024, 0600 | IPC_CREAT) 2. ipcs -m should return an output as follo

Re: [PATCH 1/3] phy: core: Move runtime PM reference counting to the parent device

2017-12-20 Thread Ulf Hansson
On 20 December 2017 at 07:42, Kishon Vijay Abraham I wrote: > Hi Ulf, > > On Wednesday 20 December 2017 02:52 AM, Ulf Hansson wrote: >> The runtime PM deployment in the phy core is a bit unnecessary complicated >> and the main reason is because it operates on the phy device, which is >> created by

Re: [Xen-devel] [RFC PATCH 01/60] hyper_dmabuf: initial working version of hyper_dmabuf drv

2017-12-20 Thread Oleksandr Andrushchenko
On 12/20/2017 01:27 AM, Dongwon Kim wrote: This patch series contains the implementation of a new device driver, hyper_dmabuf, which provides a method for DMA-BUF sharing across different OSes running on the same virtual OS platform powered by a hypervisor. This is very interesting at least in

Re: [PATCH v3 14/16] phy: Add notify_speed callback

2017-12-20 Thread Manu Gautam
Hi On 12/20/2017 12:47 PM, Kishon Vijay Abraham I wrote: > Hi, > [snip] >>> Why not use a notification mechanism instead of adding new APIs in phy-core. >>> This will only bloat phy-core with APIs for a particular platform. >> Do you mean notifier_chains ? >> When we have multiple instances of US

r8169 take too long to complete driver initialization

2017-12-20 Thread Chris Chiu
Hi, We've hit a suspend/resume issue on a Acer desktop caused by r8169 driver. The dmseg https://gist.github.com/mschiu77/b741849b5070281daaead8dfee312d1a shows it's still in msleep() within a mutex lock. After looking into the code, it's caused by the rtl8168ep_stop_cmac() which is waiting

Re: [PATCH 4.13 03/28] Bluetooth: btusb: fix QCA Rome suspend/resume

2017-12-20 Thread Kai Heng Feng
> On 20 Dec 2017, at 7:11 AM, Brian Norris wrote: > > Hi Kai, > > On Tue, Dec 19, 2017 at 12:28:17PM +0800, Kai Heng Feng wrote: >>> On 19 Dec 2017, at 2:13 AM, Brian Norris wrote: >>> On Mon, Dec 18, 2017 at 12:43:48PM +0100, Greg Kroah-Hartman wrote: On Fri, Dec 15, 2017 at 07:05:39PM -

Re: [PATCH 17/25] hrtimer: Implementation of softirq hrtimer handling

2017-12-20 Thread Anna-Maria Gleixner
On Tue, 19 Dec 2017, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 09:58:44AM +0100, Sebastian Andrzej Siewior wrote: > > this is late I know… > > > > On 2017-09-27 18:40:26 [+0200], Peter Zijlstra wrote: > > > - removed superfluous local_bh_disable(), since local_irq_disable() > > >alread

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michael Kerrisk (man-pages)
Hi Manfred, On 20 December 2017 at 09:32, Dr. Manfred Spraul wrote: > Hi Michal, > > On 12/19/2017 10:48 AM, Michal Hocko wrote: >> >> Hi, >> we have been contacted by our partner about the following permission >> discrepancy >> 1. Create a shared memory segment with permissions 600 with user A u

[PATCH 02/11] MIPS: AR7: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/mips/ar7/platform.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --gi

[PATCH 03/11] MIPS: TXX9: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/mips/txx9/rbtx4927/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH 04/11] x86: geode: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/x86/platform/geode/alix.c| 2 +- arch/x86/platform/geode/geos.c| 2 +- arch/x86/platform/ge

[PATCH 01/11] MIPS: Alchemy: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/mips/alchemy/board-gpr.c | 2 +- arch/mips/alchemy/board-mtx1.c | 2 +- 2 files changed, 2 inserti

[PATCH 00/11] constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Arvind Yadav (11): [PATCH 01/11] MIPS: Alchemy: constify gpio_led [PATCH 02/11] MIPS: AR7: constify gpio_led [PATCH 03/11] MIPS: TXX

Re: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags

2017-12-20 Thread Viresh Kumar
On 20-12-17, 09:31, Peter Zijlstra wrote: > On Wed, Dec 20, 2017 at 09:34:46AM +0530, Viresh Kumar wrote: > Please use the normal link format: > > https://lkml.kernel.org/r/$MSGID > > Then I can find them without having to resort to a frigging browser > thing. Sure, and that would be much eas

[PATCH 05/11] sh: mach-rsk: rsk7203: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/sh/boards/mach-rsk/devices-rsk7203.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 11/11] ARM: pxa: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-pxa/balloon3.c | 4 ++-- arch/arm/mach-pxa/corgi.c | 2 +- arch/arm/mach-pxa/csb701.c

[PATCH 08/11] ARM: OMAP1: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-omap1/board-h2.c| 2 +- arch/arm/mach-omap1/board-h3.c| 2 +- arch/arm/mac

[PATCH 09/11] ARM: orion5x: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-orion5x/board-d2net.c | 2 +- arch/arm/mach-orion5x/dns323-setup.c | 2 +- arch/a

[PATCH 10/11] ARM: s3c24xx: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-s3c24xx/mach-h1940.c| 2 +- arch/arm/mach-s3c24xx/mach-rx1950.c | 2 +- arch/arm/mac

[PATCH 07/11] ARM: ixp4xx: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-ixp4xx/dsmg600-setup.c | 2 +- arch/arm/mach-ixp4xx/nas100d-setup.c | 2 +- arch/arm/mach-

[PATCH 06/11] ARM: davinci: constify gpio_led

2017-12-20 Thread Arvind Yadav
gpio_led are not supposed to change at runtime. struct gpio_led_platform_data working with const gpio_led provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-davinci/board-neuros-osd2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [PATCH v5 0/4] ARM: ep93xx: ts72xx: Add support for BK3 board

2017-12-20 Thread Lukasz Majewski
Hi Arnd, > On Tue, Dec 19, 2017 at 10:36 PM, Lukasz Majewski > wrote: > > Hi Arnd, > > > >> Hi! > >> > >> On Mon Dec 18 12:55:40 2017 Arnd Bergmann wrote: > >> > > GCC 7.2 is working > >> > > >> > Ah wait, this is still for ep93xx, which is always at least > >> > armv4t, right? So it won't

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

2017-12-20 Thread Greg KH
On Wed, Dec 20, 2017 at 01:32:49PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the staging tree got conflicts in: > > drivers/Kconfig > drivers/Makefile > > between commits: > > bbecb07fa0af ("siox: new driver framework for eckelmann SIOX") > 3648e78ec701 (

Re: [PATCH v2 2/4] sched/fair: add util_est on top of PELT

2017-12-20 Thread Peter Zijlstra
On Fri, Dec 15, 2017 at 03:41:40PM +, Patrick Bellasi wrote: > Close enough, the actual code is: > > util_est = p->util_est.ewma; > 5218: f9403ba3ldr x3, [x29,#112] > 521c: f9418462ldr x2, [x3,#776] > if (abs(util_est - util_last) <=

RE: [PATCH] mei: fix incorrect logical operator in if statement

2017-12-20 Thread Winkler, Tomas
> From: Colin Ian King > > The current expression using the || operator is always true because > dev->dev_state cannot be equal to two different values at the same time. > Fix this by replacing the || with &&. > > Detected by CoverityScan, CID#1463042 ("Constant expression result") > > Fixes:

Re: [PATCH] KVM/Eventfd: Avoid crash when assign and deassign same eventfd in parallel.

2017-12-20 Thread Lan Tianyu
On 2017年12月19日 18:41, Paolo Bonzini wrote: > On 19/12/2017 07:35, Lan Tianyu wrote: >> On 2017年12月18日 16:50, Paolo Bonzini wrote: >>> On 18/12/2017 09:30, David Hildenbrand wrote: The ugly thing in kvm_irqfd_assign() is that we access irqfd without holding a lock. I think that should rath

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-20 Thread Jarkko Nikula
On Tue, Dec 19, 2017 at 10:15:07AM -0800, Joe Perches wrote: > Convert DEVICE_ATTR uses to DEVICE_ATTR_RW where possible. > ... > diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c > index 7a54e3083203..79d4dc785e5c 100644 > --- a/sound/soc/omap/mcbsp.c > +++ b/sound/soc/omap/mcbsp.c

Re: [PATCH] bug.h: Work around GCC PR82365 in BUG()

2017-12-20 Thread Arnd Bergmann
On Tue, Dec 19, 2017 at 11:38 PM, Vineet Gupta wrote: > On 12/19/2017 12:13 PM, Arnd Bergmann wrote: >> >> >>> I suppose BUG() implies "dead end" like semantics - which ARC was lacking >>> before ? >> >> Correct. Using __builtin_trap() here avoids the 'control reaches end of >> non-void >> functio

Re: [PATCH 1/3] phy: core: Move runtime PM reference counting to the parent device

2017-12-20 Thread Kishon Vijay Abraham I
Hi Ulf, On Wednesday 20 December 2017 02:05 PM, Ulf Hansson wrote: > On 20 December 2017 at 07:42, Kishon Vijay Abraham I wrote: >> Hi Ulf, >> >> On Wednesday 20 December 2017 02:52 AM, Ulf Hansson wrote: >>> The runtime PM deployment in the phy core is a bit unnecessary complicated >>> and the m

Re: [PATCH] KVM:Hyper-V reduce one kvm_write_guest operation

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 08:46, rhett wrote: > in function kvm_hv_setup_tsc_page , the old code write the full tsc_ref > struct firstly, and write a > tsc_sequence field later, it can be wirten once. No, it cannot and this comment says exactly why: > -   /* Ensure sequence is zero before writing the res

Re: [PATCH v2 2/4] sched/fair: add util_est on top of PELT

2017-12-20 Thread Peter Zijlstra
On Wed, Dec 20, 2017 at 09:57:47AM +0100, Peter Zijlstra wrote: > On Fri, Dec 15, 2017 at 03:41:40PM +, Patrick Bellasi wrote: > > Close enough, the actual code is: > > > > util_est = p->util_est.ewma; > > 5218: f9403ba3ldr x3, [x29,#112] > > 521c: f9418

[PATCH] ARM: dts: at91: sama5d2_ptc_ek: use TCB0 as timers

2017-12-20 Thread Nicolas Ferre
Use tcb0 for timers as selected in sama5_defconfig. Signed-off-by: Nicolas Ferre --- Hi Alex, Adding the newly added sama5d2_ptc_ek to the series. Not tested though. Regards, Nicolas arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 12 1 file changed, 12 insertions(+) diff --git a/

[GIT PULL] sound fixes for 4.15-rc5

2017-12-20 Thread Takashi Iwai
Linus, please pull sound fixes for v4.15-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.15-rc5 The topmost commit is 5a15f289ee87eaf33f13f08a4909ec99d837ec5f sound fixes for 4.15-rc5 All

Re: [PATCH] mei: fix incorrect logical operator in if statement

2017-12-20 Thread Colin Ian King
On 20/12/17 08:58, Winkler, Tomas wrote: > >> From: Colin Ian King >> >> The current expression using the || operator is always true because >> dev->dev_state cannot be equal to two different values at the same time. >> Fix this by replacing the || with &&. >> >> Detected by CoverityScan, CID#146

Re: [patch v6 2/3] platform/mellanox: mlxreg-hotplug: allow driver for ARM architecture

2017-12-20 Thread kbuild test robot
Hi Vadim, I love your patch! Yet something to improve: [auto build test ERROR on platform-drivers-x86/for-next] [also build test ERROR on v4.15-rc4 next-20171220] [cannot apply to linus/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michal Hocko
On Wed 20-12-17 09:44:47, Michael Kerrisk wrote: > Hi Manfred, > > On 20 December 2017 at 09:32, Dr. Manfred Spraul > wrote: > > Hi Michal, > > > > On 12/19/2017 10:48 AM, Michal Hocko wrote: > >> > >> Hi, > >> we have been contacted by our partner about the following permission > >> discrepancy

Re: [PATCH] clk: samsung: s3c: Remove unneeded enumeration

2017-12-20 Thread Chanwoo Choi
Dear Sylwester, Gently Ping. Regards, Chanwoo Choi On 2017년 11월 27일 11:31, Chanwoo Choi wrote: > This patch just removes the unneeded enumeration for PLL index. > > Signed-off-by: Chanwoo Choi > --- > drivers/clk/samsung/clk-s3c2412.c | 11 ++- > drivers/clk/samsung/clk-s3c2443.c | 17

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

2017-12-20 Thread Ganapatrao Kulkarni
When an interrupt is moved, it is possible that an implementation that supports caching might still have cached data for a previous (no longer valid) mapping of the interrupt. In particular, in a distributed GIC implementation like multi-socket SoC platfroms. Hence it is necessary to flush cached e

Re: KASAN: use-after-free Read in crypto_aead_free_instance

2017-12-20 Thread Stephan Müller
Am Mittwoch, 20. Dezember 2017, 08:48:01 CET schrieb syzbot: Hi, > Hello, > > syzkaller hit the following crash on > 032b4cc8ff84490c4bc7c4ef8c91e6d83a637538 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw

Re: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags

2017-12-20 Thread Peter Zijlstra
On Wed, Dec 20, 2017 at 02:18:59PM +0530, Viresh Kumar wrote: > On 20-12-17, 09:31, Peter Zijlstra wrote: > What about this case: A CFS task is running currently and an RT task > is enqueued. > > - Is it always the case that the CFS task is preempted immediately and > the CPU is given to RT task

Re: KASAN: use-after-free Read in crypto_aead_free_instance

2017-12-20 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 10:17 AM, Stephan Müller wrote: > Am Mittwoch, 20. Dezember 2017, 08:48:01 CET schrieb syzbot: > > Hi, > >> Hello, >> >> syzkaller hit the following crash on >> 032b4cc8ff84490c4bc7c4ef8c91e6d83a637538 >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/mast

Re: [PATCH V2 9/9] ARM: dts: stm32: add initial support of stm32mp157c eval board

2017-12-20 Thread Alexandre Torgue
Hi Linus On 12/20/2017 08:44 AM, Linus Walleij wrote: On Mon, Dec 18, 2017 at 4:17 PM, Ludovic Barre wrote: From: Ludovic Barre Add support of stm32mp157c evaluation board (part number: STM32MP157C-EV1) split in 2 elements: -Daughter board (part number: STM32MP157C-ED1) which includes CPU

Re: shmctl(SHM_STAT) vs. /proc/sysvipc/shm permissions discrepancies

2017-12-20 Thread Michal Hocko
On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: > Hello Michal, > > On 19 December 2017 at 10:48, Michal Hocko wrote: > > Hi, > > we have been contacted by our partner about the following permission > > discrepancy > > > > 1. Create a shared memory segment with permissions 600 with user A using

Re: BUG: unable to handle kernel NULL pointer dereference in __list_del_entry_valid

2017-12-20 Thread Michal Hocko
On Tue 19-12-17 17:40:19, Dmitry Vyukov wrote: > On Tue, Dec 19, 2017 at 2:42 PM, Michal Hocko wrote: > >> >> > Can we silence this duplicates [1] please? > >> >> > > >> >> > [1] http://lkml.kernel.org/r/001a1140f57806ebef05608b2...@google.com > >> >> > >> >> Hi Michal, > >> >> > >> >> What exactl

Re: [-next PATCH 2/4] treewide: Use DEVICE_ATTR_RW

2017-12-20 Thread Joe Perches
On Wed, 2017-12-20 at 10:34 +0200, Jarkko Nikula wrote: > On Tue, Dec 19, 2017 at 10:15:07AM -0800, Joe Perches wrote: > > Convert DEVICE_ATTR uses to DEVICE_ATTR_RW where possible. [] > > diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c [] > > @@ -854,7 +854,7 @@ static ssize_t dma_op

Re: [RFC PATCH 0/9] media: base request API support

2017-12-20 Thread Alexandre Courbot
On Sat, Dec 16, 2017 at 6:02 AM, Nicolas Dufresne wrote: > Le vendredi 15 décembre 2017 à 16:56 +0900, Alexandre Courbot a écrit : >> Here is a new attempt at the request API, following the UAPI we agreed on in >> Prague. Hopefully this can be used as the basis to move forward. >> >> This series o

Re: BUG: unable to handle kernel NULL pointer dereference in __list_del_entry_valid

2017-12-20 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 10:20 AM, Michal Hocko wrote: > On Tue 19-12-17 17:40:19, Dmitry Vyukov wrote: >> On Tue, Dec 19, 2017 at 2:42 PM, Michal Hocko wrote: >> >> >> > Can we silence this duplicates [1] please? >> >> >> > >> >> >> > [1] http://lkml.kernel.org/r/001a1140f57806ebef05608b2...@goog

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

2017-12-20 Thread Marc Zyngier
On 20/12/17 09:15, Ganapatrao Kulkarni wrote: > When an interrupt is moved, it is possible that an implementation that > supports caching might still have cached data for a previous > (no longer valid) mapping of the interrupt. In particular, in a distributed > GIC implementation like multi-socket

Re: [RFC PATCH 0/9] media: base request API support

2017-12-20 Thread Alexandre Courbot
On Sat, Dec 16, 2017 at 6:04 AM, Nicolas Dufresne wrote: > Le vendredi 15 décembre 2017 à 16:56 +0900, Alexandre Courbot a écrit : >> Here is a new attempt at the request API, following the UAPI we agreed on in >> Prague. Hopefully this can be used as the basis to move forward. >> >> This series o

[PATCH] livepatch: add locking to force and signal functions

2017-12-20 Thread Miroslav Benes
klp_send_signals() and klp_force_transition() do not acquire klp_mutex, because it seemed to be superfluous. A potential race in klp_send_signals() was harmless and there was nothing in klp_force_transition() which needed to be synchronized. That changed with the addition of klp_forced variable dur

  1   2   3   4   5   6   7   8   9   10   >