Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp643403pxu; Wed, 7 Oct 2020 11:58:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXIltF27A6J9W877qg35+4BbHqNIqSKZUzz9V88TVtLr/iSJgyWcKroTpwHWhCn0Ds/k7/ X-Received: by 2002:a17:906:bc91:: with SMTP id lv17mr5007872ejb.249.1602097083849; Wed, 07 Oct 2020 11:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602097083; cv=none; d=google.com; s=arc-20160816; b=ZVZ8V1JzxN/SU3/+9qrKi2gBwF+a3UncdSq6UIrshfyyj6owkR4LyKKOVGviG4iIh5 wOFgK3FV4MlV3JJQOn9pLN2gw6sN+rP5lQrJakXCRQ8P6QKtftNYHCrbgwqXJMlMeUEA b+f1dFffRSkiDfIO86R8wa/jQW/H3FeIyGwN8u/iWqfv+wvAMwvy6z63aoZfXebZD3xA MQmWeH4MZORLsUhNGH4xIe7N/ZBQm4F1TSWTnh6fuWuUH/jrF/Jvq0FOL56amKBfWu9q KaUx0eymnd1LslckrzHu/TCv5lAN8Akjb/UhLv9oMTWMM2zVIcUQysxG6oZiOESZU6++ bfhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=qwyKtTUgEZyoCRJjBqLKwxEQ4USWfunQbmB6tnOBH9k=; b=MHfkJTfWdBh/yBa/9qBxaWyWU78ek5t6UlgleLMYhgMhzm23WwTYV4XnUo4stmAgMX 4MwCMg08s1R8+iuIhP09ut83h910KYMhnFmdtf8OTZzSpnwCNL/Zu+XggUkNijWli5wh UPn9CknNPgw4Onn7ItPMfm1xtTDQntmuOoznr7AOrnDdNkJ6yHnyJWAgTAQ//+/sXZYf hWy1SnxkSDNwHG6ZlGfoe33auNnYcUe9W/SHW/m/i6xLacEJWSpC4TNfe1kJj5QLY2/I JtlR9hSNdz3YdcPWl3QIyWUXilsa/ETv67MBTHNdImvUwCL8cm1dVpR5QR7Y5BfFGH6K iF7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Pfc+za0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si2028877edy.18.2020.10.07.11.57.39; Wed, 07 Oct 2020 11:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Pfc+za0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728254AbgJGS4g (ORCPT + 99 others); Wed, 7 Oct 2020 14:56:36 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:2554 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgJGS4e (ORCPT ); Wed, 7 Oct 2020 14:56:34 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 097IlLVe111441; Wed, 7 Oct 2020 14:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp1; bh=qwyKtTUgEZyoCRJjBqLKwxEQ4USWfunQbmB6tnOBH9k=; b=Pfc+za0OKoIS9Ejl2H8C1TOAS7EiC9xiZh+E9u1FJOgHP/EGiY7/sp6BN/n6g3kgmLL9 L3jrnPMvXBV/GWimStzHsIEq1OfTdjwnZ5e1+wFYc3Uik/Vahw96sbLyup3co+vIYNTU kgOFaE5CN1TgL6kVDwERfz1QMN5j1DnQkey/Evdyk+rKub7S1AOgASrGs7xT1ICHIq1p ZGF98sWXxwUZt0WiMZYwnWunRrhbW0DfJJ8EB/uOLZWkyeirL0Va+J9H56EWZkrFmSzk GsRGPPPhms38267v5Gp1D3+bi7mm4zd5pgywpPcyTHWc7ZRjcayjkgzCuEWQrSUfBQDg LA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 341k8u05e9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 14:56:33 -0400 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 097IpbZP125129; Wed, 7 Oct 2020 14:56:33 -0400 Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 341k8u05dx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 14:56:33 -0400 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 097IlVHD029818; Wed, 7 Oct 2020 18:56:32 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma01dal.us.ibm.com with ESMTP id 33xgx9sm0m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Oct 2020 18:56:32 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 097IuTfC1114660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Oct 2020 18:56:29 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2150878066; Wed, 7 Oct 2020 18:56:29 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 03C2778064; Wed, 7 Oct 2020 18:56:28 +0000 (GMT) Received: from oc4221205838.ibm.com (unknown [9.211.60.106]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 7 Oct 2020 18:56:27 +0000 (GMT) From: Matthew Rosato To: alex.williamson@redhat.com, cohuck@redhat.com, schnelle@linux.ibm.com Cc: pmorel@linux.ibm.com, borntraeger@de.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, gerald.schaefer@linux.ibm.com, linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/5] s390/pci: stash version in the zpci_dev Date: Wed, 7 Oct 2020 14:56:20 -0400 Message-Id: <1602096984-13703-2-git-send-email-mjrosato@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602096984-13703-1-git-send-email-mjrosato@linux.ibm.com> References: <1602096984-13703-1-git-send-email-mjrosato@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-07_10:2020-10-07,2020-10-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 adultscore=0 bulkscore=0 impostorscore=0 mlxlogscore=980 mlxscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010070116 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for passing the info on to vfio-pci devices, stash the supported PCI version for the target device in the zpci_dev. Signed-off-by: Matthew Rosato Acked-by: Niklas Schnelle Acked-by: Christian Borntraeger Acked-by: Cornelia Huck --- arch/s390/include/asm/pci.h | 1 + arch/s390/pci/pci_clp.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index 99b92c3..882e233 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h @@ -179,6 +179,7 @@ struct zpci_dev { atomic64_t mapped_pages; atomic64_t unmapped_pages; + u8 version; enum pci_bus_speed max_bus_speed; struct dentry *debugfs_dev; diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c index 7e735f4..48bf316 100644 --- a/arch/s390/pci/pci_clp.c +++ b/arch/s390/pci/pci_clp.c @@ -102,6 +102,7 @@ static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, zdev->msi_addr = response->msia; zdev->max_msi = response->noi; zdev->fmb_update = response->mui; + zdev->version = response->version; switch (response->version) { case 1: -- 1.8.3.1