Received: by 10.213.65.68 with SMTP id h4csp1730539imn; Thu, 29 Mar 2018 09:57:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/YDE1hChEElxYIgxyzQWWLycUcMVqXc6H85dYMQ7TEfpQWjmb01LCzHa7mI7AltrkTZYt4 X-Received: by 2002:a17:902:9a8f:: with SMTP id w15-v6mr9292986plp.103.1522342636874; Thu, 29 Mar 2018 09:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522342636; cv=none; d=google.com; s=arc-20160816; b=X6U67mlWQT5OU1KEDCI+wMV08VzDSEogYCu5A3wiWpVb7mJUQ+1eOed1gi0eQZ2rwc wZM5M+zgwTCMhXPwSDfhgj3b3h0B5TiXNzs3oQtZVDoU0eDkZgbrZVw6Q/2GAwV08chv PbKt+fRNu1KyMed5+7YxJFbUdIEAwl0yqYRns80CBY6oL0hfTHPmsN5XywpeQHwRuSVI 5C2gQZau8mCmCU/svhuWLImi6iD68B21pLCarR6JQOqLynrRn5crpLZfDGvF7x34QI1D kBeWBI5JRmtu4rIN3NCerDCWASmIgVR3ibxwUaWkYLh4e0FtS/RuVdjp6RrmjZjSFuNi XPIw== 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:dmarc-filter:arc-authentication-results; bh=PgQRzNGCaUDxC8P4nNQuBFMDNmpCdAE1PJZtyGFvRpk=; b=0NkHW4HiVL8ua0fbL+aflkGLcR1syuDZ4po2qtizwmQqKLomHXK/m45FluWGiWGYPR 4V6nUPT/ZhtYVfws51NHZY8HA8edUSTCUmHwqyOtmh3WiHWtF0nmC8C/n86cVOFf57Om ab3FC+xukzQkYp7/4OtQG88R75wt6QUZWpHalD+AqjObtWnklR/vDqx8KgtNioXsbZuM J5TJa1EuoznPMXPFlxzVswCQezRf6JjoYyyyZj1bpA28ziSHDQ54CbQmLOAcn7eG+vOl qOONoX8+8aU6OqvXx/HJFuIgm5CKL+ahiamY07nY8P6AQi1+wj37jpoUFsrYP9Uk+r2k j/nA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si4606509pfh.283.2018.03.29.09.57.02; Thu, 29 Mar 2018 09:57:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751182AbeC2Qz5 (ORCPT + 99 others); Thu, 29 Mar 2018 12:55:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:60334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbeC2Qz4 (ORCPT ); Thu, 29 Mar 2018 12:55:56 -0400 Received: from localhost (LFbn-1-18526-44.w90-101.abo.wanadoo.fr [90.101.68.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C1E0E2175B; Thu, 29 Mar 2018 16:55:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1E0E2175B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=frederic@kernel.org Date: Thu, 29 Mar 2018 18:55:53 +0200 From: Frederic Weisbecker To: Martin Schwidefsky Cc: Peter Zijlstra , LKML , Sebastian Andrzej Siewior , Tony Luck , "David S . Miller" , Michael Ellerman , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Fenghua Yu , "James E . J . Bottomley" , heiko.carstens@de.ibm.com Subject: Re: [PATCH 10/10] softirq: Remove __ARCH_SET_SOFTIRQ_PENDING Message-ID: <20180329165552.GC12958@lerouge> References: <1522290425-22844-1-git-send-email-frederic@kernel.org> <1522290425-22844-11-git-send-email-frederic@kernel.org> <20180329071619.GO4082@hirez.programming.kicks-ass.net> <20180329134745.GA12958@lerouge> <20180329140111.GC4043@hirez.programming.kicks-ass.net> <20180329140748.GB12958@lerouge> <20180329165343.39f4486f@mschwideX1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180329165343.39f4486f@mschwideX1> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 29, 2018 at 04:53:43PM +0200, Martin Schwidefsky wrote: > On Thu, 29 Mar 2018 16:07:49 +0200 > Frederic Weisbecker wrote: > > > On Thu, Mar 29, 2018 at 04:01:11PM +0200, Peter Zijlstra wrote: > > > On Thu, Mar 29, 2018 at 03:47:46PM +0200, Frederic Weisbecker wrote: > > > > On Thu, Mar 29, 2018 at 09:16:19AM +0200, Peter Zijlstra wrote: > > > > > On Thu, Mar 29, 2018 at 04:27:05AM +0200, Frederic Weisbecker wrote: > > > > > > The last user of __ARCH_SET_SOFTIRQ_PENDING has been converted to generic > > > > > > per-cpu softirq mask. We can now remove this conditional. > > > > > > > > > > This seems like half a cleanup; who still has local_softirq_pending() > > > > > after this? > > > > > > > > Only s390 because it uses lowcore to store such cpu data. > > > > > > Is it worth keeping it there? It seems an aweful shame to keep this > > > stuff special cased for just the one arch. At the very least this > > > should've mentioned s390 is special and why. > > > > Right, I thought well about moving that special case to s390. I can > > do that in v2. > > The lowcore optimization for softirq_pending field is not really needed, > just nice to have. But if there is a strong reason to make a common > definition for it we can certainly do that. I think there is no need to. Lowcore is faster to access than per-cpu on s390 and we are dealing with a frequently accessed field. Plus lowcore is expected to be often cache-hot. But Peter is right that I should move the default implementation of or_softirq_pending() and set_softirq_pending() to s390 as it's the last user of these after this patchset. Thanks.