Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1059586imm; Fri, 29 Jun 2018 10:39:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsm2SG7cT23+WLW4I7s1YyKKLS20CSumkhhrGy/3Dzm3fG8o8ZU0azQJgKv9AM1XwiGdDa X-Received: by 2002:a63:b047:: with SMTP id z7-v6mr13112833pgo.335.1530293986975; Fri, 29 Jun 2018 10:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530293986; cv=none; d=google.com; s=arc-20160816; b=o4sf/Imv5FYwc0deyebxCZvqy1UnYrpBNOke1in19Qduyzi9YfbFcfGrFZJIUt0mC4 1oJhYb3tjtpgESZWBVuF+ydYiyyTldZjaGmegDrY1dwt4Ro/Vv0XCdnfyl8Pa81slWKX 27Ndgf/4kF04cnETQQ4+OWCicJ+e4d/JjdZtq/sRHAFRO6/APJIsOSYkRouOSdysFTGA arL2bmCxRn/689VjVhZOcU3LB498fjYACNzsj1pEmBVtt8TL6+ryW4AEv7ew5qrM2p3t zBRloEKI4RF1JCLmmv4uSlwo5DAF5QV7g2xANrGuZgodoLCQyQ6cA8UbbgZtqyKcGAGY SWww== 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=jQibrTmPAcP/304AQG44zlgzUZt3ogtMY0704Ts32iw=; b=k+sPv10TS2UuWGJx//4Cqr/Ss3F2Se/SzD+N3hacKZHCL59FttjRsrmTl1VopzCFxc 7Hsx5RUz3cg2emkFB1dtjwnhy3WZIALILJWL2fRTAUrT1QBTCcBE+jaybG8nBWz+Xhou RgSOZERazaciuswDIFGhVzWy5fvTDOILrZM8igDNof545xJkyiuSJBvpl7xapcVRJb6i dzRn53MvwJirPZG17BsgtZV8cDpbuK77YTAQHyk7+VS8ZAMNvb+o6qwsGQyozz7acsKJ sSjkqLtJ1Cfmjkuw4QzyYRqMRPAuJxP+6S3JelqDjzFXt3etsaJgsmhqmW4mr3c8hhXQ 3oGw== 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 a3-v6si8559645pgd.288.2018.06.29.10.39.32; Fri, 29 Jun 2018 10:39:46 -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 S937182AbeF2RRa (ORCPT + 99 others); Fri, 29 Jun 2018 13:17:30 -0400 Received: from mga02.intel.com ([134.134.136.20]:51645 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936159AbeF2RR3 (ORCPT ); Fri, 29 Jun 2018 13:17:29 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2018 10:17:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,286,1526367600"; d="scan'208";a="68406513" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga001.fm.intel.com with ESMTP; 29 Jun 2018 10:17:22 -0700 Date: Fri, 29 Jun 2018 10:16:42 -0700 From: Fenghua Yu To: "Luck, Tony" Cc: "Hansen, Dave" , "Yu, Fenghua" , Thomas Gleixner , Ingo Molnar , H Peter Anvin , "Raj, Ashok" , Alan Cox , Peter Zijlstra , "Wysocki, Rafael J" , "Shankar, Ravi V" , linux-kernel , x86 Subject: Re: [PATCH v2 3/4] x86/split_lock: Handle #AC exception for split lock Message-ID: <20180629171641.GM18979@romley-ivt3.sc.intel.com> References: <1530282807-66555-1-git-send-email-fenghua.yu@intel.com> <1530282807-66555-4-git-send-email-fenghua.yu@intel.com> <3908561D78D1C84285E8C5FCA982C28F7D348C9A@ORSMSX110.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F7D348C9A@ORSMSX110.amr.corp.intel.com> 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 Fri, Jun 29, 2018 at 09:33:54AM -0700, Luck, Tony wrote: > >> + WARN_ONCE(1, "A split lock issue is detected. Please FIX it\n"); > > > > But, warning here is also not super useful. Shouldn't we be dumping out > > the info in 'regs' instead of the current context? We don't care about > > the state in the #AC handler, we care about 'regs'. But WARN dump not only the state in the #AC handler, but also dump the regs in the current context. And WARN dumps stack. > > Maybe: > > WARN_ONCE(1, "split lock detected at %pF\n", regs[EIP]); Should we dump redundant regs info while WARN shows them all already? Thanks. -Fenghua