Re: [PATCH 2/2 v4] scsi: ufs: introduce sysfs entries exposing UFS health info

2017-12-21 Thread Greg Kroah-Hartman
On Wed, Dec 20, 2017 at 02:13:25PM -0800, Jaegeuk Kim wrote: > This patch adds a new sysfs group, namely health, via: > >/sys/devices/soc/X.ufshc/health/ > > This directory contains the below entries, each of which shows an 8-bytes > hex number representing different meanings defined by JEDEC

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

2017-12-21 Thread gre...@linuxfoundation.org
On Wed, Dec 20, 2017 at 09:37:39PM -0500, Martin K. Petersen wrote: > > >> For future patch series submissions, please include a cover letter > >> that explains the purpose of the patch series and please also > >> document the changes between the different versions of the patch > >> series in the

Re: [PATCH v2 1/2] sched: force update of blocked load of idle cpus

2017-12-21 Thread Vincent Guittot
Le Wednesday 20 Dec 2017 à 16:01:10 (+0100), Peter Zijlstra a écrit : > On Wed, Dec 20, 2017 at 03:23:01PM +0100, Vincent Guittot wrote: > > On 20 December 2017 at 15:03, Peter Zijlstra wrote: > > > On Fri, Dec 01, 2017 at 06:01:56PM +, Brendan Jackman wrote: > > >> @@ -8955,8 +8964,20 @@ stat

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

2017-12-21 Thread Greg Kroah-Hartman
On Wed, Dec 20, 2017 at 11:16:30AM -0800, Jaegeuk Kim wrote: > From: Jaegeuk Kim > > This patch introduces attribute group to show existing sysfs entries. > > Cc: Greg Kroah-Hartman > Signed-off-by: Jaegeuk Kim > --- > > Change log from v1: > - use ATTRIBUTE_GROUPS and sysfs_create_groups()

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

2017-12-21 Thread Michal Hocko
On Wed 20-12-17 17:17:46, Michael Kerrisk wrote: > Hello Michal, > > On 20 December 2017 at 10:20, Michal Hocko wrote: > > On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: > >> But, is > >> there a pressing reason to make the change? (Okay, I guess iterating > >> using *_STAT is nicer than parsin

TPM driver breaks S3 suspend

2017-12-21 Thread Chris Chiu
Hi, We have a desktop which has S3 suspend (to RAM) problem due to error messages as follows. [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend [ 198.908289] __pnp_bus_suspend(): tpm_pm_suspend+0x0/0x160 returns 38 [ 198.908293] dpm_run_callback(): pnp_bus_suspend+0x0/0x20

Re: [PATCH resend] arm: dts: ls1021a: add reboot node to .dtsi

2017-12-21 Thread Shawn Guo
On Tue, Dec 05, 2017 at 09:12:47AM +0100, Rasmus Villemoes wrote: > The LS1021A can be reset via the dcfg regmap in the same way as the > arm64 layerscape SoCs, so add the corresponding DT node. > > Signed-off-by: Rasmus Villemoes We use "ARM: ..." instead of "arm: ..." as prefix for DTS patches

Re: [PATCH resend] arm: dts: ls1021a: Add label to USB controllers

2017-12-21 Thread Shawn Guo
On Tue, Dec 05, 2017 at 09:16:33AM +0100, Rasmus Villemoes wrote: > From: Esben Haabendal > > Add usb2 and usb3 labels to USB2 and USB3 controller device tree nodes, > for easier modification in board dts files. > > Signed-off-by: Esben Haabendal > Signed-off-by: Rasmus Villemoes Fixed prefix

Re: [PATCH] ARM: dts: imx: Add memory node unit name

2017-12-21 Thread Lothar Waßmann
Hi, On Wed, 6 Dec 2017 13:59:49 -0200 Marco Franchi wrote: > Fix the following warnings from dtc by adding the unit name to memory > nodes: > > Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but > no unit name > > Converted using the following command: > > perl -p0

Re: [PATCH resend] arm: dts: ls1021a: Specify interrupt-affinity for pmu node

2017-12-21 Thread Shawn Guo
On Tue, Dec 05, 2017 at 09:22:25AM +0100, Rasmus Villemoes wrote: > From: Esben Haabendal > > From: Esben Haabendal Dropped the extra From line, fixed prefix and applied patch. Shawn > > This avoids the warning > > hw perfevents: no interrupt-affinity property for /pmu, guessing. > > Sig

Re: [PATCH v2 3/5] mm: enlarge NUMA counters threshold size

2017-12-21 Thread kemi
On 2017年12月20日 18:12, Michal Hocko wrote: > On Wed 20-12-17 13:52:14, kemi wrote: >> >> >> On 2017年12月19日 20:40, Michal Hocko wrote: >>> On Tue 19-12-17 14:39:24, Kemi Wang wrote: We have seen significant overhead in cache bouncing caused by NUMA counters update in multi-threaded page a

Re: [PATCH 2/2] ARC: handle gcc generated __builtin_trap for older compiler

2017-12-21 Thread Arnd Bergmann
On Wed, Dec 20, 2017 at 11:49 PM, Vineet Gupta wrote: > ARC gcc prior to GNU 2018.03 release didn't have a target specific > __builtin_trap() implementation, generating default abort() call. > > Implement the abort() call - emulating what newer gcc does for the same, > as suggested by Arnd. > > Si

Re: [GIT PULL 3/3] ARM: defconfig: exynos: config for v4.16

2017-12-21 Thread Krzysztof Kozlowski
On Wed, Dec 20, 2017 at 6:36 PM, Krzysztof Kozlowski wrote: > > The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: > > Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) > > are available in the git repository at: > > https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux

Re: [PATCH RESEND v6 0/6] provide power off support for iMX6 with external PMIC

2017-12-21 Thread Shawn Guo
On Wed, Dec 06, 2017 at 06:48:44PM +, Mark Brown wrote: > On Wed, Dec 06, 2017 at 08:23:56AM +0100, Oleksij Rempel wrote: > > 2017.12.06: > > Adding Linus. Probably there is no maintainer for this patch set. > > No changes are made, tested on v4.15-rc1. > > Have any of the i.MX maintainers sai

[4.15-rc4][regression][e1000e] - Device initialization appears broken/inconsistent

2017-12-21 Thread Shawn Starr
Hello kernel devs, I'm encountering an issue with the e1000e driver. I can reproduce this by booting to Windows 10, reboot to Fedora and notice the device won't initialize. If I reboot to Windows 10, then reboot to Linux the device initializes properly. With a kernel.org rpm build of 4.15-

Re: [PATCH v2 3/5] mm: enlarge NUMA counters threshold size

2017-12-21 Thread Michal Hocko
On Thu 21-12-17 16:06:50, kemi wrote: > > > On 2017年12月20日 18:12, Michal Hocko wrote: > > On Wed 20-12-17 13:52:14, kemi wrote: > >> > >> > >> On 2017年12月19日 20:40, Michal Hocko wrote: > >>> On Tue 19-12-17 14:39:24, Kemi Wang wrote: > We have seen significant overhead in cache bouncing caus

[PATCH] Move kfree_call_rcu() to slab_common.c

2017-12-21 Thread rao . shoaib
From: Rao Shoaib This patch moves kfree_call_rcu() and related macros out of rcu code. A new function __call_rcu_lazy() is created for calling __call_rcu() with the lazy flag. Also moving macros generated following checkpatch noise. I do not know how to silence checkpatch as there is nothing wron

[PATCH v3 0/6] Coresight: support panic kdump

2017-12-21 Thread Leo Yan
This patch set is to explore Coresight trace data for postmortem debugging. When kernel panic happens, the Coresight panic kdump can help save on-chip trace data and tracer metadata into DRAM, later relies on kdump and crash/perf for "offline" analysis. The documentation is important to understan

[PATCH v3 3/6] coresight: Support panic kdump functionality

2017-12-21 Thread Leo Yan
After kernel panic happens, coresight has many useful info can be used for analysis. For example, the trace info from ETB RAM can be used to check the CPU execution flows before crash. So we can save the tracing data from sink devices, and rely on kdump to save DDR content and uses "crash" tool t

[PATCH v3 5/6] coresight: Add and delete sink callback for panic kdump list

2017-12-21 Thread Leo Yan
If the sink device has panic kdump callback, this means the sink device wants to save tracing data for panic happening. This commit adds node into panic kdump list when the sink device is enabled, and delete node when the sink device is disabled. Signed-off-by: Leo Yan --- drivers/hwtracing/cor

[PATCH v3 4/6] coresight: tmc: Hook callback for panic kdump

2017-12-21 Thread Leo Yan
Since the panic kdump functionality has been ready, this patch is to hook panic callback function for ETB/ETF. Since the driver data structure has allocated buffer when the session started, so simply save ETB/ETF trace data into the buffer when panic happens and update related info into dump node.

[PATCH v3 2/6] doc: Add documentation for Coresight panic kdump

2017-12-21 Thread Leo Yan
Add detailed documentation for Coresight panic kdump, which contains the idea for why need this and introduce the framework implementation and usage. Signed-off-by: Leo Yan --- .../trace/coresight/coresight-panic-kdump.txt | 91 ++ MAINTAINERS

[PATCH v3 1/6] doc: Add Coresight documentation directory

2017-12-21 Thread Leo Yan
For easily management and friendly adding more Coresight related documentations, this commit creates one dedicated directory: Documentation/trace/coresight. It moves Coresight related docs into this new directory and updates MAINTAINERS file to reflect docs movement. Signed-off-by: Leo Yan ---

[PATCH v3 6/6] coresight: etm4x: Support panic kdump

2017-12-21 Thread Leo Yan
ETMv4 hardware information and configuration needs to be saved as metadata; these metadata should be compatible with tool 'perf' and can be used for tracing data analysis. ETMv4 usually works as tracer per CPU, we cannot wait to gather ETM info after the CPU has been panic and cannot execute dump

Re: [PATCH] generic/381: enable on systems which allows usernames that begin with digits

2017-12-21 Thread Eryu Guan
On Fri, Dec 15, 2017 at 12:41:07PM -0800, Luis R. Rodriguez wrote: > Some systems are not allowing usernames prefixed with a number now, this > test however relies on the assumption that you can end up with usernames > of such type, given the purpose of the test is to ensure that xfs_quota > can di

Re: [PATCH v3 1/3] ARM: dts: imx6sx-sdb: Convert from fbdev to drm bindings

2017-12-21 Thread Shawn Guo
On Wed, Dec 06, 2017 at 01:15:17PM -0200, Marco Franchi wrote: > It is preferred to use the panel compatible string rather than passing > the LCD timing in the device tree. > > So pass the "sii,43wvf1g" compatible string, which describes the parallel > LCD. > > Also pass the 'backlight' property

Re: [PATCH v2 3/5] mm: enlarge NUMA counters threshold size

2017-12-21 Thread kemi
On 2017年12月21日 16:17, Michal Hocko wrote: > On Thu 21-12-17 16:06:50, kemi wrote: >> >> >> On 2017年12月20日 18:12, Michal Hocko wrote: >>> On Wed 20-12-17 13:52:14, kemi wrote: On 2017年12月19日 20:40, Michal Hocko wrote: > On Tue 19-12-17 14:39:24, Kemi Wang wrote: >> We have s

Re: proc_flush_task oops

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

Re: [PATCH 4.4 009/115] Bluetooth: btusb: driver to enable the usb-wakeup feature

2017-12-21 Thread gre...@linuxfoundation.org
On Wed, Dec 20, 2017 at 11:51:15AM -0800, Brian Norris wrote: > Hi Greg, > > On Mon, Dec 18, 2017 at 04:47:58PM +0100, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > I'm sorry, but I already objected to this one during the discussion

Re: [PATCH v3 1/9] ARM: dts: imx7-colibri: move and rename USB Host power regulator

2017-12-21 Thread Shawn Guo
On Tue, Dec 19, 2017 at 07:10:30PM +0100, Stefan Agner wrote: > The Colibri default which enables USB Host power is not necessarily > tied to the OTG2 controller, some carrier board use the pin to > control USB power for both controllers. Hence name the pinctrl > group more generic. > > Also move

Re: [PATCH v3] checkpatch: Fix checks for Kconfig help text

2017-12-21 Thread Leo Yan
On Sat, Nov 18, 2017 at 04:48:01PM +0800, Leo Yan wrote: > If one patch has Kconfig section, the check script variable '$is_start' > will be set by first 'config' line and the variable '$is_end' is to be > set by the second 'config' line. But patches often has only one > 'config' line so we have no

Re: [PATCH] checkpatch: Make '$min_conf_desc_length' default value to 1

2017-12-21 Thread Leo Yan
On Sat, Nov 18, 2017 at 04:48:42PM +0800, Leo Yan wrote: > Make '$min_conf_desc_length' default value from 4 to 1; so can give more > relax check for Kconfig description has at least one line rather than > four lines. > > User can still pass parameter "--min-conf-desc-length=X" to set more > stric

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

2017-12-21 Thread Daniel Vetter
On Wed, Dec 20, 2017 at 10:54:24PM -0800, Keith Packard wrote: > 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 ap

Re: [PATCH] crypto: pcrypt - fix freeing pcrypt instances

2017-12-21 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 11:28 PM, Eric Biggers wrote: > From: Eric Biggers > > pcrypt is using the old way of freeing instances, where the ->free() > method specified in the 'struct crypto_template' is passed a pointer to > the 'struct crypto_instance'. But the crypto_instance is being > kfree()

[RFC] does ioremap() cause memory leak?

2017-12-21 Thread Xishi Qiu
When we use iounmap() to free the mapping, it calls unmap_vmap_area() to clear page table, but do not free the memory of page table, right? So when use ioremap() to mapping another area(incluce the area before), it may use large mapping(e.g. ioremap_pmd_enabled()), so the original page table me

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

2017-12-21 Thread Michael Kerrisk (man-pages)
Hi Michal, On 21 December 2017 at 09:02, Michal Hocko wrote: > On Wed 20-12-17 17:17:46, Michael Kerrisk wrote: >> Hello Michal, >> >> On 20 December 2017 at 10:20, Michal Hocko wrote: >> > On Tue 19-12-17 17:45:40, Michael Kerrisk wrote: >> >> But, is >> >> there a pressing reason to make the c

Re: [PATCH 01/12] mmc: sdhci-omap: Update 'power_mode' outside sdhci_omap_init_74_clocks

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > Updating 'power_mode' in sdhci_omap_init_74_clocks results in > 'power_mode' never updated to MMC_POWER_OFF during card > removal. This results in initialization sequence not sent to the > card during re-insertion. > Fix it here by adding sdhci_oma

Re: [PATCH v2 3/5] mm: enlarge NUMA counters threshold size

2017-12-21 Thread Michal Hocko
On Thu 21-12-17 16:23:23, kemi wrote: > > > On 2017年12月21日 16:17, Michal Hocko wrote: [...] > > Can you see any difference with a more generic workload? > > > > I didn't see obvious improvement for will-it-scale.page_fault1 > Two reasons for that: > 1) too long code path > 2) server zone lock a

Re: [PATCH 02/12] mmc: sdhci-omap: Add card_busy host ops

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > card_busy ops is used by mmc core in > 1) mmc_set_uhs_voltage to verify voltage switch > 2) __mmc_start_request/mmc_poll_for_busy to check the card busy status > > While only DAT0 can be used to check the card busy status (in '2' above), > CMD

Re: [PATCH 03/12] mmc: sdhci-omap: Add custom set_uhs_signaling sdhci_host ops

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > UHS-1 DDR50 and MMC DDR52 mode require DDR bit to be > set in the configuration register (MMCHS_CON). Add > sdhci-omap specific set_uhs_signaling ops to set > this bit. Also while setting the UHSMS bit, clock should be > disabled. > > Signed-off-b

Re: [PATCH v4 2/2] ARM: dts: TS-7970: add basic device tree

2017-12-21 Thread Shawn Guo
On Thu, Dec 07, 2017 at 11:05:50AM -0500, Sebastien Bourdelin wrote: > These device trees add support for TS-7970 by Technologic Systems. > > More details here: >https://wiki.embeddedarm.com/wiki/TS-7970 > > Signed-off-by: Sebastien Bourdelin Applied both, thanks.

Re: [PATCH] devicetree: Add video bus switch

2017-12-21 Thread Sakari Ailus
On Wed, Dec 20, 2017 at 07:54:12PM +0200, Laurent Pinchart wrote: > Hi Pavel, > > On Saturday, 4 February 2017 23:56:10 EET Pavel Machek wrote: > > Hi! > > > > +Required properties > > +=== > > + > > +compatible: must contain "video-bus-switch" > > >>> > >

Re: [PATCH v9 1/2] of: documentation: add bindings documentation for TS-4600

2017-12-21 Thread Shawn Guo
On Thu, Dec 07, 2017 at 12:11:17PM -0500, Sebastien Bourdelin wrote: > This adds the documentation for the TS-4600 by Technologic Systems. > > Signed-off-by: Sebastien Bourdelin > Acked-by: Rob Herring Applied both, thanks.

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

2017-12-21 Thread Paolo Bonzini
On 21/12/2017 03:45, Lan Tianyu wrote: > Hi Paolo: > Should we check input sregs before loading vcpu? If input sregs is > invalid, the operation is redundant. That would be another way to fix the conflict. Note that the conflict is between two different trees (kvm/master and kvm/next), so i

Re: [PATCH 04/12] mmc: sdhci-omap: Add tuning support

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > MMC tuning procedure is required to support SD card > UHS1-SDR104 mode and EMMC HS200 mode. > > SDR104/HS200 DLL Tuning Procedure for AM572x platform is mentioned > in Figure 25-51. SDR104/HS200 DLL Tuning Procedure of > AM572x Sitara Processors S

Re: [PATCH 05/12] mmc: sdhci-omap: Workaround for Errata i802

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > Errata i802 in AM572x Sitara Processors Silicon Revision 2.0, 1.1 > (SPRZ429K July 2014–Revised March 2017 [1]) mentions > DCRC error interrupts (MMCHS_STAT[21] DCRC=0x1) can occur > during the tuning procedure and it has to be disabled during the

Re: [PATCH 07/12] mmc: sdhci_omap: Fix sdhci-omap quirks

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > Remove SDHCI_QUIRK_BROKEN_CARD_DETECTION quirk as gpio card detection > is supported in sdhci-omap. SDHCI_QUIRK_BROKEN_CARD_DETECTION is for native card detection not gpio card detection. > > Add SDHCI_QUIRK2_PRESET_VALUE_BROKEN quirk as setting

Re: [PATCH 08/12] mmc: sdhci-omap: Add support to override f_max and iodelay from pdata

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > DRA74x EVM Rev H EVM comes with revision 2.0 silicon. However, earlier > versions of EVM can come with either revision 1.1 or revision 1.0 of > silicon. > > The device-tree file is written to support rev 2.0 of silicon. > pdata-quirks are used to

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

2017-12-21 Thread Viresh Kumar
On 20-12-17, 16:43, Peter Zijlstra wrote: > The below makes more sense to me too; hmm? > > @@ -335,12 +335,11 @@ static unsigned int sugov_next_freq_shar > > j_max = j_sg_cpu->max; > j_util = sugov_aggregate_util(j_sg_cpu); > + sugov_iowait_boost(j_sg_cpu,

Re: [PATCH 11/12] mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC

2017-12-21 Thread Adrian Hunter
On 14/12/17 15:09, Kishon Vijay Abraham I wrote: > Add support for the new compatible added specifically to support > k2g's MMC/SD controller. > > Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-omap.c | 9 + > 1 file changed, 9 insertions(

Re: [PATCH] KVM: arm/arm64: don't set vtimer->cnt_ctl in kvm_arch_timer_handler

2017-12-21 Thread Jia He
Hi Christoffer Sorry for the late, I ever thought you would send out v2 with isb(). It seems not. On 12/15/2017 6:04 PM, Christoffer Dall Wrote: On Fri, Dec 15, 2017 at 10:27:02AM +0800, Jia He wrote: [...] [...] Meanwhile, I think I thought of a cleaner way to do this. Could you test t

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

2017-12-21 Thread Jiada Wang
Hi Morimoto-san On 12/20/2017 11:39 PM, Kuninori Morimoto wrote: 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/

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

2017-12-21 Thread Linus Walleij
On Wed, Dec 20, 2017 at 10:19 AM, Alexandre Torgue wrote: > On 12/20/2017 08:44 AM, Linus Walleij wrote: >> gpio-line-names = "foo", "bar" ...; >> >> See for example >> arch/arm/boot/dts/bcm2835-rpi-a.dts >> arch/arm/boot/dts/ste-snowball.dts (...) > > It looks like useful for pins used as gpio l

Re: [PATCH v2 2/2] sched/fair: Update blocked load from newly idle balance

2017-12-21 Thread Dietmar Eggemann
On 12/20/2017 03:22 PM, Peter Zijlstra wrote: On Fri, Dec 01, 2017 at 06:01:57PM +, Brendan Jackman wrote: @@ -7913,6 +7928,29 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd if (child && child->flags & SD_PREFER_SIBLING) prefer_si

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

2017-12-21 Thread Ard Biesheuvel
On 21 December 2017 at 07:50, Jinbum Park wrote: > 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-kerne

[PATCH v4 0/5] flow_dissector: Provide basic batman-adv unicast handling

2017-12-21 Thread Sven Eckelmann
Hi, we are currently starting to use batman-adv as mesh protocol on multicore embedded devices. These usually don't have a lot of CPU power per core but are reasonable fast when using multiple cores. It was noticed that sending was working very well but receiving was basically only using on CPU c

Re: [PATCH 1/2] pinctrl/nomadik/abx500: Delete an error message for a failed memory allocation in abx500_gpio_probe()

2017-12-21 Thread Linus Walleij
On Wed, Dec 20, 2017 at 10:51 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 20 Dec 2017 10:12:56 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

[PATCH v4 3/5] batman-adv: Remove kernel fixed width types in packet.h

2017-12-21 Thread Sven Eckelmann
The uapi headers use the __u8/__u16/... version of the fixed width types instead of u8/u16/... The use of the latter must be avoided before packet.h is copied to include/uapi/linux/. Signed-off-by: Sven Eckelmann --- net/batman-adv/packet.h | 214

[PATCH v4 5/5] flow_dissector: Parse batman-adv unicast headers

2017-12-21 Thread Sven Eckelmann
The batman-adv unicast packets contain a full layer 2 frame in encapsulated form. The flow dissector must therefore be able to parse the batman-adv unicast header to reach the layer 2+3 information. ++ | ip(v6)hdr | ++ | inner ethhdr |

Re: [PATCH] net: phy: micrel: ksz9031: reconfigure autoneg after phy autoneg workaround

2017-12-21 Thread Andrew Lunn
On Wed, Dec 20, 2017 at 06:45:10PM -0600, Grygorii Strashko wrote: > Under some circumstances driver will perform PHY reset in > ksz9031_read_status() to fix autoneg failure case (idle error count = > 0xFF). When this happens ksz9031 will not detect link status change any > more when connecting to

Re: [PATCH 2/2] pinctrl/nomadik/abx500: Improve a size determination in abx500_gpio_probe()

2017-12-21 Thread Linus Walleij
On Wed, Dec 20, 2017 at 10:52 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 20 Dec 2017 10:22:53 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit s

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

2017-12-21 Thread Simon Horman
On Thu, Dec 21, 2017 at 07:01:00AM +1100, Stephen Rothwell wrote: > Hi Simon, > > Commit > > 26c31cc8c397 ("arm64: dts: renesas: r8a7795: add usb3_phy node") > > is missing a Signed-off-by from its committer. Sorry about that, will fix.

Re: [PATCH 1/2] pinctrl: adi2: Delete an error message for a failed memory allocation in two functions

2017-12-21 Thread Linus Walleij
On Wed, Dec 20, 2017 at 1:01 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 20 Dec 2017 12:32:10 +0100 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

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

2017-12-21 Thread Ard Biesheuvel
(add Dave) On 21 December 2017 at 09:18, Ard Biesheuvel wrote: > On 21 December 2017 at 07:50, Jinbum Park wrote: >> 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

[PATCH v4 2/5] batman-adv: Remove usage of BIT(x) in packet.h

2017-12-21 Thread Sven Eckelmann
The BIT(x) macro is no longer available for uapi headers because it is defined outside of it (linux/bitops.h). The use of it must therefore be avoided and replaced by an appropriate other representation. Signed-off-by: Sven Eckelmann --- net/batman-adv/packet.h | 23 +++ 1 fi

Re: TPM driver breaks S3 suspend

2017-12-21 Thread Paul Menzel
Dear Chris, Thank you for bringin gup the issue. We have a desktop which has S3 suspend (to RAM) problem due to error messages as follows. [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend [ 198.908289] __pnp_bus_suspend(): tpm_pm_suspend+0x0/0x160 returns 38 [ 198.90

Re: [PATCH 2/2] pinctrl: adi2: Improve a size determination in two functions

2017-12-21 Thread Linus Walleij
On Wed, Dec 20, 2017 at 1:02 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 20 Dec 2017 12:38:53 +0100 > > Replace the specification of data structures by variable references > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer

[PATCH v4 1/5] batman-adv: Let packet.h include its headers directly

2017-12-21 Thread Sven Eckelmann
The headers used by packet.h should also be included by it directly. main.h is currently dealing with it in batman-adv, but this will no longer work when this header is moved to include/uapi/linux/. Signed-off-by: Sven Eckelmann --- net/batman-adv/main.h | 2 -- net/batman-adv/packet.h | 2 ++

Re: [PATCH v6 00/18] dwc MSI fixes, ARTPEC-6 EP mode support, ARTPEC-7 SoC support

2017-12-21 Thread Joao Pinto
Hi Niklas, Às 11:22 PM de 12/20/2017, Niklas Cassel escreveu: > On Wed, Dec 20, 2017 at 07:47:41PM +, Joao Pinto wrote: >> >> Hello to all, >> >> Às 5:34 PM de 12/20/2017, Lorenzo Pieralisi escreveu: >>> On Wed, Dec 20, 2017 at 12:29:21AM +0100, Niklas Cassel wrote: This is a series that

[PATCH v4 4/5] batman-adv: Convert packet.h to uapi header

2017-12-21 Thread Sven Eckelmann
The header file is used by different userspace programs to inject packets or to decode sniffed packets. It should therefore be available to them as userspace header. Also other components in the kernel (like the flow dissector) require access to the packet definitions to be able to decode ETH_P_BA

Re: [PATCH v5 05/15] devicetree: bindings: Document qcom,hfpll

2017-12-21 Thread Sricharan R
Hi Rob, On 12/21/2017 2:41 AM, Rob Herring wrote: > On Tue, Dec 19, 2017 at 09:24:50PM +0530, Sricharan R wrote: >> From: Stephen Boyd >> >> Adds bindings document for qcom,hfpll instantiated within >> the Krait processor subsystem as separate register region. >> >> Signed-off-by: Stephen Boyd >

Re: [PATCH v5 10/15] devicetree: bindings: Document qcom,kpss-gcc

2017-12-21 Thread Sricharan R
On 12/21/2017 2:43 AM, Rob Herring wrote: > On Tue, Dec 19, 2017 at 09:24:55PM +0530, Sricharan R wrote: >> From: Stephen Boyd >> >> The ACC and GCC regions present in KPSSv1 contain registers to >> control clocks and power to each Krait CPU and L2. Documenting >> the bindings here. >> >> Signed

Re: [PATCH v5 12/15] devicetree: bindings: Document qcom,krait-cc

2017-12-21 Thread Sricharan R
On 12/21/2017 2:44 AM, Rob Herring wrote: > On Tue, Dec 19, 2017 at 09:24:57PM +0530, Sricharan R wrote: >> From: Stephen Boyd >> >> The Krait clock controller controls the krait CPU and the L2 clocks >> consisting a primary mux and secondary mux. Add document for that. >> >> Signed-off-by: Step

Re: [PATCH v17 0/5] ZII RAVE platform driver

2017-12-21 Thread Pavel Machek
> 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. query

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

2017-12-21 Thread Paul Menzel
Dear Pavel, On 12/10/17 09:39, Pavel Machek wrote: In v4.15-rc2+, network manager can not see my ethernet card, and manual attempts to ifconfig it up did not really help, either. Card is: 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller Dmesg says: dmes

Re: [PATCH 03/15] staging: lustre: replace simple cases of LIBCFS_ALLOC with kzalloc.

2017-12-21 Thread kbuild test robot
Hi NeilBrown, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20171221] [cannot apply to v4.15-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system

[PATCH] staging: lustre: fix ifnullfree.cocci warnings

2017-12-21 Thread kbuild test robot
From: Fengguang Wu drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:886:2-7: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. NULL check

Re: TPM driver breaks S3 suspend

2017-12-21 Thread Chris Chiu
On Thu, Dec 21, 2017 at 5:22 PM, Paul Menzel wrote: > Dear Chris, > > > Thank you for bringin gup the issue. > >> We have a desktop which has S3 suspend (to RAM) problem due to >> error messages as follows. >> [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend >> [ 198.9082

Re: [RFC PATCH v2 00/13] Kernel based bootsplash

2017-12-21 Thread Daniel Vetter
On Wed, Dec 13, 2017 at 08:47:42PM +0100, Max Staudt wrote: > Dear fbdev and fbcon developers, > > Thank you very much for your input for the first patch series. > > I've included your feedback into this second roll, and kindly ask for > your opinion on the new patch series. > > > Changes from

Re: [PATCH V1 3/4] usb: serial: f81534: add output pin control

2017-12-21 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, Johan Hovold 於 2017/12/19 上午 12:06 寫道: On Thu, Nov 16, 2017 at 03:46:08PM +0800, Ji-Ze Hong (Peter Hong) wrote: +static int f81534_set_port_output_pin(struct usb_serial_port *port) +{ + struct f81534_serial_private *serial_priv; + struct f81534_port_private *port_priv; +

Re: [PATCH AUTOSEL for 3.18 40/40] tcp: fix under-evaluated ssthresh in TCP Vegas

2017-12-21 Thread Greg KH
On Wed, Dec 13, 2017 at 01:59:21AM +, alexander.le...@verizon.com wrote: > From: Hoang Tran > > [ Upstream commit cf5d74b85ef40c202c76d90959db4d850f301b95 ] > > With the commit 76174004a0f19785 (tcp: do not slow start when cwnd equals > ssthresh), the comparison to the reduced cwnd in tcp_ve

Re: [PATCH 1/2] mm/memcg: try harder to decrease [memory,memsw].limit_in_bytes

2017-12-21 Thread Andrey Ryabinin
On 12/20/2017 09:15 PM, Shakeel Butt wrote: > On Wed, Dec 20, 2017 at 3:34 AM, Michal Hocko wrote: >> On Wed 20-12-17 14:32:19, Andrey Ryabinin wrote: >>> On 12/20/2017 01:33 PM, Michal Hocko wrote: On Wed 20-12-17 13:24:28, Andrey Ryabinin wrote: > mem_cgroup_resize_[memsw]_limit() tri

Re: [PATCH 1/2] thermal: mtk: Cleanup unused defines

2017-12-21 Thread Matthias Brugger
On 12/01/2017 11:43 AM, Matthias Brugger wrote: > The mtk_thermal has some defiens which are never used within the driver. > This patch delets them. > > Signed-off-by: Matthias Brugger > --- Rui, Eduardo, do you have any comments on this patch? Regards, Matthias > drivers/thermal/mtk_therma

Re: [PATCH v2 1/2] sched: force update of blocked load of idle cpus

2017-12-21 Thread Vincent Guittot
On 20 December 2017 at 15:27, Vincent Guittot wrote: > On 20 December 2017 at 15:09, Peter Zijlstra wrote: >> On Fri, Dec 01, 2017 at 06:01:56PM +, Brendan Jackman wrote: >> >>> @@ -9210,7 +9256,15 @@ static void nohz_idle_balance(struct rq *this_rq, >>> enum cpu_idle_type idle) >>>

Re: [PATCH v6 00/18] dwc MSI fixes, ARTPEC-6 EP mode support, ARTPEC-7 SoC support

2017-12-21 Thread Lorenzo Pieralisi
On Wed, Dec 20, 2017 at 12:29:21AM +0100, Niklas Cassel wrote: > This is a series that adds: > - PCI endpoint mode support in the ARTPEC-6 driver. > - ARTPEC-7 SoC support in the ARTPEC-6 driver (the SoCs are very similar). > - Small fixes for MSI in designware-ep and designware-host, > needed to

RE: [PATCH v10 1/3] lib: Add strongly typed 64bit int_sqrt

2017-12-21 Thread David Laight
From: Joe Perches > Sent: 20 December 2017 17:20 ... > > I think this version works. > > It doesn't have the optimisation for small values. > > > > unsigned int sqrt64(unsigned long long x) > > { > > unsigned int x_hi = x >> 32; > > > > unsigned int b = 0; > > unsigned int y

RE: [PATCH v10 1/3] lib: Add strongly typed 64bit int_sqrt

2017-12-21 Thread David Laight
From: Crt Mori > Sent: 20 December 2017 17:30 > To: David Laight ... > > I think this version works. > > It doesn't have the optimisation for small values. > > > > unsigned int sqrt64(unsigned long long x) > > { > > unsigned int x_hi = x >> 32; > > > > unsigned int b = 0; > >

Re: [PATCH v3 3/4] regulator: core: Parse coupled regulators properties

2017-12-21 Thread Maciej Purski
On 12/12/2017 12:35 PM, Mark Brown wrote: On Thu, Dec 07, 2017 at 10:46:14AM +0100, Maciej Purski wrote: (...) + mutex_lock(®ulator_list_mutex); + regulator_resolve_coupling(rdev); + mutex_unlock(®ulator_list_mutex); + I'd really expect us to be failing to probe if we run i

[LINUX PATCH 0/4] dmaengine: xilinx_dma: Bug fixes

2017-12-21 Thread Kedareswara rao Appana
This patch series does the below --> Fixes sparse warnings in the driver. --> Fixes race conditions in the driver for cdma. --> Fixes issues with the dma_get_slave_caps() API failures. This patch series got created on top of below commit in the slave-dma.git topic/xilinx branch. "dmaengine: xilin

[LINUX PATCH 1/4] dmaengine: xilinx_dma: Fix dma_get_slave_caps() API failures

2017-12-21 Thread Kedareswara rao Appana
When client driver uses dma_get_slave_caps() api, it checks for certain fields of dma_device struct currently driver is not settings few fields resulting dma_get_slave_caps() returning failure. This patch fixes this issue by populating proper values to the struct dma_device fields. Signed-off-by:

Re: pinctrl-amd: What hardware does it apply to?

2017-12-21 Thread Linus Walleij
Hi Andrew! Thank you for your mail! On Wed, Dec 20, 2017 at 11:25 PM, Andrew Cooks wrote: > I'm working on gpio for an AMD Family 16h Model 30h system[1]. > The SoC is the same as the GX412-TC used in the PC Engines APU2. OK > There is an out-of-tree gpio driver (gpio-amd) for this SoC in the

[LINUX PATCH 3/4] dmaengine: xilinx_dma: Fix compilation warning

2017-12-21 Thread Kedareswara rao Appana
This patch fixes the below sparse warning in the driver drivers/dma/xilinx/xilinx_dma.c: In function ‘xilinx_vdma_dma_prep_interleaved’: drivers/dma/xilinx/xilinx_dma.c:1614:43: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable] struct xilinx_vdma_tx_segment *segment, *prev =

[LINUX PATCH 2/4] dmaengine: xilinx_dma: Fix race condition in the driver for cdma

2017-12-21 Thread Kedareswara rao Appana
when hardware is idle we need to toggle the SG bit in the control register, inorder to update new value to the current descriptor register other wise undefined results will occur. This patch updates the same. Signed-off-by: Kedareswara rao Appana --- drivers/dma/xilinx/xilinx_dma.c | 10 +++

[LINUX PATCH 4/4] dmaengine: xilinx_dma: Free BD consistent memory

2017-12-21 Thread Kedareswara rao Appana
Free BD consistent memory while freeing the channel i.e in free_chan_resources. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Kedareswara rao Appana --- drivers/dma/xilinx/xilinx_dma.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xil

RE: TPM driver breaks S3 suspend

2017-12-21 Thread Alexander.Steffen
> Hi, > We have a desktop which has S3 suspend (to RAM) problem due to > error messages as follows. > [ 198.908282] tpm tpm0: Error (38) sending savestate before suspend > [ 198.908289] __pnp_bus_suspend(): tpm_pm_suspend+0x0/0x160 returns > 38 > [ 198.908293] dpm_run_callback(): pnp_bus_sus

Re: BUG: workqueue lockup (2)

2017-12-21 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 11:55 AM, Tetsuo Handa wrote: > Dmitry Vyukov wrote: >> On Tue, Dec 19, 2017 at 3:27 PM, Tetsuo Handa >> wrote: >> > syzbot wrote: >> >> >> >> syzkaller has found reproducer for the following crash on >> >> f3b5ad89de16f5d42e8ad36fbdf85f705c1ae051 >> > >> > "BUG: workqueue

Re: [PATCH] [RFT] crypto: aes-generic - turn off -ftree-pre and -ftree-sra

2017-12-21 Thread Arnd Bergmann
On Wed, Dec 20, 2017 at 10:46 PM, Jakub Jelinek wrote: > On Wed, Dec 20, 2017 at 09:52:05PM +0100, Arnd Bergmann wrote: >> diff --git a/crypto/aes_generic.c b/crypto/aes_generic.c >> index ca554d57d01e..35f973ba9878 100644 >> --- a/crypto/aes_generic.c >> +++ b/crypto/aes_generic.c >> @@ -1331,6 +

Re: BUG: workqueue lockup (2)

2017-12-21 Thread Dmitry Vyukov
On Wed, Dec 20, 2017 at 11:55 AM, Tetsuo Handa wrote: > Dmitry Vyukov wrote: >> On Tue, Dec 19, 2017 at 3:27 PM, Tetsuo Handa >> wrote: >> > syzbot wrote: >> >> >> >> syzkaller has found reproducer for the following crash on >> >> f3b5ad89de16f5d42e8ad36fbdf85f705c1ae051 >> > >> > "BUG: workqueue

[RFC PATCH 3/5] sched: Restructure nohz_balance_kick

2017-12-21 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/fair.c | 218 ++-- 1 file changed, 111 insertions(+), 107 deletions(-) --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8984,12 +8984,29 @@ static inline int find_new_ilb(void)

[RFC PATCH 4/5] sched: Add nohz stats balancing

2017-12-21 Thread Peter Zijlstra
Suggested-by: Vincent Guittot Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/fair.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8972,6 +8972,7 @@ static struct { cpumask_var_t

  1   2   3   4   5   6   7   8   9   10   >