|
@@ -6,6 +6,9 @@
|
|
* Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
|
|
* Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#define KMSG_COMPONENT "sclp_cmd"
|
|
|
|
+#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
|
|
|
|
+
|
|
#include <linux/completion.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/init.h>
|
|
#include <linux/init.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/errno.h>
|
|
@@ -16,9 +19,8 @@
|
|
#include <linux/memory.h>
|
|
#include <linux/memory.h>
|
|
#include <asm/chpid.h>
|
|
#include <asm/chpid.h>
|
|
#include <asm/sclp.h>
|
|
#include <asm/sclp.h>
|
|
-#include "sclp.h"
|
|
|
|
|
|
|
|
-#define TAG "sclp_cmd: "
|
|
|
|
|
|
+#include "sclp.h"
|
|
|
|
|
|
#define SCLP_CMDW_READ_SCP_INFO 0x00020001
|
|
#define SCLP_CMDW_READ_SCP_INFO 0x00020001
|
|
#define SCLP_CMDW_READ_SCP_INFO_FORCED 0x00120001
|
|
#define SCLP_CMDW_READ_SCP_INFO_FORCED 0x00120001
|
|
@@ -169,8 +171,8 @@ static int do_sync_request(sclp_cmdw_t cmd, void *sccb)
|
|
|
|
|
|
/* Check response. */
|
|
/* Check response. */
|
|
if (request->status != SCLP_REQ_DONE) {
|
|
if (request->status != SCLP_REQ_DONE) {
|
|
- printk(KERN_WARNING TAG "sync request failed "
|
|
|
|
- "(cmd=0x%08x, status=0x%02x)\n", cmd, request->status);
|
|
|
|
|
|
+ pr_warning("sync request failed (cmd=0x%08x, "
|
|
|
|
+ "status=0x%02x)\n", cmd, request->status);
|
|
rc = -EIO;
|
|
rc = -EIO;
|
|
}
|
|
}
|
|
out:
|
|
out:
|
|
@@ -224,8 +226,8 @@ int sclp_get_cpu_info(struct sclp_cpu_info *info)
|
|
if (rc)
|
|
if (rc)
|
|
goto out;
|
|
goto out;
|
|
if (sccb->header.response_code != 0x0010) {
|
|
if (sccb->header.response_code != 0x0010) {
|
|
- printk(KERN_WARNING TAG "readcpuinfo failed "
|
|
|
|
- "(response=0x%04x)\n", sccb->header.response_code);
|
|
|
|
|
|
+ pr_warning("readcpuinfo failed (response=0x%04x)\n",
|
|
|
|
+ sccb->header.response_code);
|
|
rc = -EIO;
|
|
rc = -EIO;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
@@ -262,8 +264,9 @@ static int do_cpu_configure(sclp_cmdw_t cmd)
|
|
case 0x0120:
|
|
case 0x0120:
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- printk(KERN_WARNING TAG "configure cpu failed (cmd=0x%08x, "
|
|
|
|
- "response=0x%04x)\n", cmd, sccb->header.response_code);
|
|
|
|
|
|
+ pr_warning("configure cpu failed (cmd=0x%08x, "
|
|
|
|
+ "response=0x%04x)\n", cmd,
|
|
|
|
+ sccb->header.response_code);
|
|
rc = -EIO;
|
|
rc = -EIO;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -626,9 +629,9 @@ static int do_chp_configure(sclp_cmdw_t cmd)
|
|
case 0x0450:
|
|
case 0x0450:
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- printk(KERN_WARNING TAG "configure channel-path failed "
|
|
|
|
- "(cmd=0x%08x, response=0x%04x)\n", cmd,
|
|
|
|
- sccb->header.response_code);
|
|
|
|
|
|
+ pr_warning("configure channel-path failed "
|
|
|
|
+ "(cmd=0x%08x, response=0x%04x)\n", cmd,
|
|
|
|
+ sccb->header.response_code);
|
|
rc = -EIO;
|
|
rc = -EIO;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -695,8 +698,8 @@ int sclp_chp_read_info(struct sclp_chp_info *info)
|
|
if (rc)
|
|
if (rc)
|
|
goto out;
|
|
goto out;
|
|
if (sccb->header.response_code != 0x0010) {
|
|
if (sccb->header.response_code != 0x0010) {
|
|
- printk(KERN_WARNING TAG "read channel-path info failed "
|
|
|
|
- "(response=0x%04x)\n", sccb->header.response_code);
|
|
|
|
|
|
+ pr_warning("read channel-path info failed "
|
|
|
|
+ "(response=0x%04x)\n", sccb->header.response_code);
|
|
rc = -EIO;
|
|
rc = -EIO;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|