Re: [PATCH] 8250-men-mcb: add support for 16z025 and 16z057

2018-02-27 Thread Michael Moese
Hi, Thanks for your comments. Let me briefly respond. On Tue, Feb 27, 2018 at 07:57:34PM +0200, Andy Shevchenko wrote: > On Tue, Feb 27, 2018 at 5:31 PM, Michael Moese wrote: > > - else if (strncmp(mdev->bus->name, "F216", 4) == 0) > > + else if (strncmp(mdev->bus->name, "F216", 4) =

Re: [PATCH] usb: dwc3: Prevent indefinite sleep in _dwc3_set_mode during suspend/resume

2018-02-27 Thread Felipe Balbi
Hi, Roger Quadros writes: > In the following test we get stuck by sleeping forever in _dwc3_set_mode() > after which dual-role switching doesn't work. > > On dra7-evm's dual-role port, > - Load g_zero gadget driver and enumerate to host > - suspend to mem > - disconnect USB cable to host and con

Re: [PATCH 0/3] STM32 Extended TrustZone Protection driver

2018-02-27 Thread Benjamin Gaignard
2018-02-27 20:46 GMT+01:00 Robin Murphy : > On 27/02/18 19:16, Benjamin Gaignard wrote: >> >> 2018-02-27 18:11 GMT+01:00 Mark Rutland : >>> >>> On Tue, Feb 27, 2018 at 03:09:23PM +0100, Benjamin Gaignard wrote: On early boot stages STM32MP1 platform is able to dedicate some hardware

[RFC 4/4] trace_uprobe: Fix multiple update of same semaphores

2018-02-27 Thread Ravi Bangoria
For tiny binaries/libraries, different mmap regions points to the same file portion. In such cases, we may increment semaphore multiple times. But while de-registration, semaphore will get decremented only once, leaving semaphore > 0 even if no one is tracing on that marker. Ensure increment and d

[RFC 3/4] trace_uprobe: Support SDT markers having semaphore

2018-02-27 Thread Ravi Bangoria
Userspace Statically Defined Tracepoints[1] are dtrace style markers inside userspace applications. These markers are added by developer at important places in the code. Each marker source expands to a single nop instruction in the compiled code but there may be additional overhead for computing th

[RFC 2/4] Uprobe: Export few functions / data structures

2018-02-27 Thread Ravi Bangoria
These functions and data structures will be used by other files in later patches. Signed-off-by: Ravi Bangoria --- include/linux/uprobes.h | 23 +++ kernel/events/uprobes.c | 20 ++-- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/include/lin

[RFC 1/4] Uprobe: Rename map_info to uprobe_map_info

2018-02-27 Thread Ravi Bangoria
map_info is very generic name, rename it to uprobe_map_info. Renaming will help to export this structure outside of the file. Signed-off-by: Ravi Bangoria --- kernel/events/uprobes.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/kernel/eve

[RFC 0/4] trace_uprobe: Support SDT markers having semaphore

2018-02-27 Thread Ravi Bangoria
Userspace Statically Defined Tracepoints[1] are dtrace style markers inside userspace applications. These markers are added by developer at important places in the code. Each marker source expands to a single nop instruction in the compiled code but there may be additional overhead for computing th

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:33 +0800, Sean Wang wrote: > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > For generic pins, parameter "arg" is 0 or 1. > > For special pins, bias-disable is set by R0R1, > > so we need transmited "00" to set bias-disable > > When we set "bias-disable" as high-z

Re: [PATCH v2 1/4] arm64: dts: mt2712: add pintcrl file

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 14:42 +0800, Sean Wang wrote: > On Mon, 2018-02-26 at 16:33 +0800, Zhiyong Tao wrote: > > This patch adds pinctrl file for mt2712. > > > > Signed-off-by: Zhiyong Tao > > --- > > arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1129 > > + > > 1 file

RE: [PATCH 0/7] sched/fair: Migrate 'misfit' tasks on asymmetric capacity systems

2018-02-27 Thread Gaku Inami
Hi > -Original Message- > From: linux-kernel-ow...@vger.kernel.org > [mailto:linux-kernel-ow...@vger.kernel.org] On Behalf Of Morten Rasmussen > Sent: Friday, February 16, 2018 1:21 AM > To: pet...@infradead.org; mi...@redhat.com > Cc: valentin.schnei...@arm.com; dietmar.eggem...@arm.com;

Re: [PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver

2018-02-27 Thread Zhiyong Tao
On Wed, 2018-02-28 at 15:14 +0800, Sean Wang wrote: > Hi, Zhiyong > > all seems better than v1, but some nitpicking is addressed as below > > Sean > > On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > > The commit includes mt2712 pinctrl driver. > > > > Signed-off-by: Zhiyong Tao

[PATCH] hwmon: g762: handle cleanup with devm_add_action

2018-02-27 Thread Peng Hao
Simplify code and use devm_add_action() to handle cleanup. Signed-off-by: Peng Hao --- drivers/hwmon/g762.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/hwmon/g762.c b/drivers/hwmon/g762.c index 6d1208b..48e60d8 100644 --- a/drivers

Re: [PATCH v2 06/16] drm/sun4i: Don't process LVDS if TCON doesn't support it

2018-02-27 Thread Maxime Ripard
On Tue, Feb 27, 2018 at 11:26:51PM +0100, Jernej Skrabec wrote: > TCON checks for LVDS properties even if it doesn't support it. Add a > check to skip that part of the code if TCON doesn't support channel 0. > > Signed-off-by: Jernej Skrabec I have already sent a similar patch here: https://list

Re: [PATCH v2 01/16] clk: sunxi-ng: Add check for minimal rate to NM PLLs

2018-02-27 Thread Maxime Ripard
Hi, On Tue, Feb 27, 2018 at 11:26:46PM +0100, Jernej Skrabec wrote: > Some NM PLLs doesn't work well when their output clock rate is set below > certain rate. > > Add support for that constrain. > > Signed-off-by: Jernej Skrabec > --- > drivers/clk/sunxi-ng/ccu_nm.c | 11 +++ > drivers

Re: [PATCH v2 4/4] pintcrl: support bias-disable of generic and special pins simultaneously

2018-02-27 Thread Sean Wang
On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > For generic pins, parameter "arg" is 0 or 1. > For special pins, bias-disable is set by R0R1, > so we need transmited "00" to set bias-disable > When we set "bias-disable" as high-z property, > the parameter should be "MTK_PUPD_SET_R1R0_00". >

Re: [PATCH] ALSA: control: Fix a bunch of whitespace errors

2018-02-27 Thread Takashi Iwai
On Tue, 27 Feb 2018 18:29:54 +0100, Richard Fitzgerald wrote: > > Remove a bunch of trailing whitespace errors. They are > fairly annoying if you have your editor set to strip trailing > whitespace because you find you've introduced more changes > than you were trying to make. > > Signed-off-by:

Re: [RFC PATCH] Take mmap_min_addr into account while choosing unmapped address for x86-64.

2018-02-27 Thread Michal Hocko
On Tue 27-02-18 16:27:29, Ilya Smith wrote: > > > > mmap_min_addr handling is a bit mess... As you say, we would return > > EPERM rather than ENOMEM which can be confusing but depleting the > > address space like that is quite unlikely on 64b unless I am missing. > > It is good to be in sync here

Re: [PATCH v2 3/4] pinctrl: add mt2712 pinctrl driver

2018-02-27 Thread Sean Wang
Hi, Zhiyong all seems better than v1, but some nitpicking is addressed as below Sean On Mon, 2018-02-26 at 16:34 +0800, Zhiyong Tao wrote: > The commit includes mt2712 pinctrl driver. > > Signed-off-by: Zhiyong Tao > --- > drivers/pinctrl/mediatek/Kconfig |7 + > dr

Re: [PATCH 4.14 00/54] 4.14.23-stable review

2018-02-27 Thread Greg Kroah-Hartman
On Tue, Feb 27, 2018 at 03:12:02PM -0800, Guenter Roeck wrote: > On Tue, Feb 27, 2018 at 07:36:18PM +0100, Greg Kroah-Hartman wrote: > > On Tue, Feb 27, 2018 at 06:38:59AM -0800, Guenter Roeck wrote: > > > On 02/27/2018 05:08 AM, Greg Kroah-Hartman wrote: > > > > On Tue, Feb 27, 2018 at 02:59:39AM

Re: [PATCH v5 0/4] vm: add a syscall to map a process memory into a pipe

2018-02-27 Thread Pavel Emelyanov
On 02/27/2018 05:18 AM, Dmitry V. Levin wrote: > On Mon, Feb 26, 2018 at 12:02:25PM +0300, Pavel Emelyanov wrote: >> On 02/21/2018 03:44 AM, Andrew Morton wrote: >>> On Tue, 9 Jan 2018 08:30:49 +0200 Mike Rapoport >>> wrote: >>> This patches introduces new process_vmsplice system call that

Re: [PATCH v2 07/11] firmware: split firmware fallback functionality into its own file

2018-02-27 Thread Greg KH
On Tue, Feb 27, 2018 at 09:33:28PM -0800, Kees Cook wrote: > On Tue, Feb 27, 2018 at 5:28 PM, Luis R. Rodriguez wrote: > > On Tue, Feb 27, 2018 at 03:14:53PM -0800, Kees Cook wrote: > >> On Fri, Feb 23, 2018 at 6:46 PM, Luis R. Rodriguez > >> wrote: > >> > The firmware fallback code is optional.

[PATCH] staging: android: ashmem: Fix possible deadlock in ashmem_ioctl

2018-02-27 Thread Yisheng Xie
ashmem_mutex may create a chain of dependencies like: CPU0CPU1 mmap syscall ioctl syscall -> mmap_sem (acquired) -> ashmem_ioctl -> ashmem_mmap-> ashmem_mutex (acquired) -> ashmem_mutex

Re: [RFC REBASED 5/5] powerpc/mm/slice: use the dynamic high slice size to limit bitmap operations

2018-02-27 Thread Aneesh Kumar K.V
I also noticed that the slice mask printing use wrong variables now. I guess this should take care of it diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index fef3f36b0b73..6b3575c39668 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -535,8 +535,6 @@ unsigned

[PATCH v2] nvme-multipath: fix sysfs dangerously created links

2018-02-27 Thread Baegjae Sung
If multipathing is enabled, each NVMe subsystem creates a head namespace (e.g., nvme0n1) and multiple private namespaces (e.g., nvme0c0n1 and nvme0c1n1) in sysfs. When creating links for private namespaces, links of head namespace are used, so the namespace creation order must be followed (e.g., nv

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-27 Thread Mikko Perttunen
On 02/28/2018 08:12 AM, Rajkumar Rampelli wrote: On Wednesday 28 February 2018 11:28 AM, Guenter Roeck wrote: On 02/27/2018 09:38 PM, Rajkumar Rampelli wrote: On Wednesday 21 February 2018 08:20 PM, Guenter Roeck wrote: On 02/20/2018 10:58 PM, Rajkumar Rampelli wrote: Add generic PWM based

[PATCH] Documentation: Update ncurses package names for menuconfig

2018-02-27 Thread Arvind Prasanna
The package name is ncurses-devel for Redhat based distros and libncurses-devel for Debian based distros. Signed-off-by: Arvind Prasanna --- scripts/kconfig/lxdialog/check-lxdialog.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh

Re: [RFC REBASED 5/5] powerpc/mm/slice: use the dynamic high slice size to limit bitmap operations

2018-02-27 Thread Aneesh Kumar K.V
On 02/28/2018 12:23 PM, Nicholas Piggin wrote: On Tue, 27 Feb 2018 18:11:07 +0530 "Aneesh Kumar K.V" wrote: Nicholas Piggin writes: On Tue, 27 Feb 2018 14:31:07 +0530 "Aneesh Kumar K.V" wrote: Christophe Leroy writes: The number of high slices a process might use now depends on

Re: [PATCH RESEND v5 2/2] KVM: X86: Allow userspace to define the microcode version

2018-02-27 Thread Paolo Bonzini
On 28/02/2018 07:03, Wanpeng Li wrote: > From: Wanpeng Li > > Linux (among the others) has checks to make sure that certain features > aren't enabled on a certain family/model/stepping if the microcode version > isn't greater than or equal to a known good version. > > By exposing the real micr

[PATCH] dma-buf/reservation: shouldn't kfree staged when slot available

2018-02-27 Thread Monk Liu
under below scenario the obj->fence would refer to a wild pointer: 1,call reservation_object_reserved_shared 2,call reservation_object_add_shared_fence 3,call reservation_object_reserved_shared 4,call reservation_object_add_shared_fence in step 1, staged is allocated, in step 2, code path will g

Re: [PATCH RESEND v5 1/2] KVM: X86: Introduce kvm_get_msr_feature()

2018-02-27 Thread Paolo Bonzini
On 28/02/2018 07:03, Wanpeng Li wrote: > From: Wanpeng Li > > Introduce kvm_get_msr_feature() to handle the msrs which are supported > by different vendors and sharing the same emulation logic. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: Liran Alon > Cc: Nadav Amit > Cc: Borislav Petkov

Re: [RFC REBASED 5/5] powerpc/mm/slice: use the dynamic high slice size to limit bitmap operations

2018-02-27 Thread Nicholas Piggin
On Tue, 27 Feb 2018 18:11:07 +0530 "Aneesh Kumar K.V" wrote: > Nicholas Piggin writes: > > > On Tue, 27 Feb 2018 14:31:07 +0530 > > "Aneesh Kumar K.V" wrote: > > > >> Christophe Leroy writes: > >> > >> > The number of high slices a process might use now depends on its > >> > address spac

[PATCH][V2] firmware: dmi_scan: add DMI_OEM_STRING support to dmi_matches

2018-02-27 Thread Alex Hung
OEM strings are defined by each OEM and they contain customized and useful OEM information. Supporting it provides more flexible uses of the dmi_matches function. Signed-off-by: Alex Hung --- drivers/firmware/dmi_scan.c | 11 +-- include/linux/mod_devicetable.h | 1 + 2 files change

maybe a bug in SELinux: security_context_to_sid_core

2018-02-27 Thread Zhang, Ning A
Hi, Before SELinux is initialized, get scontext by secid by using: security_secctx_to_secid() may return wrong numbe eg: security_secctx_to_secid("devnull", strlen("devnull"), &sid); sid here will be 1 because: in security_context_to_sid_core: ... if (!ss_initialized) {

Re: [PATCH] staging:r8188eu: use lib80211 CCMP decrypt

2018-02-27 Thread Dan Carpenter
Hm... Sorry. I was looking at the wrong code. I was looking at aes_decipher() instead of rtw_aes_decrypt(). The aes_decipher() was acceptable style (although, it's of course good that you deleted it). rtw_aes_decrypt() was always really really awful. That's fine then. Sorry again. regards,

[PATCH] nios2: Use read_persistent_clock64() instead of read_persistent_clock()

2018-02-27 Thread Baolin Wang
Since struct timespec is not y2038 safe on 32bit machines, this patch converts read_persistent_clock() to read_persistent_clock64() using struct timespec64, as well as converting mktime() to mktime64(). Signed-off-by: Baolin Wang --- arch/nios2/kernel/time.c |4 ++-- 1 file changed, 2 insert

Re: [PATCH v2 1/4] arm64: dts: mt2712: add pintcrl file

2018-02-27 Thread Sean Wang
On Mon, 2018-02-26 at 16:33 +0800, Zhiyong Tao wrote: > This patch adds pinctrl file for mt2712. > > Signed-off-by: Zhiyong Tao > --- > arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1129 > + > 1 file changed, 1129 insertions(+) > create mode 100644 arch/arm64/boot/dt

Re: [PATCH v4 4/6] arm64: dts: exynos: add OF graph between MHL and USB connector

2018-02-27 Thread Andrzej Hajda
On 27.02.2018 22:24, Rob Herring wrote: > On Wed, Feb 21, 2018 at 2:55 AM, Andrzej Hajda wrote: >> OF graph describes MHL data lanes between MHL and respective USB >> connector. >> >> Signed-off-by: Andrzej Hajda >> --- >> v4: >> - added missing reg property in connector's port node (Krzysztof) >

Re: [PATCH] ARM: davinci: fix the GPIO lookup for omapl138-hawk

2018-02-27 Thread Sekhar Nori
On Tuesday 27 February 2018 05:44 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that > mmc can correctly lookup the wp and cp gpios. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/mach-davinci/board-oma

[PATCH v2 6/6] MAINTAINERS: Add entry for Jailhouse

2018-02-27 Thread Jan Kiszka
From: Jan Kiszka Signed-off-by: Jan Kiszka --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 93a12af4f180..4b889f282c77 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7521,6 +7521,13 @@ Q: http://patchwork.linuxtv.org/project/linux

[PATCH v2 5/6] x86/jailhouse: Allow to use PCI_MMCONFIG without ACPI

2018-02-27 Thread Jan Kiszka
From: Jan Kiszka Jailhouse does not use ACPI, but it does support MMCONFIG. Make sure the latter can be built without having to enable ACPI as well. Primarily, we need to make the AMD mmconf-fam10h_64 depend upon MMCONFIG and ACPI, instead of just the former. Saves some bytes in the Jailhouse no

[PATCH v2 3/6] x86/jailhouse: Enable PCI mmconfig access in inmates

2018-02-27 Thread Jan Kiszka
From: Otavio Pontes Use the PCI mmconfig base address exported by jailhouse in boot parameters in order to access the memory mapped PCI configuration space. Signed-off-by: Otavio Pontes [Jan: rebased, fixed !CONFIG_PCI_MMCONFIG] Signed-off-by: Jan Kiszka --- arch/x86/include/asm/pci_x86.h | 2

[PATCH v2 1/6] jailhouse: Provide detection for non-x86 systems

2018-02-27 Thread Jan Kiszka
From: Jan Kiszka Implement jailhouse_paravirt() via device tree probing on architectures != x86. Will be used by the PCI core. CC: Rob Herring CC: Mark Rutland Signed-off-by: Jan Kiszka --- Documentation/devicetree/bindings/jailhouse.txt | 8 arch/x86/include/asm/jailhouse_para.h

[PATCH v2 0/6] jailhouse: Enhance secondary Jailhouse guest support /wrt PCI

2018-02-27 Thread Jan Kiszka
Basic x86 support [1] for running Linux as secondary Jailhouse [2] guest is currently pending in the tip tree. This builds on top and enhances the PCI support for x86 and also ARM guests (ARM[64] does not require platform patches and works already). Key elements of this series are: - detection of

[PATCH v2 4/6] x86: Consolidate PCI_MMCONFIG configs

2018-02-27 Thread Jan Kiszka
From: Jan Kiszka Not sure if those two worked by design or just by chance so far. In any case, it's at least cleaner and clearer to express this in a single config statement. Signed-off-by: Jan Kiszka --- arch/x86/Kconfig | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --g

[PATCH v2 2/6] PCI: Scan all functions when running over Jailhouse

2018-02-27 Thread Jan Kiszka
From: Jan Kiszka Per PCIe r4.0, sec 7.5.1.1.9, multi-function devices are required to have a function 0. Therefore, Linux scans for devices at function 0 (devfn 0/8/16/...) and only scans for other functions if function 0 has its Multi-Function Device bit set or ARI or SR-IOV indicate there are

Re: [alsa-devel] [PATCH 0/1] Re: Applied "ASoC: topology: Fix logical inversion in set_link_hw_format()" to the asoc tree

2018-02-27 Thread Pierre-Louis Bossart
On 2/27/18 12:33 PM, Kirill Marinushkin wrote: Hello Mark, Pierre-Louis, Pan, Liam, As there are too much open questions regarding the bclk and fsync inversion in set_link_hw_format(), I would like to suggest the alternative solution. This solution will fit both use-cases: * existing use-cases

Re: [PATCH 1/2] ARM: dts: imx6: RDU2: Add RAVE SP device

2018-02-27 Thread Shawn Guo
On Mon, Feb 26, 2018 at 06:49:41AM -0800, Andrey Smirnov wrote: > With MFD and watchdog drivers for RAVE SP device support added by > 538ee27290fa ("mfd: Add driver for RAVE Supervisory Processor") and > c3bb33345721 ("watchdog: Add RAVE SP watchdog driver") add > corresponding DT node for RDU2. >

Re: [PATCH] init/Kconfig: make CHECKPOINT_RESTORE select PROC_PAGE_MONITOR

2018-02-27 Thread kbuild test robot
Hi Mike, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc3 next-20180227] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

[PATCH] m68k: Use read_persistent_clock64() instead of read_persistent_clock()

2018-02-27 Thread Baolin Wang
Since struct timespec is not y2038 safe on 32bit machines, this patch converts read_persistent_clock() to read_persistent_clock64() using struct timespec64, as well as converting mktime() to mktime64(). Signed-off-by: Baolin Wang --- arch/m68k/kernel/time.c |4 ++-- 1 file changed, 2 inserti

Re: [RFC PATCH v2] ptr_ring: linked list fallback

2018-02-27 Thread Jason Wang
On 2018年02月28日 12:09, Michael S. Tsirkin wrote: Or we can add plist to a union: struct sk_buff { union { struct { /* These two members must be first. */ struct sk_buff *next; str

Re: [PATCH] Bluetooth: btqcomsmd: Fix channel open check

2018-02-27 Thread Marcel Holtmann
Hi Bjorn, > rpmsg_create_ept() returns NULL on error and as such > qcom_wcnss_open_channel() does the same. Clarify this in the > kernel-doc and correct the error checks in btqcomsmd. > > Fixes: 1511cc750c3d ("Bluetooth: Introduce Qualcomm WCNSS SMD based HCI > driver") > Cc: sta...@vger.kernel.

Re: [PATCH 0/2] ESRT fixes for relocatable kexec'd kernel

2018-02-27 Thread AKASHI Takahiro
Tyler, # I missed catching your patch as its subject doesn't contain arm64. On Fri, Feb 23, 2018 at 12:42:31PM -0700, Tyler Baicar wrote: > Currently on arm64 ESRT memory does not appear to be properly blocked off. > Upon successful initialization, ESRT prints out the memory region that it > exis

[PATCH] m32r: Use read_persistent_clock64() instead of read_persistent_clock()

2018-02-27 Thread Baolin Wang
Since struct timespec is not y2038 safe on 32bit machines, this patch converts read_persistent_clock() to read_persistent_clock64() using struct timespec64, as well as converting mktime() to mktime64(). Signed-off-by: Baolin Wang --- arch/m32r/kernel/time.c |4 ++-- 1 file changed, 2 inserti

[PATCH] frv: Use read_persistent_clock64() instead of read_persistent_clock()

2018-02-27 Thread Baolin Wang
The struct timespec is not y2038 safe on 32bit systems, thus this patch converts the read_persistent_clock() to read_persistent_clock64() with using struct timespec64. We also use time64_t type to record system time by converting the mktime() to mktime64() . Signed-off-by: Baolin Wang --- arch/f

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-27 Thread Rajkumar Rampelli
On Wednesday 28 February 2018 11:28 AM, Guenter Roeck wrote: On 02/27/2018 09:38 PM, Rajkumar Rampelli wrote: On Wednesday 21 February 2018 08:20 PM, Guenter Roeck wrote: On 02/20/2018 10:58 PM, Rajkumar Rampelli wrote: Add generic PWM based tachometer driver via HWMON interface to report th

Re: [PATCH v5 0/4] vm: add a syscall to map a process memory into a pipe

2018-02-27 Thread Andrei Vagin
On Tue, Feb 27, 2018 at 05:18:18AM +0300, Dmitry V. Levin wrote: > On Mon, Feb 26, 2018 at 12:02:25PM +0300, Pavel Emelyanov wrote: > > On 02/21/2018 03:44 AM, Andrew Morton wrote: > > > On Tue, 9 Jan 2018 08:30:49 +0200 Mike Rapoport > > > wrote: > > > > > >> This patches introduces new proces

[PATCH RESEND v5 1/2] KVM: X86: Introduce kvm_get_msr_feature()

2018-02-27 Thread Wanpeng Li
From: Wanpeng Li Introduce kvm_get_msr_feature() to handle the msrs which are supported by different vendors and sharing the same emulation logic. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Liran Alon Cc: Nadav Amit Cc: Borislav Petkov Cc: Tom Lendacky Signed-off-by: Wanpeng Li --- arch/x86

[PATCH RESEND v5 2/2] KVM: X86: Allow userspace to define the microcode version

2018-02-27 Thread Wanpeng Li
From: Wanpeng Li Linux (among the others) has checks to make sure that certain features aren't enabled on a certain family/model/stepping if the microcode version isn't greater than or equal to a known good version. By exposing the real microcode version, we're preventing buggy guests that don

Re: [PATCH v5 2/2] KVM: X86: Allow userspace to define the microcode version

2018-02-27 Thread Wanpeng Li
2018-02-28 13:55 GMT+08:00 Tom Lendacky : > On 2/27/2018 9:34 PM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> Linux (among the others) has checks to make sure that certain features >> aren't enabled on a certain family/model/stepping if the microcode version >> isn't greater than or equal to a kno

Re: [RFC PATCH 1/1] power: supply: bq27xxx: Call power_supply_changed on status change

2018-02-27 Thread Matt Ranostay
Commit message please :) On Tue, Feb 27, 2018 at 5:04 PM, Merlijn Wajer wrote: > Signed-off-by: Merlijn Wajer > --- Single patch changes usually don't have a cover letter. you put more detail here in the cutoff section (aka after --- above) > drivers/power/supply/bq27xxx_battery.c | 59 > ++

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-27 Thread Guenter Roeck
On 02/27/2018 09:38 PM, Rajkumar Rampelli wrote: On Wednesday 21 February 2018 08:20 PM, Guenter Roeck wrote: On 02/20/2018 10:58 PM, Rajkumar Rampelli wrote: Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM

[PATCH] blackfin: time: Use read_persistent_clock64() instead of read_persistent_clock()

2018-02-27 Thread Baolin Wang
Since struct timespec is not y2038 safe on 32bit machines, this patch converts read_persistent_clock() to read_persistent_clock64() using struct timespec64. Signed-off-by: Baolin Wang --- arch/blackfin/kernel/time-ts.c |6 -- arch/blackfin/kernel/time.c|6 -- 2 files changed,

Re: [PATCH v5 2/2] KVM: X86: Allow userspace to define the microcode version

2018-02-27 Thread Tom Lendacky
On 2/27/2018 9:34 PM, Wanpeng Li wrote: > From: Wanpeng Li > > Linux (among the others) has checks to make sure that certain features > aren't enabled on a certain family/model/stepping if the microcode version > isn't greater than or equal to a known good version. > > By exposing the real mic

[PATCH] rcu: Call wake_nocb_leader_defer() with 'FORCE' when nocb_q_count is high

2018-02-27 Thread Byungchul Park
If many callbacks have been queued and waking up the nocb leader should be deferred, then we should wake up the leader unconditionally when it's safe to do so. It was well managed in commit fbce7497ee(rcu: Parallelize and economize NOCB kthread wakeups) at first, but the commit 8be6e1b15c(rcu: Use

Re: [PATCH v4] Revert "f2fs crypto: avoid unneeded memory allocation in ->readdir"

2018-02-27 Thread Jaegeuk Kim
Hi Yunlong, As Eric pointed out, how do you think using nohighmem for directory likewise ext4, which looks like more efficient? Actually, we don't need to do this in most of recent kernels, right? Thanks, On 02/28, Yunlong Song wrote: > This reverts commit e06f86e61d7a67fe6e826010f57aa39c674f4b1

Re: [PATCH v2 6/6] kconfig: rename silentoldconfig to syncconfig

2018-02-27 Thread Ulf Magnusson
On Wed, Feb 28, 2018 at 6:41 AM, Ulf Magnusson wrote: > On Wed, Feb 28, 2018 at 09:15:26AM +0900, Masahiro Yamada wrote: >> As commit cedd55d49dee ("kconfig: Remove silentoldconfig from help >> and docs; fix kconfig/conf's help") mentioned, 'silentoldconfig' is a >> historical misnomer. That comm

Re: [PATCH v2 6/6] kconfig: rename silentoldconfig to syncconfig

2018-02-27 Thread Ulf Magnusson
On Wed, Feb 28, 2018 at 09:15:26AM +0900, Masahiro Yamada wrote: > As commit cedd55d49dee ("kconfig: Remove silentoldconfig from help > and docs; fix kconfig/conf's help") mentioned, 'silentoldconfig' is a > historical misnomer. That commit removed it from help and docs since > it is an internal i

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-27 Thread Rajkumar Rampelli
On Wednesday 21 February 2018 08:20 PM, Guenter Roeck wrote: On 02/20/2018 10:58 PM, Rajkumar Rampelli wrote: Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM IP which captures the motor PWM output. This dri

Re: [PATCH v8 14/15] cpufreq: Add module to register cpufreq on Krait CPUs

2018-02-27 Thread Sricharan R
Hi Gregory, On 2/27/2018 8:28 PM, Gregory CLEMENT wrote: > Hi Sricharan, > > On mar., févr. 27 2018, Sricharan R wrote: > >> From: Stephen Boyd >> >> Register a cpufreq-generic device whenever we detect that a >> "qcom,krait" compatible CPU is present in DT. >> >> Acked-by: Viresh Kumar >>

Re: [PATCH 2/2] f2fs: support {d,id,did,x}node checksum

2018-02-27 Thread Jaegeuk Kim
On 02/27, Chao Yu wrote: > Ping, > > On 2018/2/13 15:34, Chao Yu wrote: > > Hi Jaegeuk, > > > > On 2018/2/10 10:52, Chao Yu wrote: > >> On 2018/2/10 9:41, Jaegeuk Kim wrote: > >>> On 02/01, Chao Yu wrote: > > > On 2018/2/1 6:15, Jaegeuk Kim wrote: > > On 01/31, Chao Yu wrote: >

Re: [PATCH v2 07/11] firmware: split firmware fallback functionality into its own file

2018-02-27 Thread Kees Cook
On Tue, Feb 27, 2018 at 5:28 PM, Luis R. Rodriguez wrote: > On Tue, Feb 27, 2018 at 03:14:53PM -0800, Kees Cook wrote: >> On Fri, Feb 23, 2018 at 6:46 PM, Luis R. Rodriguez wrote: >> > The firmware fallback code is optional. Split that code out to help >> > distinguish the fallback functionlity f

Re: [PATCH] staging:r8188eu: use lib80211 CCMP decrypt

2018-02-27 Thread Ivan Safonov
On 02/26/2018 10:56 AM, Dan Carpenter wrote: On Fri, Feb 23, 2018 at 05:57:42PM +0300, Ivan Safonov wrote: Custom AES decrypt implementation replaced with lib80211 library. Signed-off-by: Ivan Safonov The new code looks like original RTL code (really bad) so I'm guessing you copy and pasted

Re: [f2fs-dev] [PATCH] f2fs: handle quota for orphan inodes

2018-02-27 Thread Jaegeuk Kim
On 02/27, Chao Yu wrote: > Ping, > > On 2018/2/13 22:33, Chao Yu wrote: > > On 2018/2/10 10:28, Jaegeuk Kim wrote: > >> This is to fix missing dquot_initialize for orphan inodes. > > > > IMO, we don't need to call dquot_initialize as we have call the function > > in evict(), right? I think we'd

[PATCH] e1000e: Fix link status in case of error.

2018-02-27 Thread Benjamin Poirier
Before commit 19110cfbb34d ("e1000e: Separate signaling for link check/link up"), errors which happen after "get_link_status = false" in the copper check_for_link callbacks would be ignored and the link considered up. After that commit, any error implies that the link is down. Since all combination

Re: [RFC PATCH] e1000e: Fix link check race condition.

2018-02-27 Thread Benjamin Poirier
On 2018/02/26 08:14, Alexander Duyck wrote: [...] > > > > > switch (hw->mac.type) { > > case e1000_pch2lan: > > ret_val = e1000_k1_workaround_lv(hw); > > if (ret_val) > > - return ret_val; > > + goto out; >

Re: [PATCH v2 5/6] kconfig: invoke oldconfig instead of silentoldconfig from local*config

2018-02-27 Thread Ulf Magnusson
On Wed, Feb 28, 2018 at 09:15:25AM +0900, Masahiro Yamada wrote: > The purpose of local{yes,mod}config is to arrange the .config file > based on actually loaded modules. It is unnecessary to update > include/generated/autoconf.h and include/config/* stuff here. > > They will be automatically upda

Re: [PATCH 1/5 v2] f2fs: add mount option for segment allocation policy

2018-02-27 Thread Jaegeuk Kim
Change log from v1: - add doc :) This patch adds an mount option, "alloc_mode=%s" having two options, "default" and "reuse". In "alloc_mode=reuse" case, f2fs starts to allocate segments from 0'th segment all the time to reassign segments. It'd be useful for small-sized eMMC parts. Signed-off-by

[PATCH] f2fs: do gc in greedy mode for whole range if gc_urgent mode is set

2018-02-27 Thread Jaegeuk Kim
Otherwise, f2fs conducts GC on 8GB range only based on slow cost-benefit. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index bc9420ce2275..bfb7a4a3a929 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2

Re: [PATCH] arm64: dts: Hi3660: Remove 'CPU_NAP' idle state

2018-02-27 Thread Leo Yan
Hi Wei, On Tue, Jan 09, 2018 at 12:32:42PM +0800, Leo Yan wrote: > Thanks a lot for Vincent Guittot careful work to find bug for 'CPU_NAP' > idle state. At early time, the CPU CA73 CPU_NAP idle state has been > supported on Hikey960. Later we found the system has the hang issue > and for resolvi

Re: [PATCH v3 3/3] arm64: dts: Hi3660: Add binding for stub clock

2018-02-27 Thread Leo Yan
Hi Wei, On Fri, Nov 17, 2017 at 05:27:32PM +0800, Xu YiPing wrote: > From: Kaihua Zhong > > Add DT binding for Hi3660 stub clock driver. > > Reviewed-by: Leo Yan > Signed-off-by: Kai Zhao > Signed-off-by: Tao Wang > Signed-off-by: Ruyi Wang > Signed-off-by: Kaihua Zhong Could you help to

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

2018-02-27 Thread Leo Yan
Make '$min_conf_desc_length' default value from 4 to 1; so can give more relax check for Kconfig description has at least one line rather than four lines. User can still pass parameter "--min-conf-desc-length=X" to set more strict check. Signed-off-by: Leo Yan --- scripts/checkpatch.pl | 2 +-

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

2018-02-27 Thread Leo Yan
If one patch has Kconfig section, the check script variable '$is_start' will be set by first 'config' line and the variable '$is_end' is to be set by the second 'config' line. But patches often has only one 'config' line so we have no chance to set '$is_end', as result below condition is invalid an

Re: [PATCH 1/2] input: Add RAVE SP Powerbutton driver

2018-02-27 Thread Dmitry Torokhov
Hi Andrey, On Mon, Feb 26, 2018 at 07:41:29AM -0800, Andrey Smirnov wrote: > Add driver that properly handles input event emitted by RAVE SP > devices. > > Cc: Dmitry Torokhov > Cc: linux-in...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Rob Herring > Cc: Mark Rutland > Cc: device

[PATCH v6 3/3] dts: arm64: Add mailbox binding for hi3660

2018-02-27 Thread Leo Yan
From: Kaihua Zhong Add DT binding for mailbox driver. Signed-off-by: Ruyi Wang Signed-off-by: Kaihua Zhong --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi366

[PATCH v6 2/3] mailbox: Add support for Hi3660 mailbox

2018-02-27 Thread Leo Yan
From: Kaihua Zhong Hi3660 mailbox controller is used to send message within multiple processors, MCU, HIFI, etc. It supports 32 mailbox channels and every channel can only be used for single transferring direction. Once the channel is enabled, it needs to specify the destination interrupt and a

[PATCH v6 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding

2018-02-27 Thread Leo Yan
Introduce a binding for the Hi3660 mailbox controller, the mailbox is used within application processor (AP), communication processor (CP), HIFI and MCU, etc. Acked-by: Rob Herring Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi3660-mailbox.txt | 51 ++ 1 file

[PATCH v6 0/3] Add support for Hi3660 mailbox driver

2018-02-27 Thread Leo Yan
Hi3660 mailbox controller is used to send message within multiple processors, MCU, HIFI, etc. This patch series is to implement an initial version for Hi3660 mailbox driver with "automatic acknowledge" mode. The patch set have been verified with Hi3660 stub clock driver, so we can send message to

Re: [RFC 4/4] input: misc: Add Gateworks System Controller support

2018-02-27 Thread Dmitry Torokhov
Hi Tim, On Tue, Feb 27, 2018 at 05:21:14PM -0800, Tim Harvey wrote: > Add support for dispatching Linux Input events for the various interrupts > the Gateworks System Controller provides. > > Signed-off-by: Tim Harvey > --- > drivers/input/misc/Kconfig | 6 ++ > drivers/input/misc/Makefil

[PATCH net 0/2] Fixes, cleanup and modernization for macmace driver

2018-02-27 Thread Finn Thain
Changes since v4 of combined patch series: - Removed redundant and non-portable MACH_IS_MAC tests. - Omitted patches unrelated to macmace driver. Finn Thain (2): net/macmace: Drop redundant MACH_IS_MAC test net/macmace: Fix and clean up log messages drivers/net/ethernet/apple/macmace.c | 25

[PATCH net 1/2] net/macmace: Drop redundant MACH_IS_MAC test

2018-02-27 Thread Finn Thain
The MACH_IS_MAC test is redundant here because the platform device won't get registered unless MACH_IS_MAC. Adopt module_platform_driver() convention. Cc: Geert Uytterhoeven Signed-off-by: Finn Thain --- drivers/net/ethernet/apple/macmace.c | 16 +--- 1 file changed, 1 insertion(+),

[PATCH net 2/2] net/macmace: Fix and clean up log messages

2018-02-27 Thread Finn Thain
Don't log the unexpanded "eth%d" format string. Log the chip revision in the probe message (consistent with mace.c). Drop redundant debug messages for FIFO events recorded in the interface statistics (also consistent with mace.c). Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/ne

Re: [PATCH 3/4] auxdisplay: charlcd: fix x/y address commands

2018-02-27 Thread Willy Tarreau
Hi Robert, On Wed, Feb 28, 2018 at 12:29:38AM +0100, Robert Abel wrote: > It is however an edge case that incurs a > lot of code for little to no functionality. > I'd much prefer if we broke backwards compatibility here and actually > only parse the format that is indicated in the comment: > > >

Re: [RFC PATCH v2] ptr_ring: linked list fallback

2018-02-27 Thread Michael S. Tsirkin
On Wed, Feb 28, 2018 at 11:39:15AM +0800, Jason Wang wrote: > > > On 2018年02月28日 11:28, Jason Wang wrote: > > > > Well I believe the main user for this is qdisc, which use skb > > > > array. And we > > > > can not use what implemented in this patch directly for sk_buff > > > > without some > > >

Re: [PATCH 46/52] arm: Add BTB invalidation on switch_mm for Cortex-A9, A12 and A17

2018-02-27 Thread Alex Shi
On 02/26/2018 06:45 PM, Will Deacon wrote: > On Mon, Feb 26, 2018 at 06:40:42PM +0800, Alex Shi wrote: >> >> >> On 02/26/2018 06:05 PM, Greg KH wrote: >>> On Mon, Feb 26, 2018 at 04:20:20PM +0800, Alex Shi wrote: From: Marc Zyngier ** Not yet queued for inclusion in mainline ** >>

Re: [RFC PATCH v2] ptr_ring: linked list fallback

2018-02-27 Thread Michael S. Tsirkin
On Wed, Feb 28, 2018 at 11:28:57AM +0800, Jason Wang wrote: > > > On 2018年02月28日 01:12, Michael S. Tsirkin wrote: > > On Tue, Feb 27, 2018 at 10:29:26AM +0800, Jason Wang wrote: > > > > > > On 2018年02月27日 04:34, Michael S. Tsirkin wrote: > > > > On Mon, Feb 26, 2018 at 11:15:42AM +0800, Jason Wa

[PATCH 10/29] arm64: mm: Map entry trampoline into trampoline and kernel page tables

2018-02-27 Thread Alex Shi
From: Will Deacon commit 51a0048beb44 upstream. The exception entry trampoline needs to be mapped at the same virtual address in both the trampoline page table (which maps nothing else) and also the kernel page table, so that we can swizzle TTBR1_EL1 on exceptions from and return to EL0. This p

[PATCH] selftests/vm: Update max va test to check for high address return.

2018-02-27 Thread Aneesh Kumar K.V
mmap(-1,..) is expected to search from max supported VA top down. It should find an address above ADDR_SWITCH_HINT. Explicitly check for this. Also derefer the address even if we failed the addr check. Signed-off-by: Aneesh Kumar K.V --- tools/testing/selftests/vm/va_128TBswitch.c | 27

Re: [PATCH 0/29] arm meltdown fix backporting review for lts 4.9

2018-02-27 Thread Alex Shi
On 02/28/2018 11:56 AM, Alex Shi wrote: > The patchset also on repository: > git://git.linaro.org/kernel/linux-linaro-stable.git lts-4.9-spectrevv2 Sorry, the correct branch address is here: https://git.linaro.org/kernel/speculation-fixes-staging.git v4.9-meltdown Thanks Alex

[PATCH 17/29] arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0

2018-02-27 Thread Alex Shi
From: Will Deacon commit 084eb77cd3a8 upstream. Add a Kconfig entry to control use of the entry trampoline, which allows us to unmap the kernel whilst running in userspace and improve the robustness of KASLR. Reviewed-by: Mark Rutland Tested-by: Laura Abbott Tested-by: Shanker Donthineni Sig

  1   2   3   4   5   6   7   8   9   10   >