Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp246178pxb; Thu, 14 Apr 2022 21:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNuSWb4ly873JUbsapI0CvhxZdCrtOikeGurm/DAA9ciLbp+odtcvw3DdPCLYLd5Bh8fg1 X-Received: by 2002:a05:6402:218:b0:419:d804:9483 with SMTP id t24-20020a056402021800b00419d8049483mr6511920edv.396.1649997160439; Thu, 14 Apr 2022 21:32:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649997160; cv=pass; d=google.com; s=arc-20160816; b=JQLmGgmHEisIetZBlLTUI9jE6uw4QJ5gIjGrAEEKgmkDqA2v9LFxswqvNiH6EHFTTn 3VjS53nMl6MxrgM11teee4bSd0iJbHn1DgE7mORzIsQ7E7iazj1mZAaSathnVIQ1EfYC T7NQdlNZjCEEe+YyvIeE/CfOmF3bia0zXiN3KmqtlabH53DNKnva/USP1kT2WlSxZp5T eDaX+eC3MuZAMcWpixWyvRZNOPPzgwUni6+/FMA8eKy2z9zyt3N1n4mSZ88mp9mLZxdb kEGrt6A21LrTYtooNmWsiZN+Kca1PBdEBszGcF9ztDXcrDdvljyMWvT5Hq9lGvGpyHrD Zb8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:wdcipoutbound:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:dkim-signature; bh=wE4hKtGwbypUy14Nm0/YF/9lnlHNMpeXFCyvd++EKJo=; b=wTYxJdLOI+1hECZEjHNhGxTLZGhz+hU4LmLy8ulpW73/X1YTwngQHYqttl8G/VtBRN vzT/fA5f30CXN0gc+d+eFzwEiVRV+PqejCHFuqjZTYNN8eojrMBi2tfNmWAmvOKJ8+FH miGs9PAkHtwf2eJllQnsA/wCqaJQVo4kWjBrD/PKamNsFfNOXeA7Hs6ran9ZSDQ1Gd+k /YwZ222OfYx7Wtlh6TwkzEwQ3BPAA8VatSHLgLs9CNPNgKj4bKiKvBByAh5lCQFhOLU9 PKr6imReYhe3Pn31n6f62wVdAZhYdlwwjPhItOf6VIP1qs9/xcAmTSGirRy3TLuabN9o z7ZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=qhAnqRaF; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=l4ul506O; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020aa7cf89000000b0041cc212ed23si364600edx.603.2022.04.14.21.32.15; Thu, 14 Apr 2022 21:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=qhAnqRaF; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=l4ul506O; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243512AbiDNMuD (ORCPT + 99 others); Thu, 14 Apr 2022 08:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243528AbiDNMuB (ORCPT ); Thu, 14 Apr 2022 08:50:01 -0400 Received: from esa3.hgst.iphmx.com (esa3.hgst.iphmx.com [216.71.153.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0374991576 for ; Thu, 14 Apr 2022 05:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1649940455; x=1681476455; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=47vyDcaAocNVxKHD4tOCroWnBDAHe6YI6yWaKpW/ZBs=; b=qhAnqRaFvxE5Gqbbu7qr7+PEBd/oMjdWT74JVl8zTOxsmDJq6IZr5Z/k SXaU982yQ6ePOpM/XOlnEZaiHczHvtfnx3nBpO19DlYjA/hIyepliNaS/ SUU4VPve+CTBGmGh7eR0uNJDx/PZAhLKv+y3/uJmiOzCLNDaAqeHqkloO x1on80Smyd8jmJYWh/GAfsxS3e5fFSnGyYaLLewNYWqDNOamnz7O4et9q cdivE/1fw+h9Psu4S35FF66PONY/hdYH7nJta1yDQ0vkr7ECb5uoCD1xu V6Avgd7vtSuD1MBoSSxplxQgsTpe4JvcPr7Q1Nx6U3JeodmqdLn5IDR3G g==; X-IronPort-AV: E=Sophos;i="5.90,259,1643644800"; d="scan'208";a="202769513" Received: from mail-sn1anam02lp2046.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([104.47.57.46]) by ob1.hgst.iphmx.com with ESMTP; 14 Apr 2022 20:47:34 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h+MtuRFGE2Xf400vua2OR7/xUqXpah/rBNf1PnQkGv5N4CzThm3cnkekmMYRdW8ntZARLe806Nws096s/lYzx94v0bl+WJMXz1tc87D+q5jf1PrCV+u0mMuSTD7efFV65h+2wDvgXFg0fLptIfbGxejkQcVglHIzEl9SA0S7mpNwsAO6Ws5eXsKWq/3fj+6SzxrVrdBZStl1vLWbeta4ygLV6R2hXrFKqTNGXxglSOX3nj2DjBf/npnakH1ARGAwkcPsL/4mPTdNbmUFXh2F2x56SXjeOuVYJU2YVeOHUOUNnVIArXXYgrY06C2oayqcty6ItS+ON2JchR2y9D1qgA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wE4hKtGwbypUy14Nm0/YF/9lnlHNMpeXFCyvd++EKJo=; b=hNTpBkz/Uzx0vWVISyNg9j9GKw+RxKa2sCE5haET5zx0Lq0rxaSP9RKAsywQagLTbNqOL1vOnFWNTGOCTPFXaBy0vQIAMxJNmqb02DEB9iEwCe+Gmb64lwnzSRPx88FegD3Mu1DSbqRQtQ9QmSKKoLsNV097CHUhWhhJ6eYeaE6OtFdnsFrv4OT+GjTycSRTlPU8wBJ9NKjxD+ttY9CirA9r+bJYYcrvQfp4vKHrgUGv9+lrefXev9rY8KoHFJaDgfy1XpxMTBk6jN2uq0e/xjtHzzLmnjgiBC21o0HJYZhQ8a4uTb5uLKmwX+Jw4zrhwLrfzm0bd5ILeVRaPTw8Ag== 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=wE4hKtGwbypUy14Nm0/YF/9lnlHNMpeXFCyvd++EKJo=; b=l4ul506Oj17iDtPDQ4EbUNUwX1usWbLdzvmD1uv2vzmJgYBcnrdlr40+nA2hbjo1a+Tk3QcS1MgEfRqRD+AWbNTMEmBqioodK8nnzFEkJdi4k8zupuuEmTAfN9CSGW8Ye1HcZuk/My8KSwOLycDfk8VNktgsYIFUcj38IKfpmSU= Received: from PH0PR04MB7158.namprd04.prod.outlook.com (2603:10b6:510:8::18) by BN6PR04MB0898.namprd04.prod.outlook.com (2603:10b6:405:44::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Thu, 14 Apr 2022 12:47:34 +0000 Received: from PH0PR04MB7158.namprd04.prod.outlook.com ([fe80::995b:363e:8d1c:49af]) by PH0PR04MB7158.namprd04.prod.outlook.com ([fe80::995b:363e:8d1c:49af%8]) with mapi id 15.20.5164.018; Thu, 14 Apr 2022 12:47:33 +0000 From: Niklas Cassel To: Palmer Dabbelt CC: Arnd Bergmann , "linux-riscv@lists.infradead.org" , Paul Walmsley , Palmer Dabbelt , "aou@eecs.berkeley.edu" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] RISC-V: Add CONFIG_{NON,}PORTABLE Thread-Topic: [PATCH v2] RISC-V: Add CONFIG_{NON,}PORTABLE Thread-Index: AQHYT/3PpVq5bev62Ey32XjAs/jFzQ== Date: Thu, 14 Apr 2022 12:47:33 +0000 Message-ID: References: <20220414014010.28110-1-palmer@rivosinc.com> In-Reply-To: <20220414014010.28110-1-palmer@rivosinc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wdc.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f49a8ca1-0cd0-4c60-d7b9-08da1e14f237 x-ms-traffictypediagnostic: BN6PR04MB0898:EE_ x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aIS1mR4KPhWiVqnboIcP3bgfiUhDKQaLHSn5uc4NvOoCiE119Yeu7Mjd5e2mV8sq5ap3YLye3aRjF840YhFXZDTcvz/BMFgxiTCpfW4rgL1SUtyWaKvf4theIyfji3j5JAuZvsaDCo/g7P+yCARiwcae2yDBZEe7N3UxLVV7KSyDtBkjvm7fU5t7KBqpEy+2IgKoWiJcvFH4qM4AyTpXw3QBFZZoBiUZN3dTmvAizuVEmZhxsgN9jj8fbseYH+xGDlIziFBlkkdXe2FqWZMNkfuHI+qevZhVfnjVvFlp0f7bHHIRLCT39teqKOPzUFrmxTtgB8GKG/DoJKiBGhSaVxOhfr2A7JPqv7IVyTyU3ZIaU4DeWUcZUjLaFGQKMCyUJKk/WbSDLxcAIo0m5eapZelyg2A8Jwlv+KFEwU5eMNr7uJV7tLA5svZrxcYF+yXfHwGICMRy4tjUvP/L3+ZEzKBTP+rKd0GOB2B5NdLdsq4UK8yA+u7ivie/p2Crjv+v/h1tKl2M9lApr0gPNta43bbxt8Q+ilIZ9yVqFkeJ6m3b8yElp/sClOq/vpa/neyz8JO2ipAE9BTFc86+aopBGV2jNraYThjJp0gfgjPt2UTHKq1UgRi4uXPhjB50lpmhxh5aoqzg8Rqu8ymBphz4VFjCJ1b27u9vaw53ptMJ7agV92z+XH2IoD2PcSgedGgsXQdFhryK10xM9aY+hoG+xg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR04MB7158.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(4636009)(366004)(38070700005)(6486002)(508600001)(71200400001)(9686003)(6512007)(6506007)(2906002)(26005)(186003)(83380400001)(38100700002)(6916009)(54906003)(316002)(122000001)(66946007)(76116006)(91956017)(8936002)(86362001)(5660300002)(33716001)(66476007)(4326008)(66556008)(8676002)(64756008)(66446008)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4ZWpk+O50H2rFcWOJk8pIKXZqH/PLicSfABFja02yD47t0tN+U/WZV2J3Ol7?= =?us-ascii?Q?XY1l/FwMh1eySSUWwbzPyfW4V3pZbL7HjpeaAbOIFadx5k/0ZUSljwdY/cfW?= =?us-ascii?Q?yuSVMXbRIWHyBHzp7uGzEAzxfuXpHmrwbgM+0tXCGhvvq8MKUip/M8eaIENo?= =?us-ascii?Q?DA9k2gfKIf20/FMHDTv2aFS23/CPQmAGq9rXBzjL5zLEGMP9MRTemRKLxc0U?= =?us-ascii?Q?bw123CU3wuRbuf9BFyReOrkjBAr6XYWbnTTpDAQlfGNKqD/WFR7bpNmhU02/?= =?us-ascii?Q?jdmA+WTmB/oEDJXZq8BpmLL324ke0THWiB80XhIYisscXn8ordqcH3SgWW1q?= =?us-ascii?Q?zOEfv74G9Nw9+3yz8WSj5DYCVWmi9YfXyVWf6SwP2eSixo0sxe4fbYI59oSD?= =?us-ascii?Q?1FV9ZieDk7smBhmYv7KJMZs06Gy2SicRLsIdITInNFZ4EHE7Ch4czTgLlsm7?= =?us-ascii?Q?uls8gspDKiKaqoBOOdZipZDEOVvdFDTXyCyO7lon245tvuCbwkszbJLsgoVV?= =?us-ascii?Q?TgJazE7Xh2dthXt7gM0MCJsccYUkXfOkDJumOkfvDn2RxUzeRIpv/0avCuiQ?= =?us-ascii?Q?A1Y9QqURyLLrQJlg1czgmOtkgo+75hInPA9JJtWbE1rW9667AEfxYFilF6MF?= =?us-ascii?Q?yWUN2LoRhszO8Yl5vFawVmc/B1B5Lss3VUak+3o5Y3fvUDb5jcqsO8Jiyb3d?= =?us-ascii?Q?9sEbjegf6l7TTrTiDBayAOF+8qhpcPXryM6E0Mdc7HkWc8ix4OKdxSXpc80n?= =?us-ascii?Q?6VKNuDm3hOa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ad?= =?us-ascii?Q?/6D9FMbdF2kkRZQ2bo4gxNEXpgd2DEgNP3qYqRe7QDNevMTGoa501Aqsvo+N?= =?us-ascii?Q?Wcch6f2HmxzU7dGTLRMly3ENU89LGpE=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR04MB7158.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f49a8ca1-0cd0-4c60-d7b9-08da1e14f237 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2022 12:47:33.7021 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: s1bierIpzUCVaJ44rPB0AWrhj0LhvFXmViBvtosraft+g6Aof01PYHrEV7aoguaL9Y7teq0Uuvtpo+qhamTQjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0898 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 13, 2022 at 06:40:10PM -0700, Palmer Dabbelt wrote: > From: Palmer Dabbelt >=20 > The RISC-V port has collected a handful of options that are > fundamentally non-portable. To prevent users from shooting themselves > in the foot, hide them all behind a config entry that explicitly calls > out that non-portable binaries may be produced. >=20 > Signed-off-by: Palmer Dabbelt >=20 > --- >=20 > Changes since v1: >=20 > * Fix a bunch of spelling mistakes. > * Move NONPORTABLE under the "Platform type" sub-heading. > * Fix the rv32i dependency. > --- > arch/riscv/Kconfig | 28 ++++++++++++++++++++++++++-- > 1 file changed, 26 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 5adcbd9b5e88..3d8eb44eb889 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -213,6 +213,21 @@ source "arch/riscv/Kconfig.erratas" > =20 > menu "Platform type" > =20 > +config NONPORTABLE > + bool "Allow configurations that result in non-portable kernels" > + help > + RISC-V kernel binaries are compatible between all known systems > + whenever possible, but there are some use cases that can only be > + satisfied by configurations that result in kernel binaries that are > + not portable between systems. > + > + Selecting N does not guarantee kernels will be portable to all knows nit: s/knows/known ? Kind regards, Niklas=