Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760046AbYG1R43 (ORCPT ); Mon, 28 Jul 2008 13:56:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759091AbYG1Rz2 (ORCPT ); Mon, 28 Jul 2008 13:55:28 -0400 Received: from mtagate4.de.ibm.com ([195.212.29.153]:62137 "EHLO mtagate4.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758036AbYG1Rz0 (ORCPT ); Mon, 28 Jul 2008 13:55:26 -0400 Message-Id: <20080728175511.989025821@de.ibm.com> References: <20080728175355.734299984@de.ibm.com> User-Agent: quilt/0.46-1 Date: Mon, 28 Jul 2008 19:54:00 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: Christian Borntraeger , Martin Schwidefsky Subject: [patch 05/15] kmsg: convert cpcmd to kmsg api. Content-Disposition: inline; filename=804-kmsg-cpcmd.diff Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2589 Lines: 73 From: Christian Borntraeger Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky --- Documentation/s390/kmsg/cpcmd | 18 ++++++++++++++++++ arch/s390/kernel/cpcmd.c | 7 +++++-- 2 files changed, 23 insertions(+), 2 deletions(-) Index: quilt-2.6/arch/s390/kernel/cpcmd.c =================================================================== --- quilt-2.6.orig/arch/s390/kernel/cpcmd.c +++ quilt-2.6/arch/s390/kernel/cpcmd.c @@ -15,9 +15,12 @@ #include #include #include +#include #include #include +#define KMSG_COMPONENT "cpcmd" + static DEFINE_SPINLOCK(cpcmd_lock); static char cpcmd_buf[241]; @@ -104,8 +107,8 @@ int cpcmd(const char *cmd, char *respons (((unsigned long)response + rlen) >> 31)) { lowbuf = kmalloc(rlen, GFP_KERNEL | GFP_DMA); if (!lowbuf) { - printk(KERN_WARNING - "cpcmd: could not allocate response buffer\n"); + kmsg_warn(1, "The cpcmd kernel function failed to " + "allocate a response buffer\n"); return -ENOMEM; } spin_lock_irqsave(&cpcmd_lock, flags); Index: quilt-2.6/Documentation/s390/kmsg/cpcmd =================================================================== --- /dev/null +++ quilt-2.6/Documentation/s390/kmsg/cpcmd @@ -0,0 +1,18 @@ +/*? + * Text: "The cpcmd kernel function failed to allocate a response buffer" + * Tag: cpcmd.1 + * Severity: Warning + * Description: + * IPL code, console detection, and device drivers like vmcp or vmlogrdr use + * the cpcmd kernel function to send commands to the z/VM control program (CP). + * If a program that uses the cpcmd function does not allocate a contiguous + * response buffer below 2 GB guest real storage, cpcmd creates a bounce buffer + * to be used as the response buffer. Because of low memory or memory + * fragmentation, cpcmd could not create the bounce buffer. + * User action: + * Look for related page allocation failure messages and at the stack trace to + * find out which program or operation failed. Free some memory and retry the + * failed operation. Consider allocating more memory to your z/VM guest virtual + * machine. + */ + -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/