Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3637534imm; Tue, 29 May 2018 10:38:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqZmAmoIVDtQ4Xm76epMf9EO9ewyWmE4seONjYjySqakahvNpZPj8sRNteXV6Pwi59Pz5ld X-Received: by 2002:a17:902:aa04:: with SMTP id be4-v6mr18459945plb.20.1527615533610; Tue, 29 May 2018 10:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527615533; cv=none; d=google.com; s=arc-20160816; b=zufk7oJ9HHxOlw6+XBFpbK4pZ+jXd0AXVlHd8n9EzmQs3spOLM0csu1fbSQaa4EHyT kPpvYDfM5ukKYOHqNhoUYbHomhF9g/CfuHZUAD8/ZnTsOVbQBseGBU1lk788JWj/ygGd eZcf9k6Fl57vXtTYvwuELhfxAgJJf28NJfVTmvj/WnwyjxcgRzaiyeC3SORIsv0FaCSh Ach0bvwI/4CiNJw9NkMTes0tpkzxusJ1Vul55QnyJSWmU1FU+xngfqYZdyqJ+yXrnwm8 eaBtjt39lValTI6pnGXqC7j93rjmnmIeMGuR6HlRWkmzIhaRBHUaE+4/gygE5j/5vbuN zgHw== 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=6yXdyu4QV+UjBkzSqabsz1zRIVdKzR+UucyvhI8VUHE=; b=dQR/J5YTwBD9lT4+8chEudfiqPsMGIzu1S9sFTlSzFOv9ekOr7H2IKpE8u2EWcuBbX 2T6j1nMT/TbZL4V0DZJ/aAMesh2liHSUGdXQ2XQaYR2JqoH8j7OQZ1WmC6blOrhk+0nP JrfA0Nzo2xesVIWusYhiugxoTZ/BP2zkDABdXZLHWEIJohxXCwMfGswcwULIwfJuvU53 XgsVfsFRBGLuXEFwgMphDwG6RIY0RL4nAR5wtTn6fBrsf0wIrjdtf0xF0w3XDEvf2iIv I1DJzbTyCw36laKdy9FDg9NAofI5QjTIW1GiqFzkFnY3QXVd0N3fUPWVB0kEvYb6HREe P1xQ== 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 u19-v6si20459869pgv.79.2018.05.29.10.38.39; Tue, 29 May 2018 10:38:53 -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 S965494AbeE2RiE (ORCPT + 99 others); Tue, 29 May 2018 13:38:04 -0400 Received: from mga09.intel.com ([134.134.136.24]:48208 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965284AbeE2RiD (ORCPT ); Tue, 29 May 2018 13:38:03 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2018 10:38:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,457,1520924400"; d="scan'208";a="60080766" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by orsmga001.jf.intel.com with ESMTP; 29 May 2018 10:38:02 -0700 Date: Tue, 29 May 2018 10:38:08 -0700 From: Fenghua Yu 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: <20180529173808.GB212416@romley-ivt3.sc.intel.com> 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.23 (2014-03-12) 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: > On 05/27/2018 08:45 AM, Fenghua Yu wrote: > > A split lock is any atomic operation whose operand crosses two cache > > lines. Since the operand spans two cache lines and the operation must > > be atomic, the system locks the bus while the CPU accesses the two cache > > lines. > > Could you give us a bit of an idea why this is RFC? What needs review? > What needs commenting-on? What is left before you think this can be > merged? Where would you like Thomas, Ingo, and other reviewers to focus > their attention? > > One thing we from Intel can be horrible about is launching in to the > details of the hardware implementation instead of focusing on the > software implications. For instance, you launch into the details of bus > locks without mentioning key things like: > > 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. There is a significant interaction > between this feature and firmware because firmware may or may not be > prepared for this feature to be enabled. Hi, Thomas, Ingo, and other reviewers, Currently I only got feedback from Intel people (Dave, Alan, Tony, Ashok, etc). So far I haven't seen any feedback from you. Does the patch set handle the feature of #AC for split lock right e.g. in areas like enumeration, interaciton with firmware, etc? Does it handle usage case right e.g. the configuration, debugfs interface,etc? Need any coding improvement? Thank you very much! -Fenghua