Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A01FC433EF for ; Fri, 24 Sep 2021 02:43:15 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1D550610CB for ; Fri, 24 Sep 2021 02:43:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1D550610CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6165F83479; Fri, 24 Sep 2021 04:43:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="thGTX82F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F1CA8343A; Fri, 24 Sep 2021 04:41:54 +0200 (CEST) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 05E2D83440 for ; Fri, 24 Sep 2021 04:41:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72f.google.com with SMTP id 138so26161488qko.10 for ; Thu, 23 Sep 2021 19:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dH3aD37/8wUJDi2OcIzvEnOmnBKTTpeiK6azSgnYz6g=; b=thGTX82F5vkqBOXHbn8LFLwgYYPdocnX83WhASIMjpvvOoh6A0L62Fvc1/6O7i4LXs z6OxA+pjHGI0CqUexJ9NPalW/q8ySDozQv21pyA+0IsbKl/x17fjwemx22SOHi9JwiVR y745DaMUoUXiCobJX5T0J88O3+0Y7azWXP1HE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dH3aD37/8wUJDi2OcIzvEnOmnBKTTpeiK6azSgnYz6g=; b=3GAQlF+aYMtrhgw60bNOhpFaENY8+ohXDGIMjWP5MWmzyXXCNjuhkN24VhBqTXt1/K zIKQ2F8SeW7+F6/uaIXM/ldJmp4/7oJI30FfMv7TywAcPVR8FazvTX1FhlB7yCC9a9pM dtsgWmeDpXyY7hLoE0oGJc1ltu/2aIKlJOOAcII5DHzYA5Ab7Uyn7gQ4ijtNl0aSGCTV qCZkPUquQ9oqoXxf29HLtVhTqjt0/rQAxSImP7HjjlRMSUIOmu+/l6zcyuFYTGoBPZKe OC6Ml7aN5TeiTjcCqSLcqNY9vAzs4u8O3qvEIm12hxUPTi2956hvcba24uifVFoStl0b k5Ig== X-Gm-Message-State: AOAM533e1u2wc1eg+CuFr3rkr3wEWOBpXYkoBJl7jBEX9CkAMYoJCQ6I /LB0Tu4s/yvxibpOlfTCfWkjhg== X-Google-Smtp-Source: ABdhPJyQuFjeWQne+kJuNcK+i/0ns9WD0c/e0uXueK9JvcqJKbqLYiv/ciksdNjvQtX7zawQEpDEAA== X-Received: by 2002:a37:ab0d:: with SMTP id u13mr8179643qke.521.1632451299856; Thu, 23 Sep 2021 19:41:39 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-11b7-7bd8-71db-92e9.res6.spectrum.com. [2603:6081:7b01:cbda:11b7:7bd8:71db:92e9]) by smtp.gmail.com with ESMTPSA id m139sm6052009qke.18.2021.09.23.19.41.39 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Sep 2021 19:41:39 -0700 (PDT) Date: Thu, 23 Sep 2021 22:41:37 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Stefan Roese , Phil Sutter , u-boot@lists.denx.de Subject: Re: [PATCH] pci: Fix configuring io/memory base and limit registers of PCI bridges Message-ID: <20210924024137.GM31748@bill-the-cat> References: <20210910113335.8283-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HcLgruZUVNEEX12n" Content-Disposition: inline In-Reply-To: <20210910113335.8283-1-pali@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --HcLgruZUVNEEX12n Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 10, 2021 at 01:33:35PM +0200, Pali Roh=E1r wrote: > Lower 4 bits of PCI_MEMORY_BASE and PCI_MEMORY_LIMIT registers are reserv= ed > and should be zero. So do not set them to non-zero value. >=20 > Lower 4 bits of PCI_PREF_MEMORY_BASE and PCI_PREF_MEMORY_LIMIT registers > contain information if 64-bit memory addressing is supported. So preserve > this information when overwriting these registers. >=20 > Lower 4 bits of PCI_IO_BASE and PCI_IO_LIMIT register contain information > if 32-bit io addressing is supported. So preserve this information and do > not try to configure 32-bit io addressing (via PCI_IO_BASE_UPPER16 and > PCI_IO_LIMIT_UPPER16 registers) when it is unsupported. >=20 > Signed-off-by: Pali Roh=E1r > Reviewed-by: Stefan Roese Applied to u-boot/next, thanks! --=20 Tom --HcLgruZUVNEEX12n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFNOuEACgkQFHw5/5Y0 tyzAowv/W3u3fUtyZSeqg2h+tS1q3btAIXy/kP+A+m2WyQhbDlwdwrZXy3/JCuN/ O5ledQAsZqZFF91cOnAFXoSUNNtRYBybV4ycmWNu+qRTDxs4sIxFLi2PglyhoFh3 QYAmOCy20xpnceP/vXiTUvMGqAEh2DEJClGRbk8PBbuSS8DP2fSPJUZQfDW/vrgF nCDWulFenB6V+uibshqJg47IQAApY6qAD31rhxPaezzxisaw9zptowwF/yKrshdX 4cuXsf1uqnxPHstFdvH6qDmIZz7kjcsyb6JYh/S0/VzWukpLT8YtON2Nynfk+FRV mW3iLSgAK3BN6bfy7icwUYGBRBsrqnN/KxEsKRPXvPSWaHP6nINSQ9m8SE6+qW+h mWk6J8lu8VmUliwKLQvcQdmQxJCySyVfbrvm/La0v3ZD9w5qtTa39ySAGs3W4ksF iPevg7sd3c/ENAs6XUFQ+nzmTAFgdEW7ZAFSpPjD5AgODkyShsrPcsJfxZF1wwd9 2RlLVURY =V1W+ -----END PGP SIGNATURE----- --HcLgruZUVNEEX12n--