Re: [PATCH] dsa: return error code upstream

2018-12-26 Thread Florian Fainelli
Le 12/25/18 à 8:08 PM, Kangjie Lu a écrit : > Both bcm_sf2_sw_indir_rw and mdiobus_write_nested could fail, so let's > return their error codes upstream. Thanks for your patch, the subject should be: net: dsa: bcm_sf2: Propagate error value from mdio_write to match existing commits done to that

Re: [RFC PATCH] ASoC: fsl: Add Audio Mixer CPU DAI driver

2018-12-26 Thread Nicolin Chen
Hi Viorel, Sorry for the late response, having been on a long vacation. The code looks pretty clean. Just some small concerns/questions below. On Wed, Dec 19, 2018 at 12:30 AM Viorel Suman wrote: > > This patch implements Audio Mixer CPU DAI driver for NXP iMX8 SOCs. > The Audio Mixer is a

[PATCH] char: hw_random: Fix missing check during driver release

2018-12-26 Thread Aditya Pakki
devres_release can return -ENOENT if the device is not freed. The fix throws a warning consistent with other invocations. Signed-off-by: Aditya Pakki --- drivers/char/hw_random/core.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/char/hw_random/core.c

RE: [PATCH v9 00/13] arch/resctrl: AMD QoS support

2018-12-26 Thread Moger, Babu
Hi Jan, > -Original Message- > From: Jan Engelhardt > Sent: Sunday, December 23, 2018 12:27 PM > To: Moger, Babu > Cc: t...@linutronix.de; mi...@redhat.com; b...@alien8.de; cor...@lwn.net; > fenghua...@intel.com; reinette.cha...@intel.com; pet...@infradead.org; >

Re: [PATCH v2 1/1] arm64: dts: marvell: armada-ap806: reserve PSCI area

2018-12-26 Thread Heinrich Schuchardt
On 12/26/18 5:16 PM, Gregory CLEMENT wrote: > Hi Heinrich, > > On ven., déc. 21 2018, Heinrich Schuchardt wrote: > >> The memory area [0x400-0x420[ is occupied by the PSCI firmware. Any >> attempt to access it from Linux leads to an immediate crash. >> >> So let's make the same memory

Re: [PATCH] memory: tegra: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-26 Thread Frank Lee
ping..

Re: [PATCH] workqueue: remove some duplicated includes

2018-12-26 Thread Frank Lee
ping..

Re: [PATCH] pinctrl: freescale: Break dependency on SOC_IMX8MQ for i.MX8MQ

2018-12-26 Thread Fabio Estevam
On Sun, Dec 23, 2018 at 2:38 PM Abel Vesa wrote: > > The CONFIG_SOC_IMX8MQ will go away, so the dependency can be based on > ARCH_MXC && ARM64. > > Signed-off-by: Abel Vesa Reviewed-by: Fabio Estevam

[PATCH] power: supply: remove some duplicated includes

2018-12-26 Thread Yangtao Li
We include of.h twice. It's unnecessary,so just remove them. Signed-off-by: Yangtao Li --- drivers/power/supply/power_supply_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index

Re: [PATCH] RISC-V: defconfig: Enable Generic PCIE by default

2018-12-26 Thread Palmer Dabbelt
On Fri, 21 Dec 2018 11:27:39 PST (-0800), Paul Walmsley wrote: On Fri, 21 Dec 2018, Alistair Francis wrote: When the MicroSemi driver does eventually go upstream this will probably have to be discussed though as either the config or device tree will need to be edited to ensure only one PCIe

[GIT PULL] parisc architecture updates for kernel v4.21

2018-12-26 Thread Helge Deller
Hi Linus, please pull the parisc architecture updates for 4.21-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.21-1 The major change in this patchset is the new system call table generation support from Firoz Khan. Thanks, Helge

Re: Crypto Update for 4.21

2018-12-26 Thread Eric Biggers
On Wed, Dec 26, 2018 at 09:22:57PM +0800, Herbert Xu wrote: > > Please pull from > > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus > Hi Herbert, that branch is still on an old commit. Probably you forgot to push. - Eric

[PATCH v3 2/3] arm64: vdso: Use ARCH_TIMER_NBITS to calculate mask

2018-12-26 Thread Pavel Tatashin
get_clock_shifted_nsec macro in vdso/gettimeofday.S has another place where the size of clocksource precision is hardcoded. Use ARCH_TIMER_NBITS to generate mask value. Signed-off-by: Pavel Tatashin --- arch/arm64/kernel/asm-offsets.c | 1 + arch/arm64/kernel/vdso/gettimeofday.S | 3 +--

[PATCH v3 1/3] arm_arch_timer: add macro for timer nbits

2018-12-26 Thread Pavel Tatashin
The minimum value of bits arm defines for timer value is 56bits, add a new macro ARCH_TIMER_NBITS to use it in code instead of hardcoding 56. Signed-off-by: Pavel Tatashin --- drivers/clocksource/arm_arch_timer.c | 8 include/clocksource/arm_arch_timer.h | 3 +++ 2 files changed, 7

[PATCH v3 3/3] arm64: Early boot time stamps

2018-12-26 Thread Pavel Tatashin
Allow printk time stamps/sched_clock() to be available from the early boot. Signed-off-by: Pavel Tatashin --- arch/arm64/kernel/setup.c | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index

[PATCH v3 0/3] Early boot time stamps for arm64

2018-12-26 Thread Pavel Tatashin
Changelog: v2 - v3 Addressed comments from Will Deacon: split into three patches, removed hardcoded assumption from vdso, don't assign arch_timer_read_counter during early boot. v1 - v2 Addressed comments from Marc Zyngier I made early boot time stamps available

Re: [PATCH v2 1/1] arm64: dts: marvell: armada-ap806: reserve PSCI area

2018-12-26 Thread Gregory CLEMENT
Hi Heinrich, On ven., déc. 21 2018, Heinrich Schuchardt wrote: > The memory area [0x400-0x420[ is occupied by the PSCI firmware. Any > attempt to access it from Linux leads to an immediate crash. > > So let's make the same memory reservation as the vendor kernel. > > Signed-off-by:

Re: [PATCH v3] media: exynos4-is: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-26 Thread Frank Lee
ping...

Re: [PATCH] power: supply: axp288_fuel_gauge: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-12-26 Thread Frank Lee
ping...

Re: [PATCH] thermal: tegra: soctherm: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-12-26 Thread Frank Lee
ping...

Re: [PATCH] clk: dove: fix refcount leak in dove_clk_init()

2018-12-26 Thread Gregory CLEMENT
Hi Yangtao, On mer., déc. 26 2018, Yangtao Li wrote: > The of_find_compatible_node() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. Reviewed-by: Gregory CLEMENT

Re: [PATCH] clk: mv98dx3236: fix refcount leak in mv98dx3236_clk_init()

2018-12-26 Thread Gregory CLEMENT
Hi Yangtao, On mer., déc. 26 2018, Yangtao Li wrote: > The of_find_compatible_node() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. Reviewed-by: Gregory CLEMENT

Re: [PATCH] clk: armada-xp: fix refcount leak in axp_clk_init()

2018-12-26 Thread Gregory CLEMENT
Hi Yangtao, On mer., déc. 26 2018, Yangtao Li wrote: > The of_find_compatible_node() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. Reviewed-by: Gregory CLEMENT

Re: [PATCH] clk: kirkwood: fix refcount leak in kirkwood_clk_init()

2018-12-26 Thread Gregory CLEMENT
Hi Yangtao, On mer., déc. 26 2018, Yangtao Li wrote: > The of_find_compatible_node() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. Reviewed-by: Gregory CLEMENT

Re: [PATCH] clk: armada-370: fix refcount leak in a370_clk_init()

2018-12-26 Thread Gregory CLEMENT
Hi Yangtao, On mer., déc. 26 2018, Yangtao Li wrote: > The of_find_compatible_node() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. Reviewed-by: Gregory CLEMENT

Re: [PATCH -mmotm] efi: drop kmemleak_ignore() for page allocator

2018-12-26 Thread Ard Biesheuvel
On Wed, 26 Dec 2018 at 16:13, Qian Cai wrote: > > On 12/26/18 7:02 AM, Ard Biesheuvel wrote: > > On Wed, 26 Dec 2018 at 03:35, Qian Cai wrote: > >> > >> a0fc5578f1d (efi: Let kmemleak ignore false positives) is no longer > >> needed due to efi_mem_reserve_persistent() uses __get_free_page() > >>

Re: [PATCH 00/21] i.MX6, DesignWare PCI improvements

2018-12-26 Thread Gustavo Pimentel
Hi, On 21/12/2018 07:26, Andrey Smirnov wrote: > Everyone: > > This is the series containing various small improvements that I made > while reading the code and researching commit history of pci-imx6.c > and pcie-designware*.c files. All changes are optional, so commits > that don't seem like an

Re: [PATCH RFC 1/2] virtio-net: bql support

2018-12-26 Thread Michael S. Tsirkin
On Thu, Dec 06, 2018 at 04:17:36PM +0800, Jason Wang wrote: > > On 2018/12/6 上午6:54, Michael S. Tsirkin wrote: > > When use_napi is set, let's enable BQLs. Note: some of the issues are > > similar to wifi. It's worth considering whether something similar to > > commit 36148c2bbfbe ("mac80211:

Re: [PATCH 11/21] PCI: designware: Make use of BIT() in constant definitions

2018-12-26 Thread Gustavo Pimentel
Hi, On 21/12/2018 07:27, Andrey Smirnov wrote: > Avoid using explicit left shifts and convert various definitions to > use BIT() instead. No functional change intended. > > Cc: Lorenzo Pieralisi > Cc: Bjorn Helgaas > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach > Cc: Leonard

Re: [PATCH RFC 1/2] virtio-net: bql support

2018-12-26 Thread Michael S. Tsirkin
On Thu, Dec 06, 2018 at 04:17:36PM +0800, Jason Wang wrote: > > On 2018/12/6 上午6:54, Michael S. Tsirkin wrote: > > When use_napi is set, let's enable BQLs. Note: some of the issues are > > similar to wifi. It's worth considering whether something similar to > > commit 36148c2bbfbe ("mac80211:

Re: [PATCH RFC 1/2] virtio-net: bql support

2018-12-26 Thread Michael S. Tsirkin
On Thu, Dec 06, 2018 at 04:17:36PM +0800, Jason Wang wrote: > > On 2018/12/6 上午6:54, Michael S. Tsirkin wrote: > > When use_napi is set, let's enable BQLs. Note: some of the issues are > > similar to wifi. It's worth considering whether something similar to > > commit 36148c2bbfbe ("mac80211:

Re: [PATCH -mmotm] efi: drop kmemleak_ignore() for page allocator

2018-12-26 Thread Qian Cai
On 12/26/18 7:02 AM, Ard Biesheuvel wrote: > On Wed, 26 Dec 2018 at 03:35, Qian Cai wrote: >> >> a0fc5578f1d (efi: Let kmemleak ignore false positives) is no longer >> needed due to efi_mem_reserve_persistent() uses __get_free_page() >> instead where kmemelak is not able to track regardless.

Re: [PATCH 20/21] PCI: designware: Make use of GENMASK/FIELD_PREP

2018-12-26 Thread Gustavo Pimentel
Hi, On 21/12/2018 07:27, Andrey Smirnov wrote: > Convert various mult-bit fields to be defined using > GENMASK/FIELD_PREP. This way bit field boundaries are defined in a > single place only as well as defined in a way that makes it easier to > verify them against reference manual. No functional

Re: [PATCH net-next 3/3] vhost: access vq metadata through kernel virtual address

2018-12-26 Thread Michael S. Tsirkin
On Wed, Dec 26, 2018 at 11:57:32AM +0800, Jason Wang wrote: > > On 2018/12/25 下午8:50, Michael S. Tsirkin wrote: > > On Tue, Dec 25, 2018 at 06:05:25PM +0800, Jason Wang wrote: > > > On 2018/12/25 上午2:10, Michael S. Tsirkin wrote: > > > > On Mon, Dec 24, 2018 at 03:53:16PM +0800, Jason Wang wrote:

Re: [PATCH 21/21] PCI: designware: Remove superfluous shifting in definitions

2018-12-26 Thread Gustavo Pimentel
Hi, On 21/12/2018 07:27, Andrey Smirnov wrote: > Surrounding definitions no longer use explicit shift, so "<< 0" here > serve no purpose. Remove them. No functional change intended. > > Cc: Lorenzo Pieralisi > Cc: Bjorn Helgaas > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach > Cc:

[BUG] net: brocade: bna: Possible concurrency use-after-free bugs

2018-12-26 Thread Jia-Ju Bai
In drivers/net/ethernet/brocade/bna/bnad_debugfs.c, the functions bnad_debugfs_read_regrd() and bnad_debugfs_write_regrd() may be concurrently executed. bnad_debugfs_read_regrd() line 293: if (!bnad->regdata) line 297: simple_read_from_buffer(..., bnad->regdata, ...) line 300:

[PATCH] net: arcnet: Fix a possible concurrency use-after-free bug in arcnet_reply_tasklet()

2018-12-26 Thread Jia-Ju Bai
In drivers/net/arcnet/arcnet.c, the functions arcnet_reply_tasklet() and arcnet_send_packet() may be concurrently executed. arcnet_reply_tasklet() line 430: dev_kfree_skb(lp->outgoing.skb); arcnet_send_packet() line 682: spin_lock_irqsave(); line 690: lp->outgoing.skb = skb; line 691:

[PATCH] isdn: hisax: hfc_pci: Fix a possible concurrency use-after-free bug in HFCPCI_l1hw()

2018-12-26 Thread Jia-Ju Bai
In drivers/isdn/hisax/hfc_pci.c, the functions hfcpci_interrupt() and HFCPCI_l1hw() may be concurrently executed. HFCPCI_l1hw() line 1173: if (!cs->tx_skb) hfcpci_interrupt() line 942: spin_lock_irqsave(); line 1066: dev_kfree_skb_irq(cs->tx_skb); Thus, a possible concurrency

[PATCH] clk: vf610: fix refcount leak in vf610_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-vf610.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] clk: imx7d: fix refcount leak in imx7d_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-imx7d.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] fsi:fsi-sbefifo: Fix possible concurrency use-after-free bugs in sbefifo_user_release

2018-12-26 Thread Jia-Ju Bai
In drivers/fsi/fsi-sbefifo.c, the functions sbefifo_user_release(), sbefifo_user_read() and sbefifo_user_write() may be concurrently executed. sbefifo_user_release() sbefifo_release_command() vfree(user->pending_cmd); sbefifo_user_read() mutex_lock(); rc = __sbefifo_submit(sbefifo,

[PATCH] clk: imx6sx: fix refcount leak in imx6sx_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-imx6sx.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] clk: imx6q: fix refcount leak in imx6q_clocks_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/imx/clk-imx6q.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 0/5] perf session: Add reader object

2018-12-26 Thread Jiri Olsa
hi, this patchset adds reader object to interface event processing for any data. It's defined as: struct reader { int fd; u64 data_size; u64 data_offset; }; Now we can simply define reader object for arbitrary file data portion and pass it to reader__process_events

[PATCH 5/5] perf session: Add reader__process_events function

2018-12-26 Thread Jiri Olsa
Adding reader__process_events function to readers data. The reader object is defined by file's fd, data offset and data size. Now we can simply define reader object for arbitrary file data portion and pass it to reader__process_events function to process its data. Link:

[PATCH 3/5] perf session: Add data_size to reader object

2018-12-26 Thread Jiri Olsa
Adding data_size to reader object. Keeping the data_size variable instead of replacing it with rd.data_size as it will be used in following patch. Link: http://lkml.kernel.org/n/tip-5xcux9957yqsljh1cm5ng...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 4 +++- 1 file

[PATCH 4/5] perf session: Add data_offset to reader object

2018-12-26 Thread Jiri Olsa
Adding data_offset to reader object. Link: http://lkml.kernel.org/n/tip-k531enq5bmack3mjccjbl...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/session.c

[PATCH 2/5] perf session: Add reader object

2018-12-26 Thread Jiri Olsa
Adding session private reader object to encapsulate reading of the event data block. Starting with fd field inside. Link: http://lkml.kernel.org/n/tip-glbs0xvtdcstckscvahue...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH 1/5] perf session: Get rid of file_size variable

2018-12-26 Thread Jiri Olsa
It's not needed and removing it makes the code little more simple for upcoming changes. It's safe to replace file_size with data_size, because perf_data__size value is never smaller than data_offset + data_size. Link: http://lkml.kernel.org/n/tip-ocz7zwwkkx11v0mkxrtcd...@git.kernel.org

[PATCH] clk: dove: fix refcount leak in dove_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/dove.c | 8 ++-- 1 file changed, 6

Re: [PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region

2018-12-26 Thread Ard Biesheuvel
On Tue, 25 Dec 2018 at 03:30, Yueyi Li wrote: > > Hi Ard, > > > On 2018/12/24 17:45, Ard Biesheuvel wrote: > > Does the following change fix your issue as well? > > > > index 9b432d9fcada..9dcf0ff75a11 100644 > > --- a/arch/arm64/mm/init.c > > +++ b/arch/arm64/mm/init.c > > @@ -447,7 +447,7 @@

[PATCH] clk: mv98dx3236: fix refcount leak in mv98dx3236_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/mv98dx3236.c | 4 +++- 1 file changed, 3

Re: [PATCH net V2 4/4] vhost: log dirty page correctly

2018-12-26 Thread Michael S. Tsirkin
On Wed, Dec 26, 2018 at 01:43:26PM +0800, Jason Wang wrote: > > On 2018/12/26 上午12:25, Michael S. Tsirkin wrote: > > On Tue, Dec 25, 2018 at 05:43:25PM +0800, Jason Wang wrote: > > > On 2018/12/25 上午1:41, Michael S. Tsirkin wrote: > > > > On Mon, Dec 24, 2018 at 11:43:31AM +0800, Jason Wang

[PATCH] clk: armada-xp: fix refcount leak in axp_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/armada-xp.c | 4 +++- 1 file changed, 3

[PATCH] clk: kirkwood: fix refcount leak in kirkwood_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/kirkwood.c | 2 ++ 1 file changed, 2 insertions(+)

[RFC][PATCH v2 12/21] x86/pgtable: allocate page table pages from DRAM

2018-12-26 Thread Fengguang Wu
On rand read/writes on large data, we find near half memory accesses caused by TLB misses, hence hit the page table pages. So better keep page table pages in faster DRAM nodes. Signed-off-by: Fengguang Wu --- arch/x86/include/asm/pgalloc.h | 10 +++--- arch/x86/mm/pgtable.c |

[RFC][PATCH v2 07/21] mm: export node type {pmem|dram} under /sys/bus/node

2018-12-26 Thread Fengguang Wu
From: Fan Du User space migration daemon could check /sys/bus/node/devices/nodeX/type for node type. Software can interrogate node type for node memory type and distance to get desirable target node in migration. grep -r . /sys/devices/system/node/*/type

[RFC][PATCH v2 03/21] x86/numa_emulation: fix fake NUMA in uniform case

2018-12-26 Thread Fengguang Wu
From: Fan Du The index of numa_meminfo is expected to the same as of numa_meminfo.blk[]. and numa_remove_memblk_from break the expectation. 2S system does not break, because before numa_remove_memblk_from index nid 0 0 1 1 after numa_remove_memblk_from index nid 0 1 1

[RFC][PATCH v2 11/21] kvm: allocate page table pages from DRAM

2018-12-26 Thread Fengguang Wu
From: Yao Yuan Signed-off-by: Yao Yuan Signed-off-by: Fengguang Wu --- arch/x86/kvm/mmu.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) --- linux.orig/arch/x86/kvm/mmu.c 2018-12-26 20:54:48.846720344 +0800 +++ linux/arch/x86/kvm/mmu.c2018-12-26

[RFC][PATCH v2 05/21] mmzone: new pgdat flags for DRAM and PMEM

2018-12-26 Thread Fengguang Wu
From: Fan Du One system with DRAM and PMEM, we need new flag to tag pgdat is made of DRAM or peristent memory. This patch serves as preparetion one for follow up patch. Signed-off-by: Fan Du Signed-off-by: Fengguang Wu --- include/linux/mmzone.h | 26 ++ 1 file

[RFC][PATCH v2 08/21] mm: introduce and export pgdat peer_node

2018-12-26 Thread Fengguang Wu
From: Fan Du Each CPU socket can have 1 DRAM and 1 PMEM node, we call them "peer nodes". Migration between DRAM and PMEM will by default happen between peer nodes. It's a temp solution. In multiple memory layers, a node can have both promotion and demotion targets instead of a single peer node.

[RFC][PATCH v2 18/21] kvm-ept-idle: enable module

2018-12-26 Thread Fengguang Wu
Signed-off-by: Fengguang Wu --- arch/x86/kvm/Kconfig | 11 +++ arch/x86/kvm/Makefile |4 2 files changed, 15 insertions(+) --- linux.orig/arch/x86/kvm/Kconfig 2018-12-23 20:09:04.628882396 +0800 +++ linux/arch/x86/kvm/Kconfig 2018-12-23 20:09:04.628882396 +0800 @@ -96,6

[RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM

2018-12-26 Thread Fengguang Wu
From: Fan Du This is a hack to enumerate PMEM as NUMA nodes. It's necessary for current BIOS that don't yet fill ACPI HMAT table. WARNING: take care to backup. It is mutual exclusive with libnvdimm subsystem and can destroy ndctl managed namespaces. Signed-off-by: Fan Du Signed-off-by:

[RFC][PATCH v2 09/21] mm: avoid duplicate peer target node

2018-12-26 Thread Fengguang Wu
To ensure 1:1 peer node mapping on broken BIOS node distances: node 0 1 2 3 0: 10 21 20 20 1: 21 10 20 20 2: 20 20 10 20 3: 20 20 20 10 or with numa=fake=4U node distances: node 0 1 2 3 4

[RFC][PATCH v2 04/21] x86/numa_emulation: pass numa node type to fake nodes

2018-12-26 Thread Fengguang Wu
From: Fan Du Signed-off-by: Fan Du --- arch/x86/mm/numa_emulation.c | 14 ++ 1 file changed, 14 insertions(+) --- linux.orig/arch/x86/mm/numa_emulation.c 2018-12-23 19:21:11.002206144 +0800 +++ linux/arch/x86/mm/numa_emulation.c 2018-12-23 19:21:10.998206236 +0800 @@ -12,6

Re: [PATCH v5 0/9] Use vm_insert_range

2018-12-26 Thread Souptick Joarder
On Mon, Dec 24, 2018 at 8:51 PM Russell King - ARM Linux wrote: > > Having discussed with Matthew offlist, I think we've come to the > following conclusion - there's a number of drivers that buggily > ignore vm_pgoff. > > So, what I proposed is: > > static int __vm_insert_range(struct vm_struct

[RFC][PATCH v2 06/21] x86,numa: update numa node type

2018-12-26 Thread Fengguang Wu
From: Fan Du Signed-off-by: Fan Du Signed-off-by: Fengguang Wu --- arch/x86/mm/numa.c |1 + 1 file changed, 1 insertion(+) --- linux.orig/arch/x86/mm/numa.c 2018-12-23 19:38:17.363582512 +0800 +++ linux/arch/x86/mm/numa.c2018-12-23 19:38:17.363582512 +0800 @@ -594,6 +594,7 @@

[RFC][PATCH v2 02/21] acpi/numa: memorize NUMA node type from SRAT table

2018-12-26 Thread Fengguang Wu
From: Fan Du Mark NUMA node as DRAM or PMEM. This could happen in boot up state (see the e820 pmem type override patch), or on fly when bind devdax device with kmem driver. It depends on BIOS supplying PMEM NUMA proximity in SRAT table, that's current production BIOS does. Signed-off-by: Fan

[RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration

2018-12-26 Thread Fengguang Wu
This is an attempt to use NVDIMM/PMEM as volatile NUMA memory that's transparent to normal applications and virtual machines. The code is still in active development. It's provided for early design review. Key functionalities: 1) create and describe PMEM NUMA node for NVDIMM memory 2) dumb

[RFC][PATCH v2 20/21] mm/vmscan.c: migrate anon DRAM pages to PMEM node

2018-12-26 Thread Fengguang Wu
From: Jingqi Liu With PMEM nodes, the demotion path could be 1) DRAM pages: migrate to PMEM node 2) PMEM pages: swap out This patch does (1) for anonymous pages only. Since we cannot detect hotness of (unmapped) page cache pages for now. The user space daemon can do migration in both

[RFC][PATCH v2 19/21] mm/migrate.c: add move_pages(MPOL_MF_SW_YOUNG) flag

2018-12-26 Thread Fengguang Wu
From: Liu Jingqi Introduce MPOL_MF_SW_YOUNG flag to move_pages(). When on, the already-in-DRAM pages will be set PG_referenced. Background: The use space migration daemon will frequently scan page table and read-clear accessed bits to detect hot/cold pages. Then migrate hot pages from PMEM to

[RFC][PATCH v2 13/21] x86/pgtable: dont check PMD accessed bit

2018-12-26 Thread Fengguang Wu
From: Jingqi Liu ept-idle will clear PMD accessed bit to speedup PTE scan -- if the bit remains unset in the next scan, all the 512 PTEs can be skipped. So don't complain on !_PAGE_ACCESSED in pmd_bad(). Note that clearing PMD accessed bit has its own cost, the optimization may only be

[RFC][PATCH v2 10/21] mm: build separate zonelist for PMEM and DRAM node

2018-12-26 Thread Fengguang Wu
From: Fan Du When allocate page, DRAM and PMEM node should better not fall back to each other. This allows migration code to explicitly control which type of node to allocate pages from. With this patch, PMEM NUMA node can only be used in 2 ways: - migrate in and out - numactl That guarantees

[RFC][PATCH v2 15/21] ept-idle: EPT walk for virtual machine

2018-12-26 Thread Fengguang Wu
For virtual machines, "accessed" bits will be set in guest page tables and EPT/NPT. So for qemu-kvm process, convert HVA to GFN to GPA, then do EPT/NPT walks. This borrows host page table walk macros/functions to do EPT/NPT walk. So it depends on them using the same level. As proposed by Dave

[RFC][PATCH v2 21/21] mm/vmscan.c: shrink anon list if can migrate to PMEM

2018-12-26 Thread Fengguang Wu
Fix OOM by making in-kernel DRAM=>PMEM migration reachable. Here we assume these 2 possible demotion paths: - DRAM migrate to PMEM - PMEM to swap device Signed-off-by: Fengguang Wu --- mm/vmscan.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- linux.orig/mm/vmscan.c

[RFC][PATCH v2 16/21] mm-idle: mm_walk for normal task

2018-12-26 Thread Fengguang Wu
From: Zhang Yi File pages are skipped for now. They are in general not guaranteed to be mapped. It means when become hot, there is no guarantee to find and move them to DRAM nodes. Signed-off-by: Zhang Yi Signed-off-by: Fengguang Wu --- arch/x86/kvm/ept_idle.c | 204

[RFC][PATCH v2 17/21] proc: introduce /proc/PID/idle_pages

2018-12-26 Thread Fengguang Wu
This will be similar to /sys/kernel/mm/page_idle/bitmap documented in Documentation/admin-guide/mm/idle_page_tracking.rst, however indexed by process virtual address. When using the global PFN indexed idle bitmap, we find 2 kind of overheads: - to track a task's working set, Brendan Gregg end up

[RFC][PATCH v2 14/21] kvm: register in mm_struct

2018-12-26 Thread Fengguang Wu
VM is associated with an address space and not a specific thread. >From Documentation/virtual/kvm/api.txt: Only run VM ioctls from the same process (address space) that was used to create the VM. CC: Nikita Leshenko CC: Christian Borntraeger Signed-off-by: Fengguang Wu ---

[PATCH] clk: armada-370: fix refcount leak in a370_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/armada-370.c | 4 +++- 1 file changed, 3

[PATCH] clk: samsung: exynos4: fix refcount leak in exynos4_get_xom()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/samsung/clk-exynos4.c | 1 + 1 file changed, 1

[PATCH] clk: socfpga: fix refcount leak

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/socfpga/clk-pll-a10.c | 1 +

Re: [PATCH v2 0/5] fuse: Interrupt-related optimizations and improvements

2018-12-26 Thread Kirill Tkhai
ping On 08.11.2018 12:05, Kirill Tkhai wrote: > v2: Changes in [1-2,5] patches. The biggest change is in [5], > where repeater FR_INTERRUPTED assignment is removed. > > This patchset consists of several parts. Patches [1-2] optimize > likely case of request_end(), and make this function to

Crypto Update for 4.21

2018-12-26 Thread Herbert Xu
Hi Linus: Here is the crypto update for 4.21: API: - Add 1472-byte test to tcrypt for IPsec. - Reintroduced crypto stats interface with numerous changes. - Support incremental algorithm dumps. Algorithms: - Add xchacha12/20. - Add nhpoly1305. - Add adiantum. - Add streebog hash. - Mark

[PATCH] clk: ti: fix refcount leak in ti_dt_clocks_register()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/ti/clk.c | 8 ++-- 1 file changed, 6 insertions(+), 2

[PATCH] clk: qoriq: fix refcount leak in clockgen_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/clk-qoriq.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] clk: highbank: fix refcount leak in hb_clk_init()

2018-12-26 Thread Yangtao Li
The of_find_compatible_node() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- drivers/clk/clk-highbank.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v3 5/8] dt-bindings: remoteproc: qcom: Fixup regulator dependencies

2018-12-26 Thread Sibi Sankar
Fixup regulator supply dependencies for Q6V5 MSS on MSM996 SoCs. Fixes: 9f058fa2efb1 ("remoteproc: qcom: Add support for mss remoteproc on msm8996") Signed-off-by: Sibi Sankar --- v3: * Fixup dt-binding documentation as suggested by Doug .../bindings/remoteproc/qcom,q6v5.txt | 21

[PATCH v3 4/8] remoteproc: qcom: q6v5-mss: Add missing clocks for MSM8996

2018-12-26 Thread Sibi Sankar
Proxy vote for QDSS clock and remove vote on handover interrupt to provide MSS PBL with access to STM hardware registers during boot. Add "snoc_axi" and "mnoc_axi" to the active clock list. Fixes: 9f058fa2efb1 ("remoteproc: qcom: Add support for mss remoteproc on msm8996") Signed-off-by: Sibi

[PATCH v3 7/8] dt-bindings: remoteproc: qcom: Add power-domain bindings for Q6V5

2018-12-26 Thread Sibi Sankar
Add power-domain bindings for Q6V5 MSS on MSM8996 and SDM845 SoCs. Signed-off-by: Sibi Sankar --- v3: * Fixup dt-binding documentation as suggested by Doug * Dropping Rob's Reviewed-by due to documentation style change v2: * Add load_state power-domain * List cx and mx

[PATCH v3 2/8] dt-bindings: remoteproc: qcom: Add missing clocks for SDM845

2018-12-26 Thread Sibi Sankar
Add missing clock bindings for Q6V5 MSS on SDM845 SoCs. Fixes: fb22022ff63d ("dt-bindings: remoteproc: Add Q6v5 Modem PIL binding for SDM845") Signed-off-by: Sibi Sankar --- v3: * Fixup dt-binding documentation as suggested by Doug .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 14

[PATCH v3 3/8] dt-bindings: remoteproc: qcom: Add missing clocks for MSM8996

2018-12-26 Thread Sibi Sankar
Add missing clock bindings for Q6V5 MSS on MSM8996 SoCs. Fixes: 9f058fa2efb1 ("remoteproc: qcom: Add support for mss remoteproc on msm8996") Signed-off-by: Sibi Sankar --- v3: * Fixup dt-binding documentation as suggested by Doug Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt |

[PATCH v3 8/8] arm64: dts: qcom: sdm845: Add Q6V5 MSS node

2018-12-26 Thread Sibi Sankar
This patch adds Q6V5 MSS remoteproc node for SDM845 SoCs. Signed-off-by: Sibi Sankar Reviewed-by: Douglas Anderson --- v3: * with shutdown-ack irq redesign make it mandatory, merge multiple patches into a single one v2: * Fixed style changes * Added missing clocks in the dt-bindings

[PATCH v3 6/8] remoteproc: qcom: q6v5-mss: Add missing regulator for MSM8996

2018-12-26 Thread Sibi Sankar
Add proxy vote for pll supply on MSM8996 SoC. Fixes: 9f058fa2efb1 ("remoteproc: qcom: Add support for mss remoteproc on msm8996") Signed-off-by: Sibi Sankar --- drivers/remoteproc/qcom_q6v5_mss.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_mss.c

[PATCH v3 1/8] dt-bindings: soc: qcom: Add remote-pid binding for GLINK SMEM

2018-12-26 Thread Sibi Sankar
Add missing qcom,remote-pid dt binding required for GLINK SMEM which specifies the remote endpoint of the GLINK edge. Fixes: 2b41d6c8e696 ("dt-bindings: soc: qcom: Extend GLINK to cover SMEM") Signed-off-by: Sibi Sankar Reviewed-by: Doug Anderson --- v3: * Fixed typo

[RFC PATCH 1/2] drm/fb-helper: Bring back workaround for bugs of SDL 1.2

2018-12-26 Thread Ivan Mironov
SDL 1.2 sets all fields related to the pixel format to zero in some cases[1]. Prior to commit db05c48197759 ("drm: fb-helper: Reject all pixel format changing requests"), there was an unintentional workaround for this that existed for more than a decade. First in device-specific DRM drivers, then

[RFC PATCH 2/2] drm/fb-helper: Ignore the value of fb_var_screeninfo.pixclock

2018-12-26 Thread Ivan Mironov
Strict requirement of pixclock to be zero breaks support of SDL 1.2 which contains hardcoded table of supported video modes with non-zero pixclock values[1]. To better understand which pixclock values are considered valid and how driver should handle these values, I briefly examined few existing

[RFC PATCH 0/2] Fix SDL 1.2 on emulated fbdev devices (broken in kernels >=4.19)

2018-12-26 Thread Ivan Mironov
Hi, Originally this issue was brought up on linux.org.ru forum by user saahriktu, he is on Cc. He discovered that commit db05c48197759 ("drm: fb-helper: Reject all pixel format changing requests") breaks support of SDL1 programs, like various old games and emulators of old game consoles. First

Re: [PATCH -mmotm] efi: drop kmemleak_ignore() for page allocator

2018-12-26 Thread Ard Biesheuvel
On Wed, 26 Dec 2018 at 03:35, Qian Cai wrote: > > a0fc5578f1d (efi: Let kmemleak ignore false positives) is no longer > needed due to efi_mem_reserve_persistent() uses __get_free_page() > instead where kmemelak is not able to track regardless. Otherwise, > kernel reported "kmemleak: Trying to

Re: [PATCH 1/1] mm/page_alloc: add a warning about high order allocations

2018-12-26 Thread Michal Hocko
On Wed 26-12-18 09:40:51, Michal Hocko wrote: > Appart from general comments as a reply to the cover (btw. this all > should be in the changelog because this is the _why_ part of the > justification which should be _always_ part of the changelog). > > On Tue 25-12-18 18:39:27, Konstantin Khorenko

[PATCH net] ethtool: check the return value of get_regs_len

2018-12-26 Thread Yunsheng Lin
The return type for get_regs_len in struct ethtool_ops is int, the hns3 driver may return error when failing to get the regs len by sending cmd to firmware. Signed-off-by: Yunsheng Lin --- Note: There is not Fixes tags for this becuase the ops is added before the git is used. ---

<    1   2   3   4   5   6   >