From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (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 9C3902F5473 for ; Tue, 2 Dec 2025 04:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764649708; cv=none; b=rjFDvqAz5zmC8n/qfo6H+UpV55PDBOd76ZrBdnE+tsD1NC4E3gn7gK0OQ9dsjaYTlEQz7rpGNOLmkW2AZuw6CmosPdi0VZCbpvx07s1kAaGs3/NIeh+5eoMzuF7lNWu7yBblMF5rCxYyECeyxKKxVM+S4/IUMDqb1OH/DtJ/NeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764649708; c=relaxed/simple; bh=crsFLDgVaXi059lngL00+3IYJxJAGz/pJ25CeD6imWo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TPTPKo5+vgiDSKP3XXaK7ebzHihwvFioy83Qqfan4xS7J2Wh357x3OpOvoV23pHu/ULajVZ2rYfbVkJuq1+R6Ofhnt9qnsIp1McYumy2o2rNMsGhLItym2osruUPqxwh/dnvwv3SI/Y9+1sglBllIQffVeGxN3MFMBidvn/dNHM= 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=Ks6Dc1l/; arc=none smtp.client-ip=74.125.82.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="Ks6Dc1l/" Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-2a45877bd5eso7562045eec.0 for ; Mon, 01 Dec 2025 20:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1764649706; x=1765254506; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Uv873R59GF4pDUvydCooybALtCJ2h5ZZnBbEItimlbk=; b=Ks6Dc1l/9pzgaEt8/YGZoH5xozWj8NEUu2gnBoiCbz6GTWF+ijuoJkim4sIq6692xZ 17+bPREtXTaqKScTikSa1fT8rNQGglF8rJk2u1kDtFfa9qLf2VRxANr/CcONLzO0Xo6T XwlKoguAeVyXzP3k4Ek9e6Y7z5x/rJeLYH1ZL8Pt6WvsaRgCSlIKdX8hb/XYHVD7x8Ff rlXGtTMAbQ5d6vmA/3OmRZiCKsydYFQOtfgt6MHMkXPDwflv6DST/Ta+0vjWH3kRWomO gRlWZXpSQovHu34hbalN5Gi7DOzUYca6yaAKvIGbDYzSjIq7eVFsji+BKtAKCC8qCVry LanQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764649706; x=1765254506; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Uv873R59GF4pDUvydCooybALtCJ2h5ZZnBbEItimlbk=; b=TOwqBqPaq0aVgZenkAw3HcPZXdjpurrLPmGJoELqahm/LHMMsnhzBg1ksaTJMkboWo 93ZltO+CBm/3JAaW4gy7ffL5BJHszb6MdkTlg8lao3Pe8d+dhrfnBsAvPISWuf96HmKD 9rWR44QQg0lGigSjmGnEB2y8Ft/DG9RdUtD8O15NaZgUPEKKkUfqc7GL4HoswNgYr0ol iK1F9lQ45InBGM6vGfXiOhGDu4bavyLPV4slfUql/SxJ1ECIcOuA/RYZDhEMRAiqWfIZ OZJwvgbYr/ZyKxSbNM0t68xBpzj3TWxE4FdRQnPwNv4RpOehUXkX7wEMctax8nPj5S6I ICNA== X-Forwarded-Encrypted: i=1; AJvYcCWQMcwvHrrpR3w0UCKgx2FaSIs4imwa8hJzuKR4NK6aVfXq0FN+PQgZZIs6MbtUue7JgAocRwXFi6acCOA=@vger.kernel.org X-Gm-Message-State: AOJu0Ywa6obaIGrRZM5bSlVJnxusuxNOqR9l0myJ3mnNFgvFbCf4Kete BDmfJ41RSR3Sk1hPIEFspw79W7CQp6PtJxbsClzZy+Kk5BqfFczkvSHIVkEChgwuoOM= X-Gm-Gg: ASbGncvBu9fa5dK5YnuBgNY1GlVyay44IkbIzJAhlglR+s2yVF5oPybBpS2XG8hoows PZX4jkK72u7uVA6/MxyxODraWkidYUJUjeVNuenpcJBQ0A7BTbKHPaDNTJVCEPoqhUTuHIjlRBU WfyUIT9CVNlHNuzxZTOvFFeZllh3QMYLgn1Gw2Do1arnhD4x2euhRYnV2GYS0WdfodfFovfD3Tm NgrPblb0QwOClQHQW/pabEXW7zmLw3IHFkuUkXNB6eyvsayjXAK1Q+nE3YwJvAsZ3UT+tK4So+F os5t0KGCEgzc31eC+yRw/+mmjQi9n7SYeNnKWSzndNZ87A7OuxSY4a9/nCX0Zgyl5tegIbtAW3A K/UhxA21JVQ79oZW5jT1ENqZmH6JFNZPSbfZHqmM3JyRrd46LCPomfjAtBBZXrP4UBpTL1L7t4+ 2IhJYA6zHjVmz5vAN7DQ== X-Google-Smtp-Source: AGHT+IHz9/5MGJKnqrRQBBG71Tv8qvd7//uMmkLyg5Z6fy/L0/ZDmN2B0A/dYTxnaQjFO5ur+16uhA== X-Received: by 2002:a05:7300:e10f:b0:2a4:3593:ccbb with SMTP id 5a478bee46e88-2ab7e661990mr930517eec.2.1764649705538; Mon, 01 Dec 2025 20:28:25 -0800 (PST) Received: from sunil-laptop ([103.97.166.196]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2a96560986csm77426225eec.2.2025.12.01.20.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Dec 2025 20:28:24 -0800 (PST) Date: Tue, 2 Dec 2025 09:58:11 +0530 From: Sunil V L To: huyuye Cc: ajones@ventanamicro.com, anup@brainfault.org, aou@eecs.berkeley.edu, atishp@rivosinc.com, bhelgaas@google.com, catalin.marinas@arm.com, conor.dooley@microchip.com, dfustini@tenstorrent.com, haibo1.xu@intel.com, lenb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, rafael@kernel.org, robert.moore@intel.com, samuel.holland@sifive.com, tglx@linutronix.de, will@kernel.org, dai.hualiang@zte.com.cn, deng.weixian@zte.com.cn, guo.chang2@zte.com.cn, liu.qingtao2@zte.com.cn, wu.jiabao@zte.com.cn, lin.yongchun@zte.com.cn, hu.yuye@zte.com.cn, zhang.longxiang@zte.com.cn Subject: Re: [PATCH v7 08/17] ACPI: pci_link: Clear the dependencies after probe Message-ID: References: <20240729142241.733357-9-sunilvl@ventanamicro.com> <20251201141230.12656-1-huyuye812@163.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20251201141230.12656-1-huyuye812@163.com> On Mon, Dec 01, 2025 at 10:12:29PM +0800, huyuye wrote: > > Hi, sunilvl > > > Based on the above patch, I understand that you previously >resolved dependencies between Link devices and PCI Host Bridges by >calling acpi_dev_clear_dependencies(device). I would like to ask: >on RISC‑V platforms, if we need to manage dependencies between >multiple PCI Host Bridges, could this be addressed by adding a >call to acpi_dev_clear_dependencies(device) at the end of the >acpi_pci_root_add enumeration function? > > > Initialization order dependencies can be defined via the ACPI >_DEP method in the DSDT. For example, if host bridge B depends on >host bridge A, bridge B should not be enumerated until bridge A is >fully initialized. > > > Yes, that should work. > > Regards, > > Sunil > > Hi,Sunil > > I'm truly honored by your affirmation of my answer.Do you think this solution has a chance of being accepted into the upstream kernel? Are there any unintended side effects we may have overlooked? > Acceptance of this solution depends on the PCI/ACPI maintainers. To help them evaluate it, you should clearly describe why your platform requires this dependency in the patch. Regards Sunil