From patchwork Mon May 15 06:31:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver O'Halloran X-Patchwork-Id: 762281 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wR9hW6nspz9s1h for ; Mon, 15 May 2017 16:31:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ulh63LC9"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wR9hW5S1KzDqb9 for ; Mon, 15 May 2017 16:31:23 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ulh63LC9"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wR9hN4bDqzDqMh for ; Mon, 15 May 2017 16:31:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ulh63LC9"; dkim-atps=neutral Received: by mail-pf0-x244.google.com with SMTP id f27so4266524pfe.0 for ; Sun, 14 May 2017 23:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FdzqVQek6qp8+uV/a6RWi2RSFpOmAD86UjVST/B9Sr4=; b=Ulh63LC9IdduJ/XC4gpY3UPOfgv6q0kyyMxqAXgrFFcJ1dnVkCVxHnoFuetb4NJyYA wRfjs69voFW8aft9BhelWeMxzQBt5eGSSrOvv6q/wQSvWp7TTnJkNRbIYur0vtJdIvGM N86WPbKwALpKGb6ta42K+l5GabQ0l/0KEEDkaBQrIcTYQiMch4H0cd0TvKn0zmT14JL6 YNxBWRnl6Z14EeXlOyJpaDI/bFJ/l5fVOC0uSVkOf3ZCeq5sFIggKVN+6VVlHayLwWvQ 8Hh89dAo5XO64Kpui4Knmq1qTN0F1XrwGzhKDCoiccF1/tPEY2G9Lovjh/s95xuxY4c4 6rLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FdzqVQek6qp8+uV/a6RWi2RSFpOmAD86UjVST/B9Sr4=; b=l5BAEXpmuuIDiwYNfLWZJRWxBp64gma6j3d2SiEenGBVYSg5VKKxZtLViKKVdrfsn9 DXyMGRUWLW6nuptp3EMXZBsjubgnqVFwt/oJIRtEkIomKVwAaxRPcWmhRKmPCfTb91A9 S6hGrUrPq2Z46sKUuCLzu5JOgsbycPv1nFgKGg8kgYTsK0P4RDqhWXOfektqughzQvca PRjynqwudvElbi2fT9z5jy+rEIcGd0CleWEC0xaag6B1NtZVHmUxgSJH5ACSJu7mMDoX 4GVh7WJlIfdBGx2wj2FFBME2tuYwojYTO/7aGKOpjfTeQSVa5hhX7SaAoLNTWeCu+AuH Bwvw== X-Gm-Message-State: AODbwcDnyw/avvJfY/UJxuiCCPrTEncDuy/+wTpjOIoz02LPc8qsyclZ 2gVfoPOTUEdFug== X-Received: by 10.84.178.129 with SMTP id z1mr6402491plb.44.1494829874734; Sun, 14 May 2017 23:31:14 -0700 (PDT) Received: from flat-canetoad.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id s18sm18264294pfi.16.2017.05.14.23.31.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 23:31:14 -0700 (PDT) From: Oliver O'Halloran To: skiboot@lists.ozlabs.org Date: Mon, 15 May 2017 16:31:03 +1000 Message-Id: <20170515063103.17347-1-oohall@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [Skiboot] [PATCH] hdata: Respect OCC and HOMER resevations X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" In the past we've ignored these since Hostboot insisted in exporting broken reservations and the OCC was not being used yet. This situation seems to have resolved itself so we should respect the reservations that hostboot provides. Signed-off-by: Oliver O'Halloran Acked-by: Vaidyanathan Srinivasan Tested-by: Vaidyanathan Srinivasan Tested-by: Vasant Hegde --- hdata/memory.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hdata/memory.c b/hdata/memory.c index 2df1136c3627..0c6c0811f61a 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -457,12 +457,6 @@ static void get_hb_reserved_mem(struct HDIF_common_hdr *ms_vpd) if (label_size > 64) label_size = 64; - /* these are broken, just ignore them */ - if (!strncmp(hb_resv_mem->label, "ibm,homer-image", label_size)) - continue; - if (!strncmp(hb_resv_mem->label, "ibm,occ-common-area", label_size)) - continue; - label = malloc(label_size+1); assert(label);