Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp178661rdh; Mon, 30 Oct 2023 19:01:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYFMvCW7o6VCG9xCa9+HDQ62xCZ4RpdE9y9nbqzUqtdyEGXw06Z63KjiPQZPNmR399FKUQ X-Received: by 2002:a17:902:dac2:b0:1cc:47e5:b4bf with SMTP id q2-20020a170902dac200b001cc47e5b4bfmr5683226plx.1.1698717679175; Mon, 30 Oct 2023 19:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698717679; cv=none; d=google.com; s=arc-20160816; b=kW+0XZ38FQfm2wLLbbOntcuW9WZnNwsIChBTTaSE6jVHEEMI/MQTf4DF0k4CWJvSop JQ1fr2SPthrRY3DurtNSYSlLuP17vzNV6JYBa28jcnMcnCCNj/v5nH/T61YNIP5yXZo5 wewYJ2gDluMBAjrS8lDr0RUj+2xfZCGiPeoxsM0ERCjmUmH5WSZP0yOkLnbU4tfXB3ok MWYIfj2JewcU+TJa9bcC+OQ6XZ9TwKfDCkkWYhat2BkrjvumRFb+oWFkTFSjffNPIhk6 z6cXDpEKV4IBIv1QymSaFyeLpHUNWD4dUDe2RujwD+Ju2yMlyK9N2y+i1lH31W2u3sF9 lGGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ysFHtwfLEtis2HEwrxQHDKnfNsPImE2g/7GGtzNp+Cs=; fh=veL/eUs3J6vyRwf2+wsbkT9lAdXPx6ZNGKGYsvVRMZU=; b=Vt0qK5AFH/IZStOFovTzN34rDgDIW+9xoTMGoeen1S2Wq9Fmim4Wg78AHR9nCLI9N+ pyUVwB9A7KN55sdUtseUF0RSyrh3KFH/me6WAaFD6od8WDJ0ICSxgH/BH7XH78VxmSKM 6xjGiQ6Eo9rLxFd3VWopBsYVUEkZqc99laiBTcWHWuxWpN6ZFuBSr2cez0EIai7QGfdr +1AgStiiUsYLn6Xar5N/Hw34Qac7gqb+nR6ktjPYShr5KcuCJNJeibO3BwrDUZCCQdvg IL3aL8vCPK3wo7UOkBkPQPeGLonP2lZu4RSoCkBnZ7uVq0a0Z91MovLAghNonaRvD/Li HUvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=RA0zuQur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d10-20020a170902ceca00b001c61a27f5b6si258203plg.400.2023.10.30.19.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 19:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=RA0zuQur; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id E7CDB8067B70; Mon, 30 Oct 2023 19:01:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229510AbjJaCAw (ORCPT + 99 others); Mon, 30 Oct 2023 22:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJaCAu (ORCPT ); Mon, 30 Oct 2023 22:00:50 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8A8EA for ; Mon, 30 Oct 2023 19:00:47 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-5b856d73a12so4117625a12.1 for ; Mon, 30 Oct 2023 19:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698717647; x=1699322447; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ysFHtwfLEtis2HEwrxQHDKnfNsPImE2g/7GGtzNp+Cs=; b=RA0zuQurBpzYYfjoncjl1kshFj3iAGNIw3NKTxySaBBPtVj/wd5SKoIIAEqT071n2g u8J8MlnD8DYzzR4sOIQPxbwdVqRqjyN1CPa2FTv+5p0A6cWkQqe9e5/wx7ZoTZre/dws n6YeCGYiyXr0yQYwjly+z4aEl4jxOH/7s1dtkQ7y7hoyy7/7jUM0j5ddNVd+B/zJadk+ sb1a++EwzSH11of0XYBZmkazOmcCqjL4Exyyk7ZJHvpsCehjyowvTW8DWITyYOvg6fUw sr5RJmpYKdB0yuSm6ixVX0ixxlNR3G2v9EyVqHnquwekNJ0sboVSZB30lCkWvcA1EI// Nziw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698717647; x=1699322447; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ysFHtwfLEtis2HEwrxQHDKnfNsPImE2g/7GGtzNp+Cs=; b=PyIYajQixLu5pQy9esCYQ7bw0kWrJzi1vH2nrp5volffu55SEZ8z3yoO+GsGen2Ntp LcRcqzi8TbyQIRmGFIgO+IgZZ2pQp6rBUgLI/ICbmhfry70/dskqZLZT7H6Ra+CO1Exc YLWOl94NlIU/DHVoTEWJWr5n7Bn9zWS7qaOA2pEgaG5C8lBC7LW21msyLUWrTOvJrqyr Z9GBwmTixRqIWigFi8Q+xNjniT5Dictm3tUyAU0KshlueK0C9ApY5qz7pxSIZAChgUJm 5aOrxjK7Nr89JfJk/VBbcNsrnTo3wrl9LOXCyjC2kzPlCLL6WFK73MSfM6umYo4UFs4Z KDfg== X-Gm-Message-State: AOJu0YzXn3egOAqPKRGiXr1UcW95ua+/OKWBacHc2vXRXNiEWvt8nqAz QKPFt8cR7znqjGPmxpnyYyw+vg== X-Received: by 2002:a05:6a20:a220:b0:17b:e0a3:f6f4 with SMTP id u32-20020a056a20a22000b0017be0a3f6f4mr9170362pzk.25.1698717647083; Mon, 30 Oct 2023 19:00:47 -0700 (PDT) Received: from sunil-laptop ([106.51.188.78]) by smtp.gmail.com with ESMTPSA id b17-20020a056a000a9100b006934e7ceb79sm159585pfl.32.2023.10.30.19.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 19:00:46 -0700 (PDT) Date: Tue, 31 Oct 2023 07:30:35 +0530 From: Sunil V L To: Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Conor Dooley , Andrew Jones , Atish Kumar Patra , Haibo Xu , Marc Zyngier Subject: Re: [RFC PATCH v2 11/21] PCI: MSI: Add helper function to set system wide MSI support Message-ID: References: <20231025202344.581132-1-sunilvl@ventanamicro.com> <20231025202344.581132-12-sunilvl@ventanamicro.com> <87a5s0yyje.ffs@tglx> <874ji7zz7a.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874ji7zz7a.ffs@tglx> 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 19:01:09 -0700 (PDT) On Mon, Oct 30, 2023 at 08:29:13PM +0100, Thomas Gleixner wrote: > On Mon, Oct 30 2023 at 23:24, Sunil V. L. wrote: > > On Mon, Oct 30, 2023 at 03:28:53PM +0100, Thomas Gleixner wrote: > > Just noting related discussion : > > https://www.spinics.net/lists/linux-serial/msg57616.html > > > > The MSI controller on RISC-V (IMSIC) is optional for the platform. So, > > when by default pci_msi_enable = 1 and the MSI controller is not > > discovered, we get stack trace like below. > > > > > So, what I did was, by default call pci_no_msi() to disable MSI and then > > call pci_set_msi() to enable when MSI controller is probed. > > Your taste sensors should have gone out of range ... > > > But I think Bjorn's suggestion to depend on PCI_BUS_FLAGS_NO_MSI may be > > better idea. In that case, we need to set bridge->msi_domain to true in > > pci_create_root_bus(). Let me know what do you prefer or if I am > > completely missing something here. > > That's definitely more sensible, but as I said in the other thread, Marc > is the one who did the PCI core/bridge setup magic and he is definitely > in a better position to answer that bridge->msi_domain question. > Thanks!. It looks like Marc introduced bridge->msi_domain in [1] for exactly the same problem we have with RISC-V + ACPI. Let me remove this hack and do similar to pci_host_common_probe() in next revision unless I get objections to that approach. Sorry, somehow my script didn't copy Marc in the series. Will make sure I copy him explicitly in next revision. [1] - https://lore.kernel.org/all/20210330151145.997953-12-maz@kernel.org/ Thanks! Sunil