From nobody Tue Nov 26 05:41:59 2024 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023112.outbound.protection.outlook.com [40.107.44.112]) (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 A1A321E572C for ; Mon, 21 Oct 2024 11:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.44.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729510511; cv=fail; b=hHzR2nmQghyDwkTKitVCBEvbaxIoU9sMeu1ASEBNqX3DOzvqPWuYBaprH2QeJ4pnMQ3+lS0fLWCw/Z0RvklAmwf8tnYO7gk+0z7JgcZ7FP6bc4IUuXNLREDmZUyvSVaryHdU8wEZZmfC+caeMzYfXYvLbtE2tJFZE0+ZrId1TfE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729510511; c=relaxed/simple; bh=PAHPule+IOod5p2Be2xIY4JdGBpyoKZrEhI5DXXxoFg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=omV+s4lD42TIJfBo17Cn8Irp2pblPuINHM5S0YY0WLV7eIxp95pMSIgf+DjgiY7F9ATzJolLwWtk5Nb1ZBlUhvPsc2z5+DTStDBj+aVBzsZY9/6HYbDAmDHHp7WAHVHQD6sDanp5rK8IZphBl7r63DJRCYe6gGElt/q636XUkdc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jaguarmicro.com; spf=pass smtp.mailfrom=jaguarmicro.com; dkim=pass (2048-bit key) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.b=LZlat5bv; arc=fail smtp.client-ip=40.107.44.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jaguarmicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jaguarmicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jaguarmicro.com header.i=@jaguarmicro.com header.b="LZlat5bv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pdHAHEw1o5jqcasr6bRrXr1DuxniOgKH0FrBerQF6llQMyt5j15d3cMBtnTfz10ibiwFf5JoVFGVlV5qCXygZSrHh3P53QYqKCmPmKvWT8G0AZb/EkRUyW5rxw3iWc3D7mszCPU5yXLbB6+vcj9tSiOHYM+30wOGn3ScezzcGMDtX885pHj30yj+vv7pSKZ1s4nfiZuDv+17UxJLkYhgHyaeJ4E40kinwkgf+b4/jRtlkGFucHhkWUIWccNDjLq5eeG9fnhBdz+eYUv25Bq3hWPA+UjNfndDdJzcDpluBGgNpJc7Cqe8kPs/XIy6338oE7FMoNvVbnTV2Q+0PNXC2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6mmKPPbs8kEPgx+jlr9v+RPc6rOBRQ5m+AHTD1kzrOE=; b=KmDJTifLAbAP5ZHd3EOz5xS5rPC//nk4+UXTvTDXSEmzcuxLlgJYxbSFSnCtWKrwm7CA4+9sFOIKOh+r/1vMjP7R96scJBQKuAcFpFV4YGjV9zLZ3TtuajiPlAZ/Kllf5sfozh7OQNl5Uq6ZZHgmSNkKOECbGU9txa+juw9NAlaQPtJDLH0N2LdR44XUq+aALWXCyDm0AJcpcHZDt3FYWEPn2rr7ysv3gQmQLZXKT0B02mfknXSFAtyZiR2dfw0C5gT1eqOEK1/iCsCJCyk6A9KMCTdJJlC+zKYg2rECCoCtxUj1npqVp+nJK2+Wratr/K7grMqEBRM/PKGgHm7/yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6mmKPPbs8kEPgx+jlr9v+RPc6rOBRQ5m+AHTD1kzrOE=; b=LZlat5bvWmsgmuI3vBbkrgMrZf1z9iHdZg30cwTq/OYCMSJT2qa4fZ9BZQ0rexKAc8YN0VVOJW9H0ck4mTJmYQIdkXwiDMC+6kFftHxwjXwTGEZPb7UeAQDl/nORKGoyo4U4ItAlVzpd8lLMBf+RP9ti2ThH1ODdBoY/nUDfoSpX03H0uWT5skUCL7Zy4+FKzGHLEaE3kCOlt4FvryFDBwjnxw5qHJ3QvBQWkYlqdjGwsrmr8JYyQcFgHD0wWInE3sAWHBZFXZeFMi88mz6vEdZAWagWFBTIK2Mm/P5gqYawXk9s0pRPge2KJFCWAl4si8yNLUk+HXdnW5B1hX7Czw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from TY0PR06MB4984.apcprd06.prod.outlook.com (2603:1096:400:1ac::13) by JH0PR06MB6798.apcprd06.prod.outlook.com (2603:1096:990:3c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.15; Mon, 21 Oct 2024 11:35:05 +0000 Received: from TY0PR06MB4984.apcprd06.prod.outlook.com ([fe80::d3ad:fd6a:a537:55a4]) by TY0PR06MB4984.apcprd06.prod.outlook.com ([fe80::d3ad:fd6a:a537:55a4%4]) with mapi id 15.20.8093.014; Mon, 21 Oct 2024 11:35:04 +0000 From: Angus Chen To: joro@8bytes.org, will@kernel.org, robin.murphy@arm.com Cc: linux-kernel@vger.kernel.org, iommu@lists.linux.dev, Angus Chen Subject: [PATCH] iommu: Distinguish between sw-msi and msi Date: Mon, 21 Oct 2024 19:34:48 +0800 Message-Id: <20241021113448.1894-1-angus.chen@jaguarmicro.com> X-Mailer: git-send-email 2.33.0.windows.1 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SG2PR02CA0047.apcprd02.prod.outlook.com (2603:1096:3:18::35) To TY0PR06MB4984.apcprd06.prod.outlook.com (2603:1096:400:1ac::13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY0PR06MB4984:EE_|JH0PR06MB6798:EE_ X-MS-Office365-Filtering-Correlation-Id: 275890bd-119c-4247-60c0-08dcf1c46845 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bf+Z8mjeBRkXL9xveXo4k4XsUHZsxO4sZd79mEiCpmmUuOH+CV+mvJBfkhCu?= =?us-ascii?Q?+4VPgVhF8TW0C8RwGh/MIoxX3l7ECVDOnNL1tny23soqlEW6Uf+y3UpT01w6?= =?us-ascii?Q?zLeQqmhFdKx2sRrM5fq8HtTkxgw73IcAoZfTOlS7EOULtStm+y2ErYAAV8be?= =?us-ascii?Q?aY3WzFFhPm77WAmdVw7Q2iO9/RBblRNeaXpg5JkSoAi0RA9CCWfWMt0C439+?= =?us-ascii?Q?zJBgJQEpoK0/gMNp8JAaxsJ6/ug+4GyFcMJsNtr2fzQHFjeZle+2T4IHNNGg?= =?us-ascii?Q?cEZjAVUnJuucBlAuXPfUXesaxzhF4H1U9op7gIVvbvg0Mwn4FYY44b6quK9N?= =?us-ascii?Q?4Q3nrrqmdK4d/Vzv0XT1zbe7wG4kXrIwqQAaJMG2k/iydpYkchpkI508LIuH?= =?us-ascii?Q?j+5u+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ZH63A3XGHMfDwJwbjx6IJ?= =?us-ascii?Q?hFGZbHzsCj6VNslvNmPjFxppkHUOeC8bln03zo4XDmxu68FKE/sa0/RP78lB?= =?us-ascii?Q?SQ9TD3U=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY0PR06MB4984.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?uZ0ACRbGl1uNwRUo+QpcWSpcmMSfbidBmd0Nxr3bne5lPJonKfhKL2XtdAzP?= =?us-ascii?Q?NUfLkVVn8I+YAbiHK27b/OODXBJLn07Gk7IMge6GkK29TQInRIzVJgK8p1En?= =?us-ascii?Q?OUE4vC8QCo73rl84DbZ0AOKZ8t4G1hpNpWEI9Ssflfrgp7u2g/rJ9QVsunyC?= =?us-ascii?Q?rXdK5wU3zNBeJWB9dhAoJtGIRgXxZJoB2TSwWL3MzZTQxSdRE5nCyKIgD+41?= =?us-ascii?Q?vrSwnQqAM7sCUw6UsajR0sm23RLniPixjGWtInllJQ6b7nRC0ia6Za52gzGi?= =?us-ascii?Q?GR6ps0cYe+FlzYrrKJ4iuQGVoxQ5nMSVqma+5WdtKRb3Qpwdg9gu6DrHLSLY?= =?us-ascii?Q?iqxvMxa9ZaxVnyzP3VeAIPrx7zSrOIk0Y7rbEDKpMVI3vpapjmujWDXiNna2?= =?us-ascii?Q?ShGHsFjan+wncF+YQuxAgGRN3jKAQSqelBTVV8PFrIzm1J1uGcyQGT9MeaQF?= =?us-ascii?Q?O6frTrfLL2sktO0oGkKlcrnka4Mo6RZSAMWIcrTfec2LM6iDZEgOloNQFjO/?= =?us-ascii?Q?FIfyXaMriyuCbWi1AUhjplMcU3R1c+DGYyoOMpI8aS4nxHiLTGH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CJmEuGZlqM7yelsYK9si2YTIcYCM?= =?us-ascii?Q?/XAcgjASE65itue91V86FqpZJz1bo9ICm8ncQdAygy+BjmTLd/BXTFC5X9sp?= =?us-ascii?Q?VCEatLU7ZS/veEUsPXqoItVC271bMguSQIZlkqZCbXijRIzeZPLXmHP8YumK?= =?us-ascii?Q?5g=3D=3D?= X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: 275890bd-119c-4247-60c0-08dcf1c46845 X-MS-Exchange-CrossTenant-AuthSource: TY0PR06MB4984.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 11:35:04.7455 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BzAAVs4V+FT8bP+MkI8MIL47LqCikshKDitCDTaAvWzdPorPy5cCnpR1ePfFbOREnvKi4nTQnBxJDVQXm+OH9y0iyqKBQyBQ7pFVApPW6Vo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6798 Content-Type: text/plain; charset="utf-8" iommu_group_resv_type_string use the same string of IOMMU_RESV_MSI and IOMMU_RESV_SW_MSI, Make a distinction for these. Signed-off-by: Angus Chen --- drivers/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 83c8e617a2c5..8a2bbb5c4a91 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -84,7 +84,7 @@ static const char * const iommu_group_resv_type_string[] = =3D { [IOMMU_RESV_DIRECT_RELAXABLE] =3D "direct-relaxable", [IOMMU_RESV_RESERVED] =3D "reserved", [IOMMU_RESV_MSI] =3D "msi", - [IOMMU_RESV_SW_MSI] =3D "msi", + [IOMMU_RESV_SW_MSI] =3D "sw-msi", }; =20 #define IOMMU_CMD_LINE_DMA_API BIT(0) --=20 2.34.1