Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp280981lqh; Mon, 6 May 2024 20:55:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTDKgntkRtAl390rBWP91YGdxZqzlRdlsKbmMVeVSeXnMEeKMrJ66q+TgCwsMRyPlX9ZPoscsqgyFcGGa1g8Lq6RIf0MZvEoDgc7Ta0w== X-Google-Smtp-Source: AGHT+IGdX4mMvlV3PIYDTCfByB9YkvLvVKvgFIFwvgGQC9IDLWW1r0o1/yU6WOJI/UdW+G0Q8VC9 X-Received: by 2002:a17:906:24cc:b0:a59:e5ca:db39 with SMTP id f12-20020a17090624cc00b00a59e5cadb39mr1234650ejb.21.1715054158594; Mon, 06 May 2024 20:55:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715054158; cv=pass; d=google.com; s=arc-20160816; b=SoWd6ubVfDACLWu+GW+5o3F1bLN1SSGeVOE9fbGVSGLS6JUF6HsFTuyGazqBuoqHyr n1IrhA0bcjfLoSE59CArn85AroHZwLsTAyWYzUu4xzilsq378+lG6NMbr2BFMA7Bh8qU SB4e1NdJ7zfW7lTB72t5qk/Dzsz2zcYcRTM2rpXBJDkCK27oFAn3FM1jqglzsRL9z+8n QmA+VzkDdQ36M6ooujRcgAHvay28rNjej/zI0mlpgnAStNSNVSx0Eu47VtHKMtXBpKCt 7RR79GqYVMg6Qjk1HuVISbqorn9Cc9gIdA0FZA6li/XVG4anYXKW0mBP+2ANTfeOaqeS d8WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=wOtPNxB5OzuiLNH0fMUK5c9wuXAdWP2Bh0gK00toAS8=; fh=CI5mNJu8PlodzJQKpI0cAHB4ydb0KtzqBVgOqBZWjDQ=; b=vwtOXO3UwQnlSrQ4kjtCTKAR7WZe2wYNAznmxIYHzyAoC20Wtq5Jx5PFDiE1F1ovxI PK2QYMDaQcfTV0kIR+VCGSmc96T5iWN0LSwipwEgSBL1bnmio6e0DIGptTDVabVnrbXE 5/H8zKkkNuDSPxNNp+NtM7EN6dEVMAhGse/GnaAfK+x5iN45gSKijvnEh97CnpNeX0aT ZbA4GMHgC/zjpPYze01+SfQP3i+Z4EZdJgxz+A+nK5bSBm+BoHcY/FmA3ufOfMK1KTVA J2ER5gasbJSLXDH9SyMJSjIxSqdmckzd8NlLfk0R8IdsoFm6CFcDbkyoAvqTMTO19D9R sjvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=evVuxTsO; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-170629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170629-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id rn25-20020a170906d93900b00a59a9c0bd47si3434917ejb.104.2024.05.06.20.55.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 20:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=evVuxTsO; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-170629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170629-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 551561F229DE for ; Tue, 7 May 2024 03:55:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DFCC4C618; Tue, 7 May 2024 03:55:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="evVuxTsO" Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF61E3FBB0; Tue, 7 May 2024 03:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715054151; cv=none; b=Dv87AemdSZVxci6TOABjmUS/g235hR+Kt/b8e1Z4ugRJFfTGxademgORIfdM8Rdffcz+iE0meS3/V7Rs8cX54xNx832z/PozDQOLTMd0Q3p0ktWr6ydMRGH3Bdk6xmu2ut7Vo0+G45QfWi4NTc5HYdq9M06hqCHc1Vgc/2/FTJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715054151; c=relaxed/simple; bh=/vJ4c0AQmmB9ps+rh3Y0oGTRG28m+JJpNgChWpJQls8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=slL+6BGuusrWA3IpeFFztZzAFo+6XWInPjkCRRGRMs9by+yMzIpP1vj/0w8tJgr+YaPF6ATTFRTFgcjNHRPkNLeY2cI2tAFT1+i25xzsuqm1xpslU96EImGj5SmxgAMx64oNm+AgN1IYCXcfMXilmAIHXmFhaXBo0NfyZgn7ENs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=evVuxTsO; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1715054144; bh=wOtPNxB5OzuiLNH0fMUK5c9wuXAdWP2Bh0gK00toAS8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=evVuxTsO7Gm7tMSnmmBSjDM4TuiWoSBD7DYmjC3UEU2GnTX2MwcFzVxP/6+l7NmnM 7JtZJMkxHIamnBKP5WjbBYTKOGZHOOHZ8Wn/jvbGpwX9iW4VTgbPFDmsTZfV60cc4P 4ToGoBe47wula7JmgLIVWWGxI1KkG4Gk4QH9XJDApifStJ3WaJu5as0VkowtpflfjZ 1aeCvk40Pq6CCPMyw02b63LnpN+yIX3FENWe6rsT3KJlIOoA/v4O1++b6DQfIMOSTr HEs4BtC7AacZWM4FlJ6euZ32mcsiRC5qxqvZpI8Cerd0tS8TGW8UctxxJ/9eQq2HjC ei1qEaUaXLW9Q== Received: from authenticated.ozlabs.org (localhost [127.0.0.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 mail.ozlabs.org (Postfix) with ESMTPSA id 4VYPZS0ThQz4x0K; Tue, 7 May 2024 13:55:44 +1000 (AEST) From: Michael Ellerman To: Stephen Rothwell , Palmer Dabbelt , Paul Walmsley Cc: Benjamin Gray , Charlie Jenkins , Palmer Dabbelt , Linux Kernel Mailing List , Linux Next Mailing List , PowerPC Subject: Re: linux-next: manual merge of the risc-v tree with the powerpc tree In-Reply-To: <20240507100441.0ffefbd9@canb.auug.org.au> References: <20240507100441.0ffefbd9@canb.auug.org.au> Date: Tue, 07 May 2024 13:55:41 +1000 Message-ID: <87bk5ip96q.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the risc-v tree got conflicts in: > > include/uapi/linux/prctl.h > kernel/sys.c > > between commit: > > 628d701f2de5 ("powerpc/dexcr: Add DEXCR prctl interface") > > from the powerpc tree and commit: > > 6b9391b581fd ("riscv: Include riscv_set_icache_flush_ctx prctl") > > from the risc-v tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. Thanks. As you would have seen, I accounted for 71 being taken by PR_RISCV_SET_ICACHE_FLUSH_CTX in my tree, so this is just a textual conflict. So should be nothing to do other than mention it to Linus. cheers > diff --cc include/uapi/linux/prctl.h > index 713d28788df7,524d546d697b..000000000000 > --- a/include/uapi/linux/prctl.h > +++ b/include/uapi/linux/prctl.h > @@@ -306,20 -306,10 +306,26 @@@ struct prctl_mm_map > # define PR_RISCV_V_VSTATE_CTRL_NEXT_MASK 0xc > # define PR_RISCV_V_VSTATE_CTRL_MASK 0x1f > > + #define PR_RISCV_SET_ICACHE_FLUSH_CTX 71 > + # define PR_RISCV_CTX_SW_FENCEI_ON 0 > + # define PR_RISCV_CTX_SW_FENCEI_OFF 1 > + # define PR_RISCV_SCOPE_PER_PROCESS 0 > + # define PR_RISCV_SCOPE_PER_THREAD 1 > + > +/* PowerPC Dynamic Execution Control Register (DEXCR) controls */ > +#define PR_PPC_GET_DEXCR 72 > +#define PR_PPC_SET_DEXCR 73 > +/* DEXCR aspect to act on */ > +# define PR_PPC_DEXCR_SBHE 0 /* Speculative branch hint enable */ > +# define PR_PPC_DEXCR_IBRTPD 1 /* Indirect branch recurrent target prediction disable */ > +# define PR_PPC_DEXCR_SRAPD 2 /* Subroutine return address prediction disable */ > +# define PR_PPC_DEXCR_NPHIE 3 /* Non-privileged hash instruction enable */ > +/* Action to apply / return */ > +# define PR_PPC_DEXCR_CTRL_EDITABLE 0x1 /* Aspect can be modified with PR_PPC_SET_DEXCR */ > +# define PR_PPC_DEXCR_CTRL_SET 0x2 /* Set the aspect for this process */ > +# define PR_PPC_DEXCR_CTRL_CLEAR 0x4 /* Clear the aspect for this process */ > +# define PR_PPC_DEXCR_CTRL_SET_ONEXEC 0x8 /* Set the aspect on exec */ > +# define PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC 0x10 /* Clear the aspect on exec */ > +# define PR_PPC_DEXCR_CTRL_MASK 0x1f > + > #endif /* _LINUX_PRCTL_H */ > diff --cc kernel/sys.c > index f9c95410278c,1b7bda0722ca..000000000000 > --- a/kernel/sys.c > +++ b/kernel/sys.c > @@@ -146,12 -146,9 +146,15 @@@ > #ifndef RISCV_V_GET_CONTROL > # define RISCV_V_GET_CONTROL() (-EINVAL) > #endif > + #ifndef RISCV_SET_ICACHE_FLUSH_CTX > + # define RISCV_SET_ICACHE_FLUSH_CTX(a, b) (-EINVAL) > + #endif > +#ifndef PPC_GET_DEXCR_ASPECT > +# define PPC_GET_DEXCR_ASPECT(a, b) (-EINVAL) > +#endif > +#ifndef PPC_SET_DEXCR_ASPECT > +# define PPC_SET_DEXCR_ASPECT(a, b, c) (-EINVAL) > +#endif > > /* > * this is where the system-wide overflow UID and GID are defined, for