Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3508128imj; Mon, 11 Feb 2019 23:13:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IYtD6k23mRYx/JCKgBv30gNLHZnJrrV+uB9w16He8n5KRxQQVefjaIUxrTk9ihe9heenho0 X-Received: by 2002:a63:4c04:: with SMTP id z4mr2370760pga.312.1549955599944; Mon, 11 Feb 2019 23:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549955599; cv=none; d=google.com; s=arc-20160816; b=XE+Vvl2fXKPqrtU7Z2lowAOcXjbU+fgyaFzAqn+KG12tx8ois+J6ga/7vzI9ZRpcsS 7I56ctdj9RBo529HZ7AvBvXD+QVm+haRuEVObyp+N9k9Sf9eXspRo4zEZzQ5YS0hz9Av qaQ9WfrlI4djdSEaNTkeZi/0mQJKuL3Yk4BHNA2pa2OG/kvyNX0l/40QwH7dxKUNbe/A YbQkQ/a3vKRG+w8GtQbvxhLNjekEeRyZ5jHDt0BYEty72fnHmsAa93m0uOLMHkpNVpiT 7VK9iGErW+CrgLodjFTOKwRiAeEYczTVZMuC1zIquR1/Kc5CojhpLwOxhhmMeF/ePMp0 VC0A== 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=7UPNvdw0qsfhF/kLm16K67bEGEYfgSW+VFtNl/D3Zjo=; b=nehDwAFCKo64rYozO0MA1v/BVd5/nggwxZovybeNNRSx93qBkgd6+5vHMqKMrJmTM8 I19BkZXcD2NUtO4unqlFvB/1STbaz77HLIlyMlJAWwmRMNiq0M6i3bz3TRNmxs1qSctB DkbCb4HVWtPNIdv2/nAs7wIi0lwa/P5XW5m8mXHt18p4vi554OpoxzJATcfpH3Jt3JhT IRo54mipSCBhckC65XAQQFudXFZ+6LIH+A0OYWh5NHYOer1BmKatjgYJMphJnng0kVoP BxclnO4j1PXslkVrtlN0avtNQOqsKyWe6RkhVEQ59bBFNxZUGwXaW7o5KMksjo2uS5n4 x0ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=seDAYLaG; 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 s36si12508363pld.46.2019.02.11.23.13.04; Mon, 11 Feb 2019 23:13:19 -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=seDAYLaG; 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 S1726179AbfBLHLe (ORCPT + 99 others); Tue, 12 Feb 2019 02:11:34 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:35662 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfBLHLd (ORCPT ); Tue, 12 Feb 2019 02:11:33 -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=7UPNvdw0qsfhF/kLm16K67bEGEYfgSW+VFtNl/D3Zjo=; b=seDAYLaG8+H+t2bCCGdXFmQNM ZK6vc1f5h0Gs/kmGoviXzXszrX+bZld0uKtVxLJPeGtzvGwNwjziH12d/tQjvy/Y99KuTPjHzYsXp swQioj3SrUnfW3KyBctV5ZoGdyIyUh9N45JdKv15TBc0EW+RjPtJqpJ4ZfKLXlFBFC8QdfkfCcb6c tN8UQaUbFIv9TaisPZM0qHNi1g7JBfKsq28uzI4AKtbhTWNAFJg5gFg3qIhkrn4qMhJs8aCKEptwA d4y5007rjCT81pcCUeMeYxJvU8837O5ah5U+NBpYDQqn+X/hLnUo2XAiwGgtQhl7FwaqFfKDnobW0 kxfF+3lvw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtSE4-0002bA-Rw; Tue, 12 Feb 2019 07:11:28 +0000 Date: Mon, 11 Feb 2019 23:11:28 -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 v5 1/5] irqchip: sifive-plic: Pre-compute context hart base and enable base Message-ID: <20190212071128.GG26747@infradead.org> References: <20190119055625.100054-1-anup@brainfault.org> <20190119055625.100054-2-anup@brainfault.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190119055625.100054-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 Sat, Jan 19, 2019 at 11:26:21AM +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 > 3. Have enable lock for each context handler instead > of global plic_toggle_lock > > Signed-off-by: Anup Patel > --- > drivers/irqchip/irq-sifive-plic.c | 47 ++++++++++++++----------------- > 1 file changed, 21 insertions(+), 26 deletions(-) I don't really see the point, but the code looks clean enough and removes a few lines, so: Reviewed-by: Christoph Hellwig