From patchwork Fri May 7 00:43:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1475291 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=2605:bc80:3010::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=j6DKmRF2; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::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 4FbsCj0hb2z9sW1 for ; Fri, 7 May 2021 10:44:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1A9D282FEA; Fri, 7 May 2021 00:44:31 +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 tQu55okJKcJG; Fri, 7 May 2021 00:44:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 853BA82BE7; Fri, 7 May 2021 00:44:29 +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 4FFEC1BF2B4 for ; Fri, 7 May 2021 00:43:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3D80B8382F for ; Fri, 7 May 2021 00:43:52 +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 TVX6Iki6oc7n for ; Fri, 7 May 2021 00:43:49 +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 E651283834 for ; Fri, 7 May 2021 00:43:49 +0000 (UTC) Received: from mailhost.synopsys.com (sv1-mailhost1.synopsys.com [10.205.2.131]) (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 F3248405D7; Fri, 7 May 2021 00:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620348229; bh=jP2ryI91UvMVdm1ijPlijLRkvyKuEguhqJ0uGZ7mqHM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j6DKmRF2oBTzS6ARF7rp/Ov0ybdLq/03mP4ma7JCARKkJHnNbUWboZ0COk4dTbNdV rli1eoeTKpf+Wpy+JkC7OaSvPOm6lQpzGgbZaz26RwzZO5qTWx/FpaLWr+qeuzdF9c dzstvHyS4lFvocdBMqu8h/Qjm9AAj20YBJqOh2N13zOd7aXpQxI7KKykZBWjvEifVK lFxsdzr4JXcAR1O0cfwPqkean1YGc7oHvBsS1q2LHLZFWtLPbbWW7ch8NKhpB7Nc1r Cpyf6UVLA7yfkEJGVLT/tFw0UalW9C39GOkg4N6hL4YZnXq6ClkOxXjIKl+NDAPvZZ +r8H8grdXqy4Q== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 8E1B9A0065; Fri, 7 May 2021 00:43:47 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Thu, 6 May 2021 17:43:42 -0700 Message-Id: <20210507004344.3166099-2-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210507004344.3166099-1-vgupta@synopsys.com> References: <20210507004344.3166099-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 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 Fri May 7 00:43:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1475290 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=hTy0U4Mo; 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 4FbsCS6mpsz9sW1 for ; Fri, 7 May 2021 10:44:20 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id BEDE4608C8; Fri, 7 May 2021 00:44:18 +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 ClwAafhN-uSz; Fri, 7 May 2021 00:44:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 26DBF60898; Fri, 7 May 2021 00:44:17 +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 270D91BF2B4 for ; Fri, 7 May 2021 00:43:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 080178382F for ; Fri, 7 May 2021 00:43:51 +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 Jt-r2s35TedI for ; Fri, 7 May 2021 00:43:49 +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 EA9BC83848 for ; Fri, 7 May 2021 00:43:49 +0000 (UTC) Received: from mailhost.synopsys.com (sv1-mailhost1.synopsys.com [10.205.2.131]) (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 08868405E0; Fri, 7 May 2021 00:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620348228; bh=HulA2YrArNvg2SDWu8CAsAwlBHgZwY5ATMG+b79s/Z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hTy0U4Mos4wgYnQ4cUjSrycM0DfQQZrRiB2+SNSadQ4bnha0BWl4ihEErJryfovxB bS3ALb5D4UDutnwKyhbt1PDgzUqxVgTQ3qhimAPCvdPzbDzt98Qrh1giN0CsCWrRrE l4CHLjLfup3WEQ/t9KorDlVZFikmOrtUDtRywaPOEiif4PbqUddOc5iB/KZB4MCqeT a2P8NXBqtiVqzRagRxnVgwljh2M5FW3e2xzNPu+IzhSosdXmHrZzWfR2UeSZfcd510 Z22rliBQ/WuDfVIb4NKbN72wrr7ZPFImb3gpOsfhAWJxBtjuo/Sm7fSq9eYjAE3fFZ pXaqZRKZcNaXw== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id C087DA0067; Fri, 7 May 2021 00:43:47 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Thu, 6 May 2021 17:43:43 -0700 Message-Id: <20210507004344.3166099-3-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210507004344.3166099-1-vgupta@synopsys.com> References: <20210507004344.3166099-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 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 Fri May 7 00:43:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1475287 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=2605:bc80:3010::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=ZSadKf9p; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::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 4FbsCF4sHfz9sWP for ; Fri, 7 May 2021 10:44:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5C87983848; Fri, 7 May 2021 00:44:06 +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 RbjOIBcSbPmO; Fri, 7 May 2021 00:44:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id C225A83834; Fri, 7 May 2021 00:44: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 191A01BF2B4 for ; Fri, 7 May 2021 00:43:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CBBA183863 for ; Fri, 7 May 2021 00:43:50 +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 o8hIg5FTvhmP for ; Fri, 7 May 2021 00:43:49 +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 C82048382F for ; Fri, 7 May 2021 00:43:49 +0000 (UTC) Received: from mailhost.synopsys.com (sv1-mailhost1.synopsys.com [10.205.2.131]) (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 402D54061D; Fri, 7 May 2021 00:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620348228; bh=h8RZwhGA97sOkuZjkJQVk8XVzCDV2S3w7+ZgvV8Is64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZSadKf9phXJE3Uql0af8RMX3YClM6rnz49Bpb6IBUSS5DUPftKXBOIV6za2SUvRuc IALd6Uez4bQu9jAMuvjXyWbNTlr7GdrTc7cUyDusv7hegpmVO0yNkFw6m9P75yJKkE mnV3MXX1Viex7+XTZ7wYC5TFEgY4g1YWgNwA70tYiPhPEr7yE+nLVbSpN4iY10tQLE GxbDOBMkD1qmVF5B4fjRoBoyw5mkM6BJYSKCUJ4XO6CKRETlNwWRF9NqNlvtyTTH0o ugGUWDEpZ0bfSn2C8P5QmnoCrGTf0IXI9bDI6pSYDEuUXGUu2iStkiujL4d4/6SFWl P8tXrQnUopBIg== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 04F00A0066; Fri, 7 May 2021 00:43:47 +0000 (UTC) X-SNPS-Relay: synopsys.com To: buildroot@busybox.net Date: Thu, 6 May 2021 17:43:44 -0700 Message-Id: <20210507004344.3166099-4-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210507004344.3166099-1-vgupta@synopsys.com> References: <20210507004344.3166099-1-vgupta@synopsys.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 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..ed075d20dafe 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 "echo ${ARCH}" > $(TARGET_DIR)/lmbench/scripts/os endef $(eval $(generic-package))