Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp19789imm; Thu, 21 Jun 2018 13:08:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJsN987yXiYe1F/kOKfxGaGm7HO7JCId0aPLPAYf+QGFvmJfOz/OrQ30TNul1tQHWOO8cXq X-Received: by 2002:a62:de03:: with SMTP id h3-v6mr28953830pfg.46.1529611691231; Thu, 21 Jun 2018 13:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529611691; cv=none; d=google.com; s=arc-20160816; b=Lw3vRNmZUQeaoyuDttwKJb/TEd/unDJmLonu7UofwRPgR9c58vQnbJifZVhTXXV9QI e3gKo3ak0BIM88+OdJFvmTLJbi6LynGJAr/yR5HM0OF7K/1VGetRd/UgaGEcxN3WYiqB uUd4+jRtbZEbuM/ly+nVqBJiAuAVXxLUuEAmec9PGVu6MJ2NHGYkzPQtn79IVo0y/Hac 5LSy9Gz4sv0bZyHmSm1if+xi3DyT38BDP5HLeQoMSWcJW2PvXZr9LqHYx9s6MCYXlGR3 JT7P0PP/uM7XQQUucdyemg0KZMRotnT3gfDz9+ZxZVlMNPqHbYbrcGYXwlM72bKWo4qn q87w== 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:arc-authentication-results; bh=lXg9TXZPPDt5ZOaHmKgjD55UOPu3lRFzxeUKise8as8=; b=K8j2jJMxwn+NIE3d3vKDieQAa67BMesyv2q5t4/IEbYZbUxRaw/HgQylZ5lIGUESqS Tc9DHwwD9P5lEi+kQPHUneKAzNUr5ofeHAJyCF8N8umevNBvbETzyswpdJPYs8taUFQj MX6jWhgqfhZgmslvK6mM5cbn/kxKSR8/ZxI557eHsUSXp1+RDTWqOK/K7nRfHz5XGx50 egOtHH3U06BYGNXTRRlYtnf8b+9XcWZHXF1tVFKi/C5KfJngL1Lnz9Z/rHtHaq7FpcPB 99rRRbD6DodNwvHNs+c31pKitbsMtQlUzZHUpVf5FQmYCG9F+QAHq8Bh2k+5tZdvl4e7 nrrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FGVvafUt; 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 18-v6si5700582pfr.242.2018.06.21.13.07.53; Thu, 21 Jun 2018 13:08:11 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FGVvafUt; 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 S1754178AbeFUUHA (ORCPT + 99 others); Thu, 21 Jun 2018 16:07:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59218 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753906AbeFUUG7 (ORCPT ); Thu, 21 Jun 2018 16:06:59 -0400 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=lXg9TXZPPDt5ZOaHmKgjD55UOPu3lRFzxeUKise8as8=; b=FGVvafUtkp0esef/cyUZOXETz erRTN4Xbqb18+Nb0P8eHwL9GzwMzU0YFXSLpII5Kyl8loW23eVkYudqfOCXfBTwGj/wxzk0Lhi3Sf kB/NOGYBKzzuKPO3ih7moD76iNwHkuYVE66Vp7u6NsMGF0Y4ZsmAV6cgJ6ijYccWp9x3aIZOwc6tA xlRVkb7l4f9Vvn9lS/K4TMeCnXAr9+hjRzrrZTJK/EKm9RJKLxFycWoXF+e4kGzdU7lWHphFti66M qoBzQM6VcMTSjL07bSl1WdjkwRgAsAJ58g47SOPeEjOaGNxrOKtJhj/yPivBmmVlqWH7Re9pUT9lx /+2B4WAYA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW5r7-0004U4-8O; Thu, 21 Jun 2018 20:06:57 +0000 Received: by worktop (Postfix, from userid 1000) id A87656E093E; Thu, 21 Jun 2018 22:06:54 +0200 (CEST) Date: Thu, 21 Jun 2018 22:06:54 +0200 From: Peter Zijlstra To: Dave Hansen Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Ashok Raj , Rafael Wysocki , Tony Luck , Alan Cox , Ravi V Shankar , Arjan van de Ven , linux-kernel , x86 Subject: Re: [RFC PATCH 00/16] x86/split_lock: Enable #AC exception for split locked accesses Message-ID: <20180621200654.GE13636@worktop.programming.kicks-ass.net> References: <1527435965-202085-1-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 09:40:09AM -0700, Dave Hansen wrote: > Split-lock-detection is a new hardware feature that generates > alignment-check (#AC) faults to help detect when badly-aligned atomic > instructions might impact whole-system performance. These patches are > primarily targeted at application-level issues, but we can also detect > the same issues in the kernel. Which is nice, Thomas and me spend quite a while searching for a perf event that could tell us about unaligned LOCK insns a few months back and could not find anything useful. > There is a significant interaction > between this feature and firmware because firmware may or may not be > prepared for this feature to be enabled. And allowing firmware to muddle through, instead of drawing a hard line in the sand means we'll be stuck with crap firmware for at least another decade :/ Just say no.