Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1839204rda; Tue, 24 Oct 2023 05:09:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAfOdMidhWQavfaqibf+qw0bw2afx9mO7NXjQ8teUZstApyWGVRzG3RMCc9c8WIbXiIrTA X-Received: by 2002:a05:6a20:bf19:b0:17b:cd83:6555 with SMTP id gc25-20020a056a20bf1900b0017bcd836555mr1869145pzb.23.1698149352834; Tue, 24 Oct 2023 05:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698149352; cv=none; d=google.com; s=arc-20160816; b=fz0cELAMIPo5UotEjBLZcy/+7p7q1ivRzN/AdF7mdt+mA5jhdf3AMVSiZISalBxSsK D+Hj9WhanwFwhCV/WzQ+qtAerPvXOgJvQgJ12VODKXlQLguLSXyAGMBTteRS4qr8fehp WPf9mSPbYXIqrynDGTqlH2E6q3uiqLFWP/0jB2x6wWCv1tpu6nYzzH/r2fhdGZBYsjCV 5Mfa4Or8xunAdf0rRgC/unuEapQ5kF+fwzMbuO0nFxW4oXnUWEIbsT/Lx8PY7rMhQlrY X+DzImmdnNv3Nr4Nn0gQaoaDpGi0fQaWEd37rIzmz+ujnzsuGaLLs19RTyox9zU0r3wz VbwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YMK1b0C/L5gsGLFeXRamJpztKKQzm+CIlOPG1sOdW0o=; fh=9G4tJDClod57CJXZ9e8acHpehxxCtMKetmsmQWRaV6g=; b=UbTQP8L0a71F+Xb5CUmNOmUcqrFM7bMVdVxD3l8RM50g88IAcr0fGNiOnW4GENB3U/ MImyCd5doAC/xEKcfwF0582iQtMAdQYK2YK88Y5Ok1qgqHpLTEg5aSGmO/k1CZJD2CMx cT8OJdLXT0nVMt33XxWCpkXMmAsBc12ayrAdYFkC2gARe2Ee0x50Fh7BTlNkNq23jHU0 zPIoThtzygGqGNcbtwcn5oq/KAC57h+wXntfi7Wj/2VPZb6ILcyhrtzkmBV9FXiZqQ3h 44fOwJ8jmhhQBlItAiuuaA3dWTnvfNorxsdK9RRzK0GQ5Gf8MqopAzsnYDw/XVYou2C/ ULGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gaZ0qE5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id g9-20020a170902c38900b001c71eed110esi8293504plg.254.2023.10.24.05.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:09:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=gaZ0qE5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 44BA580A3651; Tue, 24 Oct 2023 05:09:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233459AbjJXMIo (ORCPT + 99 others); Tue, 24 Oct 2023 08:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232895AbjJXMIn (ORCPT ); Tue, 24 Oct 2023 08:08:43 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6783E120 for ; Tue, 24 Oct 2023 05:08:40 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6b5cac99cfdso3610530b3a.2 for ; Tue, 24 Oct 2023 05:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698149320; x=1698754120; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YMK1b0C/L5gsGLFeXRamJpztKKQzm+CIlOPG1sOdW0o=; b=gaZ0qE5eA/5N9XyHas6AG+0zpwNE94cgLrm79DCrEQD9YyMLHBuhqpT64VMXQbg3ad Cc8eiD+ABe2qworMHpL7pAVsjPXR5dfXuK9m5y7z9vZCDjqiXIbdq/fM2w9d0SmIhIKh znv2Y5DxEFnXemz/uQq9oTCx9puATNc5RmgtOo+p2dj+lEt9JxsOrXrhc8CcxNZf0qpB faHa6NZ+NrxcvlS/FtVvxJ1qzUiB9Lz2Pimpgy0MSsQeENPw1/uisiKMcW2L7IfAeL+Q oCInm5k+YJkXhbTtKWpamnis0Vg7WgWCYQV/RXXYWF4nxgofn/NBensjzSBlvv3SF41c Wwww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698149320; x=1698754120; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YMK1b0C/L5gsGLFeXRamJpztKKQzm+CIlOPG1sOdW0o=; b=l5oW3lMhKY13jyKg2cjCmppLioK+XJX63eS7EJXuovJFV30L7feiS92EcHInQNijFs yUIGv7CFhhLSBeQNwxncpjMISoGNpsFidvQc/NQTM9aUVcwPCfOw/b4G1ve7yJbpkx06 K2hwlCPcMzRDYSAl0BsYOMIFUnNmkx3nbzVemnM9h7xOta5uRihkn6iU0BLG385BCwMI L8oVvM7vKAu1yEiymkgWxp0cTNDUsLZV+lCsdH2WZVS8BJHMJdugQ6cdgeq+VEQpMB7t FPE1tj1PPLAuWJufay0ZfECWA4f+U9kiD0eH+EZlmAXldyRZ1UAPoHqunbwVgyJhapAd TRHw== X-Gm-Message-State: AOJu0YwkOn4yE+WpPYm4+BR8PmH7UwJ0m5KioOLpJWY8eVDY4u4Z73cw g4F79z/1Wx5aQuIwQexcZ6ZpBSS5g+OVWLwE8+N/ng== X-Received: by 2002:a05:6a00:194a:b0:690:bdda:7c35 with SMTP id s10-20020a056a00194a00b00690bdda7c35mr10133732pfk.1.1698149319657; Tue, 24 Oct 2023 05:08:39 -0700 (PDT) MIME-Version: 1.0 References: <20231023172800.315343-1-apatel@ventanamicro.com> <20231023172800.315343-8-apatel@ventanamicro.com> <20231024-arbitrate-glitter-2053d17d7260@spud> In-Reply-To: <20231024-arbitrate-glitter-2053d17d7260@spud> From: Anup Patel Date: Tue, 24 Oct 2023 17:38:28 +0530 Message-ID: Subject: Re: [PATCH v11 07/14] irqchip: Add RISC-V incoming MSI controller early driver To: Conor Dooley Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Marc Zyngier , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 05:09:09 -0700 (PDT) On Tue, Oct 24, 2023 at 2:55=E2=80=AFPM Conor Dooley wro= te: > > On Mon, Oct 23, 2023 at 10:57:53PM +0530, Anup Patel wrote: > > > +#ifdef CONFIG_GENERIC_IRQ_DEBUGFS > > +void imsic_vector_debug_show(struct seq_file *m, > > + struct imsic_vector *vec, int ind) > > +{ > > + unsigned int mcpu =3D 0, mlocal_id =3D 0; > > + struct imsic_local_priv *lpriv; > > + bool move_in_progress =3D false; > > + struct imsic_vector *mvec; > > + bool is_enabled =3D false; > > + unsigned long flags; > > + > > + lpriv =3D per_cpu_ptr(imsic->lpriv, vec->cpu); > > + if (WARN_ON(&lpriv->vectors[vec->local_id] !=3D vec)) > > + return; > > + > > + raw_spin_lock_irqsave(&lpriv->ids_lock, flags); > > + if (test_bit(vec->local_id, lpriv->ids_enabled_bitmap)) > > + is_enabled =3D true; > > + mvec =3D lpriv->ids_move[vec->local_id]; > > + if (mvec) { > > + move_in_progress =3D true; > > + mcpu =3D mvec->cpu; > > + mlocal_id =3D mvec->local_id; > > + } > > + raw_spin_unlock_irqrestore(&lpriv->ids_lock, flags); > > + > > + seq_printf(m, "%*starget_cpu : %5u\n", ind, "", vec->cpu); > > + seq_printf(m, "%*starget_local_id : %5u\n", ind, "", vec->local_i= d); > > + seq_printf(m, "%*sis_reserved : %5u\n", ind, "", > > + (vec->local_id <=3D IMSIC_IPI_ID) ? 1 : 0); > > > + seq_printf(m, "%*sis_enabled : %5u\n", ind, "", > > + (move_in_progress) ? 1 : 0); > > gcc & clang report: > drivers/irqchip/irq-riscv-imsic-state.c:288:14: warning: variable 'is_ena= bled' set but not used [-Wunused-but-set-variable] > > This looks to be a copy-pasta issue, and the move_in_progress here > should be is_enabled? Thanks for catching. Strangely, I did not see this warning with the toolchain which I use. I will fix it in the next patch revision. Regards, Anup > > > + seq_printf(m, "%*sis_move_pending : %5u\n", ind, "", > > + (move_in_progress) ? 1 : 0); > > + if (move_in_progress) { > > + seq_printf(m, "%*smove_cpu : %5u\n", ind, "", mcpu= ); > > + seq_printf(m, "%*smove_local_id : %5u\n", ind, "", mloc= al_id); > > + } > > +}