Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6117023rwl; Mon, 9 Jan 2023 04:31:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXuAxg/3oWHfItnQb/7WebMIR6qEXQR21EhIFxslGqOo/3UNgGPWKAJ4IR7YWwWd+LFg294d X-Received: by 2002:a17:906:5042:b0:841:e5b3:c95f with SMTP id e2-20020a170906504200b00841e5b3c95fmr53430542ejk.29.1673267506763; Mon, 09 Jan 2023 04:31:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673267506; cv=pass; d=google.com; s=arc-20160816; b=thCisoUUgpuDejxXqsPJrFw1Rx2SpXToesYkaGHEfp06KbvJpb0SY1fks2vYjNvByy x3vBXYJniw10b89139xVqcZRi+QNio1iAxFzw4DsKIjYiqkJJfe70s/B1GATaoPJo3Jr FWbRqtA94o9ZGTNMpaBzl8kzn0iOrlbX+EgnnrF9oVoINOyHTQrD8FVLmgwLN0zH07/L feAPwllaz9VR6lMkINjkduNSfdv8jNeITSue72zuM0wV3KD+Kud7xKtNm7DpH9jMd0i/ u64a4tJN6BVdnI2Yb1rGPXMiaGb4EgKxa+bIKwNp0hCFmEsJKXZ99fME0m5A+AtK9yVX Hsbw== 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:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=qFdoytF+SlfZ7UkU87+YfEll6NzGTxfgqnWYZSYfL1Y=; b=rmwHm530KMiZIB6DTN0nWeHFnL6jWRM7Rng3VvgJL7kXXBUWi1hCVBsF0R7VJBk8+i lany2IGO4CCJC71kY2MGk3Eme+flw6N1GNCoHvwxsT2Yfpa5iezleNywOWiDPn6U8pwN rs/Q8r2dp8MEjSM0iH9Wme9U84hqPodmDZxzFQmLb5MbjRTtIGC8D3EWY9KJRfjVIh5R ypFQwm9oUtZthqCTT+mzSw4lePlwYkx0vGBKntyjaV8kC0m/lHk8cwlEYf773ot/AbZQ 6JgAcdVn52n//On3Eu2ixVxmHTvKxRPBQISA3XfiLC3vy8wEkZHGQ6N7QeGXsVPxZ4+A nfWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=fjBH11mm; 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 ho36-20020a1709070ea400b0084c504a1160si10129054ejc.786.2023.01.09.04.31.34; Mon, 09 Jan 2023 04:31:46 -0800 (PST) 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=fjBH11mm; 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 S234582AbjAILrd (ORCPT + 53 others); Mon, 9 Jan 2023 06:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234590AbjAILrb (ORCPT ); Mon, 9 Jan 2023 06:47:31 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2051.outbound.protection.outlook.com [40.107.243.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8489BDF11 for ; Mon, 9 Jan 2023 03:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LldrbjKBpUolTukmZ+mld3kNsKKbWAzzLGxSQhv9oMUz2B7zK7279BY9cWDWPRoL4ZqBARLJm3dVhJQT8Q45hTElZTM6jLXNpGxYcDlP6x3xKNKrEUVtJP2Nu4EXBCYEEOLqU5dGA6zuau9B0x/f0enM2GEpIq6FbhSAph4K/KH0nCd1l2tQvyzFam6U+W0hJANUYxGzUDBfHydLmGza8xDQrh8nk7mgE9sqsu6YWhDT8mKYZlCiWReP18KPEe8ncEDXsckPZzSdp9dd9GrTgfZBN4hroSL2O3GAnuCRBIxRx5dS3bPk/cPmKl3MaJlAvRh+hmt0amkigfZB/CGu3A== 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=qFdoytF+SlfZ7UkU87+YfEll6NzGTxfgqnWYZSYfL1Y=; b=lowzs0AiwX7cm/3X9nGzv0aF3SnBMLdOyxrXstuQZf19J5+3qUiVAiMB9f5e7qfPWdWULxbKzejsW/XgmQ7LOdx6WM7kzWNsxl5/7X5FlPGXnU5f2RBchtQAMdRkZA9iZzU77yFXXn8uTP8v9fLpdO7B+7pigok+TN7RJMLTXsgLsvdMrzTLQPiAs54ghZKZB42VB+qbLJNvK3CmluXrAaN3vAMUWUvFhRmJTZ8OXz8/AVm0b/+mqNqrZ+DyqYbNhRoLDAtQVe/5H1vH3PHMit9wex43u3idtKAb09P02Rku7AhdLUCtBrjzLul8yzLXlqZyqF9YDpK24FmLrTmfAQ== 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=qFdoytF+SlfZ7UkU87+YfEll6NzGTxfgqnWYZSYfL1Y=; b=fjBH11mmSCcJUnzFW9hUFrAN28psRPMO1S+75BX0Gk8OzdM5AG4U3yGQJpTA7G1bZhLFBMHO8q7lznRpyaV8gfThlnkTYxUDaiG05lnDreibu8q2ncJZkHtc+wVLZR6YfhP4sgdE8yzeyQZcjj3h8+NbA8IRM9uos3K1I5MDcwM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS7PR12MB6048.namprd12.prod.outlook.com (2603:10b6:8:9f::5) by MW4PR12MB5667.namprd12.prod.outlook.com (2603:10b6:303:18a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Mon, 9 Jan 2023 11:47:28 +0000 Received: from DS7PR12MB6048.namprd12.prod.outlook.com ([fe80::4014:79ea:392b:b4f6]) by DS7PR12MB6048.namprd12.prod.outlook.com ([fe80::4014:79ea:392b:b4f6%4]) with mapi id 15.20.5986.018; Mon, 9 Jan 2023 11:47:28 +0000 Message-ID: <33da0e13-ace8-f6a6-fcf3-611410836969@amd.com> Date: Mon, 9 Jan 2023 17:17:09 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 01/19] iommu/amd: Remove detach_dev callback Content-Language: en-US To: Lu Baolu , Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Kevin Tian , Will Deacon , Robin Murphy , Jean-Philippe Brucker Cc: Suravee Suthikulpanit , Hector Martin , Sven Peter , Rob Clark , Marek Szyprowski , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Yong Wu , Matthias Brugger , Heiko Stuebner , Matthew Rosato , Orson Zhai , Baolin Wang , Chunyan Zhang , Chen-Yu Tsai , Thierry Reding , iommu@lists.linux.dev, linux-kernel@vger.kernel.org References: <20230104125725.271850-1-baolu.lu@linux.intel.com> <20230104125725.271850-2-baolu.lu@linux.intel.com> From: Vasant Hegde In-Reply-To: <20230104125725.271850-2-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0148.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:6::33) To DS7PR12MB6048.namprd12.prod.outlook.com (2603:10b6:8:9f::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB6048:EE_|MW4PR12MB5667:EE_ X-MS-Office365-Filtering-Correlation-Id: 934a1c70-0bc2-47eb-508d-08daf237484b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h6WKzgRc8ZCrhy1H9EUlvyJRvn+kdUHbb+cycDW/lfLjlDJqjVEpIlqPGKKutXxqx8xpqT7Si3Zo05DFnXqMpcLXUMvWz6Ubx+Bj62aSJGT8pAf4X4DDdut1DwG+hjJfyVqWqPZbF3VR/AgFOI80mdaaWZvladucDqmus3FaeBJMY81flIqctM/VPW6fQrabZO58uOrkV6o7D4PJp6rsI/2TsWeAS2fdTYim3QyCeVLIqobiuCHvmC04c8SffJxcaSWM4ZKcIcnOF8/3MUkpb2AJ9Y5fJwlrQsO5EwZZMThdlCR+WnvotS2aeyQIPe/U+0uDrPlOE90fMESGHtom2zOVKlnmI/MpkDKuHoKJ5Fhjfi2qmTewoAZf7h/Ur8Rd94i8k5OV52w/8GiCnBq6zrZHb0K+XtBDH/3u1DOR+L2eVwO5pdjVqRNqQGXl7Fz5xyxUtfPk+faHtmkCL9F9lvUI/d+yfB4cwF6pv4a9bRwQW40qNmc/XfnY5qOFhjifAoiqyBLRFsK00dUKxFMA9Z8w3CYWs2BPXEaIHLfewDLb3PHatcO/CTR3TdWf8qMZdXN+oSKgScYsOqhxbOBxccuB+YJZVjb1HEaovqK/5tIs9bDR5jdzGgbHoOevExnTTwTDY2VqcHMu1YD1bbfZ5cQbREHV6tD/kagAKbqoKBhVG2R/kN0ycnMvRbk8OYHEytfbgyg0e9vKTAdFDqt2pG0AO9Vd5czEJBYjh3HstsA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB6048.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199015)(6506007)(38100700002)(31686004)(53546011)(6666004)(2906002)(6486002)(478600001)(2616005)(4744005)(26005)(186003)(6512007)(5660300002)(316002)(44832011)(7416002)(8936002)(36756003)(86362001)(31696002)(41300700001)(110136005)(8676002)(66946007)(66476007)(66556008)(54906003)(4326008)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q0x1d2haVVI4K3FEUHNVODg3UC80OHE4QnVXK2UxMmZlaGt0NVJsRnlxOFUy?= =?utf-8?B?NitiQm1TbzV5N3JLc2psazhkSVVoaEpsemNsa1c0Vnd3dnA1R2R2MXlCN2Nr?= =?utf-8?B?dDFSZGkyVVJSWlI2TE5lcVNtR2l1NnQzM1J3RHBKMkVaMTlEZUxFZkVyYm1O?= =?utf-8?B?MlFaWVplNXMwRjExc0VRMHZ1SngzYUc4T3laSnJOR2RFVTE2d1JITGpwL1Qz?= =?utf-8?B?bG9XZU9WL2Q4cGhVZ0JwL1c4YjhCL0Z0aVlzYkVqeDV0dHlEMFNwbmtteGFU?= =?utf-8?B?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1yZ05DR1htT2VKbk5sZkFUZFNu?= =?utf-8?Q?91+jitKclNA7rBn8XpDUvd0y5?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 934a1c70-0bc2-47eb-508d-08daf237484b X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB6048.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2023 11:47:28.0270 (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: KIcqI7zt4yH0YZ4bRKeE4orhecba/+nrU8vTLmUHh4NLp6qJYstNtO8boMULZJAL6lwnfePjww7KCyLh6eJ79Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5667 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 1/4/2023 6:27 PM, Lu Baolu wrote: > The AMD IOMMU supports default domain, so the detach_dev op will never > be called. Remove it to avoid dead code. > > Reviewed-by: Jason Gunthorpe > Signed-off-by: Lu Baolu Looks good to me. Reviewed-by: Vasant Hegde -Vasant