Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3374397imm; Mon, 8 Oct 2018 02:59:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV632+IDjXhPyq0pYEH6T/JPo1ENRcGapS2EybLKkZrmpnbomVMF74PTgbEC+JbA9NWdy+hlG X-Received: by 2002:a62:8a4f:: with SMTP id y76-v6mr24640551pfd.142.1538992799195; Mon, 08 Oct 2018 02:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538992799; cv=none; d=google.com; s=arc-20160816; b=Z8wOXXM8RCZJUJJAmc1E5wpr+3lH8wuS61kpzAO8IwOvP/qxgkVjj3KSKjchT7G7aK BMO6QSXGsUK4qs3jCD/3REZPmXTBLJz/jhyMvLnfdJJMiqqss/AeD1nysEVeUp7o7i1b RFXN3DrBsr0Mm6GAId30ZsOxEcLBi/cZrKiCGhJ+VCkW79yknzSf24JVCld7lH1ervbj CUTojlZBcHPLk556FwvUQBC26c3anPKpAKFfe28Ih2dQ0kWL04L8AY4LLSn5yBIf+VOO IwT+S4pNY5fm7nmJYa7+QVD/OfoZRgqNEjoqebjn1Rw733Z6gJLF7E3I6Vnp10blKuPe l2WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6pPl+ooxeuaHheuMEW1uilUNg7fgvFgLTQ5AiW5OUWI=; b=xkoMMSpP/LSCqmMsAIpDDaKWUgvE7hcwxy4Q8nfFLrhwMoSyKQToQpFWeRkt2fMH1l i3vivP4g2Y6Ms44VS/XKISwgcH8SpQVROJaBkapb8RYEuJa2YxRvSJrSkZ68GM86eBPl Nd8G8baNMgov44r064tx7gSoA6N5VlYOXQ+BFufEcOfFa652UU1iObIk5kSAmR58kUwY 8oPyQjBp0mgvBYFfFQZwz+6F/SDPyRjVNheQOqikAEnFCOKWVBlXXVoIr93VN6OAZt5N LFR13U39r7BmDICcj7oFl0ZGC9IK81izMffyzsEh9ArpBIqk/HpH/P9BjlaS11M5fEbI +hSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASfF7Dva; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si9341655pfi.184.2018.10.08.02.59.44; Mon, 08 Oct 2018 02:59:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ASfF7Dva; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727353AbeJHRKL (ORCPT + 99 others); Mon, 8 Oct 2018 13:10:11 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44731 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbeJHRKL (ORCPT ); Mon, 8 Oct 2018 13:10:11 -0400 Received: by mail-ot1-f68.google.com with SMTP id p23so7346658otf.11; Mon, 08 Oct 2018 02:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6pPl+ooxeuaHheuMEW1uilUNg7fgvFgLTQ5AiW5OUWI=; b=ASfF7DvaFE+sS7/Qr+mj2BWqdEmZUx6Vt75cTZCD5+aIVjW/g25ejQ7gNj7lNqcyfX xtwyvO259ecUYT5J09nkD8Idm5zXIO7gTgMxR7DXr2bpiJh028CNoczbkGhI1HCjRApm hj61u+GMhK4rV7tAb2Lw3QFg7PS40sJII52rNaLms+eiKuSk4oUKB+N99WtR497uNXT8 1/6RfvT4dLLivJuLu5x17ezOifh3VZoMsko3PEmKkesg+3beIxZy13NqGntee9A8+9Zb NxPRMhjdUv9G4cGXtU6FglDjGZ+zCfjSNLQUF1AtRq3wlkLQuamWY7SerMhnOQlIfklW Lkyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6pPl+ooxeuaHheuMEW1uilUNg7fgvFgLTQ5AiW5OUWI=; b=tB5Qy7aWluPCh2xHUWo2CBoBaC/o+p8/u8b5YblYmNG36EJey0w8sszukaitWHG2B4 QKokRWS6T2IPfWMxQiswDg6yVZetgVBB0jJLLoN+YzEtKRjFmk6XZQb70MDvU+bTNpsD q4PQpUX8fmILIvvnaL5QN0VBfOsqijt7G55PE1JNOW7u76z28QKw1uLCVEUP92sdBxIZ 6EHvz5U369GcXai+2CZfM/9uBxUKrtihKYQRxwxi7m+VZVfZpnSyF8Kefbn9YNdgALR5 66g/HzejGeAstlPkXME0DVPeyHDWHaVdpp4+c1anpkF6aV1XKOy95fLwz0elSsQ1tj5H eJIQ== X-Gm-Message-State: ABuFfogKqVMrEr6roE6txfS0SVe8jE3Q17Jogh9H/IEEsTUPrm8qAmvk Z+RXpKojzUUph4gOCnrucGJr/Yr4MazIraT3iIo= X-Received: by 2002:a9d:614a:: with SMTP id c10mr7919361otk.278.1538992757379; Mon, 08 Oct 2018 02:59:17 -0700 (PDT) MIME-Version: 1.0 References: <20180621063338.20093-1-ganapatrao.kulkarni@cavium.com> <20180621063338.20093-3-ganapatrao.kulkarni@cavium.com> In-Reply-To: From: Ganapatrao Kulkarni Date: Mon, 8 Oct 2018 15:29:05 +0530 Message-ID: Subject: Re: [PATCH v6 2/2] ThunderX2: Add Cavium ThunderX2 SoC UNCORE PMU driver To: pranith.foss@gmail.com Cc: Ganapatrao Kulkarni , linux-doc@vger.kernel.org, LKML , linux-arm-kernel@lists.infradead.org, Will Deacon , Mark Rutland , jnair@caviumnetworks.com, Robert Richter , Vadim.Lomovtsev@cavium.com, Jan.Glauber@cavium.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pranith, On Sat, Jul 7, 2018 at 11:22 AM Pranith Kumar wrote: > > Hi Ganapatrao, > > > On Wed, Jun 20, 2018 at 11:33 PM, Ganapatrao Kulkarni > wrote: > > > + > > +enum thunderx2_uncore_l3_events { > > + L3_EVENT_NONE, > > + L3_EVENT_NBU_CANCEL, > > + L3_EVENT_DIB_RETRY, > > + L3_EVENT_DOB_RETRY, > > + L3_EVENT_DIB_CREDIT_RETRY, > > + L3_EVENT_DOB_CREDIT_RETRY, > > + L3_EVENT_FORCE_RETRY, > > + L3_EVENT_IDX_CONFLICT_RETRY, > > + L3_EVENT_EVICT_CONFLICT_RETRY, > > + L3_EVENT_BANK_CONFLICT_RETRY, > > + L3_EVENT_FILL_ENTRY_RETRY, > > + L3_EVENT_EVICT_NOT_READY_RETRY, > > + L3_EVENT_L3_RETRY, > > + L3_EVENT_READ_REQ, > > + L3_EVENT_WRITE_BACK_REQ, > > + L3_EVENT_INVALIDATE_NWRITE_REQ, > > + L3_EVENT_INV_REQ, > > + L3_EVENT_SELF_REQ, > > + L3_EVENT_REQ, > > + L3_EVENT_EVICT_REQ, > > + L3_EVENT_INVALIDATE_NWRITE_HIT, > > + L3_EVENT_INVALIDATE_HIT, > > + L3_EVENT_SELF_HIT, > > + L3_EVENT_READ_HIT, > > + L3_EVENT_MAX, > > +}; > > + > > +enum thunderx2_uncore_dmc_events { > > + DMC_EVENT_NONE, > > + DMC_EVENT_COUNT_CYCLES, > > + DMC_EVENT_RES2, > > + DMC_EVENT_RES3, > > + DMC_EVENT_RES4, > > + DMC_EVENT_RES5, > > + DMC_EVENT_RES6, > > + DMC_EVENT_RES7, > > + DMC_EVENT_RES8, > > + DMC_EVENT_READ_64B_TXNS, > > + DMC_EVENT_READ_BELOW_64B_TXNS, > > + DMC_EVENT_WRITE_TXNS, > > + DMC_EVENT_TXN_CYCLES, > > + DMC_EVENT_DATA_TRANSFERS, > > + DMC_EVENT_CANCELLED_READ_TXNS, > > + DMC_EVENT_CONSUMED_READ_TXNS, > > + DMC_EVENT_MAX, > > +}; > > Can you please provide a link to where these counters are documented? > It is not clear what each counter does especially for the L3C events. I will add brief description of each event in Documentation. > > Also, what counter do you need to use to get L3 hit/miss ratio? I > think this is the most useful counter related to L3. L3C cache Hit Ratio = (L3_READ_HIT + L3_INV_N_WRITE_HIT + L3_INVALIDATE_HIT) / (L3_READ_REQ + L3_INV_N_WRITE_REQ + L3_INVALIDATE_REQ) > > Thanks, > -- > Pranith thanks Ganapat