Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3037663imc; Wed, 13 Mar 2019 07:25:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqytZ37FvjJWef81/m0AXjYeVZ59A6fNdE5iX92fz5TKYIiQM5mp02UayLXCyHS9qeKFfWtP X-Received: by 2002:a17:902:e3:: with SMTP id a90mr44872769pla.45.1552487131890; Wed, 13 Mar 2019 07:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552487131; cv=none; d=google.com; s=arc-20160816; b=mzy5XMPdqY7GxR7mGe1cu7ThVb1I/vE5fVraqe4VdXxl6tRQqG0jSE6xU4ClFwHOCm bXKslj/yImyR4VTzrVpoRYZx28uahhjHaIhZIM+5K/nBsbPTg77w8TnfCHlm2O/7lise B5HP3D0AI8Alc+N8e6LjghnZLIjS+p7Wus1HOmF6oB9jl7hqwGSJngTkQgIcRD6jSU/X MdNEa5uSufyMxRCi0ahzI69lOCrBYY2tmSF2EA/Crt1BJzVAMitiPvn/8Vr2hnUGMV2n ra2js27WxOTqwqb4U0QA4c+pgrRBY08XWLA3PRzIQfWPKdEt9m9qb2kmbWjGu3p1u/ji PuHA== 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=a4OyokzJ/PfwKHkjkdPAJOWjXzZnOndTsqzTCOs98hs=; b=NPEdC5ymqMqT11OLiQ10S16JzCY1PG8pIhvfCIVvpwgnW8fjlqZ0PKozYN062gSbCF viIp2maXa5ooeWCIP01OJ0pHSo+i0lNqAJL+GkIvbrzdrAAfxJRm20JgZXxeQPeZ1YyD hl6e74XWyKxvJuxcVXGeCjTPujxdB032Jp+Pz4ldeMH8ocDvPn4GSPfSxRCNhnje5VMJ OW6P+uR6EtvO7T436aVhuVabclH+O5MgThlk3bdZzOt2r86mWkh200edAJdotTru08dN QZs4dFpZ7kz+FTZ7YPAT7cwsaJF2kx6XJXv4sI6paMwK7PITIITgza9Kn/tM24YOJbNB 6dEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0APDjc88; 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 x6si9981614pgr.372.2019.03.13.07.25.16; Wed, 13 Mar 2019 07:25:31 -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=0APDjc88; 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 S1726670AbfCMOY3 (ORCPT + 99 others); Wed, 13 Mar 2019 10:24:29 -0400 Received: from merlin.infradead.org ([205.233.59.134]:49460 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfCMOY2 (ORCPT ); Wed, 13 Mar 2019 10:24:28 -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=a4OyokzJ/PfwKHkjkdPAJOWjXzZnOndTsqzTCOs98hs=; b=0APDjc88M/vhI7ZjIxeccmsxN Vg8zVRZ8bV7g0eNpSh2idWD9CtKQGgRfAO0sFVHaEfFmqBJkeGhu+VlIdiq15unpxYUdGJK9MxfIm CKhMDOOzKeRNTHNytKQkeevhzfYGp4qBicfVHC3w6GwddGmG7dXGQYi79SpOEOMmyngM9BacjO8sC Y5EKweiYy56d2U0Bcs8GsPhYrisdrjCgMEgsFe2dZJSbGjZ3ZtulWGbL2mV+C5GneLWH55qKoD15G TWv57LnJBxKSCKJmZRQ+9z39IhcjkVglnUogmlQSly6lkYLsr/1+RTsQAW63wwLckOFtjLSl1bWfA kt3VfRp7A==; 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.90_1 #2 (Red Hat Linux)) id 1h44nq-0003Qh-OZ; Wed, 13 Mar 2019 14:24:19 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 82B4720298565; Wed, 13 Mar 2019 15:24:17 +0100 (CET) Date: Wed, 13 Mar 2019 15:24:17 +0100 From: Peter Zijlstra To: Arnd Bergmann Cc: Qian Cai , Jason Gunthorpe , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Mark Rutland Subject: Re: [PATCH] mm/debug: add a cast to u64 for atomic64_read() Message-ID: <20190313142417.GF5996@hirez.programming.kicks-ass.net> References: <20190310183051.87303-1-cai@lca.pw> <20190311035815.kq7ftc6vphy6vwen@linux-r8p5> <20190311122100.GF22862@mellanox.com> <1552312822.7087.11.camel@lca.pw> <20190313091844.GA24390@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Mar 13, 2019 at 02:46:55PM +0100, Arnd Bergmann wrote: > It would be tempting to use scripts/atomic/* to generate more of > the code in a consistent way, but that is likely to be even more > work and more error-prone at the start. Those scripts can't do actual implementations, which is the problem here I think. The architectures really need to implement a whole bunch of stuff themselves.