Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756560AbbLBKgJ (ORCPT ); Wed, 2 Dec 2015 05:36:09 -0500 Received: from mail-by2on0076.outbound.protection.outlook.com ([207.46.100.76]:24608 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756227AbbLBKgE (ORCPT ); Wed, 2 Dec 2015 05:36:04 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Wed, 2 Dec 2015 13:35:22 +0300 From: Yury Norov To: Arnd Bergmann CC: , , , , , , , , , , , , , , , , Subject: Re: [PATCH v6 14/19] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Message-ID: <20151202103522.GB21461@yury-N73SV> References: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> <12844690.Yr8y3jA010@wuerfel> <20151201233503.GA23156@yury-N73SV> <1712431.VUth4NvudT@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1712431.VUth4NvudT@wuerfel> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: DB5PR06CA0031.eurprd06.prod.outlook.com (25.162.165.41) To BLUPR07MB609.namprd07.prod.outlook.com (10.141.207.12) X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB609;2:xVRkaS2wOWP7zSRXpBRK/8ilfMv7gMNSXxx/Py47eDzFum30yBCDbXPbzFY9S0XdbbSmtE8r57LR8D20f6k0gmUzJFiW9frDtV8muaKHEzuZ+XcyIhONW3qF65Ekp4TiC/ZgFJYyeOXZG5xS6aJnog==;3:11LUBAkYXG0O5djcHApcptRlecCEk5buuVHe5dr/FhrvpxzhwUxk0r4FUrhLl954ieUSXyuzuAGBPdD39fXMv5F6njll3jpomgGprxWdwaejHQ7kLKNfJs9r2dDfyJDN;25:QeMtgnniMKlr0sLFSgyj3J7zYf5pRG61wgKIkU86j/uz1zAs8uKZX9rbl4mZ3BmdkxkYFmuw/QGhA69+ob1Ky5knX04aNBvgHWWtx8d9+wgmQO0z3Fj9YtiJDYYnKT0+QlR5j/oqtCEPQhTPdEuguDI2aKEae6LT+f5J/X9pqDDOOjwsBLoI+GY0IdpcPfrOIyg60Nd1wBr5g+yvRFdO5bWUNM6h+z1yoce+E6Q8X5RXdQcNiP28/Gc7kl96EiZz X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB609; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB609;20:Jj5KbtyjkCPXakUaEpUOmivururZoUiTudLLJfZqhaSmD+0ptZQYzOyrjFOiJS6b8Jtwh0Pvjta98FnCWF0ltIESKv8//5YOLDoBiJy5HvVVxFoTBRrpeULBFClm9SfOgem4YOBsJ16Fah3tSsMs6GtHc4d7ywyRa9zWzYRy3NZYnuduBJbIIYTxETmDPjxkARy9xHxl20E0vGIkJEfJLLl3VPB+xxjjD/2lU7U215I8S1qMDdAs9+onOd42sZAoBylXIDum4zBlWssZUxjO8oDiYNgOW1zJhZS8VXlDD5HrpNqD0Mv3f5j6/8okIM9bTOIegDZoIyYuKoW/Bx2SQsFL0z50pHCU5p5LWWMHLhS4kO7ogfezQ/jH5VIi2wMazx+2E9znhOPDbBhRmeNoWA23SyRRNgmWM/ZU59unJCOgo/2gAWv0FzvjFhJR2UMHidexE87qXxKxB1o1lhDYiYD/zDBMyCAwkUl2StEeQHTZWNzdMp2Ou75LygormifLusEvAGdwKhLFMrANSEXWbVKMSyEOZ0YfQ/FB79qH3Mgbg26awA1tT5WSg6Tk34o4LcGutRhQ5tWOmXfzExnY2izIm/22MqOr8suPqKvxKsY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:BLUPR07MB609;BCL:0;PCL:0;RULEID:;SRVR:BLUPR07MB609; X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB609;4:/iDpHF9aAmtbU6KZHQsaRoDtrz+waJdlOjCUKIhGXdY83ClTAqV1M0eOWtvdedxMvf7vjE7hM+dQPMMimFu3KKz1E9gRZWitFPInNoHGTO0mjxKFWuphAE+cdPfkolot8HRBctwUJmnlQTqFfJlEIkcNlQk0GPZ1q5tGNBReFfjbPAz9YhgWUPaK51BTUkBrGMCfYMgSUy/bmanr00BZpJfU0U1mTEJLFFrobW8tA3Javv9XG/6e2uqgDgaeYa8C7aeGnL2WoRfknCnbDEUdCuxlfrLDxU5UbLEOSFs6nyG2Ofk+BTNoc0PthZJPdSM00Gpergk67KHmoOXTPYcGpFrI8N2irgi9RhNgTMgASnP8T63Xpahro6SIneaTSNv45H3rR2peGk0Pw4E9Qm7o2jvXsRbyIcopRZ0hHVuwcak= X-Forefront-PRVS: 077884B8B5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(24454002)(189002)(199003)(19580395003)(3846002)(19580405001)(6116002)(5008740100001)(586003)(33716001)(23726003)(87976001)(1076002)(83506001)(47776003)(5004730100002)(50466002)(1096002)(76506005)(66066001)(122386002)(5001960100002)(50986999)(54356999)(97756001)(4001350100001)(110136002)(93886004)(46406003)(42186005)(40100003)(189998001)(101416001)(81156007)(105586002)(2950100001)(33656002)(77096005)(106356001)(97736004)(76176999)(92566002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR07MB609;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR07MB609;23:hgFj6YbGNz2YWKyikv63bloJRXP+3YAuj8UheRfbPd?= =?us-ascii?Q?j4dMLsZN6hhVTBqJFQwqre1D8SpRtqDDLFgv2SVo0lZx10HaRxxKj6MK5Q5F?= =?us-ascii?Q?Xq3h2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n83/izyhUQiQ/NyCl2d0m8ZII?= =?us-ascii?Q?/TezGu7kYcr59rCANh3ZpMkj5kEM1nU5ceKELYY7InlFbY408xhBCRLFeqfN?= =?us-ascii?Q?6nSwslCobPAW4td7XtD3TNdRpg+k9ajYjbAcrwPV6vrcEKhEm6lLfv42TgkZ?= =?us-ascii?Q?GS9N+UjS2KoXCnGURYJg8KJxON7PMG?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR07MB609;5:FVRf3iKH0sLPT3ivxQOu4QhDRKN78k4xJWjSPIr+dek8CXsZmuCA7+tXCMWyipea9prPJlPgPAz7lFRYzJZ2E75uiJKQqw91Ec5C4Ae4/EIUEIVVExUhLFHwuuzLS71fl38TAqqWxeNboBRH6leoHg==;24:lw66ViVofR/1AeFkBoVRLJrJ+3VePlPXuZlFoIQocmFm8NQIzTARRnXexr+thbFin3AgaBnSmG7eZ9aBkhyenbimx5mHlr1REIE1l1Oa+es= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2015 10:36:00.8743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB609 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1323 Lines: 37 On Wed, Dec 02, 2015 at 09:37:05AM +0100, Arnd Bergmann wrote: > The 4*PAGE_SIZE on ARM is an architecture specific oddity, I believe > to work around aliasing caches on ARMv6. As no other architecture does > this, we're probably better off not duplicating it for aarch64-ilp32 > and just use sys_shmat as your v6 patch does. > Arnd If you feel ARMv6 fix for caches will come soon, just ignore it. Otherwise, please pull it because compat_sys_shmat is broken now for 64K pages. Signed-off-by: Yury Norov --- arch/arm64/include/asm/shmparam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/shmparam.h b/arch/arm64/include/asm/shmparam.h index 4df608a..e368a55 100644 --- a/arch/arm64/include/asm/shmparam.h +++ b/arch/arm64/include/asm/shmparam.h @@ -21,7 +21,7 @@ * alignment value. Since we don't have aliasing D-caches, the rest of * the time we can safely use PAGE_SIZE. */ -#define COMPAT_SHMLBA 0x4000 +#define COMPAT_SHMLBA (4 * PAGE_SIZE) #include -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/