Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2814849lqp; Mon, 25 Mar 2024 09:57:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUR7evUkRuNCvAWw50uepkW76XPcDoW3nCZnqIMAenmT0Jbbut8Q8FcFMTgjdLwROBhdJJ1j8Kww6q+MzBj4oJ52FkcKq1Sud7D/rfK/w== X-Google-Smtp-Source: AGHT+IFA9zPlzUPMdljnx7kk0P+4uBehosPqbpv1KtIaa60naBU36MFJ/HUG22YoJcTCkfc93H1z X-Received: by 2002:a50:d7da:0:b0:566:6a9d:6147 with SMTP id m26-20020a50d7da000000b005666a9d6147mr6334425edj.0.1711385856546; Mon, 25 Mar 2024 09:57:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711385856; cv=pass; d=google.com; s=arc-20160816; b=M57Jxluk2b5sdhQvmHiUZ7qxqT28r2Tb4ODu7BJuody66ebfPPMqqvbB+3pCbK1ZC+ PTRZp0L52NonLgVGD06YqgpnfADcn0qITJfR36H1qDv0jw8JedDelWV3jtTaepIQzFXS eWE6YrkDzPrYBNSUqu3RxsjAdb7nE2N/Hvv9yfDSZiSxwXWgBerPxVD14+FXHCIk7slr +anI2PflC898h8bZ6MUlKvyO+lYgoc++GhB6LO/WGb+5SvS/kMefSCYavdEswWvz/UlM m3PERPi+AcGLpW1f2mZ2fXKaD62zcVMKv909YP1D9rZJydFUX7XgtXeaRUWumHZUuMJ4 NxhQ== 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=UY2viGttd52QxBSAE5FTUmjPJkhh6vniD/bPyOg5248=; fh=0pn/MjOd3hsVAMrZnJF1RkrxEe9BtSeQVWywqRjs3CI=; b=XBpUk+ezlLlX05krBkfCkDBMw5b49fDn22/qvN8nPKs+BIt5CObU6Ge4bB3n0hjbdy yIXkrR8M14+F0+d3OeINiUc2a5ufaL1dvOCw6UiVxyE/OwwHCwIuv0+3P78ABKXjEAXe 3otC7LLfn2dHRDtni48lFodMniBHzAwDbthTIYK2SjRD/YFTihX6d2NMaGoUEN95AsSf 9If61vZ/NVWJovgBqQYbV94hhqevPSPNOJohhwRZfjJX+9DNfxJkPk1B+eESKuVXRSMR gaWuqFhSg2CgJrxJOjn1I1MZzVZ79CW6UNaktWgjNs02O+1nsop0XS0btRyTdQEWaW7E gJwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="K/zf+7yE"; dkim=neutral (no key) header.i=@linutronix.de; 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-117325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117325-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 w15-20020a05640234cf00b0056bf6434ed3si2569468edc.526.2024.03.25.09.57.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 09:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117325-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="K/zf+7yE"; dkim=neutral (no key) header.i=@linutronix.de; 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-117325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117325-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 BCF551F68A5B for ; Mon, 25 Mar 2024 16:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF67713C9D5; Mon, 25 Mar 2024 15:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="K/zf+7yE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Uto49Jc5" 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 AD04F5CDE7; Mon, 25 Mar 2024 15:06:50 +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=1711379212; cv=none; b=qpChTm7ivPjC7XwelIS662MpAjqkgdV1CaJ/mPs9yEqKhbomQRyIWxP6NZO+sPklCJvcJV9PSsUoHtos2z1IfLHQ8W8clZukgMFZd8RIwqHts2I7LRpby5maBzUJBG+kmAH0ug9iUFqLl1/C9HhxUDWomIowCr1wBd3Dd3y9SxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711379212; c=relaxed/simple; bh=5BTm+AGtRn0RP7HkBKn2D2EUDTxHWeNLkYOLk56BiQI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ko9Ddc391Z09uL1gg1rjmfq542MGg7d+mkImJxyxk5nrPUgtkkjFNT2xO3GqdPaUR/Zb2VyFimU5Ft0eI7Sz0JolPc2joMHVvxLtJcqVftQvbvqvc/dQZ8+D8i5kyPA5oiM8mHOSCOy8JxzOvMzuVt3GIWsSZVgwZ74F44xfZew= 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=K/zf+7yE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Uto49Jc5; 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=1711379202; 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=UY2viGttd52QxBSAE5FTUmjPJkhh6vniD/bPyOg5248=; b=K/zf+7yEttbmmljaw/cQWo9WAyKD9MR79Gt9zl4U9jYzGLa+bxe0UpmzKnUUp3jKz9/Mpd dHTm8hc6jnBwM59WgNaWv7Mufdv8DRyEh7JgwhYw8JOKNg6jR5E41pZm6C0AbRkbuvltFF pDJ6Rq/LPDtJ6VkntoKm9XVySGq+qeiHHORJcrNg3/F0q1MyVqcdnRdeu1yFO8bKQA84sz yoQcdYiOmqLNlUoSGFK2GN+hQZBCYMfZyfJ7Q1B/0lcLJ9hDxegaSwlw4r3enAXkTNgUuY mNOYYCEdmPkner/XQjmcle5QEpNKAkTMhvn6v77X8GBX8Yu3vAVM9ee4Z3fBTg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711379202; 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=UY2viGttd52QxBSAE5FTUmjPJkhh6vniD/bPyOg5248=; b=Uto49Jc52SeDUanLBSWBcfzXubKk4aZAk6vJBB2cIRUYRwuQ36qNXfGvVvNphTCt1DMPO1 Nzp+d7ahvuFMFyDg== To: Nipun Gupta , alex.williamson@redhat.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: maz@kernel.org, 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 v4 1/2] genirq/msi: add wrapper msi allocation API and export msi functions In-Reply-To: <20240305043040.224127-1-nipun.gupta@amd.com> References: <20240305043040.224127-1-nipun.gupta@amd.com> Date: Mon, 25 Mar 2024 16:06:42 +0100 Message-ID: <87edbyfj0d.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 Tue, Mar 05 2024 at 10:00, Nipun Gupta wrote: Subject: genirq/msi: Add MSI allocation helper and export MSI functions > MSI functions can be for allocation and free can be directly > used by the device drivers without any wrapper provided by > bus drivers. So export these MSI functions. s/can be for/for/ otherwise the sentence dos not make sense. > Also, add a wrapper API to allocate MSIs providing only the > number of IRQ's rather than range for simpler driver usage. s/IRQ's/interrupts/ > Signed-off-by: Nipun Gupta Other than that: Reviewed-by: Thomas Gleixner Alex, feel free to pick this up with the nitpicks resolved and route it through your tree together with the VFIO driver. Thanks, tglx