[Mesa-dev] [PATCH] nvc0: support MP performance counters on Maxwell

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Nov 10 19:25:11 UTC 2016


Hi,

This series adds MP performance counters exposed by SM50 (GM107/GM108)
and SM52 (GM200/GM204/GM206).

Maxwell introduced some new events like active_ctas, global_store,
global_load and inst_issued0, which is (in my opinion) the most important
one because it reports the number of cycles that did not issue any
instruction. inst_issued0 is currently VERY high, and this is totally
expected because we don't have any control codes implemented yet, and
we add too much stalls. This event is going to be nice for evaluating
how my scheduler will perform.

This series has been successfully tested with the following cards:

- Ilia's gm107 with 2 MPs
- Martin's gm107 with 4 MPs
- Pierre's gm206 with 8 MPs

Unfortunately, my gm107 seems to be totally broken. I have 5 MPs and the
last one seems to be never used... Compute shaders also hang my GPU for
weird reasons, but they work fine on the different cards. I have tested
with nouveau-git this week, nothing changed. I will report the issue.

Please review,
Thanks!

Samuel Pitoiset (1):
  nvc0: support MP performance counters on Maxwell

 .../drivers/nouveau/nvc0/nvc0_query_hw_metric.c    |  26 +-
 .../drivers/nouveau/nvc0/nvc0_query_hw_sm.c        | 740 ++++++++++++++++++++-
 .../drivers/nouveau/nvc0/nvc0_query_hw_sm.h        |  13 +-
 3 files changed, 775 insertions(+), 4 deletions(-)

-- 
2.10.2



More information about the mesa-dev mailing list