Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp851554rdb; Fri, 23 Feb 2024 01:52:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWfTHsOEIYuM4RV1NM//mWxj4cdBoSy6Hohohdu7Ut8n4OpQACPE6H8caTN3wt/fFU24A3odHM0FIroVnVNcBbyc3in5g2vkMiYcuh3JQ== X-Google-Smtp-Source: AGHT+IHnROJ1U6XJzN6sFNxFxQFBO4kIWupLridM98xj1iymHGZvvNN7r9+gkcZjphnwHf/9yy0X X-Received: by 2002:aa7:d498:0:b0:565:7bca:d6b3 with SMTP id b24-20020aa7d498000000b005657bcad6b3mr542078edr.39.1708681931451; Fri, 23 Feb 2024 01:52:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708681931; cv=pass; d=google.com; s=arc-20160816; b=0K/DOHn72WZm5w1dvH6eIosJwyD/7pvb6Ss6pUcYkVQUiHPZpR0Bmo/QCrV7srv5t1 gUUS/Jh6B6KhKfMDxXjp2xVKcifsiGUXlT52uL3i+cLRHredZrktaFXbT94xwq8YfZtu G6L/mzBaWFp7LRLRic64sbL67Kciw1fXLiO7kpw8oB0jj/rDDf/z/JzKIvMLnH6I2jET doON0n+ljrUdiL1ndmLCw4Ou9ucS5UZhUmZ4gTpzun40/43K5Ufn+rsZMaY3WHVNdCN+ dUMMeq0OXxBa0cP4qX/gxh+vJ39h6wIkVhMnaEpUZVX7OzHEE1/GaktsVea6yYsw/j/0 jN3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=CH/athNNCs7W93TaqmWZwdOkjOtZoS0EuyIz4P0rkgg=; fh=AN8RtzigWsQ1Atw3IOLF8aA4kycxoYJ3OS6gA04H0Xs=; b=n0wHzdTBWMow3zNMs0Scp+mHqfGaY6rKfPYvz84CLg/2fTYsLFGgY4WgfEKchlalrd OZk7bDFgJrtM0EtTm5QdWX2spa8HQI3zzvk7D0vwwP72nClnzAZpaOXGfIQqCeyh/ayT d562MO/CNNMavFSMeOZzT1TY2ez7QMdkYyu5s8TKKTluSKWdKlwRpvFdw5K5wphKEa6G ZAT1jyiEdWopFyq9Fw3ytOSIoatl0rKJRoPevepJVc12tsA67WahkVlker3DaMcuIHt9 iUfpeDavgeuMwpWjdLwXZz6SrxEYfp5VeC922OdiEYhv0JhyMedezv/ohoVjG5ZJvL3P s7ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1vu0rbpM; 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-78077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78077-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t22-20020a508d56000000b005643d1f8397si5509223edt.475.2024.02.23.01.52.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 01:52:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1vu0rbpM; 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-78077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78077-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 21BEA1F2198F for ; Fri, 23 Feb 2024 09:52:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C4615CDCE; Fri, 23 Feb 2024 09:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1vu0rbpM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="8oW4AbDC" 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 D1BD8262BD for ; Fri, 23 Feb 2024 09:50:51 +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=1708681853; cv=none; b=hdTPDlsmt++vvGRHrrAph1SJDS5Xf2OsSDZvZBtpwesIarZrv59ZPVYqrh6AbQzKSHaF/6fjNAU+Lpf2d7xA55lSGbX7mhf5XUuQmHCaRSQzLQO8fKRhkGcDiGn9C/T0yIKhX9Wd4jbGV8EGTIfYiFqkyRDAAL1AebwaeeR2v2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708681853; c=relaxed/simple; bh=CH/athNNCs7W93TaqmWZwdOkjOtZoS0EuyIz4P0rkgg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Bo7yx+GEJnWq+2uyXrfcrsqc6qS5LBYTBijsmvA52kgy1Tsx/3NHb6TF228dwtB9YnDLXX9l+l9yKbqTVHA3vwPlMOl0eKETtF625Vnrv4stLz6mb4fQiFg5LgKoFbXArRM72XycCs4RGIpdgebVqU6fiOTIrQlSCwJFQRtzkB8= 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=1vu0rbpM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=8oW4AbDC; 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=1708681850; 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: in-reply-to:in-reply-to:references:references; bh=CH/athNNCs7W93TaqmWZwdOkjOtZoS0EuyIz4P0rkgg=; b=1vu0rbpMdHDB9ZNbu1Ou5qhkEM1KhPAuJXxw3TKKw4e9Uxtu1RxEojcRFJp3xwHqVQlY17 XlXpDRIALrxImAes2XLoBspZ1+TsKoTwTjcpiq8NJn9OYC8N26MbeDitaqF/PfN78anp6/ 0T87YY6/NcmBFsqEUSty8T6O0DGSZf4nCQg1t+ginJyOEx1iXo/yNJDNXe7/fGxIg7Irks ybxh8oS25mSnDp1UtE3duKGEMW7G16qRrTpBu86iiU6/xAHoexUXSRafHHq7MqmPsfd+os BZKG/c81XEYmqq1m26TPrzy+5vL3xtClICKas7ySceNLJdJLG8Qm/MipfdNTSg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708681850; 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: in-reply-to:in-reply-to:references:references; bh=CH/athNNCs7W93TaqmWZwdOkjOtZoS0EuyIz4P0rkgg=; b=8oW4AbDCwGqyI+9FF1LRK/2iPFSScjI6/JyI+jt/b+9T9qpf8baZbQETd3+nviZ/ALl+yQ xnAWvJtS6oDFMRBQ== To: Nipun Gupta , gregkh@linuxfoundation.org, maz@kernel.org, jgg@ziepe.ca, linux-kernel@vger.kernel.org Cc: git@amd.com, harpreet.anand@amd.com, pieter.jansen-van-vuuren@amd.com, nikhil.agarwal@amd.com, michal.simek@amd.com, abhijit.gangurde@amd.com, srivatsa@csail.mit.edu, Nipun Gupta Subject: Re: [PATCH v8 1/2] cdx: add MSI support for CDX bus In-Reply-To: <20240223092447.65564-1-nipun.gupta@amd.com> References: <20240223092447.65564-1-nipun.gupta@amd.com> Date: Fri, 23 Feb 2024 10:50:49 +0100 Message-ID: <87y1bbcxvq.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 On Fri, Feb 23 2024 at 14:54, Nipun Gupta wrote: > Add CDX-MSI domain per CDX controller with gic-its domain as > a parent, to support MSI for CDX devices. CDX devices allocate > MSIs from the CDX domain. Also, introduce APIs to alloc and free > IRQs for CDX domain. > > In CDX subsystem firmware is a controller for all devices and > their configuration. CDX bus controller sends all the write_msi_msg > commands to firmware running on RPU and the firmware interfaces with > actual devices to pass this information to devices > > Since, CDX controller is the only way to communicate with the Firmware > for MSI write info, CDX domain per controller required in contrast to > having a CDX domain per device. > > Co-developed-by: Nikhil Agarwal > Signed-off-by: Nikhil Agarwal > Co-developed-by: Abhijit Gangurde > Signed-off-by: Abhijit Gangurde > Signed-off-by: Nipun Gupta > Reviewed-by: Pieter Jansen van Vuuren > Tested-by: Nikhil Agarwal Reviewed-by: Thomas Gleixner