Re: [PATCH net-next v7 13/17] ethtool: add standard notification handler

2019-10-10 Thread Michal Kubecek
On Friday, 11 October 2019 7:56 Jiri Pirko wrote: > Thu, Oct 10, 2019 at 08:17:43PM CEST, mkube...@suse.cz wrote: > >On Thu, Oct 10, 2019 at 05:25:59PM +0200, Jiri Pirko wrote: > >> Wed, Oct 09, 2019 at 10:59:40PM CEST, mkube...@suse.cz wrote: > [...] > > >> >+ > >> >+/* generic notification

Re: [RESEND PATCH] ARM/hw_breakpoint: add ARMv8.1/ARMv8.2 debug architecutre versions support in enable_monitor_mode()

2019-10-10 Thread Candle Sun
Will, Is the patch useful for you? Would you please give me some suggestions? Thank you. Regards, Candle On Tue, Oct 8, 2019 at 3:20 PM Candle Sun wrote: > > Hi Will, > Sorry for not instant respond. > > > On Mon, Sep 30, 2019 at 11:34 PM Will Deacon wrote: > > > > On Thu, Sep 26, 2019 at

Re: [PATCH net-next v7 13/17] ethtool: add standard notification handler

2019-10-10 Thread Jiri Pirko
Thu, Oct 10, 2019 at 08:17:43PM CEST, mkube...@suse.cz wrote: >On Thu, Oct 10, 2019 at 05:25:59PM +0200, Jiri Pirko wrote: >> Wed, Oct 09, 2019 at 10:59:40PM CEST, mkube...@suse.cz wrote: [...] >> >+ >> >+/* generic notification handler */ >> >+static void ethnl_std_notify(struct net_device

Re: [RFC PATCH net] net: phy: Fix "link partner" information disappear issue

2019-10-10 Thread Yonglong Liu
On 2019/10/11 3:17, Heiner Kallweit wrote: > On 10.10.2019 11:30, Yonglong Liu wrote: >> Some drivers just call phy_ethtool_ksettings_set() to set the >> links, for those phy drivers that use genphy_read_status(), if >> autoneg is on, and the link is up, than execute "ethtool -s >> ethx autoneg

[PATCH 3/5] KPC2000: kpc2000_spi.c: Fix style issues (misaligned brace)

2019-10-10 Thread Chandra Annamaneni
Resolved: ERROR: else should follow close brace '}' Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index

[PATCH 4/5] KPC2000: kpc2000_spi.c: Fix style issues (alignment)

2019-10-10 Thread Chandra Annamaneni
Resolved: "CHECK: Alignment should match open parenthesis" from checkpatch Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c

Re: [PATCH v6 05/12] x86/efi: EFI soft reservation to E820 enumeration

2019-10-10 Thread Ard Biesheuvel
On Fri, 11 Oct 2019 at 04:39, Dan Williams wrote: > > On Thu, Oct 10, 2019 at 11:41 AM Ard Biesheuvel > wrote: > > > > On Thu, 10 Oct 2019 at 20:31, Dan Williams wrote: > > > > > > On Wed, Oct 9, 2019 at 11:45 PM Ard Biesheuvel > > > wrote: > > > > > > > > On Thu, 10 Oct 2019 at 01:19, Dan

Re: [PATCH 11/36] ARM: s5pv210: split from plat-samsung

2019-10-10 Thread Uwe Kleine-König
On Thu, Oct 10, 2019 at 10:29:55PM +0200, Arnd Bergmann wrote: > These can be build completely independently, so split > the two Kconfig symbols. > > Signed-off-by: Arnd Bergmann I'd mention the two symbols' names you're working on in the commit log. I guess it's about PLAT_SAMSUNG and

[PATCH 5/5] KPC2000: kpc2000_spi.c: Fix style issues (Unnecessary parenthesis)

2019-10-10 Thread Chandra Annamaneni
Resolved: CHECK: Unnecessary parentheses around table[i] Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index

[PATCH 2/5] KPC2000: kpc2000_spi.c: Fix style issues (missing blank line)

2019-10-10 Thread Chandra Annamaneni
Resolved: "CHECK: Please use a blank line after.." from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index

[PATCH 1/5] KPC2000: kpc2000_spi.c: Fix style issues (line length)

2019-10-10 Thread Chandra Annamaneni
Resoved: "WARNING: line over 80 characters" from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c

Re: [PATCH v2 2/3] usb: chipidea: set mode for usb phy driver

2019-10-10 Thread Peter Chen
On 19-10-10 16:56:55, Igor Opaniuk wrote: > From: Li Jun > > After enters one specific role, notify usb phy driver. > > Signed-off-by: Li Jun > Signed-off-by: Igor Opaniuk > --- > > v2: > - restored original commit author > - fixed build for multi_v7 > > drivers/usb/chipidea/ci.h | 21

Relax CPU features sanity checking on heterogeneous architectures

2019-10-10 Thread Sai Prakash Ranjan
On latest QCOM SoCs like SM8150 and SC7180 with big.LITTLE arch, below warnings are observed during bootup of big cpu cores. SM8150: [0.271177] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64PFR0_EL1. Boot CPU: 0x00, CPU4: 0x001112 [0.271184] CPU

Re: [PATCH v3] bcache: fix deadlock in bcache_allocator

2019-10-10 Thread Coly Li
On 2019/10/10 11:21 下午, Andrea Righi wrote: > On Wed, Aug 07, 2019 at 09:53:46PM +0800, Coly Li wrote: >> On 2019/8/7 6:38 下午, Andrea Righi wrote: >>> bcache_allocator can call the following: >>> >>> bch_allocator_thread() >>> -> bch_prio_write() >>> -> bch_bucket_alloc() >>> ->

Re: Potential NULL pointer deference in spi

2019-10-10 Thread Yizhuo Zhai
Hi Eric: My apologies for bothering, we got those report via static analysis and haven't got a good method to verify the path to trigger them. Therefore I sent those email to you maintainers first since you know much better about the details. Sorry again for your time and I take your suggestions.

[PATCH -next] soc: ti: omap-prm: fix return value check in omap_prm_probe()

2019-10-10 Thread Wei Yongjun
In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 3e99cb214f03 ("soc: ti: add initial PRM driver with reset control support") Signed-off-by: Wei Yongjun ---

Re: [Patch v3 1/2] mm/rmap.c: don't reuse anon_vma if we just want a copy

2019-10-10 Thread Wei Yang
On Fri, Oct 11, 2019 at 10:58:40AM +0800, Wei Yang wrote: >Before commit 7a3ef208e662 ("mm: prevent endless growth of anon_vma >hierarchy"), anon_vma_clone() doesn't change dst->anon_vma. While after >this commit, anon_vma_clone() will try to reuse an exist one on forking. > >But this commit go a

Re: [PATCH v8 1/5] kasan: support backing vmalloc space with real shadow memory

2019-10-10 Thread Daniel Axtens
Hi Uladzislau, > Looking at it one more, i think above part of code is a bit wrong > and should be separated from merge_or_add_vmap_area() logic. The > reason is to keep it simple and do only what it is supposed to do: > merging or adding. > > Also the kasan_release_vmalloc() gets called twice

Re: string.h: Mark 34 functions with __must_check

2019-10-10 Thread Markus Elfring
> +our $PositionalAttribute = qr{ > + __must_check| > + __printf| I suggest to put all key words which share the leading underscores into another alternation for an improved regular expression. Regards, Markus

[PATCH] perf stat: Support --all-kernel/--all-user

2019-10-10 Thread Jin Yao
perf record has supported --all-kernel / --all-user to configure all used events to run in kernel space or run in user space. But perf stat doesn't support these options. It would be useful to support these options in perf-stat too to keep the same semantics. Signed-off-by: Jin Yao ---

[git pull] drm fixes for 5.4-rc3

2019-10-10 Thread Dave Airlie
Hey Linus, The regular fixes pull for rc3. The i915 team found some fixes they (or I) missed for rc1, which is why this is a bit bigger than usual, otherwise there is a single amdgpu fix, some spi panel aliases, and a bridge fix. drm-fixes-2019-10-11: drm fixes for 5.4-rc3 i915: - execlist

Re: [PATCH] usb: mtk-xhci: Set the XHCI_NO_64BIT_SUPPORT quirk

2019-10-10 Thread Tomasz Figa
On Thu, Oct 10, 2019 at 7:59 PM Chunfeng Yun wrote: > > On Thu, 2019-10-10 at 18:00 +0900, Tomasz Figa wrote: > > Hi Chunfeng, > > > > On Thu, Oct 10, 2019 at 5:45 PM Chunfeng Yun > > wrote: > > > > > > Hi, Tomasz, > > > > > > On Thu, 2019-10-10 at 16:50 +0900, Tomasz Figa wrote: > > > >

Re: [PATCH 4.14 17/61] MIPS: Treat Loongson Extensions as ASEs

2019-10-10 Thread Greg Kroah-Hartman
On Thu, Oct 10, 2019 at 10:36:42AM +0200, Greg Kroah-Hartman wrote: > From: Jiaxun Yang > > commit d2f965549006acb865c4638f1f030ebcefdc71f6 upstream. > > Recently, binutils had split Loongson-3 Extensions into four ASEs: > MMI, CAM, EXT, EXT2. This patch do the samething in kernel and expose >

Re: [PATCH 4.14 00/61] 4.14.149-stable review

2019-10-10 Thread Greg Kroah-Hartman
On Thu, Oct 10, 2019 at 10:12:26AM -0700, Guenter Roeck wrote: > On 10/10/19 1:36 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.149 release. > > There are 61 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH] staging: wfx: fix an undefined reference error when CONFIG_MMC=m

2019-10-10 Thread Greg KH
On Fri, Oct 11, 2019 at 11:02:19AM +0800, zhong jiang wrote: > I hit the following error when compile the kernel. > > drivers/staging/wfx/main.o: In function `wfx_core_init': > /home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:488: > undefined reference to `sdio_register_driver' >

Good News

2019-10-10 Thread UK INTERNATIONAL DRAW HEADQUARTERS
Your email has won you 1,500,000.00 Great British Pounds. To file for your Claims,please Contact Claims Agent: Mr Garry White. E-mail: ( uknationallotto...@gmail.com ) Provide the information below: 1.Full Names: 2.Address:. 3.Sex and Age: 4.Country:.

linux-next: Fixes tag needs some work in the net tree

2019-10-10 Thread Stephen Rothwell
Hi all, In commit 2168da459404 ("net: update net_dim documentation after rename") Fixes tag Fixes: 8960b38932be ("linux/dim: Rename externally used net_dim members", 2019-06-25) has these problem(s): - Subject does not match target commit subject Just use git log -1

linux-next: Tree for Oct 11

2019-10-10 Thread Stephen Rothwell
Hi all, Changes since 20191010: Removed tree: renesas Renamed tree: rensess-geert to rensesas The tip tree gained a conflict against the net tree. Non-merge commits (relative to Linus' tree): 3634 3829 files changed, 122027 insertions(+), 62286 deletions

[PATCH 1/2] dt-bindings: media: i2c: Add IMX296 CMOS sensor binding

2019-10-10 Thread Manivannan Sadhasivam
Add devicetree binding for IMX296 CMOS image sensor. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/media/i2c/imx296.txt | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx296.txt diff --git

[PATCH 2/2] media: i2c: Add IMX296 CMOS image sensor driver

2019-10-10 Thread Manivannan Sadhasivam
Add driver for Sony IMX296 CMOS image sensor driver. The driver only supports I2C interface for programming and MIPI CSI-2 for sensor output. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS| 8 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 +

[PATCH 0/2] Add IMX296 CMOS image sensor support

2019-10-10 Thread Manivannan Sadhasivam
Hello, This patchset adds support for IMX296 CMOS image sensor from Sony. Sensor can be programmed through I2C and 4-wire interface but the current driver only supports I2C interface. The sensor is capable of outputting frames in CSI2 format (1 Lane). In the case of sensor resolution, driver only

Re: [PATCH] usercopy: Avoid soft lockups in test_check_nonzero_user()

2019-10-10 Thread Aleksa Sarai
On 2019-10-11, Michael Ellerman wrote: > On a machine with a 64K PAGE_SIZE, the nested for loops in > test_check_nonzero_user() can lead to soft lockups, eg: > > watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [modprobe:611] > Modules linked in: test_user_copy(+) vmx_crypto gf128mul

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-10-10 Thread Daniel Axtens
Marco Elver writes: > Hi Daniel, > > On Tue, 1 Oct 2019 at 16:50, Daniel Axtens wrote: >> >> Hi Marco, >> >> > We would like to share a new data-race detector for the Linux kernel: >> > Kernel Concurrency Sanitizer (KCSAN) -- >> > https://github.com/google/ktsan/wiki/KCSAN (Details: >> >

Re: [PATCH] xtensa: fix {get,put}_user() for 64bit values

2019-10-10 Thread Max Filippov
On Thu, Oct 10, 2019 at 7:29 AM Al Viro wrote: > Hmm... Looking at __get_user_size(), we have retval = 0; very early > in it. So I wonder if it should simply be > #define __get_user_size(x, ptr, size, retval) \ > do {

Re: checkpatch: comparisons with a constant on the left

2019-10-10 Thread Joe Perches
On Fri, 2019-10-11 at 10:52 +0900, Sergey Senozhatsky wrote: > Hi Joe, Hi Sergey. > I noticed that this code > > #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) > > triggers checkpatch's warning: > > "WARNING: Comparisons should place the constant on > the right

Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500

2019-10-10 Thread Benjamin Herrenschmidt
On Thu, 2019-10-10 at 19:15 +, Vijay Khemka wrote: > Any news on this ? AST2400 has no HW checksum logic in HW, AST2500 > should work for IPV4 fine, we should only selectively disable it for > IPV6. > > Ben, I have already sent v2 for this with requested change which only disable

Re: [PATCH 4.14 00/61] 4.14.149-stable review

2019-10-10 Thread shuah
On 10/10/19 2:36 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.149 release. There are 61 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

[PATCH] staging: wfx: fix an undefined reference error when CONFIG_MMC=m

2019-10-10 Thread zhong jiang
I hit the following error when compile the kernel. drivers/staging/wfx/main.o: In function `wfx_core_init': /home/z00352263/linux-next/linux-next/drivers/staging/wfx/main.c:488: undefined reference to `sdio_register_driver' drivers/staging/wfx/main.o: In function `wfx_core_exit':

Re: [PATCH 4.19 000/114] 4.19.79-stable review

2019-10-10 Thread shuah
On 10/10/19 2:35 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.79 release. There are 114 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 5.3 000/148] 5.3.6-stable review

2019-10-10 Thread shuah
On 10/10/19 2:34 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.3.6 release. There are 148 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[Patch v3 2/2] mm/rmap.c: reuse mergeable anon_vma as parent when fork

2019-10-10 Thread Wei Yang
In function __anon_vma_prepare(), we will try to find anon_vma if it is possible to reuse it. While on fork, the logic is different. Since commit 5beb49305251 ("mm: change anon_vma linking to fix multi-process server scalability issue"), function anon_vma_clone() tries to allocate new anon_vma

[Patch v3 1/2] mm/rmap.c: don't reuse anon_vma if we just want a copy

2019-10-10 Thread Wei Yang
Before commit 7a3ef208e662 ("mm: prevent endless growth of anon_vma hierarchy"), anon_vma_clone() doesn't change dst->anon_vma. While after this commit, anon_vma_clone() will try to reuse an exist one on forking. But this commit go a little bit further for the case not forking. anon_vma_clone()

[PATCH] csky: Initial stack protector support

2019-10-10 Thread Mao Han
This is a basic -fstack-protector support without per-task canary switching. The protector will report something like when stack corruption is detected: stack-protector: Kernel stack is corrupted in: sys_kill+0x23c/0x23c Tested with a local array overflow in kill system call. Signed-off-by: Mao

Re: [PATCH V9 2/2] arm64/mm: Enable memory hot remove

2019-10-10 Thread Anshuman Khandual
On 10/10/2019 05:04 PM, Catalin Marinas wrote: > Hi Anshuman, > > On Wed, Oct 09, 2019 at 01:51:48PM +0530, Anshuman Khandual wrote: >> +static void unmap_hotplug_pmd_range(pud_t *pudp, unsigned long addr, >> +unsigned long end, bool free_mapped) >> +{ >> +

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-10 Thread Jin, Yao
On 10/10/2019 8:33 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 10, 2019 at 04:33:57PM +0800, Jin, Yao escreveu: On 10/10/2019 4:00 PM, Jiri Olsa wrote: On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin, Yao wrote: On 10/1/2019 10:17 AM, Andi Kleen wrote: I think it's useful. Makes it

Re: [PATCH v2] HID: core: check whether usage page item is after usage id item

2019-10-10 Thread Candle Sun
On Thu, Oct 10, 2019 at 8:24 PM Benjamin Tissoires wrote: > > On Wed, Oct 9, 2019 at 2:54 PM Candle Sun wrote: > > > > From: Candle Sun > > > > Upstream commit 58e75155009c ("HID: core: move Usage Page concatenation > > to Main item") adds support for Usage Page item after Usage ID items > >

[PATCH] usercopy: Avoid soft lockups in test_check_nonzero_user()

2019-10-10 Thread Michael Ellerman
On a machine with a 64K PAGE_SIZE, the nested for loops in test_check_nonzero_user() can lead to soft lockups, eg: watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [modprobe:611] Modules linked in: test_user_copy(+) vmx_crypto gf128mul crc32c_vpmsum virtio_balloon ip_tables x_tables autofs4

[PATCH] perf report: Add warning when libunwind not compiled in

2019-10-10 Thread Jin Yao
We received a user report that call-graph dwarf mode was enabled in perf record but perf report didn't unwind the callstack correctly. The reason was, libunwind was not compiled in. We can use 'perf -vv' to check the compiled libraries but it would be valuable to report a warning to user directly

[PATCH v3] thermal: qoriq: add thermal monitor unit version 2 support

2019-10-10 Thread Yuantian Tang
Thermal Monitor Unit v2 is introduced on new Layscape SoC. Compared to v1, TMUv2 has a little different register layout and digital output is fairly linear. Signed-off-by: Yuantian Tang Reviewed-by: Anson Huang --- v3: - rebase to v5.4-rc1 drivers/thermal/qoriq_thermal.c | 120

Re: [PATCH v2] HID: core: check whether usage page item is after usage id item

2019-10-10 Thread Candle Sun
On Thu, Oct 10, 2019 at 8:17 PM Benjamin Tissoires wrote: > > On Thu, Oct 10, 2019 at 5:19 AM Candle Sun wrote: > > > > On Thu, Oct 10, 2019 at 2:00 AM Jiri Kosina wrote: > > > > > > On Wed, 9 Oct 2019, Nicolas Saenz Julienne wrote: > > > > > > > > diff --git a/drivers/hid/hid-core.c

checkpatch: comparisons with a constant on the left

2019-10-10 Thread Sergey Senozhatsky
Hi Joe, I noticed that this code #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) triggers checkpatch's warning: "WARNING: Comparisons should place the constant on the right side of the test" Both LINUX_VERSION_CODE and KERNEL_VERSION are constants, so I'm

Re: [PATCH v7 3/7] KVM: VMX: Pass through CET related MSRs to Guest

2019-10-10 Thread Yang Weijiang
On Thu, Oct 10, 2019 at 12:04:40PM -0700, Jim Mattson wrote: > On Tue, Oct 8, 2019 at 11:13 PM Yang Weijiang wrote: > > > > On Wed, Oct 02, 2019 at 11:18:32AM -0700, Jim Mattson wrote: > > > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang > > > wrote: > > > > > > > > CET MSRs pass through Guest

Re: [PATCH v7 4/7] KVM: VMX: Load Guest CET via VMCS when CET is enabled in Guest

2019-10-10 Thread Yang Weijiang
On Thu, Oct 10, 2019 at 04:44:17PM -0700, Jim Mattson wrote: > On Wed, Oct 9, 2019 at 6:28 PM Yang Weijiang wrote: > > > > On Wed, Oct 09, 2019 at 04:08:50PM -0700, Jim Mattson wrote: > > > On Tue, Oct 8, 2019 at 11:41 PM Yang Weijiang > > > wrote: > > > > > > > > On Wed, Oct 02, 2019 at

Re: [PATCH v2] xen: Stop abusing DT of_dma_configure API

2019-10-10 Thread Stefano Stabellini
On Tue, 8 Oct 2019, Rob Herring wrote: > As the removed comments say, these aren't DT based devices. > of_dma_configure() is going to stop allowing a NULL DT node and calling > it will no longer work. > > The comment is also now out of date as of commit 9ab91e7c5c51 ("arm64: > default to the

Re: [PATCH] extcon: sm5502: Reset registers during initialization

2019-10-10 Thread Chanwoo Choi
On 19. 10. 11. 오전 12:47, Stephan Gerhold wrote: > On some devices (e.g. Samsung Galaxy A5 (2015)), the bootloader > seems to keep interrupts enabled for SM5502 when booting Linux. > Changing the cable state (i.e. plugging in a cable) - until the driver > is loaded - will therefore produce an

[PATCHv7 02/33] time: Add timens_offsets to be used for tasks in timens

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Introduce offsets for time namespace. They will contain an adjustment needed to convert clocks to/from host's. A new namespace is created with the same offsets as the time namespace of the current process. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov

[PATCHv7 11/33] timerfd: Make timerfd_settime() time namespace aware

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin timerfd_settime() accepts an absolute value of the expiration time if TFD_TIMER_ABSTIME is specified. This value is in task's time namespace and has to be converted to the host's time namespace. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by:

[PATCHv7 31/33] selftests/timens: Add timer offsets test

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Check that timer_create() takes into account clock offsets. Output on success: 1..3 ok 1 clockid=7 ok 2 clockid=1 ok 3 clockid=9 # Pass 3 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 Output with lack of permissions: 1..3 not ok 1 # SKIP need to run as root Output without

[PATCHv7 07/33] posix-clocks: Introduce clock_get_ktime() callback

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin The callsite in common_timer_get() has already a comment: /* * The timespec64 based conversion is suboptimal, but it's not * worth to implement yet another callback. */ kc->clock_get(timr->it_clock, ); now = timespec64_to_ktime(ts64); The upcoming

[PATCHv7 18/33] lib/vdso: Add unlikely() hint into vdso_read_begin()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Place the branch with no concurrent write before contended case. Performance numbers for Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (more clock_gettime() cycles - the better): | before| after --- | 150252214 | 153242367

[PATCHv7 12/33] posix-timers: Make timer_settime() time namespace aware

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Wire timer_settime() syscall into time namespace virtualization. sys_timer_settime() calls the ktime->timer_set() callback. Right now, common_timer_set() is the only implementation for the callback. There user-supplied timer's value is converted from timespec64 to ktime and

[PATCHv7 20/33] x86/vdso: Provide vdso_data offset on vvar_page

2019-10-10 Thread Dmitry Safonov
VDSO support for Time namespace needs to set up a page with the same layout as VVAR. That timens page will be placed on position of VVAR page inside namespace. That page has vdso_data->seq set to 1 to enforce the slow path and vdso_data->clock_mode set to VCLOCK_TIMENS to enforce the time

[PATCHv7 15/33] posix-timers: Make clock_nanosleep() time namespace aware

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin clock_nanosleep() accepts absolute values of expiration time, if the TIMER_ABSTIME flag is set. This value is in the task time namespace, which has to be converted to the host time namespace. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by: Dmitry

[PATCHv7 08/33] posix-timers: Use clock_get_ktime() in common_timer_get()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Now, when the clock_get_ktime() callback exists, the suboptimal timespec64-based conversion can be removed from common_timer_get(). Suggested-by: Thomas Gleixner Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by: Dmitry Safonov ---

[PATCHv7 24/33] x86/vdso: On timens page fault prefault also VVAR page

2019-10-10 Thread Dmitry Safonov
As timens page has offsets to data on VVAR page VVAR is going to be accessed shortly. Set it up with timens in one page fault as optimization. Suggested-by: Thomas Gleixner Co-developed-by: Andrei Vagin Signed-off-by: Andrei Vagin Signed-off-by: Dmitry Safonov --- arch/x86/entry/vdso/vma.c |

[PATCHv7 17/33] x86/vdso: Restrict splitting VVAR VMA

2019-10-10 Thread Dmitry Safonov
Forbid splitting VVAR resulting in stricter ABI and reducing amount of corner-cases to consider while working further on VDSO. As offset from timens to VVAR page is computed compile-time, the pages in VVAR should stay together and not being partically mremap()'ed. Co-developed-by: Andrei Vagin

[PATCHv7 19/33] lib/vdso: Prepare for time namespace support

2019-10-10 Thread Dmitry Safonov
From: Thomas Gleixner To support time namespaces in the vdso with a minimal impact on regular non time namespace affected tasks, the namespace handling needs to be hidden in a slow path. The most obvious place is vdso_seq_begin(). If a task belongs to a time namespace then the VVAR page which

[PATCHv7 28/33] selftests/timens: Add a test for timerfd

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Check that timerfd_create() takes into account clock offsets. Output on success: 1..3 ok 1 clockid=7 ok 2 clockid=1 ok 3 clockid=9 # Pass 3 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 Output on failure: 1..3 not ok 1 clockid: 7 elapsed: 0 not ok 2 clockid: 1 elapsed: 0

[PATCHv7 25/33] x86/vdso: Zap vvar pages on switch a time namspace

2019-10-10 Thread Dmitry Safonov
The VVAR page layout depends on whether a task belongs to the root or non-root time namespace. Whenever a task changes its namespace, the VVAR page tables are cleared and then they will re-faulted with a corresponding layout. Co-developed-by: Andrei Vagin Signed-off-by: Andrei Vagin

[PATCHv7 22/33] time: Allocate per-timens vvar page

2019-10-10 Thread Dmitry Safonov
VDSO support for Time namespace needs to set up a page with the same layout as VVAR. That timens page will be placed on position of VVAR page inside namespace. That page contains time namespace clock offsets and it has vdso_data->seq set to 1 to enforce the slow path and vdso_data->clock_mode set

Re: [Patch v2 1/2] mm/rmap.c: don't reuse anon_vma if we just want a copy

2019-10-10 Thread Wei Yang
On Thu, Oct 10, 2019 at 06:29:32PM +0300, Konstantin Khlebnikov wrote: >On 10/10/2019 16.58, Wei Yang wrote: >> Before commit 7a3ef208e662 ("mm: prevent endless growth of anon_vma >> hierarchy"), anon_vma_clone() doesn't change dst->anon_vma. While after >> this commit, anon_vma_clone() will try

[PATCHv7 29/33] selftests/timens: Add a test for clock_nanosleep()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Check that clock_nanosleep() takes into account clock offsets. Output on success: 1..4 ok 1 clockid: 1 abs:0 ok 2 clockid: 1 abs:1 ok 3 clockid: 9 abs:0 ok 4 clockid: 9 abs:1 Output with lack of permissions: 1..4 not ok 1 # SKIP need to run as root Output without

[PATCHv7 32/33] selftests/timens: Add a simple perf test for clock_gettime()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Output on success: 1..4 ok 1 host: clock: monotonic cycles: 148323947 ok 2 host: clock: boottime cycles: 148577503 ok 3 ns: clock: monotonic cycles: 137659217 ok 4 ns: clock: boottime cycles: 137959154 # Pass 4 Fail 0

[PATCHv7 33/33] selftests/timens: Check for right timens offsets after fork and exec

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Output on success: 1..1 ok 1 exec # Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 Output on failure: 1..1 not ok 1 36016 16 Bail out! Output with lack of permissions: 1..1 not ok 1 # SKIP need to run as root Output without support of time namespaces: 1..1 not ok 1

[PATCHv7 30/33] selftests/timens: Add procfs selftest

2019-10-10 Thread Dmitry Safonov
Check that /proc/uptime is correct inside a new time namespace. Output on success: 1..1 ok 1 Passed for /proc/uptime # Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 Output with lack of permissions: 1..1 not ok 1 # SKIP need to run as root Output without support of time namespaces: 1..1

[PATCHv7 14/33] hrtimers: Prepare hrtimer_nanosleep() for time namespaces

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin clock_nanosleep() accepts absolute values of expiration time when TIMER_ABSTIME flag is set. This absolute value is inside the task's time namespace, and has to be converted to the host's time. There is timens_ktime_to_host() helper for converting time, but it accepts ktime

[PATCHv7 06/33] alarmtimer: Provide get_timespec() callback

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin The upcoming support for time namespaces requires to have access to: - The time in a task's time namespace for sys_clock_gettime() - The time in the root name space for common_timer_get() Wire up alarm bases with get_timespec(). Suggested-by: Thomas Gleixner

[PATCHv7 10/33] kernel: Add do_timens_ktime_to_host() helper

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin The helper subtracts namespace's clock offset from the given time and checks that the result is in [0, KTIME_MAX]. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by: Dmitry Safonov --- include/linux/time_namespace.h | 14 +

[PATCHv7 13/33] alarmtimer: Make nanosleep time namespace aware

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin clock_nanosleep() accepts absolute values of expiration time when TIMER_ABSTIME flag is set. This absolute value is inside the task's time namespace, and has to be converted to the host's time. Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by:

[PATCHv7 04/33] posix-clocks: Rename .clock_get_timespec() callbacks accordingly

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin The upcoming support for time namespaces requires to have access to: - The time in a task's time namespace for sys_clock_gettime() - The time in the root name space for common_timer_get() That adds a valid reason to finally implement a separate callback which returns the

[PATCHv7 26/33] fs/proc: Introduce /proc/pid/timens_offsets

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin API to set time namespace offsets for children processes, i.e.: echo "clockid off_ses off_nsec" > /proc/self/timens_offsets Signed-off-by: Andrei Vagin Co-developed-by: Dmitry Safonov Signed-off-by: Dmitry Safonov --- fs/proc/base.c | 95

[PATCHv7 16/33] fs/proc: Respect boottime inside time namespace for /proc/uptime

2019-10-10 Thread Dmitry Safonov
Co-developed-by: Andrei Vagin Signed-off-by: Andrei Vagin Signed-off-by: Dmitry Safonov --- fs/proc/uptime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/proc/uptime.c b/fs/proc/uptime.c index a4c2791ab70b..5a1b228964fb 100644 --- a/fs/proc/uptime.c +++ b/fs/proc/uptime.c @@ -5,6

[PATCHv7 21/33] x86/vdso: Add timens page

2019-10-10 Thread Dmitry Safonov
To support time namespaces in the VDSO with a minimal impact on regular non time namespace affected tasks, the namespace handling needs to be hidden in a slow path. The most obvious place is vdso_seq_begin(). If a task belongs to a time namespace then the VVAR page which contains the system wide

[PATCHv7 09/33] posix-clocks: Wire up clock_gettime() with timens offsets

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Adjust monotonic and boottime clocks with per-timens offsets. As the result a process inside time namespace will see timers and clocks corrected to offsets that were set on creating namespace. Note that applications usually go through vDSO to get time, which is not yet

[PATCHv7 27/33] selftests/timens: Add Time Namespace test for supported clocks

2019-10-10 Thread Dmitry Safonov
A test to check that all supported clocks work on host and inside a new time namespace. Use both ways to get time: through VDSO and by entering the kernel with implicit syscall. Introduce a new timens directory in selftests framework for the next timens tests. Output on success: 1..10 ok 1

[PATCHv7 23/33] x86/vdso: Handle faults on timens page

2019-10-10 Thread Dmitry Safonov
If a task belongs to a time namespace then the VVAR page which contains the system wide VDSO data is replaced with a namespace specific page which has the same layout as the VVAR page. Co-developed-by: Andrei Vagin Signed-off-by: Andrei Vagin Signed-off-by: Dmitry Safonov ---

[PATCHv7 05/33] alarmtimer: Rename gettime() callback to get_ktime()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin The upcoming support for time namespaces requires to have access to: - The time in a tasks time namespace for sys_clock_gettime() - The time in the root name space for common_timer_get() struct alarm_base needs to follow the same name convention, so rename .gettime()

[PATCHv7 03/33] posix-clocks: Rename the clock_get() callback to clock_get_timespec()

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin The upcoming support for time namespaces requires to have access to: - The time in a task's time namespace for sys_clock_gettime() - The time in the root name space for common_timer_get() That adds a valid reason to finally implement a separate callback which returns the

[PATCHv7 00/33] kernel: Introduce Time Namespace

2019-10-10 Thread Dmitry Safonov
Discussions around time namespace are there for a long time. The first attempt to implement it was in 2006 by Jeff Dike. From that time, the topic appears on and off in various discussions. There are two main use cases for time namespaces: 1. change date and time inside a container; 2. adjust

[PATCHv7 01/33] ns: Introduce Time Namespace

2019-10-10 Thread Dmitry Safonov
From: Andrei Vagin Time Namespace isolates clock values. The kernel provides access to several clocks CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_BOOTTIME, etc. CLOCK_REALTIME System-wide clock that measures real (i.e., wall-clock) time. CLOCK_MONOTONIC Clock that cannot be set and

Re: [PATCH v2] ftgmac100: Disable HW checksum generation on AST2500

2019-10-10 Thread Jakub Kicinski
On Thu, 10 Oct 2019 19:20:47 +, Vijay Khemka wrote: > Resending this patch again. Perhaps I'm missing context but what's the intention here? In case this is resubmitting the patch for inclusion in the upstream kernel you need to send it out properly with git send-email or such.. > On

RE: [PATCH v11 1/4] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-10 Thread Justin He (Arm Technology China)
Hi Catalin > -Original Message- > From: Catalin Marinas > Sent: Friday, October 11, 2019 12:43 AM > To: Justin He (Arm Technology China) > Cc: Will Deacon ; Mark Rutland > ; James Morse ; Marc > Zyngier ; Matthew Wilcox ; Kirill A. > Shutemov ; linux-arm- > ker...@lists.infradead.org;

RE: [PATCH 1/2] net: fec_main: Use platform_get_irq_byname_optional() to avoid error message

2019-10-10 Thread Anson Huang
Hi, Jakub > On Fri, 11 Oct 2019 00:38:50 +, Anson Huang wrote: > > > Hm. Looks like the commit you need is commit f1da567f1dc1 ("driver core: > > > platform: Add platform_get_irq_byname_optional()") and it's > > > currently in Greg's tree. You have to wait for that commit to make > > > its

[PATCH v8] gpio/mpc8xxx: change irq handler from chained to normal

2019-10-10 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt,

[PATCH v4 3/4] HID: logitech: Add feature 0x0001: FeatureSet

2019-10-10 Thread Mazin Rezk
On Saturday, October 5, 2019 9:04 PM, Mazin Rezk wrote: > This patch adds support for the 0x0001 (FeatureSet) feature. This feature > is used to look up the feature ID of a feature index on a device and list > the total count of features on the device. > > I also added the hidpp20_get_features

[PATCH v4 4/4] HID: logitech: Support WirelessDeviceStatus connect events

2019-10-10 Thread Mazin Rezk
On Saturday, October 5, 2019 9:05 PM, Mazin Rezk wrote: > This patch makes WirelessDeviceStatus (0x1d4b) events get detected as > connection events on devices with HIDPP_QUIRK_WIRELESS_DEVICE_STATUS. > > This quirk is currently an alias for HIDPP_QUIRK_CLASS_BLUETOOTH since > the added Bluetooth

[PATCH v4 2/4] HID: logitech: Support HID++ devices without short reports

2019-10-10 Thread Mazin Rezk
On Saturday, October 5, 2019 9:04 PM, Mazin Rezk wrote: > This patch allows the hid-logitech-hidpp module to support devices that do > not have support for Short HID++ reports. So far, it seems that Bluetooth > HID++ 2.0 devices are missing short reports. > This has been tested and confirmed

[PATCH v4 1/4] HID: logitech: Add MX Mice over Bluetooth

2019-10-10 Thread Mazin Rezk
On Saturday, October 5, 2019 9:04 PM, Mazin Rezk wrote: > This patch adds support for several MX mice over Bluetooth. The device IDs > have been copied from the libratbag device database and their features > have been based on their DJ device counterparts. No changes have been made to this

Re: [RFC PATCH 0/3] ACPI, arm64: Backport for ACPI PPTT 6.3 thread flag for stable 4.19.x

2019-10-10 Thread Hanjun Guo
Hi John, On 2019/10/10 21:29, John Garry wrote: > This series is a backport of the ACPI PPTT 6.3 thread flag feature for > supporting arm64 systems. > > The background is that some arm64 implementations are broken, in that they > incorrectly advertise that a CPU is mutli-threaded, when it is not

Re: [PATCH 1/2] net: fec_main: Use platform_get_irq_byname_optional() to avoid error message

2019-10-10 Thread Jakub Kicinski
On Fri, 11 Oct 2019 00:38:50 +, Anson Huang wrote: > > Hm. Looks like the commit you need is commit f1da567f1dc1 ("driver core: > > platform: Add platform_get_irq_byname_optional()") and it's currently in > > Greg's tree. You have to wait for that commit to make its way into Linus'es > > main

  1   2   3   4   5   6   7   8   9   10   >