Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7557396rwd; Tue, 20 Jun 2023 03:01:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eF5PTGDa2GDe4YYYH7MVgBCgQBhe3pHU13OLKq/yCOK+f8huRkw6jQweiKbZjMnBeLjCy X-Received: by 2002:a05:6a20:441a:b0:10f:b53d:8641 with SMTP id ce26-20020a056a20441a00b0010fb53d8641mr9824819pzb.46.1687255311836; Tue, 20 Jun 2023 03:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687255311; cv=none; d=google.com; s=arc-20160816; b=B0xwx89ai/vvKbYxjTXA1QMLxT1woOuKrbW/4awTvRngn+4fzaWY0Q692xYi7O71o6 INARK0ylJXZ9cHuak82z3Wh6BWq20BsmeEOHhR59nnjaVTqD7GvG9CQOiCdpkb83QUrn XSiTavaJdwR7HicDWGR0zV+bI8IMNyW89WP0OP1BvkEYu/NfAcDL2wRncK7Y/cgdRJEk h48DRMXT4hA6Q6rn4SVdHS68WwBKfpRHv4jMB0NCmQAZv+IDmYDPfNrmssG4tYqwGe5H Xmx2CQUhnhuR2pz7cNdA9yQcnIR3p8C7rGoJxSqFm70kLAMm/iIaDwu7o5MxH7opTy20 7JEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=V5zVIoAMmsa1n8c1r8IM7Vc6BgUi5ukc/2QyG51SYIg=; b=TtddsQakry+48HS8aHYaiTQNADSyxhV6HB/7MxDSTc6ZNfxEk3cCrlPlJyWtqZmLJ8 ohVc9v2IGwUPrOviLAxkkAJ42TPcNO19pPo5oc8h9M6OR344vwnCFeG4tH+WIZRrwAt+ 307AUDmwmMFl08AsTQeJy2on0/FNt/3Aa6rzqPweGOwlBZNekem1QyNtyhm5FFz30xXl Le4T8esdIMQfB+nQXiKW/ITC9xvUwrIjt9BVyM3QanpUZBCc+yi3Sex8zwdIL1+yxrVf U5X+1e6PdIXkrSwVTNCDzhHhdLLrrtXjnUxwsJj3qhIbbU7a2oNYlrgodZmfr0Zi0Tl5 Dv0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t30-20020a63b25e000000b00553c1745fb3si1284106pgo.372.2023.06.20.03.01.24; Tue, 20 Jun 2023 03:01:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232535AbjFTJve (ORCPT + 99 others); Tue, 20 Jun 2023 05:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbjFTJu4 (ORCPT ); Tue, 20 Jun 2023 05:50:56 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C73152957; Tue, 20 Jun 2023 02:49:10 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id A5C7592009C; Tue, 20 Jun 2023 11:49:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id A241B92009B; Tue, 20 Jun 2023 10:49:08 +0100 (BST) Date: Tue, 20 Jun 2023 10:49:08 +0100 (BST) From: "Maciej W. Rozycki" To: Bjorn Helgaas , Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky cc: linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] PCI+IB/hfi1: Fold duplicate secondary bus reset code Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,HDRS_LCASE, SPF_HELO_NONE,SPF_NONE,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 Hi, In the course of verifying my PCIe link training failure workaround (cf. ) in the context of secondary bus reset handling I found a piece of code in the InfiniBand HFI1 driver that duplicates what we already have as private code in PCI core. This patch series removes this duplication by exporting said private code and than making use of it in the HFI1 driver. As I have no means to run-time verify InfiniBand code I have only build these patches, for x86-64, with the HFI1 driver both built in and modular. Please see individual change descriptions for further details. Please consider. Maciej