[PATCH 3/4] lockd: convert nlm_lockowner.count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH] userfaultfd: convert userfaultfd_ctx.refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH] fs: convert super_block.s_active from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH] mnt_namespace: convert mnt_namespace.count from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH] posix_acl: convert posix_acl.a_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

Re: [PATCH RFC 2/2] mm, hugetlb: do not rely on overcommit limit during migration

2017-11-29 Thread Michal Hocko
On Wed 29-11-17 10:22:34, Michal Hocko wrote: > What about this on top. I haven't tested this yet though. OK, it seem to work: root@test1:~# echo 1 > /proc/sys/vm/nr_hugepages root@test1:~# echo 1 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_overcommit_hugepages root@test1:~# grep . /sys/devic

Re: [PATCH 1/2] mfd: twl4030-audio: fix sibling-node lookup

2017-11-29 Thread Lee Jones
On Sat, 11 Nov 2017, Johan Hovold wrote: > A helper purported to look up a child node based on its name was using > the wrong of-helper and ended up prematurely freeing the parent of-node > while leaking any matching node. > > To make things worse, any matching node would not even necessarily be

Re: [PATCH 2/2] mfd: twl6040: fix child-node lookup

2017-11-29 Thread Lee Jones
On Sat, 11 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent node was prematurely freed, while the > child node w

[PATCH] mbcache: convert mb_cache_entry.e_refcnt from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

Re: FW: [RFC PATCH] tpm: don't return -EINVAL if TPM command validation fails

2017-11-29 Thread Javier Martinez Canillas
On 11/26/2017 03:21 PM, Jarkko Sakkinen wrote: > On Wed, Nov 22, 2017 at 08:25:29PM +0100, Javier Martinez Canillas wrote: >> That was my interpretation as well and what I was arguing about. I'm glad to >> know that you also think the same. > > It could be that this rationale has been your earlier

Re: kasan: false use-after-scope warnings with KCOV

2017-11-29 Thread Mark Rutland
On Tue, Nov 28, 2017 at 06:52:32PM +0100, Dmitry Vyukov wrote: > On Tue, Nov 28, 2017 at 4:24 PM, Mark Rutland wrote: > >> ... it looks suspiciously like something is setting up non-zero shadow > >> bytes, but not zeroing them upon return. > > > > It looks like this is the case. > > > > The hack

Re: [PATCH v2 1/4] backlight: as3711_bl: fix device-tree node lookup

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent mfd node was also prematurely freed. > > Fixes: 59e

Re: [PATCH v2 2/4] backlight: max8925_bl: fix device-tree node lookup

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent mfd node was also prematurely freed, > while the chi

Re: [PATCH v2 4/4] backlight: as3711_bl: fix device-tree node leaks

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Johan Hovold wrote: > Two framebuffer device-node names were looked up during probe, but were > only used as flags to indicate the presence of two framebuffer device. > > Drop the unused framebuffer name along with a likewise unused device > pointer from the driver data, and

Re: [PATCH v2 3/4] backlight: tps65217_bl: fix device-tree node lookup

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > This would only cause trouble if the child node is missing while there > is an unrela

Re: [PATCH] leaking_addresses: add support for 32-bit kernel addresses

2017-11-29 Thread Alexander Kapshuk
On Wed, Nov 29, 2017 at 12:16 PM, Tobin C. Harding wrote: > On Wed, Nov 29, 2017 at 09:59:59AM +0200, Alexander Kapshuk wrote: >> On Tue, Nov 28, 2017 at 11:10 PM, Tobin C. Harding wrote: >> > On Tue, Nov 28, 2017 at 03:16:24PM +0200, Alexander Kapshuk wrote: >> >> On Tue, Nov 28, 2017 at 8:32 AM

[PATCH RFC v2 2/2] mm, hugetlb: do not rely on overcommit limit during migration

2017-11-29 Thread Michal Hocko
OK, so this is the v2 with all the fixups folded in. It doesn't blow up immediately and even seem to work. --- >From 5de969daf882122690f0dfc028d09f88f312b7fa Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Wed, 29 Nov 2017 12:31:49 +0100 Subject: [PATCH] mm, hugetlb: do not rely on overcommit li

Re: [PATCH v2 1/2] cros_ec: Split cros_ec_devs module

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Thierry Escande wrote: > This patch splits the cros_ec_devs module in two parts with a > cros_ec_dev module responsible for handling MFD devices registration and > a cros_ec_ctl module responsible for handling the various user-space > interfaces. > > For consistency purpose,

Re: [PATCH v2 2/2] cros_ec: Move cros_ec_dev module to drivers/mfd

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Thierry Escande wrote: > The cros_ec_dev module is responsible for registering the MFD devices > attached to the ChromeOS EC. This patch moves this module to drivers/mfd > so calls to mfd_add_devices() are not done from outside the MFD subtree > anymore. > > Signed-off-by: Th

Re: [PATCH] mfd: tmio: move register macros to tmio_core.c

2017-11-29 Thread Lee Jones
On Tue, 07 Nov 2017, Masahiro Yamada wrote: > These registers are only used in drivers/mfd/tmio_core.c > > Signed-off-by: Masahiro Yamada > --- > > drivers/mfd/tmio_core.c | 20 > include/linux/mfd/tmio.h | 20 > 2 files changed, 20 insertions(+), 20

Re: [PATCH v6 03/17] mfd: madera: Add common support for Cirrus Logic Madera codecs

2017-11-29 Thread Richard Fitzgerald
On 29/11/17 10:18, Linus Walleij wrote: On Thu, Nov 23, 2017 at 6:13 PM, Richard Fitzgerald wrote: +config MFD_MADERA_I2C + bool "Cirrus Logic Madera codecs with I2C" + select MFD_MADERA + select REGMAP_I2C + depends on I2C + depends on PINCTRL + help +

Re: [PATCH 08/10] staging: lustre: lov: use list_for_each_entry in lov_obd.c

2017-11-29 Thread NeilBrown
On Wed, Nov 29 2017, Greg Kroah-Hartman wrote: > On Wed, Nov 29, 2017 at 02:01:12PM +1100, NeilBrown wrote: >> Subject: [PATCH] staging: lustre: lov: use list_for_each_entry in lov_obd.c > > Why is there a subject line in the body of the text here? Will git > figure this out correctly? Because I

[PATCH 2/5] fs, xfs: convert xfs_efi_log_item.efi_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 1/5] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 5/5] fs, xfs: convert xfs_rui_log_item.rui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 3/5] fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 4/5] fs, xfs: convert xfs_cui_log_item.cui_refcount from atomic_t to refcount_t

2017-11-29 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi

[PATCH 0/5] v2 xfs refcount conversions

2017-11-29 Thread Elena Reshetova
Hi Dave, Following our previous conversation I have updated each patch with a highlight of potential problematic places with regards to the memory ordering guarantees, as well as link to the document I am working on to clarify the matter. While I didn't see any issues with these 5 particular conv

Re: [PATCH] mfd: kempld-core: Use resource_size function on resource object

2017-11-29 Thread Lee Jones
On Mon, 20 Nov 2017, Vasyl Gomonovych wrote: > drivers/mfd/kempld-core.c:461:13-16: WARNING: Suspicious code. resource_size > is maybe missing with ioport > > Generated by: scripts/coccinelle/api/resource_size.cocci > > Signed-off-by: Vasyl Gomonovych > --- > drivers/mfd/kempld-core.c | 2 +-

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Greentime Hu
2017-11-29 17:25 GMT+08:00 Arnd Bergmann : > On Wed, Nov 29, 2017 at 10:10 AM, Geert Uytterhoeven > wrote: >> Hi Arnd, >> >> On Wed, Nov 29, 2017 at 9:58 AM, Arnd Bergmann wrote: >>> On Wed, Nov 29, 2017 at 9:39 AM, Greentime Hu wrote: 2017-11-27 22:21 GMT+08:00 Arnd Bergmann : > On Mon

Re: kasan: false use-after-scope warnings with KCOV

2017-11-29 Thread Dmitry Vyukov
On Wed, Nov 29, 2017 at 12:26 PM, Mark Rutland wrote: > On Tue, Nov 28, 2017 at 06:52:32PM +0100, Dmitry Vyukov wrote: >> On Tue, Nov 28, 2017 at 4:24 PM, Mark Rutland wrote: > >> >> ... it looks suspiciously like something is setting up non-zero shadow >> >> bytes, but not zeroing them upon retu

Re: [PATCH] mfd: pm8xxx: Make elegible for COMPILE_TEST

2017-11-29 Thread Lee Jones
On Wed, 29 Nov 2017, Linus Walleij wrote: > This should be enabled so that we get full compile coverage > of the PM8xxx MFD core with the different subdrivers. > > Tested on the build servers. > > Suggested-by: Jonathan Cameron > Signed-off-by: Linus Walleij > --- > drivers/mfd/Kconfig | 2 +-

Re: [PATCH] KVM: x86: inject exceptions produced by x86_decode_insn

2017-11-29 Thread Eduardo Habkost
On Mon, Nov 13, 2017 at 09:32:09AM +0100, Paolo Bonzini wrote: > On 13/11/2017 08:15, Wanpeng Li wrote: > > 2017-11-10 17:49 GMT+08:00 Paolo Bonzini : > >> Sometimes, a processor might execute an instruction while another > >> processor is updating the page tables for that instruction's code page,

Re: [PATCH] KVM: x86: inject exceptions produced by x86_decode_insn

2017-11-29 Thread Paolo Bonzini
On 29/11/2017 12:44, Eduardo Habkost wrote: > On Mon, Nov 13, 2017 at 09:32:09AM +0100, Paolo Bonzini wrote: >> On 13/11/2017 08:15, Wanpeng Li wrote: >>> 2017-11-10 17:49 GMT+08:00 Paolo Bonzini : Sometimes, a processor might execute an instruction while another processor is updating the

Re: [PATCH] arm64: fix missing 'const' qualifiers

2017-11-29 Thread Will Deacon
On Wed, Nov 29, 2017 at 12:32:25PM +0300, Yury Norov wrote: > On Tue, Nov 28, 2017 at 06:33:55PM +, Will Deacon wrote: > > On Sat, Nov 25, 2017 at 12:41:27PM +0300, Yury Norov wrote: > > > It was discovered during LTO-enabled compilation with gcc/ld.bfd. > > > > What was discovered? Could you

Re: [PATCH 4/6] x86/mm/kaiser: Support PCID without INVPCID

2017-11-29 Thread Peter Zijlstra
On Wed, Nov 29, 2017 at 11:33:05AM +0100, Peter Zijlstra wrote: > XXX we could do a much larger ALTERNATIVE, there is no point in > testing the mask if we don't have PCID support. This. > @@ -220,7 +215,27 @@ For 32-bit we have the following convent > .macro SWITCH_TO_USER_CR3 scratch_reg:req >

[PATCH] drm/bridge/sii8620: start MHL transmission after HDMI signal detection

2017-11-29 Thread Maciej Purski
The vendor code waits for infoframe to detect video mode set by source. We do not need to follow this pattern, because video mode information is provided by drm core. As a result most of the infoframe handling code can be removed. Start transmission immediately after detecting stream on HDMI lines

Re: [PATCH] mfd: cros ec: spi: Fix "in progress" error signaling

2017-11-29 Thread Jon Hunter
Hi Lee, On 14/11/17 17:00, Shawn N wrote: > On Wed, Sep 27, 2017 at 3:19 PM, Brian Norris > wrote: >> On Wed, Sep 27, 2017 at 02:35:27PM -0700, Shawn Nematbakhsh wrote: >>> For host commands that take a long time to process, cros ec can return >>> early by signaling a EC_RES_IN_PROGRESS result.

Re: [PATCH] net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit

2017-11-29 Thread Michal Simek
On 29.11.2017 11:01, Geert Uytterhoeven wrote: > On 64-bit (e.g. powerpc64/allmodconfig): > > drivers/net/ethernet/xilinx/ll_temac_main.c: In function > 'temac_start_xmit_done': > drivers/net/ethernet/xilinx/ll_temac_main.c:633:22: warning: cast to > pointer from integer of different siz

Re: [PATCH v2 19/35] nds32: L2 cache support

2017-11-29 Thread Greentime Hu
Hi, Arnd: 2017-11-27 22:33 GMT+08:00 Arnd Bergmann : > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: >> + >> +#define L2C_R_REG(offset) __raw_readl(atl2c_base + offset) >> +#define L2C_W_REG(offset, value)__raw_writel(value, atl2c_base + >> offset) > > __raw_readl()

Re: [PATCH V11 2/5] vsprintf: refactor %pK code out of pointer()

2017-11-29 Thread Steven Rostedt
On Wed, 29 Nov 2017 15:27:46 +1100 "Tobin C. Harding" wrote: > On Tue, Nov 28, 2017 at 09:39:57PM -0500, Steven Rostedt wrote: > > On Wed, 29 Nov 2017 13:05:02 +1100 > > "Tobin C. Harding" wrote: > > > > > + /* > > > + * kptr_restrict==1 cannot be used in IRQ context > > > +

Re: [PATCH v2] fs: handle shrinker registration failure in sget_userns

2017-11-29 Thread Michal Hocko
On Thu 23-11-17 14:55:40, Al Viro wrote: > On Thu, Nov 23, 2017 at 03:35:37PM +0100, Michal Hocko wrote: > > Hopefully less screwed version. But as I've said I am not really > > familiar with the code and do not feel competent to change it so please > > be very careful here. I've moved the shrinke

Re: [PATCH] sched/topology: Set SD_PREFER_SIBLING consistently on non-NUMA levels

2017-11-29 Thread Morten Rasmussen
On Wed, Nov 29, 2017 at 10:24:57AM +0100, Vincent Guittot wrote: > Hi Morten, > > On 27 November 2017 at 18:29, Morten Rasmussen > wrote: > > SD_PREFER_SIBLING adds an additional bias towards spreading tasks on the > > _parent_ sched_domain even if a sched_group isn't overloaded. It is > > curren

Re: [PATCH] f2fs: avoid false positive of free secs check

2017-11-29 Thread Chao Yu
On 2017/11/27 14:54, Yunlong Song wrote: > Sometimes f2fs_gc is called with no target victim (e.g. xfstest > generic/027, ndirty_node:545 ndiry_dent:1 ndirty_imeta:513 rsvd_segs:21 > free_segs:27, has_not_enough_free_secs will return true). This patch > first merges pages and then converts into sec

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 12:39 PM, Greentime Hu wrote: > 2017-11-29 17:25 GMT+08:00 Arnd Bergmann : >> On Wed, Nov 29, 2017 at 10:10 AM, Geert Uytterhoeven >> wrote: >>> Hi Arnd, >>> >>> On Wed, Nov 29, 2017 at 9:58 AM, Arnd Bergmann wrote: On Wed, Nov 29, 2017 at 9:39 AM, Greentime Hu wrot

Re: [PATCH] sched/topology: Set SD_PREFER_SIBLING consistently on non-NUMA levels

2017-11-29 Thread Morten Rasmussen
[Resent without the disclaimer at the bottom. Sorry!] On Wed, Nov 29, 2017 at 10:24:57AM +0100, Vincent Guittot wrote: > Hi Morten, > > On 27 November 2017 at 18:29, Morten Rasmussen > wrote: > > SD_PREFER_SIBLING adds an additional bias towards spreading tasks on the > > _parent_ sched_domain e

Re: general protection fault in lockdep_invariant_state (2)

2017-11-29 Thread Dmitry Vyukov
On Mon, Nov 20, 2017 at 2:28 PM, Dmitry Vyukov wrote: >>> > R13: 00402260 R14: 004022f0 R15: >>> > kasan: CONFIG_KASAN_INLINE enabled >>> > kasan: GPF could be caused by NULL-ptr deref or user memory access >>> > general protection fault: [#1] SMP KASAN >>> >

Re: [PATCH] x86/numa: move setting parse numa node to num_add_memblk

2017-11-29 Thread Michal Hocko
On Wed 29-11-17 17:13:27, zhong jiang wrote: > Currently, Arm64 and x86 use the common code wehn parsing numa node > in a acpi way. The arm64 will set the parsed node in numa_add_memblk, > but the x86 is not set in that , then it will result in the repeatly > setting. And the parsed node maybe is

Re: [Ocfs2-devel] [PATCH v2 1/3] ocfs2: add ocfs2_try_rw_lock and ocfs2_try_inode_lock

2017-11-29 Thread Changwei Ge
On 2017/11/29 16:38, Gang He wrote: > Add ocfs2_try_rw_lock and ocfs2_try_inode_lock functions, which > will be used in non-block IO scenarios. > > Signed-off-by: Gang He > --- > fs/ocfs2/dlmglue.c | 21 + > fs/ocfs2/dlmglue.h | 4 > 2 files changed, 25 insertions(+)

Re: [Ocfs2-devel] [PATCH v2 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-29 Thread Changwei Ge
It looks fine to me. On 2017/11/29 16:39, Gang He wrote: > Add ocfs2_overwrite_io function, which is used to judge if > overwrite allocated blocks, otherwise, the write will bring extra > block allocation overhead. > > Signed-off-by: Gang He Reviewed-by: Changwei Ge > --- > fs/ocfs2/extent_m

Re: [PATCH] mfd: cros ec: spi: Fix "in progress" error signaling

2017-11-29 Thread Lee Jones
On Wed, 27 Sep 2017, Shawn Nematbakhsh wrote: > For host commands that take a long time to process, cros ec can return > early by signaling a EC_RES_IN_PROGRESS result. The host must then poll > status with EC_CMD_GET_COMMS_STATUS until completion of the command. > > None of the above applies whe

Re: ftrace/module: Move ftrace_release_mod() to ddebug_cleanup label

2017-11-29 Thread Steven Rostedt
On Wed, 29 Nov 2017 05:36:35 + NAMIT GUPTA wrote: > ping > Thanks for the ping. I should have sent a note that I see your email. I'm just a bit backed up in other patches, I haven't gotten to it yet. I should get to it this week, if not, ping me again next week. -- Steve

Re: [PATCH 3/3] arm64: use -mno-implicit-float instead of -mgeneral-regs-only

2017-11-29 Thread Ard Biesheuvel
On 29 November 2017 at 00:00, Sami Tolvanen wrote: > From: Greg Hackmann > > LLVM bug 30792 causes clang's AArch64 backend to crash compiling > arch/arm64/crypto/aes-ce-cipher.c. Replacing -mgeneral-regs-only with > -mno-implicit-float is the suggested workaround. > Do we still need these patch

Re: [PATCH] trace/xdp: fix compile warning: ‘struct bpf_map’ declared inside parameter list

2017-11-29 Thread Steven Rostedt
On Wed, 29 Nov 2017 16:35:01 +0800 Xie XiuQi wrote: > We meet this compile warning, which caused by missing bpf.h in xdp.h. > > In file included from ./include/trace/events/xdp.h:10:0, > from ./include/linux/bpf_trace.h:6, > from drivers/net/ethernet/intel/i40e/

Re: [PATCH 1/2] mm: NUMA stats code cleanup and enhancement

2017-11-29 Thread Michal Hocko
On Tue 28-11-17 14:00:23, Kemi Wang wrote: > The existed implementation of NUMA counters is per logical CPU along with > zone->vm_numa_stat[] separated by zone, plus a global numa counter array > vm_numa_stat[]. However, unlike the other vmstat counters, numa stats don't > effect system's decision

Re: [PATCH v2] crypto: AF_ALG - race-free access of encryption flag

2017-11-29 Thread Herbert Xu
On Wed, Nov 29, 2017 at 12:05:13PM +0100, Stephan Müller wrote: > > Shouldn't we then create a patch for the pre-4.14 algif_skcipher code that > moves the wait out of the while loop to the beginning of the function in > recvmsg? When I said dead-lock I just meant that the recvmsg will block inde

Re: [PATCH 10/10] gpu: host1x: Optionally block when acquiring channel

2017-11-29 Thread Dmitry Osipenko
On 29.11.2017 12:10, Mikko Perttunen wrote: > On 12.11.2017 13:23, Dmitry Osipenko wrote: >> On 11.11.2017 00:15, Dmitry Osipenko wrote: >>> On 07.11.2017 18:29, Dmitry Osipenko wrote: On 07.11.2017 16:11, Mikko Perttunen wrote: > On 05.11.2017 19:14, Dmitry Osipenko wrote: >> On 05.11

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

2017-11-29 Thread Stephen Rothwell
Hi Christian, On Wed, 29 Nov 2017 09:44:44 +0100 Christian Gromm wrote: > > Hmm, am I missing something here? I have it in. > Here are copies of the patches in question and both have > a "Signed-off-by" line in. According to the From: line in the body of these emails, the author of this patch i

Re: [PATCH 10/10] gpu: host1x: Optionally block when acquiring channel

2017-11-29 Thread Mikko Perttunen
On 29.11.2017 14:18, Dmitry Osipenko wrote: On 29.11.2017 12:10, Mikko Perttunen wrote: On 12.11.2017 13:23, Dmitry Osipenko wrote: On 11.11.2017 00:15, Dmitry Osipenko wrote: On 07.11.2017 18:29, Dmitry Osipenko wrote: On 07.11.2017 16:11, Mikko Perttunen wrote: On 05.11.2017 19:14, Dmitry

Re: [PATCH] x86/kexec: Exclude GART aperture from vmcore

2017-11-29 Thread Jiri Bohac
On Wed, Nov 29, 2017 at 10:43:07AM +0800, Baoquan He wrote: > On 11/28/17 at 10:58pm, Jiri Bohac wrote: > > On Sun, Nov 12, 2017 at 04:04:26PM +0800, Baoquan He wrote: > > > Solution: > > > 1) Remove the code which support GART IOMMU when it's not enabled in > > > BIOS. This has been done in the ne

Re: [PATCH] [RFC v3] packet: experimental support for 64-bit timestamps

2017-11-29 Thread Arnd Bergmann
On Tue, Nov 28, 2017 at 11:28 PM, Willem de Bruijn wrote: > On Tue, Nov 28, 2017 at 3:32 PM, Arnd Bergmann wrote: >> As I noticed in my previous patch to remove the 'timespec' usage in >> the packet socket, the timestamps in the packet socket are slightly >> inefficient as they convert a nanoseco

Re: [PATCH] HID: input: do not increment usages when a duplicate is found

2017-11-29 Thread Benjamin Tissoires
On Nov 23 2017 or thereabouts, Benjamin Tissoires wrote: > This is something that bothered us from a long time. When hid-input > doesn't know how to map a usage, it uses *_MISC. But there is something > else which increments the usage if the evdev code is already used. > > This leads to few issues

Re: [PATCH 4/6] x86/mm/kaiser: Support PCID without INVPCID

2017-11-29 Thread Peter Zijlstra
On Wed, Nov 29, 2017 at 11:33:05AM +0100, Peter Zijlstra wrote: > @@ -220,7 +215,27 @@ For 32-bit we have the following convent > .macro SWITCH_TO_USER_CR3 scratch_reg:req > STATIC_JUMP_IF_FALSE .Lend_\@, kaiser_enabled_key, def=1 > mov %cr3, \scratch_reg > - ADJUST_USER_CR3 \s

Re: [PATCH] perf annotate: Fix unnecessary memory allocation for s390x

2017-11-29 Thread Ravi Bangoria
On 11/24/2017 03:16 PM, Thomas Richter wrote: > This patch fixes a bug introduced with commit d9f8dfa9baf9 > ("perf annotate s390: Implement jump types for perf annotate"). > > Perf annotate displays annotated assembler output by reading > output of command objdump and parsing the disassembled li

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

2017-11-29 Thread Stephen Rothwell
Hi all, On Wed, 29 Nov 2017 23:24:46 +1100 Stephen Rothwell wrote: > > On Wed, 29 Nov 2017 09:44:44 +0100 Christian Gromm > wrote: > > > > Hmm, am I missing something here? I have it in. > > Here are copies of the patches in question and both have > > a "Signed-off-by" line in. > > Accordin

Re: [PATCH 10/10] gpu: host1x: Optionally block when acquiring channel

2017-11-29 Thread Dmitry Osipenko
On 29.11.2017 15:25, Mikko Perttunen wrote: > On 29.11.2017 14:18, Dmitry Osipenko wrote: >> On 29.11.2017 12:10, Mikko Perttunen wrote: >>> On 12.11.2017 13:23, Dmitry Osipenko wrote: On 11.11.2017 00:15, Dmitry Osipenko wrote: > On 07.11.2017 18:29, Dmitry Osipenko wrote: >> On 07.11

[PATCH] refcount_t: documentation for memory ordering differences

2017-11-29 Thread Elena Reshetova
Some functions from refcount_t API provide different memory ordering guarantees that their atomic counterparts. This adds a document outlining these differences. Signed-off-by: Elena Reshetova --- Documentation/core-api/index.rst | 1 + Documentation/core-api/refcount-vs-atomic.rs

Re: [PATCH] pinctrl: intel: Initialize GPIO properly when used through irqchip

2017-11-29 Thread Linus Walleij
On Mon, Nov 20, 2017 at 4:19 PM, Mika Westerberg wrote: > When a GPIO is requested using gpiod_get_* APIs the intel pinctrl driver > switches the pin to GPIO mode and makes sure interrupts are routed to > the GPIO hardware instead of IOAPIC. However, if the GPIO is used > directly through irqchip

[PATCH v3] refcount_t vs. atomic_t ordering differences

2017-11-29 Thread Elena Reshetova
Changes in v3: - fixes from Kees incorporated apart from concrete examples for practical cases. - document converted to rst and linked under core-api Changes in v2: - typos and english are fixed based on Randy Dunlap's proof reading - structure of document improved: * definition

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Jarkko Nikula
On 11/29/2017 11:28 AM, Thomas Gleixner wrote: On Wed, 29 Nov 2017, Jarkko Nikula wrote: On 11/29/2017 09:09 AM, Ingo Molnar wrote: Hm, that commit looks broken with irq-tracing enabled. Does the patch below fix it? No, it makes the machine not to boot at all :-( Log below when I used my co

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

2017-11-29 Thread Christian Gromm
On 29.11.2017 13:24, Stephen Rothwell wrote: Hi Christian, On Wed, 29 Nov 2017 09:44:44 +0100 Christian Gromm wrote: Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in. According to the From: line in the body o

Re: [PATCH] x86/numa: move setting parse numa node to num_add_memblk

2017-11-29 Thread zhong jiang
On 2017/11/29 20:03, Michal Hocko wrote: > On Wed 29-11-17 17:13:27, zhong jiang wrote: >> Currently, Arm64 and x86 use the common code wehn parsing numa node >> in a acpi way. The arm64 will set the parsed node in numa_add_memblk, >> but the x86 is not set in that , then it will result in the repe

Re: [PATCH 1/3] gpio / ACPI: Drop unnecessary ACPI GPIO to Linux GPIO translation

2017-11-29 Thread Linus Walleij
On Mon, Nov 27, 2017 at 2:54 PM, Mika Westerberg wrote: > We added acpi_gpiochip_pin_to_gpio_offset() because there was a need to > translate from ACPI GpioIo/GpioInt number to Linux GPIO number in the > Cherryview pinctrl driver. This translation is necessary because > Cherryview has gaps in the

[GIT PULL] arch/microblaze changes for 4.15-rc2

2017-11-29 Thread Michal Simek
Hi Linus, please pull this one patch to your tree. Thanks, Michal The following changes since commit 0b07194bb55ed836c2cc7c22e866b87a14681984: Linux 4.14-rc7 (2017-10-29 13:58:38 -0700) are available in the git repository at: git://git.monstr.eu/linux-2.6-microblaze.git tags/microblaze-4.

Re: [PATCH 2/3] pinctrl: intel: Allow custom GPIO base for pad groups

2017-11-29 Thread Linus Walleij
On Mon, Nov 27, 2017 at 2:54 PM, Mika Westerberg wrote: > Currently we always have direct mapping between GPIO numbers and the > hardware pin numbers. However, there are cases where that's not the case > anymore (more about this in the next patch). Instead we need to be able > to specify custom G

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Peter Zijlstra
On Wed, Nov 29, 2017 at 08:09:51AM +0100, Ingo Molnar wrote: > diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S > index f81d50d7ceac..c0b52df8ee4f 100644 > --- a/arch/x86/entry/entry_64.S > +++ b/arch/x86/entry/entry_64.S > @@ -945,16 +945,16 @@ idtentry simd_coprocessor_error

Re: [PATCH 08/11] trace-cmd: Making start,extract,stream,profile separate funcs

2017-11-29 Thread Steven Rostedt
On Wed, 29 Nov 2017 12:03:14 +0200 Vladislav Valtchev wrote: > On Tue, 2017-11-28 at 14:35 -0500, Steven Rostedt wrote: > > > > Yes. Simply because we lost the fact that we can do it better. > > > > Hi Steven, > of course we can do better, if we make a step further than just > a mechanical r

Re: [PATCH v2 0/6] ARM: ep93xx: ts72xx: Add support for BK3 board

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 10:45 AM, Lukasz Majewski wrote: > Dear All, > >> This patch series adds support for Liebherr's BK3 board, being >> a derivative of TS72XX design. >> >> This patchset consists of following patches: >> >> - ts72xx.[c|h] cosmetic cleanup/improvement >> - Rewrite ts72xx.c to b

[RESEND PATCH v2 03/14] tee: shm: add accessors for buffer size and page offset

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk These two function will be needed for shared memory registration in OP-TEE Signed-off-by: Volodymyr Babchuk --- include/linux/tee_drv.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 70b9

[RESEND PATCH v2 07/14] tee: optee: add shared buffer registration functions

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk This change adds ops for shm_(un)register functions in tee interface. Client application can use these functions to (un)register an own shared buffer in OP-TEE address space. This allows zero copy data sharing between Normal and Secure Worlds. Please note that while those

[RESEND PATCH v2 04/14] tee: shm: add page accessor functions

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk In order to register a shared buffer in TEE, we need accessor function that return list of pages for that buffer. Signed-off-by: Volodymyr Babchuk --- include/linux/tee_drv.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/tee_drv.h b/in

Re: [PATCH 0/3] pinctrl: Align Cannon Lake GPIO number space with Windows

2017-11-29 Thread Linus Walleij
On Mon, Nov 27, 2017 at 2:54 PM, Mika Westerberg wrote: > It turns out that the Cannon Lake GPIO driver in Windows uses different > GPIO numbering scheme than what Linux uses. Instead of hardware numbers it > has "banks" of 32 pins even if the hardware group actually does not have > that many pin

[RESEND PATCH v2 08/14] tee: optee: add registered shared parameters handling

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk Now, when client applications can register own shared buffers in OP-TEE, we need to extend ABI for parameter passing to/from OP-TEE. So, if OP-TEE core detects that parameter belongs to registered shared memory, it will use corresponding parameter attribute. Signed-off-b

[RESEND PATCH v2 12/14] tee: optee: enable dynamic SHM support

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk Previous patches added various features that are needed for dynamic SHM. Dynamic SHM allows Normal World to share any buffers with OP-TEE. While original design suggested to use pre-allocated region (usually of 1M to 2M of size), this new approach allows to use all non-sec

[RESEND PATCH v2 05/14] tee: optee: Update protocol definitions

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk There were changes in REE<->OP-TEE ABI recently. Now ABI allows us to pass non-contiguous memory buffers as list of pages to OP-TEE. This can be achieved by using new parameter attribute OPTEE_MSG_ATTR_NONCONTIG. OP-TEE also is able to use all non-secure RAM for shared bu

[RESEND PATCH v2 10/14] tee: optee: store OP-TEE capabilities in private data

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk Those capabilities will be used in subsequent patches. Signed-off-by: Volodymyr Babchuk --- drivers/tee/optee/core.c | 1 + drivers/tee/optee/optee_private.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/co

[RESEND PATCH v2 13/14] tee: use reference counting for tee_context

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk We need to ensure that tee_context is present until last shared buffer will be freed. Signed-off-by: Volodymyr Babchuk --- drivers/tee/tee_core.c| 40 +++- drivers/tee/tee_private.h | 3 +++ drivers/tee/tee_shm.c | 7 +++

[RESEND PATCH v2 14/14] tee: shm: inline tee_shm_get_id()

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk Now, when struct tee_shm is defined in public header, we can inline small getter functions like this one. Signed-off-by: Volodymyr Babchuk --- drivers/tee/tee_shm.c | 11 --- include/linux/tee_drv.h | 5 - 2 files changed, 4 insertions(+), 12 deletions(-)

[RESEND PATCH v2 11/14] tee: optee: add optee-specific shared pool implementation

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk This is simple pool that uses kernel page allocator. This pool can be used in case OP-TEE supports dynamic shared memory. Signed-off-by: Volodymyr Babchuk --- drivers/tee/optee/Makefile | 1 + drivers/tee/optee/shm_pool.c | 75

[RESEND PATCH v2 09/14] tee: optee: add registered buffers handling into RPC calls

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk With latest changes to OP-TEE we can use any buffers as a shared memory. Thus, it is possible for supplicant to provide part of own memory when OP-TEE asks to allocate a shared buffer. This patch adds support for such feature into RPC handling code. Now when OP-TEE asks s

Re: [PATCH 1/3] pinctrl: mcp23s08: Improve unlocking of a mutex in mcp23s08_irq()

2017-11-29 Thread Linus Walleij
On Mon, Oct 30, 2017 at 4:46 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 30 Oct 2017 16:03:12 +0100 > > * Add a jump target so that a call of the function "mutex_unlock" is stored > only twice in this function implementation. > > * Replace five calls by goto statements. >

[RESEND PATCH v2 06/14] tee: optee: add page list manipulation functions

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk These functions will be used to pass information about shared buffers to OP-TEE. ABI between Linux and OP-TEE is defined in optee_msg.h and optee_smc.h. optee_msg.h defines OPTEE_MSG_ATTR_NONCONTIG attribute for shared memory references and describes how such references s

[RESEND PATCH v2 01/14] tee: flexible shared memory pool creation

2017-11-29 Thread Volodymyr Babchuk
From: Jens Wiklander Makes creation of shm pools more flexible by adding new more primitive functions to allocate a shm pool. This makes it easier to add driver specific shm pool management. Signed-off-by: Jens Wiklander Signed-off-by: Volodymyr Babchuk --- drivers/tee/tee_private.h | 57 +-

[RESEND PATCH v2 02/14] tee: add register user memory

2017-11-29 Thread Volodymyr Babchuk
From: Jens Wiklander Added new ioctl to allow users register own buffers as a shared memory. Signed-off-by: Jens Wiklander Signed-off-by: Volodymyr Babchuk --- drivers/tee/tee_core.c | 41 +- drivers/tee/tee_shm.c| 205 +-- include/li

[RESEND PATCH v2 00/14] tee: optee: add dynamic shared memory support

2017-11-29 Thread Volodymyr Babchuk
From: Volodymyr Babchuk Hello all, This is resend of OP-TEE dynamic SHM series. No changes from last time. Correct version is used in the subject. --- Changes from v1: * Added support for 16K and 64K pages. Elaborated commit messages * More minor changes are described in corresponding patch

Re: [PATCH] mm, compaction: direct freepage allocation for async direct compaction

2017-11-29 Thread Vlastimil Babka
On 11/29/2017 12:34 AM, Andrew Morton wrote: > On Wed, 22 Nov 2017 15:52:55 +0100 Vlastimil Babka wrote: > >> >> Thanks a lot, that's very encouraging! > > Yup. > > Should we proceed with this patch for now, or wait for something better > to come along? I'm working on the refined version, so w

Re: [PATCH resend v2 0/3] virt: Add vboxguest driver for Virtual Box Guest integration

2017-11-29 Thread Hans de Goede
Hi, On 28-11-17 17:15, Larry Finger wrote: On 11/28/2017 04:01 AM, Hans de Goede wrote: Hi, I did have two problems when I tried to build these commits and the one that creates vboxsf. The more serious one is that it is possible to build vboxguest without vboxvideo. When that happens, a

Re: [PATCH 2/3] pinctrl: mcp23s08: Use common error handling code in mcp23s08_dbg_show()

2017-11-29 Thread Linus Walleij
On Mon, Oct 30, 2017 at 4:47 PM, SF Markus Elfring wrote: > + if (t) > + goto report_failure; > > for (t = 0, mask = BIT(0); t < chip->ngpio; t++, mask <<= 1) { > const char *label; > @@ -758,8 +753,13 @@ static void mcp23s08_dbg_show(struct seq_file *s

Re: [PATCH 3/3] pinctrl: mcp23s08: Combine two function calls in mcp23s08_dbg_show()

2017-11-29 Thread Linus Walleij
On Mon, Oct 30, 2017 at 4:49 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 30 Oct 2017 16:34:44 +0100 > > * Print a line break together with other data in a single function call. > > * Adjust indentation. > > Signed-off-by: Markus Elfring This does not apply. Possibly depend

Re: [PATCH 3/3] trace-cmd: Making stat to report when the stack tracer is ON

2017-11-29 Thread Steven Rostedt
On Thu, 23 Nov 2017 14:32:32 +0200 Vladislav Valtchev wrote: > Agree. > We might also add an if (!isdigit(buf)) die() before return, but I understand > that, on the other side, we might not need to check the kernel's behavior > this way. We might ultimately trust the kernel [every part of it] and

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