13 Feb, 2019

1 commit

  • [ Upstream commit 663546903c835fe46308b1b1e53d32d1f2b33da9 ]

    This script is supposed to be allowed to run with regular user
    privileges if a previously captured trace is being post processed.

    Commit fbe313884d7d (tools/power/x86/intel_pstate_tracer: Free the
    trace buffer memory) introduced a bug that breaks that option.

    Commit 35459105deb2 (tools/power/x86/intel_pstate_tracer: Add
    optional setting of trace buffer memory allocation) moved the code
    but kept the bug.

    This patch fixes the issue.

    Fixes: 35459105deb2 (tools/power/x86/intel_pstate_tracer: Add optional ...)
    Signed-off-by: Doug Smythies
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Sasha Levin

    Doug Smythies
     

01 Dec, 2018

1 commit


14 Nov, 2018

2 commits

  • [ Upstream commit 8c22e2f695920ebd94f9a53bcf2a65eb36d4dba1 ]

    The msr_pstate data is only 63 bits long and should be 64 bits.

    Add in the missing bit from res1 for AMD Family 0x17.

    Reference: https://www.amd.com/system/files/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf, page 138.

    Signed-off-by: Prarit Bhargava
    Cc: Shuah Khan
    Cc: Stafford Horne
    Signed-off-by: Shuah Khan (Samsung OSG)
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    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 because of a divide by zero (cof = fid/did). This
    can be prevented by checking the enable bit in the PStateDef MSR before
    calculating cof. By doing this the value of pstate[i] remains zero and
    the value can be tested before displaying the active Pstates.

    Check the enable bit in the PstateDef register for all supported families
    and only print out enabled Pstates.

    Signed-off-by: Prarit Bhargava
    Cc: Shuah Khan
    Cc: Stafford Horne
    Signed-off-by: Shuah Khan (Samsung OSG)
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    Prarit Bhargava
     

24 Aug, 2018

1 commit

  • Almost all files in the kernel are either plain text or UTF-8 encoded. A
    couple however are ISO_8859-1, usually just a few characters in a C
    comments, for historic reasons.

    This converts them all to UTF-8 for consistency.

    Link: http://lkml.kernel.org/r/20180724111600.4158975-1-arnd@arndb.de
    Signed-off-by: Arnd Bergmann
    Acked-by: Simon Horman [IPVS portion]
    Acked-by: Jonathan Cameron [IIO]
    Acked-by: Michael Ellerman [powerpc]
    Acked-by: Rob Herring
    Cc: Joe Perches
    Cc: Arnd Bergmann
    Cc: Samuel Ortiz
    Cc: "David S. Miller"
    Cc: Rob Herring
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     

29 Jul, 2018

1 commit

  • Pull turbostat utility fixes for 4.18 from Len Brown:

    "Three of them are for regressions since Linux-4.17"

    * 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
    tools/power turbostat: version 18.07.27
    tools/power turbostat: Read extended processor family from CPUID
    tools/power turbostat: Fix logical node enumeration to allow for non-sequential physical nodes
    tools/power turbostat: fix x2apic debug message output file
    tools/power turbostat: fix bogus summary values
    tools/power turbostat: fix -S on UP systems
    tools/power turbostat: Update turbostat(8) RAPL throttling column description

    Rafael J. Wysocki
     

28 Jul, 2018

2 commits


27 Jul, 2018

3 commits

  • turbostat fails on some multi-package topologies because the logical node
    enumeration assumes that the nodes are sequentially numbered,
    which causes the logical numa nodes to not be enumerated, or enumerated incorrectly.

    Use a more robust enumeration algorithm which allows for non-seqential physical nodes.

    Signed-off-by: Prarit Bhargava
    Signed-off-by: Len Brown

    Prarit Bhargava
     
  • A recently added x2apic debug message was hard-coded to stderr.
    That doesn't work with "-o outfile".

    Signed-off-by: Len Brown

    Len Brown
     
  • This patch fixes a regression introduced in

    commit 8cb48b32a5de ("tools/power turbostat: track thread ID in cpu_topology")

    Turbostat uses incorrect cores number ('topo.num_cores') - its value is count
    of logical CPUs, instead of count of physical cores. So it is twice as large as
    it should be on a typical Intel system. For example, on a 6 core Xeon system
    'topo.num_cores' is 12, and on a 52 core Xeon system 'topo.num_cores' is 104.

    And interestingly, on a 68-core Knights Landing Intel system 'topo.num_cores'
    is 272, because this system has 4 logical CPUs per core.

    As a result, some of the turbostat calculations are incorrect. For example,
    on idle 52-core Xeon system when all cores are ~99% in Core C6 (CPU%c6), the
    summary (very first) line shows ~48% Core C6, while it should be ~99%.

    This patch fixes the problem by fixing 'topo.num_cores' calculation.

    Was:

    1. Init 'thread_id' for all CPUs to -1
    2. Run 'get_thread_siblings()' which sets it to 0 or 1
    3. Increment 'topo.num_cores' when thread_id != -1 (bug!)

    Now:

    1. Init 'thread_id' for all CPUs to -1
    2. Run 'get_thread_siblings()' which sets it to 0 or 1
    3. Increment 'topo.num_cores' when thread_id is not 0

    I did not have a chance to test this on an AMD machine, and only tested on a
    couple of Intel Xeons (6 and 52 cores).

    Reported-by: Vladislav Govtva
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: Len Brown

    Artem Bityutskiy
     

21 Jul, 2018

1 commit


18 Jul, 2018

1 commit


21 Jun, 2018

9 commits


16 Jun, 2018

1 commit

  • As we move stuff around, some doc references are broken. Fix some of
    them via this script:
    ./scripts/documentation-file-ref-check --fix

    Manually checked if the produced result is valid, removing a few
    false-positives.

    Acked-by: Takashi Iwai
    Acked-by: Masami Hiramatsu
    Acked-by: Stephen Boyd
    Acked-by: Charles Keepax
    Acked-by: Mathieu Poirier
    Reviewed-by: Coly Li
    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

06 Jun, 2018

1 commit


03 Jun, 2018

1 commit


02 Jun, 2018

15 commits