Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1066677ybj; Thu, 7 May 2020 14:05:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKWZWQlGR9bwcZ4mwE9NlZ/E7TcNsfyz0zQCOV5v7cgJP7ZzbKaAY1mdxMazponREDQ0bpt X-Received: by 2002:a50:f058:: with SMTP id u24mr13037584edl.171.1588885513530; Thu, 07 May 2020 14:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588885513; cv=none; d=google.com; s=arc-20160816; b=SxuIYPGLK88jMz6Aww/RKl/Xh+NK9YmjMKj3PrfMKiDlhpu+ePNRzrx8lueKGsA1QR donOhAUcpO1g8qKDwHX7kmIGkN3qicF89Z+rjI5Mj3cz8tVu7IyVW7dIdHODbaPs79f8 QMy5vDSWbHX3oh0t9LWIZtwa64T0tseZyMCWYjwjOKI3/ArNC3lrx4f303ePs4i7hBps sPz0uxfCrOClwm2LMigxoNuy7ZOEH3IT6oZmZuiNO1pNLAO9/SFOoX5gcAZJigtWamz9 6kchyp0YA5MCFzwx9r2WwGuW3nDLlw49Ni5HQ8HtCWphdibn0bsHECfkcouYGdJtm9AV c6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VyDpqjFf92FEuiIHFMXtKbzqroXrkI/e2oOzUcuJwg4=; b=Pyk7Vj2v79AOZDFpFZkjmMhi58iA2JzJTOTLUFG863ihexHLcsJsJCwPuPS0x6JiKO zdigoc+FyhPcRyqcCxOFTietrTbrw40D8nbETQM+5Ox5/5rieHMEeJgJhjzJJ8erapDn A6mTs4JxzrRJRh9oQzosSn/kZP6fi/vPPcMGuA64GwNRKDji18D5DXGguNrBU6Ei6fl0 EL8F3NimNbbooyYpuhdDZXMXh3/21u4NV7ql+NzDXhAGvntchfsansxzZ+KoKp2qb/Qy 902CzE+rzlwXTNRc/JXy0+ctlK3PZLpCsGwsuEhw1rL9aq2tVGuCAQqKBa7ln2NPeaJF 0c+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si4064547ejs.456.2020.05.07.14.04.50; Thu, 07 May 2020 14:05:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbgEGVDS (ORCPT + 99 others); Thu, 7 May 2020 17:03:18 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:42387 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbgEGVDR (ORCPT ); Thu, 7 May 2020 17:03:17 -0400 Received: by mail-ot1-f65.google.com with SMTP id m18so5755365otq.9; Thu, 07 May 2020 14:03:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VyDpqjFf92FEuiIHFMXtKbzqroXrkI/e2oOzUcuJwg4=; b=fOmxt45uhBJMbl+9BWI1OFrrwQaZVNOgdd+FjriV2PPDH/WR1nDNhX2guWuiSFgY58 nVBHSVG/4rLZwWT3sby/2RZYEiT3Ed3iXTZfmPiqGRx5noHtcjYjLeWGhyLcbcxTEkVY zDbuCOW/Pbdu2prukh2s1cvIF/VlfE28mycBrI3x8O4PAHM2eaecPtxjv+nyVDRJQ5zc tVuHRBfQeFSq76jd2Qh2VUj+KAey3i2p4mbLRpCDPod5HwKVmBIBLshrA7DKZVycYYCJ vB007t/IIhN5AEl9YWRTMF4XV/4wd5Rpia6iImdjW0K07OoW666D8jlvbVAHqyhVWXQg fNLw== X-Gm-Message-State: AGi0PuZiWMT6Fq/8lQk2e/tus3AbFDW/2nd670C4Gm9mAYTuPVs5Xwi9 6DZ0T2mYlDlT3woIZ7nW5g== X-Received: by 2002:a9d:3785:: with SMTP id x5mr11888606otb.81.1588885396749; Thu, 07 May 2020 14:03:16 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id g25sm1645901ots.21.2020.05.07.14.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 14:03:16 -0700 (PDT) Received: (nullmailer pid 19976 invoked by uid 1000); Thu, 07 May 2020 21:03:15 -0000 Date: Thu, 7 May 2020 16:03:15 -0500 From: Rob Herring To: Marc Zyngier Cc: linux-pci@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Kevin Hilman , Yue Wang Subject: Re: [PATCH] PCI: amlogic: meson: Don't use FAST_LINK_MODE to set up link Message-ID: <20200507210315.GA19547@bogus> References: <20200429164230.309922-1-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429164230.309922-1-maz@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Apr 2020 17:42:30 +0100, Marc Zyngier wrote: > My vim3l board stubbornly refuses to play ball with a bog > standard PCIe switch (ASM1184e), spitting all kind of errors > ranging from link never coming up to crazy things like downstream > ports falling off the face of the planet. > > Upon investigating how the PCIe RC is configured, I found the > following nugget: the Sysnopsys DWC PCIe Reference Manual, in the > section dedicated to the PLCR register, describes bit 7 (FAST_LINK_MODE) > as: > > "Sets all internal timers to fast mode for simulation purposes." > > I completely understand the need for setting this bit from a simulation > perspective, but what I have on my desk is actual silicon, which > expects timers to have a nominal value (and I expect this is the > case for most people). > > Making sure the FAST_LINK_MODE bit is cleared when configuring the RC > solves this problem. > > Fixes: 9c0ef6d34fdb ("PCI: amlogic: Add the Amlogic Meson PCIe controller driver") > Signed-off-by: Marc Zyngier > --- > drivers/pci/controller/dwc/pci-meson.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Acked-by: Rob Herring