Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1796374pxb; Mon, 12 Apr 2021 07:00:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwod5g2dskBo0l080Zr+KmR09GILhxwSOODfJkWGtASWrqq6G5EGXd9fCc00q8x/aAvpcJc X-Received: by 2002:a17:906:51c3:: with SMTP id v3mr27598819ejk.497.1618236054243; Mon, 12 Apr 2021 07:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618236054; cv=none; d=google.com; s=arc-20160816; b=v4d2DTq4p3/URouEh0/9jFYVmQKvrtQqBoOMx0GD4dw0HbvP7hrNXh4RjbU2FvaM2W XuT1O46kxGuiPnS3c+QU4Zc/94oz+13Zv3NdROadkzSF5y792b6KoLbC0nSKi6HeRtnU W/eYs2BIX8vKS7ec2llaT3uxxxu6wRqqzHx7g5NwD1rxa2pkEt0W3ti70tGuRMKAZWC5 tbpNV59u+XufcHqQJXKn0hns0WYPCY1z1n5NnHtXyJvXpft1EVYoG/7D3f8Bcp96MnCk w3tHJUhWk9K0+pe7/Xk30NrdKSks8gsJPShzn9rgVSc9x0EKQgDuyRcUiM6TxH3R7L1/ lsJQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=I1xA9fWP2JmdBLLvaqDSq+m+noRiKWAJdZxVpnmKDns=; b=N6jicYyvNXXxqYmiy0q/JE/Tnc4ZioOl9e3qdg53sGmuR5aZcYHL+iGL9XgTHlCZ5U RcDu7+CxQ/HXQ7Qa0wNGMAKnfbnkTnTAUNok2E5lmHTPleu4KuBLVX0taoYl0Wr5xqa3 kJUyRcST0toeQ8DFHXw9Hl2mZwU8TrKp5Sv2J+oEIrD/JmrZ6zr8icYfQhGmo2DfElM5 bFdchy2F3bGp2KOybJ3g0O98/ydyPOhgXBWFVGiw6hU2NXOtucZMWBOBOZ1ZJplbUbDW Z3JzfWR+d/SIDpvejeZ6lHW0XwX2GJyFFlseUndGzZ2kdYgHov6a1jmiCTDQa7Q14QvO amDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sPUs5pZT; 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 h2si7681097ede.520.2021.04.12.07.00.15; Mon, 12 Apr 2021 07:00:54 -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=sPUs5pZT; 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 S242053AbhDLN7c (ORCPT + 99 others); Mon, 12 Apr 2021 09:59:32 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56280 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238985AbhDLN7a (ORCPT ); Mon, 12 Apr 2021 09:59:30 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13CDYJqD089060; Mon, 12 Apr 2021 09:59:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=pp1; bh=I1xA9fWP2JmdBLLvaqDSq+m+noRiKWAJdZxVpnmKDns=; b=sPUs5pZT2isL3u8zLcv4x/SPnOlxbFY8OIWZJRAQrG7KhOCE6Ej5jaDu6B9LPFjFYOZh 7B34vXLlU1Rz+JYYekmVYIbMYNGTu8t+LZ0yj7HV7PE/NHO2R/eL7g7QgzPBaG/K/YMs 1clQmA/d3e6ujiQPOX6Y8fDWJ9Mo/jU7tIb3QtwIE4q69SwobEPtta3CXmAXf7vxZQNI kyUKjMfpBwakyXNtFo7VP6+GbNZt/7bWsOw54GcEJfnxL2ZGdr74eR/kKpWbpWfei/HU drjzCuJ4HUP4XlmEZdU6AlxFloxrdiJQ77+5ED9bHtqoOgUxp35NwEC4g5tPIignbAIh hQ== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 37vkdfsvxh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Apr 2021 09:59:11 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13CDvvVp013283; Mon, 12 Apr 2021 13:59:09 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04ams.nl.ibm.com with ESMTP id 37u3n8sv4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Apr 2021 13:59:09 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13CDx6VU49807676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Apr 2021 13:59:06 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0823B42041; Mon, 12 Apr 2021 13:59:06 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A241142042; Mon, 12 Apr 2021 13:59:05 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 12 Apr 2021 13:59:05 +0000 (GMT) From: Niklas Schnelle To: Narendra K Cc: Viktor Mihajlovski , Stefan Raspl , Peter Oberparleiter , linux-netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: =?UTF-8?q?=5BPATCH=200/1=5D=20Use=20of=20/sys/bus/pci/devices/=E2=80=A6/index=20for=20non-SMBIOS=20platforms?= Date: Mon, 12 Apr 2021 15:59:04 +0200 Message-Id: <20210412135905.1434249-1-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: TstaIQiXbtlWMLpJanMJ3PdnICOXAcz1 X-Proofpoint-ORIG-GUID: TstaIQiXbtlWMLpJanMJ3PdnICOXAcz1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-12_10:2021-04-12,2021-04-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 phishscore=0 mlxlogscore=999 impostorscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104120091 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Narendra, Hi All, According to Documentation/ABI/testing/sysfs-bus-pci you are responsible for the index device attribute that is used by systemd to create network interface names. Now we would like to reuse this attribute for firmware provided PCI device index numbers on the s390 architecture which doesn't have SMBIOS/DMI nor ACPI. All code changes are within our architecture specific code but I'd like to get some Acks for this reuse. I've sent an RFC version of this patch on 15th of March with the subject: s390/pci: expose a PCI device's UID as its index but got no response. Would it be okay to re-use this attribute for essentially the same purpose but with index numbers provided by a different platform mechanism? I think this would be cleaner than further proliferation of /sys/bus/pci/devices//xyz_index attributes and allows re-use of the existing userspace infrastructure. Thanks, Niklas Schnelle Niklas Schnelle (1): s390/pci: expose a PCI device's UID as its index Documentation/ABI/testing/sysfs-bus-pci | 11 +++++--- arch/s390/pci/pci_sysfs.c | 35 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) -- 2.25.1