Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3170912ybb; Mon, 13 Apr 2020 02:11:59 -0700 (PDT) X-Google-Smtp-Source: APiQypIS28aP8J31oPwZB5AP4X8+x44RFNhRhlFqLbOKjJUkNnlhrOxO+wF+D3d9uw1selSgoS8W X-Received: by 2002:aa7:c243:: with SMTP id y3mr14960802edo.68.1586769119496; Mon, 13 Apr 2020 02:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586769119; cv=none; d=google.com; s=arc-20160816; b=wh5lJj5/5VgO3rpAsq0ZcAkSc1BXrj4I+gwu0kcm6ZeS/1gh42/PBwEw0/Jo1tdWUT eGyd83IlihPrDflz04DMN/1d6trItSGCZz8MEZK/2IhK9pfQYu36yQEnRJlPYKPbtDFR 7g1Cxtmh+Cq9M5eLDJucpKcSikfAxUaNM9FfYBSmYavd+3GJyEZjEY9wnuC2KXigFuL3 YUXA4sYaxJqeZNRqsLvtTeUld78ER/4CxRF7A7t5Yhv6OEidUorw1ZkGncN1Gj3uy8V9 IbOTMzvbHOxwmUBCuL/b7Yrss/iNo7GbeDuO/GaubnRtEg6qAyMPvs6tgERALJJRgy7W tgcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6bpjMW+GzYcPR9daW21i+rWw6xTJ7uzEt7yYYDWZye8=; b=kEgABGAF3Mz2y4q0uyZKkcVZOIx2nxWE0OlwPFzqM3BK0wb/o/CIEYOQHTWd8uUdSw mYbXHmPx7EvVItYcnLn4/E7pB4uIh5K1fcghU4OZsrfyUA/HrwbeKLHz5/x5cTr3WzgB HUv3e33IiIn+5bIPIjwCXltKlkrFHsZX+XP8/wA/KucgY9FNJUOFgXOBhP9LoUaweCHx 8P+111XyG9t0ATTtxdOeYmEyYa3ICzKx6mM4hI0BmHtsUnz1cWYbGFiqyCUPssnOdZZj qoDhkwHzGrd0osDjedkxvBGQs4eN/DZuBDTN7QMZCcb/z5pso+/0/BVctkYkuQ4NJ0Tm 47tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=d+Yd08Mh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si3770382ejh.439.2020.04.13.02.11.36; Mon, 13 Apr 2020 02:11:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=d+Yd08Mh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729155AbgDMHRF (ORCPT + 99 others); Mon, 13 Apr 2020 03:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:58620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbgDMHRF (ORCPT ); Mon, 13 Apr 2020 03:17:05 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A172C008651 for ; Mon, 13 Apr 2020 00:17:04 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id z6so9066128wml.2 for ; Mon, 13 Apr 2020 00:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6bpjMW+GzYcPR9daW21i+rWw6xTJ7uzEt7yYYDWZye8=; b=d+Yd08MhDy3n8uPAj61nMpr6ym0sQVpFn9ynW2A0zRLpEMdwd/dsjtXGr3CvZmqP8x c/a6V17JRXiNYECZoGXbC4MAz73FGaWzN85B2hCki5r7INf5tJhtDs1r/ylqQAplwnob Gepqu5Eexv/gu+4QyOV6VbGL6spp+v/OC94z7OdhM8a2vqrnHphuzIKEBrg+ncZk7U0Q UeADtyYBuxTAURI5pSSYJMxyjJ5Ett033nAdFiZ4JAK8EoPAg6w29GeWBFMq+//HuOSp wGiOLsNGAuwxERm8Vx8kakGYf+UYJ91V71tqR8k1egAGH0foE/BXeOBpTurqvQv23lob 1Deg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6bpjMW+GzYcPR9daW21i+rWw6xTJ7uzEt7yYYDWZye8=; b=nqby0906A0XHhx1EvHa4+sna1yHvtQD7v8dybOg1N5d6Sc+w/jTn+SrcBW8twKW+Du UiaE6aDh7rIswW8kIu6YWawn0LNHFsYdBoUvyj68QOhgMbijPtFtgOjqlERakytux2cO HQGfqP4z94vfR1y/6x4QjeCn81g97hnRBM5DVgJMSKVTlnDzxaH3qJnHTcteaC13Xvfa 2rSNg6E035lKDhuWwoZqXUxra521hqPHCWGM3b3TTJwlRzCm7Rc7aymwTEXRo8iGnjOA SyGmhNcGiZE/+TZoIQgkHnMWorr418JjsCoaI/aLJ6QowGoMsa0oFlKLnRQsVnj6DoUZ fNug== X-Gm-Message-State: AGi0PuZpWc0lcp4SyVrqWGIEnWxxRbOYuw59qEmbx80a2vtnAK+t+nEn fovZWO1giZVVCMATAjA71EgQ4L0+MZF8SWT/a4uk X-Received: by 2002:a7b:c10d:: with SMTP id w13mr16952860wmi.78.1586762223184; Mon, 13 Apr 2020 00:17:03 -0700 (PDT) MIME-Version: 1.0 References: <20200403014609.71831-1-atish.patra@wdc.com> <20200411115919.32fc0455@why> In-Reply-To: <20200411115919.32fc0455@why> From: Atish Patra Date: Mon, 13 Apr 2020 00:16:51 -0700 Message-ID: Subject: Re: [PATCH] irqchip/sifive-plic: Fix maximum priority threshold value To: Marc Zyngier Cc: Atish Patra , Jason Cooper , Anup Patel , "linux-kernel@vger.kernel.org List" , Palmer Dabbelt , Paul Walmsley , linux-riscv , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 11, 2020 at 3:59 AM Marc Zyngier wrote: > > On Thu, 2 Apr 2020 18:46:09 -0700 > Atish Patra wrote: > > > As per the PLIC specification, maximum priority threshold value is 0x7 > > not 0xF. Even though it doesn't cause any error in qemu/hifive unleashed, > > there may be some implementation which checks the upper bound resulting in > > an illegal access. > > > > Fixes: ccbe80bad571 (irqchip/sifive-plic: Enable/Disable external > > interrupts upon cpu online/offline) > > Small nit: please write the "Fixes:" tag as documented in > process/submitting-patches.rst: > > Fixes: ccbe80bad571 ("irqchip/sifive-plic: Enable/Disable external interrupts upon cpu online/offline") > > (with quotes, and on a single line), as it otherwise breaks with the > lore-scrapping tooling which a bunch of us are now using. > Ahh Sorry for that. I will keep that in mind. I broke it into two lines fearing a checkpatch warning. But I guess I unleashed a bigger monster unknowingly ;) > > Signed-off-by: Atish Patra > > --- > > drivers/irqchip/irq-sifive-plic.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c > > index c34fb3ae0ff8..d0a71febdadc 100644 > > --- a/drivers/irqchip/irq-sifive-plic.c > > +++ b/drivers/irqchip/irq-sifive-plic.c > > @@ -56,7 +56,7 @@ > > #define CONTEXT_THRESHOLD 0x00 > > #define CONTEXT_CLAIM 0x04 > > > > -#define PLIC_DISABLE_THRESHOLD 0xf > > +#define PLIC_DISABLE_THRESHOLD 0x7 > > #define PLIC_ENABLE_THRESHOLD 0 > > > > struct plic_priv { > > Queued for post -rc1. > > Thanks, > > M. > -- > Jazz is not dead. It just smells funny... > -- Regards, Atish