Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1873342rdb; Tue, 20 Feb 2024 09:22:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUXYYupfDncGq8FbQ06w/w/BN7VNbnLWSgYIq9AjfZOnesAFyyqXpkRriUEnxYIIZW+YtRwJG0ehbHHt+xv8WEBLjZxOEmr4Qqj4Z+O2g== X-Google-Smtp-Source: AGHT+IGI2vCuIttxwAeTbI4VQ4/tzAaQLMTYow8bsYihRDMrRGaBcrnjP2qsoc0fzrQlnodlXnOH X-Received: by 2002:ae9:e913:0:b0:785:d8d8:4e8c with SMTP id x19-20020ae9e913000000b00785d8d84e8cmr16711235qkf.17.1708449726421; Tue, 20 Feb 2024 09:22:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708449726; cv=pass; d=google.com; s=arc-20160816; b=YeGgI/ZYxjRXPZH9w5cHuSEWdUeMKhnIgDgpKoak4Jv9vxAxaG4csdu+miYtdGH6Jb +hcvwaY5jcPmdtFZBpu8CVRa8cOYM/LBjO3wSx6K3eBUdhyQ6XSPTXeNi/9AUHaCz9Qx nV14ldx/am8CLmERnkkOfSE4rMY0J2weW+rj+KqKhm6S7/CbUHZihsQlNVHxB2UruI86 eV1Xk1KRLSXgv1lR+OzdldlNJ0zCluLCC6Coj29XjtrVsFEQt503wrApr/toz4lCuJGF uIl/93qjHyLBGiiHsX7WWVr/9gzfrnvskhZ4/Tj50PKfRTHaGxLvhfY6aJUAnOBkHyzh itOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=rihM8gZY5Rpoa6nRB67kPe66RFi61qM4N0eC2eheyvM=; fh=uWnlUwEWjiRHYYpeevG1SFjD69363eRVDI7SUyV6duI=; b=H7KRc09d69xJ5HIFy8oVcQ2npcMFVQR5PXPsVs0TTBt9Y5yotTCXAogVFuSIKx3UIJ tmfPxuVPC5oJS6YXeR/lsvO1A0eIEB3ZmLVgv4Ku1029Fis5F2TjD7fdw2RudYPl88bi K0yogNM0H1lkgajbprszNJDQCzhlpO9qbFgTzz0kuPj4XMrRSDJ0G9YmIOf9Khg4Vi/K xpXaJRYHu1Uq+WITIHx/IPNf+4W76Xyik2MbuT+bEtDSuF17EUmCAI2wBHC3V+BAFNa6 4jxB+z8rwg558BLB5AZblrhmH4/UbV9xQRnIfMJmMW8X33WcVi1Ui2iGQdR8jjzHfcDG 6NRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=n3AwI2tW; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-73432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73432-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c16-20020a37e110000000b007877ef11983si880754qkm.686.2024.02.20.09.22.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 09:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=n3AwI2tW; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-73432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73432-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2FE1C1C22015 for ; Tue, 20 Feb 2024 17:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D888776C74; Tue, 20 Feb 2024 17:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="n3AwI2tW" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CDD57763A for ; Tue, 20 Feb 2024 17:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708449702; cv=none; b=BuxtbcvBsKxqpSuqdpdnXQQxJJyaWFW1Wrvk1WZM8t9Gt9by5e5cBJ34uPEcyPUDm6LErNEf9H9Q3Cwx65fH3GuKmCIe/Ym0MgtOIS7J1Yvd4IaMJ5OzAWglVNhGC4ry57RQL4bdoeUpo6KfsFYZ+RhZTArdWr+E5PWXmY9b7uE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708449702; c=relaxed/simple; bh=H+CYG1HmEgtu0LxM7cNVpXsLAz04YxVfh7pCUep5NRk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=knYSzhCCsUsWMGW6xLF+/zFsLWSNtVwf65N+O563V5fYJxEUk6oGWT3qBnpvQU8JNp9MSeL8jlzc9te8FSFamKCIB3Gtbl6+qP5/bSm808vgafZoR4h1PN6ImNbHltlPSSHB2m5T2ymzqsZqsomYzVKQ0AlwvWaBWGkO5S6MV40= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=n3AwI2tW; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d0bc402c8eso54102251fa.1 for ; Tue, 20 Feb 2024 09:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1708449698; x=1709054498; 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=rihM8gZY5Rpoa6nRB67kPe66RFi61qM4N0eC2eheyvM=; b=n3AwI2tWS8fXoZ1KFeITo5hUmF2+VhF7PySr5i7E0yxgO0fXh49nL0nyevvyVddiEO cyzc6/nbR6x5pwN1VxGn+VutBmmY8zi/P2hrDh22Z+Ecl2FQgeox1M+IHHZKqi2tjd/i yjc3cwZfdP+tTCzxFOwnNo/WwUiF5WkSRJL3wPwVWsuK8NQBYSJF4DgNx5YEbWDix/9E 9WXYhD5MnplbvxbBadoXO0tCo9KjggGMIKrjF5k4pr88dALC5dJMGGwigyZPDRWz8xX8 dFj/HYweyC/XCkPZXFNmIjkZfVtD21ytKoKu8Exj5QwTHHUkzrPi0OrVLdAviODPzgBy /qmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708449698; x=1709054498; 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=rihM8gZY5Rpoa6nRB67kPe66RFi61qM4N0eC2eheyvM=; b=P2qZtT9kGG43kHd843Wfkjk71IWpuHlZDdWVHw8LGpFIgGdQ6qOmvuXWvl4iZuAfKM T0JXCic7aZBLcefCXrgP0o4lqQOGApPRLYS0HO4QNerLHC9tKca61hkonvxA75krCK2F LIX3b7QQHhSBsrSnvZ2TTPx6etPkQNpVPEt7Kdt4+uWOJPeQIdvLJ4ALho4P23vlKdZQ u0fdnvIQfkQuyHiz3G+Ydwgp1EVMukb7xLhe7YN/OQL3ty4NuIVSdvM+1AYz7nEWWkFe EIjpGlATkrTI2JSlMbDlb/u8ZN/TGk0TeG/9xGP+xNnYJMnu+VU01DCM6BLq3xkKNiME t9sw== X-Forwarded-Encrypted: i=1; AJvYcCXneBCtAwx2qjWv2tHjzUf5fjxIqMew/EPblC3aimjikBNHuZYXY7oH483P1oIohFUHmdBRFgn8I1HIKzXXGRTADGrSBq4dTgcw1aod X-Gm-Message-State: AOJu0YzWXJC+qsfQqARDnqr19WSZHbivLTuypL7ZAEZJ0/HYWg8+3/94 cr1pQLbSZxIIcX0m5iHqc+7/OvfM1rXLuTATociza62fg113Haj8FFxRklscroBGJueqjyK8eg5 crUk3I8h2nKqN9lG3upjn5tNrxwEK7SQanCV0dQ== X-Received: by 2002:a2e:95c5:0:b0:2d2:33cc:7483 with SMTP id y5-20020a2e95c5000000b002d233cc7483mr2732678ljh.4.1708449698204; Tue, 20 Feb 2024 09:21:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-9-apatel@ventanamicro.com> <8734tni7h3.ffs@tglx> In-Reply-To: <8734tni7h3.ffs@tglx> From: Anup Patel Date: Tue, 20 Feb 2024 22:51:26 +0530 Message-ID: Subject: Re: [PATCH v13 08/13] irqchip/riscv-imsic: Add device MSI domain support for PCI devices To: Thomas Gleixner Cc: Palmer Dabbelt , Paul Walmsley , 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-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2024 at 7:05=E2=80=AFPM Thomas Gleixner wrote: > > On Tue, Feb 20 2024 at 11:37, Anup Patel wrote: > > static bool imsic_init_dev_msi_info(struct device *dev, > > struct irq_domain *domain, > > struct irq_domain *real_parent, > > @@ -218,6 +241,7 @@ static bool imsic_init_dev_msi_info(struct device *= dev, > > > > /* MSI parent domain specific settings */ > > switch (real_parent->bus_token) { > > + case DOMAIN_BUS_PCI_MSI: > > case DOMAIN_BUS_PCI_DEVICE_MSIX: > > ? Actually, the DOMAIN_BUS_PCI_MSI is not needed because the real parent domain is always the IMSIC base irq_domain so DOMAIN_BUS_NEXUS is sufficient. Better to just drop DOMAIN_BUS_PCI_MSI from this switch case ? Regards, Anup