Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp209842lqh; Mon, 6 May 2024 17:04:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/He4Y4pTq6YK4juiQecqMDiaV7udDC9n2tW1sj71C7C9eruJssEylPLUoNS46Z4Zb+dpcblnjapqfIXC0xFu0CK54fImIYQv1n9/ybA== X-Google-Smtp-Source: AGHT+IENGLnR/Rl5yyTtgRKqtla59QsDUa2KLWeEYhqhVE+stpaz0tQYdJtUCfbZ9CSAeaUkXQu3 X-Received: by 2002:a50:d659:0:b0:572:1625:ae99 with SMTP id c25-20020a50d659000000b005721625ae99mr7395604edj.31.1715040299175; Mon, 06 May 2024 17:04:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715040299; cv=pass; d=google.com; s=arc-20160816; b=XDawfM0BJmCrzZV4cUxZA6MS7vV+gDLOSMwcsMCQjbf/ljlT+IyPQfjpnydvWC8CJb v8aDu3b6zmWWrB8usFjZM+uJsHjJhZbpxW41KaxSB9x0XbJA0dzxV2CSphLyEpVFJbuF IL75Dv9o+D9NNnMnpKEoO7Rnx0UERJRqQk0NvUQlrGLm98V2bBmtGz6uiwM4ntDNFNd4 eMRIQsI3jmf7ccUsD+mHiE5JNTcUWPz37dHB0rEPOvZLv0pjyxySfA3+Kcld4V6ASie8 XQ6P349W+vl6ZMOJqsha6nGgsRs83325cf9Z8P2DlQ2ROs9z2qH6ELARkyhyiNtC9cO1 0Q4Q== 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:subject:cc:to:from:date:dkim-signature; bh=hB9NaGtn0Ed1umyavuftHblA0GfvfFPA+kBeEH5epLU=; fh=5pRB2Mdemr/Cnnohp6/TfZYtP1pKWQVcueA2Y418w2A=; b=XU83J4fxNKTPTFDL0ZDEhvidFa3gUpRPhVptbp+jrdMXs7O8dBoR+jFZoAxGO791Rp 3MeXEdjECghMU8uq6U11WQTtcT1//NDAaQgxCklRLBmx/Be+DOjdPwgaDbyyezHnemFN cj59gLzT5lCI4JvH4GTjyBW4SPxjBxG2zBlErNHesxquXPb62w961xBGf0FzJ2or9oBO NlD/KEf3G9pznnDQxI6wKkeRfu2sZcWJqbdZbQMxZeChI2oSK0l/5N6rcjTt2Eubp0X8 Hv6VBUv/RCtAlEITa8Y5Vacab4Nl3/ygSqtx4bu5oiq9cy1BXkAuBpVaSGJGHFXOjI04 wQBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=lCjvESUs; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-170516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x1-20020a50d601000000b00572b83c1d87si4270626edi.1.2024.05.06.17.04.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 17:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170516-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=@canb.auug.org.au header.s=201702 header.b=lCjvESUs; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-170516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au 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 A91811F241A8 for ; Tue, 7 May 2024 00:04:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 998ED64A; Tue, 7 May 2024 00:04:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="lCjvESUs" 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 1EE061854; Tue, 7 May 2024 00:04:48 +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=1715040292; cv=none; b=Uj8JSdEbXP8DHeEiJwcqLd/DnQoa3fQqR5XkE2sGHpORzg1QIjtFupFyizUC+S6FMjVKvyQFAy1rshVRUSyH2UlQG8N0JjttfKQR3lh2/ZL8Ciz3id3mwoKkjTyMYGE0S8xxc4VS+df/RRWPVYefzCg5eeF8XLOKGdmeU6lrINg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715040292; c=relaxed/simple; bh=f4IBlK9RjYI+9fnJnyhkx+oAYMOHVrCAwdD2Hq5rgT4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=nvCoNot8OradVTa09rpgvhF9KXK76IAV2Ia2vJatySFcux/Y42DCZ/Gnl8Vnr6xZJzdqbB8NzzQvg/4+a9U1xdeTkUIz+GZUSZG238ROO+1c2vhBniLlWAC4hGi3vfhmuJQR/NkjfVsVa1pEZC/hiBr7tDB98KeVFLL/bjCdMeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=lCjvESUs; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1715040286; bh=hB9NaGtn0Ed1umyavuftHblA0GfvfFPA+kBeEH5epLU=; h=Date:From:To:Cc:Subject:From; b=lCjvESUslbl9iBCnNsSNcaLyjlsbvxsWCdrgnh75Pncsy+UD/sToVEVgPqWdGmrNV KuoIIMpDe0hWidof8pElUq999Vvwoc6wq3EVfNgGLSFkeRfj6ETuDUS3XCGWU9a6oS ZA1d/zjikqDehZkqCjv1/5oF9bq8oJu+v4XpMop5Kkd8NWimKCPE1PK1C1OWqbBIdE sK4Wut3vGjs31724JN+ModQf2lZ2TghlO5hCDyBRgwIlxZPVXD3oGQUE/0mmNsfOwP dqcF+bUPA2Qx2YWCvp0gWGSHe4fznP3C2PXGgL6VoByEepoV52hrq7aa91zKnLHPZL qkwqTmL+kfFAA== 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 4VYJRx716pz4x11; Tue, 7 May 2024 10:04:45 +1000 (AEST) Date: Tue, 7 May 2024 10:04:41 +1000 From: Stephen Rothwell To: Palmer Dabbelt , Paul Walmsley , Michael Ellerman Cc: Benjamin Gray , Charlie Jenkins , Palmer Dabbelt , Linux Kernel Mailing List , Linux Next Mailing List , PowerPC Subject: linux-next: manual merge of the risc-v tree with the powerpc tree Message-ID: <20240507100441.0ffefbd9@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/3T=VzYrZQdMsHplSnkWYqcq"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/3T=VzYrZQdMsHplSnkWYqcq Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. --=20 Cheers, Stephen Rothwell 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=20 # define PR_RISCV_V_VSTATE_CTRL_NEXT_MASK 0xc # define PR_RISCV_V_VSTATE_CTRL_MASK 0x1f =20 + #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 +=20 +/* 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 predi= ction disable */ +# define PR_PPC_DEXCR_SRAPD 2 /* Subroutine return address prediction di= sable */ +# 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 P= R_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 proces= s */ +# 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 =20 /* * this is where the system-wide overflow UID and GID are defined, for --Sig_/3T=VzYrZQdMsHplSnkWYqcq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmY5cBkACgkQAVBC80lX 0Gz+pwgAhkAnVZU+luoCbsYirXDx3Xxlo6uOJV6u+H4LLUJPErrmeLvOl0cbkiQg BV4Z5+g8N28etB+MhVXLQ5RzzMz3QvP5cH2kK3VVHgvLo/VmaO/Z/Z7ky/O0rvrU +Kss/3sekJ4rHWTrysg7/9HkJu3X2KM4rPEx+kNcQAMZ2+PxLI26ek7VUhj56NKh 3koT56fiNT0SG/hJfufIx/EKdKdFRHdZYHCWnT0mO0b+90E9/kr4b7mTqVz6Hp4H DEj15/19dydr5G7ZcmCsBhAmwbzsuKtxSE+tUD/yKAYr3NFvOiJyFsDAr5GrBwk5 WfV9mi1r0hd25KdgyJz2MI29TLc1oA== =ACh2 -----END PGP SIGNATURE----- --Sig_/3T=VzYrZQdMsHplSnkWYqcq--