Re: [PATCH v2 0/6] General Key Derivation Function Support

2019-02-08 Thread Stephan Mueller
Am Freitag, 8. Februar 2019, 08:45:58 CET schrieb Herbert Xu: Hi Herbert, > We could easily add self-tests for the helper. Thanks for the clarification. And do you have a suggestion how we can should ensure that the self-tests are run only once? Also, shall we add the signature verification en

Re: [PATCH net-next 2/2] net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE

2019-02-08 Thread Simon Horman
On Thu, Feb 07, 2019 at 09:45:49AM +0200, Eli Cohen wrote: > Modify the kernel users of the TCA_ACT_* macros to use TCA_ID_*. For > example, use TCA_ID_GACT instead of TCA_ACT_GACT. This will align with > TCA_ID_POLICE and also differentiates these identifier, used in struct > tc_action_ops type fi

[PATCH] mm: fix potential build error in compaction.h

2019-02-08 Thread Yu Zhao
Declaration of struct node is required regardless. On UMA system, including compaction.h without proceeding node.h shouldn't cause build error. Signed-off-by: Yu Zhao --- include/linux/compaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compaction.h b/i

Re: [PATCH v5] scsi/ata: Use unsigned int for cmd's type in ioctls in scsi_host_template

2019-02-08 Thread Christoph Hellwig
On Thu, Feb 07, 2019 at 09:07:20AM -0700, Nathan Chancellor wrote: > Clang warns several times in the scsi subsystem (trimmed for brevity): > > drivers/scsi/hpsa.c:6209:7: warning: overflow converting case value to > switch condition type (2147762695 to 18446744071562347015) [-Wswitch] > c

Re: [PATCH 2/2] Input: st1232 - switch to gpiod API

2019-02-08 Thread Dmitry Torokhov
Hi Martin, On Tue, Feb 05, 2019 at 11:20:16AM +0100, Martin Kepplinger wrote: > On 29.01.19 11:23, Martin Kepplinger wrote: > > From: Martin Kepplinger > > > > Use devm_gpiod_get_optional() and gpiod_set_value_cansleep() instead > > of the old API. The st1232_ts_power() now passes on the inverte

Re: [PATCH v2 0/6] General Key Derivation Function Support

2019-02-08 Thread Herbert Xu
On Fri, Feb 08, 2019 at 09:00:59AM +0100, Stephan Mueller wrote: > > Thanks for the clarification. And do you have a suggestion how we can should > ensure that the self-tests are run only once? Making it run at kernel init time should be good enough. > Also, shall we add the signature verificati

[PATCH 06/11] mtd: rawnand: denali: use more precise timeout for NAND_OP_WAITRDT_INSTR

2019-02-08 Thread Masahiro Yamada
Currently, wait_for_completion_timeout() is always passed in the hard-coded msec_to_jiffies(1000). There is no specific reason for 1000 msec, but I just chose it long enough. With the exec_op() conversion, NAND_OP_WAITRDY_INSTR provides more precise timeout value, depending on the preceding comman

[PATCH 07/11] mtd: rawnand: denali: use bool type instead of int where appropriate

2019-02-08 Thread Masahiro Yamada
Use 'bool' type for some function arguments. - write (write or read?) - raw (the raw access mode or not?) It is true that denali_nand_info::dma_avail is also boolean, but I am keeping it as 'int' because 'scripts/checkpatch --strict' would report the following: CHECK: Avoid using bool structur

[PATCH 02/11] mtd: rawnand: denali: refactor syndrome layout handling for raw access

2019-02-08 Thread Masahiro Yamada
The Denali IP adopts the syndrome page layout (payload and ECC are interleaved). The *_page_raw() and *_oob() callbacks are complicated because they must hide the underlying layout used by the hardware, and always return contiguous in-band and out-of-band data. Currently, similar code is duplicate

[PATCH 08/11] mtd: rawnand: denali_pci: rename goto labels

2019-02-08 Thread Masahiro Yamada
As Documentation/process/coding-style.rst says, choose label names which say what the goto does. The out_ label style is already used in denali_dt.c. Rename likewise for denali_pci.c Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali_pci.c | 8 1 file changed, 4 insertions(

[PATCH 04/11] mtd: rawnand: denali: switch over to ->exec_op() from legacy hooks

2019-02-08 Thread Masahiro Yamada
Implement ->exec_op(). Remove the deprecated select_chip(), read_byte(), write_byte(), cmd_ctrl(), and waitfunc(). Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.c | 234 +++--- 1 file changed, 126 insertions(+), 108 deletions(-) diff --git

[PATCH 09/11] mtd: rawnand: denali: decouple controller and NAND chips

2019-02-08 Thread Masahiro Yamada
Currently, this driver sticks to the legacy NAND model because denali_dt.c was up streamed before commit 2d472aba15ff ("mtd: nand: document the NAND controller/NAND chip DT representation"). However, relying on the dummy_controller is already deprecated. Switch over to the new controller/chip repr

[PATCH 00/11] mtd: rawnand: denali: exec_op(), controller/chip separation, and cleanups

2019-02-08 Thread Masahiro Yamada
I took time for the Denali driver to catch up with the latest framework. - switch over to exec_op() and remove legacy hooks - separate controller/chips - various cleanups Masahiro Yamada (11): mtd: rawnand: denali: use nand_chip pointer more for internal functions mtd: rawnand: den

[PATCH 05/11] mtd: rawnand: denali: rename irq_status to irq_stat

2019-02-08 Thread Masahiro Yamada
I will add the third argument to denali_wait_for_irq() in the following commit. Then, some lines will exceed 80 columns. Rename 'irq_status' to 'irq_stat'. Saving two characters will avoid line-wrapping in some places, and keep the code clean. I replaced uint32_t with u32 in the touched lines. Th

[PATCH 01/11] mtd: rawnand: denali: use nand_chip pointer more for internal functions

2019-02-08 Thread Masahiro Yamada
After the recent refactoring, the NAND driver hooks now take a pointer to nand_chip. Add to_denali() in order to convert (struct nand_chip *) to (struct denali_nand_info *) directly. It is more useful than the current mtd_to_denali(). I changed some helper functions to take (struct nand_chip *). T

[PATCH 10/11] mtd: rawnand: denali: remove DENALI_NR_BANKS macro

2019-02-08 Thread Masahiro Yamada
Use the runtime-detected denali->nbanks instead of hard-coded DENALI_NR_BANKS (=4). The actual number of banks depends on the IP configuration, and can be less than DENALI_NR_BANKS. It is pointless to touch registers of unsupported banks. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw

[PATCH 11/11] mtd: rawnand: denali: clean up coding style

2019-02-08 Thread Masahiro Yamada
Eliminate the following reports from 'scripts/checkpatch.pl --strict'. CHECK: Prefer kernel type 'u8' over 'uint8_t' CHECK: Prefer kernel type 'u32' over 'uint32_t' CHECK: Alignment should match open parenthesis I slightly changed denali_check_erased_page() to make it shorter. Signed-off-b

[PATCH 03/11] mtd: rawnand: denali: remove unneeded casts in denali_{read,write}_pio

2019-02-08 Thread Masahiro Yamada
Since (u32 *) can accept an opaque pointer, the explicit casting from (void *) to (u32 *) is redundant. Change the function argument type to remove the casts. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) dif

Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization

2019-02-08 Thread Marek Szyprowski
Hi Viresh, On 2019-02-08 07:49, Viresh Kumar wrote: > On 07-02-19, 13:22, Marek Szyprowski wrote: >> Recent commit 9ac6cb5fbb17 ("i2c: add suspended flag and accessors for >> i2c adapters") added a visible warning for an attempt to do i2c transfer >> over a suspended i2c bus. This revealed a long

Re: [PATCH v4 6/8] DT: arm: exynos: add DMC device for exynos5422

2019-02-08 Thread Krzysztof Kozlowski
On Fri, 1 Feb 2019 at 17:47, Lukasz Luba wrote: > > Add description of Dynamic Memory Controller and PPMU counters. > They are used by exynos5422-dmc driver. > > Signed-off-by: Lukasz Luba > --- > arch/arm/boot/dts/exynos5420.dtsi | 78 > +++ > arch/arm/boot/

Re: [PATCH v4 8/8] ARM: exynos_defconfig: enable DMC driver

2019-02-08 Thread Krzysztof Kozlowski
On Fri, 1 Feb 2019 at 17:47, Lukasz Luba wrote: > > Enable driver for Dynamic Memory Controller dynamic frequency and > voltage scaling in Exynos5422 SoCs. > > Signed-off-by: Lukasz Luba > --- > arch/arm/configs/exynos_defconfig | 1 + > 1 file changed, 1 insertion(+) Looks good for me. I will

Missing CR3 switch ?

2019-02-08 Thread Abraham, Santosh
Folks, I am trying to track down a strange application segfault error 15 bug - which is resisting any attempts to be explained by an application bug. Hypothetically, if for some reason - the KPTI code failed to switch to the user CR3 while returning back, the kernel would presumably kill the ap

Re: [PATCH v2 0/6] General Key Derivation Function Support

2019-02-08 Thread Stephan Mueller
Am Freitag, 8. Februar 2019, 09:05:47 CET schrieb Herbert Xu: Hi Herbert, > > > Also, shall we add the signature verification enforcemnt to the helper as > > well? > > What do you mean by that? We need to invoke the function crypto_check_module_sig when the module is loaded. Do you have any co

Re: [LSF/MM TOPIC] BPF for Block Devices

2019-02-08 Thread Matias Bjørling
On 2/7/19 6:12 PM, Stephen Bates wrote: Hi All A BPF track will join the annual LSF/MM Summit this year! Please read the updated description and CFP information below. Well if we are adding BPF to LSF/MM I have to submit a request to discuss BPF for block devices please! There has been qu

[RFC] On the Current Troubles of Mainlining Loongson Platform Drivers

2019-02-08 Thread Tom Li
Hello, Greg, Ralf, Paul, James, Alexandre and Huacai Many years ago when I was still in the middle scheool, I got a Loongson Yeeloong laptop to explore the world of non-x86 world, as Geert Uytterhoeven once said, there's lots of Linux beyond IA-32. At that time I've noticed there was no platform d

Re: [PATCH] Uprobes: Fix deadlock between delayed_uprobe_lock and fs_reclaim

2019-02-08 Thread Ravi Bangoria
On 2/6/19 7:06 PM, Oleg Nesterov wrote: > Ravi, I am on vacation till the end of this week, can't read your patch > carefully. > > I am not sure I fully understand the problem, but shouldn't we change > binder_alloc_free_page() to use mmput_async() ? Like it does if trylock > fails. I don't un

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

2019-02-08 Thread Jarkko Nikula
On 2/8/19 4:37 AM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the mfd tree got a conflict in: drivers/mfd/Kconfig between commit: 9baddb61dfec ("mfd: Fix unmet dependency warning for MFD_TPS68470") from Linus' tree and commit: 09fdc9857712 ("mfd: Kconfig: Fix I2C_D

Re: [PATCH] mtd: rawnand: call onfi_fill_data_interface() once again after nand_detect

2019-02-08 Thread Masahiro Yamada
HI Miquel, On Thu, Feb 7, 2019 at 10:02 PM Miquel Raynal wrote: > > Hi Masahiro, > > Masahiro Yamada wrote on Thu, 7 Feb > 2019 19:46:54 +0900: > > > On Thu, Feb 7, 2019 at 7:16 PM Miquel Raynal > > wrote: > > > > > > Hi Masahiro, > > > > > > Masahiro Yamada wrote on Thu, 7 Feb > > > 2019 18

Re: [PATCH] Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element.

2019-02-08 Thread Heiko Carstens
On Fri, Feb 08, 2019 at 08:11:10AM +0530, Allen wrote: > From: Allen Pais > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Allen Pais > --- > arch/s390/tools/gen_opcode_table.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/tools/

[GIT PULL] TTY/Serial fixes for 5.0-rc6

2019-02-08 Thread Greg KH
The following changes since commit f17b5f06cb92ef2250513a1e154c47b78df07d40: Linux 5.0-rc4 (2019-01-27 15:18:05 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-5.0-rc6 for you to fetch changes up to fedb5760648a291e949f238

[GIT PULL] USB driver fixes for 5.0-rc6

2019-02-08 Thread Greg KH
The following changes since commit f17b5f06cb92ef2250513a1e154c47b78df07d40: Linux 5.0-rc4 (2019-01-27 15:18:05 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.0-rc6 for you to fetch changes up to a07ddce4df807e41a85245e

[GIT PULL] Staging/IIO driver fixes for 5.0-rc6

2019-02-08 Thread Greg KH
The following changes since commit f17b5f06cb92ef2250513a1e154c47b78df07d40: Linux 5.0-rc4 (2019-01-27 15:18:05 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git tags/staging-5.0-rc6 for you to fetch changes up to 6d923f8fe821c0

[GIT PULL] Driver core fixes for 5.0-rc6

2019-02-08 Thread Greg KH
The following changes since commit 1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8: Linux 5.0-rc2 (2019-01-14 10:41:12 +1200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-5.0-rc6 for you to fetch changes up to 36991c

Re: linux-next: build failure after merge of the sound-asoc tree

2019-02-08 Thread Takashi Iwai
On Fri, 08 Feb 2019 08:37:25 +0100, Takashi Iwai wrote: > > On Fri, 08 Feb 2019 03:18:23 +0100, > Stephen Rothwell wrote: > > > > Hi all, > > > > After merging the sound-asoc tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > sound/soc/xilinx/xlnx_formatter_pcm.c

[GIT PULL] Char/Misc driver fixes for 5.0-rc6

2019-02-08 Thread Greg KH
The following changes since commit f17b5f06cb92ef2250513a1e154c47b78df07d40: Linux 5.0-rc4 (2019-01-27 15:18:05 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-5.0-rc6 for you to fetch changes up to 4bf13fdbc3

Re: [PATCH v10, RESEND 4/6] tpm: move tpm_chip definition to include/linux/tpm.h

2019-02-08 Thread Roberto Sassu
On 2/8/2019 5:24 AM, Nathan Chancellor wrote: diff --git a/include/linux/tpm.h b/include/linux/tpm.h index afd022fc9d3d..816e686a73ac 100644 --- a/include/linux/tpm.h +++ b/include/linux/tpm.h @@ -22,6 +22,10 @@ #ifndef __LINUX_TPM_H__ #define __LINUX_TPM_H__ +#include +#include Hi Na

Re: Re: [PATCH] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-08 Thread Joakim Tjernlund
On Thu, 2019-02-07 at 23:50 +, Sobon, Przemyslaw wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you recognize the sender and know the > content is safe. > > > Hi Ikegami, > > I have seen a case myself where a value

Re: [PATCH net-next 2/2] net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE

2019-02-08 Thread Jiri Pirko
Fri, Feb 08, 2019 at 09:01:42AM CET, simon.hor...@netronome.com wrote: >On Thu, Feb 07, 2019 at 09:45:49AM +0200, Eli Cohen wrote: >> Modify the kernel users of the TCA_ACT_* macros to use TCA_ID_*. For >> example, use TCA_ID_GACT instead of TCA_ACT_GACT. This will align with >> TCA_ID_POLICE and a

Re: linux-next: build failure after merge of the drm-misc tree

2019-02-08 Thread Daniel Vetter
On Fri, Feb 8, 2019 at 2:38 AM Stephen Rothwell wrote: > > Hi all, > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from drivers/gpu/drm/arm/display/komeda/komeda_drv.c:13: > drivers/gpu/drm/arm/display/komeda/komeda_kms.h

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

2019-02-08 Thread Daniel Vetter
On Fri, Feb 08, 2019 at 12:27:44PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drm-misc tree got a conflict in: > > drivers/gpu/drm/i915/intel_display.c > > between commit: > > 9f58892ea996 ("drm/i915: Pull all the reset functionality together into > i915_r

Re: [RFC PATCH] perf, bpf: Retain kernel executable code in memory to aid Intel PT tracing

2019-02-08 Thread Adrian Hunter
On 7/02/19 10:02 PM, Peter Zijlstra wrote: > On Thu, Feb 07, 2019 at 01:19:01PM +0200, Adrian Hunter wrote: >> Subject to memory pressure and other limits, retain executable code, such >> as JIT-compiled bpf, in memory instead of freeing it immediately it is no >> longer needed for execution. >> >>

Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization

2019-02-08 Thread Viresh Kumar
On 08-02-19, 09:12, Marek Szyprowski wrote: > On 2019-02-08 07:49, Viresh Kumar wrote: > > Why don't you get similar problem during suspend? I think you can get > > it when the CPUs are offlined as I2C would have gone by then. The > > cpufreq or OPP core can try and run some regulator or genpd or c

Re: [PATCH 2/3] drm: tweak header name

2019-02-08 Thread Daniel Vetter
On Fri, Feb 08, 2019 at 01:02:58AM -0500, Michael S. Tsirkin wrote: > Use linux/mman.h to make sure we get all mmap flags we need. > > Signed-off-by: Michael S. Tsirkin drmP.h is seriously deprecated (and a monster mess). If this fixes anything, I think would be better to include the right heade

Re: [PATCH 02/35] ARM: davinci: select GENERIC_IRQ_MULTI_HANDLER

2019-02-08 Thread Sekhar Nori
On 07/02/19 9:19 PM, Bartosz Golaszewski wrote: >>> +static asmlinkage void __exception_irq_entry >>> +cp_intc_handle_irq(struct pt_regs *regs) >>> +{ >>> + int irqnr = cp_intc_read(CP_INTC_PRIO_IDX); >>> + >>> + irqnr &= 0xff; >>> + >>> + handle_domain_irq(cp_intc_domain, irqnr, regs)

Re: [v3 PATCH 1/8] RISC-V: Do not wait indefinitely in __cpu_up

2019-02-08 Thread Christoph Hellwig
On Thu, Feb 07, 2019 at 05:51:14PM -0800, Atish Patra wrote: > In SMP path, __cpu_up waits for other CPU to come online > indefinitely. This is wrong as other CPU might be disabled > in machine mode and possible CPU is set to the cpus present > in DT. > > Introduce a completion variable and waits

Re: use generic DMA mapping code in powerpc V4

2019-02-08 Thread Christian Zigotzky
Hi Christoph, Your new patch fixes the problems with the P.A. Semi Ethernet! :-) Thanks, Christian On 07 February 2019 at 05:34AM, Christian Zigotzky wrote: Hi Christoph, I also didn’t notice the 32-bit DMA mask in your patch. I have to read your patches and descriptions carefully in the fu

Re: [LSF/MM TOPIC] The end of the DAX experiment

2019-02-08 Thread Johannes Thumshirn
On 07/02/2019 22:51, Kani, Toshi wrote: > I've also had multiple users complained about 'mount -o dax' succeeded > by falling back to non-dax despite of their intent. Such users wasted > many hours without knowing their setup error / current restrictions. > The next think they always ask is how to

Re: [PATCH 03/32] timens: Introduce CLOCK_MONOTONIC offsets

2019-02-08 Thread Andrei Vagin
On Thu, Feb 07, 2019 at 10:40:55PM +0100, Thomas Gleixner wrote: > On Wed, 6 Feb 2019, Dmitry Safonov wrote: > > #include "timekeeping.h" > > #include "posix-timers.h" > > @@ -1041,6 +1042,9 @@ SYSCALL_DEFINE2(clock_gettime, const clockid_t, > > which_clock, > > > > error = kc->clock_get(w

GET BACK TO ME IMMEDIATELY

2019-02-08 Thread Dr.Umaru Zongo
Dear Friend, I have a business proposal in the tune of $10.2 million USD for you to handle with me. I have opportunity to transfer this abandon fund to your bank account in your country which belongs to our client. I am inviting you in this transaction where this money can be shared between us at

Re: [v3 PATCH 2/8] RISC-V: Move cpuid to hartid mapping to SMP.

2019-02-08 Thread Christoph Hellwig
On Thu, Feb 07, 2019 at 05:51:15PM -0800, Atish Patra wrote: > Currently, logical CPU id to physical hartid mapping is > defined for both smp and non-smp configurations. This > is not required as we need this only for smp configuration. > The mapping function can define directly boot_cpu_hartid > f

Re: [v3 PATCH 6/8] clocksource/drivers/riscv: Add required checks during clock source init

2019-02-08 Thread Christoph Hellwig
On Thu, Feb 07, 2019 at 05:51:19PM -0800, Atish Patra wrote: > Currently, clocksource registration happens for an invalid cpu > for non-smp kernels. This lead to kernel panic as cpu hotplug > registration will fail for those cpus. Moreover, > riscv_hartid_to_cpuid can return errors now. > > Do not

[PATCH] mm,memory_hotplug: Explicitly pass the head to isolate_huge_page

2019-02-08 Thread Oscar Salvador
isolate_huge_page() expects we pass the head of hugetlb page to it: bool isolate_huge_page(...) { ... VM_BUG_ON_PAGE(!PageHead(page), page); ... } While I really cannot think of any situation where we end up with a non-head page between hands in do_migrate_range(), let us

Re: [PATCH 0/3] drivers: Frequency constraint infrastructure

2019-02-08 Thread Viresh Kumar
On 30-01-19, 10:55, Viresh Kumar wrote: > On 17-01-19, 14:16, Juri Lelli wrote: > > I was also wondering how this new framework is dealing with > > constraints/request imposed/generated by the scheduler and related > > interfaces (thinking about schedutil and Patrick's util_clamp). > > I am not ve

Re: [PATCH 0/3] drivers: Frequency constraint infrastructure

2019-02-08 Thread Viresh Kumar
On 11-01-19, 10:47, Rafael J. Wysocki wrote: > On Fri, Jan 11, 2019 at 10:18 AM Viresh Kumar wrote: > > > > Hi, > > > > This commit introduces the frequency constraint infrastructure, which > > provides a generic interface for parts of the kernel to constraint the > > working frequency range of a

Re: [v3 PATCH 8/8] RISC-V: Assign hwcap only according to boot cpu.

2019-02-08 Thread Christoph Hellwig
> + * We don't support running Linux on hertergenous ISA systems. > + * But first "okay" processor might not be the boot cpu. > + * Check the ISA of boot cpu. Please use up your available 80 characters per line in comments. > + /* > + * All "okay" hart shou

Re: [PATCH v2 0/2] drm/omap: panel-tpo-td028ttec1: add backlight support

2019-02-08 Thread Tomi Valkeinen
On 05/02/2019 08:38, Andreas Kemnade wrote: > This panel has a backlight, so add a property describing that and > add the code to use that. > This makes things like xset dpms force off > also turn off the backlight, so we do not need to rely on additional > userspace programs to do that. > > Andre

Re: [RFC PATCH] perf, bpf: Retain kernel executable code in memory to aid Intel PT tracing

2019-02-08 Thread Peter Zijlstra
On Fri, Feb 08, 2019 at 10:53:41AM +0200, Adrian Hunter wrote: > On 7/02/19 10:02 PM, Peter Zijlstra wrote: > > On Thu, Feb 07, 2019 at 01:19:01PM +0200, Adrian Hunter wrote: > >> Subject to memory pressure and other limits, retain executable code, such > >> as JIT-compiled bpf, in memory instead o

Re: [PATCH v2 4/4] arm64: kprobes: Use arch_populate_kprobe_blacklist()

2019-02-08 Thread Will Deacon
Hi Masami, On Mon, Jan 21, 2019 at 10:25:58PM +0900, Masami Hiramatsu wrote: > On Mon, 21 Jan 2019 12:20:07 + > James Morse wrote: > > On 15/01/2019 06:25, Masami Hiramatsu wrote: > > > Use arch_populate_kprobe_blacklist() instead of > > > arch_within_kprobe_blacklist() so that we can see the

Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization

2019-02-08 Thread Marek Szyprowski
Hi Viresh, On 2019-02-08 09:55, Viresh Kumar wrote: > On 08-02-19, 09:12, Marek Szyprowski wrote: >> On 2019-02-08 07:49, Viresh Kumar wrote: >>> Why don't you get similar problem during suspend? I think you can get >>> it when the CPUs are offlined as I2C would have gone by then. The >>> cpufreq

Re: use generic DMA mapping code in powerpc V4

2019-02-08 Thread Christoph Hellwig
On Fri, Feb 08, 2019 at 10:01:46AM +0100, Christian Zigotzky wrote: > Hi Christoph, > > Your new patch fixes the problems with the P.A. Semi Ethernet! :-) Thanks a lot once again for testing! Now can you test with this patch and the whole series? I've updated the powerpc-dma.6 branch to include

Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization

2019-02-08 Thread Viresh Kumar
On 08-02-19, 10:15, Marek Szyprowski wrote: > On 2019-02-08 09:55, Viresh Kumar wrote: > > On 08-02-19, 09:12, Marek Szyprowski wrote: > >> On 2019-02-08 07:49, Viresh Kumar wrote: > >>> Why don't you get similar problem during suspend? I think you can get > >>> it when the CPUs are offlined as I2C

Re: [PATCH 07/11] mtd: rawnand: denali: use bool type instead of int where appropriate

2019-02-08 Thread Joe Perches
On Fri, 2019-02-08 at 17:08 +0900, Masahiro Yamada wrote: > Use 'bool' type for some function arguments. > > - write (write or read?) > - raw (the raw access mode or not?) > > It is true that denali_nand_info::dma_avail is also boolean, but > I am keeping it as 'int' because 'scripts/checkpatch

Re: [PATCH v2] livepatch: core: Return EOPNOTSUPP instead of ENOSYS

2019-02-08 Thread Miroslav Benes
Hi Kamalesh, On Fri, 8 Feb 2019, Kamalesh Babulal wrote: > On Wed, Feb 06, 2019 at 11:28:32AM +0100, Petr Mladek wrote: > > On Tue 2019-02-05 09:59:33, Josh Poimboeuf wrote: > > > On Tue, Feb 05, 2019 at 03:33:28AM +0900, Alice Ferrazzi wrote: > > > > From: Alice Ferrazzi > > > > > > > > As a r

Re: [PATCH 5/7] dt-bindings: interrupt-controller: update bindings for MT7623

2019-02-08 Thread Marc Zyngier
On 07/02/2019 17:11, Matthias Brugger wrote: > > > On 29/01/2019 05:31, Ryder Lee wrote: >> This adds missing bindings for MT7623 sysirq. >> >> Signed-off-by: Ryder Lee > > Marc, if you don't have any objections, I'll take this through my tree. Sure, feel free to. Thanks, M. -- Jazz

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

2019-02-08 Thread Stephen Rothwell
Hi Daniel, On Fri, 8 Feb 2019 09:53:33 +0100 Daniel Vetter wrote: > > There isn't a "below" afaics Oops :-( However the merge diff is not very enlightening in this case anyway. It makes more sense to look at the final result when I finish up in a while. -- Cheers, Stephen Rothwell pgp

Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device"

2019-02-08 Thread Alim Akhtar
Hi Jeffrey, On 07/02/19 8:22 PM, Jeffrey Hugo wrote: > On 2/7/2019 1:50 AM, Alim Akhtar wrote: >> Hi Marc, >> >> On 06/02/19 9:22 PM, Marc Gonzalez wrote: >>> On 06/02/2019 16:27, Alim Akhtar wrote: >>> On 06/02/19 8:29 PM, Marc Gonzalez wrote: > [    2.405734] regulator_disable: ENT

Re: linux-next: build warning after merge of the drm-misc tree

2019-02-08 Thread Maxime Ripard
Hi Stephen, On Fri, Feb 08, 2019 at 12:32:04PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the drm-misc tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c: In function 'sun6i_dsi_probe': > drivers/gpu/drm/sun

Re: [PATCH] lib/string.c: make strncmp() smaller

2019-02-08 Thread Joe Perches
On Fri, 2019-02-08 at 10:34 +0300, Alexey Dobriyan wrote: > Space savings on x86_64: > > add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-29 (-29) > Function old new delta > strncmp 67 38 -29 >

Re: [PATCH 07/11] mtd: rawnand: denali: use bool type instead of int where appropriate

2019-02-08 Thread Masahiro Yamada
On Fri, Feb 8, 2019 at 6:24 PM Joe Perches wrote: > > On Fri, 2019-02-08 at 17:08 +0900, Masahiro Yamada wrote: > > Use 'bool' type for some function arguments. > > > > - write (write or read?) > > - raw (the raw access mode or not?) > > > > It is true that denali_nand_info::dma_avail is also bo

Re: [PATCH v2] livepatch: core: Return EOPNOTSUPP instead of ENOSYS

2019-02-08 Thread Petr Mladek
On Fri 2019-02-08 11:50:05, Kamalesh Babulal wrote: > On Wed, Feb 06, 2019 at 11:28:32AM +0100, Petr Mladek wrote: > > On Tue 2019-02-05 09:59:33, Josh Poimboeuf wrote: > > > On Tue, Feb 05, 2019 at 03:33:28AM +0900, Alice Ferrazzi wrote: > > > > From: Alice Ferrazzi > > > > > > > > As a result o

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

2019-02-08 Thread Daniel Vetter
On Fri, Feb 8, 2019 at 10:26 AM Stephen Rothwell wrote: > > Hi Daniel, > > On Fri, 8 Feb 2019 09:53:33 +0100 Daniel Vetter wrote: > > > > There isn't a "below" afaics > > Oops :-( However the merge diff is not very enlightening in this case > anyway. It makes more sense to look at the fina

Re: [PATCH v10 12/25] arm64: irqflags: Use ICC_PMR_EL1 for interrupt masking

2019-02-08 Thread Julien Thierry
Hi Nathan, On 08/02/2019 04:35, Nathan Chancellor wrote: > On Thu, Jan 31, 2019 at 02:58:50PM +, Julien Thierry wrote: [...] > > Hi Julien, > > This patch introduced a slew of Clang warnings: > > In file included from arch/arm64/kernel/signal.c:21: > In file included from include/linux/co

Re: [RFC v2 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible

2019-02-08 Thread Lucas Stach
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov: > Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for > to allow i.MX6 PCIe driver to use it. > > > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach > Cc:

Re: [PATCH/RFC] driver core: Postpone DMA tear-down until after devres release

2019-02-08 Thread Rafael J. Wysocki
On Thu, Feb 7, 2019 at 8:42 PM Geert Uytterhoeven wrote: > > When unbinding the (IOMMU-enabled) R-Car SATA device on Salvator-XS > (R-Car H3 ES2.0), in preparation of rebinding against vfio-platform for > device pass-through for virtualization: > > echo ee30.sata > /sys/bus/platform/driver

Re: [RFC v2 2/5] arm64: dts: imx8mq: Add a node for SRC IP block

2019-02-08 Thread Lucas Stach
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov: > Add a node for reset controller IP block found on i.MX8MQ. > > > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach > Cc: Leonard Crestez > Cc: "A.s. Dong" > Cc: Richard Z

Re: [RFC v2 3/5] arm64: dts: imx8mq: Combine PCIE power domains

2019-02-08 Thread Lucas Stach
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov: > According to NXP's FAE feedback and a comment in ATF firmware, PCIE1 > and PCIE2 power domains can't really be used independently. Due to > shared reset line both power domains have to be turned on at the same > time. Account for

Re: [RFC/PATCH 0/5] DVFS in the OPP core

2019-02-08 Thread Ulf Hansson
On Fri, 8 Feb 2019 at 08:17, Viresh Kumar wrote: > > On 07-02-19, 14:37, Ulf Hansson wrote: > > I think we also need to consider cross SoC drivers. One SoC may have > > both clocks and OPPs to manage, while another may have only clocks. > > We already have that case with CPUs as well and dev_pm_op

Re: [PATCH 03/32] timens: Introduce CLOCK_MONOTONIC offsets

2019-02-08 Thread Thomas Gleixner
On Thu, 7 Feb 2019, Thomas Gleixner wrote: > Does this really need to be an out of line call? If you stick this into the > clock_get() implementations then it boils down to: > > static inline void timens_add_monotonic(struct timespec64 *ts) > { > struct timens_offsets *ns_offsets = current->

Re: [RFC v2 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks

2019-02-08 Thread Lucas Stach
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov: > Add nodes for two PCIe controllers found on i.MX8MQ. > > > Signed-off-by: Andrey Smirnov > > Cc: Shawn Guo > > Cc: Fabio Estevam > > Cc: Chris Healy > > Cc: Lucas Stach > > Cc: Leonard Crestez > > Cc: "A.s. Dong" > > Cc: R

Re: [PATCH] HISI LPC: Don't fail probe for unrecognised child devices

2019-02-08 Thread Wei Xu
Hi John, On 1/3/2019 11:57 AM, John Garry wrote: > Currently for ACPI-based FW we fail the probe for an unrecognised child > HID. > > However, there is FW in the field with LPC child devices having fake HIDs, > namely "IPI0002", which was an IPMI device invented to support the > initial out-of-tr

Re: [PATCH 04/11] mtd: rawnand: denali: switch over to ->exec_op() from legacy hooks

2019-02-08 Thread Masahiro Yamada
On Fri, Feb 8, 2019 at 5:09 PM Masahiro Yamada wrote: > > Implement ->exec_op(). > > Remove the deprecated select_chip(), read_byte(), write_byte(), > cmd_ctrl(), and waitfunc(). I also deleted read_buf(), write_buf(). Will fix the log. -- Best Regards Masahiro Yamada

RE: [PATCH net] sctp: make sctp_setsockopt_events() less strict about the option length

2019-02-08 Thread David Laight
From: 'Marcelo Ricardo Leitner' > Sent: 07 February 2019 17:47 ... > > > Maybe what we want(ed) here then is explicit versioning, to have the 3 > > > definitions available. Then the application is able to use, say struct > > > sctp_event_subscribe, and be happy with it, while there is struct > > >

Re: [RFC v2 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface

2019-02-08 Thread Lucas Stach
Am Donnerstag, den 07.02.2019, 16:29 -0800 schrieb Andrey Smirnov: > Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module. > > > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach > Cc: Leonard Crestez > Cc: "A.s. Dong" > Cc: R

Re: [PATCH 0/3] drivers: Frequency constraint infrastructure

2019-02-08 Thread Rafael J. Wysocki
On Fri, Feb 8, 2019 at 10:09 AM Viresh Kumar wrote: > > On 11-01-19, 10:47, Rafael J. Wysocki wrote: > > On Fri, Jan 11, 2019 at 10:18 AM Viresh Kumar > > wrote: > > > > > > Hi, > > > > > > This commit introduces the frequency constraint infrastructure, which > > > provides a generic interface f

Re: [PATCH 1/2] Revert "mm: don't reclaim inodes with many attached pages"

2019-02-08 Thread Jan Kara
On Thu 07-02-19 21:37:27, Andrew Morton wrote: > On Thu, 7 Feb 2019 11:27:50 +0100 Jan Kara wrote: > > > On Fri 01-02-19 09:19:04, Dave Chinner wrote: > > > Maybe for memcgs, but that's exactly the oppose of what we want to > > > do for global caches (e.g. filesystem metadata caches). We need to

Re: [PATCH net-next] ipvs: Use struct_size() helper

2019-02-08 Thread Simon Horman
On Thu, Feb 07, 2019 at 06:44:56PM -0600, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct f

Re: [PATCH v3] [media] v4l: add I / P frame min max QP definitions

2019-02-08 Thread Hans Verkuil
On 1/30/19 10:11 AM, Fish Lin wrote: > Add following V4L2 QP parameters for H.264: > * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MIN_QP > * V4L2_CID_MPEG_VIDEO_H264_I_FRAME_MAX_QP > * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MIN_QP > * V4L2_CID_MPEG_VIDEO_H264_P_FRAME_MAX_QP > > These controls will limit QP ra

Re: [PATCH 16/32] x86/vdso: Generate vdso{,32}-timens.lds

2019-02-08 Thread Thomas Gleixner
On Thu, 7 Feb 2019, Rasmus Villemoes wrote: Cc: + Vincenzo, Will > On 06/02/2019 01.10, Dmitry Safonov wrote: > > As it has been discussed on timens RFC, adding a new conditional branch > > `if (inside_time_ns)` on VDSO for all processes is undesirable. > > It will add a penalty for everybody as

[PATCH v2] panic/reboot: allow specifying reboot_mode for panic only

2019-02-08 Thread Aaro Koskinen
From: Aaro Koskinen Allow specifying reboot_mode for panic only. This is needed on systems where ramoops is used to store panic logs, and user wants to use warm reset to preserve those, while still having cold reset on normal reboots. Signed-off-by: Aaro Koskinen --- v2: Use REBOOT_UND

Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device"

2019-02-08 Thread Marc Gonzalez
+ Yaniv (just in case) + Hannes (if he remembers) We're discussing commit 60f0187031c05e04cbadffb62f557d0ff3564490 On 08/02/2019 10:09, Alim Akhtar wrote: > On 07/02/19 8:22 PM, Jeffrey Hugo wrote: > >> Did you see https://lkml.org/lkml/2019/2/5/659 where I indicated VCCQ >> powers components

Re: [PATCH 0/2] cpufreq/opp: rework regulator initialization

2019-02-08 Thread Marek Szyprowski
Hi Viresh, On 2019-02-08 10:23, Viresh Kumar wrote: > On 08-02-19, 10:15, Marek Szyprowski wrote: >> On 2019-02-08 09:55, Viresh Kumar wrote: >>> On 08-02-19, 09:12, Marek Szyprowski wrote: On 2019-02-08 07:49, Viresh Kumar wrote: > Why don't you get similar problem during suspend? I thin

Re: [PATCH 1/2] memblock: remove memblock_{set,clear}_region_flags

2019-02-08 Thread Mike Rapoport
On Thu, Feb 07, 2019 at 10:02:24PM +0530, Souptick Joarder wrote: > On Wed, Feb 6, 2019 at 6:01 PM Mike Rapoport wrote: > > > > The memblock API provides dedicated helpers to set or clear a flag on a > > memory region, e.g. memblock_{mark,clear}_hotplug(). > > > > The memblock_{set,clear}_region_f

Re: [PATCH 4.4 00/34] 4.4.174-stable review

2019-02-08 Thread Jon Hunter
On 07/02/2019 11:41, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.174 release. > There are 34 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [RFC/PATCH 0/5] DVFS in the OPP core

2019-02-08 Thread Viresh Kumar
On 08-02-19, 10:45, Ulf Hansson wrote: > On Fri, 8 Feb 2019 at 08:17, Viresh Kumar wrote: > > > > On 07-02-19, 14:37, Ulf Hansson wrote: > > > I think we also need to consider cross SoC drivers. One SoC may have > > > both clocks and OPPs to manage, while another may have only clocks. > > > > We a

[PATCH] rtc: imx-sc: depend on HAVE_ARM_SMCCC

2019-02-08 Thread Alexandre Belloni
Fix the following build issue: drivers/rtc/rtc-imx-sc.o: In function `imx_sc_rtc_set_time': >> rtc-imx-sc.c:(.text+0x212): undefined reference to `__arm_smccc_smc' Fixes: 13a929f38ad7 ("rtc: imx-sc: add rtc set time support") Signed-off-by: Alexandre Belloni --- drivers/rtc/Kconfig | 1 + 1 fil

[PATCH v7 02/15] sched/core: uclamp: Enforce last task UCLAMP_MAX

2019-02-08 Thread Patrick Bellasi
When the task sleeps, it removes its max utilization clamp from its CPU. However, the blocked utilization on that CPU can be higher than the max clamp value enforced while the task was running. This allows undesired CPU frequency increases while a CPU is idle, for example, when another CPU on the s

[PATCH v7 03/15] sched/core: uclamp: Add system default clamps

2019-02-08 Thread Patrick Bellasi
Tasks without a user-defined clamp value are considered not clamped and by default their utilization can have any value in the [0..SCHED_CAPACITY_SCALE] range. Tasks with a user-defined clamp value are allowed to request any value in that range, and we unconditionally enforce the required clamps.

[PATCH v7 04/15] sched/core: Allow sched_setattr() to use the current policy

2019-02-08 Thread Patrick Bellasi
The sched_setattr() syscall mandates that a policy is always specified. This requires to always know which policy a task will have when attributes are configured and it makes it impossible to add more generic task attributes valid across different scheduling policies. Reading the policy before sett

[PATCH v7 05/15] sched/core: uclamp: Extend sched_setattr() to support utilization clamping

2019-02-08 Thread Patrick Bellasi
The SCHED_DEADLINE scheduling class provides an advanced and formal model to define tasks requirements that can translate into proper decisions for both task placements and frequencies selections. Other classes have a more simplified model based on the POSIX concept of priorities. Such a simple pr

[PATCH v7 13/15] sched/core: uclamp: Propagate system defaults to root group

2019-02-08 Thread Patrick Bellasi
The clamp values are not tunable at the level of the root task group. That's for two main reasons: - the root group represents "system resources" which are always entirely available from the cgroup standpoint. - when tuning/restricting "system resources" makes sense, tuning must be done u

  1   2   3   4   5   6   7   8   9   10   >