Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4400928pxb; Wed, 20 Apr 2022 02:21:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxemVz5tC2TOr1Os63FpiFkDeOjhboi8pqXKMkQSvK6j8MmMBEIdwsZMl4fDNI00WemQ+FB X-Received: by 2002:a17:907:d05:b0:6e4:49ac:9b26 with SMTP id gn5-20020a1709070d0500b006e449ac9b26mr17751123ejc.133.1650446482189; Wed, 20 Apr 2022 02:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650446482; cv=none; d=google.com; s=arc-20160816; b=btAYaOt/5X3bxli2f4ssrnEA57y2VqhpZ79dmE3vVCC9GB4cRgQ8nGYpuEmwqpQGjQ F5fDYjo8V0DCkAnAhbdUmiac/Rdh5dCYZLkBQMEcaN3vOSQo0UzpqS6yP7KB95+n5AaQ vUyXXgrB9TF6imwxRIo3BBcvh6j/x2r61od//fOJkIXg+ILYgRbLBuFbqBASVbOMQ6eB IppjXqwH3T+C53TyxPKlaEe4mNo2X716Jv6km3SBfJNFxqqQPXyR50z41HhO7SrVT9Bq l2BLv3Rg3seHCbmx/Bj0a7ckASoSvw4BDWAAp0ptz73Hkh0aTVoKN4EjehMn1xpjbso/ dWlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=4T/NoO+5a2Myu9HM+/yaCGsKrg2GPVhyK/sYXraDcJQ=; b=0d2NiZyGOGhAXK3XD3YTIJDh5sUiNuz95NXDA9otl+cFlp/DfxlYDdPSww3jKS+4Yt tt6uPXBZZ8V0mB6IlD1YcmvR32LqIhy9GApiXEhUc5ClA78K7NVhbIZkxMbmtey4Xp+z HUJ1d9+BZaoAMNrriaaeceLtWxyciZZvKxo+bG5bTMq6UhRr+e0Dii7EstzqeF2tiTKW kP+4qxBQeMgZEZ6Jhvlo3cJVw4fW6D2K6/ACIvEgYvDF8XGAOSAPJr745j4A+Ue8P5ve kAfxaCB/8zxgcU0w5cnfEpbhz2ITF205Ch4VoemQVIjiRan5hAXwMuhu/CxyD183b0ak msJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PXDVn4dL; 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=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx11-20020a170906ca4b00b006e6ec107c1esi1224928ejb.636.2022.04.20.02.20.56; Wed, 20 Apr 2022 02:21:22 -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=@ibm.com header.s=pp1 header.b=PXDVn4dL; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350698AbiDSKbI (ORCPT + 99 others); Tue, 19 Apr 2022 06:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242210AbiDSKaz (ORCPT ); Tue, 19 Apr 2022 06:30:55 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30D727B04; Tue, 19 Apr 2022 03:28:13 -0700 (PDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23JAGjVN009534; Tue, 19 Apr 2022 10:28:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=4T/NoO+5a2Myu9HM+/yaCGsKrg2GPVhyK/sYXraDcJQ=; b=PXDVn4dLgYISaFodhqxa/mTQNuUFVLRo8HlmxIJOvbr9vQou4wspc7W6kFatlWPz/CGG 6IZi6nG59nITRVkdti2M70EEKe23vdWjpjKKO0TJeVEnVoX0du/RVdD9CKOIJhHHgq6I iVOc8DFzPSIGGdrF2RE2ugj8foEVrNP6o+hzopb8sI2ntIbnpPtEZ7mA6e7b3Xqvi9WB vNxlHAxurjiwEH0wGSTcXznxJEHf9KRqkhdI/JYBVAIFYUkGS5ZCneH8tsXecAcmpjHj 3vYtNiL/J1UDmrcOkvpetCYw3moL3u4YJFp/8FXt0RaGcRXbwzMC/cgKdTUPAqLIrLJ7 Rw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3fg7664hb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Apr 2022 10:28:09 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 23JA05IT022980; Tue, 19 Apr 2022 10:28:09 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 3fg7664hap-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Apr 2022 10:28:09 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23JACupf009456; Tue, 19 Apr 2022 10:28:07 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 3ffne8m610-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Apr 2022 10:28:07 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23JAS4uD37224846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Apr 2022 10:28:04 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0491011C04C; Tue, 19 Apr 2022 10:28:04 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ADCB111C052; Tue, 19 Apr 2022 10:28:03 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 19 Apr 2022 10:28:03 +0000 (GMT) From: Niklas Schnelle To: Bjorn Helgaas , Jan Kiszka , Matthew Rosato , Pierre Morel Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-s390@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v3 0/4] PCI: Rework pci_scan_slot() and isolated PCI functions Date: Tue, 19 Apr 2022 12:27:59 +0200 Message-Id: <20220419102803.3430139-1-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.32.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: DCzY1goF0pqzcYsxkh5C4COYYqQs2w7B X-Proofpoint-GUID: q-hliZPwYpYaU-q97y_khEJJ96iTm6zN Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-19_04,2022-04-15_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=663 clxscore=1015 priorityscore=1501 bulkscore=0 spamscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0 mlxscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204190056 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 Hi Bjorn, Hi Jan, In an earlier version[0], I sought to apply the existing jailhouse special case for isolated PCI functions to s390. As Bjorn noted in[1] there appears to be some potential for cleaning things up and removing duplication though. This series attempts to do this cleanup (Patches 1 and 2) followed by enabling isolated PCI functions for s390 (Patches 3 and 4). If need be I can of course split the cleanup off but for now I kept it as one as that's what I have been testing. Thanks, Niklas Changes v2 -> v3: - Removed now unused nr_devs variable (kernel test robot) [0] https://lore.kernel.org/linux-pci/20220404095346.2324666-1-schnelle@linux.ibm.com/ [1] https://lore.kernel.org/linux-pci/20220408224514.GA353445@bhelgaas/ Niklas Schnelle (4): PCI: Clean up pci_scan_slot() PCI: Move jailhouse's isolated function handling to pci_scan_slot() PCI: Extend isolated function probing to s390 s390/pci: allow zPCI zbus without a function zero arch/s390/pci/pci_bus.c | 82 ++++++++++---------------------------- drivers/pci/probe.c | 63 +++++++++++------------------ include/linux/hypervisor.h | 9 +++++ 3 files changed, 52 insertions(+), 102 deletions(-) -- 2.32.0