Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp112426imj; Thu, 14 Feb 2019 16:32:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IbQ2cCjUBBZzDDN1ItNt7bJDCW4KW4qwVhzHIIJGFQifvYs6gbVm3QFk2jQPKpfW5N36kJD X-Received: by 2002:a17:902:6e0f:: with SMTP id u15mr7038655plk.175.1550190742285; Thu, 14 Feb 2019 16:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550190742; cv=none; d=google.com; s=arc-20160816; b=U5yTng4FmQWvIhLI7PZcPzxncMa3quh372nYbkDF67up/OcLxZhA//jrl/gqEV9kyl 6F2P/7BWwp6/mrUidprWleXfHiCvJCdExJlJPGGQyjnQPNdMuuej/e0eryvwzNjAueEV 1HR2o9ZUyR5CU5WKC3Paa5QtLaVF9iXMUr/OpSPirBjE9ZAW8LvAf6UR042ZtXyn+quu vA4ZFDCSnaQyyIkPm2xpCuT65Qh1iZTsysraWOAjylW+RtrXx3d0ig5G0KvwSaCzlZoa q/qr7gwIK7YgzI6xrBK3RiMgKdCP6j3QQZxOl4tURP4J2ydtK6h/AgjzfO1uTT50JAnQ pGqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=TQy58bLCzhR9X9g0yF7jZcgYSI3FoEY2ZfZ73dXhpkE=; b=NOJgwQL+ihr57jmR9cUAgZ9ctELKEiKw8fBFfDhtbeF0MFBv2JycorlU5II0BK/V8O 9st56eZc6XvL4oCi9TMVaR5+o8C17GLBUCHzsLWX1C9Va621rwZhO5hCxtlbgu1kyP03 R6Cbo8dCpRzHJ4YH9OXwj5Py4yNAgqTawUqRm7me/gUU8ZV7N81MoZL+0soNhBx7Akat MD4b7Bg0ZAdf+pnaGNIJSfzwz+38bL1b1cUdFLCfXtxs0cksNtk8x77ECN/UOES/hhFN i+l251gHOKzSIQPADdzPsfSz2p6D4kT6vy8vHX6Bvi7eP3uJ9h6uBBybWcNMs6O60Ixm lx6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="PZM7g//i"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35si3868180pgm.37.2019.02.14.16.32.06; Thu, 14 Feb 2019 16:32:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="PZM7g//i"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404963AbfBNPHu (ORCPT + 99 others); Thu, 14 Feb 2019 10:07:50 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:48672 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387401AbfBNPHu (ORCPT ); Thu, 14 Feb 2019 10:07:50 -0500 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id D369B24E1ECF; Thu, 14 Feb 2019 07:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1550156869; bh=eert8KNw2jrAOG0R403vNwKbxVOXcgfz8eI3V9Ut2ug=; h=From:To:Cc:Subject:Date:From; b=PZM7g//i3ZxW4ZvY3AduTtDufPLaB1WCNCwyUrYAYkg6LgCuuDZuDnYoh07Fkt0EO PR73zIVquiB4OQlmQ7aYt/yvxWSItOM1HKHHT+kIxAPamLZFWXDhs4OMTdhflmmLa9 xoy53XTDwhMoHTNP/QTxRd2e/6JxnNOyvBtLYzhQJn7TJCUIYjYDXOyJHtvj2Pf6hD us/+tQztxaL7/X21h0kdrnAM3/zVsZCw/E0tzu+VdJLQtSgxMhBCFcpc6jtWZuGYtp mHuv9hyjddnSqx6GqV09jqd1OdI7CuS0lgJ9hh8Vbayl+Fbr1Iy8QyMuxrROrem69A o5+Wp6WLovYvg== Received: from paltsev-e7480.internal.synopsys.com (unknown [10.121.8.62]) by mailhost.synopsys.com (Postfix) with ESMTP id 38F44A0090; Thu, 14 Feb 2019 15:07:47 +0000 (UTC) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, Vineet Gupta Cc: linux-kernel@vger.kernel.org, Alexey Brodkin , Corentin Labbe , khilman@baylibre.com, Eugeniy Paltsev Subject: [PATCH v2 0/2] ARC: rework U-boot arguments handling Date: Thu, 14 Feb 2019 18:07:43 +0300 Message-Id: <20190214150745.18773-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reworking U-boot args handling and enable uboot support unconditionally. Changes v1->v2: * Drop magic number check [in this patch series] * Keep comment about cndline appending Changes RFC->v1: * Don't add new ABI contract between kernel and uboot * Eliminate CONFIG_ARC_UBOOT_SUPPORT Kconfig option and enable uboot support unconditionally * Skip invalid U-boot args instead of panic * Check existing U-boot magic value * Improve uboot_arg validating * Minor code changes Eugeniy Paltsev (2): ARC: U-boot: check arguments paranoidly ARC: enable uboot support unconditionally arch/arc/Kconfig | 12 ----- arch/arc/configs/nps_defconfig | 1 - arch/arc/configs/vdk_hs38_defconfig | 1 - arch/arc/configs/vdk_hs38_smp_defconfig | 2 - arch/arc/kernel/head.S | 7 ++- arch/arc/kernel/setup.c | 96 +++++++++++++++++++++++---------- 6 files changed, 70 insertions(+), 49 deletions(-) -- 2.14.5