Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp652062pxb; Tue, 5 Apr 2022 17:22:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo+NjB8HJKMZ+ZmC+SeG8EEvALpNImXf9cHt8XNKbDfCceFNLOF5jQgJAEDCtefI/pMLae X-Received: by 2002:a17:902:b40c:b0:156:b616:e257 with SMTP id x12-20020a170902b40c00b00156b616e257mr5905950plr.44.1649204566360; Tue, 05 Apr 2022 17:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204566; cv=none; d=google.com; s=arc-20160816; b=w9py3IyKOsNgxfDGePZYyGUH8NXYGV+TOj7R25IT9vdvTo8vFRbg2AEuXSBfv3uGUu oKJ2FKaE4CVx9KgHFGJjHszFxW2YOP/ILN2mh1VvjJ0AuKWISZeGWNDTLgV0i45xT7yx 2XOzYVBIpDRBx+jhdD+vTVim54iGoFv0T7nOyxTpqTzcqWO7SEujYKX0WBFyW6T49bsJ HUorho8hoMgQYSfuZagrH3wvGDUz4Yw0R2id2EDltxNQux6BM5UfraIMFTM0P+9M/dkV 2mHgr3+2yPbaM8/qgLsJgFx7v3JadQQHOU3TVue4dg0SQ6vIEBj6NedX7aHsLane+kmv z0eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H4FCgpD37f/ibvU6ewDcQDNZNgXsstMZlUzX7G4iPBM=; b=0vOyJMi0SW3eJruA2/MuErG8bSjSoSaE4/iiAqXIUr/bEuDMi/kX0JLqq7qEGh7GAf mgjN/qt6ivVZCsJX5JH9/VNylakK/oEApUlUe2+hVRkS4FLDvogQ9dTjrQKjgu5j1fBL ea9ZjQhX8UaB7zbR/4x6Xc2yV1EK5Of9tDT28UTH3gFA9TH8xPrg/hd1QUCRQJdPfKqk /keRTflXJTPd+VP0q4j/22G961halmOi4LnFgp9A7Duss9PPPZ5PiENvtEJyts3LFSfk AwJvtVvoiEdDbTHMaAeLg7cl0oAwQxK1O4VmdA1nA6C2iAbq18741rcNJXgWeiZiyOQO ZV4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B70PR2y7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y3-20020a056a00180300b004fa3a8dff53si15921902pfa.10.2022.04.05.17.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 17:22:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B70PR2y7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3704A204C85; Tue, 5 Apr 2022 17:09:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233102AbiDEMGO (ORCPT + 99 others); Tue, 5 Apr 2022 08:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244160AbiDEIvr (ORCPT ); Tue, 5 Apr 2022 04:51:47 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA91D3AC3; Tue, 5 Apr 2022 01:40:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 2BE2CCE1C2B; Tue, 5 Apr 2022 08:40:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A759C385A3; Tue, 5 Apr 2022 08:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147999; bh=c+SE1nfQd25OyP1t1PHgxyBCGD4MexGsb6rM39ymiUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B70PR2y75cyDe6KHF4F87mu8g0szeS5IcppAYKbaas5L/gc2un2yxdzvQ6dFFC9no 2I21uKl4XcL8eHCtWRN/AqS/yJgiF3eezzeEYSDNo+MGuWXhEDjfmPXwGHvbcNF2Cz eYAMLnt55GqCgJ4Xffxj+EbvcDpqV7JjVj9oftBA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marc Zyngier , Lorenzo Pieralisi , Rob Herring , Toan Le , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , =?UTF-8?q?St=C3=A9phane=20Graber?= , dann frazier Subject: [PATCH 5.16 0199/1017] PCI: xgene: Revert "PCI: xgene: Fix IB window setup" Date: Tue, 5 Apr 2022 09:18:32 +0200 Message-Id: <20220405070400.156176848@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Zyngier commit 825da4e9cec68713fbb02dc6f71fe1bf65fe8050 upstream. Commit c7a75d07827a ("PCI: xgene: Fix IB window setup") tried to fix the damages that 6dce5aa59e0b ("PCI: xgene: Use inbound resources for setup") caused, but actually didn't improve anything for some plarforms (at least Mustang and m400 are still broken). Given that 6dce5aa59e0b has been reverted, revert this patch as well, restoring the PCIe support on XGene to its pre-5.5, working state. Link: https://lore.kernel.org/r/YjN8pT5e6/8cRohQ@xps13.dannf Link: https://lore.kernel.org/r/20220321104843.949645-3-maz@kernel.org Fixes: c7a75d07827a ("PCI: xgene: Fix IB window setup") Signed-off-by: Marc Zyngier Signed-off-by: Lorenzo Pieralisi Cc: stable@vger.kernel.org Cc: Rob Herring Cc: Toan Le Cc: Lorenzo Pieralisi Cc: Krzysztof Wilczyński Cc: Bjorn Helgaas Cc: Stéphane Graber Cc: dann frazier Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/pci-xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/controller/pci-xgene.c +++ b/drivers/pci/controller/pci-xgene.c @@ -465,7 +465,7 @@ static int xgene_pcie_select_ib_reg(u8 * return 1; } - if ((size > SZ_1K) && (size < SZ_4G) && !(*ib_reg_mask & (1 << 0))) { + if ((size > SZ_1K) && (size < SZ_1T) && !(*ib_reg_mask & (1 << 0))) { *ib_reg_mask |= (1 << 0); return 0; }