Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp696658rdh; Wed, 14 Feb 2024 08:44:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXTj40jpIjgSrJIMKJme3lA/44iccaRou7OC2g6Fz01UyFJEFG5NXyvyeX9zZl7kjOMA7jr+6p1WaPqgndFTZEMLrsTsgCQqM9Beotenw== X-Google-Smtp-Source: AGHT+IHEMi9vr41xfR1ubE32n4ldl1CPoyPzfjy2aVeq8ygiLeqyvotNLizl76EWmR0grKTWLcLZ X-Received: by 2002:a9d:62d3:0:b0:6e2:e3b0:7659 with SMTP id z19-20020a9d62d3000000b006e2e3b07659mr3031866otk.12.1707929092253; Wed, 14 Feb 2024 08:44:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707929092; cv=pass; d=google.com; s=arc-20160816; b=IG2uPBmm0ZhonF3NuWcCycgv9aPzfO8J19suSeSWt4dLAvxa8VVnizhbZgX0i6HKRL 7uql+srPr9DctVG+uCsZ4Sqhjl0wX8VETKXcIv5znQud6LF25t7OOGD9Pic+Y4/1VeWx I3a5acHfnOpdNzAO9qVBpk1oV2vmNq/bBKTmz11myjnMdditu01jeuglh5wvmDylKeUd HdFiMTKYt00P60s07yHkVFnuYy4liBICSMXtQ6RzGFiS8VBB46QukyG6nqTxkV6Miui0 iAOsj/YK7jHiES4bq5XwMUznNm8qs33k7W9i+/WwZNqqUBca6KEZCVbj7CGeSc4qFnh2 Ctbg== 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=/qbkJMJFukEG/I4dxjINRwHsnuJeklavDUuJR50Nx4k=; fh=qymZ2Z4gXQbHKXHx0Df7DsXDXXSKm8ze+YPx8xruWQc=; b=bmEh6P2dm+qC7dFaaBkQrq2ilGHBCcDDxcQC9VW0SclFVvzcR8eGgIYxYncq+cfmmI bLzbFrjl+2GEpZyLBoP39Ur+YZLFY+05yDmcv31+MYzaQeuAvRvx6Xc2NfxhYQEktubK Due8hI1fH42mL9U4/BSkA9yILoaIOPs+puEPzEeQ8SAWmsTY/6TK/M07af2G77w9+JAh 0CX6/WqrKnqogGHvmsDhjrlLkwLeoBdVH3kcXVFPXL9eMIrO5mF+HjenNWjqK00k6eY/ XJq2FOwZGNIoY/ZWmmIjWq/Ly13vRLIcWNihcbFmd79ZABOBjjfMFoq7TKtkr9xiIoxg BWWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Fea1ZRi8; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCVRCPlE8mmFBWwU/BNmw8d380uRrn7TDUakInr5J4wKLSf9reD00W6oB5OjvOY/jBPFSSF+uGViVtYnb2CDH5mJmgqOFQH4VJ5kuIPzoQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w22-20020ac857d6000000b0042c2b67e263si6123294qta.571.2024.02.14.08.44.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:44:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Fea1ZRi8; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EDC8E1C285DD for ; Wed, 14 Feb 2024 16:44:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B8E5604B1; Wed, 14 Feb 2024 16:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Fea1ZRi8" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 034606026E; Wed, 14 Feb 2024 16:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707929053; cv=none; b=OdsU8wy43nhqyp/XHNtWwZLWAfs6kP2iHfFsX7imX3WNe3F3+8aYBYvED+/1/Dh8SWtE7MRBfKx0/XtG0CRzslSk32zLBxGIVEkyckpFIYCHxiUQH1Hizq6sqrBOwg4ldqfhKbszQhut3VjPBnWEr46ewevsxmCiVbToMfOayFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707929053; c=relaxed/simple; bh=nqsntL8OGHD2qtCfZTn1431gs4VNIpoR+ijDeZ97qlQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=r3EnVymHbU0/WZNLmB2BKqku9KOZPiqel5PYbPxTB4ljt4M0ht1hpYCFxliKnPz/wFM7/iAHMgv3ZdCyiXWOeFo/30rvo0Dul5XRKFWf7Ur9fMyInWW6I7HEJj02vtv6TxjVHfbMMNvfXDewZYWnWVjWbhw30VWHVTe+jspafHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Fea1ZRi8; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 9C450C000D; Wed, 14 Feb 2024 16:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707929043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/qbkJMJFukEG/I4dxjINRwHsnuJeklavDUuJR50Nx4k=; b=Fea1ZRi8P9BY5bF14o1N6xpuTMBz1n4pZTXlAGi3IvM0euqN2Elj3viNttVpzh5Vjj1xLp BRLYaLs3llColIVM7wAiqLa1yLezDocO3dt6sbXR9cOnOn4TlKujbgCi+Hc0ccBs6cYt7j Q4xOtPAZEyMihDM/Mu0UrcS1STLb4W/896sdTrhnCF7Pz0+6TceKIyLk1kkSW8kvx5qNKj oFTXkIo2hKoGBKE3waD35pONi12EBJQiJcKLdGro46g1ddgAy5R01W+wZK8s0eqpUxE4nQ W79oknBn59JWuNngOCw0QgMVBmVzDNpuqMnic9iEY9O2sugjEZskjBNf/yWE0g== From: Gregory CLEMENT To: Thomas Bogendoerfer Cc: Paul Burton , linux-mips@vger.kernel.org, Jiaxun Yang , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev , Tawfik Bayouk , Alexandre Belloni , =?utf-8?Q?Th=C3=A9o?= Lebrun , Thomas Petazzoni Subject: Re: [PATCH v7 01/14] MIPS: spaces: Define a couple of handy macros In-Reply-To: References: <20240205153503.574468-1-gregory.clement@bootlin.com> <20240205153503.574468-2-gregory.clement@bootlin.com> Date: Wed, 14 Feb 2024 17:44:02 +0100 Message-ID: <87sf1vj8rx.fsf@BL-laptop> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: gregory.clement@bootlin.com Thomas Bogendoerfer writes: > On Mon, Feb 05, 2024 at 04:34:47PM +0100, Gregory CLEMENT wrote: >> Define KSEGX_SIZE to represent the size of each KSEG segment. >> >> Introduce CKSEG0ADDR_OR_64BIT and CKSEG1ADDR_OR_64BIT to get an XPHYS >> address in 64bits and CKSEG[01]ADDR() in 32 bits mode. >> >> Co-developed-by: Jiaxun Yang >> Signed-off-by: Gregory CLEMENT >> --- >> arch/mips/include/asm/addrspace.h | 5 +++++ >> arch/mips/include/asm/mach-generic/spaces.h | 4 ++++ >> 2 files changed, 9 insertions(+) >> >> diff --git a/arch/mips/include/asm/addrspace.h b/arch/mips/include/asm/addrspace.h >> index 59a48c60a065c..03a5e2c8b5dc9 100644 >> --- a/arch/mips/include/asm/addrspace.h >> +++ b/arch/mips/include/asm/addrspace.h >> @@ -47,6 +47,11 @@ >> */ >> #define KSEGX(a) ((_ACAST32_(a)) & _ACAST32_(0xe0000000)) >> >> +/* >> + * Gives the size of each kernel segment >> + */ >> +#define KSEGX_SIZE 0x20000000 > > well this is the KSEG size for 32bit and defined in a common section, > so better use CSEGX_SIZE Done in the next series. Thanks, Gregory > > Thomas. > > -- > Crap can work. Given enough thrust pigs will fly, but it's not necessarily a > good idea. [ RFC1925, 2.3 ] -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com