From patchwork Sun Jul 5 16:55:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: maddy X-Patchwork-Id: 491332 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 691A8140D5F for ; Mon, 6 Jul 2015 02:57:05 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4EC6C1A0DA5 for ; Mon, 6 Jul 2015 02:57:05 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 073CC1A0D84 for ; Mon, 6 Jul 2015 02:56:48 +1000 (AEST) Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Jul 2015 02:56:47 +1000 Received: from d23dlp03.au.ibm.com (202.81.31.214) by e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 6 Jul 2015 02:56:46 +1000 X-Helo: d23dlp03.au.ibm.com X-MailFrom: maddy@linux.vnet.ibm.com X-RcptTo: skiboot@lists.ozlabs.org Received: from d23relay10.au.ibm.com (d23relay10.au.ibm.com [9.190.26.77]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 12944357804F for ; Mon, 6 Jul 2015 02:56:46 +1000 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay10.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t65Gub3q65863868 for ; Mon, 6 Jul 2015 02:56:46 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t65GuDaN030319 for ; Mon, 6 Jul 2015 02:56:13 +1000 Received: from SrihariMadhavan.ibm.com ([9.77.67.184]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t65Gtw4s029878; Mon, 6 Jul 2015 02:56:11 +1000 From: Madhavan Srinivasan To: stewart@linux.vnet.ibm.com, jk@ozlabs.org Date: Sun, 5 Jul 2015 22:25:26 +0530 Message-Id: <1436115333-18657-5-git-send-email-maddy@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436115333-18657-1-git-send-email-maddy@linux.vnet.ibm.com> References: <1436115333-18657-1-git-send-email-maddy@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15070516-0005-0000-0000-00000209F5DC Subject: [Skiboot] [RESEND PATCH v1 04/11]ibm-fsp/firenze: DT entry for DIMM rate X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: skiboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Patch creates a DT entry to pass the information about the DIMM rate to kernel. This is needed to calculate % memory bandwidth utilisation metrics. Signed-off-by: Madhavan Srinivasan --- hw/nest.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hw/nest.c b/hw/nest.c index 7b13512..1798351 100644 --- a/hw/nest.c +++ b/hw/nest.c @@ -148,5 +148,21 @@ void nest_ima_init(void) dt_add_property_cells(chip_dev, "size", SLW_IMA_SIZE); dt_add_property(chip_dev, "ibm,ima-chip", NULL, 0); } + + /* + * Dimm rate DT Entry. Needed for % utilisation calculation. + */ + chip = get_chip(pir_to_chip_id(this_cpu()->pir)); + switch (chip->type) { + case PROC_CHIP_P8_MURANO: + dt_add_property_cells(dev,"dimm", MURANO_CENTAUR_DIMM); + break; + case PROC_CHIP_P8_VENICE: + dt_add_property_cells(dev,"dimm", VENICE_CENTAUR_DIMM); + break; + default: + break; + } + return; }