Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp73797ybx; Tue, 5 Nov 2019 19:48:26 -0800 (PST) X-Google-Smtp-Source: APXvYqx2rThe/NTBHbsTiTbwjuwpeSVfuB9On8lz2xO61MSQ6KRMneUGftzzu9rpbJ7pP828dllp X-Received: by 2002:a05:6402:12ca:: with SMTP id k10mr325742edx.255.1573012106244; Tue, 05 Nov 2019 19:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573012106; cv=none; d=google.com; s=arc-20160816; b=vPMlhh4R8p1dLFloLQCjlwccTAoavjYUA6MWaybbFeMurfZdWLCYJauP6wutklyQAm MYK3o1KoS2ApIx4K5bnnyCj/ZSo6qmXy7Bcy1bmRNiFGxfX52PohLLvwaV3qZSVOcUfT lb62bk5wdQd91ukNStZF9PNhya5wFdJuB2F4p9PAPQNxMSK4+StGtCSt9zaIduiD1pjT WyjuDZcBSIvL/ykDpQsigLnpHicwslwvsZ58yvayO32Er3II4TDZtnRDDUviBCJlWnDp 3L5vUopqCGU2P9VHf2DymrCCvv2D1yVrcuzbd20mPQlNGXGL5bfOBfC1iD8Ax8oJnpxk Al2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=2ktG/t4vj/Z/NY+7LwVNJlclZpIuGkE0KLvZ2349qqI=; b=dJDA7pwKWFIWmhQv2cpEcwJjrFhT0q5wsTqDsfW9ekNuSpAWABbycvFWb2lXmnDm+F pQO5TiyKibZLAwUK52EV1xa/PU74qE7bTSAqYS1B35auJj9VPQZqzOzFDNY371DXOEoh l/8sozicoMAS5PfNnG8tkJMd3Ebv2S/Hr/lnxcljHOa4Oa6xKa5E9rc3e4BgeeZbGgvF KkNvG/3T6pk9LnoQlljvxr+NivHmwdkliUNDlRZ3AnoNtYaNksy17UEaClIrP7rVX83o 6f0h5iz/5lZl6Vnorg2PNI2sR6P2QEQS+6TtNyOufyp76CD2Jwjy+KuJLUcxlsklYIm2 UW3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16si14491628ejj.352.2019.11.05.19.48.02; Tue, 05 Nov 2019 19:48:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730944AbfKFDq6 (ORCPT + 99 others); Tue, 5 Nov 2019 22:46:58 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:42428 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbfKFDq6 (ORCPT ); Tue, 5 Nov 2019 22:46:58 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA63kaZW017642 for ; Tue, 5 Nov 2019 22:46:57 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2w3n352a29-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 05 Nov 2019 22:46:56 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 Nov 2019 03:46:53 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 6 Nov 2019 03:46:45 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xA63kiwk46727510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 6 Nov 2019 03:46:44 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 63DEE42041; Wed, 6 Nov 2019 03:46:44 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C2B142049; Wed, 6 Nov 2019 03:46:44 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 6 Nov 2019 03:46:44 +0000 (GMT) Received: from [10.61.2.125] (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 6FF61A00F1; Wed, 6 Nov 2019 14:46:39 +1100 (AEDT) Subject: Re: [PATCH 10/10] ocxl: Conditionally bind SCM devices to the generic OCXL driver To: "Alastair D'Silva" , alastair@d-silva.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Frederic Barrat , Arnd Bergmann , Greg Kroah-Hartman , Dan Williams , Vishal Verma , Dave Jiang , Keith Busch , Ira Weiny , Geert Uytterhoeven , Anton Blanchard , Krzysztof Kozlowski , Vasant Hegde , David Gibson , Hari Bathini , Allison Randal , Anju T Sudhakar , Mahesh Salgaonkar , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Thomas Gleixner , Greg Kurz , Nicholas Piggin , Masahiro Yamada , Alexey Kardashevskiy , Andrew Morton , David Hildenbrand , Oscar Salvador , Michal Hocko , Pavel Tatashin , Wei Yang , Qian Cai , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org References: <20191025044721.16617-1-alastair@au1.ibm.com> <20191025044721.16617-11-alastair@au1.ibm.com> From: Andrew Donnellan Date: Wed, 6 Nov 2019 14:46:40 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191025044721.16617-11-alastair@au1.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19110603-0008-0000-0000-0000032B1484 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19110603-0009-0000-0000-00004A4A7093 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-11-05_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1911060038 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/10/19 3:47 pm, Alastair D'Silva wrote: > From: Alastair D'Silva > > This patch allows the user to bind OpenCAPI SCM devices to the generic OCXL > driver. > > Signed-off-by: Alastair D'Silva Agree that this needs more explanation - both in the commit and the Kconfig help. > diff --git a/drivers/misc/ocxl/pci.c b/drivers/misc/ocxl/pci.c > index cb920aa88d3a..7137055c1883 100644 > --- a/drivers/misc/ocxl/pci.c > +++ b/drivers/misc/ocxl/pci.c > @@ -10,6 +10,9 @@ > */ > static const struct pci_device_id ocxl_pci_tbl[] = { > { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x062B), }, > +#ifdef CONFIG_OCXL_SCM_GENERIC > + { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x0625), }, > +#endif > { } > }; > MODULE_DEVICE_TABLE(pci, ocxl_pci_tbl); > If there's no way to use the ID table from ocxl-scm directly, there should at least be a comment both here and in the ocxl-scm device ID table mentioning that you need to keep these in sync. -- Andrew Donnellan OzLabs, ADL Canberra ajd@linux.ibm.com IBM Australia Limited