Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5274310ybl; Tue, 14 Jan 2020 06:23:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyCX6oTdIzoNYzXvcItEbHfIy1VmPRBFNNrUdslfSXuQEJCCxPPtmNvTb24uYPSZdn7rsMp X-Received: by 2002:a9d:6e82:: with SMTP id a2mr16494623otr.336.1579011787468; Tue, 14 Jan 2020 06:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579011787; cv=none; d=google.com; s=arc-20160816; b=GdqIT4U3Y5wnWDzInzny9NaV1nGKm6mWlwUymIp7E2py8AnZbK3CNkIUJk4VZSBOan N8FYIv6gr2t6hT9QK8abC0v2mBGpZCJjl/bQr8LCgLRQ1HX5ZNdH6Aqv1OG7OKYRivPe SGGEpXESfIxBA+CNKtyY3FiJeXIssfyJ9HdMuQjaOzc89MeEFit64BrHwBPiDWNaB/Hj vaIsbfHrPKoVtX4Y0U7OzqVFDYxqbgaoZ8Jd3V8K23E2Ta7SluOblVNZLJ6mPE4+X9XO rCUv4cgPAiWVuTHBuk5RDVPIHZAEOZ3WNte5+dnbRv6JU9sXT1VEdFj0cV2NKloXVbwo Y8bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iNHMSyafuc6Rm/KspCtgi2f86j+JvVBCXupdMVZaZlk=; b=G9DjhZTdR6ysJnpw4+qLQr9ZI+4qxwC1xgTKSwg6TaAoqfO7x0y8j8UUUh0c3Ku4fj jNqDEAf9J/NlUpMovEz/vNVcKRkmaJLUUOy+l00oIpCOWxSVuR5gFZnU3d4P2vmhZZm0 Pg30uxSRm397wXrGl0CAgrcxNTXDR47wjlphhezF6M6bvU1Y3JwkYQHDuUngEyqEAFSa FNjb76pljoWkC2bWMm1fUUteQRumXCH8T2zNQVtKXaaje4GasrixXE2EEB13WshurwaU goJ5qmCCgTCR24ZJo4HmZtg268TwpF1jdaTatp0ScCCv2Ag7y4p3vdDdVYW73ewNje8M L1aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=joEEb77X; 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 p186si7359151oih.172.2020.01.14.06.22.55; Tue, 14 Jan 2020 06:23:07 -0800 (PST) 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=@kernel.org header.s=default header.b=joEEb77X; 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 S1728834AbgANOVy (ORCPT + 99 others); Tue, 14 Jan 2020 09:21:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:37736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbgANOVy (ORCPT ); Tue, 14 Jan 2020 09:21:54 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E620B2465A; Tue, 14 Jan 2020 14:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579011713; bh=oysHKD0CamKNbJNBQDnVaXo90v5lwFZkCg6i8EicVEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=joEEb77XZsTSw/mGCaNiMPNFlsWIpW8xpbbPcsGVsq7N/n3NTMVjVj41uW3J0CuLD YjV5K0XJLZN++K/fOZkOGA0YIVgfyQ5OWCl8bU8mMkvNz944DgkadkotV9O5hpvBDZ cE5Tde4H/gl0CYr3Xz5fK/ZiV09wlHcIbvMtOwlA= Date: Tue, 14 Jan 2020 15:21:50 +0100 From: Greg KH To: "Sudarikov, Roman" Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, bgregg@netflix.com, ak@linux.intel.com, kan.liang@linux.intel.com, alexander.antonov@intel.com Subject: Re: [PATCH v3 2/2] perf =?iso-8859-1?Q?x86?= =?iso-8859-1?Q?=3A_Exposing_an_Uncore_unit_to_PMON_for_Intel_Xeon?= =?iso-8859-1?Q?=AE?= server platform Message-ID: <20200114142150.GB1784266@kroah.com> References: <20200113135444.12027-1-roman.sudarikov@linux.intel.com> <20200113135444.12027-3-roman.sudarikov@linux.intel.com> <20200113143818.GB390411@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 14, 2020 at 04:55:03PM +0300, Sudarikov, Roman wrote: > On 13.01.2020 17:38, Greg KH wrote: > > On Mon, Jan 13, 2020 at 04:54:44PM +0300, roman.sudarikov@linux.intel.com wrote: > > > From: Roman Sudarikov > > > > > > Current version supports a server line starting Intel? Xeon? Processor > > > Scalable Family and introduces mapping for IIO Uncore units only. > > > Other units can be added on demand. > > > > > > IIO stack to PMON mapping is exposed through: > > > /sys/devices/uncore_iio_/platform_mapping > > > in the following format: domain:bus > > > > > > For example, on a 4-die Intel Xeon? server platform: > > > $ cat /sys/devices/uncore_iio_0/platform_mapping > > > 0000:00,0000:40,0000:80,0000:c0 > > That's horrid to parse. Sysfs should be one value per file, why not > > have individual files for all of these things? > > > > > Which means: > > > IIO PMON block 0 on die 0 belongs to IIO stack on bus 0x00, domain 0x0000 > > > IIO PMON block 0 on die 1 belongs to IIO stack on bus 0x40, domain 0x0000 > > > IIO PMON block 0 on die 2 belongs to IIO stack on bus 0x80, domain 0x0000 > > > IIO PMON block 0 on die 3 belongs to IIO stack on bus 0xc0, domain 0x0000 > > Where did you get the die number from the above data? > > > Mapping algorithm requires domain:bus pair for each IO stack for each die. > Current implementation provides comma separated list of domain:bus pairs > for each stack where offset in the list corresponds to die index. > > Technically similar approach which was already implemented for the cpumask > attribute. > > > > > Co-developed-by: Alexander Antonov > > > Reviewed-by: Kan Liang > > > Signed-off-by: Alexander Antonov > > > Signed-off-by: Roman Sudarikov Also, to be a bit of a pest, you all are NOT following the internal Intel rules for submitting kernel patches. You need a lot more reviews before this should have "escaped" to lkml. greg k-h