Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1583583ybj; Fri, 20 Sep 2019 12:53:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXXjY9sZ2YlMkp0hmlVpiBswoGSWGLe7CQLV72dtjFc0st28ZnbmZ6n1z/N/12L/oqlQzG X-Received: by 2002:a17:906:4bc7:: with SMTP id x7mr20722179ejv.16.1569009193119; Fri, 20 Sep 2019 12:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569009193; cv=none; d=google.com; s=arc-20160816; b=Bqa+Vj0O3IFTBQFpYKu0xaGYQmk2tnGw/Ax+eZXimr/L3cPriSZ6Z+Ld+2jS6Y+2o6 EFRh71AY84JhUeLXmqMGu95hEMJVVI9UWDms+wHZZ6QOKEY4Fy+DawNyrFGihzuAzWEU 65NA6T/zGFbU1Cyo4FXYDKHLY7i/GKzt2EV47n2kAuy3dtknENKaRhL9Zc2oAjQj0ujd JBMfNgS4O+j7rXZ0FnFkGFIFjpEN4fDF7GE9fjzE9Ch+IOFhv7ns0lhBVUGj+pwaaMqL gNh/LEC5W/Mx5j1cmMp73dmS+vt136sa2bjjrhytl2VuDaK6IzFTleSODoJA7w/LPNkt q/vw== 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=e1EFKSI2taSOuRAW19A6gM/LOvRhsiSAjxhmMibFXx8=; b=lKFL3szhQxC65XDq09C4fRBjISAzTBSvABofQq2nOwdQv/RQkWI5zveLZyrH2FXR+S A9R/nQ+jlxb523esA1hZQ7mN1F7I5WmstfetWSMEUD8HojbQ0NvueulG0U7JLdfLw3MJ 4m1/prRMlhi6ur7vjGzvhSuIrYo7azqGIAudBnVahLJxrIj+6rVmOCWv10BeUsWiEbr2 CurepjFRleXaMx6mhHW9N7CguSGHzgRknHVqreU8ENn8sV99E7TxCRjvFVjawUh6dQ9Q ZDFHRdZdsEuGJTg+SCH4e5bzMMcvR3amAKRYLE8z55Tk09xEpe7WUrcT0ksZ0g1wiGpL wI1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=AF1H2hPL; 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 w18si2020605eda.445.2019.09.20.12.52.49; Fri, 20 Sep 2019 12:53:13 -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=pass header.i=@sifive.com header.s=google header.b=AF1H2hPL; 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 S1727730AbfITN3B (ORCPT + 99 others); Fri, 20 Sep 2019 09:29:01 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:46538 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbfITN3B (ORCPT ); Fri, 20 Sep 2019 09:29:01 -0400 Received: by mail-ot1-f66.google.com with SMTP id f21so6133647otl.13 for ; Fri, 20 Sep 2019 06:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e1EFKSI2taSOuRAW19A6gM/LOvRhsiSAjxhmMibFXx8=; b=AF1H2hPLVVGNc+OiNsqAjyKg8k+pL+BHKPOnn4mgK/uS3ttkHlL+v9rg5rnlbRuzYW 6GAFAllYHLe4G5GMp+MxPWpyWWpZvDcLb6yq6VydzUIE+r0SyCY13Z0SkkqjPor5odeg nE4WRem05gKBGGA/aESGTm9OV2DQufZk18wN6ZD5n5mNeWGSxntxtCtOppZMOVNPotgZ Nvbjg/AkYxhuAL7guoueUUHYygUNzmv4uKHDLNgggyvnbdDVczwqeUMRUv0D80/ndspo At1eaFi2Ci/Nd4QodoPs9JSqKQ3s3qjiTbKptc3Ur04E7qR5kwGHLS8VB9novgt4gId6 FB/w== 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=e1EFKSI2taSOuRAW19A6gM/LOvRhsiSAjxhmMibFXx8=; b=P0TwqkLjsFNENL7SPOq5xtGjPZ27RluwSUVs9YpHhpod0G5hHZDtlYsQdHU4YBhZdI Ga42ufJVSzawt9dNM9TloYuL4P+QiacyPuRQBLvV7PHr8VFluaCrvU+i9w1lByiX5PN3 +aqDJm8YD498vxvjAJKs/+ukfPIrz/xp45BaQyvbURCI7zZESRaCX00b5n5O0yYjxRMs rfuL0Ty/AMWni5oc15wDs7Rop9StPZXyW9j1XSAxwaiX6ZrCygfF2KzVBPkgBnF8NJ0e guRVTl9sUSpdo9nxll6ZAj8xFgtgiZG8aomiPuUHPss0ew7oC/cOKwL48ZX681jdjakl xWuQ== X-Gm-Message-State: APjAAAXWxiHUqYr0bmDbFhpnG19yqk12COYcFjtvOjqIRw/wS11mFJbT tB2lEyT3zOgFxybotRwFvgrLLcy1lNg8V6881+JF2k95xNw= X-Received: by 2002:a9d:4e1e:: with SMTP id p30mr11740947otf.224.1568986140111; Fri, 20 Sep 2019 06:29:00 -0700 (PDT) MIME-Version: 1.0 References: <3c0eb4e9-ee21-d07b-ad16-735b7dc06051@bluespec.com> <20190916223323.07664bc2@why> In-Reply-To: From: David Abdurachmanov Date: Fri, 20 Sep 2019 16:28:48 +0300 Message-ID: Subject: Re: [PATCH] irqchip/sifive-plic: add irq_mask and irq_unmask To: Paul Walmsley Cc: Marc Zyngier , Palmer Dabbelt , Darius Rad , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net 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 Tue, Sep 17, 2019 at 3:26 PM Paul Walmsley wrote: > > > Just tested this on the SiFive HiFive Unleashed. Seems to work OK; > however I did not stress-test it. > > Tested-by: Paul Walmsley # HiFive Unleashed > > > - Paul > > > # !cat > cat /proc/interrupts > CPU0 CPU1 CPU2 CPU3 > 1: 0 0 0 0 SiFive PLIC 5 10011000.serial > 3: 0 0 0 0 SiFive PLIC 51 10040000.spi > 4: 6266 0 0 0 SiFive PLIC 4 10010000.serial > 5: 102 0 0 0 SiFive PLIC 6 10050000.spi > 6: 37 0 0 0 SiFive PLIC 53 eth0 > IPI0: 1134 21128 9024 220261 Rescheduling interrupts > IPI1: 10 143 18 7 Function call interrupts > IPI2: 0 0 0 0 CPU stop interrupts > # I have applied the patch on top of 5.2.9 kernel and tried to stress it with stress-ng interrupt stressors for 2:30+ hours. # cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 1: 0 0 0 0 SiFive PLIC 5 10011000.serial 3: 0 0 0 0 SiFive PLIC 51 10040000.spi 4: 34240 0 0 0 SiFive PLIC 4 10010000.serial 5: 102 0 0 0 SiFive PLIC 6 10050000.spi 6: 0 0 0 0 SiFive PLIC 53 eth0 7: 0 0 0 0 SiFive PLIC 32 microsemi-pcie IPI0: 32013933 28068736 29345256 23346339 Rescheduling interrupts IPI1: 78514 78586 63144 100317 Function call interrupts IPI2: 0 0 0 0 CPU stop interrupts