Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15790777rwd; Mon, 26 Jun 2023 01:05:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hUqT3DhRMzDHvaSI6Z6wKM3rl2OirK5wCjIHyMoVcf86AkP1EU5WVX6/K34y5L7chUMZN X-Received: by 2002:a17:907:928b:b0:973:cc48:f19c with SMTP id bw11-20020a170907928b00b00973cc48f19cmr18758352ejc.56.1687766733182; Mon, 26 Jun 2023 01:05:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687766733; cv=pass; d=google.com; s=arc-20160816; b=OpMkr6+vyw23HFxJ3G+0zeEIv3tjbygFd9pVoBo0WvZ9abextbm4aZ0WNDGyfB2T6U Dkf36Z4LyzcLTg1ZjglUuoXpTTwOSJNVr4X55PBPWTbDI0iMKE3xVLb3yJYNdGJu46hf AROuwu6A8X0+iTG1xQU1NQrqp/bbro+sWEEZaCAOQ7IhKSUimyNNqn1LYbgnFWIm4W/r f+B8j7oUS+cHUPU9SsXdfQDFPEy7RHE0dEuJOS28aWWGYOafLZOy1fWCf4PGmx4KTaI7 zwnWG48oC8b2d5gyJMm4lYtxhOo/ONjxw5GFNwiVhgZ7N9WlyUUmg82pD+274U/MIHPO lq7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature; bh=/0EOgxJ4FroKoxK7tmDLfVftt5OxKkx97X0QBr7xE/o=; fh=kZadoQv7N0zfGAWsIYt3z58nVQPeHbG+884SBPLIS4Y=; b=mwHMtFAhhMJh++YBvPFixuk8T8EMFSc+ddwyt6NLdY4K6TakR7EvyGjP4oLVHgM8rD VxFUhhoTzkLdB4PMFvG1VhV1qDQZRB43W1xc5QWoiKKl9LnJ6kXm7wvrdjTf+8U4nC3F pJZLXX4GqhW3/Xd5twvhksRSQy6ZQbvkD3JstKJnLjs+yO/z4VjIFYpEzauDkV9lynSg o/R9pUX+2A41jYHSXpKsEGR2MAvWy3Mxsdw+1MmlS3UkqFGbuwDd7FWzgDqnniqBRrZg kh8oaWjo2+v4rbzBm6a7KR4c/zxWK2jLAFkQmMS6pnd6vB9Fgddv+dMEsEcBsJOJrEFX WE4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SxAbGNDq; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a170906260900b00991bdc48797si804678ejc.95.2023.06.26.01.05.08; Mon, 26 Jun 2023 01:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=SxAbGNDq; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbjFZHyq (ORCPT + 99 others); Mon, 26 Jun 2023 03:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjFZHyo (ORCPT ); Mon, 26 Jun 2023 03:54:44 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2064.outbound.protection.outlook.com [40.107.101.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FAA8196 for ; Mon, 26 Jun 2023 00:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m8ANmOaBWBHfRoYf4aFeE/I54xTyfhBta0gJkqQbE38BIQ0+jnjU+Qs7Fo/gPJi9XALhc17kEEXLbB6w1SmZ0HEXwAHnS/HFi8GmLmZJ6n2RI+tBCbLXH9QllC0BVPLW9mXbYPabLXlMZe2lbou/Smh0VVPsH3kna1leW9W/A0LU5VEihpY+ViRm3sFi8sVsCHq8yx5aGOb+6dH4B03oZuQ+th3KCVBFEGuCRAJCoocxtu2QE6J39eYK2qLubBtaO1BE+TyD2vJiLEYXauPccQbLaXruDvqajMGu1nJUdy2VNwhe4ohLfHrlh+MxCi10gc+3v6U7mIUBhJ4hzhQumA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=/0EOgxJ4FroKoxK7tmDLfVftt5OxKkx97X0QBr7xE/o=; b=ZXZLjW0i/v9ig2QBumPIaRVVKCONPeC6UaMQHnXtPkum7T4w0KMueygUuGaA3ApQhDkGDIaSZujpoiGkpsrKgjHDYqao5Xiev8k2x16QbMHW+Ur4t0y52gh3kK1lpJux6p1u/gDFXVHjll3T7lYaiBQ7r+uWFETsvKWYVuJ+r2JxqgOhD9UlnNkcgN/uz0amO7uNinefONv3o05HRnrO8X3VmaMloVWVP6EqaJ03OwFrqYDpzKQ+LVvCc09U7x8Wlc+B3VuEJqXJQebK9TOzLpD165tTviwti8mT+WQCbv/jaMNaBlXUMKUh8FXliB61eQFgFPZ29E1Kk1lOQEYoYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/0EOgxJ4FroKoxK7tmDLfVftt5OxKkx97X0QBr7xE/o=; b=SxAbGNDqlsB4TGA57JVeIOljXhGK20adlaecPaelXbORHFFmucEzz48iE95181qdbG2TmUywNxBIZgjTXzKZZ1uPElcAfhOMIVruBeNcvmFWgaPIZA/ZJ16AMp+PnghMvObOYYkRYnQ4JWFuKU9z7wBl8rfaXuKa9o9QR2lUYNk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH3PR12MB8308.namprd12.prod.outlook.com (2603:10b6:610:131::8) by DM4PR12MB6616.namprd12.prod.outlook.com (2603:10b6:8:8e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Mon, 26 Jun 2023 07:54:39 +0000 Received: from CH3PR12MB8308.namprd12.prod.outlook.com ([fe80::e452:1914:1054:de79]) by CH3PR12MB8308.namprd12.prod.outlook.com ([fe80::e452:1914:1054:de79%7]) with mapi id 15.20.6521.024; Mon, 26 Jun 2023 07:54:38 +0000 Message-ID: Date: Mon, 26 Jun 2023 13:23:27 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2] cdx: add MSI support for CDX bus Content-Language: en-US From: Nipun Gupta To: gregkh@linuxfoundation.org, maz@kernel.org, tglx@linutronix.de, 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 References: <20230518114418.18025-1-nipun.gupta@amd.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN3PR01CA0042.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:98::7) To CH3PR12MB8308.namprd12.prod.outlook.com (2603:10b6:610:131::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB8308:EE_|DM4PR12MB6616:EE_ X-MS-Office365-Filtering-Correlation-Id: b2688783-61b0-47eb-3e16-08db761a9754 X-LD-Processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jla56y7EHX+SlOw6qEQ3eHR9srYxKYEszP8FjzdsPfirzi9hXnhaKol0yIAcj5bvJxdBy0KSlo8iB3cROuP8RyPSskKp4jwMRi4OvQ87MX9+XGuhM0IRcvHqtXslMylFI0oeoVdfr9UiqcALhq/nYEFzO2w6L1hUTxJRB4hPdlv2Sh/+c/HzrK4r9qxCDgoM4rV7VheslNU92/wZSP/qwoI1wOjjrHJcOoek+w8HP5FeuyBzEszOB3zmiUKBLQ9FD50ICMRWd7nEt81oXVcoEVzi2gI+eOwALrJs8pBb91L4f1Q0SsscafQUbof3I083QgepnH3NJFQHx5YUfx/7QLDsMne77/bNa1xW3UOrn4N6WICHXvboyMgUahMbN8PfLYoDILlbTZaV2H8OdWymPnxnoAu5daLE7m8DycADCnB4lviEC8mJX//wFp9T32i591pocv27Azm6XmQhyiKwWQTCScnA2eEuH+r7f6EZ6xp63Dgn+EVnV8VuKISUzgGdoirEIPGQ7r8ImiL2/6/7bhaOVJa2OO4MlHCSpSvYu9jgvQfIHvDb1pynrGRyvuFmhyRVRuEKfiQG4sS+x6ag2BtqFvGHcEvtbZORzKTj4iWBsEGoGQWr9wyEbEOFFfKDon3gT4oDLuOF6IDyBTRhdg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR12MB8308.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(396003)(366004)(376002)(136003)(346002)(451199021)(6666004)(6486002)(478600001)(53546011)(26005)(2906002)(6512007)(186003)(6506007)(66476007)(4326008)(66556008)(66946007)(316002)(44832011)(8676002)(41300700001)(5660300002)(8936002)(38100700002)(36756003)(86362001)(31696002)(83380400001)(2616005)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dFAwMDlYUzBneDMrNno0V1NtVnQ0Rkl6YVUyS2EzNmRuTmR2UmN2THZ4cmg3?= =?utf-8?B?SHorbWlhUXY3dmlGOCtGb3JQaHZQcUEwNkExQWdjNTViRmh1YzkvS1JMQmNw?= =?utf-8?B?YUJLeFBpSXhKcDV2V2R1WFhqQUh0S20vQVE0cHRPRVJqa0xUNDBRdGtZa0E5?= =?utf-8?B?YzdrZUowUi9wNmdaVTd1cjVlMnVtcjd0Vy9Hc09GTEcxUm4rR1ZXbmlXSTFR?= =?utf-8?B?a0orMGhBOUdia1o4L1hpOEowMjVQQlBlWjJuenF0S3EvZTZEMFlxUXZseTlr?= =?utf-8?B?bjlpdUFCV0VTSCtyMXVKNHlVSVRveVFma01oSVdoVzNHOVhqZHl0eWVJZHIx?= =?utf-8?B?SGNnZGxpcm1lMXlrK2FjVmhXUXlDNTlGTkR4MnZCaGVTYzh3Q0NpM2hXandZ?= =?utf-8?B?bGdNaW9FdDJObk5wZ2s0V253bzBIVG45SUgvVk4wRUk5K24wUDN5NmFQRHRU?= =?utf-8?B?ZmpPTWFyYk91WWZtWG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y1lrRE1KS1NzWFpRMjVWYy9nZ291aVBLdFVJUEVPUHZnZ1dNWmZwWjQwanJn?= =?utf-8?B?c3Uzbzd6Rmh3cmdzNVRkamREdFEvKzRyRWk5bDVYTjI5MGlHQnhFSVFTeGtZ?= =?utf-8?B?YWVJamViakFXSE9tV1NuWmwraU9vVTZxOXI4eUdoL0U3ZG1KMVBjczQ2NTVK?= =?utf-8?B?TDFuSlFIQzl2U1cvYzdZSVB5UXJNY2pTYlZHODlnRWtKT09sZDg0MSt0ZkxR?= =?utf-8?B?S0NYVTNtWHo2VEpWYk05c0ZwS2VhbnZJck5VN29yOXVobU0zSyt0TEgzLzhu?= =?utf-8?B?R0FnWDdoZ3hLU2d4U2F4bk41cnNGbWU3ZmtVcWZ1SjdTaFV1Z3IrUldEQkE3?= =?utf-8?B?WklWWk4yNjFIYkxJRnJzOHp1OTlycWdJT1A5WEpXUjFkUTRnMnVtV3pKMDVq?= =?utf-8?B?b2V3OC9TaTZKNkFHTDlqT0hvNHlvenMwZlV6UFl6a3c2STJOZE5LY21uYlU1?= =?utf-8?B?L2JRalR4VlJid0Z2RU00VDVKY0o0MG1GbkZvY1JYL3NjZTBaSmVPT2x6RC9w?= =?utf-8?B?UjJYR1Vqb2QySU9NS0ZUNlRzaUNpMzVTSGlUdFNNSTR2SzlCNzJGVGlXdkcz?= =?utf-8?B?SHZPbWFyMEJXUTBqbGNFdjZkZDJzd3VjNHc1SlJ5TlZpRzVmdnhCcE9pUTZk?= =?utf-8?B?a25uS29iTVdnTjRlMGJGc0laajBoR3k4Vk5UVGI2V0d5QU9oMlhXWG1XVlV6?= =?utf-8?Q?MIrEeHrTTPoHFitOV7oDQmx0A?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2688783-61b0-47eb-3e16-08db761a9754 X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8308.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2023 07:54:38.4547 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GV+217Lh+EpR/bOQpgbuEgqYS89eaI9g/57q1xbS9qC7YVEZg773Owk38Qa0t7wa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6616 X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/6/2023 4:32 PM, Nipun Gupta wrote: > > > On 5/18/2023 5:14 PM, 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 >> --- >> >> Changes v1->v2: >> - fixed scenario where msi write was called asyncronously in >>    an atomic context, by using irq_chip_(un)lock, and using sync >>    MCDI API for write MSI message. >> - fixed broken Signed-off-by chain. > > Hi Thomas, > > Did you had a chance to look at patch v2. Please let me know in case > anything else is required to be updated. Hi Thomas, A gentle reminder, could you please have a look into this updated version of the patch? Thanks, Nipun