From patchwork Thu May 6 00:39:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1474706 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=P0vbV8PK; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FbFL80fYdz9sRf for ; Thu, 6 May 2021 10:48:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 93CA44050A; Thu, 6 May 2021 00:47:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1gVDoOnLJKRY; Thu, 6 May 2021 00:47:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 8613040544; Thu, 6 May 2021 00:47:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2209A1BF2A7 for ; Thu, 6 May 2021 00:47:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C652B83B64 for ; Thu, 6 May 2021 00:47:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=synopsys.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UdWMYxevVpPa for ; Thu, 6 May 2021 00:47:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.87.133]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0948483B68 for ; Thu, 6 May 2021 00:47:38 +0000 (UTC) Received: from mailhost.synopsys.com (sv2-mailhost1.synopsys.com [10.205.2.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 11F87C0619; Thu, 6 May 2021 00:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620261600; bh=jP2ryI91UvMVdm1ijPlijLRkvyKuEguhqJ0uGZ7mqHM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P0vbV8PKAaj8siZOqG3gf/3A8NXvbbwMbw2BW4HarswfUoqB3i2z8QikCpelGcv5D 5biuhDNuQ5v00OUxciU6gSuU5LHQexccHsjXmx3nr8gESO5T5Z2Pbkh7S19Xs/LEbu u5UqGdht5XmkGLmd34bEnBZkjry9kB8me1HdPPNcXt/qNnFjBFIiQ28XDG/CFc8syb JqG5WFkI4KvXQXlqbs3YbZ7E7dyMlh3AQOQzl+++M6+YzShaJ5eSLGNd3g6iZafU4R PXucXsnFmERdOOlr/WDczqGG53/EEvDsuT3LysQl1Pjsh5niKk3Xluzi4xiO3hDI8+ jk9xpIKnEjDZw== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id AB6B3A00A2; Thu, 6 May 2021 00:39:59 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Wed, 5 May 2021 17:39:55 -0700 Message-Id: <20210506003957.2994235-2-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506003957.2994235-1-vgupta@synopsys.com> References: <20210506003957.2994235-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] ARC: config: explicit'ify -mcpu for cpu selection X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vineet Gupta via buildroot Reply-To: Vineet Gupta Cc: Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta , Alexey.Brodkin@synopsys.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Vineet Gupta --- arch/Config.in.arc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/Config.in.arc b/arch/Config.in.arc index f7a6d920b50d..f84dfab38ae9 100644 --- a/arch/Config.in.arc +++ b/arch/Config.in.arc @@ -12,14 +12,14 @@ config BR2_arc770d bool "ARC 770D" config BR2_archs38 - bool "ARC HS38" + bool "ARC HS38 (-mcpu=archs)" help Generic ARC HS capable of running Linux, i.e. with MMU, caches and 32-bit multiplier. Also it corresponds to the default configuration in older GNU toolchain versions. config BR2_archs38_64mpy - bool "ARC HS38 with 64-bit mpy" + bool "ARC HS38 with 64-bit mpy (-mcpu=hs38)" help Fully featured ARC HS capable of running Linux, i.e. with MMU, caches and 64-bit multiplier. @@ -28,7 +28,7 @@ config BR2_archs38_64mpy for use this one. config BR2_archs38_full - bool "ARC HS38 with Quad MAC & FPU" + bool "ARC HS38 with Quad MAC & FPU (-mcpu=hs38_linux)" help Fully featured ARC HS with additional support for - Dual- and quad multiply and MC oprations @@ -43,7 +43,7 @@ config BR2_archs4x_rel31 Build for HS48 release 3.1 config BR2_archs4x - bool "ARC HS48" + bool "ARC HS48 (-mcpu=hs4x)" help Latest release of HS48 processor - Dual and Quad multiply and MAC operations From patchwork Thu May 6 00:39:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1474707 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=SSGkfyiW; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FbFLN403kz9sRf for ; Thu, 6 May 2021 10:48:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7FE7283B65; Thu, 6 May 2021 00:48:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1TrWWNQDNKqv; Thu, 6 May 2021 00:48:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id D04FF83B68; Thu, 6 May 2021 00:48:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 743DA1BF2A7 for ; Thu, 6 May 2021 00:47:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0FD6B83B69 for ; Thu, 6 May 2021 00:47:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l3l2NmPxlqo9 for ; Thu, 6 May 2021 00:47:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.87.133]) by smtp1.osuosl.org (Postfix) with ESMTPS id E375F83B65 for ; Thu, 6 May 2021 00:47:38 +0000 (UTC) Received: from mailhost.synopsys.com (sv2-mailhost1.synopsys.com [10.205.2.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 41D17C0635; Thu, 6 May 2021 00:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620261600; bh=HulA2YrArNvg2SDWu8CAsAwlBHgZwY5ATMG+b79s/Z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SSGkfyiWijhaYTBqc40HbuzucVsE9loOfkLtNYYuVP4ZAzxjV25J5/KA6hEwRbDVv 3TIL+BiuzMUHgnZC+69Q7iTRcYZSuipyai9gck/Uzkx/jVXdkN+Bub/322Kl4lv3RZ lcgutXSDAqgIPFCC86LZRUkSWU2ov48e69qbj3YqbzEOU1r84OkWw59XkzTc4Fo12n 07xy5hu/XrCzPaZwoDo9hIjQ005KXPRVcfiIShEv7HFK4vmG2ATyuejppX8Hd0g366 0NOHtuWykXCsTWFtQ3m+kk3tvJ9AidWPYUYa8e7+xCST5zowXMU39vEbEhKA6InlFG S1kIZdR+SRYvg== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id E3387A00A4; Thu, 6 May 2021 00:39:59 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Wed, 5 May 2021 17:39:56 -0700 Message-Id: <20210506003957.2994235-3-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506003957.2994235-1-vgupta@synopsys.com> References: <20210506003957.2994235-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] lmbench: increase memsize delay for slow FPGAs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vineet Gupta via buildroot Reply-To: Vineet Gupta Cc: Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta , Alexey.Brodkin@synopsys.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Vineet Gupta --- ...c-to-prevent-memsize-from-timingout-.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/lmbench/0003-TOO_LONG-100-usec-to-prevent-memsize-from-timingout-.patch diff --git a/package/lmbench/0003-TOO_LONG-100-usec-to-prevent-memsize-from-timingout-.patch b/package/lmbench/0003-TOO_LONG-100-usec-to-prevent-memsize-from-timingout-.patch new file mode 100644 index 000000000000..6c3e7370e11b --- /dev/null +++ b/package/lmbench/0003-TOO_LONG-100-usec-to-prevent-memsize-from-timingout-.patch @@ -0,0 +1,28 @@ +From d85b61666aa2728f68b69d02bfb162c432df709f Mon Sep 17 00:00:00 2001 +From: vgupta +Date: Sat, 3 Mar 2012 10:02:24 +0000 +Subject: [PATCH] TOO_LONG 100 usec to prevent memsize from timingout @80Mhz + +git-svn-id: http://sjvm-subversion02.internal.synopsys.com/svn/OSS/ARC_Linux/tests/lmbench-3.0-a9@157318 4eed8e25-bc12-0410-818a-f70ee6866280 + +Signed-off-by: Vineet Gupta +--- + src/memsize.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/memsize.c b/src/memsize.c +index eb25a0924872..b333cf8cbd32 100644 +--- a/src/memsize.c ++++ b/src/memsize.c +@@ -15,7 +15,7 @@ char *id = "$Id$\n"; + #define CHK(x) if ((x) == -1) { perror("x"); exit(1); } + + #ifndef TOO_LONG +-#define TOO_LONG 10 /* usecs */ ++#define TOO_LONG 100 /* usecs */ + #endif + + int alarm_triggered = 0; +-- +2.25.1 + From patchwork Thu May 6 00:39:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1474700 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=SjsPxQn/; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FbF950bjJz9sRf for ; Thu, 6 May 2021 10:40:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 37E96606B0; Thu, 6 May 2021 00:40:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VniUnyHmdFiG; Thu, 6 May 2021 00:40:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id A5BBF6061F; Thu, 6 May 2021 00:40:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3DACB1BF2A7 for ; Thu, 6 May 2021 00:40:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3A55283B37 for ; Thu, 6 May 2021 00:40:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=synopsys.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WplGsJF69HUm for ; Thu, 6 May 2021 00:40:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.73.133]) by smtp1.osuosl.org (Postfix) with ESMTPS id 4AD8B83B24 for ; Thu, 6 May 2021 00:40:02 +0000 (UTC) Received: from mailhost.synopsys.com (sv2-mailhost1.synopsys.com [10.205.2.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 6F528402B9; Thu, 6 May 2021 00:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620261601; bh=Ir0FdWMXEia84Joc3fcz9s9LsqIQboDkbTSnYy0oFQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SjsPxQn/AQMqbODLoRhZdPTLZfMcNIcCf5BniRuPd/VxgJpfRIXH7r2CHQZNMcMBO hcqzIf0Sq/HcnDTiYTAm65Q24OXS9ym9FwObmfOMGinHnaX6dXI6+trB/gIBauSXz5 Y+vvlbN7u2qGM9jQfrAgo3VLe5prCbSZocGiO/mFr045A2l/xbDaIcwwfoDwWsrDdc Q46hgUQYmhph1B+lhOEeA73dAeEiRkFcbe/coYiSu0vdcRh6EnmQ6zoKh9orCo2jlw 9iWr82SuxSM5ygzNmWOT0vuAHk9WcCtGaPbFK0lONqfXpCVlywcwWtAbFGzHwA5a0x SINSPDqCQ/h9Q== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 1B916A025A; Thu, 6 May 2021 00:40:00 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Wed, 5 May 2021 17:39:57 -0700 Message-Id: <20210506003957.2994235-4-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210506003957.2994235-1-vgupta@synopsys.com> References: <20210506003957.2994235-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3] lmbench: emulate --prefix to avoid scattering binaries all over X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vineet Gupta via buildroot Reply-To: Vineet Gupta Cc: Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta , Alexey.Brodkin@synopsys.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" - moves all lmbench binaries to /lmbench/bin/ - scripts copied to /lmbench/scripts - scripts/os overwritten to setup "OS" as expected by LMBench runtime scripts Signed-off-by: Vineet Gupta --- package/lmbench/lmbench.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk index 2f3b19b5f820..be6b3170099a 100644 --- a/package/lmbench/lmbench.mk +++ b/package/lmbench/lmbench.mk @@ -36,7 +36,14 @@ define LMBENCH_BUILD_CMDS endef define LMBENCH_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) CFLAGS="$(TARGET_CFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" BASE=$(TARGET_DIR)/usr -C $(@D)/src install + mkdir -p $(TARGET_DIR)/lmbench/tmp + mkdir -p $(TARGET_DIR)/lmbench/scripts + $(TARGET_MAKE_ENV) $(MAKE) CFLAGS="$(TARGET_CFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" BASE=$(TARGET_DIR)/lmbench/tmp -C $(@D)/src install + mkdir -p $(TARGET_DIR)/lmbench/bin/$(ARCH) + mv $(TARGET_DIR)/lmbench/tmp/bin/* $(TARGET_DIR)/lmbench/bin/$(ARCH) + rm -rf $(TARGET_DIR)/lmbench/tmp/ + cp -rfd $(@D)/scripts/ $(TARGET_DIR)/lmbench/. + echo "export OS=${ARCH}" > $(TARGET_DIR)/lmbench/scripts/os endef $(eval $(generic-package))