Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp681081img; Fri, 22 Mar 2019 06:29:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1J8NyajYedn+FI/6m0/uVnNP/kVCoQ5CG2EznLM7VvrYSfzuZUdhfa33wiUkKreTfuWj8 X-Received: by 2002:a17:902:9a43:: with SMTP id x3mr9448395plv.173.1553261343091; Fri, 22 Mar 2019 06:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553261343; cv=none; d=google.com; s=arc-20160816; b=Ux7+nWUhdknIudYoV6XIQeS+MPMo1VNo6GleB9Tf2Lq2yCaWag1xsfxZKKRTCgs1Di wzmlck2xvxyRHP6bVi7qarbF15DNajG3HoVDPNwA9+f/38x5WA7HyE3jE3y+s0UhqWRf F80K0ZX+l9yV6Ij/j+d//sgvkBPJ87rdxoUopjP9XsctF06meBRfinYgfJSs31doa6Fj QOLIvi4AqXXmis2ntJ5qHsU1BlgW/ixKqKl/q444F0eZfdYWCAidxd7rV0PDQgVduTTW 8RPEyTvVTTlN27SOV4qvUGfoqCisEkD2QhEtHBe7ASdbfnfdf3e0yjXZkHcaMW4rjsT8 ceeg== 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=81yvs8kO6tiD9h8Dy7JbJzun2fOk0TIuC3WMn0e/lv4=; b=MAL8LdCJCLiVJWCYM0oBbaNUki0g5EBNBYuBlj+Rb2o06WmCUzeY+1aFBBbCuxV/X2 TXO+YWca3Hj5M5yG24vAHvJYGJxGVkpcEtJhQuXb8TIdV4V6WRTM/mnK3u5OYe8/UHXu rp3yOwlNoszbmfFdW/zC6STyoi6YBlrwI1gyb21IX8KIb+B607iDJgTgDAhVI2xulJym PEaMbmZV3BCI+bzdTq/MampxBKWNazTk7hWczVnPsMIA55b0Ax0EsVbv+/w1D5NsQnJL eYZ0Xl7Vew1wjpe/6J7MyNFj8G8KQYC0h9DsDbIs5vi4TGHATdm4k6qbIEfB9h9eyHJB Dn1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z8l8n4VY; 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 q6si3219178pls.105.2019.03.22.06.28.48; Fri, 22 Mar 2019 06:29:03 -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=bombadil.20170209 header.b=Z8l8n4VY; 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 S1728388AbfCVN1u (ORCPT + 99 others); Fri, 22 Mar 2019 09:27:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57622 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728362AbfCVN1t (ORCPT ); Fri, 22 Mar 2019 09:27:49 -0400 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=81yvs8kO6tiD9h8Dy7JbJzun2fOk0TIuC3WMn0e/lv4=; b=Z8l8n4VY0qahgfyLYsFIvnr1x gpLVu4bNJq5D1jZICYDm+b0WTDee87qym4G3B63vBu22XFuHFi/GnDObaQqKdTr0CgzxtKl/7M+BQ pC0i/HwQzVJuVhJkWC+HcbQtyFIzT+aOpzwapcO9O1jjnMNaNWaFbHvSO3+JZuSsLm7ohqISq/FaB Dz/LGKkPg75L7oN/ALehw1on6sB1KDINj9AwP6X+aI+0G7zWTmGoq53wiMlfc3/LWradwvkmKF8PJ wycWOAtXt4+RCobrr0D+EudWAHD9eRNOD1+LucMexLc+Uy3Or5GKhMmafmAdJyQtiZD9B78ey8VAD M7fzouC8w==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7KD6-00089C-No; Fri, 22 Mar 2019 13:27:48 +0000 Date: Fri, 22 Mar 2019 06:27:48 -0700 From: Christoph Hellwig To: Alistair Francis Cc: Christoph Hellwig , Alistair Francis , "palmer@sifive.com" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] irqchip: plic: Fix priority base offset Message-ID: <20190322132748.GD19263@infradead.org> References: <20190320223853.1209-1-alistair.francis@wdc.com> <20190320234858.GA5304@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Mar 20, 2019 at 05:04:58PM -0700, Alistair Francis wrote: > > Well, it starts at 0x00, but the first one is reserved. If you think > > that is too confusing I'd rather throw in a comment explaining this > > fact rather than making the calculating more complicated. > > It doesn't mention that it starts at 0 when you look here: > https://sifive.cdn.prismic.io/sifive%2F834354f0-08e6-423c-bf1f-0cb58ef14061_fu540-c000-v1.0.pdf It doesn't say that. But it is completely obvious from the map, and from how everything else works. In this case I think the documentation is simply written in a confusing way, and we need to fix it once we have an official riscv spec level documentation of this hardware.