Re: selftests/net: udpgso: LTS kernels supportability ?

2018-12-18 Thread Rafael David Tinoco
On 12/18/18 12:53 PM, shuah wrote: > On 12/18/18 4:37 AM, Rafael David Tinoco wrote: >> On 12/17/18 4:42 PM, shuah wrote: >>> Hi Rafael, >>> >>> On 12/17/18 10:53 AM, Rafael David Tinoco wrote: >>>> Shuah, >>>> >>>> I was re

Re: selftests/net: udpgso: LTS kernels supportability ?

2018-12-18 Thread Rafael David Tinoco
On 12/17/18 4:42 PM, shuah wrote: > Hi Rafael, > > On 12/17/18 10:53 AM, Rafael David Tinoco wrote: >> Shuah, >> >> I was recently investigating some errors coming out of our functional >> tests and we, Dan and I, came up with a discussion that might not be new

selftests/net: udpgso: LTS kernels supportability ?

2018-12-17 Thread Rafael David Tinoco
Shuah, I was recently investigating some errors coming out of our functional tests and we, Dan and I, came up with a discussion that might not be new for you, but, interests us, in defining how to better use kselftests as a regression mechanism/tool in our LKFT (https://lkft.linaro.org). David /

Re: [PATCH] mm/zsmalloc.c: Fix zsmalloc 32-bit PAE support

2018-12-10 Thread Rafael David Tinoco
On 12/10/18 1:05 PM, Russell King - ARM Linux wrote: > On Mon, Dec 10, 2018 at 02:35:55PM +, Robin Murphy wrote: >> On 10/12/2018 14:21, Rafael David Tinoco wrote: >>> On 32-bit systems, zsmalloc uses HIGHMEM and, when PAE is enabled, the >>> physical frame number mi

Re: [PATCH] mm/zsmalloc.c: Fix zsmalloc 32-bit PAE support

2018-12-10 Thread Rafael David Tinoco
On 12/10/18 1:15 PM, Kirill A. Shutemov wrote: > On Mon, Dec 10, 2018 at 12:21:05PM -0200, Rafael David Tinoco wrote: >> diff --git a/arch/x86/include/asm/pgtable_64_types.h >> b/arch/x86/include/asm/pgtable_64_types.h >> index 84bd9bdc1987..d808cfde3d19 100644 >>

[PATCH] mm/zsmalloc.c: Fix zsmalloc 32-bit PAE support

2018-12-10 Thread Rafael David Tinoco
MAX_POSSIBLE_PHYSMEM_BITS being too big on 32-bit systems. Link: https://bugs.linaro.org/show_bug.cgi?id=3765#c17 Signed-off-by: Rafael David Tinoco --- arch/arm/include/asm/pgtable-2level-types.h | 2 ++ arch/arm/include/asm/pgtable-3level-types.h | 2 ++ arch/arm64/include/asm/pgtable-types.

Re: [PATCH 4.19 000/139] 4.19.7-stable review

2018-12-05 Thread Rafael David Tinoco
On 12/4/18 8:48 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.7 release. > There are 139 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 shoul

Re: [PATCH 4.19 000/139] 4.19.7-stable review

2018-12-05 Thread Rafael David Tinoco
On 12/5/18 4:58 AM, Greg Kroah-Hartman wrote: > On Tue, Dec 04, 2018 at 07:09:46PM -0200, Rafael David Tinoco wrote: >> On 12/4/18 8:48 AM, Greg Kroah-Hartman wrote: >>> This is the start of the stable review cycle for the 4.19.7 release. >>> There are 139 patches

Re: [PATCH 4.19 000/139] 4.19.7-stable review

2018-12-04 Thread Rafael David Tinoco
On 12/4/18 8:48 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.7 release. > There are 139 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 shoul

Re: v4.14 fix for Hikey 960 unbalanced IRQ enablement

2018-12-03 Thread Rafael David Tinoco
>> Greg, >> >> Patch 5 in this series seems to explain the best what is happening here: >> >>> With the following changes, we fix all in one: >>> >>> - Do the setup, one time, at probe time >>> >>> - Add the IRQF_ONESHOT, ack the interrupt in the threaded handler >>> >>> - Remove the interrupt hand

[PATCH 5/5] thermal/drivers/hisi: Remove costly sensor inspection

2018-12-03 Thread Rafael David Tinoco
Signed-off-by: Eduardo Valentin (cherry picked from commit 10d7e9a9181f4637640f388d334c6740c1b5d0e8) Signed-off-by: Rafael David Tinoco --- drivers/thermal/hisi_thermal.c | 203 +++-- 1 file changed, 93 insertions(+), 110 deletions(-) diff --git a/drivers/thermal

[PATCH 3/5] thermal/drivers/hisi: Encapsulate register writes into helpers

2018-12-03 Thread Rafael David Tinoco
-by: Eduardo Valentin (cherry picked from commit 1e11b014271ceccb5ea04ae58f4829ac8209a86d) Signed-off-by: Rafael David Tinoco --- drivers/thermal/hisi_thermal.c | 92 ++ 1 file changed, 70 insertions(+), 22 deletions(-) diff --git a/drivers/thermal/hisi_thermal.c b

[PATCH 4/5] thermal/drivers/hisi: Fix configuration register setting

2018-12-03 Thread Rafael David Tinoco
Signed-off-by: Eduardo Valentin (cherry picked from commit b424315a287c70eeb5f920f84c92492bd2f5658e) Signed-off-by: Rafael David Tinoco --- drivers/thermal/hisi_thermal.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/drivers/thermal

[PATCH 2/5] thermal/drivers/hisi: Remove pointless lock

2018-12-03 Thread Rafael David Tinoco
) Signed-off-by: Rafael David Tinoco --- drivers/thermal/hisi_thermal.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index aecbfe9fc8f2..0c2966c285b1 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers

[PATCH 1/5] thermal/drivers/hisi: Remove the multiple sensors support

2018-12-03 Thread Rafael David Tinoco
://bugs.linaro.org/show_bug.cgi?id=4053 (PATCH 1/5) Signed-off-by: Daniel Lezcano Reviewed-by: Leo Yan Acked-by: Wangtao (Kevin, Kirin) Signed-off-by: Eduardo Valentin (cherry picked from commit ff4ec2997df8fe7cc40513dbe5f86d9f88fb6be7) Signed-off-by: Rafael David Tinoco --- drivers/thermal/hisi_thermal.c | 75

v4.14 fix for Hikey 960 unbalanced IRQ enablement

2018-12-03 Thread Rafael David Tinoco
Sasha, could you consider including this cherry-picked patchset in v4.14. Kernel v4.14 might suffer from the following unbalanced enablement for the board Hikey 960: Nov 5 12:02:54 hikey kernel: [ 22.148194] Unbalanced enable for IRQ 44 Nov 5 12:02:54 hikey kernel: [ 22.152193] ---

Re: [PATCH 1/4] selftests: timers: move PIE tests out of rtctest

2018-11-29 Thread Rafael David Tinoco
On 4/19/18 9:50 AM, Alexandre Belloni wrote: > Since commit 6610e0893b8bc ("RTC: Rework RTC code to use timerqueue for > events"), PIE are completely handled using hrtimers, without actually using > any underlying hardware RTC. > > Move PIE testing out of rtctest. It still depends on the presence

Re: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread Rafael David Tinoco
On 11/27/18 1:35 PM, Russell King - ARM Linux wrote: > On x86 (32-bit app on 64-bit kernel), it has this behaviour: > > $ ./syscall-test > 162 0xffcc5a6c 0xffcc5a6c 0x48d09000 0x0 0xffcc5af4 0xffcc5a74 0xffcc5a2c > 0xf77dfa59 > 162 0xffcc5a6c 0xffcc5a6c 0x48d09000 0x0 0xffcc5af4 0xffcc5a74 0xffcc

Re: [PATCH v2] mm/zsmalloc.c: Fix zsmalloc 32-bit PAE support

2018-11-27 Thread Rafael David Tinoco
On 11/20/18 10:18 PM, Rafael David Tinoco wrote: > > Russell, > > I have tried to place MAX_POSSIBLE_PHYSMEM_BITS in the best available > header for each architecture, considering different paging levels, PAE > existence, and existing similar definitions. Also, I have only

Re: [PATCH] arm: always update thread_info->syscall

2018-11-27 Thread Rafael David Tinoco
On 11/26/18 9:44 PM, Russell King - ARM Linux wrote: On Mon, Nov 26, 2018 at 11:41:11PM +, Russell King - ARM Linux wrote: On Mon, Nov 26, 2018 at 11:33:03PM +, Russell King - ARM Linux wrote: On Mon, Nov 26, 2018 at 08:53:35PM -0200, Rafael David Tinoco wrote: Right now, only way for

[PATCH] arm: always update thread_info->syscall

2018-11-26 Thread Rafael David Tinoco
ugs.linaro.org/show_bug.cgi?id=3783 Cc: # v4.4 v4.9 v4.14 v4.19 Signed-off-by: Rafael David Tinoco --- arch/arm/kernel/asm-offsets.c | 1 + arch/arm/kernel/entry-common.S | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c index 396

Re: [PATCH v2] mm/zsmalloc.c: Fix zsmalloc 32-bit PAE support

2018-11-20 Thread Rafael David Tinoco
On 11/20/18 10:11 PM, Rafael David Tinoco wrote: On 32-bit systems, zsmalloc uses HIGHMEM and, when PAE is enabled, the physical frame number might be so big that zsmalloc obj encoding (to location) will break, causing: BUG: KASAN: null-ptr-deref in zs_map_object+0xa4/0x2bc Read of size 4 at

[PATCH v2] mm/zsmalloc.c: Fix zsmalloc 32-bit PAE support

2018-11-20 Thread Rafael David Tinoco
MAX_POSSIBLE_PHYSMEM_BITS being too big on 32-bit systems. Link: https://bugs.linaro.org/show_bug.cgi?id=3765#c17 Signed-off-by: Rafael David Tinoco --- arch/arm/include/asm/pgtable-2level-types.h | 2 ++ arch/arm/include/asm/pgtable-3level-types.h | 2 ++ arch/arm64/include/asm/pgtable-types.

Re: [PATCH v5] selftests: membarrier: re-organize test

2018-11-18 Thread Rafael David Tinoco
rrier basic tests, and both can be maintained together. Link: https://bugs.linaro.org/show_bug.cgi?id=3771 Link: http://lists.linux.it/pipermail/ltp/2018-October/009578.html Signed-off-by: Rafael David Tinoco --- -- Rafael D. Tinoco Linaro Kernel Validation

Re: nfs: possible sync issue between nfs_call_unlink <-> nfs_async_unlink_release

2018-11-13 Thread Rafael David Tinoco
On 7/3/18 6:04 PM, Rafael Tinoco wrote: BUG: https://bugs.linaro.org/show_bug.cgi?id=3731 During Linaro's Kernel Functional tests, we have observed the following situation: [ 52.651490] DEBUG_LOCKS_WARN_ON(sem->owner != ((struct task_struct *)1UL)) [ 52.651506] WARNING: CPU: 2 PID: 1457 at

Re: [PATCH] proc: fixup map_files test on arm

2018-11-12 Thread Rafael David Tinoco
s patch. I personnally think that testing mappings should be a separate test in vm/, but seriously this took too long already :) If Alexey's patch fixes the problem with arm I think we're fine. Fine for me. It works in armhf. Tested-by: Rafael David Tinoco Note: Maybe you should amen

Re: [PATCH 4.9 000/141] 4.9.137-stable review

2018-11-12 Thread Rafael David Tinoco
On 11/11/18 8:24 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.137 release. There are 141 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 mad

Re: [PATCH AUTOSEL 4.9 11/48] cpupower: Fix coredump on VMWare

2018-11-12 Thread Rafael David Tinoco
On 10/31/18 9:10 PM, Sasha Levin wrote: From: Prarit Bhargava [ Upstream commit f69ffc5d3db8f1f03fd6d1df5930f9a1fbd787b6 ] cpupower crashes on VMWare guests. The guests have the AMD PStateDef MSR (0xC0010064 + state number) set to zero. As a result fid and did are zero and the crash occurs b

Re: [PATCH AUTOSEL 4.4 07/32] cpupower: Fix coredump on VMWare

2018-11-12 Thread Rafael David Tinoco
On 10/31/18 9:11 PM, Sasha Levin wrote: From: Prarit Bhargava [ Upstream commit f69ffc5d3db8f1f03fd6d1df5930f9a1fbd787b6 ] cpupower crashes on VMWare guests. The guests have the AMD PStateDef MSR (0xC0010064 + state number) set to zero. As a result fid and did are zero and the crash occurs b

Re: [PATCH] proc: fix and merge proc-self-map-file tests

2018-11-10 Thread Rafael David Tinoco
On Sat, Nov 10, 2018, at 4:49 PM, Alexey Dobriyan wrote: > On Sat, Nov 10, 2018 at 03:56:03PM -0200, Rafael David Tinoco wrote: > > On Sat, Nov 10, 2018, at 3:47 PM, Alexey Dobriyan wrote: > > > On Fri, Nov 09, 2018 at 09:30:36AM -0200, Rafael David Tinoco wrote: > > >

Re: [PATCH] proc: fixup map_files test on arm

2018-11-10 Thread Rafael David Tinoco
Including Shuah and kselftest list... On Sat, Nov 10, 2018, at 4:49 PM, Alexey Dobriyan wrote: > https://bugs.linaro.org/show_bug.cgi?id=3782 > > Turns out arm doesn't allow to map address 0, so try minimum virtual > address instead. > > Reported-by: Rafael David Tinoco

Re: [PATCH] proc: fix and merge proc-self-map-file tests

2018-11-10 Thread Rafael David Tinoco
On Sat, Nov 10, 2018, at 3:47 PM, Alexey Dobriyan wrote: > On Fri, Nov 09, 2018 at 09:30:36AM -0200, Rafael David Tinoco wrote: > > Merge proc-self-map-files tests into one since this test should focus in > > testing readlink in /proc/self/map_files/* only, and not trying to t

Re: [PATCH] proc: fix and merge proc-self-map-file tests

2018-11-09 Thread Rafael David Tinoco
On Fri, Nov 9, 2018, at 4:04 PM, Cyrill Gorcunov wrote: > On Fri, Nov 09, 2018 at 10:01:13AM -0200, Rafael David Tinoco wrote: > > > > Alright, I'm fixing membarrier_test before, so.. I guess we have a > > competition.. =o) > > Rafael, Alexey, what about simply

[PATCH v5] selftests: membarrier: re-organize test

2018-11-09 Thread Rafael David Tinoco
: http://lists.linux.it/pipermail/ltp/2018-October/009578.html Signed-off-by: Rafael David Tinoco --- .../selftests/membarrier/membarrier_test.c| 566 ++ 1 file changed, 314 insertions(+), 252 deletions(-) diff --git a/tools/testing/selftests/membarrier/membarrier_test.c b

Re: [PATCH] proc: fix and merge proc-self-map-file tests

2018-11-09 Thread Rafael David Tinoco
On Fri, Nov 9, 2018, at 9:48 AM, Cyrill Gorcunov wrote: > On Fri, Nov 09, 2018 at 09:45:36AM -0200, Rafael David Tinoco wrote: > ... > > > today evening or tomorrow. I think this way everybody will be > > > happy: procfs get passed on arm32 and x86 will still have

Re: [PATCH] proc: fix and merge proc-self-map-file tests

2018-11-09 Thread Rafael David Tinoco
On Fri, Nov 9, 2018, at 9:41 AM, Cyrill Gorcunov wrote: > On Fri, Nov 09, 2018 at 09:30:36AM -0200, Rafael David Tinoco wrote: > > Merge proc-self-map-files tests into one since this test should focus in > > testing readlink in /proc/self/map_files/* only, and not trying to t

[PATCH] proc: fix and merge proc-self-map-file tests

2018-11-09 Thread Rafael David Tinoco
does not guarantee that when MAP_FIXED flag, important to this test, is given. This patch also fixes this issue in remaining test. Link: https://bugs.linaro.org/show_bug.cgi?id=3782 Signed-off-by: Rafael David Tinoco --- tools/testing/selftests/proc/.gitignore | 1 - tools/testing

Re: [PATCH] proc: fix proc-self-map-files selftest for arm

2018-11-08 Thread Rafael David Tinoco
On Mon, Oct 15, 2018 at 2:21 PM, Cyrill Gorcunov wrote: > On Mon, Oct 15, 2018 at 01:55:14PM -0300, Rafael David Tinoco wrote: >> That is what I also had in mind, thus the patch. I just realized we had >> another issue on LKFT (our functional tests tool) for >> proc-self-map-

Re: [PATCH 1/2] mm/zsmalloc.c: check encoded object value overflow for PAE

2018-10-25 Thread Rafael David Tinoco
> MAX_PHYSMEM_BITS is a definition for sparsemem, and is only visible > when sparsemem is enabled. When sparsemem is disabled, asm/sparsemem.h > is not included (and should not be included) which means there is no > MAX_PHYSMEM_BITS definition. Missed that part :\, tks. > I don't think zsmalloc.

Re: [PATCH 1/2] mm/zsmalloc.c: check encoded object value overflow for PAE

2018-10-25 Thread Rafael David Tinoco
On Thu, Oct 25, 2018 at 2:29 AM, Sergey Senozhatsky wrote: > On (10/24/18 22:27), Rafael David Tinoco wrote: >> static unsigned long location_to_obj(struct page *page, unsigned int >> obj_idx) >> { >> - unsigned long obj; >> + unsigned long obj, pfn

[PATCH 2/2] mm/zsmalloc.c: fix zsmalloc ARM LPAE support

2018-10-24 Thread Rafael David Tinoco
a possible null-ptr-deref in zs_map_object() when using ARM LPAE and HIGHMEM pages located above the 4GB watermark. Link: https://bugs.linaro.org/show_bug.cgi?id=3765#c17 Signed-off-by: Rafael David Tinoco --- arch/arm/include/asm/pgtable-3level-types.h | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH 1/2] mm/zsmalloc.c: check encoded object value overflow for PAE

2018-10-24 Thread Rafael David Tinoco
://bugs.linaro.org/show_bug.cgi?id=3765#c17 Signed-off-by: Rafael David Tinoco --- mm/zsmalloc.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 9da65552e7ca..9c3ff8c2ccbc 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c

Re: [PATCH 4.4 00/48] 4.4.162-stable review

2018-10-19 Thread Rafael David Tinoco
On Thu, Oct 18, 2018 at 2:54 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.162 release. > There are 48 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. > > Re

Re: [PATCH 4.9 00/35] 4.9.135-stable review

2018-10-19 Thread Rafael David Tinoco
On Thu, Oct 18, 2018 at 2:54 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.135 release. > There are 35 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. > > Re

Re: [PATCH 4.18 00/53] 4.18.16-stable review

2018-10-19 Thread Rafael David Tinoco
On Thu, Oct 18, 2018 at 2:53 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.18.16 release. > There are 53 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. > > Re

Re: [PATCH 4.14 00/41] 4.14.78-stable review

2018-10-19 Thread Rafael David Tinoco
On Thu, Oct 18, 2018 at 2:54 PM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.78 release. > There are 41 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. > > Re

Re: [PATCH] proc: fix proc-self-map-files selftest for arm

2018-10-15 Thread Rafael David Tinoco
On 10/11/18 7:00 PM, Cyrill Gorcunov wrote: On Fri, Oct 12, 2018 at 12:30:06AM +0300, Alexey Dobriyan wrote: On Fri, Oct 12, 2018 at 12:02:56AM +0300, Cyrill Gorcunov wrote: On Thu, Oct 11, 2018 at 11:56:01PM +0300, Alexey Dobriyan wrote: As the comment in the beginning says this test is spec

[PATCH] proc: fix proc-self-map-files selftest for arm

2018-10-11 Thread Rafael David Tinoco
. Link: https://bugs.linaro.org/show_bug.cgi?id=3782 Signed-off-by: Rafael David Tinoco --- tools/testing/selftests/proc/proc-self-map-files-002.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/proc/proc-self-map-files-002.c b/tools/testing/selftests

Re: [PATCH 4.18 00/88] 4.18.11-stable review

2018-09-27 Thread Rafael David Tinoco
On 9/27/18 6:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.18.11 release. There are 88 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

Re: [PATCH 4.14 00/64] 4.14.73-stable review

2018-09-27 Thread Rafael David Tinoco
On 9/27/18 6:03 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.73 release. There are 64 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

Re: [PATCH 4.9 00/44] 4.9.130-stable review

2018-09-27 Thread Rafael David Tinoco
On 9/27/18 6:03 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.130 release. There are 44 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

Re: [PATCH 4.4 00/28] 4.4.159-stable review

2018-09-27 Thread Rafael David Tinoco
On 9/27/18 6:06 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.159 release. There are 28 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

Re: [PATCH 4.4 34/47] userns: move user access out of the mutex

2018-09-08 Thread Rafael David Tinoco
Greg, On Fri, Sep 7, 2018 at 6:41 PM Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Jann Horn > > commit 5820f140edef111a9ea2ef414ab2428b8cb805b1 upstream. > > The old code would hold the userns_state_mut

Re: [PATCH v4] selftests: membarrier: reorganized test for LTS supportability

2018-09-03 Thread Rafael David Tinoco
On Mon, Sep 3, 2018 at 4:05 PM Rafael David Tinoco wrote: > > This commit re-organizes membarrier test, solving issues when testing > LTS kernels. Now, the code: > > - always run the same amount of tests (even on older kernels). > - allows each test to succeed, fail or be ski

[PATCH v4] selftests: membarrier: reorganized test for LTS supportability

2018-09-03 Thread Rafael David Tinoco
). - able to consider different return codes for diff kernel versions. - checks false positive/negative by checking ret code and errno. - can be extended easily: to expand an array with commands. Link: https://bugs.linaro.org/show_bug.cgi?id=3771 Signed-off-by: Rafael David Tinoco

[PATCH v3] membarrier_test: work in progress

2018-09-02 Thread Rafael David Tinoco
Shuah, This is a draft only. I will remove summary from the top, run checkers, etc. Im thinking in replacing membarrier_test entirely with this code (compatible to existing one). Right now, this code: - allows each test to succeed, fail or be skipped independently - allows each test to be teste

Re: [PATCH 4.4 00/13] 4.4.149-stable review

2018-08-18 Thread Rafael David Tinoco
On Thu, Aug 16, 2018 at 08:41:47PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.149 release. > There are 13 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

Re: [PATCH 4.9 00/15] 4.9.121-stable review

2018-08-18 Thread Rafael David Tinoco
On Thu, Aug 16, 2018 at 08:41:53PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.121 release. > There are 15 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

Re: [PATCH 4.14 00/22] 4.14.64-stable review

2018-08-18 Thread Rafael David Tinoco
On Thu, Aug 16, 2018 at 08:45:01PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.64 release. > There are 22 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

Re: [PATCH 4.18 00/22] 4.18.2-stable review

2018-08-18 Thread Rafael David Tinoco
On Thu, Aug 16, 2018 at 08:45:16PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.18.2 release. > There are 22 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.

Re: [PATCH 4.17 00/21] 4.17.16-stable review

2018-08-18 Thread Rafael David Tinoco
On Thu, Aug 16, 2018 at 08:45:10PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.16 release. > There are 21 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

[PATCH v2] selftests: membarrier: fix test by checking supported commands

2018-08-09 Thread Rafael David Tinoco
Makes membarrier_test compatible with older kernels (LTS) by checking if the membarrier features exist before running the tests. Link: https://bugs.linaro.org/show_bug.cgi?id=3771 Signed-off-by: Rafael David Tinoco Cc: #v4.17 --- .../selftests/membarrier/membarrier_test.c| 71

Re: [PATCH] selftests: membarrier: fix test by checking supported commands

2018-08-08 Thread Rafael David Tinoco
On Tue, Jul 31, 2018 at 12:15:37AM -0300, Rafael David Tinoco wrote: > Hello Shuah, > > On Mon, Jul 30, 2018 at 05:32:30PM -0600, Shuah Khan wrote: > > Hi Rafael, > > > > On 07/30/2018 10:05 AM, Rafael David Tinoco wrote: > > > Makes membarrier_test compatible

Re: Commit "new primitive: discard_new_inode()" introduces a problem

2018-08-01 Thread Rafael David Tinoco
> __d_instantiate(entry, inode); > WARN_ON(!(inode->i_state & I_NEW)); > - inode->i_state &= ~I_NEW; > + inode->i_state &= ~I_NEW & ~I_CREATING; > smp_mb(); > wake_up_bit(&inode->i_state, __I_NEW); > spin_unlock(&inode->i_lock); It fixes the issue. Results: https://bugs.linaro.org/show_bug.cgi?id=3957#c10 Tested-by: Rafael David Tinoco Thank you!

Re: Commit "new primitive: discard_new_inode()" introduces a problem

2018-08-01 Thread Rafael David Tinoco
On Wed, Aug 01, 2018 at 05:27:39PM +0100, Al Viro wrote: > On Wed, Aug 01, 2018 at 05:16:48PM +0100, Al Viro wrote: > > On Wed, Aug 01, 2018 at 05:11:51PM +0100, Al Viro wrote: > > > On Wed, Aug 01, 2018 at 06:43:56PM +0300, Kirill Tkhai wrote: > > > > #git status > > > > HEAD detached at 22dc9a168

Re: [PATCH] selftests: membarrier: fix test by checking supported commands

2018-07-30 Thread Rafael David Tinoco
Hello Shuah, On Mon, Jul 30, 2018 at 05:32:30PM -0600, Shuah Khan wrote: > Hi Rafael, > > On 07/30/2018 10:05 AM, Rafael David Tinoco wrote: > > Makes membarrier_test compatible with older kernels (LTS) by checking if > > the membarrier features exist before running the tests

[PATCH] selftests: membarrier: fix test by checking supported commands

2018-07-30 Thread Rafael David Tinoco
Makes membarrier_test compatible with older kernels (LTS) by checking if the membarrier features exist before running the tests. Link: https://bugs.linaro.org/show_bug.cgi?id=3771 Signed-off-by: Rafael David Tinoco Cc: #v4.17 --- .../selftests/membarrier/membarrier_test.c| 69

[PATCH] mfd: hi655x: Fix regmap area declared size for hi655x

2018-07-06 Thread Rafael David Tinoco
ce in hi6220's dts, fixing the issue. Signed-off-by: Rafael David Tinoco Cc: #v4.9 #v4.14 #v4.16 #v4.17 --- drivers/mfd/hi655x-pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c index c37ccbfd52f2..96c07fa1802a 10

Re: [LTP] ltp/read_all_sys (read_all -d /sys -q -r 10) cause system panic with kernel-4.18.0-rc1

2018-07-05 Thread Rafael David Tinoco
We've faced similar issue in Bug: https://bugs.linaro.org/show_bug.cgi?id=3903 And it turned out to be a regmap area declared wrongly (likely) for a PMIC device, caught when trying to read "registers" file from debugfs in that particular device. Best way to identify the issue is to check which fi

Re: [PATCH 4.4 00/24] 4.4.137-stable review

2018-06-13 Thread Rafael David Tinoco
On Wed, Jun 13, 2018 at 6:00 PM, Greg Kroah-Hartman wrote: > On Wed, Jun 13, 2018 at 05:47:49PM -0300, Rafael Tinoco wrote: >> Results from Linaro’s test farm. >> Regressions detected. >> >> NOTE: >> >> 1) LTP vma03 test (cve-2011-2496) broken on v4.4-137-rc1 because of: >> >> 6ea1dc96a03a mm

[PATCH] selftests: gpio: gpio-mockup-chardev GPIOHANDLE_REQUEST_OUTPUT fix

2018-06-06 Thread Rafael David Tinoco
t of gpio_pin_test(), gpio_debugfs_get() and gpiotools_request_linehandle() functions. Signed-off-by: Rafael David Tinoco --- tools/testing/selftests/gpio/gpio-mockup-chardev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/gpio/gpio-mockup-chardev.

Re: [PATCH 3.16 106/217] sd: disable discard_zeroes_data for UNMAP

2016-04-29 Thread Rafael David Tinoco
Martin, On Fri, Apr 29, 2016 at 9:16 AM, Martin K. Petersen wrote: >>>>>> "Rafael" == Rafael David Tinoco writes: > > Rafael, > > Rafael> And this happened because the storage in question didn't set > Rafael> properly "max_ws_b

Re: [PATCH 3.16 106/217] sd: disable discard_zeroes_data for UNMAP

2016-04-28 Thread Rafael David Tinoco
d). So far, I'm seeing 2 motives why it shouldn't be on older kernels. On Thu, Apr 28, 2016 at 1:11 PM, Ben Hutchings wrote: > On Wed, 2016-04-27 at 17:43 -0300, Rafael David Tinoco wrote: >> It seems that changing discard method from UNMAP to WRITE SAME(16) >> with

Re: [PATCH 3.16 106/217] sd: disable discard_zeroes_data for UNMAP

2016-04-27 Thread Rafael David Tinoco
gt;lbpws) > + if (sdkp->lbpws) > sd_config_discard(sdkp, SD_LBP_WS16); > else if (sdkp->lbpws10) > sd_config_discard(sdkp, SD_LBP_WS10); > + else if (sdkp->lbpu && sdkp->ma

Re: sched: hang in migrate_swap

2015-06-15 Thread Rafael David Tinoco
Peter, Sasha, coming back to this… Not that this is happening frequently or I can easily reproduce, but… > On May14, 2014, at 07:26 AM, Peter Zijlstra wrote: > > On Wed, May 14, 2014 at 02:21:04PM +0400, Kirill Tkhai wrote: >> >> >> 14.05.2014, 14:14, "Peter Zijlstra" : >>> On Wed, May 14, 20

Re: sched: softlockups in multi_cpu_stop

2015-03-06 Thread Rafael David Tinoco
Are you sure about this ? I have a core dump locked on the same place (state machine for powering cpu down for the task swap) from a 3.13 (+ upstream patches) and this commit wasn't backported yet. -> multi_cpu_stop -> do { } while (curstate != MULTI_STOP_EXIT); In my case, curstate is WAY differ

Re: sched: softlockups in multi_cpu_stop

2015-03-03 Thread Rafael David Tinoco
Some more info: multi_cpu_stop seems to be spinning inside do { ... } while (curstate != MULTI_STOP_EXIT); So, multi_cpu_stop is an offload ([migration]) for: migrate_swap -> stop_two_cpus -> wait_for_completion() sequence... for cross-migrating 2 tasks. Based on task structs from callers stacks

Re: smp_call_function_single lockups

2015-02-23 Thread Rafael David Tinoco
> > [11396.096002] Hardware name: OpenStack Foundation OpenStack Nova, BIOS Bochs > 01/01/2011 > > But its a virtual machine right? Its not running bare metal, its running > a !virt kernel on a virt machine, so maybe some of the virt muck is > borked? > > A very subtly broken APIC emulation would

Re: smp_call_function_single lockups

2015-02-23 Thread Rafael David Tinoco
On Thu, Feb 19, 2015 at 2:14 PM, Linus Torvalds wrote: > > Hmm. Still just the stack trace for the CPU that is blocked (CPU0), if > you can get the core-file to work and figure out where the other CPU > is, that would be good. > This is v3.19 + your patch (smp acquire/release) - (nested kvm with

Re: smp_call_function_single lockups

2015-02-19 Thread Rafael David Tinoco
not sure if there is an option to enable/disable it in firmware (like DL390 seems to have). I don't think so... but I was told by HP team that I should use x2apic for >= Gen8. On Thu, Feb 19, 2015 at 2:59 PM, Linus Torvalds wrote: > On Thu, Feb 19, 2015 at 8:32 AM, Rafael David Ti

Re: smp_call_function_single lockups

2015-02-19 Thread Rafael David Tinoco
602134] Enabled x2apic Feb 19 08:21:28 derain kernel: [3.637682] Switched APIC routing to cluster x2apic. On Thu, Feb 19, 2015 at 2:26 PM, Linus Torvalds wrote: > On Thu, Feb 19, 2015 at 7:42 AM, Rafael David Tinoco > wrote: >> >> Same environment as before: Nested KVM (2 vcp

Re: smp_call_function_single lockups

2015-02-19 Thread Rafael David Tinoco
Linus, Peter, Thomas Just a quick feedback, We were able to reproduce the lockup with this proposed patch (3.19 + patch). Unfortunately we had problems with the core file and I have only the stack trace for now but I think we are able to reproduce it again and provide more details (sorry for the d

Re: smp_call_function_single lockups

2015-02-12 Thread Rafael David Tinoco
Meanwhile we'll take the opportunity to run same tests with the "smp_load_acquire/smp_store_release + outside sync/async" approach made by your latest patch on top of 3.19. If anything comes up I'll provide full back traces (2 vcpus). Here I can only reproduce this inside nested kvm on top of Pro

smp_call_function_single lockups

2015-02-11 Thread Rafael David Tinoco
Linus, Thomas, Jens.. During the 3.18 - 3.19 "frequent lockups discussion", in some point you have observed csd_lock() and csd_unlock() possible synchronization problems. I think we have managed to reproduce that issue in a constant basis with 3.13 (ubuntu) and 3.19 (latest vanilla). - When runni

Re: Possible netns creation and execution performance/scalability regression since v3.8 due to rcu callbacks being offloaded to multiple cpus

2014-07-17 Thread Rafael David Tinoco
Hello Eric, Coming back to this... On Jun 16, 2014, at 12:01 PM, Rafael Tinoco wrote: > ... > > On Fri, Jun 13, 2014 at 9:02 PM, Eric W. Biederman > wrote: >> Rafael Tinoco writes: >> >>> Okay, >>> >>> Tests with the same script were done. >>> I'm comparing : master + patch vs 3.15.0-rc5 (