Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8457447ybi; Thu, 6 Jun 2019 12:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLz1MDHG+/+x+wpP5+xlMUfds0bT0SLIF1OsF+zm34hzjBaEhcrWb4D5xBq6YdFwt30GQG X-Received: by 2002:a62:6454:: with SMTP id y81mr16983728pfb.13.1559849964749; Thu, 06 Jun 2019 12:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559849964; cv=none; d=google.com; s=arc-20160816; b=lbjr9HSo310EnjzvAnjpJroDFkLZfceJSX0cWTFeY15faZ0BxiJ4OSOwnu96WjmamJ PiBH8DXUxj7jiog7KI01321CY8FUQXuAKzN+NnT6sHrTDHFCc0sS1TJkdkF2vIG/MlQM GbBJb4/8by8rck/yqwul8T8vRmcNbNiq+MTkWxq4WrbcTLgskzOxjWTpQkp87npTt3Og /U9HdAtRCQmWxmWl73wxBD9gSTaA7ai4yY8h3mmRTImabHa59brCgHDf0NVra9Zm25sf dZ7okgDQvdh2IPFqstuTIOBp1PIZ+f6vMWnfF1H87e4HvoVdZTvx/mBDRp4CJn61oP+n cXng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject; bh=Ewsh8+5pk0265/H0Pu9USfie0mdVRAAk4psuguVxgjE=; b=f/13dUaD2ncQtW5R+SnxAGU265qDD3tVsWeOFuoa5e3uiJv/Ugj6lJuHB6Aiczx1qn IAKl0KBlFqxt4EIdxUdM4AAmD9Lz73Y4vAEjk5VlF32G+uBQCS52hv3pGxJXuKlnTTer ABRtDrXA2zf5tnLv3Ys44Y8Q528MAY2HQV0aleEQnPOwnr+/nfFryhfAfENz5qVWH6R5 CgImAFus119YruNaudees0E/ridaaW2TbkO/+gsjuZXhNtAogzOhJmUcxF0JDXYNTPQ+ Gg5djC5ArTXjE5eXVKG0uB3VUjfe/bGruEhB8poOxY1rzyvhXntthQ79buuCTK/nKQtv vbiw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si2674456pgv.195.2019.06.06.12.39.07; Thu, 06 Jun 2019 12:39:24 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729403AbfFFPmU (ORCPT + 99 others); Thu, 6 Jun 2019 11:42:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55028 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729137AbfFFPmU (ORCPT ); Thu, 6 Jun 2019 11:42:20 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0BB2830C31B7; Thu, 6 Jun 2019 15:42:16 +0000 (UTC) Received: from llong.remote.csb (dhcp-17-85.bos.redhat.com [10.18.17.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B2AF5F7D8; Thu, 6 Jun 2019 15:42:10 +0000 (UTC) Subject: Re: [PATCH v2 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock From: Waiman Long To: Alex Kogan , Peter Zijlstra Cc: linux@armlinux.org.uk, mingo@redhat.com, will.deacon@arm.com, arnd@arndb.de, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Gleixner , bp@alien8.de, hpa@zytor.com, x86@kernel.org, Steven Sistare , Daniel Jordan , dave.dice@oracle.com, Rahul Yadav References: <20190329152006.110370-1-alex.kogan@oracle.com> <20190329152006.110370-4-alex.kogan@oracle.com> <60a3a2d8-d222-73aa-2df1-64c9d3fa3241@redhat.com> <20190402094320.GM11158@hirez.programming.kicks-ass.net> <6AEDE4F2-306A-4DF9-9307-9E3517C68A2B@oracle.com> <20190403160112.GK4038@hirez.programming.kicks-ass.net> <20190605204003.GC3402@hirez.programming.kicks-ass.net> <6426D627-77EE-471C-B02A-A85271B666E9@oracle.com> <409b5d52-1f7d-7f60-04c7-e791e069239f@redhat.com> Organization: Red Hat Message-ID: Date: Thu, 6 Jun 2019 11:42:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <409b5d52-1f7d-7f60-04c7-e791e069239f@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 06 Jun 2019 15:42:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/6/19 11:32 AM, Waiman Long wrote: > On 6/6/19 11:21 AM, Alex Kogan wrote: >>>> Also, the paravirt code is under arch/x86, while CNA is generic (not >>>> x86-specific). Do you still want to see CNA-related patching residing >>>> under arch/x86? >>>> >>>> We still need a config option (something like NUMA_AWARE_SPINLOCKS) to >>>> enable CNA patching under this config only, correct? >>> There is the static_call() stuff that could be generic; I posted a new >>> version of that today (x86 only for now, but IIRC there's arm64 patches >>> for that around somewhere too). >> The static_call technique appears as the more desirable long-term approach, but I think it would be prudent to keep the patches decoupled for now so we can move forward with less entanglements. >> So unless anyone objects, we will work on plugging into the existing patching for pv. >> And we will keep that code under arch/x86, but will be open for any suggestion to move it elsewhere. >> > If you mean making the CNV code depends on PARAVIRT_SPINLOCKS for now, > that is fine. The code should be under kernel/locking. You shouldn't put > it somewhere under arch/x86. I mean the core CNV code should be under kernel/locking. The paravirt specific code, however, should be close to the current paravirt code which is under arch/x86. -Longman