linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Christophe Lombard <clombard@linux.vnet.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, fbarrat@linux.vnet.ibm.com,
	imunsie@au1.ibm.com, andrew.donnellan@au1.ibm.com
Subject: [PATCH V2 1/6] cxl: Remove unused values in bare-metal environment.
Date: Tue, 14 Mar 2017 12:08:37 +0100	[thread overview]
Message-ID: <1489489722-935-2-git-send-email-clombard@linux.vnet.ibm.com> (raw)
In-Reply-To: <1489489722-935-1-git-send-email-clombard@linux.vnet.ibm.com>

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.

Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
---
 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;
-- 
2.7.4

  reply	other threads:[~2017-03-14 11:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-14 11:08 [PATCH V2 0/6] cxl: Add support for Coherent Accelerator Interface Architecture 2.0 Christophe Lombard
2017-03-14 11:08 ` Christophe Lombard [this message]
2017-03-20  1:11   ` [PATCH V2 1/6] cxl: Remove unused values in bare-metal environment Andrew Donnellan
2017-03-20 14:18   ` Frederic Barrat
2017-03-21 11:16   ` Frederic Barrat
2017-03-14 11:08 ` [PATCH V2 2/6] cxl: Keep track of mm struct associated with a context Christophe Lombard
2017-03-20 14:27   ` Frederic Barrat
2017-03-21 11:28   ` Frederic Barrat
2017-03-14 11:08 ` [PATCH V2 3/6] cxl: Update implementation service layer Christophe Lombard
2017-03-20 16:17   ` Frederic Barrat
2017-03-21  2:56     ` Andrew Donnellan
2017-03-14 11:08 ` [PATCH V2 4/6] cxl: Rename some psl8 specific functions Christophe Lombard
2017-03-20 16:26   ` Frederic Barrat
2017-03-21  9:38     ` christophe lombard
2017-03-14 11:08 ` [PATCH V2 5/6] cxl: Isolate few psl8 specific calls Christophe Lombard
2017-03-20 18:15   ` Frederic Barrat
2017-03-14 11:08 ` [PATCH V2 6/6] cxl: Add psl9 specific code Christophe Lombard
2017-03-21 11:21   ` Frederic Barrat
2017-03-21  2:47 ` [PATCH V2 0/6] cxl: Add support for Coherent Accelerator Interface Architecture 2.0 Andrew Donnellan
2017-03-21  9:47   ` christophe lombard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489489722-935-2-git-send-email-clombard@linux.vnet.ibm.com \
    --to=clombard@linux.vnet.ibm.com \
    --cc=andrew.donnellan@au1.ibm.com \
    --cc=fbarrat@linux.vnet.ibm.com \
    --cc=imunsie@au1.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).