Re: [PATCH V3 2/4] arm64/mm: Hold memory hotplug lock while walking for kernel page table dump

2019-05-16 Thread Michal Hocko
On Thu 16-05-19 11:23:54, Mark Rutland wrote: > Hi Michal, > > On Wed, May 15, 2019 at 06:58:47PM +0200, Michal Hocko wrote: > > On Tue 14-05-19 14:30:05, Anshuman Khandual wrote: > > > The arm64 pagetable dump code can race with concurrent modification of the > > > kernel page tables. When a leaf

Re: [PATCH 5.1 00/46] 5.1.3-stable review

2019-05-16 Thread Jon Hunter
On 15/05/2019 11:56, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.3 release. > There are 46 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 shou

Re: [PATCH 5.0 000/137] 5.0.17-stable review

2019-05-16 Thread Jon Hunter
On 15/05/2019 11:54, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.0.17 release. > There are 137 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: [PATCH 4.19 000/113] 4.19.44-stable review

2019-05-16 Thread Jon Hunter
On 15/05/2019 11:54, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.44 release. > There are 113 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 s

Re: [PATCH 4.14 000/115] 4.14.120-stable review

2019-05-16 Thread Jon Hunter
On 15/05/2019 11:54, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.120 release. > There are 115 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

Re: [PATCH 4.9 00/51] 4.9.177-stable review

2019-05-16 Thread Jon Hunter
On 15/05/2019 11:55, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.177 release. > There are 51 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: [PATCH 4.4 000/266] 4.4.180-stable review

2019-05-16 Thread Jon Hunter
On 15/05/2019 11:51, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.180 release. > There are 266 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 s

Re: [PATCH V3 4/4] arm64/mm: Enable memory hot remove

2019-05-16 Thread Mark Rutland
On Thu, May 16, 2019 at 11:04:48AM +0530, Anshuman Khandual wrote: > On 05/15/2019 05:19 PM, Mark Rutland wrote: > > On Tue, May 14, 2019 at 02:30:07PM +0530, Anshuman Khandual wrote: > >> Memory removal from an arch perspective involves tearing down two different > >> kernel based mappings i.e vme

Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall

2019-05-16 Thread Arnd Bergmann
On Thu, May 16, 2019 at 12:20 PM Roman Penyaev wrote: > > On 2019-05-16 12:03, Arnd Bergmann wrote: > > On Thu, May 16, 2019 at 10:59 AM Roman Penyaev > > wrote: > >> > >> epoll_create2() is needed to accept EPOLL_USERPOLL flags > >> and size, i.e. this patch wires up polling from userspace. > >

Good day

2019-05-16 Thread info
Hello, My name is Isaac. I have a business proposal to share with you. Please respond if you are interested. Respectfully, Isaac

RE: [PATCH V12 3/5] thermal: imx_sc: add i.MX system controller thermal support

2019-05-16 Thread Anson Huang
> -Original Message- > From: Aisheng Dong > Sent: Thursday, May 16, 2019 6:40 PM > To: Anson Huang ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; s.ha...@pengutronix.de; > ker...@pengutronix.de; feste...@gmail.com; catalin.mari...@arm.com; > will.dea...@arm.com; rui.zh

Re: [PATCH] arm64: vdso: Explicitly add build-id option

2019-05-16 Thread Will Deacon
On Thu, May 16, 2019 at 01:58:56PM +0900, Masahiro Yamada wrote: > On Thu, May 16, 2019 at 4:51 AM Laura Abbott wrote: > > > > Commit 691efbedc60d ("arm64: vdso: use $(LD) instead of $(CC) to > > link VDSO") switched to using LD explicitly. The --build-id option > > needs to be passed explicitly,

Re: [PATCH RFC 0/5] mm/ksm, proc: introduce remote madvise

2019-05-16 Thread Michal Hocko
On Thu 16-05-19 11:42:29, Oleksandr Natalenko wrote: [...] > * to mark all the eligible VMAs as mergeable, use: > ># echo merge > /proc//madvise > > * to unmerge all the VMAs, use: > ># echo unmerge > /proc//madvise Please do not open a new thread until a previous one reaches some concl

[PATCH] ACPI: PM: Call pm_set_suspend_via_firmware() during hibernation

2019-05-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki On systems with ACPI platform firmware the last stage of hibernation is analogous to system suspend to S3 (suspend-to-RAM), so it should be handled analogously. In particular, pm_suspend_via_firmware() should return 'true' in that stage to let the callers of it know that

[PATCH] ACPI/PCI: PM: Add missing wakeup.flags.valid checks

2019-05-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Both acpi_pci_need_resume() and acpi_dev_needs_resume() check if the current ACPI wakeup configuration of the device matches what is expected as far as system wakeup from sleep states is concerned, as reflected by the device_may_wakeup() return value for the device. Howev

Re: [PATCH v2] media/doc: Allow sizeimage to be set by v4l clients

2019-05-16 Thread Hans Verkuil
On 5/16/19 11:56 AM, Tomasz Figa wrote: > On Thu, May 16, 2019 at 5:09 PM Stanimir Varbanov > wrote: >> >> Hi Hans, >> >> On 5/14/19 11:54 AM, Hans Verkuil wrote: >>> Hi Stanimir, >>> >>> On 4/12/19 5:59 PM, Stanimir Varbanov wrote: This changes v4l2_pix_format and v4l2_plane_pix_format sizei

RE: [PATCH V12 3/5] thermal: imx_sc: add i.MX system controller thermal support

2019-05-16 Thread Aisheng Dong
[...] > > > + if (!sensor) > > > + return -ENOMEM; > > > + > > > + ret = thermal_zone_of_get_sensor_id(child, > > > + &sensor_specs, > > > > It looks a bit strange why need sensor_specs as you even did not use it. > > It

[RFC 08/16] objtool: arm64: Adapt the stack frame checks for arm architecture

2019-05-16 Thread Raphael Gault
Since the way the initial stack frame when entering a function is different that what is done in the x86_64 architecture, we need to add some more check to support the different cases. As opposed as for x86_64, the return address is not stored by the call instruction but is instead loaded in a reg

[RFC 10/16] arm64: sleep: Prevent stack frame warnings from objtool

2019-05-16 Thread Raphael Gault
This code doesn't respect the Arm PCS but it is intended this way. Adapting it to respect the PCS would result in altering the behaviour. In order to suppress objtool's warnings, we setup a stack frame for __cpu_suspend_enter and annotate cpu_resume and _cpu_resume as having non-standard stack fra

[RFC 06/16] arm64: alternative: Mark .altinstr_replacement as containing executable instructions

2019-05-16 Thread Raphael Gault
Until now, the section .altinstr_replacement wasn't marked as containing executable instructions on arm64. This patch changes that so that it is coherent with what is done on x86. Signed-off-by: Raphael Gault --- arch/arm64/include/asm/alternative.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

[RFC 05/16] objtool: arm64: Handle hypercalls as nops

2019-05-16 Thread Raphael Gault
We consider that the hypervisor/secure-monitor is behaving correctly. This enables us to handle hvc/smc/svc context switching instructions as nop since we consider that the context is restored correctly. This enables us to get rid of the "unsupported instruction in callable function" warning which

[RFC 09/16] arm64: assembler: Add macro to annotate asm function having non standard stack-frame.

2019-05-16 Thread Raphael Gault
Some functions don't have standard stack-frames but are intended this way. In order for objtool to ignore those particular cases we add a macro that enables us to annotate the cases we chose to mark as particular. Signed-off-by: Raphael Gault --- arch/arm64/include/asm/assembler.h | 13 +

[RFC 13/16] arm64: kernel: Add exception on kuser32 to prevent stack analysis

2019-05-16 Thread Raphael Gault
kuser32 being used for compatibility, it contains a32 instructions which are not recognised by objtool when trying to analyse arm64 object files. Thus, we add an exception to skip validation on this particular file. Signed-off-by: Raphael Gault --- arch/arm64/kernel/Makefile | 3 +++ 1 file chan

[RFC 15/16] objtool: Introduce INSN_UNKNOWN type

2019-05-16 Thread Raphael Gault
On arm64 some object files contain data stored in the .text section. This data is interpreted by objtool as instruction but can't be identified as a valid one. In order to keep analysing those files we introduce INSN_UNKNOWN type. The "unknown instruction" warning will thus only be raised if such i

[RFC 14/16] arm64: crypto: Add exceptions for crypto object to prevent stack analysis

2019-05-16 Thread Raphael Gault
Some crypto modules contain `.word` of data in the .text section. Since objtool can't make the distinction between data and incorrect instruction, it gives a warning about the instruction beeing unknown and stops the analysis of the object file. The exception can be removed if the data are moved t

[RFC 04/16] objtool: arm64: Add required implementation for supporting the aarch64 architecture in objtool.

2019-05-16 Thread Raphael Gault
Provide implementation for the arch-dependent functions that are called by the main check function of objtool. The ORC unwinder is not yet supported by the arm64 architecture so we only provide a dummy interface for now. The decoding of the instruction is split into classes and subclasses as descr

[RFC 16/16] arm64: kernel: Annotate non-standard stack frame functions

2019-05-16 Thread Raphael Gault
Annotate assembler functions which are callable but do not setup a correct stack frame. Signed-off-by: Raphael Gault --- arch/arm64/kernel/hyp-stub.S | 2 ++ arch/arm64/kvm/hyp-init.S| 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp-s

[RFC 11/16] objtool: arm64: Enable stack validation for arm64

2019-05-16 Thread Raphael Gault
Signed-off-by: Raphael Gault --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7e34b9eba5de..01ef19d26bfa 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -152,6 +152,7 @@ config ARM64 select HAVE_RCU_TABLE_

[RFC 12/16] arm64: kvm: Annotate non-standard stack frame functions

2019-05-16 Thread Raphael Gault
Both __guest_entry and __guest_exit functions do not setup a correct stack frame. Because they can be considered as callable functions, even if they are particular cases, we chose to silence the warnings given by objtool by annotating them as non-standard. Signed-off-by: Raphael Gault --- arch/a

[RFC 02/16] objtool: orc: Refactor ORC API for other architectures to implement.

2019-05-16 Thread Raphael Gault
The ORC unwinder is only supported on x86 at the moment and should thus be in the x86 architecture code. In order not to break the whole structure in case another architecture decides to support the ORC unwinder via objtool we choose to let the implementation be done in the architecture dependent c

[RFC 07/16] objtool: special: Adapt special section handling

2019-05-16 Thread Raphael Gault
This patch abstracts the few architecture dependent tests that are perform when handling special section and switch tables. It enables any architecture to ignore a particular CPU feature or not to handle switch tables. Signed-off-by: Raphael Gault --- tools/objtool/arch/arm64/Build

[RFC 01/16] objtool: Add abstraction for computation of symbols offsets

2019-05-16 Thread Raphael Gault
The jump destination and relocation offset used previously are only reliable on x86_64 architecture. We abstract these computations by calling arch-dependent implementations. Signed-off-by: Raphael Gault --- tools/objtool/arch.h| 6 ++ tools/objtool/arch/x86/decode.c | 11 ++

[RFC 03/16] objtool: Move registers and control flow to arch-dependent code

2019-05-16 Thread Raphael Gault
The control flow information and register macro definitions were based on the x86_64 architecture but should be abstract so that each architecture can define the correct values for the registers, especially the registers related to the stack frame (Frame Pointer, Stack Pointer and possibly Return A

[RFC V2 00/16] objtool: Add support for Arm64

2019-05-16 Thread Raphael Gault
As of now, objtool only supports the x86_64 architecture but the groundwork has already been done in order to add support for other architectures without too much effort. This series of patches adds support for the arm64 architecture based on the Armv8.5 Architecture Reference Manual. Objtool wil

[GIT PULL] EDAC fixes for 5.2

2019-05-16 Thread Borislav Petkov
Hi Linus, please pull two EDAC fixes, as below. Thx. --- The following changes since commit 275b103a26e218b3d739e5ab15be6b40303a1428: Merge tag 'edac_for_5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp (2019-05-06 19:53:11 -0700) are available in the Git repository at: git://

general protection fault in ext4_mb_initialize_context

2019-05-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8834f560 Linux 5.0-rc5 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14c8021f40 kernel config: https://syzkaller.appspot.com/x/.config?x=8f00801d7b7c4fe6 dashboard link: https://syzkaller.appspo

[PATCH v3 3/3] fdt: add support for rng-seed

2019-05-16 Thread Hsin-Yi Wang
Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. Bootloader should provide this entropy and the value is read from /chosen/rng-seed in DT. Signed-off-by: Hsin-Yi Wang --- change v2->v3: 1. use arch hook

[PATCH v3 2/3] arm64: implement update_fdt_pgprot()

2019-05-16 Thread Hsin-Yi Wang
Basically does similar things like __fixmap_remap_fdt(). It's supposed to be called after fixmap_remap_fdt() is called at least once, so region checking can be skipped. Since it needs to know dt physical address, make a copy of the value of __fdt_pointer. Signed-off-by: Hsin-Yi Wang --- arch/arm

[PATCH v3 1/3] include/of_fdt.h: add a weak arch hook to update fdt pgprot

2019-05-16 Thread Hsin-Yi Wang
Does nothing as default, arch can implement their function to map fdt to RO/RW. This is convenient if arch map fdt to RO during init but needs to write fdt in some special cases after that. Signed-off-by: Hsin-Yi Wang --- drivers/of/fdt.c | 13 + include/linux/of_fdt.h | 2 ++

Re: [PATCH v6 11/12] soc: mediatek: cmdq: add cmdq_dev_get_event function

2019-05-16 Thread CK Hu
Hi, Bibby: On Thu, 2019-05-16 at 17:02 +0800, Bibby Hsieh wrote: > When client ask gce to clear or wait for event, > client need to pass event number to the API. > We suggest client store the event information in device node, > so we provide an API for client parse the event property. > > Signed-

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Quentin Deslandes
On Thu, May 16, 2019 at 12:19:53PM +0200, Greg Kroah-Hartman wrote: > On Thu, May 16, 2019 at 09:50:38AM +, Quentin Deslandes wrote: > > On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > > > On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > > > > Fixed 'se

Re: [PATCH V3 2/4] arm64/mm: Hold memory hotplug lock while walking for kernel page table dump

2019-05-16 Thread Mark Rutland
Hi Michal, On Wed, May 15, 2019 at 06:58:47PM +0200, Michal Hocko wrote: > On Tue 14-05-19 14:30:05, Anshuman Khandual wrote: > > The arm64 pagetable dump code can race with concurrent modification of the > > kernel page tables. When a leaf entries are modified concurrently, the dump > > code may

[PATCH] vfs: Move kernel_read_file() to fs/read_write.c

2019-05-16 Thread David Howells
Commit bdd1d2d3d251 ("fs: fix kernel_read prototype") moved kernel_read() to fs/read_write.c without moving the helpers. Move kernel_read_file() to fs/read_write.c and out of fs/exec.c as it's not actually used by anything in the execve subsystem. Signed-off-by: David Howells Reviewed-by: Mimi Z

Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall

2019-05-16 Thread Roman Penyaev
On 2019-05-16 12:03, Arnd Bergmann wrote: On Thu, May 16, 2019 at 10:59 AM Roman Penyaev wrote: epoll_create2() is needed to accept EPOLL_USERPOLL flags and size, i.e. this patch wires up polling from userspace. Could you add the system call to all syscall*.tbl files at the same time here?

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Greg Kroah-Hartman
On Thu, May 16, 2019 at 09:50:38AM +, Quentin Deslandes wrote: > On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > > On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > > > Fixed 'set but not used' warning message on a status variable. The > > > called funct

Applied "spi: bitbang: Fix NULL pointer dereference in spi_unregister_master" to the spi tree

2019-05-16 Thread Mark Brown
The patch spi: bitbang: Fix NULL pointer dereference in spi_unregister_master has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Re: [PATCH V2] ASoC: cs42xx8: Add reset gpio handling

2019-05-16 Thread Mark Brown
On Thu, May 16, 2019 at 06:04:58AM +, S.j. Wang wrote: > + cs42xx8->gpiod_reset = devm_gpiod_get_optional(dev, "reset", > + GPIOD_OUT_HIGH); > + if (IS_ERR(cs42xx8->gpiod_reset)) > + return PTR_ERR(cs42xx8->gpiod_reset);

Re: [PATCH v2 12/30] dax: remove block device dependencies

2019-05-16 Thread Stefan Hajnoczi
On Wed, May 15, 2019 at 05:21:51PM -0700, Dan Williams wrote: > On Wed, May 15, 2019 at 12:28 PM Vivek Goyal wrote: > > > > From: Stefan Hajnoczi > > > > Although struct dax_device itself is not tied to a block device, some > > DAX code assumes there is a block device. Make block devices optiona

Re: [PATCH V3 1/2] soc: imx: Add SCU SoC info driver support

2019-05-16 Thread Leonard Crestez
On 16.05.2019 06:24, Anson Huang wrote: > Add i.MX SCU SoC info driver to support i.MX8QXP SoC, introduce > driver dependency into Kconfig as CONFIG_IMX_SCU must be > selected to support i.MX SCU SoC driver, also need to use > platform driver model to make sure IMX_SCU driver is probed > before i.M

Re: [PATCH v3 13/13] epoll: implement epoll_create2() syscall

2019-05-16 Thread Arnd Bergmann
On Thu, May 16, 2019 at 10:59 AM Roman Penyaev wrote: > > epoll_create2() is needed to accept EPOLL_USERPOLL flags > and size, i.e. this patch wires up polling from userspace. Could you add the system call to all syscall*.tbl files at the same time here? Arnd

Re: [PATCH RFC 4/5] mm/ksm, proc: introduce remote merge

2019-05-16 Thread Jann Horn
On Thu, May 16, 2019 at 11:43 AM Oleksandr Natalenko wrote: > Use previously introduced remote madvise knob to mark task's > anonymous memory as mergeable. > > To force merging task's VMAs, "merge" hint is used: > ># echo merge > /proc//madvise > > Force unmerging is done similarly: > ># e

Re: [PATCH v2] media/doc: Allow sizeimage to be set by v4l clients

2019-05-16 Thread Tomasz Figa
On Thu, May 16, 2019 at 5:09 PM Stanimir Varbanov wrote: > > Hi Hans, > > On 5/14/19 11:54 AM, Hans Verkuil wrote: > > Hi Stanimir, > > > > On 4/12/19 5:59 PM, Stanimir Varbanov wrote: > >> This changes v4l2_pix_format and v4l2_plane_pix_format sizeimage > >> field description to allow v4l clients

Re: [PATCH] spi: bitbang: Fix NULL pointer dereference in spi_unregister_master

2019-05-16 Thread Mark Brown
On Thu, May 16, 2019 at 03:56:56PM +0800, YueHaibing wrote: > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 > 04/01/2014 > Call Trace: > dump_stack+0xa9/0x10e > ? __list_del_entry_valid+0x45/0xd0 > ? __list_del_entry_valid+0x45/0xd0 > __kasan_report+0x171/0x18d >

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Quentin Deslandes
On Thu, May 16, 2019 at 11:39:51AM +0200, Greg Kroah-Hartman wrote: > On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > > Fixed 'set but not used' warning message on a status variable. The > > called function returning the status code 'vnt_start_interrupt_urb()' > > clean up afte

[PATCH RFC 0/5] mm/ksm, proc: introduce remote madvise

2019-05-16 Thread Oleksandr Natalenko
It all began with the fact that KSM works only on memory that is marked by madvise(). And the only way to get around that is to either: * use LD_PRELOAD; or * patch the kernel with something like UKSM or PKSM. (i skip ptrace can of worms here intentionally) To overcome this restriction, lets

[PATCH RFC 5/5] mm/ksm, proc: add remote madvise documentation

2019-05-16 Thread Oleksandr Natalenko
Document respective /proc//madvise knob. Signed-off-by: Oleksandr Natalenko --- Documentation/filesystems/proc.txt | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 66cad5c86171..17106e435bba 100644 -

Re: [PATCH] spi: bitbang: Fix NULL pointer dereference in spi_unregister_master

2019-05-16 Thread Mukesh Ojha
On 5/16/2019 1:26 PM, YueHaibing wrote: If spi_register_master fails in spi_bitbang_start because device_add failure, We should return the error code other than 0, otherwise calling spi_bitbang_stop may trigger NULL pointer dereference like this: BUG: KASAN: null-ptr-deref in __list_del_entry_

[PATCH RFC 1/5] proc: introduce madvise placeholder

2019-05-16 Thread Oleksandr Natalenko
Add a write-only /proc//madvise file to handle remote madvise operations. For now, this is just a soother that does nothing. Signed-off-by: Oleksandr Natalenko --- fs/proc/base.c | 20 1 file changed, 20 insertions(+) diff --git a/fs/proc/base.c b/fs/proc/base.c index 6a80

[PATCH RFC 4/5] mm/ksm, proc: introduce remote merge

2019-05-16 Thread Oleksandr Natalenko
Use previously introduced remote madvise knob to mark task's anonymous memory as mergeable. To force merging task's VMAs, "merge" hint is used: # echo merge > /proc//madvise Force unmerging is done similarly: # echo unmerge > /proc//madvise To achieve this, previously introduced ksm_madv

RE: [EXT] Re: [v1] drm/arm/mali-dp: Disable checking for required pixel clock rate

2019-05-16 Thread Wen He
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: 2019年5月16日 1:14 > To: Wen He ; dri-de...@lists.freedesktop.org; > linux-kernel@vger.kernel.org; liviu.du...@arm.com > Cc: Leo Li > Subject: [EXT] Re: [v1] drm/arm/mali-dp: Disable checking for required pixel

[PATCH RFC 3/5] mm/ksm: introduce ksm_madvise_unmerge() helper

2019-05-16 Thread Oleksandr Natalenko
Move MADV_UNMERGEABLE part of ksm_madvise() into a dedicated helper since it will be further used for unmerging VMAs forcibly. This does not bring any functional changes. Signed-off-by: Oleksandr Natalenko --- include/linux/ksm.h | 2 ++ mm/ksm.c| 32 ++-

[PATCH RFC 2/5] mm/ksm: introduce ksm_madvise_merge() helper

2019-05-16 Thread Oleksandr Natalenko
Move MADV_MERGEABLE part of ksm_madvise() into a dedicated helper since it will be further used for marking VMAs to be merged forcibly. This does not bring any functional changes. Signed-off-by: Oleksandr Natalenko --- include/linux/ksm.h | 2 ++ mm/ksm.c| 60 ++

Re: [PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Greg Kroah-Hartman
On Thu, May 16, 2019 at 09:31:05AM +, Quentin Deslandes wrote: > Fixed 'set but not used' warning message on a status variable. The > called function returning the status code 'vnt_start_interrupt_urb()' > clean up after itself and the caller function > 'vnt_int_start_interrupt()' does not retu

Re: [PATCH v3 3/3] PCI: qcom: Add QCS404 PCIe controller support

2019-05-16 Thread Stanimir Varbanov
Hi Bjorn, On 5/2/19 3:19 AM, Bjorn Andersson wrote: > The QCS404 platform contains a PCIe controller of version 2.4.0 and a > Qualcomm PCIe2 PHY. The driver already supports version 2.4.0, for the > IPQ4019, but this support touches clocks and resets related to the PHY > as well, and there's no up

Re: [RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-16 Thread Masahiro Yamada
Hi David, On Thu, May 16, 2019 at 6:00 PM David Laight wrote: > > From: Masahiro Yamada > > Sent: 15 May 2019 18:55 > ... > > > xargs basename -a -- | sort | ... > > > > Sorry for my ignorance, but could you > > teach me the effect of "--" ? > > > > I sometimes use "--" as a separator > > whe

Re: [PATCH V12 2/5] thermal: of-thermal: add API for getting sensor ID from DT

2019-05-16 Thread Daniel Lezcano
On 16/04/2019 05:22, Anson Huang wrote: > On some platforms like i.MX8QXP, the thermal driver needs a > real HW sensor ID from DT thermal zone, the HW sensor ID is > used to get temperature from SCU firmware, and the virtual > sensor ID starting from 0 to N is NOT used at all, this patch > adds new

Re: [PATCH V12 3/5] thermal: imx_sc: add i.MX system controller thermal support

2019-05-16 Thread Daniel Lezcano
On 16/04/2019 05:22, Anson Huang wrote: > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > inside, the system controller is in charge of controlling power, > clock and thermal sensors etc.. > > This patch adds i.MX system controller thermal driver support, > Linux kernel has to c

[PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-16 Thread Priit Laes
Lime2 has battery connector so enable these supplies. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index

[PATCH] staging: vt6656: remove unused variable

2019-05-16 Thread Quentin Deslandes
Fixed 'set but not used' warning message on a status variable. The called function returning the status code 'vnt_start_interrupt_urb()' clean up after itself and the caller function 'vnt_int_start_interrupt()' does not returns any value. Signed-off-by: Quentin Deslandes --- drivers/staging/vt66

[PATCH v6 07/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-05-16 Thread Bibby Hsieh
GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event but not really trigger the corresponding hardware. In order to make sure that th

[PATCH v6 10/12] soc: mediatek: cmdq: add cmdq_dev_get_subsys function

2019-05-16 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the relationship of subsys and register base address. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 25 + include/linux/soc/mediatek/mtk-cmdq.h | 18 +++

[PATCH v6 11/12] soc: mediatek: cmdq: add cmdq_dev_get_event function

2019-05-16 Thread Bibby Hsieh
When client ask gce to clear or wait for event, client need to pass event number to the API. We suggest client store the event information in device node, so we provide an API for client parse the event property. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 18

Re: [PATCH 0/8] Add cpufreq and cci devfreq for mt8183, and SVS support

2019-05-16 Thread Viresh Kumar
On 16-05-19, 17:08, Andrew-sh.Cheng wrote: > From: "Andrew-sh.Cheng" > > MT8183 supports CPU DVFS and CCI DVFS, and LITTLE cpus and CCI are in the > same voltage domain. > So, this series is to add drivers to handle the voltage coupling between CPU > and CCI DVFS. > > For SVS support, add OPP_

Re: [PATCH v3 1/3] PCI: qcom: Use clk_bulk API for 2.4.0 controllers

2019-05-16 Thread Stanimir Varbanov
Hi Bjorn, On 5/2/19 3:19 AM, Bjorn Andersson wrote: > Before introducing the QCS404 platform, which uses the same PCIe > controller as IPQ4019, migrate this to use the bulk clock API, in order > to make the error paths slighly cleaner. > > Acked-by: Stanimir Varbanov > Reviewed-by: Niklas Cassel

Re: Questions regarding Documentation/media/uapi/v4l/field-order.rst

2019-05-16 Thread Hans Verkuil
On 5/16/19 10:19 AM, Rodin, Michael (Ferchau; ADITG/ESM1) wrote: >> On 4/16/19 3:54 PM, Rodin, Michael (Ferchau; ADITG/ESM1) wrote: >>> Hi, >>> >>> I would like to ask several questions regarding the documentation of the >> enum "v4l2_field" [1]. >>> These questions came up during my investigations

[PATCH] clocksource: Untrust the clocksource watchdog when its interval is too small

2019-05-16 Thread Harry Pan
This patch performs a sanity check on the deviation of the clocksource watchdog, target to reduce false alarm that incorrectly marks current clocksource unstable when there comes discrepancy. Say if there is a discrepancy between the current clocksource and watchdog, validate the watchdog deviatio

Re: [PATCH 2/3] mmc: meson-gx: add ddr-access-quirk

2019-05-16 Thread Neil Armstrong
On 15/05/2019 23:18, Martin Blumenstingl wrote: > Hi Neil, > > On Wed, May 15, 2019 at 2:45 PM Neil Armstrong > wrote: >> >> On 14/05/2019 19:58, Martin Blumenstingl wrote: >>> Hi Neil, >>> >>> On Mon, May 13, 2019 at 11:16 AM Neil Armstrong >>> wrote: >>> [...] @@ -1158,15 +1183,27 @@ st

[PATCH] clk: imx: imx8mm: fix int pll clk gate

2019-05-16 Thread Peng Fan
To Frac pll, the gate shift is 13, however to Int PLL the gate shift is 11. Signed-off-by: Peng Fan Reviewed-by: Jacky Bai --- drivers/clk/imx/clk-imx8mm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.

RE: [GIT PULL] tracing: Updates for 5.2

2019-05-16 Thread David Laight
> This code: > > /* reset all but tr, trace, and overruns */ > memset(&iter.seq, 0, >sizeof(struct trace_iterator) - >offsetof(struct trace_iterator, seq)); > > not only has a completely misleading comment (it resets

Re: [PATCH] vt: Fix a missing-check bug in drivers/tty/vt/vt.c file of Linux 5.0.14

2019-05-16 Thread Gen Zhang
On Mon, May 13, 2019 at 11:58:09AM +0200, Greg KH wrote: > qemu should work just fine, I don't know what else to suggest. Run it > on "real hardware" with a kmalloc function modified to fail this > allocation? > > good luck! > > greg k-h I don't think we need to unwind the loop. The loop conditi

[PATCH v6 09/12] soc: mediatek: cmdq: add polling function

2019-05-16 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 28 include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 15 + 3 files changed,

[PATCH v6 00/12] support gce on mt8183 platform

2019-05-16 Thread Bibby Hsieh
Changes since v5: - fix typo - remove gce-event-name form the dt-binding - add reasons in commit message Changes since v4: - refine the architecture of the packet encoder function - refine the gce enevt property - change the patch's title Changes since v3: - fix a typo in dt-binding and dt

[PATCH v6 05/12] mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

2019-05-16 Thread Bibby Hsieh
The interrupt mask and thread number has positive correlation, so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate it by thread number. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletio

[PATCH v6 02/12] dt-binding: gce: add gce header file for mt8183

2019-05-16 Thread Bibby Hsieh
Add documentation for the mt8183 gce. Add gce header file defined the gce hardware event, subsys number and constant for mt8183. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 6 +- include/dt-bindings/gce/mt8183-gce.h | 177 +

[PATCH v6 11/12] soc: mediatek: cmdq: add cmdq_dev_get_event function

2019-05-16 Thread Bibby Hsieh
When client ask gce to clear or wait for event, client need to pass event number to the API. We suggest client store the event information in device node, so we provide an API for client parse the event property. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 18

[PATCH v6 12/12] arm64: dts: add gce node for mt8183

2019-05-16 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index b36e37fcdfe3..d6d26fa32dd7 100644 ---

[PATCH v6 03/12] dt-binding: gce: add binding for gce subsys property

2019-05-16 Thread Bibby Hsieh
tcmdq driver provide a function that get the relationship of sub system number from device node for client. add specification for #subsys-cells, mediatek,gce-subsys. Signed-off-by: Bibby Hsieh --- .../devicetree/bindings/mailbox/mtk-gce.txt | 15 --- 1 file changed, 12 insertio

[PATCH v6 07/12] soc: mediatek: cmdq: clear the event in cmdq initial flow

2019-05-16 Thread Bibby Hsieh
GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event but not really trigger the corresponding hardware. In order to make sure that th

[PATCH v6 10/12] soc: mediatek: cmdq: add cmdq_dev_get_subsys function

2019-05-16 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the relationship of subsys and register base address. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 25 + include/linux/soc/mediatek/mtk-cmdq.h | 18 +++

[PATCH v6 08/12] soc: mediatek: cmdq: define the instruction struct

2019-05-16 Thread Bibby Hsieh
Define a instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 113 +++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2 + include/linux/soc/

[PATCH v6 04/12] dt-binding: gce: add binding for gce event property

2019-05-16 Thread Bibby Hsieh
Client hardware would send event to GCE hardware, mediatek,gce-event-names and mediatek,gce-events can be used to present the event. Signed-off-by: Bibby Hsieh --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Docu

[PATCH v6 01/12] dt-binding: gce: remove thread-num property

2019-05-16 Thread Bibby Hsieh
"thread-num" is an unused property so we remove it from example. Signed-off-by: Bibby Hsieh Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentatio

[PATCH v6 06/12] mailbox: mediatek: cmdq: support mt8183 gce function

2019-05-16 Thread Bibby Hsieh
add mt8183 compatible name for supporting gce function Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index 87617dc7504d..6db1e2dd2d

RE: [RFC PATCH] kbuild: check uniqueness of basename of modules

2019-05-16 Thread David Laight
From: Masahiro Yamada > Sent: 15 May 2019 18:55 ... > > xargs basename -a -- | sort | ... > > Sorry for my ignorance, but could you > teach me the effect of "--" ? > > I sometimes use "--" as a separator > when there is ambiguity in arguments > for example, "git log -- " > > In this case, w

Re: [Patch] hdac_sysfs: Fix a memory leaking bug in sound/hda/hdac_sysfs.c file of Linux 5.1

2019-05-16 Thread Gen Zhang
On Thu, May 16, 2019 at 10:49:43AM +0200, Takashi Iwai wrote: > On Thu, 16 May 2019 10:40:03 +0200, > Gen Zhang wrote: > > > > tree->root and tree->nodes are allocated by memory allocation > > functions. And tree is also an allocated memory. When allocation of > > tree->root and tree->nodes fail

[PATCH v3 00/13] epoll: support pollable epoll from userspace

2019-05-16 Thread Roman Penyaev
Hi all, This is v3 which introduces pollable epoll from userspace. v3: - Measurements made, represented below. - Fix alignment for epoll_uitem structure on all 64-bit archs except x86-64. epoll_uitem should be always 16 bit, proper BUILD_BUG_ON is added. (Linus) - Check pollflags expli

[PATCH v3 02/13] epoll: introduce user structures for polling from userspace

2019-05-16 Thread Roman Penyaev
This one introduces structures of user items array: struct epoll_uheader - describes inserted epoll items. struct epoll_uitem - single epoll item visible to userspace. Signed-off-by: Roman Penyaev Cc: Andrew Morton Cc: Al Viro Cc: Linus Torvalds Cc: linux-fsde...@vger.kernel.org Cc:

[PATCH v3 07/13] epoll: call ep_add_event_to_uring() from ep_poll_callback()

2019-05-16 Thread Roman Penyaev
Each ep_poll_callback() is called when fd calls wakeup() on epfd. So account new event in user ring. The tricky part here is EPOLLONESHOT. Since we are lockless we have to be deal with ep_poll_callbacks() called in paralle, thus use cmpxchg to clear public event bits and filter out concurrent cal

[PATCH v3 04/13] epoll: some sanity flags checks for epoll syscalls for polling from userspace

2019-05-16 Thread Roman Penyaev
There are various of limitations if epfd is polled by user: 1. Expect always EPOLLET flag (Edge Triggered behavior) 2. No support for EPOLLWAKEUP events are consumed from userspace, thus no way to call __pm_relax() 3. No support for EPOLLEXCLUSIVE If device does not pass pollfla

[PATCH v3 06/13] epoll: introduce helpers for adding/removing events to uring

2019-05-16 Thread Roman Penyaev
Both add and remove events are lockless and can be called in parallel. ep_add_event_to_uring(): o user item is marked atomically as ready o if on previous stem user item was observed as not ready, then new entry is created for the index uring. ep_remove_user_item():

<    3   4   5   6   7   8   9   >