[PATCH 4/4] KVM: x86: Hyper-V tsc page setup

2016-09-19 Thread Paolo Bonzini
Lately tsc page was implemented but filled with empty values. This patch setup tsc page scale and offset based on vcpu tsc, tsc_khz and HV_X64_MSR_TIME_REF_COUNT value. The valid tsc page drops HV_X64_MSR_TIME_REF_COUNT msr reads count to zero which potentially improves performance. Signed-off-b

Re: Cannot load linux after recent efi-related changes

2016-09-19 Thread Matt Fleming
On Mon, 19 Sep, at 02:36:36PM, Mike Krinkin wrote: > On Mon, Sep 19, 2016 at 12:14:24PM +0100, Matt Fleming wrote: > > On Sun, 18 Sep, at 04:14:45AM, Mike Krinkin wrote: > > > > > > diff --git a/drivers/firmware/efi/memmap.c b/drivers/firmware/efi/memmap.c > > > index cd96086..34322d1 100644 > > >

[PATCH v4 0/3] usb: chipidea: imx: Add USB configuration for imx53

2016-09-19 Thread Fabien Lahoudere
Changes in V2: - Patches sent to early with bad contents Changes in V3: - Change subject - Split "configure imx for ULPI phy" for disable-oc code Changes in V4: - Fix "Change switch order" commit message - Indent switch/case (set case on the same column as sw

Re: [PATCH][v10] PM / hibernate: Verify the consistent of e820 memory map by md5 digest

2016-09-19 Thread Rafael J. Wysocki
On Fri, Sep 9, 2016 at 2:21 PM, Chen Yu wrote: > On some platforms, there is occasional panic triggered when trying to > resume from hibernation, a typical panic looks like: [cut] > @@ -211,10 +292,15 @@ int arch_hibernation_header_save(void *addr, unsigned > int max_size) > */ > int arch_hi

[PATCH v4 3/3] usb: chipidea: imx: Add binding to disable USB 60Mhz clock

2016-09-19 Thread Fabien Lahoudere
This binding allow to disable the internal 60Mhz clock for USB host2 and host3. Signed-off-by: Fabien Lahoudere --- drivers/usb/chipidea/ci_hdrc_imx.c | 2 ++ drivers/usb/chipidea/ci_hdrc_imx.h | 1 + drivers/usb/chipidea/usbmisc_imx.c | 13 + 3 files changed, 16 insertions(+) dif

[PATCH v4 2/3] usb: chipidea: imx: configure imx for ULPI phy

2016-09-19 Thread Fabien Lahoudere
In order to use ULPI phy with usb host 2 and 3, we need to configure controller register to enable ULPI features. Signed-off-by: Fabien Lahoudere --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 + drivers/usb/chipidea/ci_hdrc_imx.h | 1 + drivers/usb/chipidea/usbmisc_imx.c | 37

[PATCH v4 1/3] usb: chipidea: imx: Change switch order

2016-09-19 Thread Fabien Lahoudere
Each USB controller have different behaviour, so in order to avoid to have several "swicth(data->index)" and lock/unlock, we prefer to get the index switch and then test for features if they exist for this index. This patch also remove useless test of reg and val. Those two values cannot be NULL.

Re: [PATCH] mm/mempolicy.c: forbid static or relative flags for local NUMA mode

2016-09-19 Thread Michal Hocko
On Sun 18-09-16 13:29:43, Piotr Kwapulinski wrote: > The MPOL_F_STATIC_NODES and MPOL_F_RELATIVE_NODES flags are irrelevant > when setting them for MPOL_LOCAL NUMA memory policy via set_mempolicy. > Return the "invalid argument" from set_mempolicy whenever > any of these flags is passed along with

[PATCH v3 2/2] usb: dwc3: Wait for control tranfer completed when stopping gadget

2016-09-19 Thread Baolin Wang
When we change the USB function with configfs dynamically, we possibly met this situation: one core is doing the control transfer, another core is trying to unregister the USB gadget from userspace, we must wait for completing this control tranfer, or it will hang the controller to set the DEVCTRLH

[PATCH v3 1/2] usb: dwc3: gadget: Add disconnect checking when changing function dynamically

2016-09-19 Thread Baolin Wang
When system has stpped the gadget, we should avoid queuing any requests which will cause tranfer failed. Thus adding some disconnect checking to avoid this situation. Signed-off-by: Baolin Wang --- Changes since v2: - Move disconnect checking into dwc3_send_gadget_ep_cmd(). - Rename completion

[PATCH] MFD: do not assign already already assigned compatible of_nodes

2016-09-19 Thread Valentin Longchamp
If 2 similar cells have the same of_compatible (2 instances of the same functionality), they both are assigned the first found of_node with this compatible. In the below example, the pdev of both cells get the child@0 of_node. parent@0 { /* MFD devices with 2 cells reg = <0>; child

Re: [PATCH v2 2/3] powerpc/mm: allow memory hotplug into a memoryless node

2016-09-19 Thread Balbir Singh
On 15/09/16 06:06, Reza Arbab wrote: > Remove the check which prevents us from hotplugging into an empty node. > > This limitation has been questioned before [1], and judging by the > response, there doesn't seem to be a reason we can't remove it. No issues > have been found in light testing. >

"CodingStyle: Clarify and complete chapter 7" in docs-next (was Re: [PATCH 03/47] block-rbd: Adjust the position of a jump label in rbd_header_from_disk())

2016-09-19 Thread Ilya Dryomov
On Mon, Sep 19, 2016 at 11:37 AM, Jean Delvare wrote: > Hi Ilya, > > Sorry for the late answer. > > On Tue, 13 Sep 2016 20:31:57 +0200, Ilya Dryomov wrote: >> Sorry, navigating lkml.org archive is a pain, and I was expecting to >> see patch. Your points >> >> "The acceptance of an optional single

[PATCH] IB/rxe: avoid putting a large struct rxe_qp on stack

2016-09-19 Thread Arnd Bergmann
A race condition fix added an rxe_qp structure to the stack in order to be able to perform rollback in rxe_requester(), but the structure is large enough to trigger the warning for possible stack overflow: drivers/infiniband/sw/rxe/rxe_req.c: In function 'rxe_requester': drivers/infiniband/sw/rxe/

Re: [PATCH 1/3] mm: memcontrol: make per-cpu charge cache IRQ-safe for socket accounting

2016-09-19 Thread Michal Hocko
[Fixup Vladimir's email] On Wed 14-09-16 15:48:44, Johannes Weiner wrote: > From: Johannes Weiner > > During cgroup2 rollout into production, we started encountering css > refcount underflows and css access crashes in the memory controller. > Splitting the heavily shared css reference counter in

Re: [PATCH 2/3] cgroup: duplicate cgroup reference when cloning sockets

2016-09-19 Thread Michal Hocko
[Fixup Vladimir's email] I am not familiar with this code path to give my ack, unfortunatelly. On Wed 14-09-16 15:48:45, Johannes Weiner wrote: > From: Johannes Weiner > > When a socket is cloned, the associated sock_cgroup_data is duplicated > but not its reference on the cgroup. As a result,

Re: [PATCH 3/3] mm: memcontrol: consolidate cgroup socket tracking

2016-09-19 Thread Michal Hocko
[Fixup Vladimir's email] same here I do not feel familiar with the code enough to give my ack but Vladimir might be in a better position On Wed 14-09-16 15:48:46, Johannes Weiner wrote: > The cgroup core and the memory controller need to track socket > ownership for different purposes, but the tr

Re: Cherryview wake up events

2016-09-19 Thread Mika Westerberg
On Mon, Sep 19, 2016 at 01:21:17PM +0200, Johannes Stezenbach wrote: > Hi, > > Mika, I've been reading the thread about pinctrl-cherryview > interrupts, but I have some basic questions in understanding > the hardware and the relationship between ACPI and Linux drivers, > so I decided to start a ne

Re: [PATCH] x86/vdso: Add ARCH_MAP_VDSO_X32 if CONFIG_X86_X32_ABI.

2016-09-19 Thread Dmitry Safonov
On 09/17/2016 03:51 AM, Vinson Lee wrote: vdso_image_x32 is generated if CONFIG_X86_X32_ABI. This patch fixes this build error on CentOS 6.8 with gcc 4.4. LD init/built-in.o arch/x86/built-in.o: In function `do_arch_prctl': (.text+0x27466): undefined reference to `vdso_image_x32' arch/x8

[PATCH] nfs: add missing CONFIG_MIGRATION for nfs_migrate_page

2016-09-19 Thread Chao Yu
We'd better to use CONFIG_MIGRATION to cover nfs_migrate_page, otherwise when CONFIG_MIGRATION is not defined, unused nfs_migrate_page will still be compiled into kernel. Signed-off-by: Chao Yu --- fs/nfs/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/nfs/file.c b/fs/nfs/file.c

Re: [PATCH] dma-buf/sync_file: fix documentation error

2016-09-19 Thread Gustavo Padovan
Hi Emilio, 2016-09-19 Emilio López : > The ioctl name and description on the documentation block don't > match the ioctl being defined. This was probably overlooked while > renaming the ioctls during the sync file destaging. This patch > provides a more accurate description of what the ioctl actu

RE: [PATCH v6 0/9] Replay Protected Memory Block (RPMB) subsystem

2016-09-19 Thread Winkler, Tomas
\ > Subject: [PATCH v6 0/9] Replay Protected Memory Block (RPMB) subsystem > > > Few storage technologies such is EMMC, UFS, and NVMe support RPMB > hardware partition with common protocol and frame layout. > The RPMB partition cannot be accessed via standard block layer, but by a set > of specif

Re: [PATCH] iommu/vt-d: Fix the size calculation of pasid table

2016-09-19 Thread Joerg Roedel
[Cc'ing David] On Mon, Sep 12, 2016 at 10:49:11AM +0800, Xunlei Pang wrote: > According to the vt-d spec, the size of pasid (state) entry is 8B > which equals 3 in power of 2, the number of pasid (state) entries > is (ecap_pss + 1) in power of 2. > > Thus the right size of pasid (state) table in

Re: [PATCH 1/2] ptp_clock: allow for it to be optional

2016-09-19 Thread Jiri Benc
On Sun, 18 Sep 2016 23:51:09 -0400, Nicolas Pitre wrote: > And to make it possible for PTP to be configured out, the select statement > in the Kconfig entry for those ethernet drivers is changed from selecting > PTP_1588_CLOCK to PTP_1588_CLOCK_SELECTED whose purpose is to indicate the > default Kc

Re: [PATCH 1/2] ptp_clock: allow for it to be optional

2016-09-19 Thread Eugenia Emantayev
Reviewed-by: Eugenia Emantayev

Re: [PATCH 1/2] HID: input: ignore System Control application usages if not System Controls

2016-09-19 Thread Jiri Kosina
On Tue, 13 Sep 2016, Michel Hermier wrote: > I'm the original author of the 2011 bug, and I still own one of the > Microsoft keyboard with the issue. But not one that has a fix, but one > that have the exact same broken report descriptor. When I'll get some > time to test the patch, on success

Re: [PATCH] arm64/efi: efi_init error handling fix

2016-09-19 Thread Yisheng Xie
On 2016/9/13 19:18, Matt Fleming wrote: > On Wed, 07 Sep, at 07:15:48PM, Yisheng Xie wrote: >> >> >> On 2016/9/5 21:57, Matt Fleming wrote: >>> On Fri, 02 Sep, at 11:26:18AM, Will Deacon wrote: On Fri, Sep 02, 2016 at 06:18:39PM +0800, Xie Yisheng wrote: > From: Yisheng Xie > >>> >>

[PATCH] sbitmap: avoid maybe-uninitialized warning

2016-09-19 Thread Arnd Bergmann
The sbitmap code that has just been turned into a library module returns uninitialized data for sbitmap_weight(), as pointed out by gcc when building with -Wmaybe-uninitialized: lib/sbitmap.c: In function 'sbitmap_weight': lib/sbitmap.c:179:9: error: 'weight' may be used uninitialized in this func

Re: [PATCH] HID: alps: fix stick device not working after resume

2016-09-19 Thread Jiri Kosina
On Mon, 19 Sep 2016, Kai-Heng Feng wrote: > The stick device does not work after resume, add U1_SP_ABS_MODE flag can > make the device work after resume. Do you happen to have any more details on why it doesn't work without U1_SP_ABS_MODE? Or was this a pure guesswork? > > Signed-off-by: Kai-H

[PATCH] ovl: avoid setting uninitialized creds

2016-09-19 Thread Arnd Bergmann
If the call to ovl_copy_up() fails, we now call revert_creds on an uninitialized structure after a recent patch, as found by "gcc -Wmayby-uninitialized": fs/overlayfs/inode.c: In function 'ovl_open_maybe_copy_up': fs/overlayfs/inode.c:39:2: error: 'old_cred' may be used uninitialized in this func

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-19 Thread Matt Fleming
On Sun, 18 Sep, at 11:09:08PM, Waiman Long wrote: > On 09/14/2016 03:19 PM, Linus Torvalds wrote: > >On Wed, Sep 14, 2016 at 12:14 PM, Waiman Long wrote: > >>In the stack backtrace above, the kernel hadn't even reached SMP boot after > >>about 50s. That was extremely slow. I tried the 4.7.3 kernel

[PATCH] [media] platform: pxa_camera: add VIDEO_V4L2 dependency

2016-09-19 Thread Arnd Bergmann
Moving the pxa_camera driver from soc_camera lots the implied VIDEO_V4L2 Kconfig dependency, and building the driver without V4L2 results in a kernel that cannot link: drivers/media/platform/pxa_camera.o: In function `pxa_camera_remove': pxa_camera.c:(.text.pxa_camera_remove+0x10): undefined refer

Re: [PATCH 1/1 v6] ARM: imx: Added perf functionality to mmdc driver

2016-09-19 Thread Mark Rutland
Hi, This is generally looking good now. There are just a few issues remaining which I've noted below. On Wed, Sep 14, 2016 at 09:48:20AM -0500, Frank Li wrote: > From: Zhengyu Shen > +static bool mmdc_pmu_group_is_valid(struct perf_event *event) As a general note, you prefix other functions wi

[PATCH 0/2 v2] x86/tsc: Update tsc crystal_khz whitelist

2016-09-19 Thread Prarit Bhargava
native_calibrate_tsc() contains a whitelist of models that have a known TSC frequency that differs from the CPU frequency. This patchset switches the code from using magic numbers to using the defines in asm/intel-family.h and adds new processors to the whitelist. v2: peterz, fixed typo in patch

[PATCH 1/2 v2] x86,tsc: Use cpu id defines from intel-family.h

2016-09-19 Thread Prarit Bhargava
asm/intel-family.h contains defines for cpu ids which should be used in the native_calibrate_tsc() function. Signed-off-by: Prarit Bhargava Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Rafael Aquini Cc: "Peter Zijlstra (Intel)" Cc: Andy Lutomirski Cc: Len

[PATCH 2/2 v2] x86/tsc: Add additional Intel CPU models to crystal_khz whitelist

2016-09-19 Thread Prarit Bhargava
In commit aa297292d708 ("x86/tsc: Enumerate SKL cpu_khz and tsc_khz via CPUID"), the kernel added support for Intel processors which had a different CPU base-frequency and TSC frequency. The turbostat utility has been updated with KBL and SKX processors, and they should also be added to the crysta

[PATCH] drm: include linux/seq_file.h as needed

2016-09-19 Thread Arnd Bergmann
The addition of the debugfs info created references to seq_puts() and seq_printf(), but relied on the debugfs header to be included implicitly, which apparently doesn't happen all the time, as seen from this randconfig build output: drivers/gpu/drm/drm_dp_helper.c: In function 'drm_dp_downstream_d

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-19 Thread Austin S. Hemmelgarn
On 2016-09-17 01:14, James Bottomley wrote: On Fri, 2016-09-16 at 13:06 -0400, Austin S. Hemmelgarn wrote: On 2016-09-16 12:21, James Bottomley wrote: On Fri, 2016-09-16 at 11:53 -0400, Austin S. Hemmelgarn wrote: On 2016-09-16 07:16, Hannes Reinecke wrote: On 09/15/2016 10:52 PM, Jason A. Do

[patch v2] i2c: add master driver for mellanox systems

2016-09-19 Thread vadimp
From: Vadim Pasternak Device driver for Mellanox I2C controller logic, implemented in Lattice CPLD device. Device supports: - Master mode - One physical bus - Polling mode The Kconfig currently controlling compilation of this code is: drivers/i2c/busses/Kconfig:config I2C_MLXCPLD Signed-off-

[PATCH 01/61] perf symbols: Do not open device files again

2016-09-19 Thread Jiri Olsa
Moving the regular file check into the entry of the dso__read_binary_type_filename function. This way we can eliminate some calls and extend the file check for all cases. Link: http://lkml.kernel.org/n/tip-np802m7jwzd7fu09vx2tp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/dso.

[PATCHv3 00/61] perf c2c: Add new tool to analyze cacheline contention on NUMA systems

2016-09-19 Thread Jiri Olsa
hi, sending new version of c2c patches (v3) originally posted in here: http://lwn.net/Articles/588866/ I took the old set and reworked it to fit into current upstream code. It follows the same logic as original patch and provides (almost) the same stdio interface. In addition new TUI interface w

[PATCH 21/61] perf c2c report: Decode c2c_stats for hist entries

2016-09-19 Thread Jiri Olsa
Decoding and storing c2c_stats for each hist entry. Changing related function to work with c2c_* objects. Link: http://lkml.kernel.org/n/tip-obz2fu3801wuayz4rnteg...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 38 ++ 1 file changed,

[PATCH 10/61] perf tools: Make several display functions global

2016-09-19 Thread Jiri Olsa
Will be used from external places in following patches. Link: http://lkml.kernel.org/n/tip-w5tpcitxjvufkndq0x5eh...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/browsers/hists.c | 2 +- tools/perf/ui/hist.c | 2 +- tools/perf/util/hist.h | 2 ++ 3 files changed, 4

[PATCH 19/61] perf c2c report: Add sample processing

2016-09-19 Thread Jiri Olsa
Adding basic sample processing specific hist_entry allocation callbacks (via hists__add_entry_ops). Overloading 'struct hist_entry' object with new 'struct c2c_hist_entry'. The new hist entry object will carry specific stats and nested hists objects. Link: http://lkml.kernel.org/n/tip-ksr9smz4o1t

[PATCH 09/61] perf tools: Make several sorting functions global

2016-09-19 Thread Jiri Olsa
Will be used from external places in following patches. Link: http://lkml.kernel.org/n/tip-4jyvw21cac7yuqsdkzdo5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/sort.c | 6 +++--- tools/perf/util/sort.h | 6 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/too

[PATCH 03/61] perf tools: Make hist_entry__snprintf work over struct perf_hpp_list

2016-09-19 Thread Jiri Olsa
Make hist_entry__snprintf to take perf_hpp_list as an argument instead of using he->hists->hpp_list. This way we can display arbitrary list of entries regardles of the hists setup, which will be useful in following patches. Link: http://lkml.kernel.org/n/tip-j2sizkyglam3narmndlj9...@git.kernel.org

[PATCH 20/61] perf c2c report: Add cacheline hists processing

2016-09-19 Thread Jiri Olsa
Store cacheline related entries in nested hist object for each cacheline data. Nested entries are sorted by 'offset' within related cacheline. We will allow specific sort keys to be configured for nested cacheline data entries in following patches. Link: http://lkml.kernel.org/n/tip-37f751rgqamq9

[PATCH 08/61] perf tools: Make output_field_add and sort_dimension__add global

2016-09-19 Thread Jiri Olsa
Will be used from external places in following patches. Link: http://lkml.kernel.org/n/tip-15488tnxcj4rtteksy79y...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/sort.c | 8 tools/perf/util/sort.h | 4 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/too

[PATCH 11/61] perf tools: Make hist_entry__snprintf function global

2016-09-19 Thread Jiri Olsa
Will be used from external places in following patches. Link: http://lkml.kernel.org/n/tip-uip4x9u74t3dcz8sh4mei...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/stdio/hist.c | 4 ++-- tools/perf/util/hist.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/t

[PATCH 15/61] perf c2c: Add report subcommand

2016-09-19 Thread Jiri Olsa
Adding c2c report subcommand. It reads the perf.data and displays shared data analysis. This patch adds report basic wirings. It gets fully implemented in following patches. Link: http://lkml.kernel.org/n/tip-8smklfkveeyv1pahfxv2r...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builti

[RFC] Arm64 boot fail with numa enable in BIOS

2016-09-19 Thread Yisheng Xie
hi all, When I enable NUMA in BIOS for arm64, it failed to boot on v4.8-rc4-162-g071e31e. For the crash log, it seems caused by error number of cpumask. Any ideas about it? Thanks. The related config and detail dmesg can be seen in the attachment. --- crash messages --- [1.279155] -

[PATCH 24/61] perf c2c report: Add offset dimension key

2016-09-19 Thread Jiri Olsa
Adding cacheline offset dimension key support. It displays cacheline offset as hex number. Link: http://lkml.kernel.org/n/tip-m0424ye98lqveg5nopto8...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 35 +++ 1 file changed, 35 insertions(+)

[PATCH 26/61] perf c2c report: Add hitm related dimension keys

2016-09-19 Thread Jiri Olsa
Adding 5 hitm related dimension key wrappers. First 3 are to be displayed in the main cachelines overall output: tot_hitm, lcl_hitm, rmt_hitm The latter 2 are to be displayed within single cacheline output: cl_rmt_hitm, cl_lcl_hitm They all display bare numbers of remote/local/total HITMs

[PATCH 56/61] perf c2c report: Add cacheline index entry

2016-09-19 Thread Jiri Olsa
It's convenient to have an index for each cacheline to help discussions about results over the phone. Add new 'Index' and 'Num' fields in main and single cacheline tables. $ perf c2c report = Shared Data Cache Line Table ===

[PATCH 57/61] perf c2c report: Add support to manage symbol name length

2016-09-19 Thread Jiri Olsa
The width of symbol and source line entries could get really long and not convenient to display. Adding support to display only patrt of such strings and possibility to switch to full length by uing --full-symbols option or 's' key in TUI browser. Link: http://lkml.kernel.org/n/tip-yxf5hfteyfaoi8x

[PATCH 27/61] perf c2c report: Add stores related dimension keys

2016-09-19 Thread Jiri Olsa
Adding 5 stores related dimension key wrappers. First 3 are to be displayed in the main cachelines overall output: stores, stores_l1hit, stores_l1miss The latter 2 are to be displayed within single cacheline output: cl_stores_l1hit, cl_stores_l1miss They all display bare numbers of stores

[PATCH 52/61] perf c2c report: Limit the cachelines table entries

2016-09-19 Thread Jiri Olsa
Add a limit for entries number of the cachelines table entries. By default now it's the 0.0005% minimum of remote HITMs. Also display only cachelines with remote hitm or store data. Link: http://lkml.kernel.org/n/tip-inykbom2f19difvsu1e18...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/per

[PATCH 51/61] perf c2c report: Allow to report callchains

2016-09-19 Thread Jiri Olsa
Add --call-graph option to properly setup callchain code. Adding default settings to display callchains whenever they are stored in the perf.data. Link: http://lkml.kernel.org/n/tip-inykbom2f19difvsu1e18...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 67 +++

[PATCH 49/61] perf c2c report: Add shared cachelines stats stdio output

2016-09-19 Thread Jiri Olsa
Display global shared cachelines related stats table as part of the stdio output or when --stats option is speicified: $ perf c2c report --stats ... = Global Shared Cache Line Event Information ==

[PATCH 50/61] perf c2c report: Add c2c related stats stdio output

2016-09-19 Thread Jiri Olsa
Display c2c related configuration options/setup. So far it's output of monitored events: $ perf c2c report --stats ... = c2c details = Events:

[PATCH 47/61] perf c2c report: Add cacheline browser

2016-09-19 Thread Jiri Olsa
Adding single cacheline TUI browser. It triggers when you press 'd' in the main browser on the specific cacheline. It allows to navigate through cacheline's offsets and display callchains (implemented in following patches). Link: http://lkml.kernel.org/n/tip-fovjwgyusv3rz5qxk3hna...@git.kernel.or

[PATCH 55/61] perf c2c report: Recalc width of global sort entries

2016-09-19 Thread Jiri Olsa
Using resort callbacks to compute the columns' width. Computing only the global ones, c2c entries have fixed width only. Link: http://lkml.kernel.org/n/tip-zyayvq2u3dzyf3y7i9jza...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 12 1 file changed, 12 inserti

[PATCH 42/61] perf c2c report: Add src line sort key

2016-09-19 Thread Jiri Olsa
Adding source line dimension key wrapper. It is to be displayed in the single cacheline output: cl_srcline It displays source line related to the code address that accessed cacheline. It's a wrapper to global srcline sort entry. Link: http://lkml.kernel.org/n/tip-cmnzgm37mjz56ozsg4mnb...@git.

[PATCH 39/61] perf c2c report: Add node sort key

2016-09-19 Thread Jiri Olsa
Adding node dimension key wrapper. It is to be displayed in the single cacheline output: node It displays nodes hits related to cacheline accesses. The node filed comes in 3 flavors: - node IDs separated by ',' - node IDs with stats for each ID, in following format: Node{cpus %hitms

[PATCH 59/61] perf c2c report: Add help windows

2016-09-19 Thread Jiri Olsa
Adding help windows to display key/action mappings for both browsers. Link: http://lkml.kernel.org/n/tip-zni4apopx6a9eyxsosm1e...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/pe

[PATCH 22/61] perf c2c report: Add header macros

2016-09-19 Thread Jiri Olsa
Adding helping macros to define header objects. It will be used in following patches, that add new dimensions. The c2c report will support 2 line headers, hence we only define line[0/1] in macros. Link: http://lkml.kernel.org/n/tip-tkgrfvlw0m5awb75fk2sv...@git.kernel.org Signed-off-by: Jiri Olsa

Re: [PATCH] net: phy: Ensure the state machine is called when phy is UP

2016-09-19 Thread Nicolas Ferre
Hi all, I come back to this thread to re-start the conversation as I still have the issue... Le 16/04/2016 à 00:45, Alexandre Belloni a écrit : > On 16/04/2016 at 00:30:26 +0200, Andrew Lunn wrote : >> On Sat, Apr 16, 2016 at 12:17:11AM +0200, Alexandre Belloni wrote: >>> On 16/04/2016 at 00:05:

[PATCH 60/61] perf c2c: Add man page and credits

2016-09-19 Thread Jiri Olsa
Adding man page for c2c command and credits to builtin-c2c.c file. Link: http://lkml.kernel.org/n/tip-twbp391v8v9f5idp584hl...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-c2c.txt | 276 ++ tools/perf/builtin-c2c.c | 11 +

Re: [PATCH] kvm: x86: correctly reset dest_map->vector when restoring LAPIC state

2016-09-19 Thread Joerg Roedel
On Wed, Sep 14, 2016 at 11:48:32PM +0200, Paolo Bonzini wrote: > When userspace sends KVM_SET_LAPIC, KVM schedules a check between > the vCPU's IRR and ISR and the IOAPIC redirection table, in order > to re-establish the IOAPIC's dest_map (the list of CPUs servicing > the real-time clock interrupt

[PATCH 53/61] perf c2c report: Add support to choose local HITMs

2016-09-19 Thread Jiri Olsa
Currently we sort and limit displayed data based on the remote HITMs count. Adding support to switch to local HITMs via --display option: --display ... lcl,rmt Link: http://lkml.kernel.org/n/tip-inykbom2f19difvsu1e18...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-

[PATCH 48/61] perf c2c report: Add global stats stdio output

2016-09-19 Thread Jiri Olsa
Display global stats table as part of the stdio output or when --stats option is speicified: $ perf c2c report --stats = Trace Event Information = Total records

Re: [REGRESSION? v4.8] i2c-core: acpi_i2c_get_info() touches non-existent devices

2016-09-19 Thread Mika Westerberg
On Mon, Sep 19, 2016 at 11:48:07AM +0300, Mika Westerberg wrote: > On Mon, Sep 19, 2016 at 12:30:53AM +0200, Nicolai Stange wrote: > > Hi, > > > > I'm encountering the following: > > > > [ 10.409490] ERROR: Unable to locate IOAPIC for GSI 37 > > > > Note that the system works fine, so it's a "

[PATCH 61/61] perf tools: Fix width computation for srcline sort entry

2016-09-19 Thread Jiri Olsa
Adding header size to width computation for srcline sort entry, because it's possible to get empty data with ':0' which set width of 2 which is lower than width needed to display column header. Link: http://lkml.kernel.org/n/tip-twbp391v8v9f5idp584hl...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 58/61] perf c2c report: Iterate node display in browser

2016-09-19 Thread Jiri Olsa
Adding TUI support to switch between Node entry versions in real time with 'n' key. Link: http://lkml.kernel.org/n/tip-xqbw4h4dxig54wff7fd14...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/builtin-c2c.c b/

[PATCH 46/61] perf c2c report: Add main browser

2016-09-19 Thread Jiri Olsa
Adding the main cachelines TUI browser. It allows to navigate through cachelines and disaplay their details and callchains (implemented in following patches). Link: http://lkml.kernel.org/n/tip-inykbom2f19difvsu1e18...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c |

[PATCH 54/61] perf c2c report: Allow to set cacheline sort fields

2016-09-19 Thread Jiri Olsa
Allowing user to configure the way the single cacheline data are sorted after being sorted by offset. Adding 'c' option to specify sorting fields for single cacheline: -c, --coalesce coalesce fields: pid,tid,iaddr,dso It's allowed to use following combination of fi

[PATCH 45/61] perf c2c report: Add stdio output support

2016-09-19 Thread Jiri Olsa
Adding the --stdio option output support. The output tables are dumped directly to the stdio. $ perf c2c report = Shared Data Cache Line Table = # # Total

[PATCH 33/61] perf c2c report: Add hitm percent sort key

2016-09-19 Thread Jiri Olsa
Adding HITM percent dimension key wrapper. It is to be displayed in the main cachelines overall output: percent_hitm It displays HITMs percentage for cacheline. It counts remote HITMs at the moment, but it is changed later to support local as well, based on the sort configuration. Link: http

Re: [PATCH 5/7] openrisc: Support both old (or32) and new (or1k) toolchain

2016-09-19 Thread Guenter Roeck
On 09/19/2016 02:11 AM, Stafford Horne wrote: On Mon, 19 Sep 2016, Guenter Roeck wrote: On 09/18/2016 11:02 PM, Stafford Horne wrote: On Sun, 18 Sep 2016, Guenter Roeck wrote: > Tested-by: Guenter Roeck > > If you plan to handle openrisc going forward, it would be great if you > cou

[PATCH 31/61] perf c2c report: Add total record sort key

2016-09-19 Thread Jiri Olsa
Adding total record dimension key wrapper. It is to be displayed in the main cachelines overall output: tot_recs It displays sum of all cachelines accesses. Link: http://lkml.kernel.org/n/tip-wojujik7zzen770mxn295...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 64

[PATCH 18/61] perf c2c report: Fallback to standard dimensions

2016-09-19 Thread Jiri Olsa
Fallback to standard dimensions in case we don't find the dimension within c2c ones. Link: http://lkml.kernel.org/n/tip-w3yrcawal0dr1w9pcu4gy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/t

[PATCH 28/61] perf c2c report: Add loads related dimension keys

2016-09-19 Thread Jiri Olsa
Adding 3 loads related dimension key wrappers. They are to be displayed in the main cachelines overall output: ld_fbhit, ld_l1hit, ld_l2hit They all display bare numbers of loads for FB (Fill Buffer), L1 and L2 cache. Link: http://lkml.kernel.org/n/tip-wxrzhy74zl8fvkvgjae3w...@git.kernel.org

[PATCH 38/61] perf c2c report: Add symbol and dso sort keys

2016-09-19 Thread Jiri Olsa
Adding symbol and dso dimension key wrappers. They are to be displayed in the single cacheline output: symbol, dso They are wrappers for global sort_sym and sort_dso sort entries with c2c specific headers. Link: http://lkml.kernel.org/n/tip-6742e6g0r7n63y5wc4rrg...@git.kernel.org Signed-off-b

[PATCH 34/61] perf c2c report: Add hitm/store percent related sort keys

2016-09-19 Thread Jiri Olsa
Adding hitm/store percent dimension key wrappers. They are to be displayed in the single cacheline output: percent_rmt_hitm, percent_lcl_hitm, percent_stores_l1hit, percent_stores_l1miss They display percentage of HITMs/stores for specific offset in the cacheline. Link: http://lkml.kernel.or

[PATCH 36/61] perf c2c report: Add pid sort key

2016-09-19 Thread Jiri Olsa
Adding pid dimension key wrapper. It is to be displayed in the single cacheline output: pid We currently don't have a single 'pid' sort/display entry, which would output just pid number, hence adding it into c2c code. Link: http://lkml.kernel.org/n/tip-3o23qrspxc99b04ci1swl...@git.kernel.org

[PATCH 37/61] perf c2c report: Add tid sort key

2016-09-19 Thread Jiri Olsa
Adding tid dimension key wrapper. It is to be displayed in the single cacheline output: tid It's a wrapper for global sort_thread sort entry with c2c specific header. Link: http://lkml.kernel.org/n/tip-fr0socae5skzvz5qbkl85...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c

Re: [PATCH v2 0/3] Armada 7k/8k CP110 system controller fixes

2016-09-19 Thread Marcin Wojtas
Hi Stephen, Did you have any chance to take a look at v2? Do you have any remarks? Best regards. Marcin 2016-09-06 19:31 GMT+02:00 Marcin Wojtas : > Hi, > > Here is the second version of the patchset adding fixes to CP110 > system controller clock driver. As requested during review, > an additio

[PATCH 41/61] perf c2c report: Add cpu cnt sort key

2016-09-19 Thread Jiri Olsa
Adding cpu count dimension key wrapper. It is to be displayed in the single cacheline output: cpucnt It displays number of distinct cpus that hit cacheline. Link: http://lkml.kernel.org/n/tip-ib2kdwam52fby9u2k3ij6...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 23

[PATCH 23/61] perf c2c report: Add dcacheline dimension key

2016-09-19 Thread Jiri Olsa
Adding dcacheline dimension key support. It displays cacheline address as hex number. Using c2c wrapper to standard 'dcacheline' object to defined own header and simple (just address) cacheline output. Link: http://lkml.kernel.org/n/tip-j5enppr8e7h27nskqhgq3...@git.kernel.org Signed-off-by: Jiri

[PATCH 30/61] perf c2c report: Add llc load miss dimension key

2016-09-19 Thread Jiri Olsa
Adding LLC load miss dimension key wrapper. It is to be displayed in the main cachelines overall output: ld_llcmiss It displays bare number of LLC misses for cacheline. Link: http://lkml.kernel.org/n/tip-wojujik7zzen770mxn295...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin

[PATCH 43/61] perf c2c report: Setup number of header lines for hists

2016-09-19 Thread Jiri Olsa
Allow to setup number of header lines for c2c hists objects. Link: http://lkml.kernel.org/n/tip-4ilsf0ulubrd4y96g7tnp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/tools/perf/builti

[PATCH 29/61] perf c2c report: Add llc and remote loads related dimension keys

2016-09-19 Thread Jiri Olsa
Adding 2 LLC load related dimension key wrappers. They are to be displayed in the main cachelines overall output: ld_lclhit, ld_rmthit They display bare numbers of LLC and remote loads for cacheline. Link: http://lkml.kernel.org/n/tip-ahjg0voaufefboemjuj9y...@git.kernel.org Signed-off-by: Jir

[PATCH 40/61] perf c2c report: Add stats related sort keys

2016-09-19 Thread Jiri Olsa
Adding statistic dimension key wrapper. It is to be displayed in the single cacheline output: median, mean_rmt, mean_lcl, mean_load, stddev It displays statistics hits related to cacheline accesses. Link: http://lkml.kernel.org/n/tip-m1r4uc9lcykf1jhpvwk2g...@git.kernel.org Signed-off-by: Jiri

[PATCH 35/61] perf c2c report: Add dram related sort keys

2016-09-19 Thread Jiri Olsa
Adding dram related dimension key wrappers. They are to be displayed in the main cachelines overall output: dram_lcl, dram_rmt They display DRAM rmt/lcl access numbers for specific cacheline. Link: http://lkml.kernel.org/n/tip-tl3qqi9ehk6g1fla4z7y0...@git.kernel.org Signed-off-by: Jiri Olsa

[PATCH 25/61] perf c2c report: Add iaddr dimension key

2016-09-19 Thread Jiri Olsa
Adding iaddr dimension key support. It displays code address (as hex number) responsible for the accesses. Using c2c wrapper to standard 'symbol_iaddr' object to define own header and simple (just address) code address output. Link: http://lkml.kernel.org/n/tip-rhshygbst6kr75kju0muw...@git.kernel

linux-next: new scheduler messages span: 0-15 (max cpu_capacity = 589) when starting KVM guests

2016-09-19 Thread Christian Borntraeger
Dietmar, Ingo, Tejun, since commit cd92bfd3b8cb0ec2ee825e55a3aee704cd55aea9 sched/core: Store maximum per-CPU capacity in root domain I get tons of messages from the scheduler like [..] span: 0-15 (max cpu_capacity = 589) span: 0-15 (max cpu_capacity = 589) span: 0-15 (max cpu_capacity = 589)

[PATCH 44/61] perf c2c report: Set final resort fields

2016-09-19 Thread Jiri Olsa
Set resort/display fields for both cachelines and single cacheline displays. Cachelines are sorted on: rmt_hitm will be made configurable in following patches. Following fields are display for cachelines: dcacheline tot_recs percent_hitm tot_hitm,lcl_hitm,rmt_hitm stores,stores_l1hit

[PATCH 32/61] perf c2c report: Add total loads sort key

2016-09-19 Thread Jiri Olsa
Adding total loads dimension key wrapper. It is to be displayed in the main cachelines overall output: tot_loads It displays sum of all load accesses for cacheline. Link: http://lkml.kernel.org/n/tip-czd17qsh5u5z0yc1estz9...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-c2c

[PATCH 12/61] perf tools: Make hists__fprintf_headers function global

2016-09-19 Thread Jiri Olsa
Will be used from external places in following patches. Link: http://lkml.kernel.org/n/tip-ydj205bfen9fgflnv39hn...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/stdio/hist.c | 2 +- tools/perf/util/hist.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools

[PATCH 07/61] perf tools: Make reset_dimensions global

2016-09-19 Thread Jiri Olsa
Will be used from external places in following patches. Link: http://lkml.kernel.org/n/tip-7garqfmx5izaqysde9jik...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/sort.c | 2 +- tools/perf/util/sort.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/ut

  1   2   3   4   5   6   7   8   9   10   >