From patchwork Mon Nov 11 05:44:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1192751 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47BKf55636z9sPj for ; Mon, 11 Nov 2019 16:47:41 +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="Zuti0yP8"; 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 47BKf50zYhzF4g6 for ; Mon, 11 Nov 2019 16:47:41 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::62d; helo=mail-pl1-x62d.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="Zuti0yP8"; dkim-atps=neutral Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 47BKbw1hnJzF4fW for ; Mon, 11 Nov 2019 16:45:47 +1100 (AEDT) Received: by mail-pl1-x62d.google.com with SMTP id e3so7330119plt.7 for ; Sun, 10 Nov 2019 21:45:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ajLw2kM57PryVEptBiMuTKY81BbVTZg1CrMWzjlJ0LU=; b=Zuti0yP8k60Lp3rigUFZ2m85KSWwgVXLbCKcGxoVel7hgyfaqOWZqq8iRvE2QRcqQu cGZsE5w4OOJ+IXKfBcovM7SSDmLc7+By4mFhvKejThrWrjiIm/QZ3CD6YnDPd8gMXOX2 rZ+l27Qo3rrNOJXSMwMCT1sOBuhRyiZekZF4U1MQz9IvDYd2eDgdoUOonpxkfvgU5R8A 5l/qKkmLnsx0WnuvXtsfAp2eFExINaiGXItgyA/U7zblUaSKRKtHyjczb9NqqO02sjV2 gzqtdM/g/t/FODBqMZd/7AKCjl3362qDk8UQZNzaJmAZAWZ09mi6QU63NPpqvhiL68Yb b2yQ== 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:mime-version :content-transfer-encoding; bh=ajLw2kM57PryVEptBiMuTKY81BbVTZg1CrMWzjlJ0LU=; b=WwR72y6JHdjoF9Fg5s793zLOymG5DQx0o6JB/Pc4Hi+730p1ElGR5/y2kUsTsKKGMV ke9lEwQVJ33c8b1E3PYAY9K8s7Gt+yDIj+1niuLGAjMFVg6W6gI7Jrm9bMFIjKBdesz2 doK6HJiLtv3eVzfoMJ0/nMZeszSVByxRWgh0q0G6iGMlN7ddcCVyV+BEGbL6FcsdqnF8 3PmBH3RGbbbKZH3mbrCIe0zUYsTRKBLSaX3/HJ6hEf3meW0S6leMRqQu4/XC88/IdtvG a1+SnyGianr/JfstQU6bv5Mfuc1viSOWWsGmUW1qM1DtxmV4wicu7YplEzR4O0RziItg pDXg== X-Gm-Message-State: APjAAAXJLc2xqI3dBNyTInNCcHR6jmlkbluzOpAhUgmIDBdYpXU0TW+p S7C06uJwuhZLQKieaSjnqhCZMT00 X-Google-Smtp-Source: APXvYqzIPj0Hf/MXlCvuYMZNbKOjaY/VLKzd11gClyAgC51fRlWqz4lWzN0NxrqACU/Z+vNiUj+XDA== X-Received: by 2002:a17:902:544:: with SMTP id 62mr24484983plf.195.1573451145687; Sun, 10 Nov 2019 21:45:45 -0800 (PST) Received: from bobo.local0.net (193-116-100-125.tpgi.com.au. [193.116.100.125]) by smtp.gmail.com with ESMTPSA id x29sm15044638pfj.131.2019.11.10.21.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 21:45:45 -0800 (PST) From: Nicholas Piggin To: skiboot@lists.ozlabs.org Date: Mon, 11 Nov 2019 15:44:39 +1000 Message-Id: <20191111054448.6989-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Skiboot] [PATCH v2 0/9] misc fixes and cleanups 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" These are various bugs and cleanups taken from work and review comments on the little endian series. Any of these can be taken independently. I have not tested the map trace areas on P9, just noticed it when going over the POWER7 patch. Since v1: - Removed paca from hdata with POWER7 patch. - Restored some checks for unknown CPUs in the direct controls code. - Added a fix to hdata tests. Thanks, Nick Nicholas Piggin (9): slw: slw_reinit fix array overrun build: fix non-constant build asserts xive/p9: improve cache watch type checking xive/p9: use predefined bitmasks to manipulate EQ addresses xive/p9: sbe size debug print fix fsp: map trace areas on P9 psi: update registers to reflect >= P8 PHBSCR hdata/test/hdata_to_dt.c: use P8E PVR when -8E is given Remove dead POWER7 code asm/head.S | 14 +- core/affinity.c | 2 +- core/direct-controls.c | 13 +- core/fast-reboot.c | 6 - core/init.c | 2 - core/mem_region.c | 4 - core/pci.c | 43 +---- hdata/Makefile.inc | 2 +- hdata/cpu-common.c | 4 +- hdata/hdata.h | 5 +- hdata/paca.c | 331 ----------------------------------- hdata/pcia.c | 5 +- hdata/spira.c | 11 +- hdata/spira.h | 118 +++---------- hdata/test/hdata_to_dt.c | 5 +- hdata/test/p8-840-spira.dts | 12 +- hdata/test/p81-811.spira.dts | 40 ++--- hdata/vpd.c | 1 - hw/fsp/fsp-console.c | 58 ++---- hw/fsp/fsp-occ.c | 4 - hw/fsp/fsp-psi.c | 16 +- hw/fsp/fsp-sysdump.c | 19 -- hw/fsp/fsp.c | 5 +- hw/npu.c | 1 - hw/npu2-opencapi.c | 1 - hw/npu2.c | 1 - hw/nx-842.c | 11 +- hw/occ.c | 8 +- hw/phb3.c | 11 -- hw/phb4.c | 11 -- hw/psi.c | 3 +- hw/slw.c | 10 +- hw/xive.c | 93 +++++----- hw/xscom.c | 10 +- include/chip.h | 4 +- include/mem-map.h | 2 +- include/nx.h | 2 +- include/pci.h | 6 - include/psi.h | 13 +- platforms/ibm-fsp/common.c | 6 - skiboot.lds.S | 2 + 41 files changed, 166 insertions(+), 749 deletions(-) delete mode 100644 hdata/paca.c