Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2200691yba; Fri, 19 Apr 2019 14:20:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwc2x3MF6kkLH3XnIBkYYmP3rEJFz9I52UxW9u8NFtcd3Q/rkp9+jLkoVSHaVcOCdmphLtI X-Received: by 2002:a62:a219:: with SMTP id m25mr6198531pff.197.1555708841765; Fri, 19 Apr 2019 14:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555708841; cv=none; d=google.com; s=arc-20160816; b=HVulV6M4ZyqIM7LgI5qt2hTnh5qvQl/PIQOPtcND8dOBi4BENhwQFmoykgIjTgRmjX kDvy602Dv5uCKK7kRtuW24emY+yKoTXprEg3Wi9nFbxD2h3AXKtbgBDVN3cHx2MmkIeQ dR/knFb+10OEn+reA4SI/qKFxyEvs/JDOqg2DGIOli2IU4F/VGbDS2axPYI3nJBWURYA tlp7hujJ1IuT8hS+ZSFm9g4LqJ8HgfZcLO/Z1ncw6hKNa92itd47+tFywg/JC0mSzRIS 9xUVnmO0fyKTbuuflsTnwq4753q3wIDYFmASNwmdPXhhb7Sav1mou9TYMWpFM4nj7gGo gc5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=M4h7PEflQdzw3mWhwJY+iKlWqDGFaXU3GQc9ifIgmLw=; b=x2g2M8TtVEwQss0HSzTuHcLIACYBOM03a675b5dSrB7auVOMgFsskYdNLq9Ey9Gmsr hOk/OsU6bhX1qfgH+Rp8OomH2D6/FIRCTwayyEHwihZGq8GypfGuDwWKKgx4Vu0nzT+w frS247OdWqPGUgAxsQafwmtX9MGO+3nRCqtGc5Er68Y61bMBitpTCithvY3mDMmO3PPY n43Onv4YxtKDFRoR0/K2hn9YpJiLv8K3GqUf2PQSVQkOo6AfagGOblid163secQiKL34 5o7Cewyz9wvkV+SVS5F33vLpcWL/tgJZNurs1GJuepdZo513N0xNbzPhg9ChdSC1UsUg 1kOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si5332761pgq.350.2019.04.19.14.20.17; Fri, 19 Apr 2019 14:20:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbfDSVSG (ORCPT + 99 others); Fri, 19 Apr 2019 17:18:06 -0400 Received: from foss.arm.com ([217.140.101.70]:51908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfDSVSG (ORCPT ); Fri, 19 Apr 2019 17:18:06 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A338B15A2; Fri, 19 Apr 2019 14:18:05 -0700 (PDT) Received: from [192.168.1.105] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 52AF43F68F; Fri, 19 Apr 2019 14:18:03 -0700 (PDT) Subject: Re: [PATCH] ARM: dts: exynos: add CCI-400 PMU nodes support to Exynos542x SoCs To: Willy Wolff , Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Linux Kernel Mailing List References: <20190412172545.fkxnpnymhcw7xncc@macpro-scc.lancs.ac.uk> From: Robin Murphy Message-ID: <38dee054-19ce-a545-fb62-dea4d0036c94@arm.com> Date: Fri, 19 Apr 2019 22:18:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-04-19 6:53 pm, Willy Wolff wrote: > Hi, > > This patch can be dropped, as it needs more work. > > In fact, the interrupts seems to be wrong. The interrupts suggested by > Anand Moon gave the same following results. > > export CCI_DEV=CCI_400 > export OMP_NUM_THREADS=2 > sudo --preserve-env ./perf stat -a \ > -e armv7_cortex_a7/config=0x11,name=a7_cycles/ \ > -e armv7_cortex_a15/config=0x11,name=a15_cycles/ \ > -e armv7_cortex_a7/config=0x19,name=a7_bus/ \ > -e armv7_cortex_a15/config=0x19,name=a15_bus/ \ > -e ${CCI_DEV}/config=0xff,name=cci400_cycles/ \ > -e ${CCI_DEV}/config=0x0,name=cci400_si_rrq_hs_any/ \ > -e ${CCI_DEV}/config=0xc,name=cci400_si_wrq_hs_any/ \ From the look of those configs, you'll be counting events on slave interface 0, which may not even have anything connected anyway. The CPU clusters on a CCI-400 will be on slave interfaces 3 and 4, so try something like '-e CCI_400/cci400_si_rrq_hs_any,source=4/'. The interrupts only matter for counter overflow, so confirming those could be done by picking a sufficiently frequent event, counting for long enough to capture slightly more than 2^32 of those, then seeing whether the overflow accumulates correctly or the count appears to go backwards (and/or checking what fired in /proc/interrupts). I believe the cycle counter is also 32-bit on CCI, so that should be relatively easy; for the other counters beyond the first one it should be feasible to schedule additional dummy events before the event of interest in order to trick pmu_get_event_idx() into allocating the desired counter for it. Robin. > taskset -c 0,7 /home/user/cg.x.A 1 > > [..] > > Performance counter stats for 'system wide': > > 9,362,850,550 a7_cycles > 1,682,125,760 a15_cycles > 68,920,347 a7_bus > 61,484,352 a15_bus > 3,789,936,935 cci400_cycles > 0 cci400_si_rrq_hs_any > 0 cci400_si_wrq_hs_any > > 9.541340558 seconds time elapsed > > cg.x.A comes from NAS benchmark suite, compiled with fopenmp support, setup > to run 2 threads and taskmapped to ran on both a7 and a15 clusters. > a7_bus and a15_bus report main memory accesses. > > Only cci400_cycles seems to be correct. However, all pmcs from the master > interface are reported as unsupported and all pmcs from the slave interface > return 0, which is probably not correct. > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0470f/CJHICFBF.html > > Would it be possible that someone from Samsung provide the right > interrupts values? > Many thanks. > > Regards, > Willy > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >