[PATCH 4/4] regulator: qcom_spmi: Indent with tabs instead of spaces

2018-07-16 Thread Niklas Cassel
Fix the following checkpatch error: ERROR: code indent should use tabs where possible +{ }$ Fixes: ca5cd8c9400c ("regulator: qcom_spmi: Add support for pmi8994") Signed-off-by: Niklas Cassel --- drivers/regulator/qcom_spmi-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH 1/4] regulator: qcom_spmi: Fix warning Bad of_node_put()

2018-07-16 Thread Niklas Cassel
For of_find_node_by_name(), you typically pass what the previous call returned. Therefore, of_find_node_by_name() increases the refcount of the returned node, and decreases the refcount of the node passed as the first argument. However, in this case we don't pass what the previous call returned, s

Re: Bug report about KASLR and ZONE_MOVABLE

2018-07-16 Thread Michal Hocko
On Fri 13-07-18 07:52:40, Baoquan He wrote: > Hi Michal, > > On 07/12/18 at 02:32pm, Michal Hocko wrote: [...] > > I am not able to find the beginning of the email thread right now. Could > > you summarize what is the actual problem please? > > The bug is found on x86 now. > > When added "kerne

[ANNOUNCE] util-linux v2.32.1

2018-07-16 Thread Karel Zak
The util-linux stable release v2.32.1 is available at http://www.kernel.org/pub/linux/utils/util-linux/v2.32 Feedback and bug reports, as always, are welcomed. Karel util-linux 2.32.1 Release Notes === agetty: - keep c_iflags unmodified on --autologin [Kare

Re: [PATCH 09/11] sched: use pelt for scale_rt_capacity()

2018-07-16 Thread Ingo Molnar
* Vincent Guittot wrote: > > If the compiler refuses to optimize this away (due to the zero and overflow > > cases), try to find something more clever? > > Thanks for the fix. > I'm off for now and will look at your proposal above once back Sounds good, there's no rush, we've still got time u

Re: Build regressions/improvements in v4.18-rc5

2018-07-16 Thread Geert Uytterhoeven
On Mon, Jul 16, 2018 at 1:36 PM Geert Uytterhoeven wrote: > JFYI, when comparing v4.18-rc5[1] to v4.18-rc4[3], the summaries are: > - build errors: +93/-0 + error: /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/nds32le-linux/bin/nds32le-linux-ld: adv7842.c: undefined reference to `__ucmpdi2': => .

Re: [PATCH 05/18] iio: change strncpy+truncation to strlcpy

2018-07-16 Thread Dominique Martinet
Jonathan Cameron wrote on Sun, Jul 15, 2018: > On Fri, 13 Jul 2018 03:25:34 +0200 > Dominique Martinet wrote: > > Generated by scripts/coccinelle/misc/strncpy_truncation.cocci > > > > Signed-off-by: Dominique Martinet > > Applied to the togreg branch of iio.git and pushed out as testing > for t

RE: [PATCH V3] mmc: core: improve reasonableness of bus width setting for HS400es

2018-07-16 Thread 方洪杰
> On 16 July 2018 at 13:11, Hongjie Fang wrote: > > mmc_select_hs400es() calls mmc_select_bus_width() which will continue > > to set 4bit transfer mode if fail to set 8bit mode. The bus width > > should not be set to 4bit in HS400es. > > > > When fail to set 8bit mode, need return error directly

Re: [RFC PATCH v2 3/4] x86/boot/KASLR: Walk srat tables to filter immovable memory

2018-07-16 Thread Ingo Molnar
* Chao Fan wrote: > If 'CONFIG_MEMORY_HOTREMOVE' specified, walk the acpi srat memory > tables, store the immovable memory regions, so that kaslr can get > the information abouth where can be selected or not. > If 'CONFIG_MEMORY_HOTREMOVE' not specified, go on the old code. > > Signed-off-by:

Re: linux-next: Signed-off-by missing for commits in the arm-soc tree

2018-07-16 Thread Florian Fainelli
On 07/16/2018 02:57 AM, Russell King - ARM Linux wrote: > On Mon, Jul 16, 2018 at 05:24:08PM +0800, Chen-Yu Tsai wrote: >> On Mon, Jul 16, 2018 at 5:13 PM, Florian Fainelli >> wrote: >>> >>> >>> On 07/15/2018 03:50 PM, Olof Johansson wrote: Thanks Stephen, I keep saying every time you cat

Re: mainline/master boot: 177 boots: 2 failed, 174 passed with 1 conflict (v4.18-rc4-160-gf353078f028f)

2018-07-16 Thread Pavel Tatashin
I have reproduced the problem on mainline. Use x86_32 defcontig + qemu, and problem is reproduced immediately. I will send an update once I figure out what is going on. Pavel On Mon, Jul 16, 2018 at 7:02 AM Greg Kroah-Hartman wrote: > > On Mon, Jul 16, 2018 at 11:54:51AM +0100, Mark Brown wrote:

Re: REGRESSION: [RESEND PATCH v3 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-07-16 Thread Marcel Ziswiler
On Mon, 2018-07-16 at 10:42 +0100, Daniel Thompson wrote: > On Sun, Jul 15, 2018 at 02:26:44PM +, Marcel Ziswiler wrote: > > On Sun, 2018-07-15 at 08:57 +0100, Daniel Thompson wrote: > > > On Sat, Jul 14, 2018 at 03:08:17PM +, Marcel Ziswiler wrote: > > > > On Mon, 2018-04-09 at 10:33 +0200

Re: [PATCH 1/4] regulator: qcom_spmi: Fix warning Bad of_node_put()

2018-07-16 Thread Johan Hovold
Hi Niklas, On Mon, Jul 16, 2018 at 01:35:22PM +0200, Niklas Cassel wrote: > For of_find_node_by_name(), you typically pass what the previous call > returned. Therefore, of_find_node_by_name() increases the refcount of > the returned node, and decreases the refcount of the node passed as the > firs

[PATCH] nfsd: fix memory leak of async_copy

2018-07-16 Thread Colin King
From: Colin Ian King In the case where async_copy is successfully allocated but the call to nfs4_init_cp_state fails, async_copy is not currently freed and the memory is leaked. Fix this by kfree'ing it before returning. Detected by CoverityScan, CID#1471823 ("Resource leak") Fixes: beb1814d5a8

Re: [PATCH v4 08/18] net: davinci_emac: potentially get the MAC address from MTD

2018-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 16, 2018 at 05:27:00PM +0530, Sekhar Nori wrote: > On Monday 16 July 2018 02:26 PM, Srinivas Kandagatla wrote: > > > > > > On 16/07/18 09:50, Sekhar Nori wrote: > >> On Friday 13 July 2018 11:30 PM, Bartosz Golaszewski wrote: > >> > >>> We're getting close to rc5 so I'd like to make a

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

2018-07-16 Thread Daniel Bristot de Oliveira
On 07/16/2018 11:37 AM, Juri Lelli wrote: > Hi, > > On 14/07/18 15:37, Daniel Bristot de Oliveira wrote: >> Daniel Casini got this warn while running a DL task here at RetisLab: >> >> [ 461.137582] [ cut here ] >> [ 461.137583] rq->clock_update_flags < RQCF_ACT_SKIP >

[RFC] kvm: Adding skelaton for Memory ROE

2018-07-16 Thread Ahmed Abd El Mawgood
This is my first patch, an attempt to implement Memory ROE discussed by me earlier as a way to prevent Rootkits. I have already explained in details in this thread: https://www.mail-archive.com/kernelnewbies@kernelnewbies.org/msg18826.html So I think there is no need for saying the exact same thing

Re: [PATCH 0/2] gnss: fixes for char-misc-next

2018-07-16 Thread Johan Hovold
On Mon, Jul 16, 2018 at 12:48:45PM +0200, Greg Kroah-Hartman wrote: > On Mon, Jul 16, 2018 at 12:42:01PM +0200, Johan Hovold wrote: > > Hi Greg, > > > > Here's a resend of two gnss fixes for char-misc-next which I noted you > > haven't picked up directly (I'll continue picking these up an forwardi

watchdog: davinci_wdt: add possibility to configure watchdog period

2018-07-16 Thread michele . dionisio
From: Michele Dionisio It is not possible to implement setting of watchdog period because it is not possible to stop watchdog so it is nice to have possibility to configure watchdog period at module loading. Signed-off-by: Michele Dionisio diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/

watchdog: davinci_wdt: add possibility to configure watchdog period

2018-07-16 Thread michele . dionisio
Hi all, in davinci_wdt it is not possible to configure watchdog period. It is also impossible to stop the watchdog so it is usefull to configure the watchdog before start it the first time. This patch add a module parameter to configure the starting period before stat the watchdog (default beha

Hi Dear,

2018-07-16 Thread Lisa Willians
Hi Dear, how are you today I hope that everything is OK with you as it is my great pleasure to contact you in having communication with you starting from today, i was just going through the Internet search when i found your email address, I want to make a very new and special friend, so i decid

Re: [PATCH] Input: elan_i2c - Add antoher ACPI ID for Lenovo Ideapad 330-15AST

2018-07-16 Thread Dmitry Torokhov
On Mon, Jul 16, 2018 at 07:26:29PM +0800, KT Liao wrote: > Add ELAN0622 in ACPI mapping table to support Ideapad 330-15AST ELAN touchpad > > Signed-off-by: KT Liao > Reported-by: Anant Shende Applied, thank you. > --- > drivers/input/mouse/elan_i2c_core.c | 1 + > 1 file changed, 1 insertion(

Re: [PATCH 1/6] drivers/md/raid5: Use irqsave variant of atomic_dec_and_lock()

2018-07-16 Thread Sebastian Andrzej Siewior
On 2018-07-03 22:01:36 [+0200], To linux-kernel@vger.kernel.org wrote: > From: Anna-Maria Gleixner > > The irqsave variant of atomic_dec_and_lock handles irqsave/restore when > taking/releasing the spin lock. With this variant the call of > local_irq_save is no longer required. Shaohua, are you

Re: [PATCH 3/6] bdi: Use refcount_t for reference counting instead atomic_t

2018-07-16 Thread Sebastian Andrzej Siewior
On 2018-07-03 22:01:38 [+0200], To linux-kernel@vger.kernel.org wrote: > refcount_t type and corresponding API should be used instead of atomic_t when > the variable is used as a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free situations.

Re: [PATCH] ALSA: es1688: remove redundant pointer chip

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 10:43:08 +0200, Colin King wrote: > > From: Colin Ian King > > Pointer chip is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'chip' set but not used [-Wunused-but-set-variable] > > Signed-off-by

Re: [PATCH] ALSA: opl3: remove redundant pointer opl3

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 10:34:51 +0200, Colin King wrote: > > From: Colin Ian King > > Variable opl3 is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up several clang warnings: > warning: variable 'opl3' set but not used [-Wunused-but-set-variable] > > Sig

Re: [PATCH] ALSA: ali5451: remove redundant pointer 'codec'

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 10:57:38 +0200, Colin King wrote: > > From: Colin Ian King > > Pointer 'codec' is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'codec' set but not used [-Wunused-but-set-variable] > > Signed-of

Re: [PATCH] ALSA: sb8: remove redundant pointer runtime

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 10:52:56 +0200, Colin King wrote: > > From: Colin Ian King > > Pointer runtime is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'runtime' set but not used [-Wunused-but-set-variable] > > Signed-

Re: [PATCH] ALSA: gus: remove redundant pointer private_data

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 10:49:38 +0200, Colin King wrote: > > From: Colin Ian King > > Pointer private_data is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'private_data' set but not used [-Wunused-but-set-variable] >

Re: [PATCH] ALSA: cs46xx: remove redundant pointer 'ins'

2018-07-16 Thread Takashi Iwai
On Mon, 16 Jul 2018 11:03:15 +0200, Colin King wrote: > > From: Colin Ian King > > Pointer 'ins' is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'ins' set but not used [-Wunused-but-set-variable] > > Signed-off-by

Re: [PATCH 08/32] genirq: Synchronize only with single thread on free_irq()

2018-07-16 Thread Bjorn Helgaas
On Fri, Jul 13, 2018 at 09:21:09AM +0200, Lukas Wunner wrote: > On Thu, Jul 12, 2018 at 05:21:09PM -0500, Bjorn Helgaas wrote: > > On Sat, Jun 16, 2018 at 09:25:00PM +0200, Lukas Wunner wrote: > > > When pciehp is converted to threaded IRQ handling, removal of unplugged > > > devices below a PCIe h

Re: [PATCH 5/6] userns: Use refcount_t for reference counting instead atomic_t

2018-07-16 Thread Sebastian Andrzej Siewior
On 2018-07-03 22:01:40 [+0200], To linux-kernel@vger.kernel.org wrote: > refcount_t type and corresponding API should be used instead of atomic_t when > the variable is used as a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free situations.

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

2018-07-16 Thread Dirk Gouders
Because the kbuild function if_changed writes the command line to a .cmd file for later tests, multiple calls of that function within a target would result in overwrites of previous values and effectively render the command line test meaningless, resulting in flip-flop behaviour. Produce an error

Re: [PATCH] livepatch: Remove reliable stacktrace check in klp_try_switch_task()

2018-07-16 Thread Josh Poimboeuf
On Sun, Jul 15, 2018 at 01:05:56PM +0530, Kamalesh Babulal wrote: > On Saturday 14 July 2018 12:07 AM, Josh Poimboeuf wrote: > > > We bail out during patch registration for architectures, those don't > > > support reliable stack trace. > > > > Does anybody know if that change was intentional? I t

[PATCH] drm/i915/selftests: Remove redundant code

2018-07-16 Thread Gustavo A. R. Silva
err is assigned to -EIO, but this value is never actually used and *err* is updated later on. Remove such reduntant code. Addresses-Coverity-ID: 1471816 ("Unused value") Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/i915/selftests/intel_guc.c | 1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH] livepatch: Remove reliable stacktrace check in klp_try_switch_task()

2018-07-16 Thread Josh Poimboeuf
On Thu, Jul 12, 2018 at 01:35:06PM +0530, Kamalesh Babulal wrote: > Support for immediate flag was removed by commit d0807da78e11 > ("livepatch: Remove immediate feature"). We bail out during > patch registration for architectures, those don't support > reliable stack trace. Remove the check in kl

Re: [PATCH v6 0/7] fs/dcache: Track & limit # of negative dentries

2018-07-16 Thread Matthew Wilcox
On Mon, Jul 16, 2018 at 11:09:01AM +0200, Michal Hocko wrote: > On Fri 13-07-18 10:36:14, Dave Chinner wrote: > [...] > > By limiting the number of negative dentries in this case, internal > > slab fragmentation is reduced such that reclaim cost never gets out > > of control. While it appears to "f

Re: [PATCH] doc: livepatch: fix minor typo in shadow-vars.txt

2018-07-16 Thread Josh Poimboeuf
On Mon, Jul 16, 2018 at 11:18:40AM +0530, Kamalesh Babulal wrote: > Fix the spelling of 'varibles' -> 'variables' in > shadows->vars.txt file. > > Signed-off-by: Kamalesh Babulal > --- > Documentation/livepatch/shadow-vars.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --g

Re: linux-next: Signed-off-by missing for commits in the pinctrl tree

2018-07-16 Thread Linus Walleij
On Mon, Jul 16, 2018 at 10:29 AM Stephen Rothwell wrote: > In the tree I fetched this morning, those commits are all committed by > you, but you did not add a Signed-off-by to then. This usually happens > when you rebase a branch/tree. Ah sorry man. Mark Brown told me the same thing this mornin

Re: [PATCH] x86: Avoid pr_cont() in show_opcodes()

2018-07-16 Thread Tetsuo Handa
Ingo, is this patch acceptable? On 2018/07/07 22:54, Tetsuo Handa wrote: >From 61752cef56fad2a910f6bfd277e1b9b028aeab43 Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Sat, 7 Jul 2018 22:45:30 +0900 > Subject: [PATCH v2] x86: Avoid pr_cont() in show_opcodes() > > Since syzbot is confused b

Re: [RFC][PATCH 07/11] signal: Deliver group signals via PIDTYPE_TGID not PIDTYPE_PID

2018-07-16 Thread Oleg Nesterov
On 07/10, Eric W. Biederman wrote: > > Now that we can make the distinction use PIDTYPE_TGID rather than > PIDTYPE_PID. Wai, wait, this doesn't look right... > There is no immediate effect as they point point at the > same task, How so? pid_task(pid, PIDTYPE_TGID) will return NULL unless this pi

Re: [PATCH v5 4/7] Bluetooth: Add new quirk for non-persistent setup settings

2018-07-16 Thread Marcel Holtmann
Hi Sean, >>> Add a new quirk HCI_QUIRK_NON_PERSISTENT_SETUP allowing that a quirk that >>> runs setup() after every open() and not just after the first open(). >>> >>> Signed-off-by: Sean Wang >>> --- >>> include/net/bluetooth/hci.h | 9 + >>> net/bluetooth/hci_core.c| 3 ++- >>> 2 fil

[PATCH 2/2] pinctrl: stm32: check node status before new gpio bank registering

2018-07-16 Thread Alexandre Torgue
Register a new GPIO bank only if GPIO bank node is enabled. This patch also adds checks on ranges which are defined only if a bank is registered. Signed-off-by: Alexandre Torgue diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index eb6ae14..111225e 100

[PATCH 0/2] STM32 pinctrl updates

2018-07-16 Thread Alexandre Torgue
Hi, This series includes two updates for stm32 pinctrl driver: -Fixes the way to map a gpio bank to an EXTi line. -Check "status" devicetree entry (in gpio-contriller node) before registering a new gpio bank. Regards Alex Alexandre Torgue (2): pinctrl: stm32: fix bank io port number pi

[PATCH 1/2] pinctrl: stm32: fix bank io port number

2018-07-16 Thread Alexandre Torgue
In case the exti line is not in line with the bank number (that is the case when there is an hole between two banks, for example GPIOK and then GPIOZ), use "st,bank-ioport" DT property to get the right exti line. Signed-off-by: Amelie Delaunay Signed-off-by: Alexandre Torgue diff --git a/Docume

Re: [PATCH v5 5/7] Bluetooth: Extend btuart driver for join more vendor devices

2018-07-16 Thread Marcel Holtmann
Hi Sean, >>> Adding an independent btuart.h header allows these essential definitions >>> can be reused in vendor driver. Also, struct btuart_vnd is extended with >>> additional callbacks such as .init initializing vendor data, .shtudown, >>> .recv and .send supporting SoC specific framing for tha

Re: Bug report about KASLR and ZONE_MOVABLE

2018-07-16 Thread Baoquan He
On 07/16/18 at 01:38pm, Michal Hocko wrote: > On Fri 13-07-18 07:52:40, Baoquan He wrote: > > Hi Michal, > > > > On 07/12/18 at 02:32pm, Michal Hocko wrote: > [...] > > > I am not able to find the beginning of the email thread right now. Could > > > you summarize what is the actual problem please?

Re: linux-next: Signed-off-by missing for commits in the pinctrl tree

2018-07-16 Thread Linus Walleij
On Mon, Jul 16, 2018 at 9:59 AM Geert Uytterhoeven wrote: > The previous issue was a missing commit from the _author_, not committer. > As you rebased the branch, _you_ are now the committer, not me anymore. > So now your SoBs must be present, too. Yeah I figured. Sorry. > As I already told you

Re: [PATCH V3 2/7] mmc: sdhci: made changes for System Address register of SDMA

2018-07-16 Thread Adrian Hunter
On 09/07/18 06:19, Chunyan Zhang wrote: > According to the SD host controller specification version 4.10, when > Host Version 4 is enabled, SDMA uses ADMA System Address register > (05Fh-058h) instead of using SDMA System Address register to > support both 32-bit and 64-bit addressing. The commit

Re: [PATCH] Revert "mm: always flush VMA ranges affected by zap_page_range"

2018-07-16 Thread Mel Gorman
On Fri, Jul 06, 2018 at 01:10:19PM -0400, Rik van Riel wrote: > There was a bug in Linux that could cause madvise (and mprotect?) > system calls to return to userspace without the TLB having been > flushed for all the pages involved. > > This could happen when multiple threads of a process made si

Re: [PATCH 3/3] tty: support CIBAUD without BOTHER

2018-07-16 Thread Alan Cox
> Ugh, I thought glibc got support for it, I guess everyone just > hand-codes it in their applications for now. Sad. The glibc people actively contributed to its design and then went radio silent on the subject. Alan

Re: mainline/master boot: 177 boots: 2 failed, 174 passed with 1 conflict (v4.18-rc4-160-gf353078f028f)

2018-07-16 Thread Pavel Tatashin
I have figured out what is going with x86-32. Since it has FLATMEM memory layout, the memmap is now allocated after zero_resv_unavail(): Now, we have something like this: zero_resv_unavail() free_area_init_node() #ifdef CONFIG_FLAT_NODE_MEM_MAP alloc_node_mem_map() #endif At the time when ze

Re: FAT: Operating on broken FAT FS causes the write syscall to return negative number not equal to -1

2018-07-16 Thread Alan Cox
> Oops, I was just doing some testing and thought that correct behavior > for crafted FS is to return arbitrary valid error code (like -EIO) or > some arbitrary data, say, not larger than FS (not disclosing the > kernel memory, of course). Please excuse me if I was wrong. If fixing > this would slo

Re: [PATCH v2 2/2] arm64: dts: Add Mediatek X20 Development Board support

2018-07-16 Thread Matthias Brugger
Hi Manivanna, On 05/06/18 18:34, Manivannan Sadhasivam wrote: > Add initial device tree support for Mediatek X20 Development Board > based on MT6797 Deca core SoC. This board is one of the 96Boards > Consumer Edition platform. > > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm64/boot/dts

Re: [PATCH V3 2/7] mmc: sdhci: made changes for System Address register of SDMA

2018-07-16 Thread Adrian Hunter
On 16/07/18 16:03, Adrian Hunter wrote: > On 09/07/18 06:19, Chunyan Zhang wrote: >> According to the SD host controller specification version 4.10, when >> Host Version 4 is enabled, SDMA uses ADMA System Address register >> (05Fh-058h) instead of using SDMA System Address register to >> support b

Re: [PATCH 1/4] regulator: qcom_spmi: Fix warning Bad of_node_put()

2018-07-16 Thread Niklas Cassel
On Mon, Jul 16, 2018 at 02:01:34PM +0200, Johan Hovold wrote: > Hi Niklas, > > On Mon, Jul 16, 2018 at 01:35:22PM +0200, Niklas Cassel wrote: > > For of_find_node_by_name(), you typically pass what the previous call > > returned. Therefore, of_find_node_by_name() increases the refcount of > > the

Re: [PATCH 2/2] staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames

2018-07-16 Thread Michael Straube
On 07/14/18 19:54, Ivan Safonov wrote: Put data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx buffer. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_security.c | 778 +++--- 1 file changed, 72 insertions(+), 706 deletions(-) Hi Ivan

Re: [PATCH 1/2] mm: Fix vma_is_anonymous() false-positives

2018-07-16 Thread Michal Hocko
On Tue 10-07-18 13:48:58, Andrew Morton wrote: > On Tue, 10 Jul 2018 16:48:20 +0300 "Kirill A. Shutemov" > wrote: > > > vma_is_anonymous() relies on ->vm_ops being NULL to detect anonymous > > VMA. This is unreliable as ->mmap may not set ->vm_ops. > > > > False-positive vma_is_anonymous() may

REGRESSION: [PATCHv2 2/2] mm: Drop unneeded ->vm_ops checks

2018-07-16 Thread Marcel Ziswiler
if (new->vm_file) > fput(new->vm_file); > @@ -3232,7 +3232,7 @@ struct vm_area_struct *copy_vma(struct > vm_area_struct **vmap, > goto out_free_mempol; > if (new_vma->vm_file) > get_file(new_vma-&g

Re: watchdog: davinci_wdt: add possibility to configure watchdog period

2018-07-16 Thread Guenter Roeck
On 07/16/2018 05:19 AM, michele.dioni...@gmail.com wrote: From: Michele Dionisio It is not possible to implement setting of watchdog period because it is not possible to stop watchdog so it is nice to have possibility to configure watchdog period at module loading. Signed-off-by: Michele Dioni

[PATCH v2 0/4] regulator: qcom_spmi: fix Bad of_node_put() splat

2018-07-16 Thread Niklas Cassel
Fix Bad of_node_put() splat, and some minor checkpatch issues. Changes since v1: -Use of_get_child_by_name() instead of of_find_node_by_name(). Niklas Cassel (4): regulator: qcom_spmi: Fix warning Bad of_node_put() regulator: qcom_spmi: Use correct regmap when checking for error regulator:

[PATCH v2 1/4] regulator: qcom_spmi: Fix warning Bad of_node_put()

2018-07-16 Thread Niklas Cassel
For of_find_node_by_name(), you typically pass what the previous call returned. Therefore, of_find_node_by_name() increases the refcount of the returned node, and decreases the refcount of the node passed as the first argument. of_find_node_by_name() is incorrectly used, and produces a warning. Fi

[PATCH v2 2/4] regulator: qcom_spmi: Use correct regmap when checking for error

2018-07-16 Thread Niklas Cassel
Since we have just assigned saw_regmap, and since the error message refers to saw_regmap, it feels safe to assume that it is saw_regmap, and not regmap, that should be checked for errors. Fixes: 0caecaa87202 ("regulator: qcom_spmi: Add support for SAW") Signed-off-by: Niklas Cassel --- drivers/r

[PATCH v2 3/4] regulator: qcom_spmi: Do not initialise static to NULL

2018-07-16 Thread Niklas Cassel
Fix the following checkpatch error: ERROR: do not initialise statics to NULL +static struct regmap *saw_regmap = NULL; Fixes: 0caecaa87202 ("regulator: qcom_spmi: Add support for SAW") Signed-off-by: Niklas Cassel --- drivers/regulator/qcom_spmi-regulator.c | 2 +- 1 file changed, 1 insertion(+

Re: [PATCH v2 1/6] dt-bindings: gpu: mali-utgard: add mediatek,mt7623-mali compatible

2018-07-16 Thread Matthias Brugger
On 27/06/18 10:52, Sean Wang wrote: > On Mon, 2018-06-25 at 17:14 +0200, Matthias Brugger wrote: >> >> On 27/04/18 10:14, sean.w...@mediatek.com wrote: >>> From: Sean Wang >>> >>> The MediaTek MT7623 SoC contains a Mali-450, so add a compatible for it >>> and define its own vendor-specific prop

[PATCH v2 4/4] regulator: qcom_spmi: Indent with tabs instead of spaces

2018-07-16 Thread Niklas Cassel
Fix the following checkpatch error: ERROR: code indent should use tabs where possible +{ }$ Fixes: ca5cd8c9400c ("regulator: qcom_spmi: Add support for pmi8994") Signed-off-by: Niklas Cassel --- drivers/regulator/qcom_spmi-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH v2] sched/cputime: Ensure accurate utime and stime ratio in cputime_adjust()

2018-07-16 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 10:58:43PM +0800, Xunlei Pang wrote: > If users access "/proc/pid/stat", the utime and stime ratio in the > current SAMPLE period are excepted, but currently cputime_adjust() > always calculates with the ratio of the WHOLE lifetime of the process. > > This results in inaccu

Re: [PATCH v13 13/18] x86/tsc: calibrate tsc only once

2018-07-16 Thread Pavel Tatashin
On Mon, Jul 16, 2018 at 5:33 AM Dou Liyang wrote: > > > > At 07/13/2018 07:30 PM, Pavel Tatashin wrote: > > On Fri, Jul 13, 2018 at 3:24 AM Dou Liyang > > wrote: > >> > >> > >> At 07/12/2018 08:04 AM, Pavel Tatashin wrote: > >>> During boot tsc is calibrated twice: once in tsc_early_delay_calibr

Re: [PATCH V3 3/7] mmc: sdhci: add ADMA2 64-bit addressing support for V4 mode

2018-07-16 Thread Adrian Hunter
On 09/07/18 06:19, Chunyan Zhang wrote: > ADMA2 64-bit addressing support is divided into V3 mode and V4 mode. > So there are two kinds of descriptors for ADMA2 64-bit addressing > i.e. 96-bit Descriptor for V3 mode, and 128-bit Descriptor for V4 > mode. 128-bit Descriptor is aligned to 8-byte. >

Re: [PATCH 6/7] arm64: dts: mt7622: use gpio-ranges to pinctrl device

2018-07-16 Thread Matthias Brugger
On 22/06/18 05:49, sean.w...@mediatek.com wrote: > From: Sean Wang > > Using gpio-ranges property represent which GPIOs correspond to which pins > on MT7622 pin controllers. For details, we can see section 2.1 of > Documentation/devicetree/bindings/gpio/gpio.txt to know how to bind pinctrl > a

Re: [PATCH 7/7] arm64: dts: mt7622: add earlycon to mt7622-rfb1 board

2018-07-16 Thread Matthias Brugger
On 22/06/18 05:49, sean.w...@mediatek.com wrote: > From: Sean Wang > > Add earlycon to mt7622-rfb1 as to know what was going on when a certain > fault is happening at the early initialization stage. > > Signed-off-by: Sean Wang > --- > arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 2 +- >

Re: [PATCH 08/32] genirq: Synchronize only with single thread on free_irq()

2018-07-16 Thread Lukas Wunner
On Mon, Jul 16, 2018 at 07:37:19AM -0500, Bjorn Helgaas wrote: > On Fri, Jul 13, 2018 at 09:21:09AM +0200, Lukas Wunner wrote: > > On Thu, Jul 12, 2018 at 05:21:09PM -0500, Bjorn Helgaas wrote: > > > On Sat, Jun 16, 2018 at 09:25:00PM +0200, Lukas Wunner wrote: > > > > When pciehp is converted to t

RE: [PATCH v5] dcdbas: Add support for WSMT ACPI table

2018-07-16 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, July 13, 2018 9:35 AM > To: Stuart Hayes > Cc: Limonciello, Mario; Darren Hart; Linux Kernel Mailing List; Platform > Driver > Subject: Re: [PATCH v5] dcdbas: Add support for WSMT ACPI table >

Re: [tip:sched/core] sched/cputime: Ensure accurate utime and stime ratio in cputime_adjust()

2018-07-16 Thread Peter Zijlstra
On Sun, Jul 15, 2018 at 04:36:17PM -0700, tip-bot for Xunlei Pang wrote: > Commit-ID: 8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 > Gitweb: > https://git.kernel.org/tip/8d4c00dc38a8aa30dae8402955e55e7b34e74bc8 > Author: Xunlei Pang > AuthorDate: Mon, 9 Jul 2018 22:58:43 +0800 > Committer:

Re: [PATCH 3/3] clk: meson-g12a: Add EE Clock controller driver

2018-07-16 Thread Kevin Hilman
Jerome Brunet writes: > On Tue, 2018-07-10 at 09:21 +0800, Yixun Lan wrote: >> >> On 07/10/18 05:53, Martin Blumenstingl wrote: >> > On Mon, Jul 9, 2018 at 1:14 PM Jian Hu wrote: [...] >> > > + >> > > +static const struct of_device_id clkc_match_table[] = { >> > > + { .compatible = "aml

Re: [V9fs-developer] [PATCH] net/9p: Fix a deadlock case in the virtio transport

2018-07-16 Thread Dominique Martinet
jiangyiwen wrote on Mon, Jul 16, 2018: > You're right, this wake up operation should be put after the unlocking, > I will resend it. In addition, whether I should resend this patch based > on your 9p-next branch? There is a trivial conflict with Thomas' validate PDU length patch, but as it is triv

Re: [PATCH 1/2] gpiolib: don't allow userspace to set values of input lines

2018-07-16 Thread Linus Walleij
On Mon, Jul 16, 2018 at 10:34 AM Bartosz Golaszewski wrote: > User space can currently both read and set values of input lines using > the character device. This was not allowed by the old sysfs interface > nor is it a correct behavior. > > Check the first descriptor in the set for the OUT flag w

Re: [PATCH 3/3] clk: meson-g12a: Add EE Clock controller driver

2018-07-16 Thread Kevin Hilman
Jian Hu writes: > On 2018/7/10 5:53, Martin Blumenstingl wrote: >> On Mon, Jul 9, 2018 at 1:14 PM Jian Hu wrote: [...] >>> +static const struct of_device_id clkc_match_table[] = { >>> + { .compatible = "amlogic,g12a-clkc" }, >> I wonder if that should be "amlogic,meson-g12a-clkc" (I know

Re: [PATCH 2/2] gpiolib: remove an unnecessary TODO

2018-07-16 Thread Linus Walleij
On Mon, Jul 16, 2018 at 10:34 AM Bartosz Golaszewski wrote: > It's actually fine to read values of output lines. This was also > allowed by the legacy sysfs interface. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

Re: REGRESSION: [RESEND PATCH v3 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-07-16 Thread Daniel Thompson
On Mon, Jul 16, 2018 at 11:57:29AM +, Marcel Ziswiler wrote: > On Mon, 2018-07-16 at 10:42 +0100, Daniel Thompson wrote: > > > > > > From dbb31d00c9f2873affedbceae917c9d7fce5f832 Mon Sep 17 00:00:00 > > > 2001 > > > Message-Id: > > > > > rcel.ziswi...@toradex.com> > > > From: Daniel Thompson

[PATCH V2] ARM: STi: warn if scu mapping fails

2018-07-16 Thread Nicholas Mc Guire
se warning unrelated to the proposed change) Patch is against 4.18-rc4 (localversion-next is next-20180716) arch/arm/mach-sti/platsmp.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-sti/platsmp.c b/arch/arm/mach-sti/platsmp.c index 231f19

Re: [PATCH v9 7/7] Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990

2018-07-16 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-07-07 03:51, Matthias Kaehlcke wrote: On Thu, Jul 05, 2018 at 10:25:15PM +0530, Balakrishna Godavarthi wrote: Add support to set voltage/current of various regulators to power up/down Bluetooth chip wcn3990. Signed-off-by: Balakrishna Godavarthi --- changes in v9: * m

Re: [PATCH v2] ARM64: dts: meson-axg: add saradc support

2018-07-16 Thread Kevin Hilman
Jerome Brunet writes: > On Mon, 2018-07-02 at 22:25 +, Yixun Lan wrote: >> From: Xingyu Chen >> >> Add the DT info for SAR ADC of the Amlogic's Meson-AXG SoC. >> >> Signed-off-by: Xingyu Chen >> Signed-off-by: Yixun Lan >> --- >> Hi kevin >> I just re-send this patch which rebased to y

Re: [PATCH v6 7/8] module: replace the existing LSM hook in init_module

2018-07-16 Thread Mimi Zohar
On Sat, 2018-07-14 at 19:30 -0700, Kees Cook wrote: > On Fri, Jul 13, 2018 at 11:06 AM, Mimi Zohar wrote: > > Both the init_module and finit_module syscalls call either directly > > or indirectly the security_kernel_read_file LSM hook. This patch > > replaces the direct call in init_module with a

Re: [PATCH 04/18] staging: gasket: device registration error and unregister fixups

2018-07-16 Thread Dan Carpenter
On Fri, Jul 13, 2018 at 10:58:02PM -0700, Todd Poynor wrote: > @@ -376,7 +377,10 @@ int gasket_register_device(const struct > gasket_driver_desc *driver_desc) > fail1: > class_destroy(internal->class); > > +fail0: GW-BASIC sytle label names are an anti-pattern. It's better to name the l

Re: [PATCH 4.9 00/32] 4.9.113-stable review

2018-07-16 Thread Nathan Chancellor
On Mon, Jul 16, 2018 at 09:36:08AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.113 release. > There are 32 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

Re: [PATCH 2/2] arm64: dts: mt7622: update a clock property for UART0

2018-07-16 Thread Matthias Brugger
Hi Ryder, On 10/07/18 09:55, Ryder Lee wrote: > The input clock of UART0 should be CLK_PERI_UART0_PD. > > Signed-off-by: Ryder Lee Can you provide a "Fixes" tag with the commit id of the commit that broke this? Thanks, Matthias > --- > arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +- > 1 fil

Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields

2018-07-16 Thread Rob Herring
On Fri, Jul 13, 2018 at 12:31 AM Andrew Jeffery wrote: > > Hi Rob, Ben, > > I've replied to you both inline below, hopefully it's clear enough from the > context. > > On Fri, 13 Jul 2018, at 10:25, Benjamin Herrenschmidt wrote: > > On Thu, 2018-07-12 at 09:11 -0600, Rob Herring wrote: > > > On We

Re: [PATCH 4.4 00/43] 4.4.141-stable review

2018-07-16 Thread Nathan Chancellor
On Mon, Jul 16, 2018 at 09:36:05AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.141 release. > There are 43 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

Re: [PATCH 1/2] arm: dts: mt7623: cleanup MT7623N NAND dts file

2018-07-16 Thread Matthias Brugger
On 10/07/18 07:09, Ryder Lee wrote: > Normally, we didn't release this kind of baord to user. This specific > board exists only in the early stage of development inside MediaTek - > and that may confuse peoples. > > Hence this patch removes related files accordingly. > > Cc: John Crispin > Cc

Re: [PATCH] soc: imx: gpc: restrict register range for regmap access

2018-07-16 Thread Fabio Estevam
Hi Anson, On Mon, Jul 16, 2018 at 1:46 AM, Anson Huang wrote: > GPC registers are NOT continuous, some registers are > reserved and accessing them from userspace will trigger > external abort, add regmap register access table to > avoid below abort: > > root@imx6slevk:~# cat /sys/kernel/debug/reg

Re: REGRESSION: [RESEND PATCH v3 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-07-16 Thread Marcel Ziswiler
On Mon, 2018-07-16 at 14:51 +0100, Daniel Thompson wrote: > On Mon, Jul 16, 2018 at 11:57:29AM +, Marcel Ziswiler wrote: > > On Mon, 2018-07-16 at 10:42 +0100, Daniel Thompson wrote: > > > > > > > > From dbb31d00c9f2873affedbceae917c9d7fce5f832 Mon Sep 17 > > > > 00:00:00 > > > > 2001 > > > >

Re: watchdog: davinci_wdt: add possibility to configure watchdog period

2018-07-16 Thread Michele Dionisio
I have done what are already done in: omap_wdt.c with parameter timer_margin softdog.c with parameter softMargin ... the same feature is missing in davinci_wdt and I think is quite usefull. if you NACK because I don't use watchdog_init_timeout I can rewrite the code but I do that to reduce the nu

Re: [PATCH 1/2] mm: Fix vma_is_anonymous() false-positives

2018-07-16 Thread Kirill A. Shutemov
On Mon, Jul 16, 2018 at 01:30:28PM +, Michal Hocko wrote: > On Tue 10-07-18 13:48:58, Andrew Morton wrote: > > On Tue, 10 Jul 2018 16:48:20 +0300 "Kirill A. Shutemov" > > wrote: > > > > > vma_is_anonymous() relies on ->vm_ops being NULL to detect anonymous > > > VMA. This is unreliable as ->

[PATCH] hpfs: remove unnecessary checks on the value of r when assigning error code

2018-07-16 Thread Colin King
From: Colin Ian King At the point where r is being checked for different values, r is always going to be equal to 2 as the previous if statements jump to end or end1 if r is not 2. Hence the assignment to err can be simplified to just err an assignment without any checks on the value or r. Dete

Re: [PATCH 0/6] System call table generation support

2018-07-16 Thread Arnd Bergmann
On Mon, Jul 16, 2018 at 12:23 PM, Firoz Khan wrote: > The goal of this patch series is to easily add/modify/delete a > system call by changing entry in syscall.tbl file. No need > to manually edit many files. > > The another goal of this patch series is to to unify the system > call implementation

Re: watchdog: davinci_wdt: add possibility to configure watchdog period

2018-07-16 Thread Guenter Roeck
On 07/16/2018 07:04 AM, Michele Dionisio wrote: I have done what are already done in: omap_wdt.c with parameter timer_margin softdog.c with parameter softMargin ... the same feature is missing in davinci_wdt and I think is quite usefull. if you NACK because I don't use watchdog_init_timeout I c

Re: [PATCH 1/2] gpiolib: don't allow userspace to set values of input lines

2018-07-16 Thread Bartosz Golaszewski
2018-07-16 15:40 GMT+02:00 Linus Walleij : > On Mon, Jul 16, 2018 at 10:34 AM Bartosz Golaszewski wrote: > >> User space can currently both read and set values of input lines using >> the character device. This was not allowed by the old sysfs interface >> nor is it a correct behavior. >> >> Check

Re: [PATCH v5 4/5] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-07-16 Thread Alexandre Belloni
Hello, On 09/07/2018 16:29:43+0300, Codrin Ciubotariu wrote: > On 06.07.2018 22:39, Alexandre Belloni wrote: > > Hi Codrin, > > > > On 18/06/2018 17:12:38+0300, Codrin Ciubotariu wrote: > > > From: Cyrille Pitchen > > > > > > This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for

Re: REGRESSION: [PATCHv2 2/2] mm: Drop unneeded ->vm_ops checks

2018-07-16 Thread Kirill A. Shutemov
) { > > err = vma->vm_ops->split(vma, addr); > > if (err) > > return err; > > @@ -2657,7 +2657,7 @@ int __split_vma(struct mm_struct *mm, struct > > vm_area_struct *vma, > > if (new->vm_file) > > ge

<    1   2   3   4   5   6   7   8   9   10   >