Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp162832img; Wed, 20 Mar 2019 16:51:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZctz+WEwO9WeSDzHILTHTcmEYDVadfGQF9Tc9/KjFzSLBp3ANUho+s0F1tQe35RuDN+ni X-Received: by 2002:a62:1e82:: with SMTP id e124mr470681pfe.258.1553125915592; Wed, 20 Mar 2019 16:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553125915; cv=none; d=google.com; s=arc-20160816; b=dIrKK1u2Ajv+WtcWX13RrKCc4STXP3VG7yhPN9PyE/CwHEQGcWoFkAjxq0/vHuswk5 L+ntNFXelF34EKg7jMr3UMVBEP1FfuC7DH762Cc7YGmk1XnZ8bJlR7rKy1ATOkAzTCug /OKi6MzplYl9yEp2i5lMGnEorncoPN4opV2RsDpHzJYdY70UDwthHLs/rpREF9BVcn0u VsdHIR/s1PfodUQGBTIYgoQ56ELizCE58IUcicZkBzfnWdwc62YA2JU5BE9xSZ0p2PIW c0OIdRi4uFIhlj5htRTMlMIIb619vsQ/X8jfmsYUhC+FZqZhLhIEzyLt0tggaOZXjumf weXQ== 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=oCTw3ZG9mEPSISHtXPnTm6YFLfqMCHQGBUSczruFKI8=; b=aMnrgVJFQxbmyQteztIVDtM+rx/bZxkbxtSrBadL9hQGCNsSmhmpTZntI4dYvtPKnj hQWViWp/n6eDgGA79yalvPMKGF9NuLBr/GAR66bqm7VR8T6k+iuh1jmQgcCzhbO83ju0 GZJSQq9L/P6EN+LXqGtLWnDdUZ6FscrezSeAhWidjT1ZoAKlLoCLuuDKroJb8M1L4QXk Fyp3Vz83YlcLoB3L1PI79LJHQyF0lSV5FBsopm4LM1U3wJbkPNuYcvfRKkQv5VIxFctu SZTXJfpM2SCzHxRh2/MKGBZm1si/bQta2yEsy7znspRUUWZnC/W/d49X14T7IYLJu+s9 oZZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=l0NJGCtJ; 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 z9si2951031pfg.21.2019.03.20.16.51.39; Wed, 20 Mar 2019 16:51:55 -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=l0NJGCtJ; 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 S1727812AbfCTXtC (ORCPT + 99 others); Wed, 20 Mar 2019 19:49:02 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40764 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbfCTXtC (ORCPT ); Wed, 20 Mar 2019 19:49:02 -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=oCTw3ZG9mEPSISHtXPnTm6YFLfqMCHQGBUSczruFKI8=; b=l0NJGCtJnDHrILLMM/JPwc3Rq qx0JqR8TiY+S3nLH/KaBReHIPWB6f/CvQitDhjekL8UvS78ALgxDe4Mi2UFRuTzwXY4BLHLG89OsM gl8HcxxgkMV1Wyg1+uNr3Udp+rYFC8huZ41Vw8vjl5JjdoU/XDCV2LaT2RRWTE/Dgq/Q1EldIW42d ozG140eVEXiUk0G0BHmJzD6EtjV4/Dz6P1A9F7zmQyGJYssvsq1Y6yrIhQGo7piRUeirBwpTfcK0r P2L5pJ6LJFyKno+9YIearMclaZZrf0JnRYlv5cCG5TFon0rXbJkKpl32BSomicvqcSjy+kRhWMEqT 1f41n1zog==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6kx8-0001i1-UI; Wed, 20 Mar 2019 23:48:58 +0000 Date: Wed, 20 Mar 2019 16:48:58 -0700 From: Christoph Hellwig To: Alistair Francis Cc: "palmer@sifive.com" , "alistair23@gmail.com" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] irqchip: plic: Fix priority base offset Message-ID: <20190320234858.GA5304@infradead.org> References: <20190320223853.1209-1-alistair.francis@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190320223853.1209-1-alistair.francis@wdc.com> 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 10:39:52PM +0000, Alistair Francis wrote: > According to the FU540 and E31 manuals the PLIC source priority > address starts at an offset of 0x04 and not 0x00. To aviod confusion > update the address and source offset to match the documentation. This > causes no difference in functionality. 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.