Re: [PATCH] tee: tee_shm: Constify dma_buf_ops structures.

2017-07-04 Thread Jens Wiklander
On Sat, Jul 01, 2017 at 05:56:06PM +0530, Arvind Yadav wrote: > dma_buf_ops are not supposed to change at runtime. All functions > working with dma_buf_ops provided by work with > const dma_buf_ops. So mark the non-const structs as const. > > File size before: >text data bss

Re: [PATCH] tee: optee: add const to tee_driver_ops and tee_desc structures

2017-07-04 Thread Jens Wiklander
On Thu, Jun 29, 2017 at 03:05:04PM +0530, Bhumika Goyal wrote: > Add const to tee_desc structures as they are only passed as an argument > to the function tee_device_alloc. This argument is of type const, so > declare these structures as const too. > Add const to tee_driver_ops structures as they a

Re: [PATCH] ASoC: samsung: i2s: Supported high resolution rates

2017-07-04 Thread Andi Shyti
> > + if (IS_ENABLED(CONFIG_OF) && pdev->dev.of_node) > + i2s_dai_data = of_device_get_match_data(&pdev->dev); > + else > + i2s_dai_data = (struct samsung_i2s_dai_data *) > + platform_get_device_id(pdev)->driver_data; > + BTW, as we dis

[PATCH] nand: fix wrong default oob layout for small pages using soft ecc

2017-07-04 Thread Miquel Raynal
When using soft ecc, if no ooblayout is given, the core automatically uses one of the nand_ooblayout_{sp,lp}*() functions to determine the layout inside the out of band data. Until kernel version 4.6, struct nand_ecclayout was used for that purpose. During the migration from 4.6 to 4.7, an error s

Re: [QUESTION] perf annotate: how do we fix the 'total period' feature ?

2017-07-04 Thread Taeung Song
Hi Namhyung :) On 07/05/2017 03:07 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Jul 5, 2017 at 2:47 PM, Taeung Song wrote: Hi, Two problems of perf-annotate were mentioned in recent PATCH reviews by Milian and Namhyung. Currently perf-annotate has a '--show-total-period' option and a 't' key

Re: [lkp-robot] [ALSA] fcc88d91cd: WARNING:at_sound/hda/hdac_i915.c:#snd_hdac_i915_init[snd_hda_core]

2017-07-04 Thread Ye Xiaolong
On 07/03, Takashi Iwai wrote: >On Mon, 03 Jul 2017 04:41:02 +0200, >kernel test robot wrote: >> >> >> FYI, we noticed the following commit: >> >> commit: fcc88d91cd36d1343a0ccc09444b21f6b0dad2d8 ("ALSA: hda - Bind with >> i915 component before codec binding") >> https://git.kernel.org/cgit/linu

Re: [PATCH][RFC] x86: Fix the irq affinity in fixup_cpus

2017-07-04 Thread Thomas Gleixner
On Wed, 5 Jul 2017, Chen Yu wrote: > On Tue, Jul 04, 2017 at 10:50:33AM +0200, Thomas Gleixner wrote: > Here's the test result for affinity: > # uname -r > 4.12.0+ > # cat /proc/irq/32/smp_affinity > ,8000 > # echo 0 > /sys/devices/system/cpu/cpu31/online > # cat /proc/irq/32/smp_affin

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-04 Thread Quentin Schulz
Better with the link. On 05/07/2017 08:23, Quentin Schulz wrote: > Hi Adrian and Ludovic, > > On 20/06/2017 11:49, Ludovic Desroches wrote: >> On Tue, Jun 20, 2017 at 10:07:06AM +0200, Quentin Schulz wrote: >>> Hi Adrian, >>> >>> On 20/06/2017 09:39, Adrian Hunter wrote: On 16/06/17 10:29, Q

Re: [patches] Re: [PATCH 1/9] RISC-V: Init and Halt Code

2017-07-04 Thread Thomas Gleixner
On Tue, 4 Jul 2017, Karsten Merker wrote: > On Tue, Jul 04, 2017 at 10:37:37PM +0200, Thomas Gleixner wrote: > > > + timer_riscv_init(cpu_id, riscv_timebase, &rdtime, &next_event); > > > > This function is nowhere Neither can I find the header file. > > It is part of the RISC-V clock driver p

Re: [PATCH 4/5] mm/memcontrol: allow to uncharge page without using page->lru field

2017-07-04 Thread Michal Hocko
On Wed 05-07-17 13:18:18, Balbir Singh wrote: > On Tue, Jul 4, 2017 at 10:51 PM, Michal Hocko wrote: > > On Mon 03-07-17 17:14:14, Jérôme Glisse wrote: > >> HMM pages (private or public device pages) are ZONE_DEVICE page and > >> thus you can not use page->lru fields of those pages. This patch > >

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-04 Thread Michal Hocko
On Tue 04-07-17 16:31:52, Linus Torvalds wrote: > On Tue, Jul 4, 2017 at 4:01 PM, Ben Hutchings wrote: > > > > We have: > > > > bottom = 0xff803fff > > sp = 0xb178 > > > > The relevant mappings are: > > > > ff7fc000-ff7fd000 rwxp 00:00 0 > > fffdd000-e000 rw-p 00:00 0

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-04 Thread Christoffer Dall
On Wed, Jul 05, 2017 at 08:20:31AM +0200, Alexander Graf wrote: > The kvm_age_hva callback may be called all the way concurrently while > kvm_mmu_notifier_release() is running. > > The release function sets kvm->arch.pgd = NULL which the aging function > however implicitly relies on in stage2_get_

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-04 Thread Quentin Schulz
Hi Adrian and Ludovic, On 20/06/2017 11:49, Ludovic Desroches wrote: > On Tue, Jun 20, 2017 at 10:07:06AM +0200, Quentin Schulz wrote: >> Hi Adrian, >> >> On 20/06/2017 09:39, Adrian Hunter wrote: >>> On 16/06/17 10:29, Quentin Schulz wrote: This adds deepest (Backup+Self-Refresh) PM support

Re: [PATCH v3 05/16] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-07-04 Thread Daniel Vetter
On Tue, Jul 04, 2017 at 12:37:01PM +0200, Peter Rosin wrote: > This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get > completely obsolete. > > Signed-off-by: Peter Rosin > --- > drivers/gpu/drm/drm_fb_helper.c | 165 > +++- > 1 file change

[PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-04 Thread Alexander Graf
The kvm_age_hva callback may be called all the way concurrently while kvm_mmu_notifier_release() is running. The release function sets kvm->arch.pgd = NULL which the aging function however implicitly relies on in stage2_get_pud(). That means they can race and the aging function may dereference a N

Re: [PATCH v2 0/5] Add SoM1 support

2017-07-04 Thread Ludovic Desroches
On Mon, Jul 03, 2017 at 03:56:07PM +0300, Claudiu Beznea wrote: > Hi all, > > This series adds support for sama5d2 SoM1 devices. > > The at91-sama5d27_som1.dtsi add specific bindings for SoM1 board. > The at91-sama5d27_som1_ek.dts add specific bindings for SoM1 EK board. > > The sama5d27_som1_ek

Re: [PATCH] ASoC: samsung: i2s: Supported high resolution rates

2017-07-04 Thread Andi Shyti
Hi Jaechul, > This driver can support more frequencies over 96KHz. There are no reasons > to limit the frequency range below 96KHz. If codecs/amps or something else > can't support high resolution rates, the constraints would be set rates > properly because each drivers have its own limits. That'

Re: [Intel-gfx] [PATCH v3 00/16] improve the fb_setcmap helper

2017-07-04 Thread Daniel Vetter
On Tue, Jul 04, 2017 at 12:36:56PM +0200, Peter Rosin wrote: > Hi! > > While trying to get CLUT support for the atmel_hlcdc driver, and > specifically for the emulated fbdev interface, I received some > push-back that my feeble in-driver attempts should be solved > by the core. This is my attempt

Re: [QUESTION] perf annotate: how do we fix the 'total period' feature ?

2017-07-04 Thread Namhyung Kim
Hi Taeung, On Wed, Jul 5, 2017 at 2:47 PM, Taeung Song wrote: > Hi, > > Two problems of perf-annotate were mentioned in recent PATCH reviews > by Milian and Namhyung. > > Currently perf-annotate has a '--show-total-period' option > and a 't' key "Toggle total period view" on TUI browser. Hmm...

Re: [PATCH v3 01/16] drm/fb-helper: factor out pseudo-palette

2017-07-04 Thread Daniel Vetter
On Tue, Jul 04, 2017 at 12:40:16PM +0200, Peter Rosin wrote: > On 2017-07-04 12:36, Peter Rosin wrote: > > The pseudo-palette has nothing to do with the crtc, so move it > > out of the crtc loop and update the palette once, then break out > > early. > > > > Signed-off-by: Peter Rosin > > Should

Re: [PATCH v2 3/6] cpufreq: schedutil: ensure max frequency while running RT/DL tasks

2017-07-04 Thread Viresh Kumar
On 04-07-17, 18:34, Patrick Bellasi wrote: > diff --git a/kernel/sched/cpufreq_schedutil.c > b/kernel/sched/cpufreq_schedutil.c > index 004ae18..98704d8 100644 > --- a/kernel/sched/cpufreq_schedutil.c > +++ b/kernel/sched/cpufreq_schedutil.c > @@ -216,6 +216,7 @@ static void sugov_update_single(st

[PATCH] ASoC: samsung: i2s: Supported high resolution rates

2017-07-04 Thread Jaechul Lee
This driver can support more frequencies over 96KHz. There are no reasons to limit the frequency range below 96KHz. If codecs/amps or something else can't support high resolution rates, the constraints would be set rates properly because each drivers have its own limits. Signed-off-by: Jaechul Lee

Re: [PATCH 1/2] drivers: dma-coherent: Add support for default DMA coherent pool

2017-07-04 Thread kbuild test robot
Hi George, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12] [cannot apply to next-20170704] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/vitaly_kuzmichev

[PATCH] mfd: Fix potential NULL pointer dereference

2017-07-04 Thread Christophe JAILLET
if 'max8998_i2c_parse_dt_pdata() fails (when out of memory), a NULL pointer dereference will occur in the error handling code. Return directly instead. Fixes: ee999fb3f17f("mfd: max8998: Add support for Device Tree") Signed-off-by: Christophe JAILLET --- drivers/mfd/max8998.c | 6 ++ 1 file

[PATCH v3] ideapad-laptop: Add several models to no_hw_rfkill

2017-07-04 Thread yjx
From: Yang Jiaxun Some Lenovo ideapad models do not have hardware rfkill switches, but trying to read the rfkill switches through the ideapad-laptop module. It caused to always reported blocking breaking wifi. Fix it by adding those models to no_hw_rfkill_list. Signed-off-by: Yang Jiaxun ---

[PATCH] hwtracing: coresight: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: text data bss dec hex filename 2573 288 2963157 c55 cores

[QUESTION] perf annotate: how do we fix the 'total period' feature ?

2017-07-04 Thread Taeung Song
Hi, Two problems of perf-annotate were mentioned in recent PATCH reviews by Milian and Namhyung. Currently perf-annotate has a '--show-total-period' option and a 't' key "Toggle total period view" on TUI browser. However, they actually show the number of samples, not period(Raw number of event

[PATCH] ideapad-laptop: Add several models to no_hw_rfkill

2017-07-04 Thread Yang Jiaxun
From 8db74a4eef334f614bf727232e5b88f67f824862 Mon Sep 17 00:00:00 2001 From: Yang Jiaxun Date: Tue, 4 Jul 2017 11:28:41 +0800 Subject: [PATCH] ideapad-laptop: Add several models to no_hw_rfkill Some Lenovo ideapad models do not have hardware rfkill switches, but trying to read the rfkill switch

[PATCH v2] ideapad-laptop: Add several models to no_hw_rfkill

2017-07-04 Thread Yang Jiaxun
From daaa74f5b5f8ecfad4d452af787276f8c43f79b9 Mon Sep 17 00:00:00 2001 From: Yang Jiaxun Date: Tue, 4 Jul 2017 13:49:41 + Subject: [PATCH v2] ideapad-laptop: Add several models to no_hw_rfkill Some Lenovo ideapad models do not have hardware rfkill switches, but trying to read the rfkill swit

Re: [PATCH v3] [media] mtk-vcodec: Show mtk driver error without DEBUG definition

2017-07-04 Thread Hirokazu Honda
Fixing whitespace in the previous patch. On Wed, Jul 5, 2017 at 2:33 PM, Hirokazu Honda wrote: > A driver error message is shown without DEBUG definition > to find an error and debug easily. > > Signed-off-by: Hirokazu Honda > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 20 +

[PATCH] hwmon: adt7475: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 100557032 0 1708742bf drive

[PATCH v3] [media] mtk-vcodec: Show mtk driver error without DEBUG definition

2017-07-04 Thread Hirokazu Honda
A driver error message is shown without DEBUG definition to find an error and debug easily. Signed-off-by: Hirokazu Honda --- drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/media/platform/mtk-v

linux-next: Tree for Jul 5

2017-07-04 Thread Stephen Rothwell
Hi all, Please do not add any v4.14 material to you linux-next included branches until after v4.13-rc1 has been released. Changes since 20170704: Non-merge commits (relative to Linus' tree): 7599 6571 files changed, 77 insertions(+), 131931 dele

Re: [PATCH 4.9 000/172] 4.9.36-stable review

2017-07-04 Thread Greg Kroah-Hartman
On Tue, Jul 04, 2017 at 10:02:27PM +0530, Sumit Semwal wrote: > Hi Greg, > > On 3 July 2017 at 19:03, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.9.36 release. > > There are 172 patches in this series, all will be posted as a response > > to this one.

[PATCH] hwmon: adc128d818: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 23042936 052401478 drive

Re: [PATCH v9 2/3] PCI: Add tango PCIe host bridge support

2017-07-04 Thread Greg Kroah-Hartman
On Wed, Jul 05, 2017 at 01:59:55AM +0200, Mason wrote: > Do larger SoC vendors have HW devs working closely with > Linux devs, to avoid these design bloopers? Yes they generally do, as they have learned from their prior mistakes :) good luck! greg k-h

[PATCH v2] hwmon: nct7802: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 61619400 0 155613cc9 drive

[PATCH] hwmon: nct7802: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 6655 304 069591b2f drive

Re: [PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem

2017-07-04 Thread Srinivas Kandagatla
On 19/06/17 14:40, Leonard Crestez wrote: On imx6sx accessing the ocotp memory area directly is wrong because the ocotp clock needs to be enabled first. Fix this by reinterpreting the fsl,tempmon-data phandle as a reference to a nvmem_device and doing all the read through that. This looks lik

[GIT PULL] gcc-plugins updates for v4.13-rc1

2017-07-04 Thread Kees Cook
Hi, Please pull these gcc-plugins changes for v4.13-rc1. The big part is the randstruct plugin infrastructure. This is the first of two expected pull requests for randstruct since there are dependencies in other trees that would be easier to merge once those have landed. Notably, the IPC allocatio

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-07-04 Thread Sergey Senozhatsky
Hello, Petr, thanks for commenting/taking a look On (07/04/17 16:03), Petr Mladek wrote: > On Fri 2017-06-30 21:42:24, Sergey Senozhatsky wrote: > > Hello, > > > > On (06/30/17 13:54), Petr Mladek wrote: > > > > but. > > > > the opposite possibility is that messages either won't be printed >

[PATCH] hwmon: constify attribute_group structures.

2017-07-04 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 6655 304 069591b2f drive

Re: [PATCH v2 1/6] cpufreq: schedutil: ignore sugov kthreads

2017-07-04 Thread Viresh Kumar
On 04-07-17, 18:34, Patrick Bellasi wrote: > In system where multiple CPUs shares the same frequency domain a small > workload on a CPU can still be subject to frequency spikes, generated by > the activation of the sugov's kthread. > > Since the sugov kthread is a special RT task, which goal is ju

Re: [PATCH v2 2/6] cpufreq: schedutil: reset sg_cpus's flags at IDLE enter

2017-07-04 Thread Viresh Kumar
On 04-07-17, 18:34, Patrick Bellasi wrote: > diff --git a/include/linux/sched/cpufreq.h b/include/linux/sched/cpufreq.h > index d2be2cc..36ac8d2 100644 > --- a/include/linux/sched/cpufreq.h > +++ b/include/linux/sched/cpufreq.h > @@ -10,6 +10,7 @@ > #define SCHED_CPUFREQ_RT (1U << 0) > #defin

Re: [PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-07-04 Thread Anshuman Khandual
On 01/12/2017 02:39 PM, Rui Teng wrote: > The offset of hugepage block will not be 16G, if the expected > page is more than one. Calculate the totol size instead of the > hardcode value. > > Signed-off-by: Rui Teng I have a redundant patch, this one is the original. Tested-by: Anshuman Khandual

Re: [PATCH] powerpc/mm: Implemented default_hugepagesz verification for powerpc

2017-07-04 Thread Anshuman Khandual
On 07/04/2017 01:35 AM, Victor Aoqui wrote: > Implemented default hugepage size verification (default_hugepagesz=) > in order to allow allocation of defined number of pages (hugepages=) > only for supported hugepage sizes. > > Signed-off-by: Victor Aoqui > --- > arch/powerpc/mm/hugetlbpage.c | 1

[GIT PULL] pstore updates for v4.13-rc1

2017-07-04 Thread Kees Cook
Hi, Please pull these pstore changes for v4.13-rc1. Thanks! -Kees The following changes since commit 5ed02dbb497422bf225783f46e6eadd237d23d6b: Linux 4.12-rc3 (2017-05-28 17:20:53 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git

Re: [PATCH] powerpc/mm: Implemented default_hugepagesz verification for powerpc

2017-07-04 Thread Aneesh Kumar K.V
On Tuesday 04 July 2017 01:35 AM, Victor Aoqui wrote: Implemented default hugepage size verification (default_hugepagesz=) in order to allow allocation of defined number of pages (hugepages=) only for supported hugepage sizes. Signed-off-by: Victor Aoqui --- arch/powerpc/mm/hugetlbpage.c |

Re: [PATCH v2 3/3] dt-bindings: cpufreq: enhance MediaTek cpufreq dt-binding document

2017-07-04 Thread Viresh Kumar
On 05-07-17, 02:55, sean.w...@mediatek.com wrote: > From: Sean Wang > > Update binding document with adding operating-points-v2 as the required > property and the cooling level as the optional properties and adding more > examples guiding people how to use MediaTek cpufreq driver for MediaTek > S

Re: [PATCH v2 0/3] some fixups for MediaTek cpufreq driver

2017-07-04 Thread Viresh Kumar
On 05-07-17, 02:55, sean.w...@mediatek.com wrote: > From: Sean Wang > > Changes since v1: > - drop those patches already accepted > - refine the commit messages and Kconfig dependency > - Kconfig menu entry and file name itself are updated with more > generic name to drop "MT8173" since this driv

[PATCH] Revert "f2fs: fix to clean previous mount option when remount_fs"

2017-07-04 Thread Chao Yu
From: Chao Yu Don't clear old mount option before parse new option during ->remount_fs like other generic filesystems. This reverts commit 2c8a4366debae30ae37d0688b2bec92d196a. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/super.c b/

Re: [PATCH v5 3/6] dt-bindings: List devicetree binding for the CCU of Allwinner A20

2017-07-04 Thread Chen-Yu Tsai
On Wed, Jul 5, 2017 at 4:04 AM, Priit Laes wrote: > Allwinner A20 is now driven by sunxi-ng CCU driver. > > Add devicetree binding for it. > > Acked-by: Rob Herring > Signed-off-by: Priit Laes Reviewed-by: Chen-Yu Tsai

Re: [PATCH v5 4/6] dt-bindings: List devicetree binding for the CCU of Allwinner A10

2017-07-04 Thread Chen-Yu Tsai
On Wed, Jul 5, 2017 at 4:04 AM, Priit Laes wrote: > Allwinner A10 is now driven by sunxi-ng CCU driver. > > Add devicetree binding for it. > > Acked-by: Rob Herring > Signed-off-by: Priit Laes Reviewed-by: Chen-Yu Tsai

Re: [PATCH v5 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-07-04 Thread Chen-Yu Tsai
On Wed, Jul 5, 2017 at 4:04 AM, Priit Laes wrote: > SATA clock on sun4i/sun7i is of type (parent) / M / 6 where > 6 is fixed post-divider. > > Signed-off-by: Priit Laes Reviewed-by: Chen-Yu Tsai

Re: [PATCH 2/2] f2fs: reuse original mount option in ->remount_fs

2017-07-04 Thread Chao Yu
On 2017/7/1 15:48, Jaegeuk Kim wrote: > On 06/29, Chao Yu wrote: >> From: Chao Yu >> >> Don't clear old mount option before parse new option during ->remount_fs >> like other generic filesystems. > > So, what happened on your original patch? > > commit 2c8a4366debae30ae37d0688b2bec92d196a >

[PATCH] cpufreq: speedstep: remove unnecessary static in speedstep_detect_chipset()

2017-07-04 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable hostbridge. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the code size. This issue was detected using Coccinelle and the following semantic patch: @ba

Re: [PATCH] cpufreq: speedstep: remove unnecessary static in speedstep_detect_chipset()

2017-07-04 Thread Viresh Kumar
+ Dominic, On 04-07-17, 22:09, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variable hostbridge. > Such variable is initialized before being used, > on every execution path throughout the function. > The static has no benefit and, removing it reduces > the code size. > > This i

Re: [PATCH v4 2/2] PCI: iproc: add device shutdown for PCI RC

2017-07-04 Thread Ray Jui
Hi Oza, It looks like you missed my comments during the internal review. See my comments inline below. On 7/4/2017 8:08 PM, Oza Pawandeep wrote: PERST must be asserted around ~500ms before the reboot is applied. During soft reset (e.g., "reboot" from Linux) on some iproc based SOCs LCPLL cl

[PATCH v3] perf sort: only insert overhead && overhead_children when no overhead* field given

2017-07-04 Thread changbin . du
From: Changbin Du If we always insert 'overhead' and 'overhead_children' as sort keys, this make it impossible to sort as overhead (which displayed as Self) first.Ths will be a problem if the data is collected with call-graph enabled. Then we never can sort the result as self-overhead on this dat

[PATCH v2] btrfs: Correct assignment of pos

2017-07-04 Thread Goldwyn Rodrigues
From: Goldwyn Rodrigues Assigning pos for usage early messes up in append mode, where the pos is re-assigned in generic_write_checks(). Assign pos later to get the correct position to write from iocb->ki_pos. Since check_can_nocow also uses the value of pos, we shift generic_write_checks() befor

Re: [f2fs-dev] [PATCH 1/2] f2fs: avoid deadlock caused by lock order of page and lock_op

2017-07-04 Thread Jaegeuk Kim
On 07/05, Chao Yu wrote: > On 2017/7/1 22:27, Jaegeuk Kim wrote: > > On 07/01, Chao Yu wrote: > >> On 2017/7/1 15:28, Jaegeuk Kim wrote: > >>> On 06/26, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/6/26 22:54, Jaegeuk Kim wrote: > > Hi Chao, > > > > On 06/26, Chao Yu wrote: >

Re: [PATCH][RFC] x86: Fix the irq affinity in fixup_cpus

2017-07-04 Thread Chen Yu
On Tue, Jul 04, 2017 at 10:50:33AM +0200, Thomas Gleixner wrote: > On Mon, 3 Jul 2017, Chen Yu wrote: > > On Sun, Jun 04, 2017 at 10:04:53PM +0200, Thomas Gleixner wrote: > > > After looking at the callsites, it's safe to change > > > irq_set_affinity_locked() so that it uses the direct affinity se

Re: [PATCH 4/5] mm/memcontrol: allow to uncharge page without using page->lru field

2017-07-04 Thread Balbir Singh
On Tue, Jul 4, 2017 at 10:51 PM, Michal Hocko wrote: > On Mon 03-07-17 17:14:14, Jérôme Glisse wrote: >> HMM pages (private or public device pages) are ZONE_DEVICE page and >> thus you can not use page->lru fields of those pages. This patch >> re-arrange the uncharge to allow single page to be unc

Re: [PATCH] arm64: traps: disable irq in die()

2017-07-04 Thread qiaozhou
On 2017年07月05日 01:17, Will Deacon wrote: On Wed, Jun 28, 2017 at 05:04:12PM +0800, Qiao Zhou wrote: In current die(), the irq is disabled for __die() handle, not including the possible panic() handling. Since the log in __die() can take several hundreds ms, new irq might come and interrupt cur

RE: [PATCH] arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 node

2017-07-04 Thread Ran Wang
Hello Sir, How is the review result of this patch. I am waiting for it be merged, thanks. BR Ran -Original Message- From: Ran Wang [mailto:ran.wan...@nxp.com] Sent: Friday, June 02, 2017 10:30 AM To: Rob Herring ; Mark Rutland ; Catalin Marinas ; Will Deacon Cc: Shawn Guo ; Andy T

[PATCH] soc: versatile: remove unnecessary static in realview_soc_probe()

2017-07-04 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable syscon_regmap. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the code size. This issue was detected using Coccinelle and the following semantic patch:

[PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-04 Thread Ran Wang
LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/f

[PATCH v4 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-07-04 Thread Oza Pawandeep
For Configuration Requests only, following reset it is possible for a device to terminate the request but indicate that it is temporarily unable to process the Request, but will be able to process the Request in the future – in this case, the Configuration Request Retry Status 100 (CRS) Completion

[PATCH v4 2/2] PCI: iproc: add device shutdown for PCI RC

2017-07-04 Thread Oza Pawandeep
PERST must be asserted around ~500ms before the reboot is applied. During soft reset (e.g., "reboot" from Linux) on some iproc based SOCs LCPLL clock and PERST both goes off simultaneously. This will cause certain Endpoints Intel NVMe not get detected, upon next boot sequence. This is specificall

[PATCH v4 0/2] PCI: iproc: SOC specific fixes

2017-07-04 Thread Oza Pawandeep
PCI: iproc: Retry request when CRS returned from EP Above patch adds support for CRS in PCI RC driver, otherwise if not handled at lower level, the user space PMD (poll mode drivers) can timeout. PCI: iproc: add device shutdown for PCI RC This fixes the issue where certian PCI endpoints are not ge

Re: [PATCH v2] perf sort: only insert overhead && overhead_children when no overhead* field given

2017-07-04 Thread Du, Changbin
On Thu, Jun 29, 2017 at 05:22:52PM +0200, Jiri Olsa wrote: > > > --- a/tools/perf/util/sort.c > > > +++ b/tools/perf/util/sort.c > > > @@ -2635,6 +2635,9 @@ static char *setup_overhead(char *keys) > > > if (sort__mode == SORT_MODE__DIFF) > > > return keys; > > > > > > + if (strstr(key

Re: [f2fs-dev] [PATCH 1/2] f2fs: avoid deadlock caused by lock order of page and lock_op

2017-07-04 Thread Chao Yu
On 2017/7/1 22:27, Jaegeuk Kim wrote: > On 07/01, Chao Yu wrote: >> On 2017/7/1 15:28, Jaegeuk Kim wrote: >>> On 06/26, Chao Yu wrote: Hi Jaegeuk, On 2017/6/26 22:54, Jaegeuk Kim wrote: > Hi Chao, > > On 06/26, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/6/25

[PATCH V4 1/2] dt-bindings: timer: add nxp tpm timer binding doc

2017-07-04 Thread Dong Aisheng
Adding NXP Low Power Timer/Pulse Width Modulation Module (TPM) binding doc. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Shawn Guo Cc: Bai Ping Acked-by: Rob Herring Signed-off-by: Dong Aisheng --- ChangeLog: v1->v4: * No changes --- .../dev

[PATCH V4 2/2] timer: imx-tpm: add imx tpm timer support

2017-07-04 Thread Dong Aisheng
IMX Timer/PWM Module (TPM) supports both timer and pwm function while this patch only adds the timer support. PWM would be added later. The TPM counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. NOTE: We observed in a very small

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-04 Thread Florian Fainelli
On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: >Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop >bogus holding pen") simplified the S500 SMP code by removing a loop for >pen_release in owl_secondary_boot(). Since then it is only calling >owl_v7_invalidate_l1() before

[PATCH V4 0/2] timer: add imx tpm timer support

2017-07-04 Thread Dong Aisheng
The Timer/PWM Module (TPM) supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. The counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. TPM can suppo

[PATCH] scsi: mpt3sas: remove unnecessary statics

2017-07-04 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable raid_device in functions scsih_get_resync(), scsih_get_state(),_scsih_sas_ir_operation_status_event(), and _scsih_scan_for_devices_after_reset(). Such variables are initialized before being used, on every execution path throughout the mentioned functions.

Re: [PATCH v2 6/6] ima: Support module-style appended signatures for appraisal

2017-07-04 Thread Thiago Jung Bauermann
Mimi Zohar writes: > On Wed, 2017-06-21 at 14:45 -0300, Thiago Jung Bauermann wrote: >> Mimi Zohar writes: >> > On Wed, 2017-06-07 at 22:49 -0300, Thiago Jung Bauermann wrote: >> >> @@ -267,11 +276,18 @@ int ima_appraise_measurement(enum ima_hooks func, >> >> status = INTEGRITY_PASS;

[PATCH] NFS: only invalidate dentrys that are clearly invalid.

2017-07-04 Thread NeilBrown
Since commit bafc9b754f75 ("vfs: More precise tests in d_invalidate") in v3.18, a return of '0' from ->d_revalidate() will cause the dentry to be invalidated even if it has filesystems mounted on or it or on a descendant. The mounted filesystem is unmounted. This means we need to be careful not

Re: [PATCH] fs: Initialize tmp.b_page in generic_block_bmap()

2017-07-04 Thread Theodore Ts'o
On Mon, May 22, 2017 at 10:58:45AM -0700, Kees Cook wrote: > > any updates on this patch? > > Looks like it hasn't been landed yet. > > I think the following would be better (pardon any whitespace damage > via gmail...): > I've applied Kees suggested change to the ext4 git tree.

Re: [PATCH 2/4] swait: add the missing killable swaits

2017-07-04 Thread Davidlohr Bueso
On Thu, 29 Jun 2017, Davidlohr Bueso wrote: I'll actually take a look at wake_q for wake_up_all() and co. to see if we can reduce the spinlock hold times. Of course it would only make sense for more than a one wakeup. So here's something that boots and builds a kernel. Any thoughts? Thanks, D

[PATCH] Staging: android/ion: fix sparse warnings

2017-07-04 Thread Joseph Wright
ion_carveout_heap.c:115:17: warning: symbol 'ion_carveout_heap_create' \ was not declared. Should it be static? ion_chunk_heap.c:120:17: warning: symbol 'ion_chunk_heap_create' \ was not declared. Should it be static? ion_cma_heap.c:109:5: warning: symbol '__ion_add_cma_heaps' \

Re: [vs-plain] Re: [PATCH] mm: larger stack guard gap, between vmas

2017-07-04 Thread kseifr...@redhat.com
This issue occurs post stackguard patches correct? Fixing it sounds like this might go beyond hardening and into CVE territory. -- Kurt Seifried -- Red Hat -- Product Security -- Cloud PGP A90B F995 7350 148F 66BF 7554 160D 4553 5E26 7993 Red Hat Product Security contact: secal...@redhat.com

Re: [PATCH] fs: ext4: inode->i_generation not assigned 0.

2017-07-04 Thread J. Bruce Fields
On Mon, Jul 03, 2017 at 09:04:46PM -0700, Darrick J. Wong wrote: > On Thu, Jun 29, 2017 at 02:50:22PM -0400, J. Bruce Fields wrote: > > On Thu, Jun 29, 2017 at 02:30:53PM -0400, J. Bruce Fields wrote: > > > On Thu, Jun 29, 2017 at 10:25:28AM -0700, Darrick J. Wong wrote: > > > > Was there ever a ve

RE: [PATCH] MAINTAINERS:add maintainer for kirin pcie

2017-07-04 Thread songxiaowei
Thank you so much! -邮件原件- 发件人: Bjorn Helgaas [mailto:helg...@kernel.org] 发送时间: 2017年7月5日 0:26 收件人: songxiaowei 抄送: guodong...@linaro.org; bhelg...@google.com; Suzhuangluan; linux-...@vger.kernel.org; devicet...@vger.kernel.org; linux-kernel@vger.kernel.org 主题: Re: [PATCH] MAINTAINERS:ad

Donation For You

2017-07-04 Thread Peggy Altman
Hi, My name is Peggy Altman the personal assistant of Ms. Doris Buffett, She is a philanthropist and the founder of one of the largest private foundation in the world. She is on a mission to give it all away as she strongly believes in ‘giving while living.’ She always had the idea that never

Re: [PATCH v16 2/7] power: add power sequence library

2017-07-04 Thread Rafael J. Wysocki
On Wednesday, June 21, 2017 02:42:03 PM Peter Chen wrote: > We have an well-known problem that the device needs to do some power > sequence before it can be recognized by related host, the typical > example like hard-wired mmc devices and usb devices. > > This power sequence is hard to be describe

Re: [PATCH] btrfs: Correct assignment of pos

2017-07-04 Thread Marc Dionne
On Tue, Jul 4, 2017 at 9:02 PM, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > Assigning pos for usage early messes up in append mode, where > the pos is re-assigned in generic_write_checks(). Re-assign > pos to get the correct position to write from iocb->ki_pos. > > Fixes: edf064e7c6fe

Re: [PATCH v7 0/6] g_NCR5380: PDMA fixes and cleanup

2017-07-04 Thread Finn Thain
On Tue, 4 Jul 2017, Ondrej Zary wrote: > > Everything works fine! No corruption, no hangs, rescan-scsi-bus works. > > Tested cards: > Canon FG2-5202 (53C400 chip, MMIO) > DTC-3181L (DTCT-436P chip, PIO) > HP C2502 (53C400A chip, PIO) > > Tested devices: > QUANTUM LP240S GM240S01X 4.6 > IBM

[PATCH] btrfs: Correct assignment of pos

2017-07-04 Thread Goldwyn Rodrigues
From: Goldwyn Rodrigues Assigning pos for usage early messes up in append mode, where the pos is re-assigned in generic_write_checks(). Re-assign pos to get the correct position to write from iocb->ki_pos. Fixes: edf064e7c6fe ("btrfs: nowait aio support") Signed-off-by: Goldwyn Rodrigues Tested

Re: [PATCH v9 2/3] PCI: Add tango PCIe host bridge support

2017-07-04 Thread Mason
On 03/07/2017 20:11, Russell King - ARM Linux wrote: > I don't think there's an easy solution to this problem - and I'm not > sure that stop_machine() can be made to work in this path (which > needs a process context). I have a suspicion that the Sigma Designs > PCI implementation is just soo ins

[PATCH net-next 04/12] net: dsa: mv88e6xxx: remove unused capabilities

2017-07-04 Thread Vivien Didelot
Remove the forgotten capabilities and related flags from previous cleanups. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 29 +++-- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/drivers/net/dsa/mv8

[PATCH net-next 06/12] net: dsa: mv88e6xxx: add number of Global 2 IRQs

2017-07-04 Thread Vivien Didelot
Similarly to g1_irqs, add a g2_irqs member to the info structure to indicates the presence of the Global 2 Interrupt Source and Mask registers. At the same time, provide helpers and document the registers since they differ a bit between 88E6352 and 88E6390 families. This allows us to get rid of t

[PATCH net-next 12/12] net: dsa: mv88e6xxx: add a multi_chip info flag

2017-07-04 Thread Vivien Didelot
Instead of relying on a bitmap flag, add a new multi_chip info flag to describe the presence of the indirect SMI access though the two device registers 0x0 and 0x1. All remaining capabilities and flags are now unused. Remove the mv88e6xxx_cap enum and the info flags bitmaps. Signed-off-by: Vivien

[PATCH net-next 02/12] net: dsa: mv88e6xxx: remove LED control register

2017-07-04 Thread Vivien Didelot
We don't support LED control yet, remove its register definition. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/port.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/port.h b/drivers/net/dsa/mv88e6xxx/port.h index 8f3991bf1851..b16d5f0e6e9c 100644 -

Re: [PATCH] Make Common clock framework a menuconfig to ease disabling it all

2017-07-04 Thread kbuild test robot
Hi Vincent, [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.12 next-20170704] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Vincent-Legoll/Make-Common-clock-framework-a

[PATCH net-next 07/12] net: dsa: mv88e6xxx: distinguish Global 2 Rsvd2CPU

2017-07-04 Thread Vivien Didelot
The 88E6185 family only has one 16-bit register to mark the 16 802.1D reserved multicast addresses in the range of 01:80:C2:00:00:0x as MGMT. The 88E6352 family also has one 16-bit register to mark the 16 GARP reserved multicast addresses in the range of 01:80:C2:00:00:2x as MGMT. Split the exist

[PATCH net-next 10/12] net: dsa: mv88e6xxx: add a global2_addr info flag

2017-07-04 Thread Vivien Didelot
Similarly to global1_addr, add a global2_addr member in the info structure to describe the presence of the Global 2 Registers. This allows us to get rid of the MV88E6XXX_FLAG_GLOBAL2 flag. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c| 28 +++- d

[PATCH net-next 08/12] net: dsa: mv88e6xxx: add POT flag to 88E6390

2017-07-04 Thread Vivien Didelot
The 88E6390 family clear the Priority Override Table the same way as 88E6352, thus add MV88E6XXX_FLAG_G2_POT to MV88E6XXX_FLAGS_FAMILY_6390. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.h b/d

[PATCH net-next 09/12] net: dsa: mv88e6xxx: add POT operation

2017-07-04 Thread Vivien Didelot
Add a pot_clear operation to clear the Priority Override Table and wrap its call into a mv88e6xxx_pot_setup helper. This allows us to get rid of the MV88E6XXX_FLAG_G2_POT flag. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c| 34 ++ drivers

  1   2   3   4   5   6   7   >