Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1955708rdb; Tue, 20 Feb 2024 12:04:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXznvXQGa1uxMyIvJfU4WH5V6QwVKzgOqDMr19L22ONQuLlU1ULCXObZIBp/otOK0TU6CI04EAPJaxJKJIf8erVNB3D/eUg47+C0i1tkw== X-Google-Smtp-Source: AGHT+IH5ZaYwCAN52BNFpE3cCu7+uWfCpY/xD2sTp2OOV5jzPRw5B/CfH8wLi1c/RDzfnqGvNJMb X-Received: by 2002:aa7:de0d:0:b0:564:695d:e8a1 with SMTP id h13-20020aa7de0d000000b00564695de8a1mr5312515edv.4.1708459448520; Tue, 20 Feb 2024 12:04:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708459448; cv=pass; d=google.com; s=arc-20160816; b=Cqs/8Q5msTMsa/r9DGTKaYJ9r5ekh/OX2EuXggPNHDpyfZW1MJcEMhBGJfzCK1s436 Zv5FUOaC6H2S+FTnkE1qOo9GQRr4/Fm1efpi/Tp5wmPW5GYcFju6hjEswiFvK8Odjimr 7sMnXg6n6zdGHU4pv3kOGhBRAPwbsiTm9RS74aUBcXf3yQ2yVA7Tfr3eFGemR6CFsTcR Y+k1z/HQulP0HIVw69fAzKHxQHe0eRX9cGza18P4pc0442tfHWveP9UYOq0qXKETuArk 8qk3pGLGYqSVr10EnumScwZ3+3QGtKWDHV65gsTAmK+dcW8UMA2CjVQRIb4zDJByEUGT kwPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=jJRsPsyZ6zDS1QWFQN2wLBFM6mS+0QImDjTMgSPiL7I=; fh=qvEeX5v6lUuBlXo+TgVhXfVcrz5W5Rjn4IHIHYR5hPU=; b=VGPh5kNZG96uwx+Gk4wVrdh54U14QhJdhGS6W0hn+Z9tlVg/TEwUe05pLwOPhZNavP zSpyl4CpNPFPVtaaRznsEJzgU9f5TRlhofgoDtYFsRaKkxEEYhrLRNsPXLxJsK7+2N83 JFoLcx+nQ73bxRtgEaHlacr3mF3o5q8z6fzLFpTUk6usZVACgaFiQbhlaWQ8iaPXSLuZ 75o7vmUZbeodGgMFDYvn8Anrr8HbUDowR9VZAtcbOMASjyWP1uCKNyRzaZc4jn1aJ8CY zQdaYXEcb28VOzJGZNgZbFct7bY8qaHtHNHpHj/aVu+Lmr0AjKWay5G9ZS/YfyDU/SG4 K3kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aYQmsEOw; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-73640-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v14-20020a056402174e00b00564e2c12e07si300609edx.642.2024.02.20.12.04.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 12:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73640-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aYQmsEOw; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-73640-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4A1C11F21398 for ; Tue, 20 Feb 2024 20:04:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAFEF14AD0E; Tue, 20 Feb 2024 20:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aYQmsEOw"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0bZpy8Uc" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C72E14A4E1; Tue, 20 Feb 2024 20:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708459431; cv=none; b=oiQo835m5sE9QPTnsurhpjH8zGPYbHeEBf1ip8OfW/N0DkLcnXwg5Rfp4nv+0DfBwLywGlEbnuGUsmDn/x0M28/hRsg5AXO/F40c4l7NWCLsssnLPQ4zqltVfn6utRvCzrQ/dJYE3fFKeYhz9TKcOtUtItZ3v77PjJaw1YS4m5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708459431; c=relaxed/simple; bh=RGYI1C/SB4NfKZcUVQLWJNCPAbpYUuYgeLGtJ3F3BJY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Vx9kLN0KSA+DXsFFWF2hgyfWnDXDydrUqSxxC8OmVy5Zm5mU6sw9c1IH9iZYc2OW/HKoCwfGq3Jy1aKs++3teANjJcMpdqlfrEg+Eu37u2xtViO4UI9uejuK7q06fA+EpRWRCrOFvvCnp9gBAWwASX1zK13Qju/Nkz+MUOM5NEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=aYQmsEOw; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0bZpy8Uc; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708459424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jJRsPsyZ6zDS1QWFQN2wLBFM6mS+0QImDjTMgSPiL7I=; b=aYQmsEOwQopLCUpYpAQuDyrIpn/ZjclA2riggfw0WWir8TT6NmiPQZJzpeC9YRHKgp0rWt k9TQyzVThpxVBDmox2nnESsknS5oTRd4VzFt0IU9vtyq1EJQHNR2c8XYNJ501UxxiXHAvM kXdsE5fN2sy9MVO94uyCUiwX4v8h1pq6bevWl8yrwk+XqoCaj9mBmXHCJGdlZPtLIuvqLX 3q+Zma5P0XbwLUpcToklgoNTEsCISC+ORpEWQc1gQ0abV9ucGF0qXfXXUnwwqsBvpXZvEQ 4wLIzGkKNOg+Vur2e3RHi5rEfoxeWqrJBnwmSEj0b/eNkGMG09MxRmsKO7Z1XQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708459424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jJRsPsyZ6zDS1QWFQN2wLBFM6mS+0QImDjTMgSPiL7I=; b=0bZpy8Ucv4te6DfmhFa1QQKyXrhJJterh1+UZ0hC/H+1QXta7TTSsn4wIZdFftqnZDB7KQ v4NtqSu0q+WZZFDw== To: Anup Patel 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 Subject: Re: [PATCH v13 08/13] irqchip/riscv-imsic: Add device MSI domain support for PCI devices In-Reply-To: References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-9-apatel@ventanamicro.com> <8734tni7h3.ffs@tglx> Date: Tue, 20 Feb 2024 21:03:43 +0100 Message-ID: <87jzmyhpi8.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 20 2024 at 22:51, Anup Patel wrote: > 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. Indeed. Obviously I can't read. > Better to just drop DOMAIN_BUS_PCI_MSI from this switch case ? Yes. I actually would be a bug if that ends up as the real parent domain. Thanks, tglx