Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1011631lqm; Thu, 2 May 2024 02:33:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8Bit7QRQ7iXN0LrcfU5Jco5fJyxvofvUcicwfk1ytsHzcZnB6XQBPK36qV97gmwNmTlDA8dEsTKxJ3TmrRgJ5LWVOM6i31OKt/ChShQ== X-Google-Smtp-Source: AGHT+IGFH7+Ss9r9pOtRWg8TEivq7DOJLTr9LUElcxcbyTgzjRJWMZBUBAP1uhuecK256XufG/Ar X-Received: by 2002:a05:6a00:cc4:b0:6f3:edac:d9e4 with SMTP id b4-20020a056a000cc400b006f3edacd9e4mr6596968pfv.20.1714642404656; Thu, 02 May 2024 02:33:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714642404; cv=pass; d=google.com; s=arc-20160816; b=Tp7WsY/CuGXWiutirOzH00BZkIlOfnCHUEsSwWnm9G0RIWwfKCPePvLcEg0CnH682E sEOIzFH+PkyuD1aUXSJx7nwdaU2n+nt57FhVyYcIIM8I1DzO0UE8th5VjecV/IvQXsqM 6BDUqGmkC6tM/+4i7aEQJGgndElf/NWdgfWavU8TX0DgYGjZfbvHfTfGwWX/WtAIVZPN 4KRZqaHO7XU2VquOtAxNc+Y5KDDw3x8nvIRI1WC7L/Fo4vfRro7yZVxAdq2U0r11IkG4 D75gNMDTkzAnMfx6CIexp8S9/mYlXDb7YsOCCrMnx6toyScZyjIHolrp0SSkU7CqVE5O RV6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FvW/lnO7fBno/xaBzZIt3Emz2T8DvtxIkgq7/bGwou8=; fh=XAxWLQSwRx+NbUK5upAxziepBjND7u7yGtVKNsgpiNw=; b=X+SLyKMIxUNfB7tr6X+B1EJkxZNRsmJicfN9pkvWZU7L8/3Y3kwEl2H906VJRO69GI VuFxM1mBHRXjWVCLMTTdsCV+tUkbiUWSDeLJV1qMH12ME9ZU1mRMaZY9/oTb3y7c4L0s 61tnSXmx8ZZr/ItnNxZsBy1KFZ8yKGqP8PVVf91Gq5gERc+RSk9/PvjGERiLbresPk17 qKnjoT+OqC/ztKAK80I/80jTw1ZEPo5gSqbGDyOpsieBpNO2ddemedBU0q30x0F42uwG hRY+q8IJHCHWSI2qsKm6OUmLFCAjPXvBGvf9GWh69ruxqQnizoQulqklizf4qlT031Z0 EEMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=DwXyx+W+; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-166229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166229-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s19-20020a639253000000b005f7fd4ea198si675124pgn.806.2024.05.02.02.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 02:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=DwXyx+W+; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-166229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166229-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1CE10285D4A for ; Thu, 2 May 2024 09:33:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FDF45645B; Thu, 2 May 2024 09:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="DwXyx+W+" Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 275E456440 for ; Thu, 2 May 2024 09:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714642369; cv=none; b=SgbgNxlaqwbI1Qs/EGpXeaMlB2GNJzeaQ1uWQcQOHvz7QpiHXmcKRUlBP5zbLRYeW/IQiFHAkBDIBJIeY1xG3Dd9tNqSVnW47rUSY7UK/09xlV2Y9zvzk8Mx2O8liZ8upOFhMCKtOYre514dMw/150o6gm8Z6zYIK/NvZxOSDlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714642369; c=relaxed/simple; bh=+KdPWEN16wQ9Tm9ok2b58EnczYYvk8kPtRWjVxLHs/Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H1uStz136EMRsjEHwR6JV5GT63arkfBcFww0cc9ajm4kY0NgYPw/Wyvy+uRPwCbN4SnNSd2TvT9KSkBrQ81stAVaMeczYGdVMI80H3f0a+n+gMQfdqpGJ+e+qL1+N+d4kX4ygmcLRJZIDdFGi0FzXog2+eRU3Gc7jJSFmo1k08M= 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=DwXyx+W+; arc=none smtp.client-ip=209.85.210.50 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-ot1-f50.google.com with SMTP id 46e09a7af769-6ee4dcc4567so2188327a34.3 for ; Thu, 02 May 2024 02:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1714642367; x=1715247167; 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=FvW/lnO7fBno/xaBzZIt3Emz2T8DvtxIkgq7/bGwou8=; b=DwXyx+W+pWfnM9wYHa72GjpVprpdBGam9RpvSG9+9kkamynTrgG5bloqc3+pk9W2tq sskWEAHuVKxFm0TbNw1gMKZM91SNaivjTutAcvLnPpj/Ss9Bc+LVEpKrwvGv7ZKG0W1v eNFVjAonGFfNW4CsybtnpF7Bs4L2e6P0cQHH24bP6kcWwDjugSA6nAUkDh2AmFilv7JA nDaST58oFc5APPG4Ej5fWXalQCqYdfKjYvXb3SqgY7sNR0+Ho1OpfO2XdLsCAHGkXtAC UIo29DH2UbgWh17At3cNeflKxUomjy9j0peZjL5/x2l3ms4dd3gY7SzNLtwT1zOMVUhb Ii5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714642367; x=1715247167; 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=FvW/lnO7fBno/xaBzZIt3Emz2T8DvtxIkgq7/bGwou8=; b=X7RO/KZL7pm4YxmVVtQhyXlRRaEHGxhqccXDvCah6TIiGywn41+x3H3/+JqXWnRWh1 2V/9+JOkMEfuNLIaXVJQeRVCdMuSOKuhvaZ95TAJAWrn8qmoOb8QOr/oe1MVcToJ2p14 gB4ADSaGTOxtQiKjZn7OHvrJzA1X2d09I94uiLJJZfgKiJKkzL1lPRqkwp2NdKZpFkEp P2eKUaW0/u3/rKstmr6EU0IwA8WB6wuOxpMQEuobQn3IYVNwWPRaHiL/nENf4/IedH5P x1fjpGN5CVIjQ7Iv+i7DVSzQBl4Ss7urmFomMCqPfR5S1k7bVTqVyETdBulpJ6uINhJC 64vQ== X-Forwarded-Encrypted: i=1; AJvYcCV0rw3KPqQ7MNj5aqIAu4ofPeOlrX0ctL70Ykar1+I9Ws/CyHqtnAP1by/Y+2h0DAkz1eOZwfqIRZj7+cn8k++SAOVCFQeJxNM7Zub6 X-Gm-Message-State: AOJu0Yw6c2TsN7u6RIl16l8ESFl0kw3OSknB7b8vaJFsGZ6Dv0+X72z7 RtIN2mCEoyElrZvIPe8w4yd6qlm9BGt04+Ww24HZz4Rsg1HznXaib+UbiTxcrnk= X-Received: by 2002:a05:6359:4c9e:b0:18f:673e:fce2 with SMTP id kk30-20020a0563594c9e00b0018f673efce2mr6283164rwc.6.1714642367069; Thu, 02 May 2024 02:32:47 -0700 (PDT) Received: from sunil-laptop ([106.51.190.19]) by smtp.gmail.com with ESMTPSA id l25-20020a63ba59000000b0060795a08227sm692025pgu.37.2024.05.02.02.32.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 02:32:46 -0700 (PDT) Date: Thu, 2 May 2024 15:02:33 +0530 From: Sunil V L To: Andy Shevchenko Cc: Bjorn Helgaas , 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, acpica-devel@lists.linux.dev, Catalin Marinas , Will Deacon , Paul Walmsley , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Greg Kroah-Hartman , Jiri Slaby , Robert Moore , Conor Dooley , Andrew Jones , Marc Zyngier , Atish Kumar Patra , Andrei Warkentin , Haibo1 Xu , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= Subject: Re: [PATCH v5 08/17] ACPI: pci_link: Clear the dependencies after probe Message-ID: References: <20240501121742.1215792-9-sunilvl@ventanamicro.com> <20240501165615.GA758227@bhelgaas> 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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, May 02, 2024 at 12:25:35PM +0300, Andy Shevchenko wrote: > On Wed, May 01, 2024 at 11:56:15AM -0500, Bjorn Helgaas wrote: > > On Wed, May 01, 2024 at 05:47:33PM +0530, Sunil V L wrote: > > > RISC-V platforms need to use dependencies between PCI host bridge, Link > > > devices and the interrupt controllers to ensure probe order. The > > > dependency is like below. > > > > > > Interrupt controller <-- Link Device <-- PCI Host bridge. > > > > > > If there is no dependency added between Link device and PCI Host Bridge, > > > then the PCI end points can get probed prior to link device, unable to > > > get mapping for INTx. > > > > > > So, add the link device's HID to dependency honor list and also clear it > > > after its probe. > > > > > > Since this is required only for architectures like RISC-V, enable this > > > code under a new config option and set this only in RISC-V. > > ... > > > > + if (IS_ENABLED(CONFIG_ARCH_ACPI_DEFERRED_GSI)) > > > + acpi_dev_clear_dependencies(device); > > > > This is really a question for Rafael, but it doesn't seem right that > > this completely depends on a config option. > > +1 here, fells like a hack and looks like a hack. > I can remove the config option. I just thought this would probably never required to be called on other architectures. Unless there is an objection, I will remove it in next version. Thanks! Sunil > > Is there a reason this wouldn't work for all architectures, i.e., what > > would happen if you just called acpi_dev_clear_dependencies() > > unconditionally? > > -- > With Best Regards, > Andy Shevchenko > >