Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2232895ybi; Mon, 1 Jul 2019 08:26:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBSx5Krd41dkDXYYVZoxoKQ3o/HRWEC9CqJQQ24rILhYWLt0VWCM8v+BrL8jEiXfKoQP3/ X-Received: by 2002:a65:4902:: with SMTP id p2mr25570135pgs.350.1561994804245; Mon, 01 Jul 2019 08:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561994804; cv=none; d=google.com; s=arc-20160816; b=A9Dxah0UoiU9j2J2OpDqirzphi7P5i/aSXTbQo3QykQg+xSAtlfSS5sHKOTjP0JFjW QUoqmrGcwYujYYkyhInxetGGehAULXSssJPy1BGCBXH9ILpcU9IFjaOgiA8k6u4t+4c5 O+qqJFardyH8+pUd8XSZynNcYMPNtnjM1oEOcTmQeNTCZm1cjdu4VL2JK3X9xEfnFA+y lNB8sA+LXKlRs6WoEk8tZIUdt9+sS2Vbq/aWhk3cPm0wCYNyh4HqiRaOqjUUVMvew6q9 83P31Et/3smBMXIVnRnI14Ymk1GquBT8bsOQZUMm9BwX9PHk8X4+iaQ/zturtuCRno44 fe4g== 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=ND3leTtyQHL/47K3vzIhUCuphz+1LPNb9J1HXn7CNbc=; b=i/6K/k6CW6OI5tGS7Rry8OqR4XMZnGOBshBh7EKJ18IDzpfryS62dlOC1irJED/WGo ca0/fkkqEHlsClhYrU5AVPd1YBVIu9d0oJX7I8mmTv/rD8LY6SVs7vLgwIreehDNgVEm 72NM0+zkK+P8gKep2pYi3oenYDI5Yh1+LowWHzn8S6uVVThMJE43XJ73mpSRSowkwuxc tcw0skie+fFrI9vs2oLKW2onYy9fsd8jSJX7e/AVLyllyTMup3Bo0U9LXZi7yE/uwJmn QWOli0sC/EsQJyOBZNpWe2oE/Qkj6k4Y29ck3sDiCN0xTxTE/TtdtVpffHsXD9QgN8bP N0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=IH7IK3ZX; 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 z2si9488415pga.546.2019.07.01.08.26.28; Mon, 01 Jul 2019 08:26:44 -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=merlin.20170209 header.b=IH7IK3ZX; 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 S1729426AbfGAOKv (ORCPT + 99 others); Mon, 1 Jul 2019 10:10:51 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35548 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729372AbfGAOKu (ORCPT ); Mon, 1 Jul 2019 10:10:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=ND3leTtyQHL/47K3vzIhUCuphz+1LPNb9J1HXn7CNbc=; b=IH7IK3ZXhq0ixk2oUfkz6uCEF HMUZCXPAqlfGDvsKEmZHHboNrh9Nb5fjoc2rQasTCIIgIqOhMQASuvG7oYDlu4UG9cOI7+D9r4TU7 m+9PG09VKkxYJBFtGqCKdeudta5L6LVOh7i0wsTNzxnJEzPT5gIuQVBymXWAFygobiYnJqNmkIQuY SV7WcQBaSGGQ9Z2JcuaOdt2LBpD+0GSCEVKvq423krhlfZOPKBg65py1oYyLDhN0/AWA/IBh5yRM5 kDkH8i5VXFw2ywJ3QyMBtvG7w1isj6uEMzd/mVhkYqfmwHz1Ba03yLIQLl3M9+pKCLVedWV8hS1TU oCrBNPRng==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hhx0w-0008IZ-F8; Mon, 01 Jul 2019 14:10:39 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 25DC020963E3D; Mon, 1 Jul 2019 16:10:37 +0200 (CEST) Date: Mon, 1 Jul 2019 16:10:37 +0200 From: Peter Zijlstra To: John Ogness Cc: linux-kernel@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky Subject: Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation Message-ID: <20190701141037.GY3402@hirez.programming.kicks-ass.net> References: <20190607162349.18199-1-john.ogness@linutronix.de> <20190607162349.18199-2-john.ogness@linutronix.de> <20190618114747.GQ3436@hirez.programming.kicks-ass.net> <87k1df28x4.fsf@linutronix.de> <20190626224034.GK2490@worktop.programming.kicks-ass.net> <87mui2ujh2.fsf@linutronix.de> <20190628154435.GZ7905@worktop.programming.kicks-ass.net> <877e92f388.fsf@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877e92f388.fsf@linutronix.de> 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 Mon, Jul 01, 2019 at 12:39:35PM +0200, John Ogness wrote: > Thanks. I overlooked that subtle detail. Can I assume NMIs do not exist > on architectures that need to implement locking for cmpxchg()? Or did I > just hit a major obstacle? I think that is a fair assumption, I'm not aware of anybody having NMIs _and_ 'broken' atomics. Then again, we also have ARCH_HAVE_NMI_SAFE_CMPXCHG.