Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp680182pxb; Tue, 5 Apr 2022 18:30:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk9Dv/5SHRrxe8GtwrZq7Zz46SY4r031TQXQW/3UepZ3UnPrS50WkMD43oOdQp1fhpDMPq X-Received: by 2002:a17:906:3082:b0:6e0:111f:8986 with SMTP id 2-20020a170906308200b006e0111f8986mr5806427ejv.677.1649208618761; Tue, 05 Apr 2022 18:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649208618; cv=none; d=google.com; s=arc-20160816; b=wY6Q0Pdxos/bPEhki8EyrmZk1YC0Yq39YMW76sGo5QUsdPsRTGRBXmU2DnjXvAvotJ ZeXT7XYp6lFrVQhCzfyn2qF+b9HVAuhQpPeo1aiSx3ApU33b58/uaxxil+v9QXZX0BJu 53As9JL07IjnDKQUt3OWL3ah1XJyTMI3UJVKVmkY9uLVb3PIaVOAI71AfLkta6JUcK0B AhYk3yhrlG4c4jwcKkSSlEBgYaQK9vaPppVZ9hUygfbdz9DTB/IZ4sJsXQwBnrtshlRr L7DXYR5d/8b/Ih9rkRDky1HL0TrvHKJPFZ26rcRf/BTuXL+CUZf3k/cDL4X3m++5/IBQ JN7Q== 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=+9PT3hOS3zkoio/o3FO+TE6Jl/rUam5BvzxXL3OWPXk=; b=FB7PryI8DiGq32VHgxO2860BSwUtGh1yVfCD5Pz9iTWKglBH/J0K7SZ1ywV1KAOHIE 9nzSAIB1E8zmViOhAEWQw45tcKzqaWGGBQsTibVKauIZHvo1FcQZVrjgBQO6V2ixy3LV SkuTVgEQBupeFPWmienp7pFWE9UxuKOpH/3G/Rs34+Sl7L3qiB30HT/0JI98I7JOiB07 GELQ8MGHsh0myUokHcuhR9Px06px3p6DOJRKoAbV2Us4BeNtqBYxO7PeUNfIhGObY4zw KUq6f/ayqFVtw/UeTxVPhhe+0l+/N7bA9xdgSrQmvHNHiC7aeEXpsSrrF2zkQdou5yfy akuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rC4nv1gD; 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 f3-20020a170906138300b006e2b43d2393si5830296ejc.413.2022.04.05.18.29.53; Tue, 05 Apr 2022 18:30:18 -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=rC4nv1gD; 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 S245010AbiDEOyP (ORCPT + 99 others); Tue, 5 Apr 2022 10:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244520AbiDEJl1 (ORCPT ); Tue, 5 Apr 2022 05:41:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5671EBB938; Tue, 5 Apr 2022 02:26:46 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E8C086144D; Tue, 5 Apr 2022 09:26:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07652C385A2; Tue, 5 Apr 2022 09:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150805; bh=+UnTsI7cqt7eQoOzFufAziWIls9VhtwKKiTnlR3+b/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rC4nv1gD4B5G7un2ceEUrUt4RAXBD0J8Xd4sDSyrWMtMZ6UAhxuqJUT6H2mblJJbR s2C+OEuVTCvl0fl8QIFS0SViKbUb56MB/9vTe/wzI/b9nZpSm8qlVvWS0tsRDRs1k/ noXLG2FgjMpuAHhc8lwJwnV5h7uF+hy91sDD/6ck= 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.15 188/913] PCI: xgene: Revert "PCI: xgene: Fix IB window setup" Date: Tue, 5 Apr 2022 09:20:50 +0200 Message-Id: <20220405070345.492538216@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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 @@ -466,7 +466,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; }