Message ID | 20210113100657.809754-1-anup.patel@wdc.com |
---|---|
Headers | show
Return-Path: <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> 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:1231::1; helo=merlin.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com 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=merlin.20170209 header.b=IJ4anCUM; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.a=rsa-sha256 header.s=dkim.wdc.com header.b=P+kTsNWW; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-sharedspace-onmicrosoft-com header.b=rhLY0T3m; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4DG36C6cRfz9sVp for <incoming@patchwork.ozlabs.org>; Wed, 13 Jan 2021 21:07:47 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=uZz8KTm2bf/pfbXSDVwzAK2DkiVqur0FVDatdyv8uJM=; b=IJ4anCUMkUpeLexqk9Bshz77Um nadHae+BWBk2emv1iQTE2yY1pQEqhffY1veY7l5OCQqUSV4e+Qf2sNvHh9MXiZSN/v5UGhfIoKM3+ 1hARXodyIagMpH/HZ3DEmKJ57AckBq6fkRoMkmLIwZutEZAg9EVY/+lW8uxYk1ZwCIFGiBiRhUl98 /ohKwkfnDAF/8IMtQJoAw+7C39m4o+2TtAzJ6bIXHTIe6lVfaSPGY0DoLk1oZfJFKKh5apRdm9p1x M6u5qq8VhyoEOTT5IMDOYVhx2L64KvTCb0YV3ejcSYVAn/gAiDv1KtfsiXxUt0RaaPKAf9LnStExO cHOkizGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzd42-00054l-59; Wed, 13 Jan 2021 10:07:42 +0000 Received: from esa5.hgst.iphmx.com ([216.71.153.144]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzd3z-00052u-Np for opensbi@lists.infradead.org; Wed, 13 Jan 2021 10:07:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1610532459; x=1642068459; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=jKRjqwRro4yclUilo1lTPNrlEt5ya7Rx2xbkFzDBTqM=; b=P+kTsNWWx88gmZsk6ccIpOA2X2B+rrX7bhmmtCDM+Jl9ojGDjXBWO8Jk z3C72Hvuq6AF1ou6Lx9bFrvqILCmIf9JcBzKIC1K3FeMyDQskEjQ6NTt0 RYnN3mxUNHWEH5wLpSdQqNugfaWBA+cJBuNHTwF4MDAEm3ZxN1zwkFQtz jYD2pCeHzKRznhlvnz+bh1ARndwWS/zgD1OWU+fQJYmpfZOBwzDpAD+yG PKrJ+L3lX6DEkW/tqfR31JYcSj/l2xLEqyC2J0rjgOtlT3vWvZJqGhHXc UyYg7IOyCxtP54vcII7bZA7yVtTavXDTH9ps3sfo/49UADYJxZjYJmSQt Q==; IronPort-SDR: tM7hafgSy1DVIhEe4Wlwu7xRMTCwCc2HitzuIwoitu5IZuHP1AG8XFqXLaw6n2phLm2a7u7Wz+ n3rIq542AXMkYQkgfeP6hRnXwclORgnUmZerLYeyCoyIXEq+MxQJ54UY5fJw51FuHX4hGHvvsd yvE3iFJe7NqL7kOnByMGFkb0fzSIn/5lEEU5PRWNZ3OwL9EQpHo+GPoUdwV1TVC5M01c7uiXMY Iz0qI3s70jON4q0ewI8bKlxTBod+gUztGKRSg/4dTFdtgCwZg6fn9CPbrX0IwHIFdN0p+wXpXl k74= X-IronPort-AV: E=Sophos;i="5.79,344,1602518400"; d="scan'208";a="157319985" Received: from mail-dm6nam12lp2172.outbound.protection.outlook.com (HELO NAM12-DM6-obe.outbound.protection.outlook.com) ([104.47.59.172]) by ob1.hgst.iphmx.com with ESMTP; 13 Jan 2021 18:07:37 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UTaknJvWKEjKUz85VjG3rwo7XLNgcVj8RRDKY1EsJPHAagxdrhWivESA6wvtuSppufNekWf8N7XT8lIaFI+y9XLyXboJEYsDlUTKDPCyKJiPIiah3cnKQjWJYB+12Xm5AavgTqMkUoSo1l6GpqkxzIDkM8fHHw4jen9BgDWI7+h/JcPrOXh6Z1b7n8ZG90J2LQyxsGGIIa0MECpe5BMLgTPbkQ8qVkQTC27I4eoFjivtf2w2X4ATpval4MKUQ1cFEwQwNmX0rivzfvxeSuDc2Z/AhtuwVhxkTCNcjzMC8R3a50DtKyTjtrtcBGzQvlyvtCw8K2HMpJxBtX+GJDsF0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/WWTM/h0KYk8+GIFoesY0xIvuP+q3aV178g+Uz1TCio=; b=nLGbmnIBPUoqiRQTSYeWRRibArJtnqgPMp5ariSyx3jHICLi92NdX0FOzVsbJ48dgRA88/0X9kgHh0aCXiL35ZAlVcDmQAvTf686ECUKeHG9OHuCh/yI/MVx8fCK79N2ZSzen+SU6PM5XAT4BKRmDTeNY+IeDZYoLPiRnd3nUiORS9PM6qSunfApYuq8CLGJ5jqRpZo6oT3GOV6xQY2mHh3TivFnNQOVzKwxYii1UnC2Mjmxi6avzr9UG91CLMEvPzi1V71aSMNz7UNHgGOzWI+9CqpC+J93LFq1eNPxvPoBfiY4ZcxS0KgNgFZsRtlSFmMT9RccOlKb5jVL7/mNnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/WWTM/h0KYk8+GIFoesY0xIvuP+q3aV178g+Uz1TCio=; b=rhLY0T3mkuql388L8KFW2+WuZrbSMi6nChPXWyPwkP045eHLDOjlvJMUCLJRRHo6NM0xpNT0DPAWHk0xOwpKNYT2iiQXZYHFLlKuB16i1VU0SPVw3wtRRhobCjWllmJLNwWet6POURh54EOO/iWfDeHjV3gzMc9T2MrMa/y/tJw= Authentication-Results: wdc.com; dkim=none (message not signed) header.d=none;wdc.com; dmarc=none action=none header.from=wdc.com; Received: from DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) by DM5PR04MB3770.namprd04.prod.outlook.com (2603:10b6:3:fe::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.11; Wed, 13 Jan 2021 10:07:35 +0000 Received: from DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::2513:b200:bdc8:b97]) by DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::2513:b200:bdc8:b97%5]) with mapi id 15.20.3742.012; Wed, 13 Jan 2021 10:07:35 +0000 From: Anup Patel <anup.patel@wdc.com> To: Atish Patra <atish.patra@wdc.com>, Alistair Francis <Alistair.Francis@wdc.com> Subject: [PATCH 0/3] Avoid using packed structures Date: Wed, 13 Jan 2021 15:36:54 +0530 Message-Id: <20210113100657.809754-1-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [122.179.74.246] X-ClientProxiedBy: MAXPR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::13) To DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (122.179.74.246) by MAXPR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10 via Frontend Transport; Wed, 13 Jan 2021 10:07:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d88159ad-029a-4555-3008-08d8b7ab0c9e X-MS-TrafficTypeDiagnostic: DM5PR04MB3770: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DM5PR04MB37700996485B9817C9517D298DA90@DM5PR04MB3770.namprd04.prod.outlook.com> WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N0C3k5DAyl1y/hhOSM00+N23mGZmURW8Do9uTk+Y+N1kxYfNWMJEjJLZnY6iAvx/XkxQ7WwLUMiZ2sKqZxm7dAAvT3UWIuVnMLzb35K5zmEIGNWTA33z76j+9Z+RFjJD4mHjl0RaHdaAJ+r2zRQwzKI2s6AuYBYzbZHGF0fAb5BG75TBPtD/8q5XSTY65/wTRY+WprVgwgU+5HUUPVffrEKNl59Xx6k98L7iKOi2fzRIbaMEoH6qhC4QNaW+21ysVrOEOwyszVZLru9Dr0ktwMUnRu/VlTnbDQKJjfvani7SSpsPm7ArumdkI2AfArx5TaBzH9lhbu0ztBUK/MK2Z4FynJpykcpyC2H6wnr7Z19jL+W237ilxnS3C9detzJAbDbTNxF2Ed8SGIXb4E4yxXcLZJVl4wcjp2tPh/N25LQxAQnGFLHOoD0ZqMqOlQJnDcjkMm9o/+NkWVeXL+aV4A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR04MB6201.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(136003)(366004)(396003)(376002)(8676002)(36756003)(86362001)(6636002)(66476007)(66556008)(8936002)(7696005)(956004)(66946007)(2616005)(44832011)(54906003)(1076003)(316002)(110136005)(4744005)(5660300002)(52116002)(6666004)(26005)(16526019)(8886007)(186003)(966005)(478600001)(2906002)(83380400001)(4326008)(55016002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: Gs5ENPYLUkWcfCNtH9Hmizq5nBZ+Zea62FvoGm1XNI57SZ6dMRuBTS1MaikjryU5FHPX3zc8tp0qNpB996JVrW0EKavSEXxNLusdTr0PXc1sdQy+ZxXLSU6VmSxkKgbjitYU0l3GTgWa7LRJHlPlSRUEmS93tx6qPZo5Frldj4WfZ5yqXcXYkoaz5I3q7f8mTckTBMXPumdQtpUxn63/LyzL3mk0Fjqogz3rnLlGYJZXNNj/+KqYPz+EnXcwmpJtNhUcwmPUQp4NBWI6UFN3m/oct6YnO6BdNzW24BuHVacA4Cqbe5MWkQvNPwMH6e8A72FSqpPCMmP21k3+DWO1tlqveQmXvAM8wEsFndDJy2MkuEx3d9gjVPE+2/DpknEaoqEYhuxx82kJskjCaT8l2utG8FVb1JgZbbVhafupzUJN8tsOH5WCxhnFe/fb+LK3TNS6iJogK+fnoe/QvCxi3aQGS93zcT+s2IKymKVK0P6yhrRfmxF382+AxTtywJF8WzRi/XSS0j+7s/T0kfbeHCNSs8mR4mZkaN4DCvgEQgIw9G4CVhhiIqTWYuCN+o1rtPwlMYUVBZvZRIHt0PdHSy3xEmviQ5wOMcPaAhTskb60kIZmKUxEUDncwKm7Z5K5vvRZGN58rIyRy+c2H0lwb/m5ZprjA6HC8jKIOq6H4AXP7YyZ+u7q4a3LXrkDRHEeE3lS2dbjnauhtOAOMxIuizYlVvq1RcCsdvvcgfzTI1QRtLVg8aArdT+GB9nAFNT6aTSiWzsV3HNtAU1DH8LyYWe8HbovLzlYilccZ6ViRWBMrdDlApTfBQf5Mw3bEOhxGIJl8yxZfHXOZvNA/Z3I3PMFmPh40OJgmYCvxorofmBlojlBnj+hL+PlgWM5o4ujADHDmdbibCs6Ao/pVV4xfaSQmh35//LMhLAzU087y5ZjmT70sVYtGTOpCmpjj3xSGMq09pYC1HPq8lNJzSN6rJFAz0u37hsv6JLsPKVVlphMoIql0ihC9pqXp87hNrkK X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6201.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2021 10:07:35.1069 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-Network-Message-Id: d88159ad-029a-4555-3008-08d8b7ab0c9e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KEXar+McpOrq9vpP52vIerV+De2JcC2CHocxtHMYw2KLo78f6vokj+hRZKjwSCA0taPCqZdomQBGgxGFosgBCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB3770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210113_050739_981053_9EAE3102 X-CRM114-Status: GOOD ( 11.83 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [216.71.153.144 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <opensbi.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/opensbi/> List-Post: <mailto:opensbi@lists.infradead.org> List-Help: <mailto:opensbi-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=subscribe> Cc: Anup Patel <anup@brainfault.org>, Anup Patel <anup.patel@wdc.com>, opensbi@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "opensbi" <opensbi-bounces@lists.infradead.org> Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series | Avoid using packed structures | expand |
On Wed, Jan 13, 2021 at 2:07 AM Anup Patel <anup.patel@wdc.com> wrote: > > Currently, we are using packed structures wherever both C source and > assembly source access the structure. This causes GCC to generate > sub-optimal instructions when accessing members of packed structure > in C sources. As a result, we have bigger firmware binaries with > sub-optimal instructions in hot path. > > This series removes packing of structures wherever possible. Due to > this we have small firmware binaries with more optional instructions. > > These patches can also be found in nopacking_imp_v1 branch at: > https://github.com/avpatel/opensbi.git > > Anup Patel (3): > include: sbi: No need to pack struct sbi_trap_regs > include: sbi: No need to pack struct sbi_scratch > include: sbi: Don't pack struct sbi_platform and > sbi_platform_operations > > include/sbi/sbi_platform.h | 4 ++-- > include/sbi/sbi_scratch.h | 2 +- > include/sbi/sbi_trap.h | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > > -- > 2.25.1 > > > -- > opensbi mailing list > opensbi@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/opensbi For the entire series: Reviewed-by: Atish Patra <atish.patra@wdc.com>