From nobody Tue Nov 26 19:56:57 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 36F471885AF for ; Wed, 16 Oct 2024 05:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729056476; cv=none; b=ntez3BIjvgNkwUSyYUlRcPZ7TFhj8m5DaD3+aIC/omyZaAQlJy5bQkGAtU7+Hm6LfgXV2cRPeEK9dJe3MS8qR7w1t4qL1quZjOW4i+nokqEREHR9bjS16ZSCiDMZGGBJ6vTZNVHansUwO1ONGiqavZQXvEpcxl5NW0ZeeC3wp5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729056476; c=relaxed/simple; bh=68woyE75ZIGwOaOLLsh1imaUUCQWdiGYr0Y+KyS1j1Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=u3ZhjuWdFZtBQx5nkt1gv8q778hkNPx183bBzqr01XJe0rHZ306Uy/QtNuUwJWzJ8VtgoMQX2Gk4fBt60SVwoB/H+z8aAtvxx2Xqo3c8RFb/t3tsFmhShcRKZbnkemzqc2BxzFAimYHBqmYH0m4cyapdhAHh2agaj9z84moGebc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fbywkrjj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Fbywkrjj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 804F2C4CEC7; Wed, 16 Oct 2024 05:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729056475; bh=68woyE75ZIGwOaOLLsh1imaUUCQWdiGYr0Y+KyS1j1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fbywkrjj7Vlf6V20QnRMYPLTR0QlaLScl4vqg2Znzpnw+CdwPLcXYhTr2tmpbOqgF mY/NnKTSR8lvq28GytdIHkQyln8LRLZc27IvwMUkelbMT1di7x2qGeNL9Qhi6YCrhB YEBoO77IpasMYCWpA5GA7FTy4xKQtnLlm0V16n5ssMU2vTn/6j+BoyaHjuA5EshqmE lte1VO8CN/yrhPrcP0T6F2tTCVocmcSFo/rXWj9F4NaRLU3nnuGXEFJ2sTLNrFnMYd X8YwlYkD6zh0oHEPiyRht5mlhmsq8d4VRFf7ZC3QonAe723Ud+xhHBrNjGha83QflL fYTh5B1XhxK5A== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Benjamin=20Sz=C5=91ke?= , Shahab Vahedi , Vineet Gupta Subject: [PATCH 1/3] arc: rename aux.h to arc_aux.h Date: Tue, 15 Oct 2024 22:27:47 -0700 Message-ID: <20241016052749.1640081-2-vgupta@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241016052749.1640081-1-vgupta@kernel.org> References: <20241016052749.1640081-1-vgupta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Benjamin Sz=C5=91ke The goal is to clean-up Linux repository from AUX file names, because the use of such file names is prohibited on other operating systems such as Windows, so the Linux repository cannot be cloned and edited on them. Reviewed-by: Shahab Vahedi Signed-off-by: Benjamin Sz=C5=91ke Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 2 +- arch/arc/include/asm/mmu-arcv2.h | 2 +- include/soc/arc/{aux.h =3D> arc_aux.h} | 0 include/soc/arc/mcip.h | 2 +- include/soc/arc/timers.h | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename include/soc/arc/{aux.h =3D> arc_aux.h} (100%) diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index 4b13f60fe7ca..005d9e4d187a 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h @@ -146,7 +146,7 @@ =20 #ifndef __ASSEMBLY__ =20 -#include +#include =20 /* Helpers */ #define TO_KB(bytes) ((bytes) >> 10) diff --git a/arch/arc/include/asm/mmu-arcv2.h b/arch/arc/include/asm/mmu-ar= cv2.h index d85dc0721907..41412642f279 100644 --- a/arch/arc/include/asm/mmu-arcv2.h +++ b/arch/arc/include/asm/mmu-arcv2.h @@ -9,7 +9,7 @@ #ifndef _ASM_ARC_MMU_ARCV2_H #define _ASM_ARC_MMU_ARCV2_H =20 -#include +#include =20 /* * TLB Management regs diff --git a/include/soc/arc/aux.h b/include/soc/arc/arc_aux.h similarity index 100% rename from include/soc/arc/aux.h rename to include/soc/arc/arc_aux.h diff --git a/include/soc/arc/mcip.h b/include/soc/arc/mcip.h index d1a93c73f006..a78dacd149f1 100644 --- a/include/soc/arc/mcip.h +++ b/include/soc/arc/mcip.h @@ -8,7 +8,7 @@ #ifndef __SOC_ARC_MCIP_H #define __SOC_ARC_MCIP_H =20 -#include +#include =20 #define ARC_REG_MCIP_BCR 0x0d0 #define ARC_REG_MCIP_IDU_BCR 0x0D5 diff --git a/include/soc/arc/timers.h b/include/soc/arc/timers.h index ae99d3e855f1..51a74166296c 100644 --- a/include/soc/arc/timers.h +++ b/include/soc/arc/timers.h @@ -6,7 +6,7 @@ #ifndef __SOC_ARC_TIMERS_H #define __SOC_ARC_TIMERS_H =20 -#include +#include =20 /* Timer related Aux registers */ #define ARC_REG_TIMER0_LIMIT 0x23 /* timer 0 limit */ --=20 2.43.0 From nobody Tue Nov 26 19:56:57 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6D66918BB9A for ; Wed, 16 Oct 2024 05:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729056476; cv=none; b=QXNfsbQcY8QXVjUuXiy1E+KCfkmfGxLluplN40Qdk9lKEBByJhO1IycNRTqWKN/WD7XxEbvv2OlT5pD08sSOaXuYe4mruTGmdVrRd6SktAFnSGImyKf6qjKpiO8UVdAxH0Qerw0nurTX0s0NvVi+8JvnJxYSjeravIloJ00n0KA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729056476; c=relaxed/simple; bh=wr9djLuiLRmtMV+CDqPeySU/5of2llOuI/71PgvqERY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ly97jLx0HPnX0mg4gt3JhU6kG3lZZnDIuoe/03X77kM3HMl7fYH3XbPDxgzERK6FHS3CFr+sRNymTcMbzmZeLbq8yPdKjizgWTqRkD1Nb8Ep+fJND92bM/PXQfzz4rAUnypZaElCFJeYlPrf5kWJMl6bm2gTEtzO2BdEyRM+OWQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IHdr3Mer; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IHdr3Mer" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB302C4CED0; Wed, 16 Oct 2024 05:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729056476; bh=wr9djLuiLRmtMV+CDqPeySU/5of2llOuI/71PgvqERY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IHdr3MerMlcwzZt8JbxVEmf1NYGkI5fPbGmI5gET1LwwZqpe30GPz7DGMVSyhcTQT 0VGNb42hAmq2chOSY6VcCExtSg+clAaTnE6aq0qLfgR9N2W1RfU/eA1ATOkZTJVj2V tFLXj1s4lghCpI8Guw27d8tzGRYCF9D9MaBtKcox7MOBStqprr4TsJnISpcl/BKf0H WdaBqLrtfKk7eJRLFqSnnDJZpiJwgi4OpmufebcyolmVqNHshQWNKzVOuf4L/M6n1l C2lbCwwrFMsa7heQf1OHr2kN8+9P6Cnc4NNkQMNEhoedRsdIRTbpvUnB3N0U4v0sKT VJjFITYr2dw3Q== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Vineet Gupta , kernel test robot Subject: [PATCH 2/3] ARC: build: disallow invalid PAE40 + 4K page config Date: Tue, 15 Oct 2024 22:27:48 -0700 Message-ID: <20241016052749.1640081-3-vgupta@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241016052749.1640081-1-vgupta@kernel.org> References: <20241016052749.1640081-1-vgupta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The config option being built was | CONFIG_ARC_MMU_V4=3Dy | CONFIG_ARC_PAGE_SIZE_4K=3Dy | CONFIG_HIGHMEM=3Dy | CONFIG_ARC_HAS_PAE40=3Dy This was hitting a BUILD_BUG_ON() since a 4K page can't hoist 1k, 8-byte PTE entries (8 byte due to PAE40). BUILD_BUG_ON() is a good last ditch resort, but such a config needs to be disallowed explicitly in Kconfig. Side-note: the actual fix is single liner dependency, but while at it cleaned out a few things: - 4K dependency on MMU v3 or v4 is always true, since 288ff7de62af09 ("ARC: retire MMUv1 and MMUv2 support") - PAE40 dependency in on MMU ver not really ISA, although that follows eventually. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409160223.xydgucbY-lkp@int= el.com/ Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 5b2488142041..69c6e71fa1e6 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -297,7 +297,6 @@ config ARC_PAGE_SIZE_16K config ARC_PAGE_SIZE_4K bool "4KB" select HAVE_PAGE_SIZE_4KB - depends on ARC_MMU_V3 || ARC_MMU_V4 =20 endchoice =20 @@ -474,7 +473,8 @@ config HIGHMEM =20 config ARC_HAS_PAE40 bool "Support for the 40-bit Physical Address Extension" - depends on ISA_ARCV2 + depends on MMU_V4 + depends on !ARC_PAGE_SIZE_4K select HIGHMEM select PHYS_ADDR_T_64BIT help --=20 2.43.0 From nobody Tue Nov 26 19:56:57 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B610418BBB7 for ; Wed, 16 Oct 2024 05:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729056476; cv=none; b=h+hksVGyi6SpnIo7vTEF9u9MGCVpAKes0SJCf7d7qWK7CsQ1WDNqhdVDVQ+dFBQ/dhMG7Q+ew62TJCwvnBnMbQ5GYljbf9VTQ9cix2vk+WHIa7pQWFIZCu+O6X8LhOzX7pqrdvvsz05bZSPT0t7ojTFkews+qah00HEqWWYTKC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729056476; c=relaxed/simple; bh=//4Cx99p5jogEeFkicaoyIn2GOAS1p2Dbd+QLByWjhY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MP5bBWxI9t3+ubG1O4eClpaATiR/xKYz2kA8RXltWZyPw+dR9L9eUxaiySaYa90v7FOf+dD6cHEjRO3TF8ytVSOY19JS6n7S+uww4xraM5DDF6qXayS1uuOS5pbwSEmdV2GuzG0pLhv7WPAJp9mgXUYjpUBJQ50tFS9yOxAnZ2w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CFRGkUgY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CFRGkUgY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A100C4CED1; Wed, 16 Oct 2024 05:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729056476; bh=//4Cx99p5jogEeFkicaoyIn2GOAS1p2Dbd+QLByWjhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CFRGkUgYtZNKeG774KNogSUIWZp4KHQZzO3bZCW27MX+I3d3Ohz08BJshkQB/TNor vFV/AygFwrhh6QsxyXjQgK27CT11YlX7xRWwC7vN8AaOF2jr6kX39EPDQZClVZ3sz0 5F16BFDbmLvDaUFYc4yjtsgUM2FjtWaKpZ4o+63IJ4gd8hcu3CHuUOYTv1fZb25UnY F+5nuoMNs8H7wN2reW6UQgtZ5D8N23Px5gLkTUzvCuk4IOJMzPwagsOx8FlZ0RDyqb n5lnZpxNElVXny3hvRBJjxMRSaeAi9/JgNIv2iDb8VTc3WA6zsUFFciGGYgAxjhYwN zW+Xv43o1DV7A== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, "Paul E. McKenney" , kernel test robot , Vineet Gupta Subject: [PATCH 3/3] ARC: build: Use __force to suppress per-CPU cmpxchg warnings Date: Tue, 15 Oct 2024 22:27:49 -0700 Message-ID: <20241016052749.1640081-4-vgupta@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241016052749.1640081-1-vgupta@kernel.org> References: <20241016052749.1640081-1-vgupta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Paul E. McKenney" Currently, the cast of the first argument to cmpxchg_emu_u8() drops the __percpu address-space designator, which results in sparse complaints when applying cmpxchg() to per-CPU variables in ARC. Therefore, use __force to suppress these complaints, given that this does not pertain to cmpxchg() semantics, which are plently well-defined on variables in general, whether per-CPU or otherwise. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202409251336.ToC0TvWB-lkp@int= el.com/ Signed-off-by: Paul E. McKenney Cc: Signed-off-by: Vineet Gupta --- arch/arc/include/asm/cmpxchg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/cmpxchg.h b/arch/arc/include/asm/cmpxchg.h index 58045c898340..76f43db0890f 100644 --- a/arch/arc/include/asm/cmpxchg.h +++ b/arch/arc/include/asm/cmpxchg.h @@ -48,7 +48,7 @@ \ switch(sizeof((_p_))) { \ case 1: \ - _prev_ =3D (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *)_p_, (uintp= tr_t)_o_, (uintptr_t)_n_); \ + _prev_ =3D (__typeof__(*(ptr)))cmpxchg_emu_u8((volatile u8 *__force)_p_,= (uintptr_t)_o_, (uintptr_t)_n_); \ break; \ case 4: \ _prev_ =3D __cmpxchg(_p_, _o_, _n_); \ --=20 2.43.0