From patchwork Fri Dec 17 10:27:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 12696613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B6A5C433EF for ; Fri, 17 Dec 2021 10:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:In-Reply-To: References:Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n2CeU75w5Wsv9TwBOPyzCWcxUWurrlR5Y1hG3m4afqU=; b=10PRjfYe5UpDKj Wd6O0I4uerJD8ThWInRAa6vRsNXc9leTT15tePWeEpBcTELLg+mRzyHH7rimyl+ptu4Gx/O2UO3oS AZ7gMVRBbhA1yQEyiIgY3FVapesQnA/NYJ59qmGSnERHigs5kb3/k7vqRruHC9jqe24ux4kKVoejb lNdkfvKtzRVDcavB6KUqBRHh3N3VjlSXHQ/Pnfa8+AE+xgdBFGWy+/DUG1gOeWvAxQvtu1CQ+4zWY SDbK1Eq5RdRbVHiQXOI6ZygFA15dnEcMBtf3ym/JVE4Wjw7ykpIwk5rZ+u+61qfwzKXmwkxY2m1jU O9Z/tzkl3T5j8vYu00dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myATy-009UkX-NC; Fri, 17 Dec 2021 10:28:59 +0000 Received: from mail-mr2fra01on0618.outbound.protection.outlook.com ([2a01:111:f400:7e19::618] helo=FRA01-MR2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myASi-009UGi-62 for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 10:27:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fTa5D0z+VKJbV0fqCnhmV5uVHNl1aPBOfL9nAvmhJiC6JECosrveVSKd+OQvxNcjFixB4p7hPTKpWGrJFKhNmuqCd3FncRAOgXS1ILCB/s0zPoPILY//S4LRWcwuh5JCBvrLQu3HJH217Gr6h/rzixpENUWHcMPdd8dgErCJFZCKlaqIP6Xk2RqPTnW5a5DSQptyLQpwBa994wLZC7/Auj3ubl6oiRDInacX54EBZniPij0geLgT4ml2DsPD8yf+jZ8EEZ81ILd+9rRHW3UJ66m64iAwzR5mZFSC9x1ODpsKPQB3BJVIYUkVYIeYLIGpSM2z83tBeR7t0U3wyL0w5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BMqQpMVPJWiGmTGtq2QUJHhfhL+o8r8GMswJlhxDXUU=; b=RPFAEwgr4TGjHk+GiQ9VpWQ2sSRkILP6FM7jeAroCZM915gpJaPXkcDet3HPs9UQhYvXCl/28lVtSJHhBDzq7KsYRtumEBV0pZBKMAl/NS6IQxGNvkq2zFXbBaJrn7QLWMoPGm3unHc1MS/SbC2YoqLcY4KcqDuDpolFeioP/dUdtdB5cEqW0icij8wcE9rwMIHDgJd8KqtX3yPXU1xDXqjgykSeyKWcXTUKezDT70dg9pdgt6mURQrT3YXTMZeBDGWnKV1W6zjht2QUOKUegWCTc/HpwSqcn8TA55EkqtWVZ72B5d/6vdW8BP7DvGeC+hrkV68p2V2a9wmtO6Xogw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=csgroup.eu; dmarc=pass action=none header.from=csgroup.eu; dkim=pass header.d=csgroup.eu; arc=none Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:31::15) by MR2P264MB0194.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14; Fri, 17 Dec 2021 10:27:33 +0000 Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::f0ef:856d:b0de:e85d]) by MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::f0ef:856d:b0de:e85d%5]) with mapi id 15.20.4801.016; Fri, 17 Dec 2021 10:27:33 +0000 From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "alex@ghiti.fr" CC: Christophe Leroy , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "catalin.marinas@arm.com" , "will@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Toan Le , "linux-pci@vger.kernel.org" , =?utf-8?q?Krzyszto?= =?utf-8?q?f_Wilczy=C5=84ski?= , Bjorn Helgaas Subject: [PATCH v6 05/14] sizes.h: Add SZ_1T macro Thread-Topic: [PATCH v6 05/14] sizes.h: Add SZ_1T macro Thread-Index: AQHX8zC07qMBhzOyKkm4HzYDjm34Jg== Date: Fri, 17 Dec 2021 10:27:33 +0000 Message-ID: <94272ef87ad071d6d11e20bc5249608012714613.1639736449.git.christophe.leroy@csgroup.eu> References: In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=csgroup.eu; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec3499e0-e8bb-4fa7-77b1-08d9c147d697 x-ms-traffictypediagnostic: MR2P264MB0194:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:639; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QXqZIp/tz7ghfLES5BumSHj6rEaaKbSVCt/BWJubkEvOPRqSxjg1icGsK9qOrqO4a+dNGtgFzBRkyeLtrOr3fQvYS5zhel4DBhiztb85x8fPIjBqqNzLybIg2YYumtIdUZyU3tpZqXg3qo1fMiFM/+urJ+bhO6EOodFy2zbeU23Gh15V749Ot9/gUcc9TWRcDnJ91Ojz6zw0Ji2VKnkeZH8LvwIkg1H1XH//Mh7MfL1FTwhWgRWtZ+vR6j0bddoFrTd9/l0FH8XAq2eklyK0jMcCg7LpqR57uz00x4lx6jK2as7YluOeq3weJNyTaz8XF8r7Hsu59v400G3STWcNwNmca+VHhqlpxZMd9wjp1bgE0oyaR6Se8ZRLZjkHoq+Cgs4Hlh+4Gng4jbLpOiQRzbOLdHscOAHQuyEYUoRKnY4xwk1wcamjHNq2BEJM/j97V+xBiC60G6DQT9wb8EygXen6j5SaSkxPWF03yqY4F6dTie1z/MghNJf6c/zDn4P3d0sdtGLPLmdrTFy+m/hW7OkR6aFYpSr/fi7dswUCFxFUibNB0FsZawP4zT/RKpNozEP6s0vklQWsfKH0meswkqzIZsgfUo+me1v5gF6SSWDMb46tWJhUHZ1p0ocG+loJxkZSRZdP8j7Trthu/KX1rSRE8nr0HKhrI8vyHehhC/MBasLLSyRBixYWwzAShp30RlVj6qO/8MJSOyCDgIfDMg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(122000001)(2906002)(66476007)(66556008)(7416002)(36756003)(316002)(38100700002)(186003)(44832011)(6506007)(66946007)(91956017)(6486002)(26005)(508600001)(4326008)(76116006)(2616005)(8676002)(8936002)(66574015)(66446008)(71200400001)(83380400001)(110136005)(64756008)(38070700005)(6512007)(54906003)(5660300002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?rkxnGCS3ZJlCXYYg23IC2xSl9qPA?= =?utf-8?q?IKYQ8SwA42iG//igRnatIT9zwkdcrBnJOH9UweLtsN+ZzxR4+FSMR5h0FZoMUaLkx?= =?utf-8?q?3jmBgIlMJh9Kc8DBvNhwPcRnprnKHlbNyHXQcw4CgFkK4GEDxvP7hESbV9yeO9OV8?= =?utf-8?q?wkZVKoG/DqJjIkb/ExeNpUCDogRkfogFntcbjokCb/QXYj//8EYvQ2F0SrncR6jph?= =?utf-8?q?35+dm3Wf3sba6K/Ic2jCsOEjMZweAiBfBwUzK6AvNy+kriDQ2Onj8NvINBFgt/CzW?= =?utf-8?q?Nt2gIhCNbiEt1SfOtJrV8pTi/5Dc3bIIGdWU0F6baqldyHs9VzYLWgmSrxvJcsFPb?= =?utf-8?q?QJ3N9wUv5SD8vMiajCmqPHF9xdDjDSSxZunkXXJbb26/3wuHC9ZyyBEriTy+YYIG8?= =?utf-8?q?6wRgjApyMnyd2VCBi85iovUNOwzwa9p0imqMDFx2DplYlq5tEwNHGiNDrl0M0mJDN?= =?utf-8?q?jFzYjhjhhGizKeSq46j6Zk2x4jujAerYcco8kOR6P6p3zW/hfpgi2+b5E778WIlbt?= =?utf-8?q?TR179Zt36P+CP8LxEcxYpSVtrlYoALEGCd7VLFAGkX+qumBgpLeFiHzucMYniYPEc?= =?utf-8?q?NPisDzoWad3WsPMmSOaM7T6IeOJ+8kZ+TvUB+kT3O4AqYmPNMWS2BEF9Ttd2P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?6Cr01IoLnZt15Yynyoza8Lwi2z+u1Cy6zd+rI1ZlCZ4jKQALlfNSOJGbVozhOlN/H?= =?utf-8?q?AEcMLxUmtElm3gS+5g6cZ9oAr5vJbqeGteKUlFKrfV3nJtyZzIzYOo=3D?= Content-ID: MIME-Version: 1.0 X-OriginatorOrg: csgroup.eu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: ec3499e0-e8bb-4fa7-77b1-08d9c147d697 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2021 10:27:33.5944 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9914def7-b676-4fda-8815-5d49fb3b45c8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vQsTU+Kvc2ZuvHR/XJoPoyWNv4pI4tpUTaXIJgF8mpcT+eR8EBtXaPuqa7GkjIM5YndhsXpMKCz+o0Tp8qZuapJUn4aHhRR/mh81rdRpLSo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MR2P264MB0194 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211217_022740_289061_B2C7F4E3 X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Today drivers/pci/controller/pci-xgene.c defines SZ_1T Move it into linux/sizes.h so that it can be re-used elsewhere. Cc: Toan Le Cc: linux-pci@vger.kernel.org Signed-off-by: Christophe Leroy Reviewed-by: Krzysztof WilczyƄski Acked-by: Bjorn Helgaas --- drivers/pci/controller/pci-xgene.c | 1 - include/linux/sizes.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-xgene.c b/drivers/pci/controller/pci-xgene.c index 56d0d50338c8..716dcab5ca47 100644 --- a/drivers/pci/controller/pci-xgene.c +++ b/drivers/pci/controller/pci-xgene.c @@ -49,7 +49,6 @@ #define EN_REG 0x00000001 #define OB_LO_IO 0x00000002 #define XGENE_PCIE_DEVICEID 0xE004 -#define SZ_1T (SZ_1G*1024ULL) #define PIPE_PHY_RATE_RD(src) ((0xc000 & (u32)(src)) >> 0xe) #define XGENE_V1_PCI_EXP_CAP 0x40 diff --git a/include/linux/sizes.h b/include/linux/sizes.h index 1ac79bcee2bb..84aa448d8bb3 100644 --- a/include/linux/sizes.h +++ b/include/linux/sizes.h @@ -47,6 +47,8 @@ #define SZ_8G _AC(0x200000000, ULL) #define SZ_16G _AC(0x400000000, ULL) #define SZ_32G _AC(0x800000000, ULL) + +#define SZ_1T _AC(0x10000000000, ULL) #define SZ_64T _AC(0x400000000000, ULL) #endif /* __LINUX_SIZES_H__ */