Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp487210imu; Fri, 9 Nov 2018 00:44:08 -0800 (PST) X-Google-Smtp-Source: AJdET5cx3XftlUlbMO9DvuRKjsiTAbOYeXG2q9nPjcg0c/aHq9vhuMsdoQYmxSc7E3ZQwyoGyN35 X-Received: by 2002:a17:902:3a5:: with SMTP id d34-v6mr8024722pld.110.1541753048624; Fri, 09 Nov 2018 00:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541753048; cv=none; d=google.com; s=arc-20160816; b=cbLj9uYwu+4Ayvg9ifo7P812/qw+PDiLlcyl+WSzQQskNTJIqaaSaSo27g0Jra2BIT ce5ELOfOvbIfnCkIbBmUv2HeGR+TunUbCb/14E2KBS1/+L8CfJp+4XdlkwmwBMg+H/Uq AhmHcMPzG6mQPxQdJDHuLqwTIkR5FLB0vhdivZhM76BvGC1a5mYstBPVDow7nJ1CTkQ0 w25WkAZ16cl5AQG3NqZWWquWw5mo9tFmZxSxBKyl7EgxCciQvORc2vVs3KYO1Mi+Kg7d jECc70mTMfo41JdY9la/f4WeXcpheXoWBQxWTpUi+nPHgBLSGsbZ4bGOZAzIo/T7oo+r Lwmw== 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=S34i6VFy87zAWppVV7S8AeRavC19rT4dvlwLNX+KCCY=; b=GNqvH14qK+MkPLn5VJKY6z90qlcIgotQObETaSn8MORD5uyMdw4wriE5miGpDB+1Dw qyvz1EsU3t0BbgpoWmN7t4jewmTzkGeK52g/bNxzcAefJqBUo6I4YYFPqM1+NUJ9f99+ 3LmMJO8u/TLxIl2TuPc7MrxGQbtl6KwAsIyCYWRHVJ5cJSzwsaanHvkwDs2VnMssPDBL QYBVmWFdXJGSgvbStJnA6pDdk8gNzWPEJGC9jTyNyXzgNY+n0O25j7KgK6w28j3+cnLJ EJXoGzPSB/C8ibgjc7FJjLQpB9rTa+oIU1dm+EeVHR0nxfHLse2Zw7bmq4IQCdRXyGPD VuVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hR1sSy2l; 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 y24-v6si7305064pfm.141.2018.11.09.00.43.53; Fri, 09 Nov 2018 00:44:08 -0800 (PST) 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=hR1sSy2l; 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 S1727780AbeKISWh (ORCPT + 99 others); Fri, 9 Nov 2018 13:22:37 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:43716 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727676AbeKISWh (ORCPT ); Fri, 9 Nov 2018 13:22:37 -0500 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=S34i6VFy87zAWppVV7S8AeRavC19rT4dvlwLNX+KCCY=; b=hR1sSy2lphKNTSrWa5Qx2bLdB wwBuHjhsgTw4SrpE/jodyaVCL6i/zLxzeonl4Zqq+DurMhRz7QN9B036e3TaX4wo2C42t8Oy26bVY jOobP3PVzZJd0zfMh+4PMT3qFFJwlBnxJzMqlQqII4ooBw8tEFzF61apXxptUSUJkbYKpsDi+38ID qyDvfweQ3uWQ28o4mJeuYjjx/h9pbzUOkT/t+PMuecuRDjmZU7GUbvQZe/4SEmR5E5INz82HBDSO6 DGKvA+mFQlXbbIOJszCNcH6p4iURgtS8K+70SaKsRHonysfAj4p1sqz/ZgHFjOZZnmFFd9vV1Vuvx 34AghyGvg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gL2NV-0004l7-2v; Fri, 09 Nov 2018 08:42:57 +0000 Date: Fri, 9 Nov 2018 00:42:56 -0800 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Christoph Hellwig , Atish Patra , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] irqchip: sifive-plic: Pre-compute context hart base and enable base Message-ID: <20181109084256.GA6508@infradead.org> References: <20181022114517.22748-1-anup@brainfault.org> <20181022114517.22748-2-anup@brainfault.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181022114517.22748-2-anup@brainfault.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 22, 2018 at 05:15:14PM +0530, Anup Patel wrote: > This patch does following optimizations: > 1. Pre-compute hart base for each context handler > 2. Pre-compute enable base for each context handler Why? > 3. Have enable lock for each context handler instead > of global plic_toggle_lock Why? Also even if you want this it should be a separate patch. > #define PRIORITY_BASE 0 > -#define PRIORITY_PER_ID 4 > +#define PRIORITY_PER_ID 4 Also please drop the random whitespace changes.