Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vnVd06yb7zDq7d for ; Tue, 21 Mar 2017 22:16:36 +1100 (AEDT) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2LBBl2f008800 for ; Tue, 21 Mar 2017 07:16:26 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 29b0kcpph3-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 21 Mar 2017 07:16:26 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 21 Mar 2017 11:16:24 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2LBGKam11403730 for ; Tue, 21 Mar 2017 11:16:20 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4C4CFA4051 for ; Tue, 21 Mar 2017 11:16:00 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AD38EA405B for ; Tue, 21 Mar 2017 11:15:59 +0000 (GMT) Received: from [9.164.130.69] (unknown [9.164.130.69]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Tue, 21 Mar 2017 11:15:59 +0000 (GMT) Subject: Re: [PATCH V2 1/6] cxl: Remove unused values in bare-metal environment. To: linuxppc-dev@lists.ozlabs.org References: <1489489722-935-1-git-send-email-clombard@linux.vnet.ibm.com> <1489489722-935-2-git-send-email-clombard@linux.vnet.ibm.com> From: Frederic Barrat Date: Tue, 21 Mar 2017 12:16:18 +0100 MIME-Version: 1.0 In-Reply-To: <1489489722-935-2-git-send-email-clombard@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Message-Id: <86e0fbf1-f6f2-bffa-aeaa-8fc44ccbd816@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Le 14/03/2017 à 12:08, Christophe Lombard a écrit : > The two fields pid and tid of the structure cxl_irq_info are only used > in the guest environment. To avoid confusion, it's not necessary > to fill the fields in the bare-metal environment. > The PSL Process and Thread Identification Register is only used when > attaching a dedicated process for PSL8 only. I forgot to mention: we should probably say in the commit message that the code change is justified because the CXL_PSL_PID_TID_An register goes away in CAIA2 and cxl was not really using it. Fred > > Signed-off-by: Christophe Lombard > --- > drivers/misc/cxl/native.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c > index 7ae7105..7257e8b 100644 > --- a/drivers/misc/cxl/native.c > +++ b/drivers/misc/cxl/native.c > @@ -859,8 +859,6 @@ static int native_detach_process(struct cxl_context *ctx) > > static int native_get_irq_info(struct cxl_afu *afu, struct cxl_irq_info *info) > { > - u64 pidtid; > - > /* If the adapter has gone away, we can't get any meaningful > * information. > */ > @@ -870,9 +868,6 @@ static int native_get_irq_info(struct cxl_afu *afu, struct cxl_irq_info *info) > info->dsisr = cxl_p2n_read(afu, CXL_PSL_DSISR_An); > info->dar = cxl_p2n_read(afu, CXL_PSL_DAR_An); > info->dsr = cxl_p2n_read(afu, CXL_PSL_DSR_An); > - pidtid = cxl_p2n_read(afu, CXL_PSL_PID_TID_An); > - info->pid = pidtid >> 32; > - info->tid = pidtid & 0xffffffff; > info->afu_err = cxl_p2n_read(afu, CXL_AFU_ERR_An); > info->errstat = cxl_p2n_read(afu, CXL_PSL_ErrStat_An); > info->proc_handle = 0; >