Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b3ff088b
Commit
b3ff088b
authored
Dec 25, 2008
by
Martin Schwidefsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[S390] convert sclp printks to pr_xxx macros.
Signed-off-by:
Martin Schwidefsky
<
schwidefsky@de.ibm.com
>
parent
8f7c502c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
28 deletions
+41
-28
drivers/s390/char/sclp_cmd.c
drivers/s390/char/sclp_cmd.c
+16
-13
drivers/s390/char/sclp_config.c
drivers/s390/char/sclp_config.c
+6
-4
drivers/s390/char/sclp_cpi_sys.c
drivers/s390/char/sclp_cpi_sys.c
+8
-4
drivers/s390/char/sclp_sdias.c
drivers/s390/char/sclp_sdias.c
+11
-7
No files found.
drivers/s390/char/sclp_cmd.c
View file @
b3ff088b
...
@@ -6,6 +6,9 @@
...
@@ -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 @@
...
@@ -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)
...
@@ -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
)
{
pr
intk
(
KERN_WARNING
TAG
"sync request failed
"
pr
_warning
(
"sync request failed (cmd=0x%08x,
"
"(cmd=0x%08x,
status=0x%02x)
\n
"
,
cmd
,
request
->
status
);
"
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)
...
@@ -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
)
{
pr
intk
(
KERN_WARNING
TAG
"readcpuinfo failed "
pr
_warning
(
"readcpuinfo failed (response=0x%04x)
\n
"
,
"(response=0x%04x)
\n
"
,
sccb
->
header
.
response_code
);
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)
...
@@ -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, "
pr_warning
(
"configure cpu failed (cmd=0x%08x, "
"response=0x%04x)
\n
"
,
cmd
,
sccb
->
header
.
response_code
);
"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)
...
@@ -626,9 +629,9 @@ static int do_chp_configure(sclp_cmdw_t cmd)
case
0x0450
:
case
0x0450
:
break
;
break
;
default:
default:
pr
intk
(
KERN_WARNING
TAG
"configure channel-path failed "
pr
_warning
(
"configure channel-path failed "
"(cmd=0x%08x, response=0x%04x)
\n
"
,
cmd
,
"(cmd=0x%08x, response=0x%04x)
\n
"
,
cmd
,
sccb
->
header
.
response_code
);
sccb
->
header
.
response_code
);
rc
=
-
EIO
;
rc
=
-
EIO
;
break
;
break
;
}
}
...
@@ -695,8 +698,8 @@ int sclp_chp_read_info(struct sclp_chp_info *info)
...
@@ -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
)
{
pr
intk
(
KERN_WARNING
TAG
"read channel-path info failed "
pr
_warning
(
"read channel-path info failed "
"(response=0x%04x)
\n
"
,
sccb
->
header
.
response_code
);
"(response=0x%04x)
\n
"
,
sccb
->
header
.
response_code
);
rc
=
-
EIO
;
rc
=
-
EIO
;
goto
out
;
goto
out
;
}
}
...
...
drivers/s390/char/sclp_config.c
View file @
b3ff088b
...
@@ -5,15 +5,17 @@
...
@@ -5,15 +5,17 @@
* Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
* Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
*/
*/
#define KMSG_COMPONENT "sclp_config"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/init.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/cpu.h>
#include <linux/cpu.h>
#include <linux/sysdev.h>
#include <linux/sysdev.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <asm/smp.h>
#include <asm/smp.h>
#include "sclp.h"
#
define TAG "sclp_config:
"
#
include "sclp.h
"
struct
conf_mgm_data
{
struct
conf_mgm_data
{
u8
reserved
;
u8
reserved
;
...
@@ -31,7 +33,7 @@ static void sclp_cpu_capability_notify(struct work_struct *work)
...
@@ -31,7 +33,7 @@ static void sclp_cpu_capability_notify(struct work_struct *work)
int
cpu
;
int
cpu
;
struct
sys_device
*
sysdev
;
struct
sys_device
*
sysdev
;
pr
intk
(
KERN_WARNING
TAG
"cpu capability changed.
\n
"
);
pr
_warning
(
"cpu capability changed.
\n
"
);
get_online_cpus
();
get_online_cpus
();
for_each_online_cpu
(
cpu
)
{
for_each_online_cpu
(
cpu
)
{
sysdev
=
get_cpu_sysdev
(
cpu
);
sysdev
=
get_cpu_sysdev
(
cpu
);
...
@@ -78,7 +80,7 @@ static int __init sclp_conf_init(void)
...
@@ -78,7 +80,7 @@ static int __init sclp_conf_init(void)
return
rc
;
return
rc
;
if
(
!
(
sclp_conf_register
.
sclp_send_mask
&
EVTYP_CONFMGMDATA_MASK
))
{
if
(
!
(
sclp_conf_register
.
sclp_send_mask
&
EVTYP_CONFMGMDATA_MASK
))
{
pr
intk
(
KERN_WARNING
TAG
"no configuration management.
\n
"
);
pr
_warning
(
"no configuration management.
\n
"
);
sclp_unregister
(
&
sclp_conf_register
);
sclp_unregister
(
&
sclp_conf_register
);
rc
=
-
ENOSYS
;
rc
=
-
ENOSYS
;
}
}
...
...
drivers/s390/char/sclp_cpi_sys.c
View file @
b3ff088b
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
* Michael Ernst <mernst@de.ibm.com>
* Michael Ernst <mernst@de.ibm.com>
*/
*/
#define KMSG_COMPONENT "sclp_cpi"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/stat.h>
#include <linux/stat.h>
...
@@ -20,6 +23,7 @@
...
@@ -20,6 +23,7 @@
#include <linux/completion.h>
#include <linux/completion.h>
#include <asm/ebcdic.h>
#include <asm/ebcdic.h>
#include <asm/sclp.h>
#include <asm/sclp.h>
#include "sclp.h"
#include "sclp.h"
#include "sclp_rw.h"
#include "sclp_rw.h"
#include "sclp_cpi_sys.h"
#include "sclp_cpi_sys.h"
...
@@ -150,16 +154,16 @@ static int cpi_req(void)
...
@@ -150,16 +154,16 @@ static int cpi_req(void)
wait_for_completion
(
&
completion
);
wait_for_completion
(
&
completion
);
if
(
req
->
status
!=
SCLP_REQ_DONE
)
{
if
(
req
->
status
!=
SCLP_REQ_DONE
)
{
pr
intk
(
KERN_WARNING
"cpi:
request failed (status=0x%02x)
\n
"
,
pr
_warning
(
"
request failed (status=0x%02x)
\n
"
,
req
->
status
);
req
->
status
);
rc
=
-
EIO
;
rc
=
-
EIO
;
goto
out_free_req
;
goto
out_free_req
;
}
}
response
=
((
struct
cpi_sccb
*
)
req
->
sccb
)
->
header
.
response_code
;
response
=
((
struct
cpi_sccb
*
)
req
->
sccb
)
->
header
.
response_code
;
if
(
response
!=
0x0020
)
{
if
(
response
!=
0x0020
)
{
pr
intk
(
KERN_WARNING
"cpi: failed with "
pr
_warning
(
"request failed with response code 0x%x
\n
"
,
"response code 0x%x
\n
"
,
response
);
response
);
rc
=
-
EIO
;
rc
=
-
EIO
;
}
}
...
...
drivers/s390/char/sclp_sdias.c
View file @
b3ff088b
...
@@ -5,15 +5,18 @@
...
@@ -5,15 +5,18 @@
* Author(s): Michael Holzheu
* Author(s): Michael Holzheu
*/
*/
#define KMSG_COMPONENT "sclp_sdias"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/sched.h>
#include <linux/sched.h>
#include <asm/sclp.h>
#include <asm/sclp.h>
#include <asm/debug.h>
#include <asm/debug.h>
#include <asm/ipl.h>
#include <asm/ipl.h>
#include "sclp.h"
#include "sclp.h"
#include "sclp_rw.h"
#include "sclp_rw.h"
#define TRACE(x...) debug_sprintf_event(sdias_dbf, 1, x)
#define TRACE(x...) debug_sprintf_event(sdias_dbf, 1, x)
#define ERROR_MSG(x...) printk ( KERN_ALERT "SDIAS: " x )
#define SDIAS_RETRIES 300
#define SDIAS_RETRIES 300
#define SDIAS_SLEEP_TICKS 50
#define SDIAS_SLEEP_TICKS 50
...
@@ -131,7 +134,7 @@ int sclp_sdias_blk_count(void)
...
@@ -131,7 +134,7 @@ int sclp_sdias_blk_count(void)
rc
=
sdias_sclp_send
(
&
request
);
rc
=
sdias_sclp_send
(
&
request
);
if
(
rc
)
{
if
(
rc
)
{
ERROR_MSG
(
"sclp_send failed for get_nr_blocks
\n
"
);
pr_err
(
"sclp_send failed for get_nr_blocks
\n
"
);
goto
out
;
goto
out
;
}
}
if
(
sccb
.
hdr
.
response_code
!=
0x0020
)
{
if
(
sccb
.
hdr
.
response_code
!=
0x0020
)
{
...
@@ -145,7 +148,8 @@ int sclp_sdias_blk_count(void)
...
@@ -145,7 +148,8 @@ int sclp_sdias_blk_count(void)
rc
=
sccb
.
evbuf
.
blk_cnt
;
rc
=
sccb
.
evbuf
.
blk_cnt
;
break
;
break
;
default:
default:
ERROR_MSG
(
"SCLP error: %x
\n
"
,
sccb
.
evbuf
.
event_status
);
pr_err
(
"SCLP error: %x
\n
"
,
sccb
.
evbuf
.
event_status
);
rc
=
-
EIO
;
rc
=
-
EIO
;
goto
out
;
goto
out
;
}
}
...
@@ -201,7 +205,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks)
...
@@ -201,7 +205,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks)
rc
=
sdias_sclp_send
(
&
request
);
rc
=
sdias_sclp_send
(
&
request
);
if
(
rc
)
{
if
(
rc
)
{
ERROR_MSG
(
"sclp_send failed: %x
\n
"
,
rc
);
pr_err
(
"sclp_send failed: %x
\n
"
,
rc
);
goto
out
;
goto
out
;
}
}
if
(
sccb
.
hdr
.
response_code
!=
0x0020
)
{
if
(
sccb
.
hdr
.
response_code
!=
0x0020
)
{
...
@@ -219,9 +223,9 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks)
...
@@ -219,9 +223,9 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks)
case
EVSTATE_NO_DATA
:
case
EVSTATE_NO_DATA
:
TRACE
(
"no data
\n
"
);
TRACE
(
"no data
\n
"
);
default:
default:
ERROR_MSG
(
"Error from SCLP while copying hsa. "
pr_err
(
"Error from SCLP while copying hsa. "
"Event status = %x
\n
"
,
"Event status = %x
\n
"
,
sccb
.
evbuf
.
event_status
);
sccb
.
evbuf
.
event_status
);
rc
=
-
EIO
;
rc
=
-
EIO
;
}
}
out:
out:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment