Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1667945imj; Thu, 14 Feb 2019 10:02:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IbyyJM7SuAKPaq2i4emlmuZNA2DWLF8z6KbfQ1p1vzLBed1nV96YE43cuFIcclWWZSKtWGw X-Received: by 2002:a62:864c:: with SMTP id x73mr5360551pfd.49.1550167342306; Thu, 14 Feb 2019 10:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550167342; cv=none; d=google.com; s=arc-20160816; b=LZXV/rMVWPdIGcVAELGTp9Wx+n2cOnF9cs0SazdHRhz01EeVrQsUr/BYzsb2FnfzT4 50uH/Bu2JVQ8r0h+mov5rjVq3iVKjBIEwpcrH1e/ztf98LIDoSeNiIZULs9pYI6ujiq1 YjjYqIzJn1XEr832dDctYvMhF8aKzuXJHwb2/9y5wxJlx8bp8u6CX7NELzEbYC7nMCdh DTdrSLhutAx3dsVN7F6yEOvsexjkOcJ34Rshzo3wErCiQYJFrssfO8XaVti4Dn3rJt4N f/DYlyg2TS8VY4q+VbJJjQTk30q0hfmnr8XPx090stlCoXqoOBf/8106BCFuihKylFPV 3OrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Cz5E1STMYTb9r24YsxFX2EIKYAjHOnBW1E39BRqOjIc=; b=UuMAJ6G2zvvh1ek22Q6Yh1ufIWAbbUOV7P2CjsH/ruKccn0EWbKyX7q/0hUBqCRKQR Nq8x+CuTrgyP0E8n7GCbgAW0FlrwCASr3CdaaOWRWBYHfOhx5URDY8OCS1Jcdz6AAROq 7+FVkx7lNHlt5qwequXrg1AKQpUPHy2C/xqQOLYHoYXyBpMbwd3HudbT8rfPhjVTW8zO B3XVnhjAncTFptO/D/XZ8xydJM9MZT/6pdhHjf40lLbNX0/lIr8C0q0YnSoQlhZekr8e ibr0goi6xwGQAMMgsvntRRwTnaykVjwghbzOmWO1uLLZkXgn69NJkzDL2bWU0I8mv/1Q goHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pzNAgZMF; 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 e96si3190126plb.123.2019.02.14.10.01.57; Thu, 14 Feb 2019 10:02:22 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pzNAgZMF; 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 S2406519AbfBNKbs (ORCPT + 99 others); Thu, 14 Feb 2019 05:31:48 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:60424 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388126AbfBNKbr (ORCPT ); Thu, 14 Feb 2019 05:31:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Cz5E1STMYTb9r24YsxFX2EIKYAjHOnBW1E39BRqOjIc=; b=pzNAgZMFQqf2rpZPA5AoHx2wY I21zX13gc0L3xvMCwenDvp1FgHFvAtk/Ttv98OAd9sHz/j7MHWTmbWD1IRuoL3gm9WurbolV5cejZ H6FRzhsPlyGQcAxHRF7dhdPR6BK09cMKIvoAl7ZbpE8qdulZxIzWDjfuSrrP7SCt17JALDEwo2sx9 vWoPBotEx9kAkYwutGqIuhxdOhtCKt2EY8p0IUKOuHiwPOBPtR1cijqdsY3iCmyAUwPbpnDPjLEXd gsgQHqF38bx5/cllVgVz6gKkdPDqy64vEJdqkrdG4af5a0WnT+G9t0xZxo3R8iuDrrrhb7ym39vb9 vciRDYdmw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1guEIw-0004W5-8o; Thu, 14 Feb 2019 10:31:42 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A63A820298375; Thu, 14 Feb 2019 11:31:40 +0100 (CET) Date: Thu, 14 Feb 2019 11:31:40 +0100 From: Peter Zijlstra To: Vineet Gupta Cc: David Laight , Alexey Brodkin , "linux-snps-arc@lists.infradead.org" , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Mark Rutland Subject: Re: [PATCH] ARC: Explicitly set ARCH_SLAB_MINALIGN = 8 Message-ID: <20190214103140.GG32494@hirez.programming.kicks-ass.net> References: <20190208105519.26750-1-abrodkin@synopsys.com> <81017fe4-b31f-4942-e822-a7b70008b74d@synopsys.com> <20190213125651.GP32494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 03:23:36PM -0800, Vineet Gupta wrote: > On 2/13/19 4:56 AM, Peter Zijlstra wrote: > > > > Personally I think u64 and company should already force natural > > alignment; but alas. > > But there is an ISA/ABI angle here too. e.g. On 32-bit ARC, LDD (load double) is > allowed to take a 32-bit aligned address to load a register pair. Thus all u64 > need not be 64-bit aligned (unless attribute aligned 8 etc) hence the relaxation > in ABI (alignment of long long is 4). You could certainly argue that we end up > undoing some of it anyways by defining things like ARCH_KMALLOC_MINALIGN to 8, but > still... So what happens if the data is then split across two cachelines; will a STD vs LDD still be single-copy-atomic? I don't _think_ we rely on that for > sizeof(unsigned long), with the obvious exception of atomic64_t, but yuck... So even though it is allowed by the chip; does it really make sense to use this?