From patchwork Fri Jun 29 06:32:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Neuling X-Patchwork-Id: 936624 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.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41H6Jn4dsmz9s0w for ; Fri, 29 Jun 2018 16:32:41 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41H6Jn08WyzF1PT for ; Fri, 29 Jun 2018 16:32:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41H6Jg06XQzF1MY for ; Fri, 29 Jun 2018 16:32:35 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Received: from localhost.localdomain (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 41H6Jf4cjWz9s0w; Fri, 29 Jun 2018 16:32:34 +1000 (AEST) Received: by localhost.localdomain (Postfix, from userid 1000) id 56DF0EE78BC; Fri, 29 Jun 2018 16:32:34 +1000 (AEST) From: Michael Neuling To: stewart@linux.vnet.ibm.com Date: Fri, 29 Jun 2018 16:32:19 +1000 Message-Id: <20180629063221.30731-1-mikey@neuling.org> X-Mailer: git-send-email 2.17.1 Subject: [Skiboot] [PATCH 1/3] phb4: Minimise wait when moving through FRESET states X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: skiboot@lists.ozlabs.org, Michael Neuling MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" We want to get through this as fast as possible so minimise by removing msecs_to_tb() call. Changes number passed from 512 -> 1. Signed-off-by: Michael Neuling --- hw/phb4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/phb4.c b/hw/phb4.c index ae584d67fb..755bfe2034 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -2839,7 +2839,7 @@ static int64_t phb4_freset(struct pci_slot *slot) phb4_training_trace(p); /* Move on to link poll right away */ - return pci_slot_set_sm_timeout(slot, msecs_to_tb(1)); + return pci_slot_set_sm_timeout(slot, 1); case PHB4_SLOT_FRESET_DEASSERT_DELAY: pci_slot_set_state(slot, PHB4_SLOT_LINK_START); return slot->ops.poll_link(slot);