From patchwork Wed Oct 9 23:49:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1174205 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46pWLX1CdNz9s7T for ; Thu, 10 Oct 2019 10:55:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Aw6HJ9Dx"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46pWLX0DlwzDqZH for ; Thu, 10 Oct 2019 10:55:32 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::442; helo=mail-pf1-x442.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Aw6HJ9Dx"; dkim-atps=neutral Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46pWHs1LP1zDqZb for ; Thu, 10 Oct 2019 10:53:13 +1100 (AEDT) Received: by mail-pf1-x442.google.com with SMTP id 205so2672796pfw.2 for ; Wed, 09 Oct 2019 16:53:13 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=8dftLLukIhh46QHFZdTqJJ1Y/j+pzaRRdpsOUB44MDc=; b=Aw6HJ9DxF6IhdvOOpde+/AHfYZfMas4FZ0/Uq78dnSN0JKDEGoV7knxTmepw9GUERJ +1C4OS5CvpkzifKeULBya0Hh+2YOMmPbkiHSuVAyU0lX1EgQet4usvvn42Wfq1FPua0K K8UxtbzqSUYAqYRZ/oWjYC1Yi1lh2gKafcHVQQ0GvJC6XPxAE0rSHXONnk7sZjCLPjpX aWmS0BM0FPSX67OX/EGZ+rMz6uzCNuxQ16LgJLm3YRhPgMafQLlYdI88RWusq+m7BFw3 QAxqnsy76y7ZFMslTduSDmF8DULWZWMDJjHRdmULnmCB3WSNfVvnDP9UJKkf73j47Gb2 +8ag== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8dftLLukIhh46QHFZdTqJJ1Y/j+pzaRRdpsOUB44MDc=; b=jtxKf9TVyjwcC7PmSjHlfd9LzMrplsEeRWE0+Bah7iAET/66YZ8U4X7cLuJ1jZj8oD ZX3rhEZX3cFw81j0LdEwYU2j1rsPG4bUt4XTMbctKJ/n6sdvhFg074itn/eOHA1QEaT0 s4xmzxjG5qisUE/KbTkS25HA3Dwe2VYHE8gqtpOz2kYOgDz/PHPQOgSwxAcvOlwvwqrN 8X7GHOaKKB5PL8qWSPxF+sjdUBSBJFPy30FyvIn1mZ0CG8EoOzmWLifRLy2qKtjKSEoz 2orzvcD9U0V+Uad/cXZsWCkzthB9KLnehCOe2zIyvjUHH60Sk5+oZOXm1Z8VnKaOBT2j ZxRQ== X-Gm-Message-State: APjAAAWwoAikuwoUuYnJxIQ9M8SshGcOlo2VWFbiEG6/NbpnhkQAfxzg uUQIsMZCUfx4fHPbCVwlTd7l1pGg X-Google-Smtp-Source: APXvYqzkHBfEf7k0k+RuJwYF5QcBP/kQS8+p9tXxmB+Ya13a2ptD4OMUDxmpRtUVMO2BHluen/ihog== X-Received: by 2002:a65:6910:: with SMTP id s16mr7166605pgq.284.1570665189512; Wed, 09 Oct 2019 16:53:09 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id y144sm4015675pfb.188.2019.10.09.16.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 16:53:09 -0700 (PDT) From: Nicholas Piggin To: skiboot@lists.ozlabs.org Date: Thu, 10 Oct 2019 09:49:43 +1000 Message-Id: <20191009234951.2850-8-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191009234951.2850-1-npiggin@gmail.com> References: <20191009234951.2850-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Skiboot] [PATCH v4 07/15] fixup_spira remove incorrect endian conversion X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Nicholas Piggin --- hdata/memory.c | 3 ++- hdata/spira.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hdata/memory.c b/hdata/memory.c index 9af7ae71d..9e5e99b9c 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -135,7 +135,8 @@ static bool add_address_range(struct dt_node *root, "on Chip 0x%x mattr: 0x%x pattr: 0x%x status:0x%x\n", (long long)be64_to_cpu(arange->start), (long long)be64_to_cpu(arange->end), - chip_id, arange->mirror_attr, mem_type, mem_status); + chip_id, be32_to_cpu(arange->mirror_attr), + mem_type, mem_status); /* reg contains start and length */ reg[0] = cleanup_addr(be64_to_cpu(arange->start)); diff --git a/hdata/spira.c b/hdata/spira.c index 9c9d06167..9e3f83a3c 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1663,7 +1663,7 @@ static void add_npus(void) static void fixup_spira(void) { #if !defined(TEST) - spiras = (struct spiras *)CPU_TO_BE64(SPIRA_HEAP_BASE); + spiras = (struct spiras *)SPIRA_HEAP_BASE; #endif /* Validate SPIRA-S signature */