From patchwork Wed Apr 10 03:08:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 2419061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id A6B3E3FC71 for ; Wed, 10 Apr 2013 03:09:07 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPlP8-0006KW-Kh; Wed, 10 Apr 2013 03:08:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPlP3-0002Tp-Eu; Wed, 10 Apr 2013 03:08:53 +0000 Received: from mail-qe0-f43.google.com ([209.85.128.43]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UPlOs-0002Sh-83 for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2013 03:08:43 +0000 Received: by mail-qe0-f43.google.com with SMTP id f6so8439qej.2 for ; Tue, 09 Apr 2013 20:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=hJAUEY5P7zZyuP+fBzKbKoT2cQYjimZmSANt4m6YXUo=; b=zQf6kQdDLTT6yLdEob2bNLRAJ5aHucLKpgM3NVsyOiXJQMvggKUBKbxLpVfQ4SmkJx TvMK9yCahxa3Y3yNI3hVYJIKMvT1G8KVt3XE/i0Ozrp1t1EbLAAyWkrZvRUsCFugRtqL ORdVJlVls4abWiYucI12DaylotBf8PmIa33kXv8+RrzpMWAFDwxP8n5P5mdyHTnu0t4z TIBFIYFkKxusd2wPE+T2zewMD/zSix+wraSijjsumAKRreRc/cOyHWdRFmH+x4vre/Mj gAJlglWlEQjXfo+1G3IU0ohGiD/MMSZGP3G5TPPJSoT8uoZ3ajDaX8EnThzjS4C5NsRk /0MQ== X-Received: by 10.229.44.6 with SMTP id y6mr95651qce.27.1365563321130; Tue, 09 Apr 2013 20:08:41 -0700 (PDT) Received: from rob-laptop.grandenetworks.net (65-36-73-129.dyn.grandenetworks.net. [65.36.73.129]) by mx.google.com with ESMTPS id ed8sm20964127qeb.7.2013.04.09.20.08.38 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Apr 2013 20:08:39 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 2/3] pstore ram: remove the power of buffer size limitation Date: Tue, 9 Apr 2013 22:08:16 -0500 Message-Id: <1365563297-12480-2-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1365563297-12480-1-git-send-email-robherring2@gmail.com> References: <1365563297-12480-1-git-send-email-robherring2@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130409_230842_384669_6E2FA822 X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.128.43 listed in list.dnswl.org] 1.0 TVD_SUBJ_WIPE_DEBT TVD_SUBJ_WIPE_DEBT 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robherring2[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (robherring2[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Tony Luck , Colin Cross , Kees Cook , Rob Herring , Anton Vorontsov X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Rob Herring There doesn't appear to be any reason for the overall pstore RAM buffer to be a power of 2 size, so remove it. The individual console, ftrace and oops buffers are still a power of 2 size. Signed-off-by: Rob Herring Cc: Anton Vorontsov Cc: Colin Cross Cc: Kees Cook Cc: Tony Luck Cc: linux-kernel@vger.kernel.org --- fs/pstore/ram.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 288f068..f980077 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -391,8 +391,6 @@ static int ramoops_probe(struct platform_device *pdev) goto fail_out; } - if (!is_power_of_2(pdata->mem_size)) - pdata->mem_size = rounddown_pow_of_two(pdata->mem_size); if (!is_power_of_2(pdata->record_size)) pdata->record_size = rounddown_pow_of_two(pdata->record_size); if (!is_power_of_2(pdata->console_size))