Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp699824pxb; Tue, 5 Apr 2022 19:19:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeXhzlZowEp0/aPBZFFG79mZj6787roiuwkA1VyJsEvYHxaAtrzou8XpaomMZrWvSND1pX X-Received: by 2002:a63:f24c:0:b0:383:c279:e662 with SMTP id d12-20020a63f24c000000b00383c279e662mr5289984pgk.303.1649211561191; Tue, 05 Apr 2022 19:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649211561; cv=none; d=google.com; s=arc-20160816; b=xueK8FK6fQ2FxcUdY2wh4kSanV+YdeQ0wnvFjHbM/me3CG6+heC6348xyZ6/LA40LC AYl4THMYQTR6bXcVBwvxQhDyS0udmMoWTrzRo3E1SrZzMLdf8dOlP4M43ZwNXStaJxEz f6EUn7yst+UZwg4l2HN44TVAFOB9MccOLfshTJeYwN/7uEMGPrtZe/vPPRec1ro6530N 78dZ6De4SUvgRn7gL68UR+Am910LrYwvksP+xidkPw/7iZCYW+BswEt4REsfiMugX5wh VDw1IXzF7ayyihUxbeQzT/XSOQaAI7WcYBKbPLk8XIhWbQmKGP8ewmwxkWhjK8Ockw64 ouYA== 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=d0B/iSOfBQqXL6kczLaIEkjv9B8EMVMC+slPRlYCp45/XFTik2W+0/z2akrvjLLJWd GvbeIad+d6m0FnG8imihxWJJIeE0HhFpVJqPl40ob/jdHrQmPYUXT5RrW8zXQUKN3YbZ 56p6bwzqmEeea1/lSvRYljnVDJrQpV67XfRRTSRspAnwx/5Ekf+4lxk0fNGXn+koGYTR WOkLlJcNyKyswpVVHgiqAGpzYO8IebBvjzsGwdSNvjexzUV6WUIsWqYS5AGlB3Euwg1z 2wf+3eUqLsg0pZ1An+m/sX0g3nCzpq/whSnof7R9MZ7IHA6e5xyAKZ1isvNMNT+gaixQ BmOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="EV/uiXPL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il12-20020a17090b164c00b001c7370fb6cfsi3932801pjb.112.2022.04.05.19.19.05; Tue, 05 Apr 2022 19:19:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="EV/uiXPL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233546AbiDEIDC (ORCPT + 99 others); Tue, 5 Apr 2022 04:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbiDEHvi (ORCPT ); Tue, 5 Apr 2022 03:51:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A946A97298; Tue, 5 Apr 2022 00:47:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id 52BA8B81B90; Tue, 5 Apr 2022 07:47:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D9D2C3410F; Tue, 5 Apr 2022 07:47:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649144858; bh=c+SE1nfQd25OyP1t1PHgxyBCGD4MexGsb6rM39ymiUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EV/uiXPLw1AqVV7aFVwChjQIyDVIdXOP4bGOZeMoLlVHTB3Iz7OFPAK84qmFUB3XY iv4eb43ofuZT6x2Elc4ZE8BpCvQWcrs7B2YVGM/bRyxLGbP/TUDGKLBELdnpk6w2HU pc4ZwaXaCGUvA8ntj3/A7djK3PCvvgh3znBcNMvM= 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.17 0197/1126] PCI: xgene: Revert "PCI: xgene: Fix IB window setup" Date: Tue, 5 Apr 2022 09:15:44 +0200 Message-Id: <20220405070413.389911677@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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; }