Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1569730pxk; Fri, 2 Oct 2020 13:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRdUJTaiOC4gCQZJZi7GiGVcht7Qz2gsRLCd7nBPwHFiWEUbHswp9aA0zK+Gjsjy9Vqo4+ X-Received: by 2002:a17:906:4a98:: with SMTP id x24mr875819eju.319.1601668943732; Fri, 02 Oct 2020 13:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601668943; cv=none; d=google.com; s=arc-20160816; b=CkxzwtzI7Ayrkpj4ZD9R3MYhLt8+nm7Ym7O1yCaJnBEnCKf+5zf4dkUlXXa3pgde6B 5wi888l+l8xhPv3c9/OpPqPK41OhgeQpa+4ryl6JQH8CsAJHFr/WKwG6VSe+mcFRxryu nQnFwBEOAxwchckMPf0c8CqGiMvamnpVZibAq7bt4FwKFO9qqrzPp8aW3JDbr9UuYVtC vCtOJEY58gytZA6d0rlH2s4TXAuMDJEwqiv974Jm8P5K2BqXokbM0eT31eRREeXodWdC tmdfO7jz18gXO7fQpwofkdMZaTemT4AmGYXRkJvUgzXBXSWh1EeuFl88Vq/H135ubGMO WuUA== 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=qBCN3CLXYZgv/AbppzTUQmWZvoRqd7vhkii3J9TybZ3++pKalznUPBJZA8eulgVFfF sD9b5c4zW29MeH+aLwzgb/XTPyK8HPtLIgNxaV6eZJDiK8KrvZ7nsuBUVYVwVVGqM7XK D8nQhIDMr0nY5XxTUA+NM33/UZShA506dg9b4B+WWD84v19Zk1fmsel/4No6dTIDBkon BXqnm+mar7XqWErYWQ4jlc41gRpAA+bFTuBIMNB1tqL9ksYb0BoCQe9HF494gDDj5Vsp XZ9flynAVLrlkoFhDWLgCraoC6zipNGJAm3/5Xtz0QcPAOklrrrU+ZcmzN5H5vQG3O8R 33bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QSgXq5ep; 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 f27si1783402ejt.420.2020.10.02.13.02.01; Fri, 02 Oct 2020 13:02:23 -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=QSgXq5ep; 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 S1725803AbgJBUBB (ORCPT + 99 others); Fri, 2 Oct 2020 16:01:01 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40476 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgJBUA4 (ORCPT ); Fri, 2 Oct 2020 16:00:56 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 092JtdeL184727; Fri, 2 Oct 2020 16:00:55 -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=QSgXq5epWiXVLyHHKzwy9aDeGWI6D2xOEprhcoZiqDOuJc01oV1iqN76WOHx1jvh28i+ JvwrZlcjgM3GnGllxaMzwu2TbVIztGuMDv5D4K5BgGWieqUGIoyjR2h5Fa524ZAE6rPe 3kxDUN0KpEH20ypvt+CyP2+xQuPKbJzGYr3B8v24i2nPosOvozPL3pLnm2W8SbN0cblX DV9K7BUWhmBzkLJeh2VBZ8iANzWbYBo6KFT5jGBai1OvthnQPcoPmcuIRx2EZUhnf02g 9ZMdCVRSAlKiVdjFTWsiommKLLdWNAfMfRfamitlcAftFnuxuoDGMOtm4VAwZ0BpPM1s Vw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 33xasvr2h7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Oct 2020 16:00:55 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 092Jw1KD189052; Fri, 2 Oct 2020 16:00:54 -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 33xasvr2gg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Oct 2020 16:00:54 -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 092JlCfL011608; Fri, 2 Oct 2020 20:00:53 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma01dal.us.ibm.com with ESMTP id 33sw9aearw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Oct 2020 20:00:53 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 092K0ovK50921892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 2 Oct 2020 20:00:50 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C6CE46E054; Fri, 2 Oct 2020 20:00:49 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE2B96E052; Fri, 2 Oct 2020 20:00:48 +0000 (GMT) Received: from oc4221205838.ibm.com (unknown [9.163.4.25]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 2 Oct 2020 20:00:48 +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 v2 1/5] s390/pci: stash version in the zpci_dev Date: Fri, 2 Oct 2020 16:00:40 -0400 Message-Id: <1601668844-5798-2-git-send-email-mjrosato@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1601668844-5798-1-git-send-email-mjrosato@linux.ibm.com> References: <1601668844-5798-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-02_14:2020-10-02,2020-10-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 suspectscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 mlxlogscore=975 clxscore=1011 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010020141 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