Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp845038rdh; Thu, 26 Oct 2023 18:41:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEL4/i87RoopMkE3eOOf5MyRHJXs1bkHkggLow/NwUCOugazOrNB2WBsAJUWs8HMefvKgXO X-Received: by 2002:ac8:5bc7:0:b0:41c:d0b5:c605 with SMTP id b7-20020ac85bc7000000b0041cd0b5c605mr1528630qtb.22.1698370909484; Thu, 26 Oct 2023 18:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698370909; cv=none; d=google.com; s=arc-20160816; b=XnIJuq150fLPe0XzTlj4ROLzmuqiZKylq3KzQEbjBZ2q55aSwYxIItEb2FfuyO7NJ5 dipnRgKx8y+Cz8uomni8wTlYjc64risJy6lj4r579Jc9k+nY24dkJ5JGqFILeilL3lu9 BRDrDCvvqGLCoD/JJ8RQdsj+IVoPr8b9nSIPcdw9dYNQmC3431xM3fgcdl8Q0fbatekM RKQp5XaCvIsEWv1V/+6HUFw9LEUUHNL6QVyahjT8QEFarXoTE/jzDSPw6j8ThBtQnSdo mg8edwYIiicNv6IOX7JjxPxAXSI//NJdapltN8ZdjXcQCjFXLpk2c23ZswWpaDQK7pnq FINg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QDuCxV97jLrzP8xYRxaJCHzPJKNzlcl0X02n638s3Jo=; fh=JMSh1oMu9rfeEZypDaPy95awPpHWhusKQaZP02U34B4=; b=FCMbne1d0G+lzpXlb+arjWixbo3Vaa3tP/dSZvq0wG8T1mw6td3S2HO68n1LRUGHEO EoAgNhsQMpDR//p9qCRb28nbSeV1EUTSg1YCNyZdfDvCMBoUfgVc7DZaEHldSBVQS/qY fbp0bMDEuJHUNoCPfbd6xuaonNdNg9sh+oF7QNlnIpoQo6jAqj2oVDGLYQ8AdZCRd8rf Jp4ZtKDqiW6gEN4W4enbtaWhtw222Imhh2U1vk+eqZB+kVQcCZId63RqdYstiStLb1Pk siLAF+v2WBlos9Sr0rbEA0fchHI4mvmZSnlvkIIkJNS6bgf5vzXo6+Sf08nrPZD56d0K 4xkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TbBCFdcv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t133-20020a81838b000000b005a7aad8dd41si980833ywf.304.2023.10.26.18.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 18:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TbBCFdcv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6E82A808752B; Thu, 26 Oct 2023 18:41:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229633AbjJ0Bk1 (ORCPT + 99 others); Thu, 26 Oct 2023 21:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjJ0BkZ (ORCPT ); Thu, 26 Oct 2023 21:40:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A24C1B6 for ; Thu, 26 Oct 2023 18:40:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBEA9C433C8 for ; Fri, 27 Oct 2023 01:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698370823; bh=Tg1BcN8MTB11mXGkDAIPwyalWPjJFr1KuXuRuiuHTMY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TbBCFdcvYbCRp/t5JHRVTV5fnyhS47C6nm8TprZpBlZPpD8hnOsITBNm29pS/lD1F BzbZjnmgcGFzut+1L0AgBmL3iug/YAZ4N/Jpdb79vupM14wa4ZKR/2HVV6doJDq8Ow qwBtoTD+g5MuPsDbgQqa4lkLL5z0zpKhEx2tgunnWtGurMLooyCgv3sSC0Subyvf7H WPsPvitEja4WIGwRctX/80oXAyX5xCRoQ7W50OoEAdI1zWXrek2fPOTypDaD/pK2lG 2yDKvuibysGF2uRrfWQslR9lDHnYqH4pA+PDGgkZR7hkM6IqKPyKlfSv73YiZpMyX0 2rMHr9UOWFzqg== Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-53e2dc8fa02so2571579a12.2 for ; Thu, 26 Oct 2023 18:40:23 -0700 (PDT) X-Gm-Message-State: AOJu0Yz33hk0Psbfopec5Q1ECjCaRzphMtEBlCjzgFToj9mWz0w7LNET w1rTssvbzquRBph8AU0ZYzRhIv2STQoKrgs2iC8= X-Received: by 2002:a05:6402:3447:b0:53d:b1ca:293c with SMTP id l7-20020a056402344700b0053db1ca293cmr1154834edc.22.1698370822207; Thu, 26 Oct 2023 18:40:22 -0700 (PDT) MIME-Version: 1.0 References: <20231026114446.5932-1-huangpei@loongson.cn> <20231026114446.5932-2-huangpei@loongson.cn> <0e0cbc68-2b4c-462d-aff4-abd795b3b63d@efficios.com> In-Reply-To: <0e0cbc68-2b4c-462d-aff4-abd795b3b63d@efficios.com> From: Huacai Chen Date: Fri, 27 Oct 2023 09:40:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] LoongArch: Add RSEQ_SIG break code definition To: Mathieu Desnoyers Cc: Huang Pei , Huacai Chen , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 18:41:02 -0700 (PDT) Hi, Mathieu, On Fri, Oct 27, 2023 at 2:16=E2=80=AFAM Mathieu Desnoyers wrote: > > On 2023-10-26 07:44, Huang Pei wrote: > > Signed-off-by: Huang Pei > > --- > > arch/loongarch/include/uapi/asm/break.h | 2 ++ > > Why is this part of the uapi ? None of the other architecture has this > as part of uapi. It's only defined in the rseq selftest arch-specific > header file. From my point of view, it makes sense to list the dedicated break code in UAPI. It is harmless and can avoid potential conflict in future. Huacai > > Thanks, > > Mathieu > > > 1 file changed, 2 insertions(+) > > > > diff --git a/arch/loongarch/include/uapi/asm/break.h b/arch/loongarch/i= nclude/uapi/asm/break.h > > index bb9b82ba59f2..e0fcfc304834 100644 > > --- a/arch/loongarch/include/uapi/asm/break.h > > +++ b/arch/loongarch/include/uapi/asm/break.h > > @@ -20,4 +20,6 @@ > > #define BRK_UPROBE_BP 12 /* See */ > > #define BRK_UPROBE_XOLBP 13 /* See */ > > > > +#define BRK_RSEQ_SIG 16 /* See rseq */ > > + > > #endif /* __UAPI_ASM_BREAK_H */ > > -- > Mathieu Desnoyers > EfficiOS Inc. > https://www.efficios.com > >