From patchwork Thu Jul 16 23:12:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gavin Shan X-Patchwork-Id: 496950 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 AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 630201402B5 for ; Fri, 17 Jul 2015 09:13:36 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49EB91A09B8 for ; Fri, 17 Jul 2015 09:13:36 +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 E3A3E1A0784 for ; Fri, 17 Jul 2015 09:13:33 +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 ; Fri, 17 Jul 2015 09:13:33 +1000 Received: from d23dlp02.au.ibm.com (202.81.31.213) by e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 17 Jul 2015 09:13:31 +1000 X-Helo: d23dlp02.au.ibm.com X-MailFrom: gwshan@linux.vnet.ibm.com X-RcptTo: skiboot@lists.ozlabs.org Received: from d23relay07.au.ibm.com (d23relay07.au.ibm.com [9.190.26.37]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 7D6792BB003F for ; Fri, 17 Jul 2015 09:13:31 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6GNDORd48627860 for ; Fri, 17 Jul 2015 09:13:32 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6GNCwqa003648 for ; Fri, 17 Jul 2015 09:12:59 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t6GNCwfB003304; Fri, 17 Jul 2015 09:12:58 +1000 Received: from bran.ozlabs.ibm.com (unknown [9.192.254.114]) by ozlabs.au.ibm.com (Postfix) with ESMTP id ACDF6A03CA; Fri, 17 Jul 2015 09:12:34 +1000 (AEST) Received: from gwshan (shangw.ozlabs.ibm.com [10.61.2.199]) by bran.ozlabs.ibm.com (Postfix) with ESMTP id A3172E38E6; Fri, 17 Jul 2015 09:12:34 +1000 (AEST) Received: by gwshan (Postfix, from userid 1000) id 853F8941B2B; Fri, 17 Jul 2015 09:12:34 +1000 (AEST) From: Gavin Shan To: skiboot@lists.ozlabs.org Date: Fri, 17 Jul 2015 09:12:32 +1000 Message-Id: <1437088352-6150-2-git-send-email-gwshan@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1437088352-6150-1-git-send-email-gwshan@linux.vnet.ibm.com> References: <1437088352-6150-1-git-send-email-gwshan@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15071623-0005-0000-0000-0000021FBC00 Subject: [Skiboot] [PATCH 2/2] hw/phb3: Remove struct rtt_entry 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: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Nobody is using it except calculating the RTE table size. The patch removes it. Signed-off-by: Gavin Shan --- include/phb3.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/phb3.h b/include/phb3.h index c15f5d2..3accd9e 100644 --- a/include/phb3.h +++ b/include/phb3.h @@ -99,10 +99,7 @@ * Entries are 2 bytes indexed by PCIe RID */ #define RTT_TABLE_ENTRIES 0x10000 -#define RTT_TABLE_SIZE (RTT_TABLE_ENTRIES * sizeof(struct rtt_entry)) -struct rtt_entry { - uint16_t pe_num; -}; +#define RTT_TABLE_SIZE 0x20000 /* IVT Table : MSI Interrupt vectors * state. * @@ -301,7 +298,7 @@ struct phb3 { const __be64 *lane_eq; unsigned int max_link_speed; - uint16_t rte_cache[RTT_TABLE_SIZE/2]; + uint16_t rte_cache[RTT_TABLE_ENTRIES]; uint8_t peltv_cache[PELTV_TABLE_SIZE]; uint64_t lxive_cache[8]; uint64_t ive_cache[IVT_TABLE_ENTRIES];