[PATCH v5.2 2/2] lcoking/rwsem: Add missing ACQUIRE to read_slowpath sleep loop

2019-08-26 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 99143f82a255e7f054bead8443462fae76dd829e ] While reviewing another read_slowpath patch, both Will and I noticed another missing ACQUIRE, namely: X = 0; CPU0 CPU1 rwsem_down_read() for (;;) {

[PATCH v5.2 1/2] locking/rwsem: Add missing ACQUIRE to read_slowpath exit when queue is empty

2019-08-26 Thread Sasha Levin
From: Jan Stancek [ Upstream commit e1b98fa316648420d0434d9ff5b92ad6609ba6c3 ] LTP mtest06 has been observed to occasionally hit "still mapped when deleted" and following BUG_ON on arm64. The extra mapcount originated from pagefault handler, which handled pagefault for vma that has already

Re: [PATCH v1] [semaphore] Removed redundant code from semaphore's down family of function

2019-08-26 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 04:14:36PM +0200, Peter Zijlstra wrote: > (XXX, we should probably move the schedule_timeout() thing into its own > patch) A better version here... --- Subject: sched,time: Allow better constprop/DCE for schedule_timeout() If timeout is constant and MAX_SCHEDULE_TIMEOUT,

Re: [PATCH RESEND] erofs: fix compile warnings when moving out include/trace/events/erofs.h

2019-08-26 Thread Gao Xiang
Hi Chao, On Mon, Aug 26, 2019 at 09:51:35PM +0800, Chao Yu wrote: > On 2019-8-26 21:26, Gao Xiang wrote: [] > > TRACE_EVENT(erofs_lookup, > > ^~~ > > include/trace/events/erofs.h:28:2: note: in expansion of macro 'TP_PROTO' > > TP_PROTO(struct inode *dir, struct dentry *dentry,

Re: [PATCH 00/14] per memcg lru_lock

2019-08-26 Thread Alex Shi
在 2019/8/22 下午11:20, Daniel Jordan 写道: >> >>>    >>> https://git.kernel.org/pub/scm/linux/kernel/git/wfg/vm-scalability.git/tree/case-lru-file-readtwice> >>> It's also synthetic but it stresses lru_lock more than just anon >>> alloc/free.  It hits the page activate path, which is where we see

Re: BoF on LPC 2019 : Linux Perf advancements for compute intensive and server systems

2019-08-26 Thread Alexey Budankov
On 26.08.2019 16:55, Arnaldo Carvalho de Melo wrote: > Em Mon, Aug 26, 2019 at 02:36:48PM +0300, Alexey Budankov escreveu: >> >> Hi, >> >> There is a BoF session scheduled on Linux Plumbers Conference 2019 event. >> If you plan attend the event feel free to join and discuss about the BoF >>

Re: [PATCH v2 1/6] ASoC: atmel: enable SOC_SSC_PDC and SOC_SSC_DMA in Kconfig

2019-08-26 Thread Alexandre Belloni
On 24/08/2019 22:26:52+0200, Michał Mirosław wrote: > Allow SSC to be used on platforms described using audio-graph-card > in Device Tree. > > Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni > > --- > v2: extended to PDC mode > reworked and fixed Kconfig option dependencies >

Re: [PATCH 00/14] per memcg lru_lock

2019-08-26 Thread Alex Shi
在 2019/8/26 下午4:39, Konstantin Khlebnikov 写道: >>> > because they mixes pages from different cgroups. > > pagevec_lru_move_fn and friends need better implementation: > either sorting pages or splitting vectores in per-lruvec basis. Right, this should be the next step to improve. Maybe we could

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-26 Thread Matthew Wilcox
On Mon, Aug 26, 2019 at 09:43:24AM -0400, Waiman Long wrote: > On 8/26/19 9:25 AM, Matthew Wilcox wrote: > > On Mon, Aug 26, 2019 at 08:43:36AM -0400, Waiman Long wrote: > >> It was found that on a dual-socket x86-64 system with nvdimm, reading > >> /proc/kpagecount may cause the system to panic:

RE: [PATCH v3 0/8] AMD64 EDAC fixes

2019-08-26 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org On > Behalf Of Borislav Petkov > Sent: Friday, August 23, 2019 10:38 AM > To: Ghannam, Yazen > Cc: Adam Borowski ; linux-e...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH v3 0/8] AMD64 EDAC fixes >

Re: [PATCH 03/14] lru/memcg: using per lruvec lock in un/lock_page_lru

2019-08-26 Thread Alex Shi
在 2019/8/26 下午4:30, Konstantin Khlebnikov 写道: >> >>   > > What protects lruvec from freeing at this point? > After reading resolving lruvec page could be moved and cgroup deleted. > > In this old patches I've used RCU for that: > https://lkml.org/lkml/2012/2/20/276 > Pointer to lruvec

Re: [PATCH v1] [semaphore] Removed redundant code from semaphore's down family of function

2019-08-26 Thread Peter Zijlstra
On Sat, Aug 24, 2019 at 09:20:59AM +0530, Satendra Singh Thakur wrote: > On Thu, 22 Aug 2019 17:51:12 +0200, Peter Zijlstra wrote: > > On Mon, Aug 12, 2019 at 07:18:59PM +0530, Satendra Singh Thakur wrote: > > > -The semaphore code has four funcs > > > down, > > > down_interruptible, > > >

Re: [PATCH v2 3/6] ASoC: atmel_ssc_dai: implement left-justified data mode

2019-08-26 Thread Codrin.Ciubotariu
> Enable support for left-justified data mode for SSC-codec link. > > Signed-off-by: Michał Mirosław > > --- > v2: rebased I noticed you also added a description and you removed two comments from v1. Please include all the changes in the changelog. I already added my 'Reviewed-by' in v1,

Re: numlist_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-26 Thread Petr Mladek
On Mon 2019-08-26 10:34:36, Andrea Parri wrote: > > > + /* > > > + * bA: > > > + * > > > + * Setup the node to be a list terminator: next_id == id. > > > + */ > > > + WRITE_ONCE(n->next_id, id); > > > > Do we need WRITE_ONCE() here? > > Both "n" and "id" are given as parameters and do not

Re: [PATCH] perf script: Fix memory leaks in list_scripts()

2019-08-26 Thread Arnaldo Carvalho de Melo
Em Sun, Aug 25, 2019 at 11:06:25PM -0500, Gustavo A. R. Silva escreveu: > Hi all, > > Friendly ping (second one after 4 months): > > Who can take this? Sorry for the delay, finally applied, thanks! - Arnaldo > Thanks > -- > Gustavo > > On 4/22/19 10:14 AM, Gustavo A. R. Silva wrote: > > Hi

Re: [PATCH] PCI: Add missing link delays required by the PCIe spec

2019-08-26 Thread Bjorn Helgaas
On Mon, Aug 26, 2019 at 01:17:26PM +0300, Mika Westerberg wrote: > On Fri, Aug 23, 2019 at 09:12:54PM -0500, Bjorn Helgaas wrote: > > Hi Mika, > > Hi, > > > I'm trying to figure out specifically why we need this and where it > > should go. Questions below. > > Thanks for looking at this. > >

Re: [PATCH] KVM: x86: Don't update RIP or do single-step on faulting emulation

2019-08-26 Thread Sean Christopherson
On Fri, Aug 23, 2019 at 03:46:20PM -0700, Andy Lutomirski wrote: > On Fri, Aug 23, 2019 at 1:55 PM Sean Christopherson > wrote: > > > > Don't advance RIP or inject a single-step #DB if emulation signals a > > fault. This logic applies to all state updates that are conditional on > > clean

Re: [PATCH v2 2/6] ASoC: atmel_ssc_dai: rework DAI format configuration

2019-08-26 Thread Codrin.Ciubotariu
On 24.08.2019 23:26, Michał Mirosław wrote: > Rework DAI format calculation in preparation for adding more formats > later. As a side-effect this enables all CBM/CBS x CFM/CFS combinations > for supported formats. (Note: the additional modes are not tested.) The only mode added (and not tested)

Re: [RESEND PATCH v3 14/20] mtd: spi_nor: Add a ->setup() method

2019-08-26 Thread Boris Brezillon
On Mon, 26 Aug 2019 13:38:48 + Schrempf Frieder wrote: > On 26.08.19 14:40, Boris Brezillon wrote: > > On Mon, 26 Aug 2019 12:08:58 + > > wrote: > > > >> From: Tudor Ambarus > >> > >> nor->params.setup() configures the SPI NOR memory. Useful for SPI NOR > >> flashes that have

[tip: x86/urgent] uprobes/x86: Fix detection of 32-bit user mode

2019-08-26 Thread tip-bot2 for Sebastian Mayr
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 9212ec7d8357ea630031e89d0d399c761421c83b Gitweb: https://git.kernel.org/tip/9212ec7d8357ea630031e89d0d399c761421c83b Author:Sebastian Mayr AuthorDate:Sun, 28 Jul 2019 17:26:17 +02:00

Re: Linux 5.2.10

2019-08-26 Thread Jörg-Volker Peetz
For me the command $ gpg --receive-keys DEA66FF797772CDC did the key import and I was able to verify the signature via https://www.kernel.org/category/signatures.html and then the git tag v5.2.10. Thank you both very much. Best regards, Jörg.

Re: BoF on LPC 2019 : Linux Perf advancements for compute intensive and server systems

2019-08-26 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 26, 2019 at 02:36:48PM +0300, Alexey Budankov escreveu: > > Hi, > > There is a BoF session scheduled on Linux Plumbers Conference 2019 event. > If you plan attend the event feel free to join and discuss about the BoF > topic and beyond: > > Linux Perf advancements for compute

Re: [PATCH v2 1/5] ACPI: Enable driver and firmware hints to control power at probe time

2019-08-26 Thread Sakari Ailus
On Mon, Aug 26, 2019 at 03:34:39PM +0200, Greg Kroah-Hartman wrote: > On Mon, Aug 26, 2019 at 01:32:00PM +0300, Sakari Ailus wrote: > > Hi Greg, > > > > On Mon, Aug 26, 2019 at 10:43:43AM +0200, Greg Kroah-Hartman wrote: > > > > ... > > > > > > diff --git a/include/linux/device.h

Re: Linux-next-20190823: x86_64/i386: prot_hsymlinks.c:325: Failed to run cmd: useradd hsym

2019-08-26 Thread Naresh Kamboju
Hi Jan and Cyril, On Mon, 26 Aug 2019 at 16:35, Jan Stancek wrote: > > > > - Original Message - > > Hi! > > > Do you see this LTP prot_hsymlinks failure on linux next 20190823 on > > > x86_64 and i386 devices? > > > > > > test output log, > > > useradd: failure while writing changes to

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-26 Thread Waiman Long
On 8/26/19 9:43 AM, Waiman Long wrote: > On 8/26/19 9:25 AM, Matthew Wilcox wrote: >> >> Would this not work equally well? >> >> +++ b/fs/proc/page.c >> @@ -46,7 +46,8 @@ static ssize_t kpagecount_read(struct file *file, char >> __user *buf, >> ppage = pfn_to_page(pfn); >>

Re: [PATCH v3 4/5] writeback, memcg: Implement cgroup_writeback_by_id()

2019-08-26 Thread Jan Kara
On Wed 21-08-19 14:02:10, Tejun Heo wrote: > Implement cgroup_writeback_by_id() which initiates cgroup writeback > from bdi and memcg IDs. This will be used by memcg foreign inode > flushing. > > v2: Use wb_get_lookup() instead of wb_get_create() to avoid creating > spurious wbs. > > v3:

Re: [PATCH] uprobes/x86: fix detection of 32-bit user mode

2019-08-26 Thread Thomas Gleixner
On Sat, 24 Aug 2019, Thomas Gleixner wrote: > On Fri, 23 Aug 2019, Andy Lutomirski wrote: > > > On Aug 23, 2019, at 5:03 PM, Thomas Gleixner wrote: > > > > > >> On Sat, 24 Aug 2019, Thomas Gleixner wrote: > > >> On Fri, 23 Aug 2019, Andy Lutomirski wrote: > > On Aug 23, 2019, at 4:44 PM,

Re: [PATCH 2/2] x86/microcode/intel: Issue the revision updated message only on the BSP

2019-08-26 Thread Borislav Petkov
On Mon, Aug 26, 2019 at 09:34:01AM -0400, Boris Ostrovsky wrote: > AMD too? We're not doing this output shortening on AMD at all. As before, non-ugly patches are welcome. :) -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH v2 1/6] ASoC: atmel: enable SOC_SSC_PDC and SOC_SSC_DMA in Kconfig

2019-08-26 Thread Codrin.Ciubotariu
On 24.08.2019 23:26, Michał Mirosław wrote: > Allow SSC to be used on platforms described using audio-graph-card > in Device Tree. > > Signed-off-by: Michał Mirosław Reviewed-by: Codrin Ciubotariu Thanks! Best regards, Codrin > > --- > v2: extended to PDC mode > reworked and fixed

linux-next: Tree for Aug 26

2019-08-26 Thread Stephen Rothwell
Hi all, Changes since 20190823: The mips tree gained a conflict against the kbuild tree. The net-next tree gained a conflict against the net tree. The drm tree gained conflicts against Linus' and the drm-misc-fixes trees. The clockevents tree gained a conflict against the tip tree. The

Re: [RFC PATCH 2/2] livepatch: Clear relocation targets on a module removal

2019-08-26 Thread Nicolai Stange
Josh Poimboeuf writes: > On Wed, Aug 14, 2019 at 01:06:09PM +0200, Miroslav Benes wrote: >> > Really, we should be going in the opposite direction, by creating module >> > dependencies, like all other kernel modules do, ensuring that a module >> > is loaded *before* we patch it. That would also

Re: [PATCH v3] /dev/mem: Bail out upon SIGKILL.

2019-08-26 Thread Tetsuo Handa
On 2019/08/26 22:29, Greg Kroah-Hartman wrote: > On Mon, Aug 26, 2019 at 10:13:25PM +0900, Tetsuo Handa wrote: >> syzbot found that a thread can stall for minutes inside read_mem() or >> write_mem() after that thread was killed by SIGKILL [1]. Reading from >> iomem areas of /dev/mem can be slow,

Re: [PATCH v4 1/2] kernel.h: Update comment about simple_strto() functions

2019-08-26 Thread Andy Shevchenko
On Thu, Aug 01, 2019 at 09:50:54PM +0200, Miguel Ojeda wrote: > On Thu, Aug 1, 2019 at 9:29 PM Andy Shevchenko > wrote: > > > > There were discussions in the past about use cases for > > simple_strto() functions and, in some rare cases, > > they have a benefit over kstrto() ones. > > > > Update a

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-26 Thread Waiman Long
On 8/26/19 9:25 AM, Matthew Wilcox wrote: > On Mon, Aug 26, 2019 at 08:43:36AM -0400, Waiman Long wrote: >> It was found that on a dual-socket x86-64 system with nvdimm, reading >> /proc/kpagecount may cause the system to panic: >> >> === >> [ 79.917682] BUG: unable to handle

Re: [PATCH net v3] ixgbe: fix double clean of tx descriptors with xdp

2019-08-26 Thread Maciej Fijalkowski
On Thu, 22 Aug 2019 20:12:37 +0300 Ilya Maximets wrote: > Tx code doesn't clear the descriptors' status after cleaning. > So, if the budget is larger than number of used elems in a ring, some > descriptors will be accounted twice and xsk_umem_complete_tx will move > prod_tail far beyond the

Re: [PATCH] powerpc/time: use feature fixup in __USE_RTC() instead of cpu feature.

2019-08-26 Thread Christophe Leroy
Le 26/08/2019 à 15:25, Benjamin Herrenschmidt a écrit : On Mon, 2019-08-26 at 21:41 +1000, Michael Ellerman wrote: Christophe Leroy writes: sched_clock(), used by printk(), calls __USE_RTC() to know whether to use realtime clock or timebase. __USE_RTC() uses cpu_has_feature() which is

Re: [RESEND PATCH v3 14/20] mtd: spi_nor: Add a ->setup() method

2019-08-26 Thread Schrempf Frieder
On 26.08.19 14:40, Boris Brezillon wrote: > On Mon, 26 Aug 2019 12:08:58 + > wrote: > >> From: Tudor Ambarus >> >> nor->params.setup() configures the SPI NOR memory. Useful for SPI NOR >> flashes that have peculiarities to the SPI NOR standard, e.g. >> different opcodes, specific address

Re: [PATCH 2/2] x86/microcode/intel: Issue the revision updated message only on the BSP

2019-08-26 Thread Boris Ostrovsky
On 8/24/19 4:53 AM, Borislav Petkov wrote: > From: Borislav Petkov > Date: Sat, 24 Aug 2019 10:01:53 +0200 > > ... in order to not pollute dmesg with a line for each updated microcode > engine. > > Signed-off-by: Borislav Petkov > Cc: Ashok Raj > Cc: Boris Ostrovsky > Cc: "H. Peter Anvin" >

Re: [PATCH] ARM: davinci: dm646x: Fix a typo in the comment

2019-08-26 Thread Sekhar Nori
On 23/07/19 3:06 AM, Christophe JAILLET wrote: > The driver is dedicated to DM646x. So update the description in the top > most comment accordingly. > > It must have been derived from dm644x.c, but looks DM646 speecific now. > > Signed-off-by: Christophe JAILLET Applied to my v5.4/soc branch.

Re: [PATCH v2 1/5] ACPI: Enable driver and firmware hints to control power at probe time

2019-08-26 Thread Greg Kroah-Hartman
On Mon, Aug 26, 2019 at 01:32:00PM +0300, Sakari Ailus wrote: > Hi Greg, > > On Mon, Aug 26, 2019 at 10:43:43AM +0200, Greg Kroah-Hartman wrote: > > ... > > > > diff --git a/include/linux/device.h b/include/linux/device.h > > > index 6717adee33f01..4bc0ea4a3201a 100644 > > > ---

Re: [tip:x86/urgent] x86/boot/compressed/64: Fix boot on machines with broken E820 table

2019-08-26 Thread Kirill A. Shutemov
On Mon, Aug 26, 2019 at 09:15:39AM +0200, Borislav Petkov wrote: > On Sun, Aug 25, 2019 at 10:33:15PM -0500, Gustavo A. R. Silva wrote: > > Hi all, > > > > On 8/19/19 9:16 AM, tip-bot for Kirill A. Shutemov wrote: > > [..] > > > > > > diff --git a/arch/x86/boot/compressed/pgtable_64.c > > >

Re: [PATCH] ARM: dts: da850-evm: Use generic jedec, spi-nor for flash

2019-08-26 Thread Sekhar Nori
On 23/07/19 5:40 PM, Adam Ford wrote: > Logic PD re-spun the L138 and AM1808 SOM's with larger flash. > The m25p80 driver has a generic 'jedec,spi-nor' compatible option > which is requests to use whenever possible since it will read the > JEDEC READ ID opcode. > > Signed-off-by: Adam Ford

Re: [RESEND PATCH 00/10] ARM: davinci: use the new clocksource driver

2019-08-26 Thread Sekhar Nori
On 08/08/19 1:11 PM, Bartosz Golaszewski wrote: > śr., 7 sie 2019 o 21:28 Sekhar Nori napisał(a): >> >> On 05/08/19 1:59 PM, Bartosz Golaszewski wrote: >>> pon., 22 lip 2019 o 15:17 Bartosz Golaszewski napisał(a): From: Bartosz Golaszewski Sekhar, the following

[PATCH] ARM: OMAP2+: Delete an unnecessary kfree() call in omap_hsmmc_pdata_init()

2019-08-26 Thread Markus Elfring
From: Markus Elfring Date: Mon, 26 Aug 2019 15:05:31 +0200 A null pointer would be passed to a call of the function "kfree" directly after a call of the function "kzalloc" failed at one place. Remove this superfluous function call. This issue was detected by using the Coccinelle software.

Re: [PATCH v3 03/11] KVM: SVM: Add KVM_SEV_SEND_FINISH command

2019-08-26 Thread Borislav Petkov
On Wed, Jul 10, 2019 at 08:13:03PM +, Singh, Brijesh wrote: > The command is used to finailize the encryption context created with > KVM_SEV_SEND_START command. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Joerg Roedel >

Re: [PATCH v3] /dev/mem: Bail out upon SIGKILL.

2019-08-26 Thread Greg Kroah-Hartman
On Mon, Aug 26, 2019 at 10:13:25PM +0900, Tetsuo Handa wrote: > syzbot found that a thread can stall for minutes inside read_mem() or > write_mem() after that thread was killed by SIGKILL [1]. Reading from > iomem areas of /dev/mem can be slow, depending on the hardware. > While reading 2GB at one

Re: [PATCH v1 1/2] vsprintf: introduce %dE for error constants

2019-08-26 Thread Enrico Weigelt, metux IT consult
On 25.08.19 01:37, Uwe Kleine-König wrote: Hi, +static noinline_for_stack > +char *errstr(char *buf, char *end, unsigned long long num,> + struct printf_spec spec)> +{ #1: why not putting that into some separate strerror() lib function ? This is something I've been looking for quite some

Re: [PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-26 Thread Matthew Wilcox
On Mon, Aug 26, 2019 at 08:43:36AM -0400, Waiman Long wrote: > It was found that on a dual-socket x86-64 system with nvdimm, reading > /proc/kpagecount may cause the system to panic: > > === > [ 79.917682] BUG: unable to handle page fault for address: fffe > [

Re: [PATCH] powerpc/time: use feature fixup in __USE_RTC() instead of cpu feature.

2019-08-26 Thread Benjamin Herrenschmidt
On Mon, 2019-08-26 at 21:41 +1000, Michael Ellerman wrote: > Christophe Leroy writes: > > sched_clock(), used by printk(), calls __USE_RTC() to know > > whether to use realtime clock or timebase. > > > > __USE_RTC() uses cpu_has_feature() which is initialised by > > machine_init(). Before

Re: [PATCH -next] rtc: pcf2127: Fix build error without CONFIG_WATCHDOG_CORE

2019-08-26 Thread Guenter Roeck
On 8/26/19 1:12 AM, Yuehaibing wrote: On 2019/8/23 22:05, Alexandre Belloni wrote: On 23/08/2019 20:45:53+0800, YueHaibing wrote: If WATCHDOG_CORE is not set, build fails: drivers/rtc/rtc-pcf2127.o: In function `pcf2127_probe.isra.6': drivers/rtc/rtc-pcf2127.c:478: undefined reference to

Re: [PATCH] mm: replace is_zero_pfn with is_huge_zero_pmd for thp

2019-08-26 Thread Matthew Wilcox
Why did you not cc Gerald who wrote the patch? You can't just run get_maintainers.pl and call it good. On Sun, Aug 25, 2019 at 02:06:21PM -0600, Yu Zhao wrote: > For hugely mapped thp, we use is_huge_zero_pmd() to check if it's > zero page or not. > > We do fill ptes with my_zero_pfn() when

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-26 Thread Kirill A. Shutemov
On Mon, Aug 26, 2019 at 09:40:35AM +0200, Michal Hocko wrote: > On Thu 22-08-19 18:29:34, Kirill A. Shutemov wrote: > > On Thu, Aug 22, 2019 at 02:56:56PM +0200, Vlastimil Babka wrote: > > > On 8/22/19 10:04 AM, Michal Hocko wrote: > > > > On Thu 22-08-19 01:55:25, Yang Shi wrote: > > > >>

[PATCH v3] /dev/mem: Bail out upon SIGKILL.

2019-08-26 Thread Tetsuo Handa
syzbot found that a thread can stall for minutes inside read_mem() or write_mem() after that thread was killed by SIGKILL [1]. Reading from iomem areas of /dev/mem can be slow, depending on the hardware. While reading 2GB at one read() is legal, delaying termination of killed thread for minutes is

Re: [PATCH v2 5/5] ARM: dts: ls1021a-tsn: Use the DSPI controller in poll mode

2019-08-26 Thread Vladimir Oltean
Hi Mark, On Fri, 23 Aug 2019 at 00:15, Vladimir Oltean wrote: > > Connected to the LS1021A DSPI is the SJA1105 DSA switch. This > constitutes 4 of the 6 Ethernet ports on this board. > > As the SJA1105 is a PTP switch, constant disciplining of its PTP clock > is necessary, and that translates

Re: [Virtio-fs] [PATCH 04/19] virtio: Implement get_shm_region for PCI transport

2019-08-26 Thread Vivek Goyal
On Mon, Aug 26, 2019 at 09:43:08AM +0800, piaojun wrote: [..] > > +static bool vp_get_shm_region(struct virtio_device *vdev, > > + struct virtio_shm_region *region, u8 id) > > +{ > > + struct virtio_pci_device *vp_dev = to_vp_device(vdev); > > + struct pci_dev *pci_dev

Re: [PATCH v2] mtd: rawnand: Fix a memory leak bug

2019-08-26 Thread Boris Brezillon
On Sun, 18 Aug 2019 21:46:04 -0500 Wenwen Wang wrote: > In nand_scan_bbt(), a temporary buffer 'buf' is allocated through > vmalloc(). However, if check_create() fails, 'buf' is not deallocated, > leading to a memory leak bug. To fix this issue, free 'buf' before > returning the error. > >

Re: [PATCH 0/3] Rewrite x86/ftrace to use text_poke()

2019-08-26 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 02:51:38PM +0200, Peter Zijlstra wrote: > Ftrace was one of the last W^X violators; these patches move it over to the > generic text_poke() interface and thereby get rid of this oddity. > > Very lightly tested... I'm thinking there's more cleanup to be had;

Re: [PATCH 1/2] x86/microcode: Update late microcode in parallel

2019-08-26 Thread Borislav Petkov
On Mon, Aug 26, 2019 at 08:53:05AM -0400, Boris Ostrovsky wrote: > What is the advantage of having those other threads go through > find_patch() and (in Intel case) intel_get_microcode_revision() (which > involves two MSR accesses) vs. having the master sibling update slaves' > microcode

Re: [PATCH] mtd: onenand_base: Fix a memory leak bug

2019-08-26 Thread Miquel Raynal
On Sun, 2019-08-18 at 15:52:49 UTC, Wenwen Wang wrote: > In onenand_scan(), if CONFIG_MTD_ONENAND_VERIFY_WRITE is defined, > 'this->verify_buf' is allocated through kzalloc(). However, it is not > deallocated in the following execution, if the allocation for > 'this->oob_buf' fails, leading to a

Re: [PATCH v2] mtd: rawnand: Fix a memory leak bug

2019-08-26 Thread Miquel Raynal
On Mon, 2019-08-19 at 02:46:04 UTC, Wenwen Wang wrote: > In nand_scan_bbt(), a temporary buffer 'buf' is allocated through > vmalloc(). However, if check_create() fails, 'buf' is not deallocated, > leading to a memory leak bug. To fix this issue, free 'buf' before > returning the error. > >

Re: [PATCH v7 1/2] mtd: rawnand: Add Macronix raw NAND controller driver

2019-08-26 Thread Miquel Raynal
On Mon, 2019-08-19 at 07:19:08 UTC, Mason Yang wrote: > Add a driver for Macronix raw NAND controller. > > Signed-off-by: Mason Yang Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel

Re: [PATCH trivial] mtd: nand: fix typo, s/erasablocks/eraseblocks

2019-08-26 Thread Miquel Raynal
On Fri, 2019-08-23 at 15:39:37 UTC, wrote: > From: Tudor Ambarus > > Signed-off-by: Tudor Ambarus Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel

Re: [PATCH v7 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings

2019-08-26 Thread Miquel Raynal
On Mon, 2019-08-19 at 07:19:09 UTC, Mason Yang wrote: > Document the bindings used by the Macronix raw NAND controller. > > Signed-off-by: Mason Yang > Reviewed-by: Rob Herring Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel

Re: [PATCH 12/16] mtd: rawnand: remove w90x900 driver

2019-08-26 Thread Miquel Raynal
On Fri, 2019-08-09 at 20:27:40 UTC, Arnd Bergmann wrote: > The ARM w90x900 platform is getting removed, so this driver is obsolete. > > Signed-off-by: Arnd Bergmann > Reviewed-by: Boris Brezillon Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Re: [PATCH] mtd: rawnand: sharpsl: add include guard to linux/mtd/sharpsl.h

2019-08-26 Thread Miquel Raynal
On Tue, 2019-08-20 at 02:50:57 UTC, Masahiro Yamada wrote: > Add a header include guard just in case. > > Signed-off-by: Masahiro Yamada Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel

[PATCH 1/3] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-08-26 Thread Peter Zijlstra
In preparation for static_call and variable size jump_label support, teach text_poke_bp() to emulate instructions, namely: JMP32, JMP8, CALL, NOP2, NOP_ATOMIC5 The current text_poke_bp() takes a @handler argument which is used as a jump target when the temporary INT3 is hit by a different CPU.

[PATCH 2/3] x86/alternatives: Move tp_vec

2019-08-26 Thread Peter Zijlstra
In order to allow other users to make use of the tp_vec; move it near the text_poke_bp_batch() code, instead of keeping it in the jump_label code. Cc: Daniel Bristot de Oliveira Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/text-patching.h |4

[RFC][PATCH 3/3] x86/ftrace: Use text_poke()

2019-08-26 Thread Peter Zijlstra
Move ftrace over to using the generic x86 text_poke functions; this avoids having a second/different copy of that code around. Cc: Daniel Bristot de Oliveira Cc: Steven Rostedt Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/ftrace.h |2 arch/x86/kernel/ftrace.c |

[PATCH 0/3] Rewrite x86/ftrace to use text_poke()

2019-08-26 Thread Peter Zijlstra
Ftrace was one of the last W^X violators; these patches move it over to the generic text_poke() interface and thereby get rid of this oddity. Very lightly tested...

Re: [PATCH 1/2] x86/microcode: Update late microcode in parallel

2019-08-26 Thread Boris Ostrovsky
On 8/24/19 4:53 AM, Borislav Petkov wrote: > > +wait_for_siblings: > + if (__wait_for_cpus(_cpus_out, NSEC_PER_SEC)) > + panic("Timeout during microcode update!\n"); > + > /* > - * Increase the wait timeout to a safe value here since we're > - * serializing the

Re: [GIT pull] x86/urgent for 5.3-rc5

2019-08-26 Thread Borislav Petkov
On Sun, Aug 25, 2019 at 10:17:23PM +0200, Borislav Petkov wrote: > > I think WARN_ONCE() is good. It's big enough that it will show up in > > dmesg if anybody looks, and if nobody looks I think distros still have > > logging for things like that, don't they? > > Probably. Lemme research that. So

Re: [PATCH v5] perf machine: arm/arm64: Improve completeness for kernel address space

2019-08-26 Thread Leo Yan
Hi Adrian, On Fri, Aug 16, 2019 at 04:00:02PM +0300, Adrian Hunter wrote: > On 16/08/19 4:45 AM, Leo Yan wrote: > > Hi Adrian, > > > > On Thu, Aug 15, 2019 at 02:45:57PM +0300, Adrian Hunter wrote: > > > > [...] > > > How come you cannot use kallsyms to get the information? > >>> > >>>

Re: [RESEND RFC PATCH v3 20/20] mtd: spi-nor: Rework the disabling of block write protection

2019-08-26 Thread Boris Brezillon
On Mon, 26 Aug 2019 12:09:09 + wrote: > From: Tudor Ambarus > > spi_nor_unlock() unlocks blocks of memory or the entire flash memory > array, if requested. clear_sr_bp() unlocks the entire flash memory > array at boot time. This calls for some unification, clear_sr_bp() is > just an

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

2019-08-26 Thread MyungJoo Ham
Thank you for pointing this out! I've added a fix to the tree: https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/log/?h=for-next (and shared the patch in a previous reply) Rafael, could you please pull the fix from the git repo above? Cheers, MyungJoo On Mon, Aug 26, 2019 at

Re: [PATCH] x86/mm: Do not split_large_page() for set_kernel_text_rw()

2019-08-26 Thread Peter Zijlstra
On Mon, Aug 26, 2019 at 07:33:08AM -0400, Steven Rostedt wrote: > Anyway, I believe Nadav has some patches that converts ftrace to use > the shadow page modification trick somewhere. > > Or we also need the text_poke batch processing (did that get upstream?). It did. And I just did that patch;

Re: [PATCH] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-26 Thread Waiman Long
te to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Waiman-Long/fs-proc-page-Skip-uninitialized-page-when-iterating-page-structures/20190826-105836 > config: x86_64-lkp (attached as .config) > compiler: gcc-7 (Debian 7.4.0-10) 7.4.0 > reprod

[PATCH] PM / devfreq: passive: fix compiler warning

2019-08-26 Thread MyungJoo Ham
The recent commit of PM / devfreq: passive: Use non-devm notifiers had incurred compiler warning, "unused variable 'dev'". Reported-by: Stephen Rothwell Signed-off-by: MyungJoo Ham --- drivers/devfreq/governor_passive.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v2] fs/proc/page: Skip uninitialized page when iterating page structures

2019-08-26 Thread Waiman Long
It was found that on a dual-socket x86-64 system with nvdimm, reading /proc/kpagecount may cause the system to panic: === [ 79.917682] BUG: unable to handle page fault for address: fffe [ 79.924558] #PF: supervisor read access in kernel mode [ 79.929696] #PF:

[PATCH] tpm: tpm_crb: Add an AMD fTPM support feature

2019-08-26 Thread Safford, David (GE Global Research, US)
> From: linux-integrity-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Jarkko Sakkinen > Sent: Monday, August 26, 2019 1:59 AM > To: Seunghun Han > Cc: Peter Huewe ; Thomas Gleixner > ; linux-kernel@vger.kernel.org; linux- > integr...@vger.kernel.org > Subject: EXT: Re: [PATCH] tpm:

Re: [RESEND PATCH v3 14/20] mtd: spi_nor: Add a ->setup() method

2019-08-26 Thread Boris Brezillon
On Mon, 26 Aug 2019 12:08:58 + wrote: > From: Tudor Ambarus > > nor->params.setup() configures the SPI NOR memory. Useful for SPI NOR > flashes that have peculiarities to the SPI NOR standard, e.g. > different opcodes, specific address calculation, page size, etc. > Right now the only user

Re: [PATCH v2 0/3] Add NETIF_F_HW_BR_CAP feature

2019-08-26 Thread Andrew Lunn
On Mon, Aug 26, 2019 at 10:11:12AM +0200, Horatiu Vultur wrote: > When a network port is added to a bridge then the port is added in > promisc mode. Some HW that has bridge capabilities(can learn, forward, > flood etc the frames) they are disabling promisc mode in the network > driver when the

Re: [RESEND PATCH v3 04/20] mtd: spi-nor: Move erase_map to 'struct spi_nor_flash_parameter'

2019-08-26 Thread Boris Brezillon
On Mon, 26 Aug 2019 12:08:38 + wrote: > From: Tudor Ambarus > > All flash parameters and settings should reside inside > 'struct spi_nor_flash_parameter'. Move the SMPT parsed erase map > from 'struct spi_nor' to 'struct spi_nor_flash_parameter'. > > Please note that there is a roll-back

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

2019-08-26 Thread Leonard Crestez
On 26.08.2019 14:50, Stephen Rothwell wrote: > Hi all, > > After merging the devfreq tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/devfreq/governor_passive.c: In function > 'devfreq_passive_event_handler': > drivers/devfreq/governor_passive.c:152:17:

Re: [PATCH] IB/mlx5: Convert to use vm_map_pages_zero()

2019-08-26 Thread Jason Gunthorpe
On Mon, Aug 26, 2019 at 01:32:09AM +0530, Souptick Joarder wrote: > On Mon, Aug 26, 2019 at 1:13 AM Jason Gunthorpe wrote: > > > > On Sun, Aug 25, 2019 at 11:37:27AM +0530, Souptick Joarder wrote: > > > First, length passed to mmap is checked explicitly against > > > PAGE_SIZE. > > > > > >

Re: [PATCH 2/3] xfs: add kmem_alloc_io()

2019-08-26 Thread Michal Hocko
On Thu 22-08-19 16:26:42, Vlastimil Babka wrote: > On 8/22/19 3:17 PM, Dave Chinner wrote: > > On Thu, Aug 22, 2019 at 02:19:04PM +0200, Vlastimil Babka wrote: > >> On 8/22/19 2:07 PM, Dave Chinner wrote: > >> > On Thu, Aug 22, 2019 at 01:14:30PM +0200, Vlastimil Babka wrote: > >> > > >> > No,

[PATCH v4 4/4] clk: qcom: clk-rpmh: Add support for SM8150

2019-08-26 Thread Vinod Koul
Add support for rpmh clocks found in SM8150 Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/clk-rpmh.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index

[PATCH v4 3/4] dt-bindings: clock: Document SM8150 rpmh-clock compatible

2019-08-26 Thread Vinod Koul
Document the SM8150 rpmh-clock compatible for rpmh clock controller found on SM8150 platforms. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v3] sched/fair: don't assign runtime for throttled cfs_rq

2019-08-26 Thread Liangyan
do_sched_cfs_period_timer() will refill cfs_b runtime and call distribute_cfs_runtime to unthrottle cfs_rq, sometimes cfs_b->runtime will allocate all quota to one cfs_rq incorrectly, then other cfs_rqs attached to this cfs_b can't get runtime and will be throttled. We find that one throttled

[PATCH v4 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme

2019-08-26 Thread Vinod Koul
Convert the rpmh clock driver to use the new parent data scheme by specifying the parent data for board clock. Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-rpmh.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/clk-rpmh.c

[PATCH v4 1/4] dt-bindings: clock: Document the parent clocks

2019-08-26 Thread Vinod Koul
With clock parent data scheme we must specify the parent clocks for the rpmhcc nodes. So describe the parent clock for rpmhcc in the bindings. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 3 +++ 1 file changed, 3

[PATCH v4 0/4] clk: qcom: Add support for SM8150

2019-08-26 Thread Vinod Koul
Add support for rpm clock controller found in SM8150 and while at it update the driver to support parent data clock scheme as suggested by Stephen. Changes since v3: - Make clock parent name as xo instead of xo_board Changes since v2: - Add reviewed-by from Bjorn - Update the parent name as

Re: [PATCH] sched/cpufreq: Align trace event behavior of fast switching

2019-08-26 Thread Dietmar Eggemann
On 26/08/2019 13:24, Peter Zijlstra wrote: > On Mon, Aug 26, 2019 at 11:51:17AM +0200, Dietmar Eggemann wrote: > >> Not sure about the extra 'if trace_cpu_frequency_enabled()' but I guess >> it doesn't hurt. > > Without that you do that for_each_cpu() iteration unconditionally, even > if the

Re: [PATCH v2,2/3] dt-bindings: arm: amlogic: Add support for the Ugoos AM6

2019-08-26 Thread Rob Herring
On Sat, Aug 24, 2019 at 3:05 AM Christian Hewitt wrote: > > The Ugoos AM6 is based on the Amlogic W400 (G12B) reference design using the > S922X chipset. > > Signed-off-by: Christian Hewitt > --- > Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + > 1 file changed, 1 insertion(+)

Re: [PATCH v2,1/3] dt-bindings: Add vendor prefix for Ugoos

2019-08-26 Thread Rob Herring
On Sat, Aug 24, 2019 at 3:05 AM Christian Hewitt wrote: > > Ugoos Industrial Co., Ltd. are a manufacturer of ARM based TV Boxes, > Dongles, Digital Signage and Advertisement Solutions [0]. > > [0] (https://ugoos.com) > > Signed-off-by: Christian Hewitt > --- >

Re: [PATCH] scsi: aic7xxx: Remove dead code

2019-08-26 Thread Souptick Joarder
On Mon, Aug 26, 2019 at 2:03 PM James Bottomley wrote: > > On Sat, 2019-08-24 at 20:38 +0530, Souptick Joarder wrote: > > These are dead code since 2.6.13. If there is no plan > > to use it further, these can be removed forever. > > Unless you can articulate a clear useful reason for the removal

[RESEND RFC PATCH v3 20/20] mtd: spi-nor: Rework the disabling of block write protection

2019-08-26 Thread Tudor.Ambarus
From: Tudor Ambarus spi_nor_unlock() unlocks blocks of memory or the entire flash memory array, if requested. clear_sr_bp() unlocks the entire flash memory array at boot time. This calls for some unification, clear_sr_bp() is just an optimization for the case when the unlock request covers the

[RESEND PATCH v3 09/20] mtd: spi-nor: Create a ->set_4byte() method

2019-08-26 Thread Tudor.Ambarus
From: Boris Brezillon The procedure used to enable 4 byte addressing mode depends on the NOR device, so let's provide a hook so that manufacturer specific handling can be implemented in a sane way. Signed-off-by: Boris Brezillon [tudor.amba...@microchip.com: use nor->params.set_4byte() instead

[RESEND PATCH v3 17/20] mtd: spi-nor: Bring flash params init together

2019-08-26 Thread Tudor.Ambarus
From: Tudor Ambarus Bring all flash parameters default initialization in spi_nor_legacy_params_init(). Signed-off-by: Tudor Ambarus Reviewed-by: Boris Brezillon --- v3: collect R-b drivers/mtd/spi-nor/spi-nor.c | 29 +++-- 1 file changed, 11 insertions(+), 18

[RESEND PATCH v3 19/20] mtd: spi-nor: Introduce spi_nor_get_flash_info()

2019-08-26 Thread Tudor.Ambarus
From: Tudor Ambarus Dedicate a function for getting the pointer to the flash_info const struct. Trim a bit the spi_nor_scan() huge function. Signed-off-by: Tudor Ambarus Reviewed-by: Boris Brezillon --- v3: no changes drivers/mtd/spi-nor/spi-nor.c | 76

[RESEND PATCH v3 15/20] mtd: spi-nor: Add s3an_post_sfdp_fixups()

2019-08-26 Thread Tudor.Ambarus
From: Tudor Ambarus s3an_nor_scan() was overriding the opcode selection done in spi_nor_default_setup(). Set nor->setup() method in order to avoid the unnecessary call to spi_nor_default_setup(). Signed-off-by: Tudor Ambarus Reviewed-by: Boris Brezillon --- v3: no changes, rebase on previous

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