Re: [PATCH] PCI: iproc: Fix BCMA PCIe bus scanning regression

2016-01-26 Thread Ray Jui
Hi Bjorn, On 1/26/2016 10:22 AM, Bjorn Helgaas wrote: Hi Ray, On Wed, Jan 20, 2016 at 02:55:10PM -0800, Ray Jui wrote: Commit 943ebae781f5 ("PCI: iproc: Add PAXC interface support") causes regression on EP device detection on BCMA based platforms. This patch fixes the issue by allowing multipl

Re: [PATCH 4/4] perf hists browser: Check script context menu

2016-01-26 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 26, 2016 at 03:35:43PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Sat, Jan 23, 2016 at 10:31:42PM +0900, Namhyung Kim escreveu: > > The script and data-switch context menu are only meaningful when it > > deals with a data file. So add a check so that it cannot be shown when > > per

Re: [PATCH 10/10] vfio: allow the user to register reserved iova range for MSI mapping

2016-01-26 Thread kbuild test robot
-passthrough-on-ARM-ARM64/20160126-211921 config: x86_64-randconfig-s3-01270003 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/built-in.o: In function `vfio_reserved_binding_r

[PATCH] media: platform: vivid: vivid-osd: Remove unnecessary cast to kfree

2016-01-26 Thread Amitoj Kaur Chawla
Remove an unnecassary cast in the argument to kfree. Found using Coccinelle. The semantic patch used to find this is as follows: // @@ type T; expression *f; @@ - kfree((T *)(f)); + kfree(f); // Signed-off-by: Amitoj Kaur Chawla --- drivers/media/platform/vivid/vivid-osd.c | 2 +- 1 file chan

[PATCH] mm: fix pfn_t to page conversion in vm_insert_mixed

2016-01-26 Thread Dan Williams
pfn_t_to_page() honors the flags in the pfn_t value to determine if a pfn is backed by a page. However, vm_insert_mixed() was originally written to use pfn_valid() to make this determination. To restore the old/correct behavior, ignore the pfn_t flags in the !pfn_t_devmap() case and fallback to t

[PATCH] usb: storage: ene_ub6250: Remove unnecessary cast in kfree

2016-01-26 Thread Amitoj Kaur Chawla
Remove unnecassary casts in the argument to kfree. Found using Coccinelle. The semantic patch used to find this is as follows: // @@ type T; expression *f; @@ - kfree((T *)(f)); + kfree(f); // Signed-off-by: Amitoj Kaur Chawla --- drivers/usb/storage/ene_ub6250.c | 4 ++-- 1 file changed, 2 i

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
On Tue, 2016-01-26 at 12:34 -0600, Christoph Lameter wrote: > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > I disagree. You're burning electrons for no benefit at all to me on my > > box. You want to do high speed trading, that's fine, but I expect my > > box to be able to pop in and out of i

Re: [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-26 Thread Andy Lutomirski
On Tue, Jan 26, 2016 at 10:34 AM, Luis R. Rodriguez wrote: > On Mon, Jan 25, 2016 at 05:28:08PM -0500, Boris Ostrovsky wrote: >> On 01/25/2016 04:21 PM, H. Peter Anvin wrote: >> >On 01/25/16 13:12, Luis R. Rodriguez wrote: >> >>>Perhaps, but someone would still have to set hardware_subarch. And >>

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Austin S. Hemmelgarn
On 2016-01-26 13:27, Andy Lutomirski wrote: On Tue, Jan 26, 2016 at 10:09 AM, Austin S. Hemmelgarn wrote: On 2016-01-26 12:15, Serge Hallyn wrote: Quoting Josh Boyer (jwbo...@fedoraproject.org): On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederman wrote: Kees Cook writes: On Mon, Jan 2

Re: [PATCH v2] Add hard/soft lockup debugger entry points

2016-01-26 Thread kbuild test robot
Hi Jeff, [auto build test ERROR on v4.5-rc1] [also build test ERROR on next-20160125] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jeff-Merkey/Add-hard-soft-lockup-debugger-entry-points/2016

tty: BUG: KASAN: out-of-bounds in tty_ioctl

2016-01-26 Thread Sasha Levin
Hi all, I've hit the following while fuzzing with syzkaller inside a KVM tools guest running the latest -next kernel: [ 814.161028] == [ 814.162169] BUG: KASAN: out-of-bounds in tty_ioctl+0x2544/0x2810 at addr 8801c5034bd0

Re: [f2fs-dev] [PATCH 4/6] f2fs: avoid multiple node page writes due to inline_data

2016-01-26 Thread Jaegeuk Kim
Hi Chao, On Tue, Jan 26, 2016 at 01:41:05PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, January 26, 2016 6:05 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > > linux-f2fs-de...@

Re: [linux-review:Jason-Baron/convert-dynamic_debug-to-use-jump-labels/20160126-055359] 30e241d11bfa30ea56c42028ef9776135d422b57 BUILD DONE

2016-01-26 Thread Jason Baron
- please revert this series until I work out these issues. Sorry for the noise. Thanks, -Jason On 01/26/2016 12:30 AM, kbuild test robot wrote: > https://github.com/0day-ci/linux > Jason-Baron/convert-dynamic_debug-to-use-jump-labels/20160126-055359 > 30e241d11bfa30ea56c42028ef9776135d

Re: [PATCH v4 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-26 Thread Radim Krčmář
2016-01-25 16:53+0800, Feng Wu: > When the interrupt is not single destination any more, we need > to change back IRTE to remapped mode explicitly. > > Signed-off-by: Feng Wu > --- Reviewed-by: Radim Krčmář

Re: [PATCH v9 1/6] arm64, numa: adding numa support for arm64 platforms.

2016-01-26 Thread Bjorn Helgaas
On Mon, Jan 18, 2016 at 10:06:00PM +0530, Ganapatrao Kulkarni wrote: > Adding numa support for arm64 based platforms. > This patch adds by default the dummy numa node and > maps all memory and cpus to node 0. > using this patch, numa can be simulated on single node arm64 platforms. > diff --git a/

Direct Cash Loan And Guarantee Loan Offer At Fixed 3.5% Interest Rate Promo!!!

2016-01-26 Thread Direct Cash Loan SA
Dear Valued Client, We are currently giving out loans at 3.5% interest rate,Kindly findattached documents for more information about our offer and send your details to : infodirec...@fastservice.com Regards, Direct Cash Loans Team Email :infodirec...@fastservice.com Direct Cash

Re: tty: BUG: KASAN: out-of-bounds in tty_ioctl

2016-01-26 Thread Peter Hurley
On 01/26/2016 10:47 AM, Sasha Levin wrote: > Hi all, > > I've hit the following while fuzzing with syzkaller inside a KVM tools guest > running the latest -next kernel: > > [ 814.161028] > == > > [ 814.162169] BUG: KASAN: out-of-

Re: [PATCH V8 20/23] perf tools: making function set_max_cpu_num() non static

2016-01-26 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 26, 2016 at 10:08:21AM -0700, Mathieu Poirier escreveu: > On 25 January 2016 at 14:29, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jan 25, 2016 at 06:12:42PM -0300, Arnaldo Carvalho de Melo escreveu: > >> Em Mon, Jan 25, 2016 at 01:46:22PM -0700, Mathieu Poirier escreveu: > >> > On 14

Re: tty: BUG: KASAN: out-of-bounds in tty_ioctl

2016-01-26 Thread Sasha Levin
On 01/26/2016 01:55 PM, Peter Hurley wrote: > Hi Sasha, > > Fix for this is in Greg's inbox. Thanks Peter! Could you give me the patch name please? I tried seeing if it was already reported but didn't see anything related. Thanks, Sasha

Re: [PATCH v4 2/4] KVM: x86: Use vector-hashing to deliver lowest-priority interrupts

2016-01-26 Thread Radim Krčmář
2016-01-25 16:53+0800, Feng Wu: > Use vector-hashing to deliver lowest-priority interrupts, As an > example, modern Intel CPUs in server platform use this method to > handle lowest-priority interrupts. > > Signed-off-by: Feng Wu > --- With any proposed resolution of BUG_ON in kvm_vector_to_index

Re: [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-26 Thread Boris Ostrovsky
On 01/26/2016 01:46 PM, Andy Lutomirski wrote: On Tue, Jan 26, 2016 at 10:34 AM, Luis R. Rodriguez wrote: On Mon, Jan 25, 2016 at 05:28:08PM -0500, Boris Ostrovsky wrote: On 01/25/2016 04:21 PM, H. Peter Anvin wrote: On 01/25/16 13:12, Luis R. Rodriguez wrote: Perhaps, but someone would stil

Re: tty: BUG: KASAN: out-of-bounds in tty_ioctl

2016-01-26 Thread Peter Hurley
On 01/26/2016 10:58 AM, Sasha Levin wrote: > On 01/26/2016 01:55 PM, Peter Hurley wrote: >> Hi Sasha, >> >> Fix for this is in Greg's inbox. > > Thanks Peter! Could you give me the patch name please? I tried seeing > if it was already reported but didn't see anything related. No worries. [PATCH

Re: [PATCH-V2 1/1] HID: Force feedback support for the Logitech G920

2016-01-26 Thread Simon Wood
On Sun, January 10, 2016 4:25 pm, Edwin Velds wrote: > This patch implements force feedback support for the Logitech > G920 Driving Force Racing Wheel. It is a generic implementation > of feature 0x8123 of the Logitech HID++ protocol and should be usable for > any future devices that implement this

Re: PCI device driver broken between 4.2 and 4.3

2016-01-26 Thread Олег Мороз
I confirmed it works in 890e4847587f and do not works in 991de2e59090 26.01.2016 18:32, Bjorn Helgaas пишет: [+cc Jiang] On Mon, Jan 25, 2016 at 03:52:51PM -0600, Bjorn Helgaas wrote: Hi Олег, On Sun, Jan 24, 2016 at 04:50:08PM +0300, Олег Мороз wrote: Okay. I've sent logs (dmesg and lspc

Re: [PATCH v4 3/4] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2016-01-26 Thread Radim Krčmář
2016-01-25 16:53+0800, Feng Wu: > Use vector-hashing to deliver lowest-priority interrupts for > VT-d posted-interrupts. This patch extends kvm_intr_is_single_vcpu() > to support lowest-priority handling. > > Signed-off-by: Feng Wu > --- Reviewed-by: Radim Krčmář

Re: [PATCH] gfs2: avoid uninitialized variable warning

2016-01-26 Thread Bob Peterson
- Original Message - > We get a bogus warning about a potential uninitialized variable > use in gfs2, because the compiler does not figure out that we > never use the leaf number if get_leaf_nr() returns an error: > > fs/gfs2/dir.c: In function 'get_first_leaf': > fs/gfs2/dir.c:802:9: warn

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
On Tue, 2016-01-26 at 12:22 -0600, Christoph Lameter wrote: > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > On Tue, 2016-01-26 at 10:26 -0600, Christoph Lameter wrote: > > > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > > > > > > Why would the deferring cause this overhead? > > > > > > > >

Re: [PATCH linux-next v4 07/11] MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function

2016-01-26 Thread Brian Norris
On Sun, Dec 13, 2015 at 10:50:13PM +, Simon Arlott wrote: > Remove bcm63xx_nvram_get_psi_size() as it now has no users. > > Signed-off-by: Simon Arlott > --- > v4: New patch. Ralf, Please revert this and send it to Linus (or else, I can send it myself). This is causing build failures, becau

[PATCH 19/26] perf machine: Introduce machine__find_kernel_symbol_by_name()

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To be used in the 'vmlinux matches kallsyms' 'perf test' entry. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-m56g1853lz2c6nhnqxibq...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo -

Re: [patch] hfs: fix hfs_readdir()

2016-01-26 Thread Dan Carpenter
Hm, I completely didn't see that it was a union instead of a struct. I still think my fix is actually correct though. Now that you point out the union, I see that my change is equivalent to just removing the '&' char. - memcpy(&rd->key, &fd.key, sizeof(struct hfs_cat_key)); + memcpy(

[PATCH 06/26] perf tools: Document the perf sysctls

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Ben Hutchings perf_event_paranoid was only documented in source code and a perf error message. Copy the documentation from the error message to Documentation/sysctl/kernel.txt. perf_cpu_time_max_percent was already documented but missing from the list at the top, so add it there. Signed-

[PATCH 22/26] perf bpf: Check relocation target section

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Wang Nan Libbpf should check the target section before doing relocation to ensure the relocation is correct. If not, a bug in LLVM causes an error. See [1]. Also, if an incorrect BPF script uses both global variable and map, global variable whould be treated as map and be relocated without

[PATCH 24/26] perf build: Select all feature checkers for feature-dump

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Wang Nan Set FEATURE_TESTS to 'all' so all possible feature checkers are executed. Without this setting the output feature dump file miss some feature, for example, liberity. Select all checker so we won't get an incomplete feature dump file. Signed-off-by: Wang Nan Cc: "David S. Miller"

[PATCH 21/26] perf test: Add libbpf relocation checker

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Wang Nan There's a bug in LLVM that it can generate unneeded relocation information. See [1] and [2]. Libbpf should check the target section of a relocation symbol. This patch adds a testcase which references a global variable (BPF doesn't support global variables). Before fixing libbpf, t

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Christoph Lameter
On Tue, 26 Jan 2016, Mike Galbraith wrote: > > The system going idle is a fastpath. Mind boogling. > > Hohum, noted. Now what about those cycles, and the sleeping lock you > injected for -rt? Since we (the NOHZ people) care mostly about NOHZ then lets restrict that to the NOHZ mode. Then it shou

[PATCH v3 01/10] rtc: max77686: Fix max77686_rtc_read_alarm() return value

2016-01-26 Thread Javier Martinez Canillas
The function is always returning zero even in case of failures since the ret value was not propagated to the callers. Fix the error path. Reported-by: Krzysztof Kozlowski Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Krzysztof Kozlowski Acked-by: Laxman De

[PATCH v3 05/10] rtc: max77686: Add an indirection level to access RTC registers

2016-01-26 Thread Javier Martinez Canillas
The max77686 driver is generic enough that can be used for other Maxim RTC IP blocks but these might not have the same registers layout so instead of accessing the registers directly, add a map to translate offsets to the real registers addresses for each IP. Signed-off-by: Javier Martinez Canilla

[PATCH v3 03/10] rtc: max77686: Use usleep_range() instead of msleep()

2016-01-26 Thread Javier Martinez Canillas
Documentation/timers/timers-howto.txt suggest to use usleep_range() instead of msleep() for small msec (1ms - 20ms) since msleep() will often sleep for 20ms for any value in that range. This is fine in this case since 16ms is the _minimum_ delay required by max77686 for an RTC update but by using

[PATCH v3 02/10] rtc: max77686: Use ARRAY_SIZE() instead of current array length

2016-01-26 Thread Javier Martinez Canillas
It is better to use the ARRAY_SIZE() macro instead of the array length to avoid bugs if the array is later changed and the length not updated. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Krzysztof Kozlowski --- Changes in v3: - Add Krzysztof Kozlowski's

Re: [Xen-devel] [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-26 Thread Luis R. Rodriguez
On Tue, Jan 26, 2016 at 11:00 AM, Boris Ostrovsky wrote: > On 01/26/2016 01:46 PM, Andy Lutomirski wrote: >> >> On Tue, Jan 26, 2016 at 10:34 AM, Luis R. Rodriguez >> wrote: >>> >>> On Mon, Jan 25, 2016 at 05:28:08PM -0500, Boris Ostrovsky wrote: On 01/25/2016 04:21 PM, H. Peter Anvin w

[PATCH v3 09/10] ARM: exynos_defconfig: Remove MAX77802 RTC Kconfig symbol

2016-01-26 Thread Javier Martinez Canillas
The driver has been removed so the Kconfig symbol is not valid anymore. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes in v3: None Changes in v2: - Add Krzysztof Kozlowski's Reviewed-by tag to patch #9. arch/arm/configs/exynos_defconfig | 1 - 1 file cha

[PATCH v3 08/10] rtc: Remove Maxim 77802 driver

2016-01-26 Thread Javier Martinez Canillas
The max77686 RTC driver now supports the max77802 RTC as well so there's no need to have a separate driver anymore. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Acked-by: Laxman Dewangan --- Changes in v3: - Add Laxman Dewangan's Acked-by tag to patch #8. Changes

[PATCH v3 10/10] ARM: multi_v7_defconfig: Remove MAX77802 RTC Kconfig symbol

2016-01-26 Thread Javier Martinez Canillas
The driver has been removed so the Kconfig symbol is not valid anymore. Signed-off-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski --- Changes in v3: None Changes in v2: - Add Krzysztof Kozlowski's Reviewed-by tag to patch #10. arch/arm/configs/multi_v7_defconfig | 1 - 1 file

[PATCH v3 04/10] rtc: max77686: Use a driver data struct instead hard-coded values

2016-01-26 Thread Javier Martinez Canillas
The driver has some hard-coded values such as the minimum delay needed before a RTC update or the mask used for the sec/min/hour/etc registers. Use a data structure that contains these values and pass as driver data using the platform device ID table for each device. This allows to make the drive

[PATCH v3 06/10] rtc: max77686: Add max77802 support

2016-01-26 Thread Javier Martinez Canillas
The MAX77686 and MAX77802 RTC IP blocks are very similar with only these differences: 0) The RTC registers layout and addresses are different. 1) The MAX77686 use 1 bit of the sec/min/hour/etc registers as the alarm enable while MAX77802 has a separate register for that. 2) The MAX77686 RTCYE

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Christoph Lameter
On Tue, 26 Jan 2016, Mike Galbraith wrote: > > Ok so you are running an artificial benchmark that always gets the > > system running again when it decides to go idle? > > The benchmark does not alter the cycle expenditure per event. The real > world will pay the toll less frequently than the arti

[PATCH v3 07/10] rtc: max77686: Use dev_warn() instead of pr_warn()

2016-01-26 Thread Javier Martinez Canillas
It is better to use dev_*() log functions instead of pr_*() to print information about the device in the kernel log in a standardized way. This also allows to remove the local pr_fmt() defined macro. Suggested-by: Krzysztof Kozlowski Signed-off-by: Javier Martinez Canillas Acked-by: Laxman Dewa

[PATCH v3 00/10] rtc: max77686: Extend driver and add max77802 support

2016-01-26 Thread Javier Martinez Canillas
Hello, On a recent disussion [0] with Krzysztof Kozlowski and Laxman Dewangan, we came to the conclusion that the max77686 and max77802 RTC are almost the same with only a few differences so there shouldn't be two separate drivers and is better to extend max77686 driver and delete rtc-max77802. B

[PATCH 00/26] perf/core improvements and fixes

2016-01-26 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, this is on top of the perf-urgent-for-mingo branch I sent you today. - Arnaldo The following changes since commit 3f416f22d1e21709a631189ba169f76fd267b374: perf stat: Do not clean event's private stats (2016-01-26 11:15:11 -0300) are available in the

[PATCH 23/26] tools build: Allow subprojects select all feature checkers

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Wang Nan Put feature checkers not in original FEATURE_TESTS to a new list and allow subproject select all feature checkers by setting FEATURE_TESTS to 'all'. Signed-off-by: Wang Nan Cc: "David S. Miller" Cc: Alexei Starovoitov Cc: Brendan Gregg Cc: Daniel Borkmann Cc: He Kuang Cc: Ji

[PATCH 25/26] perf hists browser: Skip scripting when perf.data file not available

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The script and data-switch context menu are only meaningful when it deals with a data file. So add a check so that it cannot be shown when perf-top is run. Signed-off-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa , Cc: P

[PATCH 20/26] perf test: Fixup aliases checking in the 'vmlinux matches kallsyms' test

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo There are cases where looking at just the next and prev entries is not enough, like with: $ readelf -sW /usr/lib/debug/lib/modules/4.3.3-301.fc23.x86_64/vmlinux | grep 81065ec0 4979: 81065ec0 53 FUNC LOCAL DEFAULT 1 try_to_free_pud_page 4

[PATCH 13/26] perf sort: Provide a way to find out if per-thread bucketing is in place

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Now the UI browsers will be able to offer thread related operations only if the thread is part of the sort order in use, i.e. if hist_entry stats are all for a single thread. Signed-off-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern Cc:

[PATCH 16/26] perf hists browser: Offer 'Zoom into DSO'/'Map details' only when sort order has 'dso'

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim We can't offer a zoom into DSO when a bucket (struct hist_entry) may have samples for more than one DSO, i.e. when 'dso' is not part of the sort order, ditto for 'Map details', fix it. Signed-off-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David

[PATCH 14/26] perf hists browser: Only 'Zoom into thread' only when sort order has 'pid'

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim We can't offer a zoom into thread when a bucket (struct hist_entry) may have samples for more than one thread, i.e. when 'pid' is not part of the sort order, fix it. Signed-off-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern Cc: Jiri Ols

[PATCH 26/26] perf cpumap: Auto initialize cpu__max_{node,cpu}

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since it was always checking if the initialization was done, use that branch to do the initialization if not done already. With this we reduce the number of exported globals from these files. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic We

[PATCH 17/26] perf hists browser: Be a bit more strict about presenting CPU socket zoom

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim For consistency with the other sort order checks. Signed-off-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa , Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Wang Nan Link: http://lkml.kernel.org/r/1452960197-5323-9-git-se

[PATCH 18/26] perf hists browser: Offer non-symbol specific menu options for --sort without 'sym'

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Now that we check more strictly what each of the menu entries need, we can stop bailing out when 'sym' is not in the --sort order, instead we let each option be added if what it needs is present. This way, for instance, we can run scripts on all samples, see DSO map details wh

Re: [PATCH 00/23] mtd: rework ECC layout definition

2016-01-26 Thread Brian Norris
Hi Boris, On Mon, Dec 07, 2015 at 11:25:55PM +0100, Boris Brezillon wrote: > Hello, > > This patchset aims at getting rid of the nand_ecclayout limitations. > struct nand_ecclayout is defining fixed eccpos and oobfree arrays which > can only be increased by modifying the MTD_MAX_ECCPOS_ENTRIES_LA

[PATCH 15/26] perf hists browser: Only offer symbol scripting when a symbol is under the cursor

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When this feature was introduced a check was made if there was a resolved symbol under the cursor, it got lost in commit ea7cd5923309 ("perf hists browser: Split popup menu actions - part 2"), reinstate it. Signed-off-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc:

[PATCH 03/26] perf stat: Making several helper functions static

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need for the following functions to be global: perf_evsel__reset_stat_priv perf_evsel__alloc_stat_priv perf_evsel__free_stat_priv perf_evsel__alloc_prev_raw_counts perf_evsel__free_prev_raw_counts perf_evsel__alloc_stats They all ended up in util/stat.c, a

Re: [PATCH v8 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2016-01-26 Thread kbuild test robot
/MT8173-IOMMU-SUPPORT/20160126-201633 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux for-next config: arm-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross

[PATCH 01/26] perf pmu: Fix misleadingly indented assignment (whitespace)

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Markus Trippelsdorf One line in perf_pmu__parse_unit() is indented wrongly, leading to a warning (=> error) from gcc 6: util/pmu.c:156:3: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] sret = read(fd, alias->unit, UNIT_MAX_LEN); ^~~~

[PATCH 04/26] perf hists: Remove parent filter check in DSO filter function

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The --exclude-other option sets HIST_FILTER__PARENT bit and it's only set when a hist entry was created. DSO filters don't change this so no need to have the check in hists__filter_by_dso() IMHO. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Acked-by: Pekka Enberg Cc: An

Re: net: use-after-free in recvmmsg

2016-01-26 Thread Dmitry Vyukov
On Fri, Jan 22, 2016 at 10:16 PM, Arnaldo Carvalho de Melo wrote: > Em Fri, Jan 22, 2016 at 09:39:53PM +0100, Dmitry Vyukov escreveu: >> While running syzkaller fuzzer I've hit the following use-after-free: > > > >> Call Trace: >> [] __asan_report_load8_noabort+0x3e/0x40 >> mm/kasan/report.c:295

[PATCH 02/26] perf symbols: Do not read symbols/data from device files

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa With mem sampling we could get data source within mapped device file. Processing such sample would block during report phase on trying to read the device file. Chacking for device files and skip the processing if it's detected. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namh

[PATCH 05/26] perf hists: Cleanup filtering functions

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The hists__filter_by_xxx functions share same logic with different filters. Factor out the common code into the hists__filter_by_type. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Acked-by: Pekka Enberg Cc: Andi Kleen Cc: David Ahern Cc: Peter Zijlstra Cc: Stephane E

[PATCH 12/26] perf config: Document 'hist.percentage' variable in man page

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song Explain 'hist.percentage' variable. Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1452253193-30502-7-git-send-email-treeze.tae...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-config.txt | 17

v4.5-rc1 : arch/x86/kernel/hw_breakpoint.c:360:20: warning: ‘align’ may be used uninitialized

2016-01-26 Thread Toralf Förster
As a n00b I do wonder about he following warning: CC arch/x86/kernel/hw_breakpoint.o arch/x86/kernel/hw_breakpoint.c: In function ‘arch_validate_hwbkpt_settings’: arch/x86/kernel/hw_breakpoint.c:360:20: warning: ‘align’ may be used uninitialized in this function [-Wmaybe-uninitialized]

[PATCH 11/26] perf config: Document variables for 'annotate' section in man page

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song Explain 'annotate' section and its variables. 'hide_src_code', 'use_offset', 'jump_arrows', 'show_linenr', 'show_nr_jump' and 'show_total_period'. Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1452253193-30502-5-git-send-email-tre

[PATCH 09/26] perf config: Document variables for 'tui' and 'gtk' sections in man page

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song Explain 'tui' and 'gtk' sections and these variables. 'top', 'report' and 'annotate' Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1452253193-30502-3-git-send-email-treeze.tae...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 07/26] perf annotate: Rename 'colors.code' to 'colors.jump_arrows'

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song USe 'jump_arrows' config name instead of 'code' on 'colors' section. 'colors.code' config is only for jump arrows on assembly code listings i.e. │ ┌──jmp1333 │ │ xchg %ax,%ax │ │ mov%r15,%r10 │ └─→cmp%r15,%r14 But this config nam

[PATCH 08/26] perf config: Document variables for 'colors' section in man page

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song Explain 'colors' section and its variables, used for The variables for customizing the colors used in the output for the 'report', 'top' and 'annotate' in the TUI, those are: 'top', 'medium', 'normal', 'selected', 'jump_arrows', 'addr' and 'root'. Signed-off-by: Taeung Song C

Re: net: use-after-free in recvmmsg

2016-01-26 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 26, 2016 at 08:27:48PM +0100, Dmitry Vyukov escreveu: > On Fri, Jan 22, 2016 at 10:16 PM, Arnaldo Carvalho de Melo > wrote: > > Em Fri, Jan 22, 2016 at 09:39:53PM +0100, Dmitry Vyukov escreveu: > >> I am on commit 30f05309bde49295e02e45c7e615f73aa4e0ccc2 (Jan 20). > >> Seems to be add

Re: [PATCH 11/22] mtd: Fix dependencies for !HAS_IOMEM archs

2016-01-26 Thread Brian Norris
On Tue, Jan 26, 2016 at 12:00:37PM +0100, Geert Uytterhoeven wrote: > On Mon, Jan 25, 2016 at 11:24 PM, Richard Weinberger wrote: > > Not every arch has io memory. > > So, unbreak the build by fixing the dependencies. > > > > Signed-off-by: Richard Weinberger > > Acked-by: Geert Uytterhoeven A

[PATCH 10/26] perf config: Document 'buildid.dir' variable in man page

2016-01-26 Thread Arnaldo Carvalho de Melo
From: Taeung Song Explain 'buildid.dir' variable. Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1452253193-30502-4-git-send-email-treeze.tae...@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-config.txt | 15 +++

Re: [PATCH v2] Add hard/soft lockup debugger entry points

2016-01-26 Thread Jeff Merkey
On 1/26/16, kbuild test robot wrote: > Hi Jeff, > > [auto build test ERROR on v4.5-rc1] > [also build test ERROR on next-20160125] > [if your patch is applied to the wrong git tree, please drop us a note to > help improving the system] > > url: > https://github.com/0day-ci/linux/commits/Jeff-Merke

Re: [PATCH v2] mmc: omap_hsmmc: don't print uninitialized variables

2016-01-26 Thread Tony Lindgren
* Arnd Bergmann [160126 07:28]: > When DT based probing is used but the DMA request fails, the > driver will print uninitialized stack data from the rx_req > and tx_req variables, as indicated by this warning: > > drivers/mmc/host/omap_hsmmc.c: In function 'omap_hsmmc_probe': > drivers/mmc/host/o

Re: [PATCH] Remove logging for "Unsupported brightness interface"

2016-01-26 Thread Eric Curtin
On 23 January 2016 at 00:28, Eric Curtin wrote: > Message gets logged on machines that are well supported. > > Signed-off-by: Eric Curtin > --- > drivers/platform/x86/thinkpad_acpi.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/platform/x86/thinkpad_acpi.c > b/drivers/platform

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-26 Thread Linus Torvalds
On Tue, Jan 26, 2016 at 9:22 AM, Peter Zijlstra wrote: > > This is distinct from: That may be distinct, but: > struct foo *x = READ_ONCE(*ptr); > smp_read_barrier_depends(); > x->bar = 5; This case is complete BS. Stop perpetuating it. I already removed a number of bogus

UBSAN: Undefined behaviour in net/ipv4/fib_trie.c:1397:22 and UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:2

2016-01-26 Thread Toralf Förster
at a 32 nbit KVM image of a Gentoo Linux runniogn v4.5-rc1 - attached is /var/log/messages -- Toralf, pgp: C4EACDDE 0076E94E Jan 26 20:39:50 n22kvm-clone syslog-ng[1761]: syslog-ng starting up; version='3.7.2' Jan 26 20:39:50 n22kvm-clone /etc/init.d/net.eth0[2007]: config_eth0 not specified;

Re: [RFD] How to support KBUILD_OUTPUT for kselftest?

2016-01-26 Thread Kevin Hilman
Bamvor Jian Zhang writes: > I am trying to improve cross compiling support for kselftest recently. Right > now I am stuck when I want to enable KBUILD_OUTPUT(O=xxx). It exist in wiki of > kselftest[1]. Hope it is not a duplicated work. Just want to echo the need for this feature because trying t

Re: [PATCH v3 0/4] x86: sigcontext fixes, again

2016-01-26 Thread Cyrill Gorcunov
On Tue, Jan 26, 2016 at 11:22:43AM +0300, Cyrill Gorcunov wrote: > > > > With this applied, all of the x86 selftests pass on x86_64. That > > wasn't the case before -- ldt_gdt_64 was broken. > > I've been testing this series already. I guess ;) Anyway, gonna try > it one more shot at the evening

Re: [PATCH] staging: unisys: visornic: remove useless memset

2016-01-26 Thread Ben Romer
On Mon, 2016-01-25 at 20:22 +, Hugo Camboulive wrote: > alloc_etherdev() calls alloc_netdev_mqs(), which > already uses kzalloc/vzalloc. > > This clears a sparse warning : > drivers/staging/unisys/visornic/visornic_main.c:1366:15: warning: > memset with byte count of 1460112 > > Signed-off-by

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Josh Boyer
On Tue, Jan 26, 2016 at 12:20 PM, Serge Hallyn wrote: > Quoting Josh Boyer (jwbo...@fedoraproject.org): >> On Tue, Jan 26, 2016 at 9:46 AM, Austin S. Hemmelgarn >> wrote: >> > On 2016-01-26 09:38, Josh Boyer wrote: >> >> >> >> On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederman >> >> wrote: >> >

[PATCH v5] phy: rockchip-usb: add handler for usb-uart functionality

2016-01-26 Thread Heiko Stuebner
Most newer Rockchip SoCs provide the possibility to use a usb-phy as passthrough for the debug uart (uart2), making it possible to for example get console output without needing to open the device. This patch adds an early_initcall to enable this functionality conditionally via the commandline and

[PATCH] f2fs: use wq_has_sleeper for cp_wait wait_queue

2016-01-26 Thread Jaegeuk Kim
We need to use wq_has_sleeper including smp_mb to consider cp_wait concurrency. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index d0675e5..df4d4cc 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/dat

Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Mark
On Tue, January 26, 2016 06:00, Sudip Mukherjee wrote: > On Mon, Jan 25, 2016 at 04:06:40PM -0800, Dan Williams wrote: >> It appears devices requiring ZONE_DMA are still prevalent (see link >> below). For this reason the proposal to require turning off ZONE_DMA to >> enable ZONE_DEVICE is untenabl

Re: [PATCH] Revert "regmap-mmio: Use native endianness for read/write"

2016-01-26 Thread Mark Brown
On Tue, Jan 26, 2016 at 02:16:16PM +0100, Arnd Bergmann wrote: > So if we default to little-endian for all regmap-mmio mappings, and let > the driver or DT override that, and the regmap core already has the > logic to read the ordering from DT, should we remove the parsing of > the byteorder attr

Re: [PATCH 09/11] dma-buf/sync_timeline: de-stage sync_timeline

2016-01-26 Thread Gustavo Padovan
2016-01-26 Gustavo Padovan : > From: Gustavo Padovan > > De-stage the remaining bit of sync framework: sync_timeline and sw_sync > plus some debugging routines. > > Signed-off-by: Gustavo Padovan > --- > drivers/dma-buf/Kconfig| 10 + > drivers/dma-buf/Makefile

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Austin S. Hemmelgarn
On 2016-01-26 14:56, Josh Boyer wrote: On Tue, Jan 26, 2016 at 12:20 PM, Serge Hallyn wrote: Quoting Josh Boyer (jwbo...@fedoraproject.org): On Tue, Jan 26, 2016 at 9:46 AM, Austin S. Hemmelgarn wrote: On 2016-01-26 09:38, Josh Boyer wrote: On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederm

Re: [Intel-gfx] [PATCH v2] MAINTAINERS: Add "B:" preferred bug reporting method

2016-01-26 Thread Joe Perches
On Tue, 2016-01-26 at 15:33 +, Dave Gordon wrote: > On 26/01/16 14:42, Joe Perches wrote: > > On Tue, 2016-01-26 at 11:10 +0200, Jani Nikula wrote: > > > Different subsystems and drivers have different preferred ways of > > > receiving bug reports; mailing list or bugzillas at various > > > loc

[tip:x86/urgent] x86/mm: Fix types used in pgprot cacheability flags translations

2016-01-26 Thread tip-bot for Jan Beulich
Commit-ID: 3625c2c234ef66acf21a72d47a5ffa94f6c5ebf2 Gitweb: http://git.kernel.org/tip/3625c2c234ef66acf21a72d47a5ffa94f6c5ebf2 Author: Jan Beulich AuthorDate: Tue, 26 Jan 2016 04:15:18 -0700 Committer: Thomas Gleixner CommitDate: Tue, 26 Jan 2016 21:05:36 +0100 x86/mm: Fix types used i

Re: [PATCH] ARM: pxa: let PXA27x select PINCTRL

2016-01-26 Thread Robert Jarzmik
Masahiro Yamada writes: > Hi Robert, > > It's OK if you will this later. > Just disregard mine. Ok, great. I'll submit in the next 4 weeks I think. Cheers. -- Robert

[PATCH 1/2] iio: si7020: add support for Hoperf th06

2016-01-26 Thread Cristina Moraru
This patch adds support for Hoperf th06 humidity and temperature sensor as it uses same register definitions as si7020 th06 Datasheet: http://www.hoperf.com/upload/sensor/TH06.pdf Signed-off-by: Cristina Moraru --- Previously sent: http://marc.info/?l=linux-iio&m=145255305514311&w=2 drivers/ii

Re: [PATCH] clk: rockchip: add hclk_cpubus to the list of rk3188 critical clocks

2016-01-26 Thread Heiko Stuebner
Am Dienstag, 26. Januar 2016, 16:34:00 schrieb Alexander Kochetkov: > hclk_cpubus needs to keep running because it is needed for devices like > the rom, i2s0 or spdif to be accessible via cpu. Without that all > accesses to devices (readl/writel) return wrong data. So add it > to the list of critic

[PATCH 2/2] iio: si7005: add support for Hoperf th02

2016-01-26 Thread Cristina Moraru
This patch adds support for Hoperf th02 humidity and temperature sensor as it uses same register definitions as si7005 th02 Datasheet: http://www.anglia-live.com/netalogue/pdfs/hrf/datasheets/TH02_V1.1.pdf Signed-off-by: Cristina Moraru --- drivers/iio/humidity/Kconfig | 3 ++- drivers/iio/hu

Re: [PATCH 1/1] debugobjects: Allow bigger number of objects

2016-01-26 Thread Thomas Gleixner
On Fri, 22 Jan 2016, Christian Borntraeger wrote: > On my bigger s390 systems I always get > "Out of memory. ODEBUG disabled". Since the number of objects > is needed at compile time in the code, let's provide a Kconfig > variable to increase the number of static objects. How many do you need on

Re: tty: BUG: KASAN: out-of-bounds in tty_ioctl

2016-01-26 Thread Greg Kroah-Hartman
On Tue, Jan 26, 2016 at 11:02:54AM -0800, Peter Hurley wrote: > On 01/26/2016 10:58 AM, Sasha Levin wrote: > > On 01/26/2016 01:55 PM, Peter Hurley wrote: > >> Hi Sasha, > >> > >> Fix for this is in Greg's inbox. > > > > Thanks Peter! Could you give me the patch name please? I tried seeing > > if

Re: fork on processes with lots of memory

2016-01-26 Thread Mikael Pettersson
Felix von Leitner writes: > > Dear Linux kernel devs, > > > I talked to someone who uses large Linux based hardware to run a > > process with huge memory requirements (think 4 GB), and he told me that > > if they do a fork() syscall on that process, the whole system comes to > > standstill.

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