From patchwork Wed Oct 28 10:50:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lulu Su X-Patchwork-Id: 1389236 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 4CLljK1LSzz9sVv for ; Wed, 28 Oct 2020 21:50:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=wistron.com Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CLljK11nwzDqSd for ; Wed, 28 Oct 2020 21:50:45 +1100 (AEDT) X-Original-To: skiboot-stable@lists.ozlabs.org Delivered-To: skiboot-stable@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=wistron.com (client-ip=103.200.3.21; helo=segapp04.wistron.com; envelope-from=lulu_su@wistron.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=wistron.com Received: from segapp04.wistron.com (segapp04.wistron.com [103.200.3.21]) by lists.ozlabs.org (Postfix) with ESMTP id 4CLljF65ykzDqS6 for ; Wed, 28 Oct 2020 21:50:41 +1100 (AEDT) Received: from EXCHAPP03.whq.wistron (unverified [10.37.38.26]) by TWNHUMSW5.wistron.com (Clearswift SMTPRS 5.6.0) with ESMTP id ; Wed, 28 Oct 2020 18:50:38 +0800 Received: from EXCHAPP01.whq.wistron (10.37.38.24) by EXCHAPP03.whq.wistron (10.37.38.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 28 Oct 2020 18:50:38 +0800 Received: from gitserver.wistron.com (10.37.38.233) by EXCHAPP01.whq.wistron (10.37.38.24) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 28 Oct 2020 18:50:38 +0800 From: Lulu Su To: , Stewart Smith Date: Wed, 28 Oct 2020 18:50:09 +0800 Message-ID: <20201028105009.27398-2-Lulu_Su@wistron.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201028105009.27398-1-Lulu_Su@wistron.com> References: <20201028105009.27398-1-Lulu_Su@wistron.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 39FD39DCCFF8589D3E157855E21F987841348A9515601A0D5DC80CA1898AD82C2000:8 Subject: [Skiboot-stable] [PATCH 2/2] hw/phb4.c: limit the max-link-speed of Mowgli's phb0 to gen3 X-BeenThere: skiboot-stable@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches, review, and discussion for stable releases of skiboot" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Oliver OHalloran , LuluTHSu , Klaus Heinrich Kiwi Errors-To: skiboot-stable-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot-stable" From: LuluTHSu Add a condition in phb4_get_max_link_speed(), when it's mowgli's phb0, max-link-speed is set to gen3. For mowgli platform spec. Cc: skiboot-stable@lists.ozlabs.org Signed-off-by: LuluTHSu --- hw/phb4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/phb4.c b/hw/phb4.c index 17a233f..ef6b176 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -2966,6 +2966,10 @@ static unsigned int phb4_get_max_link_speed(struct phb4 *p, struct dt_node *np) /* Priority order: NVRAM -> dt -> GEN3 dd2.00 -> GEN4 */ max_link_speed = 4; + if(dt_node_is_compatible(dt_root,"ibm,mowgli") && p->pec==0){ + max_link_speed = 3; + prlog(PR_DEBUG, "Set the max link speed of Mowgli phb0 to gen3\n"); + } if (p->rev == PHB4_REV_NIMBUS_DD20 && ((0xf & chip->ec_level) == 0) && chip->ec_rev == 0) max_link_speed = 3;