Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp363596ybc; Tue, 12 Nov 2019 02:41:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwrLcgvP3L+cGiLvXDgNQrOPmG74mTDACPSnD1jOqTHNgy298uhi4QhkBS+dELJ2DGHZ57I X-Received: by 2002:a50:c20a:: with SMTP id n10mr32612721edf.120.1573555297520; Tue, 12 Nov 2019 02:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573555297; cv=none; d=google.com; s=arc-20160816; b=joRVKgLRRp7zyHm2PVFoY9ylMlkQd972xrOyN8T/3S4C/mP23fmj7XqyV58hNprHde 5xfolamoxnSwiL4A7TLIJrmBIiUE4P08W4AcXtlVeLqrLc134xY5YLwPieLFVxRwR4vj +Lpdn/O/5x7h9/Sw4YHX9bO7S8FnEpHSpmCNhK01hv+Clk48bzgLawiNOXoB4tfNhg49 kMStXKPQusAbPmo4gIQBDdNaLNjq8rxY/AwO7Gc+KKN+Jjazm7GL7LqdoSjYOckwzx7k OZFbFOW52Agi+xch0tuj0wOcqFS5uyfKTYoa8J/LRxApYQFK7iq8polaXaokuKORrkX6 dyhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=7mGYiU1uXmVEA8qqjKm8JDfhlqGh0yMnnoq6PGOOCjY=; b=WxJT6fL5RrqlLNnYNO2G4dddlOlcDcNQ0ExlcHkHBia1g5g83kfzFNFafEQBsIpAQ8 2F6lQHF9ta4xRbzw1+z+MhoQVlEg0EWgVXl864V4TMA5HHTZXmZFa0cCZbIa1yOrXioj cxLcYcORLVQQT9Yfmgo7eOGlnt4jBXZlwQqUdsQ82TWZ6Ym8cHfAxXh55zeKPOf/0p5o lTTQXR5OHDJu6wvY6bpDpWFPQKeEWJddIV6uOblJ8/lDY0AaUPysV+Mt5UFKFwWnZYX8 hirA/U13I1mNqM5Cym4lgSggkNMCoOWp2P5+xquWTYU5v9NDmySHoTNW6IGrggK8XW1s AW1w== 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 l13si6221315eja.13.2019.11.12.02.41.12; Tue, 12 Nov 2019 02:41:37 -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; 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 S1727201AbfKLKjB (ORCPT + 99 others); Tue, 12 Nov 2019 05:39:01 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:33236 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726924AbfKLKjB (ORCPT ); Tue, 12 Nov 2019 05:39:01 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iUTZX-0007yN-6G; Tue, 12 Nov 2019 11:38:55 +0100 Date: Tue, 12 Nov 2019 11:38:54 +0100 (CET) From: Thomas Gleixner To: Christoph Hellwig cc: Palmer Dabbelt , Paul Walmsley , Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH 01/12] riscv: abstract out CSR names for supervisor vs machine mode In-Reply-To: <20191028121043.22934-2-hch@lst.de> Message-ID: References: <20191028121043.22934-1-hch@lst.de> <20191028121043.22934-2-hch@lst.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Oct 2019, Christoph Hellwig wrote: > Many of the privileged CSRs exist in a supervisor and machine version > that are used very similarly. Provide versions of the CSR names and > fields that map to either the S-mode or M-mode variant depending on > a new CONFIG_RISCV_M_MODE kconfig symbol. > > Contains contributions from Damien Le Moal > and Paul Walmsley . > > Signed-off-by: Christoph Hellwig For those: > drivers/clocksource/timer-riscv.c | 8 ++-- > drivers/irqchip/irq-sifive-plic.c | 11 +++-- Acked-by: Thomas Gleixner