Re: [PATCH 5/6] spi: sun4i: introduce register set/unset helpers

2018-04-03 Thread Maxime Ripard
On Thu, Mar 29, 2018 at 09:59:06PM +0300, Sergey Suloev wrote: > Two helper functions were added in order to update > registers easily. > > Signed-off-by: Sergey Suloev I'm not really sure what's easier about this one. Maxime -- Maxime Ripard, Bootlin (formerly Free

Re: [PATCH 6/6] spi: sun4i: add DMA transfers support

2018-04-03 Thread Maxime Ripard
On Thu, Mar 29, 2018 at 09:59:07PM +0300, Sergey Suloev wrote: > +static int sun4i_spi_dma_setup(struct device *dev, > +struct resource *res) > +{ > + struct spi_master *master = dev_get_drvdata(dev); > + struct dma_slave_config dma_sconf; > + int ret; > + >

Re: [PATCH 2/2] reset: uniphier: add SATA reset control support and change SATA-PHY ID

2018-04-03 Thread Philipp Zabel
On Fri, 2018-03-30 at 18:44 +0900, Kunihiko Hayashi wrote: > Add reset lines for SATA controller on UniPhier SoCs. > This adds support for Pro4 and PXs3 in addition to PXs2. > > And this changes the ID of the reset line for SATA-PHY on PXs2. > Since some SoCs have two controller instances with a

Re: 4.16-rc2+git: pata_serverworks: hanging ata detection thread on HP DL380G3

2018-04-03 Thread Meelis Roos
> Hello, Meelis. > > Can you please verify whether the following patch fixes the problem? > > Thanks. > > Subject: blk-mq: Directly schedule q->timeout_work when aborting a request Yes, this patch on top of 4.16 fixes it for me. dmesg shows CD detection works fast now: [2.278383] libata

Re: [PATCH v1] mm: consider non-anonymous thp as unmovable page

2018-04-03 Thread Naoya Horiguchi
On Tue, Apr 03, 2018 at 09:59:28AM +0200, Michal Hocko wrote: > On Tue 03-04-18 13:46:28, Naoya Horiguchi wrote: > > My testing for the latest kernel supporting thp migration found out an > > infinite loop in offlining the memory block that is filled with shmem > > thps. We can get out of the

[PATCH v6 0/1] drm/xen-front: Add support for Xen PV display frontend

2018-04-03 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hello! Boris/Daniel, I put your R-b tags, so please do let me know if this is not acceptable, so I remove the tags. This patch series adds support for Xen [1] para-virtualized frontend display driver. It implements the protocol

[PATCH v6 1/1] drm/xen-front: Add support for Xen PV display frontend

2018-04-03 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add support for Xen para-virtualized frontend display driver. Accompanying backend [1] is implemented as a user-space application and its helper library [2], capable of running as a Weston client or DRM master. Configuration of both

[PATCH v30 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-04-03 Thread Wei Wang
Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates the support of reporting hints of guest free pages to host via virtio-balloon. Host requests the guest to report free page hints by sending a new cmd id to the guest via the free_page_report_cmd_id configuration register. When

[PATCH v30 4/4] virtio-balloon: VIRTIO_BALLOON_F_PAGE_POISON

2018-04-03 Thread Wei Wang
The VIRTIO_BALLOON_F_PAGE_POISON feature bit is used to indicate if the guest is using page poisoning. Guest writes to the poison_val config field to tell host about the page poisoning value in use. Signed-off-by: Wei Wang Suggested-by: Michael S. Tsirkin

[PATCH v30 3/4] mm/page_poison: expose page_poisoning_enabled to kernel modules

2018-04-03 Thread Wei Wang
In some usages, e.g. virtio-balloon, a kernel module needs to know if page poisoning is in use. This patch exposes the page_poisoning_enabled function to kernel modules. Signed-off-by: Wei Wang Cc: Andrew Morton Cc: Michal Hocko

[PATCH v30 0/4] Virtio-balloon: support free page reporting

2018-04-03 Thread Wei Wang
This patch series is separated from the previous "Virtio-balloon Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, implemented by this series enables the virtio-balloon driver to report hints of guest free pages to the host. It can be used to accelerate live migration of

re: [PATCH] mm: avoid the unnecessary waiting when force empty a cgroup

2018-04-03 Thread Li,Rongqing
> -邮件原件- > 发件人: Michal Hocko [mailto:mho...@kernel.org] > 发送时间: 2018年4月3日 16:05 > 收件人: Li,Rongqing > 抄送: han...@cmpxchg.org; vdavydov@gmail.com; > cgro...@vger.kernel.org; linux...@kvack.org; > linux-kernel@vger.kernel.org > 主题: Re: [PATCH] mm: avoid the

[PATCH v30 1/4] mm: support reporting free page blocks

2018-04-03 Thread Wei Wang
This patch adds support to walk through the free page blocks in the system and report them via a callback function. Some page blocks may leave the free list after zone->lock is released, so it is the caller's responsibility to either detect or prevent the use of such pages. One use example of

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-03 Thread Boris Brezillon
On Tue, 3 Apr 2018 10:14:31 +0200 Peter Rosin wrote: > On 2018-04-03 09:15, Boris Brezillon wrote: > > On Tue, 3 Apr 2018 08:51:10 +0200 > > Peter Rosin wrote: > > > >> On 2018-04-02 22:20, Boris Brezillon wrote: > >>> On Mon, 2 Apr 2018 21:28:43 +0200 >

Re: [PATCH] usb: dwc3: of-simple: use managed and shared reset control

2018-04-03 Thread Masahiro Yamada
2018-04-03 17:00 GMT+09:00 Philipp Zabel : > On Thu, 2018-03-29 at 15:07 +0900, Masahiro Yamada wrote: >> This driver handles the reset control in a common manner; deassert >> resets before use, assert them after use. There is no good reason >> why it should be exclusive.

Re: [PATCH 2/2] efi: Add embedded peripheral firmware support

2018-04-03 Thread Hans de Goede
Hi Luis, Thank you for the review. On 03-04-18 01:23, Luis R. Rodriguez wrote: On Sat, Mar 31, 2018 at 02:19:44PM +0200, Hans de Goede wrote: Just like with PCI options ROMs, which we save in the setup_efi_pci* functions from arch/x86/boot/compressed/eboot.c, the EFI code / ROM itself

Re: [PATCH v1] mm: consider non-anonymous thp as unmovable page

2018-04-03 Thread Michal Hocko
On Tue 03-04-18 08:24:06, Naoya Horiguchi wrote: > On Tue, Apr 03, 2018 at 09:59:28AM +0200, Michal Hocko wrote: > > On Tue 03-04-18 13:46:28, Naoya Horiguchi wrote: > > > My testing for the latest kernel supporting thp migration found out an > > > infinite loop in offlining the memory block that

Re: [PATCH 2/2] reset: uniphier: add SATA reset control support and change SATA-PHY ID

2018-04-03 Thread Masahiro Yamada
2018-04-03 17:18 GMT+09:00 Philipp Zabel : > On Fri, 2018-03-30 at 18:44 +0900, Kunihiko Hayashi wrote: >> Add reset lines for SATA controller on UniPhier SoCs. >> This adds support for Pro4 and PXs3 in addition to PXs2. >> >> And this changes the ID of the reset line for

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-03 Thread Peter Rosin
On 2018-04-03 09:18, Alexandre Belloni wrote: > On 02/04/2018 at 22:23:17 +0200, Peter Rosin wrote: No, but did it again and checked, see transcript below. >>> >>> I don't use devmem2. Is 'readback' information accurate or is it >>> always what's been written? Because when you write 0x33 to

Re: [PATCH] mm: avoid the unnecessary waiting when force empty a cgroup

2018-04-03 Thread Michal Hocko
On Tue 03-04-18 08:29:39, Li,Rongqing wrote: > > > > -邮件原件- > > 发件人: Michal Hocko [mailto:mho...@kernel.org] > > 发送时间: 2018年4月3日 16:05 > > 收件人: Li,Rongqing > > 抄送: han...@cmpxchg.org; vdavydov@gmail.com; > > cgro...@vger.kernel.org; linux...@kvack.org; > >

Re: [PATCH 2/2] smp: introduce kick_active_cpus_sync()

2018-04-03 Thread Yury Norov
Hi Mark, Thank you for review. On Tue, Apr 03, 2018 at 02:48:32PM +0100, Mark Rutland wrote: > Hi Yury, > > On Sun, Apr 01, 2018 at 02:11:08PM +0300, Yury Norov wrote: > > +/* > > + * Flush I-cache if CPU is in extended quiescent state > > + */ > > This comment is misleading. An ISB doesn't

[PATCH v4 3/3] ASoC: topology: Add definitions for mclk_direction values

2018-04-03 Thread Kirill Marinushkin
Current comment makes not clear the direction of mclk. Previously, similar description caused a misunderstanding for bclk_master and fsync_master. This commit solves the potential confusion the same way it is solved for bclk_master and fsync_master. Signed-off-by: Kirill Marinushkin

[PATCH v4 0/3] ASoC: topology: Improve hw_configs

2018-04-03 Thread Kirill Marinushkin
Hello Mark, This patch series waits since 20th of February, because it modifies UAPI headers and should be done in sync with ALSA. I see that previously there was no clear understanding, how to do this in sync. Two days ago I discussed with Takashi, and he suggested the following steps: Step 1.

[PATCH v4 2/3] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-04-03 Thread Kirill Marinushkin
Clock gating parameter is a part of `dai_fmt`. It is supported by `alsa-lib` when creating a topology binary file, but ignored by kernel when loading this topology file. After applying this commit, the clock gating parameter is not ignored any more. This solution is backwards compatible. The

[PATCH v4 1/3] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-04-03 Thread Kirill Marinushkin
The values of bclk and fsync are inverted WRT the codec. But the existing solution already works for Broadwell, see the alsa-lib config: `alsa-lib/src/conf/topology/broadwell/broadwell.conf` This commit provides the backwards-compatible solution to fix this misuse. Signed-off-by: Kirill

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 6:43 PM Linus Torvalds wrote: > On Tue, Apr 3, 2018 at 6:13 PM, Matthew Garrett wrote: > > > > There are four cases: > No. > Matthew., stop with the agenda already. > This shit is what I'm talking about: > > Verified

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 7:34 PM Alexei Starovoitov < alexei.starovoi...@gmail.com> wrote: > If the only thing that folks are paranoid about is reading > arbitrary kernel memory with bpf_probe_read() helper > then preferred patch would be to disable it during verification > when in lockdown mode. >

Re: [PATCH v10 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-04-03 Thread kbuild test robot
Hi Paolo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.16 next-20180403] [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

[PATCH 1/3] arm64: Set CONFIG_MULTI_IRQ_HANDLER

2018-04-03 Thread Palmer Dabbelt
arm has an optional MULTI_IRQ_HANDLER, which arm64 copied but didn't make optional. I'm converting this to generic code, but in order to aid the porting effort I want to define this on arm64 for a bit. This will go away at the end of this patch set. Signed-off-by: Palmer Dabbelt

Re: [GIT pull] irq updates for 4.17

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 19:03:28 PDT (-0700), Linus Torvalds wrote: > On Tue, Apr 3, 2018 at 6:51 PM, Palmer Dabbelt wrote: >> >> Thanks! The linked patch set should be fully bisectable, while this one >> will fail on some ARM randconfigs. > > If it's only some (not very

[PATCH 2/3] openrisc: Set CONFIG_MULTI_IRQ_HANDLER

2018-04-03 Thread Palmer Dabbelt
arm has an optional MULTI_IRQ_HANDLER, which arm64 copied but didn't make optional. I'm converting this to generic code, but in order to aid the porting effort I want to define this on arm64 for a bit. This will go away at the end of this patch set. Signed-off-by: Palmer Dabbelt

[PATCH 3/3] irq: GENERIC_IRQ_MULTI_HANDLER conflicts with MULTI_IRQ_HANDLER

2018-04-03 Thread Palmer Dabbelt
These define the same symbol so they're mutually exclusive. By the end of this patch set I'll have removed MULTI_IRQ_HANDLER, but for now it's slightly easier to make these as conflicting so architectures that now define MULTI_IRQ_HANDLER won't get the generic version selected by randconfig.

[git pull] vfs pile 1 (dcache)

2018-04-03 Thread Al Viro
fs/dcache.c work, mostly - part of that is what trylock elimination series has turned into, part - making d_move() preserve the parent (and thus the path) of victim, plus some general cleanups. The following changes since commit 8cc07c808c9d595e81cbe5aad419b7769eb2e5c9: fs: dcache: Use

Re: [PATCH 09/11] x86/pti: enable global pages for shared areas

2018-04-03 Thread Nadav Amit
Dave Hansen wrote: > > From: Dave Hansen > > The entry/exit text and cpu_entry_area are mapped into userspace and > the kernel. But, they are not _PAGE_GLOBAL. This creates unnecessary > TLB misses. > > Add the _PAGE_GLOBAL flag for

Re: [RFC PATCH 0/3] Documentation/features: Provide and apply "features-refresh.sh"

2018-04-03 Thread Ingo Molnar
* Andrea Parri wrote: > In Ingo's words [1]: > > "[...] what should be done instead is to write a script that refreshes >all the arch-support.txt files in-place. [...] > >It's OK for the script to have various quirks for weirdly implemented >

[GIT PULL] SELinux patches for v4.17

2018-04-03 Thread Paul Moore
else), let me know. Thanks, -Paul -- The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git tags/selinux -pr-20180403

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 6:13 PM, Matthew Garrett wrote: > > There are four cases: No. Matthew., stop with the agenda already. This shit is what I'm talking about: > Verified Boot off, lockdown on: Perception of security improvement that's > trivially circumvented (and so bad)

Re: [GIT pull] irq updates for 4.17

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 17:27:41 PDT (-0700), Linus Torvalds wrote: On Tue, Apr 3, 2018 at 3:39 PM, Palmer Dabbelt wrote: I assume it's too late to swap this out for that? If so that's OK, I can just send a follow-on. Sorry for breaking things! Thomas, I'll delay pulling

RTL8723BE performance regression

2018-04-03 Thread João Paulo Rechi Vita
Hello, I've been trying to track a performance regression on the RTL8723BE WiFi adapter, which mainly affects the upload bandwidth (although we can see a decreased download performance as well, the effect on upload is more drastic). This was first reported by users after upgrading from our

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 6:30 PM, Justin Forbes wrote: >> >> If there actually was a good explanation for the tie-in, it should >> have been front-and-center and explained as such. >> > Honestly, yes, the major distros have been shipping this patch set for years > now, and every

Re: [PATCH 00/11] [v4] Use global pages with PTI

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 6:09 PM, Dave Hansen wrote: > Changes from v3: > * Fix whitespace issue noticed by willy > * Clarify comments about X86_FEATURE_PGE checks > * Clarify commit message around the necessity of _PAGE_GLOBAL >filtering when CR4.PGE=0 or PGE is

[PATCH 02/17] tools headers: Synchronize x86's cpufeatures.h

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Due to these commits: 1da961d72ab0 ("x86/cpufeatures: Add Intel Total Memory Encryption cpufeature") 7958b2246fad ("x86/cpufeatures: Add Intel PCONFIG cpufeature") To silence this perf build warning: Warning: Kernel ABI header at

[PATCH 03/17] perf trace: Show only failing syscalls

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For instance: # perf probe "vfs_getname=getname_flags:72 pathname=result->name:string" Added new event: probe:vfs_getname(on getname_flags:72 with pathname=result->name:string) You can now use it in all perf tools, such as:

[PATCH 17/17] perf trace: Remove redundant ')'

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Changbin Du There is a redundant ')' at the tail of each event. So remove it. $ sudo perf trace --no-syscalls -e 'kmem:*' -a 899.342 kmem:kfree:(vfs_writev+0xb9) call_site=9c453979 ptr=(nil)) 899.344 kmem:kfree:(___sys_recvmsg+0x188)

[PATCH 16/17] perf annotate stdio2: Print more descriptive event information header

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To match the recently added event header information to --tui, e.g.: # perf annotate --ignore-vmlinux --stdio2 _raw_spin_lock_irqsave Samples: 128 of event 'cycles:ppp', 4000 Hz, Event count (approx.): 48617682 _raw_spin_lock_irqsave()

[PATCH 14/17] perf annotate: Introduce annotation__scnprintf_samples_period() method

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To print a string using the total period (nr_events) and the number of samples for a given annotation, i.e. for a given symbol, the counterpart to hists__scnprintf_samples_period(), that is for all the samples in a session (be it a live session,

[PATCH 15/17] perf annotate browser: Show extra title line with event information

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So at the top we'll have two lines, like this, from 'perf report': # perf report --group --ignore-vmlinux = Samples: 46 of events 'cycles', 4000

[PATCH 12/17] perf hists: Move hists__scnprintf_title() away from the TUI code

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The previous patch made this function useful to non-TUI parts of the tools, but left it where the function from what it was carved, so that the patch showed more clearly the process. Now just move it outside the TUI parts so that we can finally

Re: [PATCH 2/2] kfree_rcu() should use kfree_bulk() interface

2018-04-03 Thread Matthew Wilcox
On Tue, Apr 03, 2018 at 05:55:55PM -0700, Rao Shoaib wrote: > On 04/03/2018 01:58 PM, Matthew Wilcox wrote: > > I think you might be better off with an IDR. The IDR can always > > contain one entry, so there's no need for this 'rbf_list_head' or > > __rcu_bulk_schedule_list. The IDR contains its

Re: [PATCH v2] tracing, printk: Force no hashing when trace_printk() is used

2018-04-03 Thread Sergey Senozhatsky
On (04/03/18 18:03), Steven Rostedt wrote: > > > he'd want you to change all the trace_printk()s to %px with > > justifications, though. > > What trace_printk()s do you want to change? They are throw away > functions. trace_printk() is not something that stays in the kernel. > It's added during

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Alexei Starovoitov
On Tue, Apr 3, 2018 at 9:26 AM, Andy Lutomirski wrote: > On Tue, Apr 3, 2018 at 8:41 AM, Alexei Starovoitov > wrote: >> On Tue, Apr 03, 2018 at 08:11:07AM -0700, Andy Lutomirski wrote: >>> > >>> >> "bpf: Restrict kernel image access functions when

Re: [PATCH] perf trace: remove redundant ')'

2018-04-03 Thread Du, Changbin
On Tue, Apr 03, 2018 at 04:19:07PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 28, 2018 at 03:26:31PM +0800, Du, Changbin escreveu: > > Hi Arnaldo, > > Just a kind reminder. Hope you didn't forget this. > > Ok, applied. > > - Arnaldo > Got it, thanks!

RE: [ANNOUNCE] Git v2.17.0

2018-04-03 Thread Randall S. Becker
On April 2, 2018 3:34 PM, Junio C Hamano wrote: > Subject: [ANNOUNCE] Git v2.17.0 > > The latest feature release Git v2.17.0 is now available at the usual places. > It is > comprised of 516 non-merge commits since v2.16.0, contributed by 71 > people, 20 of which are new faces. The NonStop

[PATCH v6 3/5] mm/memblock: introduce memblock_search_pfn_regions()

2018-04-03 Thread Jia He
This api is to find the region start_pfn and end_pfn of the input pfn. With this helper, we can improve the loop in early_pfn_valid by reducing the unnecessary binary searches. Signed-off-by: Jia He --- include/linux/memblock.h | 2 ++ mm/memblock.c| 9

[PATCH v6 0/5] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64

2018-04-03 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") tried to optimize the loop in memmap_init_zone(). But there is still some room for improvement. Patch 1 remain the memblock_next_valid_pfn on arm and arm64 Patch 2 optimizes the memblock_next_valid_pfn()

WARNING in hfs_bnode_create

2018-04-03 Thread syzbot
Hello, syzbot hit the following crash on upstream commit f2d285669aae656dfeafa0bf25e86bbbc5d22329 (Tue Apr 3 17:45:39 2018 +) Merge tag 'pm-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm syzbot dashboard link:

[PATCH 4/5] dts: arm64: hi3660: Add thermal cooling management

2018-04-03 Thread Leo Yan
From: Tao Wang Add nodes and properties for thermal cooling management support. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 44 +++ 1 file

[PATCH 5/5] hisi: Consolidate the Kconfigs for the CLOCK_STUB and the MAILBOX

2018-04-03 Thread Leo Yan
From: Daniel Lezcano The current defconfig is inconsistent as it selects the mailbox and the clock for the hi6220 and the hi3660 without having their Kconfigs making sure the dependencies are correct. It ends up when selecting different versions for the kernel (for

[PATCH 0/5] Hi3660: enable power management features

2018-04-03 Thread Leo Yan
Since hi3660 drivers have been merged into Linux kernel (mailbox driver is in Linux-next branch and other drivers are existed in Linux mainline kernel), so this patch series is to enable power management features on hi3660. This patch series includes device tree binding for mailbox, stub clock

[PATCH 1/5] dts: arm64: hi3660: Add mailbox node

2018-04-03 Thread Leo Yan
From: Kaihua Zhong Add the mailbox controller node for hi3660 platform. Signed-off-by: Kaihua Zhong Signed-off-by: Ruyi Wang --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff

[PATCH 3/5] dts: arm64: hi3660: Add CPU frequency scaling support

2018-04-03 Thread Leo Yan
Add two CPU OPP tables, one table is corresponding to one cluster, which allow CPU frequency scaling on hi3660 platforms. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 86 +++ 1 file changed, 86 insertions(+) diff --git

[PATCH 2/5] dts: arm64: hi3660: Add stub clock node

2018-04-03 Thread Leo Yan
From: Kaihua Zhong Add stub clock node for hi3660 platform. Reviewed-by: Leo Yan Signed-off-by: Kaihua Zhong --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support

2018-04-03 Thread Stuart Yoder
On Tue, Apr 3, 2018 at 8:05 PM, Andrew Lunn wrote: >> Suppose you want to create and assign a network interface to a KVM >> virtual machine, you would do something like the following using >> a user space tool like restool: >>-create a new (empty) dprc object >>-create a

[PATCH -mm] mm, gup: prevent pmd checking race in follow_pmd_mask()

2018-04-03 Thread Huang, Ying
From: Huang Ying mmap_sem will be read locked when calling follow_pmd_mask(). But this cannot prevent PMD from being changed for all cases when PTL is unlocked, for example, from pmd_trans_huge() to pmd_none() via MADV_DONTNEED. So it is possible for the pmd_present()

[PATCH 1/1] dmaengine:jz4740:fix memory leak

2018-04-03 Thread Xidong Wang
In function jz4740_dma_probe(), the memory allocated by clk_get() is not released on the error path that ret, which holds the return value of dma_async_device_register(), is not NULL. This will result in a memory leak bug. Signed-off-by: Xidong Wang ---

Re: [PATCH 1/1] lz4: Implement lz4 with dynamic offset length.

2018-04-03 Thread Sergey Senozhatsky
On (04/03/18 19:13), Vaneet Narang wrote: > Hi Sergey, > > >You shrink a 2 bytes offset down to a 1 byte offset, thus you enforce that > 2 Byte offset is not shrinked to 1 byte, Its only 1 bit is reserved out of > 16 bits of offset. So only 15 Bits can be used to store offset value. Yes, you are

Re: [PATCH] vhost-net: add limitation of sent packets for tx polling(Internet mail)

2018-04-03 Thread 张海斌
>On Tue, Apr 03, 2018 at 12:29:47PM +, haibinzhang wrote: >> >On Tue, Apr 03, 2018 at 08:08:26AM +, haibinzhang wrote: >> >> handle_tx will delay rx for a long time when tx busy polling udp packets >> >> with small length(e.g. 1byte udp payload), because setting >> >> VHOST_NET_WEIGHT >>

Re: [PATCH v30 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-04-03 Thread Wei Wang
On 04/04/2018 02:47 AM, Michael S. Tsirkin wrote: On Wed, Apr 04, 2018 at 12:10:03AM +0800, Wei Wang wrote: +static int add_one_sg(struct virtqueue *vq, unsigned long pfn, uint32_t len) +{ + struct scatterlist sg; + unsigned int unused; + + sg_init_table(, 1); +

Re: [GIT pull] irq updates for 4.17

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 6:51 PM, Palmer Dabbelt wrote: > > Thanks! The linked patch set should be fully bisectable, while this one > will fail on some ARM randconfigs. If it's only some (not very realistic) randconfigs, I suspect an incremental fix is probably the easier

Re: [PATCH v2 2/2] perf: riscv: Add Document for Future Porting Guide

2018-04-03 Thread Alex Solomatnikov
Doc fixes: diff --git a/Documentation/riscv/pmu.txt b/Documentation/riscv/pmu.txt index a3e930e..ae90a5e 100644 --- a/Documentation/riscv/pmu.txt +++ b/Documentation/riscv/pmu.txt @@ -20,7 +20,7 @@ the lack of the following general architectural performance monitoring features: *

Re: [PATCH v2 1/2] mm: uninitialized struct page poisoning sanity checking

2018-04-03 Thread Pavel Tatashin
On 18-03-15 20:43:14, Sasha Levin wrote: > On Thu, Mar 15, 2018 at 03:04:30PM -0400, Pavel Tatashin wrote: > >> > >> Attached the config. It just happens on boot. > > > >Hi Sasha, > > > >I have tried unsuccessfully to reproduce the bug in qemu with 20G RAM, > >and 8 CPUs. > > > >Patch "mm:

[PATCH 01/17] perf tools: Add a "dso_size" sort order

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Kim Phillips Add DSO size to perf report/top sort output list. This includes adding a map__size fn to map.h, which is approximately equal to the DSO data file_size: DSO file size map (end-start) file / (end-start)

[GIT PULL 00/17] perf/core improvements and fixes

2018-04-03 Thread Arnaldo Carvalho de Melo
in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.17-20180403 for you to fetch changes up to 51125a29a395048fdb3429b8c4ca0ada57097744: perf trace: Remove redundant ')' (2018-04-03 16:16:41 -0300

[PATCH 04/17] tools include: Add config.h header file

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding IS_BUILTIN macro and its dependencies into tools world. It's taken from kernel's include/linux/kconfig.h, which can't be taken completely due to its kconfig dependencies. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin

[PATCH 09/17] perf version: Add man page

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Jin Yao Since a new option '--build-options' is created for 'perf version', so we need to document it. Signed-off-by: Jin Yao Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi

[PATCH 06/17] perf config: Rename to HAVE_DWARF_GETLOCATIONS_SUPPORT

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Jin Yao In Makefile.config, to make all libraries flags have _SUPPORT suffix, rename HAVE_DWARF_GETLOCATIONS to HAVE_DWARF_GETLOCATIONS_SUPPORT Signed-off-by: Jin Yao Suggested-by: Ingo Molnar Acked-by: Jiri Olsa

[PATCH 08/17] perf tools: Add 'perf -vv' as an alias to 'perf version --build-options'

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Jin Yao We keep having bug reports that when users build perf on their own, but they don't install some needed libraries such as libelf, libbfd/libibery. The perf can build, but it is missing important functionality. This patch provides a new option '-vv' for

[PATCH 10/17] perf hists browser: Rename perf_evsel_browser_title to a more descriptive name

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Rename it to hists_browser__scnprintf_title() to better reflect that it provides a scnprintf-like function operating on a hists_browser instance. This paves the way to have a non-hists_browser specific function to scnprintf format a title with per

[PATCH 13/17] perf ui browser: Move the extra title lines from the hists browser

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This will be useful for the annotate browser as well, that wants to have extra title lines, i.e. the current ui_browser unconditionally reserves the first line for a browser title and the last one for status messages. But some browsers, like the

[PATCH 11/17] perf hists: Introduce hists__scnprint_title()

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo That is not use any struct hists_browser internals, so that it can be shared with the other UIs and tools. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Martin Liška

[PATCH 07/17] perf version: Print the compiled-in status of libraries

2018-04-03 Thread Arnaldo Carvalho de Melo
From: Jin Yao This patch checks the values passed by CFLAGS (-DHAVE_XXX) and then print the status of libraries. For example, if HAVE_DWARF_SUPPORT is defined, that means the library "dwarf" is compiled-in. The patch will print the status "on" for this library otherwise

Re: RTL8723BE performance regression

2018-04-03 Thread Larry Finger
On 04/03/2018 08:51 PM, João Paulo Rechi Vita wrote: Hello, I've been trying to track a performance regression on the RTL8723BE WiFi adapter, which mainly affects the upload bandwidth (although we can see a decreased download performance as well, the effect on upload is more drastic). This was

[PATCH 1/1] scsi: mvsas:fix memory leak

2018-04-03 Thread Xidong Wang
In function mvs_pci_init(), the memory allocated by scsi_host_alloc() is not released on the error path that mvi, which holds the return value of mvs_pci_alloc(), is NULL. This will result in a memory leak bug. Signed-off-by: Xidong Wang --- drivers/scsi/mvsas/mv_init.c |

[PATCH 1/1] scsi:mvsas:fix memory leak

2018-04-03 Thread Xidong Wang
In function mvs_pci_init(), the memory allocated by scsi_host_alloc() is not released on the error path that mvi, which holds the return value of mvs_pci_alloc(), is NULL. This will result in a memory leak bug. Signed-off-by: Xidong Wang --- drivers/scsi/mvsas/mv_init.c |

Re: RTL8723BE performance regression

2018-04-03 Thread João Paulo Rechi Vita
On Tue, Apr 3, 2018 at 7:28 PM, Larry Finger wrote: (...) > As the antenna selection code changes affected your first bisection, do you > have one of those HP laptops with only one antenna and the incorrect coding > in the FUSE? Yes, that is why I've been passing

Re: RTL8723BE performance regression

2018-04-03 Thread Larry Finger
On 04/03/2018 09:37 PM, João Paulo Rechi Vita wrote: On Tue, Apr 3, 2018 at 7:28 PM, Larry Finger wrote: (...) As the antenna selection code changes affected your first bisection, do you have one of those HP laptops with only one antenna and the incorrect coding in

[PATCH v6 2/5] arm: arm64: page_alloc: reduce unnecessary binary search in memblock_next_valid_pfn()

2018-04-03 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. if pfn and pfn+1 are in the same memblock region, we can simply pfn++ instead of doing the binary search in

[PATCH v6 1/5] mm: page_alloc: remain memblock_next_valid_pfn() on arm and arm64

2018-04-03 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But it causes possible panic bug. So Daniel Vacek reverted it later. But as suggested by Daniel Vacek, it is fine to using memblock to skip gaps and finding next

[PATCH v6 5/5] mm: page_alloc: reduce unnecessary binary search in early_pfn_valid()

2018-04-03 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), if pfn and pfn+1 are in the same memblock region, we can record the last returned memblock

Re: [PATCH v1] kernel/trace:check the val against the available mem

2018-04-03 Thread Zhaoyang Huang
On Tue, Apr 3, 2018 at 9:56 PM, Michal Hocko wrote: > On Tue 03-04-18 09:32:45, Steven Rostedt wrote: >> On Tue, 3 Apr 2018 14:35:14 +0200 >> Michal Hocko wrote: > [...] >> > Being clever is OK if it doesn't add a tricky code. And relying on >> >

[PATCH v6 4/5] arm: arm64: introduce pfn_valid_region()

2018-04-03 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), if pfn and pfn+1 are in the same memblock region, we can record the last returned memblock

KASAN: use-after-free Read in binder_release_work

2018-04-03 Thread syzbot
Hello, syzbot hit the following crash on upstream commit f2d285669aae656dfeafa0bf25e86bbbc5d22329 (Tue Apr 3 17:45:39 2018 +) Merge tag 'pm-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm syzbot dashboard link:

[PATCH 1/1] mtd:nand:fix memory leak

2018-04-03 Thread Xidong Wang
In function tango_nand_probe(), the memory allocated by clk_get() is not released on the normal path and the error path that IS_ERR(nfc->chan) returns true. This will result in a memory leak bug. Signed-off-by: Xidong Wang --- drivers/mtd/nand/tango_nand.c | 5 - 1

Re: possible deadlock in skb_queue_tail

2018-04-03 Thread Cong Wang
On Tue, Apr 3, 2018 at 4:42 AM, Kirill Tkhai wrote: > On 03.04.2018 14:25, Dmitry Vyukov wrote: >> On Tue, Apr 3, 2018 at 11:50 AM, Kirill Tkhai wrote: >>> sk_diag_dump_icons() dumps only sockets in TCP_LISTEN state. >>> TCP_LISTEN state may be

Re: [GIT PULL 00/17] perf/core improvements and fixes

2018-04-03 Thread Ingo Molnar
> perf/x86/intel: Enable C-state residency events for Cannon Lake (2018-03-31 > 11:28:36 +0200) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-4.17-20180403 > > for you

[tip:perf/urgent] perf tools: Add a "dso_size" sort order

2018-04-03 Thread tip-bot for Kim Phillips
Commit-ID: b74d12d598143c2dd30b9cb9636a50dded4cc49f Gitweb: https://git.kernel.org/tip/b74d12d598143c2dd30b9cb9636a50dded4cc49f Author: Kim Phillips AuthorDate: Tue, 27 Mar 2018 06:09:56 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2

[tip:perf/urgent] tools headers: Synchronize x86's cpufeatures.h

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 5e2a146bbdae6095b13bca9ebe26a867030ae010 Gitweb: https://git.kernel.org/tip/5e2a146bbdae6095b13bca9ebe26a867030ae010 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 29 Mar 2018 11:46:53 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/urgent] perf trace: Show only failing syscalls

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 0a6545bda2756807a089c64352edfc5628c57e6c Gitweb: https://git.kernel.org/tip/0a6545bda2756807a089c64352edfc5628c57e6c Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 29 Mar 2018 12:22:59 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/urgent] tools include: Add config.h header file

2018-04-03 Thread tip-bot for Jiri Olsa
Commit-ID: 6b416ebcc32c5753214d53c18ac5719c93bc340e Gitweb: https://git.kernel.org/tip/6b416ebcc32c5753214d53c18ac5719c93bc340e Author: Jiri Olsa AuthorDate: Fri, 30 Mar 2018 17:27:11 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2 Apr

[tip:perf/urgent] perf config: Rename to HAVE_DWARF_GETLOCATIONS_SUPPORT

2018-04-03 Thread tip-bot for Jin Yao
Commit-ID: a36ebe4e242a2f6818f424b03a5e8dae3964e458 Gitweb: https://git.kernel.org/tip/a36ebe4e242a2f6818f424b03a5e8dae3964e458 Author: Jin Yao AuthorDate: Fri, 30 Mar 2018 17:27:13 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2

<    4   5   6   7   8   9   10   11   12   13   >