Received: by 10.223.176.46 with SMTP id f43csp437681wra; Fri, 26 Jan 2018 01:07:00 -0800 (PST) X-Google-Smtp-Source: AH8x225DX6muiy/3igMDNQbZCLT4pm60XRHX5TrM+mpkuE+e+JV6JUs1FEZ6UnlkVUIYGPqGgwLS X-Received: by 10.99.171.12 with SMTP id p12mr15366406pgf.304.1516957620344; Fri, 26 Jan 2018 01:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516957620; cv=none; d=google.com; s=arc-20160816; b=TDzWsVD4xQceNKBG/hRQV5sRQc4O3SeDPJMtx+4E+bgj0uIe875PwOht1rDmt9RQhF 6M1CPi2ebSFZI+h1uxP1m9KkCVBlwQrt0WuMvftd21tv7ZnSvtdE2uh3ZOO++U3Ir1yT Bkzpx1A8KN+Z7F3pIYfTUot/IhZMBa+0CYcNohO8VYQRdln5JuMfZ0k5P5Mtd+TMBMkW tta3iT96GkjM+e8UnXVavc9at+YaDJjszuFa/rxWqYVRfHPzV5s4k/Xihs51DOn9PB6X zCF7I4yo7WGCzq2eukBwnWitJYYNCF5xtIOQcN8VgGxi9s0LkMEIZKHx84fPZdJ7DWP3 lXlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=cgC+XK37IEEs15JiJy2TSHzeqrWFoCS0D21xJ3zsbqs=; b=NFb0QtiN5qstZBWvnIS/sCyNeTxB94QZkuRegm5xNO4zFC5KhtzQgG+PPAN+fhJEcQ fZVbzHWFfQgpC68MUlpFEJk3F/KfJEPfAh9FFqVETF3CA1OFDGRUq5LUpi35xKY47StP TNiRh1Y3H5XKR79NMva8aH9zgD63bD/4Ghw2u79rOpBGaVlFAN91P3sJFk3wZ9SVWbJy V+uo5hFcTS+5I47Q9NC4luY5EQFV6mMiSrJ8vXHiBT5imL9b1wD9e29oPwQhR4jpReVz Ufh8EjGyzyZ+agqWgAW/dHnLw/VXOhCtVH35I1eg6NsKpKeayYECaqrBfSCNeJFab4yg fQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=nADyGJdj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13si2733624pgf.626.2018.01.26.01.06.46; Fri, 26 Jan 2018 01:07:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=nADyGJdj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752706AbeAZJGL (ORCPT + 99 others); Fri, 26 Jan 2018 04:06:11 -0500 Received: from mail-dm3nam03on0069.outbound.protection.outlook.com ([104.47.41.69]:63419 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752675AbeAZJF6 (ORCPT ); Fri, 26 Jan 2018 04:05:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cgC+XK37IEEs15JiJy2TSHzeqrWFoCS0D21xJ3zsbqs=; b=nADyGJdjjGdSdlHgJ314PKAJ148O+uWQqVVNwFCjzUDvLWI1rthFADQvY+Fn1K1VkTsdHGGOna86t9sLMDnUljbNvPcuH9JYuqsLwXeo/43onfEa2pCxLrkHHC50TmHJDRH0/kxlaRVImSaAaUJERgT7ES+PPa136U7xSyB9qMA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (103.78.21.112) by DM5PR07MB2906.namprd07.prod.outlook.com (10.168.102.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Fri, 26 Jan 2018 09:05:55 +0000 Date: Fri, 26 Jan 2018 12:05:42 +0300 From: Yury Norov To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Al Viro , Andrew Morton , Andrew Pinski , Arnd Bergmann , Catalin Marinas , "David S . Miller" , Geethasowjanya Akula , Greg Kroah-Hartman , Ingo Molnar , Kees Cook , Laura Abbott , Nicholas Piggin , Sunil Goutham Subject: Re: [PATCH RFC 0/3] API for 128-bit IO access Message-ID: <20180126090542.bsza7hqqinqwllcr@yury-thinkpad> References: <20180124090519.6680-1-ynorov@caviumnetworks.com> <20180124102212.GC20586@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180124102212.GC20586@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [103.78.21.112] X-ClientProxiedBy: DB6PR07CA0018.eurprd07.prod.outlook.com (10.175.239.28) To DM5PR07MB2906.namprd07.prod.outlook.com (10.168.102.148) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfaa411b-a70e-4530-b4f8-08d5649c024f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:DM5PR07MB2906; X-Microsoft-Exchange-Diagnost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3mhdZ992Y+jkP9so7TE6iLayZkvgVHjJnMeScsbPA9kPak9Q7TadgiNoc5ijZx3iFieTn/7iPk5v3i5lbx1Z7d0UKktJUn8RG82dOoymz2Qjat6i4HoYgmkC4K5eF41kQF9sbhp5Yi8Hzpqxa1IJj5ZoX+t3YC2/VoqkcvhQXHLVt3ZNO4XvKlzcJEqf/tGfJB57sQpAd2WoZYtNPRMh58vrPaie3UGPbUfQRSxjfMXVGzhJltquKCKRzlyKVkp/O8HGGBIL9hPrwGh1EUel6ozQoM+HIumNrpP+GcbW3ExSPgdQ2E5sPoN7SmfJbwUV7yAU9FR4NAAdAbSF7sHedWRL9RVpGethrjE3LA1QJfoRQDO3m3Bw+JXOBucg1/8IO1nXt+Im4DeCVq54gAygBSGgXVzV3jLNsF51FN3w+UxdTMF9Xo/pUfVaW778DLOaOpgaoHMVV2GRk1p2Bbk=;4:dpvzTGqInV5485I7MlQmx9+6V7A3+6EMNnHLJHayeaWX9yccDt7LZhr2v4tfAL/pwUTXcA5IgI9BLiP/HTt7juCph0VZC4CPkIVknbAglddUmWVkBsd7EGayQRZ3AAE1TJ1r7xI97CvMJQTiIYXo0qxeR6T9zT+CtX3IsVQK/c3DDrIonXAiv5D7n41LoeHHBtq4TxB2PB6p9maekSQhDqPBQ2ygBs8andbddk/7+vSvqxfNQmr8Bg92fbMK0OohSXm6W/i/vkqKnSSwdFuvWg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3231023)(2400081)(944501161)(93006095)(10201501046)(3002001)(6041288)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR07MB2906;BCL:0;PCL:0;RULEID:;SRVR:DM5PR07MB2906; X-Forefront-PRVS: 05641FD966 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(7916004)(396003)(39860400002)(376002)(39380400002)(366004)(346002)(199004)(189003)(51444003)(386003)(6246003)(7736002)(97736004)(76506005)(59450400001)(105586002)(229853002)(8676002)(6496006)(6486002)(68736007)(6116002)(3846002)(478600001)(8936002)(107886003)(52116002)(25786009)(16526019)(4326008)(9686003)(47776003)(23726003)(1076002)(81156014)(72206003)(81166006)(106356001)(54906003)(7416002)(83506002)(316002)(26005)(186003)(39060400002)(76176011)(33896004)(305945005)(58126008)(2906002)(33716001)(50466002)(16586007)(2950100002)(5660300001)(42882006)(6666003)(6916009)(53936002)(66066001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2906;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR07MB2906;23:eyKf8GIn9lQsuwyTONcAEg7BQCKsw0k1Czo67NyYJ?= =?us-ascii?Q?9YG10qX8dVTFf44rAVsJ6ztSy6YnUsIpzUrFWLJmKxg/iq0R16Ybk/Y8daWP?= =?us-ascii?Q?F9TOe7R8kPDwX1MktcYamjOn25NIfApEbsN3ZOVb7BKZvUw0IRf448iTabyf?= =?us-ascii?Q?WHPFzOXcW62kSZbEpSQiYUUSZgOW4X2WuEMQCaCfoETRJWhQ5VaeBEHokzVn?= =?us-ascii?Q?1XdoZeNIGJRuEi1r1ijNyYKDqZ6YOlZCwAcD07QByOMaMlm4D1O55kCnR9h4?= =?us-ascii?Q?WYcyEc670ayfxAZXmjttD4GTRPvCpXfXWCpssARPgqn44nTlrlhZAfTUPO3t?= =?us-ascii?Q?W8qJX1AaiS11ObMhSt3zKtbvxXldXeq4TTtUTVA7t7fC35JBS/GQwhedkLzC?= =?us-ascii?Q?MMgbFFafoAIX8GH5qiC4quLEhWp8JMjXWDRs3utE0BPo0JJYlAk3GD/jzqzp?= =?us-ascii?Q?+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SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 09:05:55.0497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bfaa411b-a70e-4530-b4f8-08d5649c024f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2906 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 10:22:13AM +0000, Will Deacon wrote: > On Wed, Jan 24, 2018 at 12:05:16PM +0300, Yury Norov wrote: > > This series adds API for 128-bit memory IO access and enables it for ARM64. > > The original motivation for 128-bit API came from new Cavium network device > > driver. The hardware requires 128-bit access to make things work. See > > description in patch 3 for details. > > > > Also, starting from ARMv8.4, stp and ldp instructions become atomic, and > > API for 128-bit access would be helpful in core arm64 code. > > Only for normal, cacheable memory, so they're not suitable for IO accesses > as you're proposing here. Hi Will, Thanks for clarification. Could you elaborate, do you find 128-bit read/write API useless, or you just correct my comment? I think that ordered uniform 128-bit access API would be helpful, even if not atomic. Yury.