Re: [PATCH v3 01/33] mtd: rawnand: brcmnand: convert driver to nand_scan()

2018-07-20 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Fri, 20 Jul 2018 01:17:19 +0200: > On Fri, 20 Jul 2018 00:59:54 +0200 > Miquel Raynal wrote: > > > + > > +static struct nand_controller_ops brcmnand_controller_ops = { > > static const ... Mmmh right, I'll constify every controller_ops definition. > > T

Re: [PATCH 4/5] mtd: rawnand: qcom: update BBT related flags

2018-07-20 Thread Abhishek Sahu
On 2018-07-19 03:12, Miquel Raynal wrote: Abhishek, Miquel Raynal wrote on Wed, 18 Jul 2018 23:41:44 +0200: Hi Boris, Boris Brezillon wrote on Wed, 18 Jul 2018 23:36:37 +0200: > On Wed, 18 Jul 2018 23:15:26 +0200 > Miquel Raynal wrote: > > > Hi Abhishek, > > > > Abhishek Sahu wrote on

[PATCH] pwm: stm32-lp: Remove useless loop in stm32_pwm_lp_remove()

2018-07-20 Thread Fabrice Gasnier
LPTimer has only one pwm channel (npwm = 1). Remove useless for loop in remove routine. Signed-off-by: Fabrice Gasnier --- drivers/pwm/pwm-stm32-lp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-stm32-lp.c b/drivers/pwm/pwm-stm32-lp.c index 7c13e25..0059

Re: [PATCH v3 28/33] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-20 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Fri, 20 Jul 2018 01:27:32 +0200: > On Fri, 20 Jul 2018 01:00:21 +0200 > Miquel Raynal wrote: > > > Two helpers have been added to the core to make ECC-related > > configuration between the detection phase and the final NAND scan. Use > > these hooks and conve

[PATCH v4 0/8] swap: THP optimizing refactoring

2018-07-20 Thread Huang Ying
This patchset is based on 2018-07-13 head of mmotm tree. Now the THP (Transparent Huge Page) swap optimizing is implemented in the way like below, #ifdef CONFIG_THP_SWAP huge_function(...) { } #else normal_function(...) { } #endif general_function(...) { if (huge) return

[PATCH v4 1/8] swap: Add comments to lock_cluster_or_swap_info()

2018-07-20 Thread Huang Ying
To improve the code readability. Signed-off-by: "Huang, Ying" Suggested-and-acked-by: Dave Hansen Reviewed-by: Daniel Jordan Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc: Dan Williams --- mm/swapfile.c | 9 +++-- 1 file cha

[PATCH v4 4/8] swap: Unify normal/huge code path in swap_page_trans_huge_swapped()

2018-07-20 Thread Huang Ying
As suggested by Dave, we should unify the code path for normal and huge swap support if possible to avoid duplicated code, bugs, etc. and make it easier to review code. In this patch, the normal/huge code path in swap_page_trans_huge_swapped() is unified, the added and removed lines are same. And

[PATCH v4 2/8] mm/swapfile.c: Replace some #ifdef with IS_ENABLED()

2018-07-20 Thread Huang Ying
In mm/swapfile.c, THP (Transparent Huge Page) swap specific code is enclosed by #ifdef CONFIG_THP_SWAP/#endif to avoid code dilating when THP isn't enabled. But #ifdef/#endif in .c file hurt the code readability, so Dave suggested to use IS_ENABLED(CONFIG_THP_SWAP) instead and let compiler to do t

Re: m68k allmodconfig build errors

2018-07-20 Thread Andreas Schwab
On Jul 19 2018, Randy Dunlap wrote: > block/partitions/ldm.o: In function `ldm_partition': > ldm.c:(.text+0x1900): undefined reference to `strcmp' > ldm.c:(.text+0x1964): undefined reference to `strcmp' > drivers/rtc/rtc-proc.o: In function `is_rtc_hctosys': > rtc-proc.c:(.text+0x290): undefined

[PATCH v4 8/8] swap, put_swap_page: Share more between huge/normal code path

2018-07-20 Thread Huang Ying
In this patch, locking related code is shared between huge/normal code path in put_swap_page() to reduce code duplication. And `free_entries == 0` case is merged into more general `free_entries != SWAPFILE_CLUSTER` case, because the new locking method makes it easy. The added lines is same as the

[PATCH v4 5/8] swap: Unify normal/huge code path in put_swap_page()

2018-07-20 Thread Huang Ying
In this patch, the normal/huge code path in put_swap_page() and several helper functions are unified to avoid duplicated code, bugs, etc. and make it easier to review the code. The removed lines are more than added lines. And the binary size is kept exactly same when CONFIG_TRANSPARENT_HUGEPAGE=n

[PATCH v4 7/8] swap: Add __swap_entry_free_locked()

2018-07-20 Thread Huang Ying
The part of __swap_entry_free() with lock held is separated into a new function __swap_entry_free_locked(). Because we want to reuse that piece of code in some other places. Just mechanical code refactoring, there is no any functional change in this function. Signed-off-by: "Huang, Ying" Review

[PATCH v4 6/8] swap, get_swap_pages: Use entry_size instead of cluster in parameter

2018-07-20 Thread Huang Ying
As suggested by Matthew Wilcox, it is better to use "int entry_size" instead of "bool cluster" as parameter to specify whether to operate for huge or normal swap entries. Because this improve the flexibility to support other swap entry size. And Dave Hansen thinks that this improves code readabil

[PATCH v4 3/8] swap: Use swap_count() in swap_page_trans_huge_swapped()

2018-07-20 Thread Huang Ying
In swap_page_trans_huge_swapped(), to identify whether there's any page table mapping for a 4k sized swap entry, "si->swap_map[i] != SWAP_HAS_CACHE" is used. This works correctly now, because all users of the function will only call it after checking SWAP_HAS_CACHE. But as pointed out by Daniel,

[RESEND PATCH] Revert "pwm: Set class for exported channels in sysfs"

2018-07-20 Thread Fabrice Gasnier
This reverts commit 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00 as it causes regression with multiple pwm chip. It creates a new entry in '/sys/class/pwm' every time a 'pwmX' is exported with 'echo X > export': - 1st time export will create an entry in /sys/class/pwm/pwmX - when another export happens

[PATCH] x86: use PTR_ERR_OR_ZERO to fix ptr_ret.cocci warning

2018-07-20 Thread YueHaibing
ptr_ret.cocci warnings: arch/x86/kernel/pcspeaker.c:12:8-14: WARNING: PTR_ERR_OR_ZERO can be used use PTR_ERR_OR_ZERO rather than an open-code version to fix this. Signed-off-by: YueHaibing --- arch/x86/kernel/pcspeaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc

UBSAN: Undefined behaviour in arch/x86/events/core.c:668:25

2018-07-20 Thread Paul Menzel
Dear Linux folks, Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the warning below is shown. [1.945853] [

Re: [PATCH v3 28/33] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-20 Thread Boris Brezillon
On Fri, 20 Jul 2018 09:17:45 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Fri, 20 Jul 2018 > 01:27:32 +0200: > > > On Fri, 20 Jul 2018 01:00:21 +0200 > > Miquel Raynal wrote: > > > > > Two helpers have been added to the core to make ECC-related > > > configuration be

[PATCH v4 10/11] kbuild: do not update config for 'make kernelrelease'

2018-07-20 Thread Masahiro Yamada
'make kernelrelease' depends on CONFIG_LOCALVERSION(_AUTO), but for the same reason as install targets, we do not want to update the configuration just for printing the kernelrelease string. This is likely to happen when you compiled the kernel with CROSS_COMPILE, but forget to pass it to 'make ke

[PATCH v4 06/11] kconfig: allow all config targets to write auto.conf if missing

2018-07-20 Thread Masahiro Yamada
Currently, only syncconfig creates or updates include/config/auto.conf and some other files. Other config targets create or update only the .config file. When you configure and build the kernel from a pristine source tree, any config target is followed by syncconfig in the build stage since inclu

[PATCH v4 08/11] kbuild: add .DELETE_ON_ERROR special target

2018-07-20 Thread Masahiro Yamada
If Make gets a fatal signal while a shell is executing, it may delete the target file that the recipe was supposed to update. This is needed to make sure that it is remade from scratch when Make is next run; if Make is interrupted after the recipe has begun to write the target file, it results in

[PATCH v4 09/11] kbuild: do not update config when running install targets

2018-07-20 Thread Masahiro Yamada
"make syncconfig" is automatically invoked when any of the following happens: - .config is updated - any of Kconfig files is updated - any of environment variables referenced in Kconfig is changed Then, it updates configuration files such as include/config/auto.conf include/generated/autoconf.

[PATCH v4 00/11] kbuild/kconfig: do not update config during installation

2018-07-20 Thread Masahiro Yamada
The main motivation of this patch series is to suppress the syncconfig during running installation targets. V1 consisted of only two patches: https://patchwork.kernel.org/patch/10468105/ https://patchwork.kernel.org/patch/10468103/ I noticed that installation targets would continue running

[PATCH v2] checkpatch: kbuild: if_changed: check for multiple calls in targets

2018-07-20 Thread Dirk Gouders
The kbuild function if_changed should not be called more than once for a target. Because that function writes the command line to a .cmd file for later tests, multiple calls of it within a target would result in overwrites of previous values and effectively render the command line test meaningless

[PATCH v4 04/11] kconfig: create directories needed for syncconfig by itself

2018-07-20 Thread Masahiro Yamada
'make syncconfig' creates some files such as include/config/auto.conf, include/generate/autoconf.h, etc. but the necessary directory creation relies on scripts/kconfig/Makefile. To make Kconfig self-contained, create directories as needed in conf_write_autoconf(). This change allows scripts/kconf

[PATCH v4 01/11] kconfig: rename file_write_dep and move it to confdata.c

2018-07-20 Thread Masahiro Yamada
file_write_dep() is called only from conf_write_autoconf(). Move it from util.c to confdata.c to make it static. Also, rename it to conf_write_dep() since it should belong to the group of conf_write* functions. Signed-off-by: Masahiro Yamada --- Changes in v4: None scripts/kconfig/confdata.c |

[PATCH v4 05/11] kconfig: make syncconfig update .config regardless of sym_change_count

2018-07-20 Thread Masahiro Yamada
syncconfig updates the .config only when sym_change_count > 0, i.e. any change in config symbols has been detected. Not only symbols but also comments are contained in the .config file. If only comments are updated, they are not fed back to the .config, then the stale comments are left-over. Of c

[PATCH v4 03/11] kconfig: remove unneeded directory generation from local*config

2018-07-20 Thread Masahiro Yamada
Commit 17263baf958b ("kconfig: Create include/generated for localmodconfig") added the 'mkdir' line because local{yes,mod}config ran streamline_config.pl followed by silentoldconfig at that time. Since commit 81d2bc227305 ("kconfig: invoke oldconfig instead of silentoldconfig from local*config"),

[PATCH v4 02/11] kconfig: split out useful helpers in confdata.c

2018-07-20 Thread Masahiro Yamada
Split out helpers: is_present() - check if the given path exists is_dir() - check if the given path exists and it is a directory make_parent_dir() - create the parent directories of the given path These helpers will be reused in later commits. Signed-off-by: Masahiro Yamada --- Changes in v4

[PATCH v4 11/11] kbuild: remove auto.conf from prerequisite of phony targets

2018-07-20 Thread Masahiro Yamada
The top-level Makefile adds include/config/auto.conf as prerequisites of 'scripts', 'prepare1', etc. They were needed to terminate the build when include/config/auto.conf is missing. Now that the inclusion of include/config/auto.conf is mandatory in the top-level Makefile if dot-config is 1 (Note

[PATCH v4 07/11] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-07-20 Thread Masahiro Yamada
When you build targets that require the kernel configuration, dot-config is set to 1, then the top-level Makefile includes auto.conf. However, Make considers its inclusion is optional because the '-include' directive is used here. If a necessary configuration file is missing for the external modu

UBSAN: Undefined behaviour in arch/x86/events/amd/ibs.c:582:24: member access within null pointer of type 'struct perf_event'

2018-07-20 Thread Paul Menzel
Dear Linux folks, Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the warning below is shown. [2.111913] [

[PATCH] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes a spelling mistake. Signed-off-by: Marcel Ziswiler --- Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.t

[PATCH] ASoC: sgtl5000: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes a spelling mistake. Signed-off-by: Marcel Ziswiler --- Documentation/devicetree/bindings/sound/sgtl5000.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/sgtl5000.txt b/Documentation/devicetree/bi

UBSAN: Undefined behaviour in lib/radix-tree.c:123:14: member access within null pointer of type 'const struct radix_tree_node'

2018-07-20 Thread Paul Menzel
Dear Linux folks, Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the warning below is shown. [0.958688] [

[PATCH] ASoC: wm9712: fix replace codec to component

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Since commit 143b44845d87 ("ASoC: wm9712: replace codec to component") "wm9712-codec" got renamed to "wm9712-component", however, this change never got propagated down to the actual board/platform drivers. E.g. on Colibri T20 this lead to the following spew upon boot with so

[PATCH] mfd: stmpe: honor gpio interrupt probe deferral

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually honor probe deferral in trying to get the GPIO interrupt as of_get_named_gpio_flags() in stmpe_of_probe() may as well just do so. Signed-off-by: Marcel Ziswiler --- drivers/mfd/stmpe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/stmpe.c b/

[PATCH] ARM: dts: spear: fix stmpe811 interrupt properties

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler The property "irq-over-gpio" simply does not exist (this is nowadays actually auto detected) and the property "irq-gpios" is actually called "irq-gpios". Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/spear320-hmi.dts | 3 +-- 1 file changed, 1 insertion(+), 2 del

[PATCH] clk: tegra: probe deferral error reporting

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. Signed-off-by: Marcel Ziswiler --- drivers/clk/tegra/clk-dfll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-dfll.c b/d

Re: [PATCH 00/39 v8] PTI support for x86-32

2018-07-20 Thread Joerg Roedel
Hi Thomas, On Fri, Jul 20, 2018 at 01:21:33AM +0200, Thomas Gleixner wrote: > On Wed, 18 Jul 2018, Joerg Roedel wrote: > > > > here is version 8 of my patches to enable PTI on x86-32. The > > last version got some good review which I mostly worked into > > this version. > > I went over the whole

[PATCH] gpiolib: probe deferral error reporting

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. This is e.g. what one gets upon booting a Colibri T20: gpiochip_add_data_with_key: GPIOs 0..223 (tegra-gpio) failed to register Signed-off-by: Marcel Ziswiler --- driv

Re: [PATCH v1] memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20

2018-07-20 Thread Jon Hunter
On 19/07/18 16:38, Dmitry Osipenko wrote: > On Thursday, 19 July 2018 18:30:48 MSK Jon Hunter wrote: >> On 19/07/18 14:24, Dmitry Osipenko wrote: >>> This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory >>> timings for RAM code 0 registered" warning message during of kernels >>>

[GIT PULL] ACPI fix for v4.18-rc6

2018-07-20 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.18-rc6 with top-most commit 2c4d6baf1bc4f7729773ffcee9ba2a9781578633 ACPI / EC: Use ec_no_wakeup on more Thinkpad X1 Carbon 6th systems on top of commit 9d3cce1e8b8561fed5f383d22a4d

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > [I added PeterZ and Vitaly -- can you see any way in which this would > break something obscure? I don't.] Thanks for CCing me, I don't see how this can break things either. At first glance, however, I'm afraid we can add performance penalty to virtualized guests whic

[GIT PULL] Power management fix for v4.18-rc6

2018-07-20 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.18-rc6 with top-most commit 95d6c0857e54b788982746071130d822a795026b cpufreq: intel_pstate: Register when ACPI PCCH is present on top of commit 9d3cce1e8b8561fed5f383d22a4d6949db4eadb

[PATCH 2/2] ASoC: tegra: probe deferral error reporting

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error codes from of_get_named_gpio() resp. devm_gpio_request_one() upon trying to get the codec reset resp. sync GPIOs which may as well just be a probe deferrals. Signed-off-by: Marcel Ziswiler --- sound/soc/tegra/tegra20_ac97.c | 9 ++--- 1 fil

Re: [PATCH v3 5/6] KVM: X86: Add NMI support to PV IPIs

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 05:53, Wanpeng Li wrote: >>> - ret = kvm_hypercall3(KVM_HC_SEND_IPI, ipi_bitmap_low, >>> ipi_bitmap_high, vector); >>> + switch (vector) { >>> + default: >>> + icr = APIC_DM_FIXED | vector; >>> + break; >>> + case NMI_VECTOR: >>> +

[PATCH 1/2] ASoC: tegra: improve goto error label

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler While the two error labels "err" and "err_clk_put" goto the same place it is rather confusing that the earlier one is certainly used later again. Signed-off-by: Marcel Ziswiler --- sound/soc/tegra/tegra20_ac97.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH v3 2/6] KVM: X86: Implement PV IPIs in linux guest

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 07:58, Wanpeng Li wrote: >> >> We could keep the cluster size of 128, but it would be more complicated >> to do the left shift in the first "else if". If the limit is 64, you >> can keep the two arguments in the hypercall, and just pass 0 as the >> "high" bitmap on 64-bit kernels. >

Re: [PATCH v15 23/26] sched: early boot clock

2018-07-20 Thread Peter Zijlstra
On Thu, Jul 19, 2018 at 04:55:42PM -0400, Pavel Tatashin wrote: > diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c > index 0e9dbb2d9aea..422cd63f8f17 100644 > --- a/kernel/sched/clock.c > +++ b/kernel/sched/clock.c > @@ -202,7 +202,25 @@ static void __sched_clock_gtod_offset(void) > > vo

[PATCH V4 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-20 Thread Mircea Caprioru
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru --- Changelog V3 -> V4 - named enum to adgs1408_chip_id - added .data with id enum values - a

Re: [PATCH] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Jon Hunter
On 20/07/18 08:52, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This fixes a spelling mistake. > > Signed-off-by: Marcel Ziswiler > > --- > > Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[GIT PULL] ARM: at91: DT for 4.19

2018-07-20 Thread Alexandre Belloni
Arnd, Olof, Here are the unusually large DT PR for AT91. It contains mainly new DTs. There is a pm.c change that I'm including here so it is along with the corresponding DT changes. The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:4

Re: [PATCH v3 0/4] Add basic support for Mediatek MT8183 SoC

2018-07-20 Thread Erin Lo
On Mon, 2018-07-16 at 11:28 +0200, Matthias Brugger wrote: > Hi Erin, > > On 17/05/18 08:22, Erin Lo wrote: > > MT8183 is a SoC based on 64bit ARMv8 architecture. > > It contains 4 CA53 and 4 CA73 cores. > > MT8183 share many HW IP with MT65xx series. > > This patchset was tested on MT8183 evaluat

[GIT PULL] ARM: at91: SoC for 4.19

2018-07-20 Thread Alexandre Belloni
Arnd, Olof, Here is the SoC PR for 4.19. It is a cleanup of pm.c and the addition of a new low power mode. The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://git.kernel.org/pu

[PATCH v2] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes a spelling mistake. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Also fix up the one in nvidia,tegra210-pinmux.txt as suggested by Jon. Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt | 2 +- Documentation/devicetree/bindings/pinc

Re: [PATCH] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
On Fri, 2018-07-20 at 09:12 +0100, Jon Hunter wrote: > On 20/07/18 08:52, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > This fixes a spelling mistake. > > > > Signed-off-by: Marcel Ziswiler > > > > --- > > > > Documentation/devicetree/bindings/pinctrl/nvidia,tegra124- > > pinmux.t

Re: [PATCH 2/6] drivers/md/raid5: Do not disable irq on release_inactive_stripe_list() call

2018-07-20 Thread Sebastian Andrzej Siewior
On 2018-07-03 22:01:37 [+0200], To linux-kernel@vger.kernel.org wrote: > From: Anna-Maria Gleixner > > There is no need to invoke release_inactive_stripe_list() with interrupts > disabled. All call sites, except raid5_release_stripe(), unlock > ->device_lock and enable interrupts before invoking

Re: [PATCH] ASoC: wm9712: fix replace codec to component

2018-07-20 Thread Kuninori Morimoto
Hi Marcel > From: Marcel Ziswiler > > Since commit 143b44845d87 ("ASoC: wm9712: replace codec to component") > "wm9712-codec" got renamed to "wm9712-component", however, this change > never got propagated down to the actual board/platform drivers. E.g. on > Colibri T20 this lead to the followi

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Peter Zijlstra
On Thu, Jul 19, 2018 at 10:04:09AM -0700, Andy Lutomirski wrote: > I added some more arch maintainers. The idea here is that, on x86 at > least, task->active_mm and all its refcounting is pure overhead. When > a process exits, __mmput() gets called, but the core kernel has a > longstanding "optim

Re: [PATCH V3 0/4] KVM/x86/hyper-V: Introduce PV guest address space mapping flush support

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 05:58, KY Srinivasan wrote: > > >> -Original Message- >> From: Tianyu Lan >> Sent: Thursday, July 19, 2018 1:40 AM >> Cc: Tianyu Lan ; de...@linuxdriverproject.org; >> Haiyang Zhang ; h...@zytor.com; >> k...@vger.kernel.org; KY Srinivasan ; linux- >> ker...@vger.kernel.org;

Re: UBSAN: Undefined behaviour in lib/radix-tree.c:123:14: member access within null pointer of type 'const struct radix_tree_node'

2018-07-20 Thread Mark Rutland
In-Reply-To: <19427cc3-3372-9b02-4b92-096fbe328...@molgen.mpg.de> On Fri, Jul 20, 2018 at 09:53:21AM +0200, Paul Menzel wrote: > Dear Linux folks, Hi, > Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ > (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unsta

Re: [PATCH v2 (v4.18 regression fix)] vfs: don't evict uninitialized inode

2018-07-20 Thread Miklos Szeredi
On Thu, Jul 19, 2018 at 11:45 PM, Al Viro wrote: > On Wed, Jul 18, 2018 at 01:18:33PM +0100, Al Viro wrote: > >> BTW, why have you left generic_readlink() sitting around? AFAICS, >> it could've been folded into the only remaining caller just as >> you've made it static in late 2016... I'll fold

Re: [PATCH V2 0/4] Fix kvm misconceives NVDIMM pages as reserved mmio

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 16:11, Zhang,Yi wrote: > Added Jiang,Dave, > > Ping for further review, comments. I need an Acked-by from the MM people to merge this. Jan, Dan? Paolo > > Thanks All > > Regards > Yi. > > > On 2018年07月11日 01:01, Zhang Yi wrote: >> For device specific memory space, when we mov

linux-next: Tree for Jul 20

2018-07-20 Thread Stephen Rothwell
Hi all, Changes since 20180719: The powerpc tree gained a conflict against the powerpc-fixes tree. The pci tree gained a conflict against Linus' tree. The net-next tree gained a conflict against Linus' tree. I also applied a supplied patch to work around a kconfig problem. The mfd tree gained

[PATCH 1/2] clk: uniphier: add NAND 200MHz clock

2018-07-20 Thread Masahiro Yamada
The Denali NAND controller IP needs three clocks: - clk: controller core clock - clk_x: bus interface clock - ecc_clk: clock at which ECC circuitry is run Currently, only the first one (50MHz) is provided. The rest of the two clock ports must be connected to the 200MHz clock line. Add this

[PATCH 2/2] clk: uniphier: add more USB3 PHY clocks

2018-07-20 Thread Masahiro Yamada
Add USB3 PHY clocks where missing. Use fixed-factor clocks for those without gating. For clarification, prefix clock names with 'ss' or 'hs'. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 26 +- 1 file changed, 17 insertions(+), 9 deletio

Re: [PATCH V2 0/4] Fix kvm misconceives NVDIMM pages as reserved mmio

2018-07-20 Thread Zhang,Yi
Thanks Paolo, let's wait Jan&Dan 's comments. Thank you, Paolo. Regards Yi On 2018年07月20日 16:32, Paolo Bonzini wrote: > On 20/07/2018 16:11, Zhang,Yi wrote: >> Added Jiang,Dave, >> >> Ping for further review, comments. > I need an Acked-by from the MM people to merge this. Jan, Dan? > > Paolo >

[PATCH v4 0/2] Fix lockdep warning with nested instances of i2c-mux

2018-07-20 Thread Peter Rosin
Hi! Ping. This is almost a resend of v3, but I added tested-by tags from John and unwrapped a line in the commit message, so it's a v4. How is this going to find its way to Linus? I can move this through the i2c-mux tree, but I obviously need a tag for patch 1/2 for that... Cheers, Peter Change

[PATCH v4 1/2] rtmutex: allow specifying a subclass for nested locking

2018-07-20 Thread Peter Rosin
Needed for annotating rt_mutex locks. Tested-by: John Sperbeck Signed-off-by: Peter Rosin --- include/linux/rtmutex.h | 7 +++ kernel/locking/rtmutex.c | 29 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/include/linux/rtmutex.h b/include/lin

Re: UBSAN: Undefined behaviour in arch/x86/events/amd/ibs.c:582:24: member access within null pointer of type 'struct perf_event'

2018-07-20 Thread Thomas Gleixner
Paul, On Fri, 20 Jul 2018, Paul Menzel wrote: > Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ > (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the > warning below is shown. > > > [2.111913] > > ==

[PATCH v4 2/2] i2c: mux: annotate the nested rt_mutex usage

2018-07-20 Thread Peter Rosin
If an i2c topology has instances of nested muxes, then a lockdep splat is produced when when i2c_parent_lock_bus() is called. Here is an example: WARNING: possible recursive locking detected insmod/68159 is

Re: [patch v3] mm, oom: fix unnecessary killing of additional processes

2018-07-20 Thread David Rientjes
On Thu, 19 Jul 2018, Tetsuo Handa wrote: > Sigh... > > Nacked-by: Tetsuo Handa > > because David is not aware what is wrong. > Hmm, didn't you incorporate this exact patch into your own patch series that you proposed? :) I'm coming to this stark realization that all of these theater is only

Re: [PATCH 1/2] security/keys/secure_key: Adds the secure key support based on CAAM.

2018-07-20 Thread Jan Lübbe
On Fri, 2018-07-20 at 11:16 +0530, Udit Agarwal wrote: > +== > +Secure Key > +== > + > +Secure key is the new type added to kernel key ring service. > +Secure key is a symmetric type key of minimum length 32 bytes > +and with maximum possible length to be 128 bytes. It is produced >

Re: [PATCH v2 08/10] coresight: perf: Add helper to retrieve sink configuration

2018-07-20 Thread Suzuki K Poulose
On 19/07/18 21:07, Mathieu Poirier wrote: On Tue, Jul 17, 2018 at 06:11:39PM +0100, Suzuki K Poulose wrote: We can always find the sink configuration for a given perf_output_handle. Add a helper to retrieve the sink configuration for a given perf_output_handle. This will be used to get rid of th

Re: [PATCH v2] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Jon Hunter
On 20/07/18 09:22, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This fixes a spelling mistake. > > Signed-off-by: Marcel Ziswiler > > --- > > Changes in v2: > - Also fix up the one in nvidia,tegra210-pinmux.txt as suggested by Jon. > > Documentation/devicetree/bindings/pinctrl/nvidi

[PATCH 1/2] ARM: uniphier: dts: add more clocks to Denali NAND controller node

2018-07-20 Thread Masahiro Yamada
Catch up with the new binding of the Denali IP where three clocks, "nand", "nand_x", "ecc" are required. For UniPhier SoCs, the "nand_x" and "ecc" are tied up because they are both 200MHz. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-ld4.dtsi | 3 ++- arch/arm/boot/dts/uniphi

[PATCH 2/2] arm64: uniphier: dts: add more clocks to Denali NAND controller node

2018-07-20 Thread Masahiro Yamada
Catch up with the new binding of the Denali IP where three clocks, "nand", "nand_x", "ecc" are required. For UniPhier SoCs, the "nand_x" and "ecc" are tied up because they are both 200MHz. Signed-off-by: Masahiro Yamada --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 3 ++- arch/arm64/b

Re: [PATCH v2 09/10] coresight: perf: Remove set_buffer call back

2018-07-20 Thread Suzuki K Poulose
Mathieu, On 19/07/18 21:36, Mathieu Poirier wrote: On Tue, Jul 17, 2018 at 06:11:40PM +0100, Suzuki K Poulose wrote: In coresight perf mode, we need to prepare the sink before starting a session, which is done via set_buffer call back. We then proceed to enable the tracing. If we fail to start

Re: [PATCH v2 10/10] coresight: etm-perf: Add support for ETR backend

2018-07-20 Thread Suzuki K Poulose
On 19/07/18 20:59, Mathieu Poirier wrote: On Tue, Jul 17, 2018 at 06:11:41PM +0100, Suzuki K Poulose wrote: Add support for using TMC-ETR as backend for ETM perf tracing. We use software double buffering at the moment. i.e, the TMC-ETR uses a separate buffer than the perf ring buffer. The data i

Re: linux-next: manual merge of the pci tree with Linus' tree

2018-07-20 Thread Lorenzo Pieralisi
On Fri, Jul 20, 2018 at 11:03:10AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the pci tree got a conflict in: > > drivers/pci/controller/pci-aardvark.c > > between commit: > > 1df3e5b3feeb ("PCI: aardvark: Fix I/O space page leak") > > from Linus' tree and com

[PATCH V3] sched/deadline: Update rq_clock of later_rq when pushing a task

2018-07-20 Thread Daniel Bristot de Oliveira
Daniel Casini got this warn while running a DL task here at RetisLab: [ 461.137582] [ cut here ] [ 461.137583] rq->clock_update_flags < RQCF_ACT_SKIP [ 461.137599] WARNING: CPU: 4 PID: 2354 at kernel/sched/sched.h:967 assert_clock_updated.isra.32.part.33+0x17/0x20

Re: [PATCH] ASoC: wm9712: fix replace codec to component

2018-07-20 Thread Marcel Ziswiler
Hi Kuninori On Fri, 2018-07-20 at 08:30 +, Kuninori Morimoto wrote: > Hi Marcel > > > From: Marcel Ziswiler > > > > Since commit 143b44845d87 ("ASoC: wm9712: replace codec to > > component") > > "wm9712-codec" got renamed to "wm9712-component", however, this > > change > > never got propaga

Re: [PATCH 3/5] dmaengine: mv_xor_v2: convert callback to helper function

2018-07-20 Thread Vinod
On 17-07-18, 13:30, han...@marvell.com wrote: > From: Hanna Hawa > > This is in preperation of moving to a callback that provides results to the typo preperation > callback for the transaction. The conversion will maintain current behavior > and the driver must convert to new callback mechanism

Ihre Position

2018-07-20 Thread Martin Schoch
Sehr geehrte Damen und Herren, Nach der Analyse Ihrer Internetseite haben wir Fehler im Code ermittelt, die einen groβen Einfluss darauf haben, dass Ihre Webseite eine niedrige Position in den Suchmaschinen, darunter auch in der wichtigsten, d. h. auf Google, einnimmt. Wir bieten Ihnen die Opti

Re: [PATCH 0/5] dmaengine: mv_xor_v2: fixes and alignment for XOR-v2 driver

2018-07-20 Thread Vinod
On 17-07-18, 13:29, han...@marvell.com wrote: > From: Hanna Hawa > > This series bring some minor fixes & alignmnet to the driver of > Marvell XOR-v2 engine. Applied after fixing typo is 3rd patch, thanks -- ~Vinod

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Peter Zijlstra
On Thu, Jul 19, 2018 at 09:45:47AM -0700, Andy Lutomirski wrote: > After some grepping, there are very few users. The > only nontrivial ones are the ones in kernel/ and mm/mmu_context.c that > are involved in the rather complicated dance of refcounting active_mm. Something like so should work I s

Re: [PATCH v3 1/7] mm, slab: combine kmalloc_caches and kmalloc_dma_caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 10:10 AM, Mel Gorman wrote: > On Wed, Jul 18, 2018 at 03:36:14PM +0200, Vlastimil Babka wrote: >> The kmalloc caches currently mainain separate (optional) array >> kmalloc_dma_caches for __GFP_DMA allocations. There are tests for __GFP_DMA >> in >> the allocation hotpaths. We can avo

Re: [PATCH v3 2/7] mm, slab/slub: introduce kmalloc-reclaimable caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 10:23 AM, Mel Gorman wrote: >> /* >> diff --git a/mm/slab_common.c b/mm/slab_common.c >> index 4614248ca381..614fb7ab8312 100644 >> --- a/mm/slab_common.c >> +++ b/mm/slab_common.c >> @@ -1107,10 +1107,21 @@ void __init setup_kmalloc_cache_index_table(void) >> } >> } >> >> -s

Re: [PATCH v3 2/7] mm, slab/slub: introduce kmalloc-reclaimable caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 08:16 PM, Roman Gushchin wrote: >> is_dma = !!(flags & __GFP_DMA); >> #endif >> >> -return is_dma; >> +is_reclaimable = !!(flags & __GFP_RECLAIMABLE); >> + >> +/* >> + * If an allocation is botth __GFP_DMA and __GFP_RECLAIMABLE, return >

Re: [PATCH v3 1/4] x86/boot: Add acpitb.h to help parse acpi tables

2018-07-20 Thread Chao Fan
On Thu, Jul 19, 2018 at 05:19:43PM +0200, Thomas Gleixner wrote: >On Tue, 17 Jul 2018, Chao Fan wrote: > >> In order to parse ACPI tables, reuse the head file linux/acpi.h, >> so that the files in 'compressed' directory can read ACPI table >> by including this head file. >> >> Signed-off-by: Chao

Re: [PATCH v3 3/7] mm, slab: allocate off-slab freelists as reclaimable when appropriate

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 10:35 AM, Mel Gorman wrote: > On Wed, Jul 18, 2018 at 03:36:16PM +0200, Vlastimil Babka wrote: >> In SLAB, OFF_SLAB caches allocate management structures (currently just the >> freelist) from kmalloc caches when placement in a slab page together with >> objects would lead to suboptima

[PATCH 1/2] clk: meson: Add vid_pll divider driver

2018-07-20 Thread Neil Armstrong
Add support the VID_PLL fully programmable divider used right after the HDMI PLL clock source. It is used to achieve complex fractional division with a programmble bitfield. Signed-off-by: Neil Armstrong --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clkc.h| 6 +++ drive

[PATCH 0/2] clk: meson: Add video clocks path

2018-07-20 Thread Neil Armstrong
This patchset adds initial support the Video Clocks used in the Display Pipelin from the DRM driver. The DRM driver is in his way to finaly switch to the Common Clock Framework to setup the clock path, this adds the clock entries that will be used by the DRM driver in a near future. The vid_pll pr

[PATCH 2/2] clk: meson-gxbb: Add video clocks

2018-07-20 Thread Neil Armstrong
Add the clocks entries used in the video clock path, the clock path is doubled to permit having different synchronized clocks for different parts of the video pipeline. Signed-off-by: Neil Armstrong --- drivers/clk/meson/gxbb.c | 667 ++ drivers/clk/m

RE: [PATCH v2 2/3] dmaengine: imx-sdma: add memcpy interface

2018-07-20 Thread Robin Gong
> -Original Message- > From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > Sent: 2018年7月13日 14:16 > To: Robin Gong > Cc: vk...@kernel.org; dan.j.willi...@intel.com; shawn...@kernel.org; Fabio > Estevam ; li...@armlinux.org.uk; > linux-arm-ker...@lists.infradead.org; ker...@pengutronix.de;

Re: [PATCH v3 0/7] kmalloc-reclaimable caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 09:53 PM, Roman Gushchin wrote: >> Vlastimil > Overall the patchset looks solid to me. > Please, feel free to add > Acked-by: Roman Gushchin Thanks! > Two small nits: > 1) The last patch is unrelated to the main idea, > and can potentially cause ABI breakage. Yes, that's why it's

[PATCH] livepatch: Validate module/old func name length

2018-07-20 Thread Kamalesh Babulal
livepatch module author can pass module name/old function name with more than the defined character limit. With obj->name length greater than MODULE_NAME_LEN, the livepatch module gets loaded but waits forever on the module specified by obj->name to be loaded. It also populates a /sys directory wit

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Peter Zijlstra
On Fri, Jul 20, 2018 at 10:02:10AM +0200, Vitaly Kuznetsov wrote: > Andy Lutomirski writes: > > > [I added PeterZ and Vitaly -- can you see any way in which this would > > break something obscure? I don't.] > > Thanks for CCing me, > > I don't see how this can break things either. At first gla

Re: [PATCH v3 2/6] KVM: X86: Implement PV IPIs in linux guest

2018-07-20 Thread Radim Krcmar
2018-07-20 11:33+0800, Wanpeng Li: > On Fri, 20 Jul 2018 at 00:28, Radim Krčmář wrote: > > 2018-07-03 14:21+0800, Wanpeng Li: > > But because it is very similar to x2apic, I'd really need some real > > performance data to see if this benefits a real workload. > > Thanks for your review, Radim! :)

  1   2   3   4   5   6   7   8   9   >