Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1711364imm; Thu, 27 Sep 2018 01:01:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV62SgaeeEmKQrZ25BiSIB5LQKDaq8Owtc5M+z2eDMlwEICEZVrqIAQdShAJBOLQ0w9x3wdJb X-Received: by 2002:a62:225d:: with SMTP id i90-v6mr9941311pfi.246.1538035272490; Thu, 27 Sep 2018 01:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538035272; cv=none; d=google.com; s=arc-20160816; b=LNX4JmU8kK08ulhU146MfcKtuEqPqd4ENFERNUmxk5dvCvwozC4IkOy1mzgnsSHZRi kd/F5ZWOgNqeGHG+KynLPMdcnCI7gzBcQOyaG4aMhbU1duTYNlYAgh5jkLVdEj1nQq6b MQA8QTT7ugVBAXTSpTRgaBNBn5DgO4SPP/ZgnOaKJx7a6MJujUUaKLuNefJWRCMO8QaM LjdVvF1jwqqsS2jE9llBXRbvwK+ADQ8qs17EhZw9hnEkM3qXowJrBAatxN8fLcH35z0u Sj7OXdk36iPqb1pg60UBmGZreIR6rhr28Dk3cXi8a/QiheR8f1DEAgYNG/yu1+FtwBZN /DdA== 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; bh=cj7KRNh9atNQpphncGWvDaQuTW0KZ7UuVq+Its9Pn7U=; b=LuMhpQJKAEUZXe7lrIZLDJBdqYUTvlH9/aatQY3R3tCBqEa78OFnBIuAw4lX6LSUQq VIZ4JwtEgTkDrux5uHw43edUlYRhw/2X8uGpepqFQdylF3aYPXd3H4LyT/nbp+5ecwsC Ra+UjC0fF4db7kHNslF+0zQHhDK+Ud4EFWQeLEf+z+pBf4ENuwRFdP98N2K4dFQjeQit GXVvwVB6WQEvliUKNy3R9J699uUM+49Uu4SBV9+XwNXPhzmlY1izIWqXXnr7VJnAns49 CwhXya/L+U5+B5mY4nFD4VYbTdjKKzVkgJkSRvOXO7lnrDsvYe4+cE0Ak12lAb17XnJ0 GCfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WPmOmm42; 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 j12-v6si1306136plk.196.2018.09.27.01.00.56; Thu, 27 Sep 2018 01:01:12 -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=WPmOmm42; 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 S1727230AbeI0ORn (ORCPT + 99 others); Thu, 27 Sep 2018 10:17:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:32908 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbeI0ORn (ORCPT ); Thu, 27 Sep 2018 10:17:43 -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=cj7KRNh9atNQpphncGWvDaQuTW0KZ7UuVq+Its9Pn7U=; b=WPmOmm42FH75ThdZM3aatjrnF KpkdCWUHNNUkXmiF0c3bltZsmYxLXqjRqsTh7RrjHnC4kSNlrM+hYBt3m2asK/pvGYD8QxxOk1lsa Z6/LBRXrhkVGmj9JYElc4Wsa4yDOgA/IgTHEj9dP0rnNnCRw7dYwDYG2kPvvdsqnwM9nmzVjqoUHU YWdag+BNF9VWggnjjxtC5dPUOhT/AgMEYSXjDXsr1MRejIMBIGxRh60u6m2zV3Pnbre/buOzhNc4T Us9zsuDD4mBBN46V1zTiS673HE8lE4EWcR6QWj70yQMdJ26jQPo+eafmr19bg6301CzZdu9zWgmcC HatALsaPg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5RDf-0007W7-4H; Thu, 27 Sep 2018 08:00:40 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 449E2205FF760; Thu, 27 Sep 2018 09:59:35 +0200 (CEST) Date: Thu, 27 Sep 2018 09:59:35 +0200 From: Peter Zijlstra To: Andrea Parri Cc: will.deacon@arm.com, mingo@kernel.org, linux-kernel@vger.kernel.org, longman@redhat.com, tglx@linutronix.de Subject: Re: [RFC][PATCH 3/3] locking/qspinlock: Optimize for x86 Message-ID: <20180927075935.GA4889@hirez.programming.kicks-ass.net> References: <20180926110117.405325143@infradead.org> <20180926111307.513429499@infradead.org> <20180926205208.GA4864@andrea> <20180927071747.GD5254@hirez.programming.kicks-ass.net> <20180927074748.GA7939@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180927074748.GA7939@andrea> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 27, 2018 at 09:47:48AM +0200, Andrea Parri wrote: > > LKMM in particular does _NOT_ deal with mixed sized atomics _at_all_. > > True, but it is nothing conceptually new to deal with: there're Cat > models that handle mixed-size accesses, just give it time. Sure, but until that time I must not rely on (and thus not use) LKMM for qspinlock things. So while your argument about coherence might be true -- I'll have to think about it; litmus tests are out the window.