Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp34089imm; Mon, 2 Jul 2018 07:14:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLfDQy7c0qJzij+UT6gYNXIBzra8FamLGCEititz+sEalmuWUvKk/R7TfJ2d4Nr18CV0EwB X-Received: by 2002:a17:902:2927:: with SMTP id g36-v6mr25721286plb.303.1530540841059; Mon, 02 Jul 2018 07:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530540841; cv=none; d=google.com; s=arc-20160816; b=UfqmHNNtq9fhgDOJuT1n+Ay022fOIW9UDlnqgoO1Q0/1EDAypmR0l5EA4yIDD1ljUO hr6/0SZmd1022KQyDZcQKTDXfS2xYIZiAQftxC3zSeQKF1cEhzsJe27LGc+Ox2Vs102I 6yTcoIMCSlGp3HP++ue8M9wDO/ET3mqDovq2dq3dnLCGC+6ND83TAErT564fdvKxK0gh yqZdzu3Dn9KAMux15Me1ddKjyO282WXSEsJo9zb0qVXPIrYm+BNwm7WbOxY+z6HVcqYn Im0sx2VmTbs8Oz563Df9wLovuK6X0zbFhAWcjAAmkpFsTDv+/FXOVCxQs5+S/gHO1kpR x5vA== 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:arc-authentication-results; bh=vk/ELcr5cQuSdCtaFU+wRurAKEyLuOLIHvqGLy5zqu0=; b=XG5IjB/oShUrt5Q2WBrYxWyzXDshe2Y/IvQrncKdclmeacARHosf9SGPbKv+YMpXVZ V/mJ+UFOFh2rJ1EdvK5l2Yf67zei2+Tu4fZK40lZyg+oPQcT+00wX0Sv0nfVaPtU3X/L /IBCNQupS6xhD7jWdhTxBt3WpqgpUxqNNgU3PJET90Hu0aLjnwZzhCiVxNo5e4p2WzGy zp8Yb0ru2It9sdKOpDPh/zO0GxWA8o+xspcSAgMNDpdqL5q2Hv2JfklG8S2SdFiu1HMY GKRksBhKwUXZkb23GktAjfC4iQUs08EcRD2sWoI9ZsGWsZ+VnF+9LyBNXrOkAw0b8HGI mCWg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k62-v6si14449946pgd.501.2018.07.02.07.13.10; Mon, 02 Jul 2018 07:14:01 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbeGBOMP (ORCPT + 99 others); Mon, 2 Jul 2018 10:12:15 -0400 Received: from mga04.intel.com ([192.55.52.120]:8235 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbeGBOMO (ORCPT ); Mon, 2 Jul 2018 10:12:14 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2018 07:12:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,299,1526367600"; d="scan'208";a="53476955" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by orsmga007.jf.intel.com with ESMTP; 02 Jul 2018 07:12:13 -0700 Date: Mon, 2 Jul 2018 07:11:28 -0700 From: Fenghua Yu To: Peter Zijlstra Cc: Fenghua Yu , Thomas Gleixner , Dave Hansen , Ingo Molnar , H Peter Anvin , Ashok Raj , Alan Cox , Rafael Wysocki , Tony Luck , Ravi V Shankar , linux-kernel , x86 Subject: Re: [PATCH v2 2/4] x86/split_lock: Align x86_capability to unsigned long to avoid split locked access Message-ID: <20180702141128.GA91188@romley-ivt3.sc.intel.com> References: <1530282807-66555-1-git-send-email-fenghua.yu@intel.com> <1530282807-66555-3-git-send-email-fenghua.yu@intel.com> <20180629190346.GO18979@romley-ivt3.sc.intel.com> <20180629203844.GA68178@romley-ivt3.sc.intel.com> <20180702121859.GL2494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180702121859.GL2494@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 02, 2018 at 02:18:59PM +0200, Peter Zijlstra wrote: > On Fri, Jun 29, 2018 at 01:38:44PM -0700, Fenghua Yu wrote: > > include/linux/efi.h because set_bit() sets bits in efi.flags: > > - unsigned long flags; > > + unsigned long flags __aligned(unsigned long); > > } efi; > > Help me out here; how is the above change not a complete no-op? You are right. Thomas pointed out 'flags' is already naturally aligned to unsigned long because its type is unsigned long. So the __aligned() is no-op. Thanks. -Fenghua