From patchwork Mon May 10 18:00:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1476666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=IPl7Is0Y; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=y4syZWuf; 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=Ud6hEgPr; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4Ff8Bn0KVlz9sWl for ; Tue, 11 May 2021 04:06:40 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=h5ZGjCCHyCX6inEyPsZwT+w03CPm7+6iWgCByUTcymE=; b=IPl7Is0YBznE1CGbxQKTD3lwB pD+wKrP6vu24NTJAcNvFGIaPEtr6Dm4g9RsZXSCP8WoZY5WZX4Dny95aXdGNB+yeEQri5R/spjxsq 0erXrw0BBfY8pwpSoR3lDOrXCpi+s9aibLxduihSvP9yWk9g4yMeLWGqkY6A7ZvA0fQ+1hcQwVxhk 6YGcg2VRPr1UowMd8dpxKoJ9lVxYXqnHoMDgrdY1AM54oiBfoqoQjL1HwwSuT3OmMQCVPNOkOWjJs GnRc3tUz9Udyp8Q7vamaS7ypGsYKy8cxwlvDqeYSMhGtrvMefiAIF6ZiFgEJf9lUxWwZplT2n0uIj JLo5Z5ojQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgAIf-00FMn8-LC; Mon, 10 May 2021 18:06:37 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADJ-00FKow-Vd for linux-snps-arc@desiato.infradead.org; Mon, 10 May 2021 18:01:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Xi1DdeMBB8PjLUbjs2O3+vOAhK2vIrAZYrDBYXt4XZs=; b=y4syZWufaVa3w+j6DEfXrktWl0 7kfR6wVfAT3n5vZrAdQUaJx7i4EzDlPuk3ooejEvf0//jOk4swFbxj1rUpndd+EdUZPTvQRyY88C8 F4lV2XBmjrznuI2qSDmPpxUAA4KIAbKa5Wn+Jyo70xyPz4mbLx5t9HR5XcVhhPCznSVDf8aMgiyoS qke0xy2h4Aa8d7HVpj1fDF+F1C4acm2sKlxU+oYNkx/8a7NBvYMEyCX2Jci9ODRMYbqnPqFzpogHR L4euWqp2GsmoTi+EEKcr8qUlncikrXU7hKf0dNuVcOQSrW+t1OoKTNM+SUIuYGKTo6FrkEnk0rGjR d7dzhKfg==; Received: from smtprelay-out1.synopsys.com ([149.117.87.133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADF-0090zF-MV for linux-snps-arc@lists.infradead.org; Mon, 10 May 2021 18:01:04 +0000 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 99C43C008D; Mon, 10 May 2021 18:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620669657; bh=TrIMZKQo3jN8M4cIbb2t3byQHJQABpIU/yTNuRW8zjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ud6hEgPrZdPciw842fiCw8atZvG9LEL78B7Gx4kNfyld4KpdSOdzTMI0sHpgpsJ/Y Cs8Emm+/HViWDKCXZsQ6tgRHL1JtnHNRnj5ZtLNxK7Y1HcNFJgacmmrxjyjeb9rPyS M0qp4gva8tmBUFWO9yAZFL2H+70QjQTWAIpNVHFEplwvYSqZDHRdur8i103okZKjmL QjyXolaGgYB/oEwZRMyb5lcaakZ44clj+gpcRox0u3anMfN8RxzQX5kmQYjRIqY9u3 2XIoEXt0QnydhWCjKFqAvyG2BKg42mSReNAAHUAxlhhjo1d5oc4+4admlgMwI+sURG f2PZMkfleG6vQ== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 1F10DA0065; Mon, 10 May 2021 18:00:55 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Vineet Gupta To: buildroot@busybox.net Cc: Alexey.Brodkin@synopsys.com, Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta Subject: [PATCH v3 1/4] ARC: config: explicit'ify -mcpu for cpu selection Date: Mon, 10 May 2021 11:00:45 -0700 Message-Id: <20210510180049.61421-2-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510180049.61421-1-vgupta@synopsys.com> References: <20210510180049.61421-1-vgupta@synopsys.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_110101_791214_0ECAD7B9 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This helps with distinguishing the cpu at the time of config selection Signed-off-by: Vineet Gupta --- arch/Config.in.arc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [149.117.87.133 listed in wl.mailspike.net] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This helps with distinguishing the cpu at the time of config selection Signed-off-by: Vineet Gupta --- arch/Config.in.arc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/Config.in.arc b/arch/Config.in.arc index f7a6d920b50d..c9a695000f2c 100644 --- a/arch/Config.in.arc +++ b/arch/Config.in.arc @@ -6,20 +6,20 @@ choice Specific CPU to use config BR2_arc750d - bool "ARC 750D" + bool "ARC 750D (-mcpu=arc700)" config BR2_arc770d - bool "ARC 770D" + bool "ARC 770D (-mcpu=arc700)" 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 @@ -38,12 +38,12 @@ config BR2_archs38_full ARChitect. config BR2_archs4x_rel31 - bool "ARC HS48 rel 31" + bool "ARC HS48 rel 31 (-mcpu=hs4x_rel31)" help 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 Mon May 10 18:00:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1476663 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=OgiFzs3K; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Db+4Ku05; 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=UdZvm8+k; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4Ff8Bj2DR8z9sWl for ; Tue, 11 May 2021 04:06:37 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Dv0qMuK1AJKManiaWnKclOh4YHi+yniL6G8Opx8u5eo=; b=OgiFzs3K0QwbLOfp+2xjZFFOd p+wFIQ3SVZYFqISFFNv9WWZBqlLQ+kcs/X1nmB8wI/W4ls6brVjln0qnrEaxCGAvzT4o4UNc97+le CU9UmLD1sx6Wxhg5UuDW3YEqTJediZJGCJJHmQlTvaozbOZ5D20LeTz3HDStE/4/V2w1WD4LPfs79 QG6iM3iG/el/Vy2SQ1t84BWCDNcxeDYWiB2Dv10MLf+Yx6sZj4LJY49NoHba6GsKleR+N7WVWa9Kq YkvjYVlot6V0w+zRqnXuEw9uzjqzc2z8tCklmCYUCqVeVVz69P+96vWwzWJDl8zwvJr4WD2V9lZol pwqgdGTNw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgAIc-00FMlY-5x; Mon, 10 May 2021 18:06:34 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADJ-00FKox-VR for linux-snps-arc@desiato.infradead.org; Mon, 10 May 2021 18:01:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=9aS/HsiWLRlCtBO6I0rLKp16bM+IW9QsCwFqy9lvRz0=; b=Db+4Ku05r4W78ZUlndb6+7Upph KRreHDV1t3NB+HOPRosBH0MYbDRnOA6jyYIEbMTs4Ff0JDKfjH5PM2fjKtCyDMolOnmC0xg/l7Pp6 s1zWDZyzOVt9ONi31rWXd++zg/5xhyzWBkAk05XCfTahXaVztx2nzT4DlviUuFOugtsSsn75qt2eZ xu+3k0yiBBv1dyAivNObxrgGYLkWSg/wtV66aiDtRbadI9J6+NMhtF/Mk3RrOfmExbheXiu2jXZFM Wbyb22Dh+bLxA9HZjXTX9gY1tSiGjaxI1gsaite7hUNdhuNwotlttsAwusorn4bPqL5LuEuta57HE cb8m80AQ==; Received: from smtprelay-out1.synopsys.com ([149.117.87.133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADF-0090zD-Lb for linux-snps-arc@lists.infradead.org; Mon, 10 May 2021 18:01:04 +0000 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 E4CE2C008F; Mon, 10 May 2021 18:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620669656; bh=HulA2YrArNvg2SDWu8CAsAwlBHgZwY5ATMG+b79s/Z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UdZvm8+k+V6YsWtiGiwMjpKqtVQPY10xCWUs9u822hECAE5g6kuc//ODT0tLbpLFG rvxCug5/R9W4zduZZ7GVTolyc+CVY/e0ZAl/MO1Q3+Cxb4A5DGBoaoJfyf4wdCWD8g l05Di+t7GugsgBRu+qGsyv5Wr+Aviyr7EgKP19cDt0kaqiqNBycXySUf02oY68/W5P up7nvbHTHzuoKKOsxgvcXWVTMy2j8QclFW32Y+4t9Op55eFo2s+0+oGZ0P6ORgVAbr 5znPgv755F7/Nq/1mqpDk6IZXo2DggzkBlva2IIjNl2/Y9mASqPhhYcyYd/TTrGk17 9xsQcoHiE7xcQ== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 7C105A0066; Mon, 10 May 2021 18:00:55 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Vineet Gupta To: buildroot@busybox.net Cc: Alexey.Brodkin@synopsys.com, Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta Subject: [PATCH v2 2/3] lmbench: increase memsize delay for slow FPGAs Date: Mon, 10 May 2021 11:00:46 -0700 Message-Id: <20210510180049.61421-3-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510180049.61421-1-vgupta@synopsys.com> References: <20210510180049.61421-1-vgupta@synopsys.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_110101_752448_753F1BD0 X-CRM114-Status: GOOD ( 14.68 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Signed-off-by: Vineet Gupta --- ...c-to-prevent-memsize-from-timingout-.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/lmbench/0003-TO [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [149.117.87.133 listed in wl.mailspike.net] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Mon May 10 18:00:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1476667 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=CPPnKBi9; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=fqmg9vnH; 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=e6CCCFEy; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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 4Ff8Bp6q5Pz9sWp for ; Tue, 11 May 2021 04:06:42 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rLRJrK8OcY5cFDaajBVW8m57bwzhIYK11ZeKqDaKFh8=; b=CPPnKBi9/nYhSN0Q0DFFH9OkO aUM20xa6mQ6pI5RCCrcagTlJXQfURMGzP2U04sNOLpbURKe0QFeGJ8j3B9Gmc/WHZjDmOf5RpwVtV AVsg/ozKRhHuffzspPu66/71UXIGiXj+UxoHQDQoR6kiQeukYEse7Z+szMWdDh/OFkg1LuRiIUE1K +3Plas4iUrOCKXDj+t+R1fk7OzBvye2/bLliv0gbd+FIX2XvDDnOzybjHmVMOJ855KQmbKqGdwtbC MTI6P+3dIslfOP9uiEoNNoyVecSdrDWQpAubSwYe6YwZIOIoY/VSVUAOTNOXIxrcgVOQmoqZJyODD TDhrJI+ZA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgAIh-00FMnu-LM; Mon, 10 May 2021 18:06:39 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADK-00FKpM-R7 for linux-snps-arc@desiato.infradead.org; Mon, 10 May 2021 18:01:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=tvChVv/Ka9icV+wWat+02cQrf3gmwmHQJPsI6Iwga6A=; b=fqmg9vnH77SQcdlf7xoyK3jA4M ShpmdWUXbiT6Bbi/mFzbYBNsY7nB4L2jVO+xATZrH7t1wKGjZIdVwNj7sCgPBKQ79WUdzioltfJ54 woSZrlu82KshzwZnk9lD/lcl1fJtuCl/RUYLcxNf8JOGaRogXKmCZ6XOw/p2JaTqL16hRvzAiaY3y HGPqybJA3B1W8W4vtvJUwJanXebffgJnzwH5AomCm1rN1bnC7FM3NUpahWmXdNpLb2n/dTh1arMNA tnM9QdcyGIYOhM49CPYesMJCW13d6b5HplrDrqW9t64JpZxpqzb/XYXa2sFyN6W78MCQNCLQCol55 bB8c1imw==; Received: from smtprelay-out1.synopsys.com ([149.117.73.133]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgADG-0090zH-0v for linux-snps-arc@lists.infradead.org; Mon, 10 May 2021 18:01:05 +0000 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 C06634013E; Mon, 10 May 2021 18:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1620669657; bh=urN/mJuwk0h+dcZ1c31Vk5tLLFzY3xPVEQbIgdFnw7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e6CCCFEyQgOgj3ayF+Fbh2N0jhHDb9qrcP2p/ugKn8jz8L36Go/9cw0qTlfhmYyGs k2Fle26gG1pCE+RXvvQAIZYmQ2xzIQc30GRxOfmjvwN4S22UYr+W1dUNV9SYXZ2SIS L6mEoyKCV2xLJke75uPjhslyqcd3Pa5vbIKJDR/IXrM96AvjSOp2ZoJ/1QvEdZArKF /wYqLJP4LfUL7w5Lh38wuolxoOXXwgaIlhbL9vRXCGMoeV64nxuTBq9nQ8VlZIpaEH U76g2uHN+ue2AGQ62Qj2awz1XGBst9YkCDxjAjB4gGand0bzSZ5mkGfSCWonfCx1Lc 1bfLPiuPlHZSw== Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.202.19.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 5295CA0068; Mon, 10 May 2021 18:00:56 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Vineet Gupta To: buildroot@busybox.net Cc: Alexey.Brodkin@synopsys.com, Evgeniy.Didin@synopsys.com, linux-snps-arc@lists.infradead.org, Vineet Gupta Subject: [PATCH v3 4/4] lmbench: lat_rpc: fix stray pointer Date: Mon, 10 May 2021 11:00:49 -0700 Message-Id: <20210510180049.61421-6-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510180049.61421-1-vgupta@synopsys.com> References: <20210510180049.61421-1-vgupta@synopsys.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_110102_083859_369E86B6 X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: | # ./lat_rpc -S localhost | potentially unexpected fatal signal 11. | Path: /lmbench/bin/arc64/lat_rpc | CPU: 0 PID: 62 Comm: lat_rpc Not tainted 5.6.0-00224-g8e1b159f529e #39 | Invalid Read @ 0x0000 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [149.117.73.133 listed in wl.mailspike.net] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org | # ./lat_rpc -S localhost | potentially unexpected fatal signal 11. | Path: /lmbench/bin/arc64/lat_rpc | CPU: 0 PID: 62 Comm: lat_rpc Not tainted 5.6.0-00224-g8e1b159f529e #39 | Invalid Read @ 0x00000001 by insn @ 0x2011f110 | @off 0x6c110 in [/lib/libc-2.32.so] VMA: 0x200b3000 to 0x201b8000 | ECR: 0x00050100 EFA: 0x00000001 ERET: 0x2011f110 | STAT32: 0x80081082 [IE U ] BTA: 0x2011b87c | SP: 0x5fffefe8 FP: 0x00000000 BLK: 0x20103242 | r00: 0x00000001 r01: 0x00000002 r02: 0x00000001 | r03: 0x20101eb0 r04: 0x00000001 r05: 0x00000001 | r06: 0x00000000 r07: 0x00000000 r08: 0x00000001 | r09: 0x2019d8b0 r10: 0x20039fc4 r11: 0x5ffff0f0 | r12: 0x2019d6d0 r13: 0x2019d748 r14: 0x5ffff588 | r15: 0x00000000 r16: 0x00000000 r17: 0x5ffff708 | r18: 0x20039fc0 r19: 0xffffffff r20: 0x201ba010 | r21: 0x00000000 r22: 0x00000000 r23: 0x20039fc0 | r24: 0x00000bd0 r25: 0x00000073 Segmentation fault Signed-off-by: Vineet Gupta --- ...bage-pointer-for-lat_rpc-S-localhost.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch diff --git a/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch b/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch new file mode 100644 index 000000000000..619ec3861463 --- /dev/null +++ b/package/lmbench/0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch @@ -0,0 +1,25 @@ +From 3830453a06269912d2772fe8c31bae44f27bb131 Mon Sep 17 00:00:00 2001 +From: Vineet Gupta +Date: Fri, 8 May 2015 11:35:58 +0530 +Subject: [PATCH] Fix garbage pointer for lat_rpc -S localhost + +Signed-off-by: Vineet Gupta +--- + src/lat_rpc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lat_rpc.c b/src/lat_rpc.c +index 9c021926d761..ff4380ff38f3 100644 +--- a/src/lat_rpc.c ++++ b/src/lat_rpc.c +@@ -101,6 +101,7 @@ main(int ac, char **av) + char *usage = "-s\n OR [-p ] [-P parallel] [-W ] [-N ] serverhost\n OR -S serverhost\n"; + + state.msize = 1; ++ state.server = NULL; + + while (( c = getopt(ac, av, "sS:m:p:P:W:N:")) != EOF) { + switch(c) { +-- +2.25.1 +