From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 6B5881A0E70 for ; Fri, 22 Jan 2016 05:49:02 +1100 (AEDT) Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 53EC71402A0 for ; Fri, 22 Jan 2016 05:49:00 +1100 (AEDT) Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 21 Jan 2016 18:48:56 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0FE912190023 for ; Thu, 21 Jan 2016 18:48:42 +0000 (GMT) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u0LImrPh64487484 for ; Thu, 21 Jan 2016 18:48:54 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u0LImqFJ004412 for ; Thu, 21 Jan 2016 11:48:53 -0700 Subject: Re: [PATCH] cxl: Add cxl_read_adapter_vpd() to the kernel API To: Michael Neuling , ian@ozlabs.au.ibm.com, linuxppc-dev@ozlabs.org References: <1453223694-5190-1-git-send-email-fbarrat@linux.vnet.ibm.com> <1453256449.28504.56.camel@au.ibm.com> From: Frederic Barrat Message-ID: <56A12814.5080607@linux.vnet.ibm.com> Date: Thu, 21 Jan 2016 19:48:52 +0100 MIME-Version: 1.0 In-Reply-To: <1453256449.28504.56.camel@au.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Le 20/01/2016 03:20, Michael Neuling a écrit : > The only thing I'm a bit concerned about is are we going to end up > duplicating a lot of the linux PCI API, but I guess we are only going > to do this for things the papr HCALL interface mimics. There are actually very few operations we can do on the adapter with hcalls. papr defines 'reset', 'read the VPD' and flashing a new image on the card. So we'll soon run out of APIs to mimic. I guess it means the usage of cxl_get_phys_dev() should be discouraged, since it's going to lead to different behaviors between bare-metal and powerVM guest. Was there another expected use case for a kernel driver other than accessing the VPD? Fred