From: marc_gonzalez@sigmadesigns.com (Marc Gonzalez)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5] arm-soc: Add support for Sigma Designs Tango4 platforms
Date: Wed, 21 Oct 2015 11:59:07 +0200 [thread overview]
Message-ID: <562761EB.3070009@sigmadesigns.com> (raw)
In-Reply-To: <56266D46.5080809@sigmadesigns.com>
On 20/10/2015 18:35, Marc Gonzalez wrote:
> Changes in v5
> drop mac-address property from eth0 node
> tentatively add pmu node (not looking good)
> hw perfevents: failed to probe PMU!
> hw perfevents: failed to register PMU devices!
<Taking a closer look>
armv7_a9_pmu_init() eventually calls generic_exec_single()
which fails this test:
if ((unsigned)cpu >= nr_cpu_ids || !cpu_online(cpu))
because cpu = 4 and nr_cpu_ids = 2
/* Any online will do: smp_call_function_single handles nr_cpu_ids. */
cpu = cpumask_any_and(mask, cpu_online_mask);
nr_cpu_ids starts out as 4 (CONFIG_NR_CPUS=4) but setup_nr_cpu_ids()
drops it to 2 (the actual number of cores).
<confused> I thought NR_CPUS was just the maximum number of CPUs.
Is it expected that armv7_a9_pmu_init() would fail as it does for me?
Regards.
next prev parent reply other threads:[~2015-10-21 9:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 15:43 [PATCH v4] arm-soc: Add support for Sigma Designs Tango4 platforms Marc Gonzalez
2015-10-20 16:35 ` [PATCH v5] " Marc Gonzalez
2015-10-21 9:59 ` Marc Gonzalez [this message]
2015-10-23 16:03 ` [PATCH v6] " Marc Gonzalez
2015-10-27 17:12 ` Marc Gonzalez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=562761EB.3070009@sigmadesigns.com \
--to=marc_gonzalez@sigmadesigns.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).