From patchwork Fri May 20 08:22:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gong X-Patchwork-Id: 802662 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4K8M0Mx026450 for ; Fri, 20 May 2011 08:22:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934800Ab1ETIVt (ORCPT ); Fri, 20 May 2011 04:21:49 -0400 Received: from mga01.intel.com ([192.55.52.88]:12425 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934688Ab1ETIVq (ORCPT ); Fri, 20 May 2011 04:21:46 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 20 May 2011 01:21:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,241,1304319600"; d="scan'208";a="5102140" Received: from gchen-debian.bj.intel.com ([10.238.153.132]) by fmsmga001.fm.intel.com with ESMTP; 20 May 2011 01:21:45 -0700 Received: from gchen by gchen-debian.bj.intel.com with local (Exim 4.69) (envelope-from ) id 1QNKyO-0007h0-Dt; Fri, 20 May 2011 16:22:16 +0800 From: Chen Gong To: ying.huang@intel.com, tony.luck@intel.com, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, Chen Gong Subject: [PATCH] fix the issue when reading longer records from ERST DEBUG module Date: Fri, 20 May 2011 16:22:15 +0800 Message-Id: <1305879735-29540-1-git-send-email-gong.chen@linux.intel.com> X-Mailer: git-send-email 1.7.5.185.g0b9dee Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 20 May 2011 08:22:00 +0000 (UTC) In the driver erst-dbg, There is an issue when the log in ERST table is too long(>4K), it can't be read out. Increase the buffer size to 16K to ensure such logs can be read from ERST table. Signed-off-by: Chen Gong --- drivers/acpi/apei/erst-dbg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst-dbg.c index a4cfb64..3f7b0b2 100644 --- a/drivers/acpi/apei/erst-dbg.c +++ b/drivers/acpi/apei/erst-dbg.c @@ -33,7 +33,7 @@ #define ERST_DBG_PFX "ERST DBG: " -#define ERST_DBG_RECORD_LEN_MAX 4096 +#define ERST_DBG_RECORD_LEN_MAX 0x4000 static void *erst_dbg_buf; static unsigned int erst_dbg_buf_len;