Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp211177pxk; Thu, 24 Sep 2020 03:53:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPE+M7OCRp8P+755n0fysp0rdoJgmrtFrC2MOv/ZIYFsO8R3+0wrFuJ5mVAJ+4xpu0H7ue X-Received: by 2002:a17:906:4c89:: with SMTP id q9mr374495eju.290.1600944794369; Thu, 24 Sep 2020 03:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600944794; cv=pass; d=google.com; s=arc-20160816; b=RdrvUjAaZz+SNJbPOHSLwy+Bb6gDd8er1df0WKiizLhkIyNl5q4Jb57VIrRRjPax5Q GfrNEeisylfIdcKMun/axy3qy6+NVDw3HqumZg7P0DCNE44kDcvSxke90QMULVtnCunA Q4KSdwQqG/QAb4sK+y3ANvq56DyxaZBFZUPO+csKI/48eAZvz+9g7f+YHkAgT2n6EiNW 8A2t+QBRZvi9K9PWywYtXFMjeOt7pvNDNCcZH102Ku+zu4aRXELezWl1UjcVJx8y5QNm 0b3wNy126d4lanbg4uqyqx4ogamOx4Vvk2Km09efWWX1INUXBKevMU2avTe6LK+8c5R/ iePg== 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 :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=YcCKoh9lnBfCzTA7Ims08zMzDRdcIc8kFN2fp8yqDZY=; b=potHbU2Wl5VIDUq/pbb6caum9Ur1EHau4ieX9M2F0GB5s4K3gB59OvCZsNLK5ioCFq uvX0rkaJK3XMyDyW095l9J3PpPJG2ai/dorDZj4XA5eWNvgzw22IF2oZFoznRrvVKl8t sCs1SoQb6sbGEi5hztMtJ0QsqUJ4DxzDOulKD+5seUJRhX3YFoyhKK8/MlYc4fKYCThF hr9KyIXzi60/0qOFW7tnPzwW20tsfc6uZBc2Xciw6lMnVwuk5H5UiVPDLY1T6CBSCRHN G1W4/+/r7HA5ZWcdwk/7RT0ZeFZoYgs0qWsDt+7v2owoOz7NdYZzwM7LBsgyiO+fln/A J4tQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=bWBa5D73; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx12si2290175edb.298.2020.09.24.03.52.50; Thu, 24 Sep 2020 03:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=bWBa5D73; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726516AbgIXKut (ORCPT + 99 others); Thu, 24 Sep 2020 06:50:49 -0400 Received: from mail-bn8nam12on2075.outbound.protection.outlook.com ([40.107.237.75]:12705 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726415AbgIXKut (ORCPT ); Thu, 24 Sep 2020 06:50:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZsVya4BujNekHyvNyNDGLEAvUtuKnDiZiuVIh6L3QSD8r7vctsrefMlKbj9X4CzUNdFoCeyemuN7VtjEUUaQHwLzVZI68gPmJ7ZAsauVorKLvAHYbPRK6zVKy9Wk5eYh4N9bf60a0/nKjbbv4Pupdi4S3iv4vqQgijlWFnSdBctKQ7ZPeHKmFbEWbMCcqwskqEyOBfEF5fImJ8UjA1Vz/I8wtb6t6NEg5QuI4xq0Z7C7s+NmJdHS+6IYnrtEEQ4bATprCEEeMVGMq4+52avCaJOPmvKBGL2mS3OWjF91QrK9GL7fse7nhyp0ik+f1gOmj8ocEX82Oyru4XyHV6NipQ== 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-SenderADCheck; bh=YcCKoh9lnBfCzTA7Ims08zMzDRdcIc8kFN2fp8yqDZY=; b=Vv5V+iNW/244ZfVlyfHzPcgeQw7xF02D8Mzx3DZyUisoS/xQm/x1CGz8y6GooL5IcNWBllemyRSPZH+SrZzhSIfLQf8qtY+dtOnL+B6PDcKT82afOEjiU6sNbVHNAvIF1/b2yvV0VW3vgyHt6JuuEnnORMSDWc5emYl6KgapiRLITdIieiTFYhVFKiN9p3i+L9ktLYlHLqMU8XabbwY99Fz9352mI53o88Bsky4Hcq4R0bgmXiAPgHhzJh+Fm1F0tdYBBzFTP3LM0Igt/htvijoWHcoyfC8u2CJYy18lDAGrGhKxXoxDrByyPw2YwP9Th4tdEHKJpgoJ02gyn7Ojzg== 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=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YcCKoh9lnBfCzTA7Ims08zMzDRdcIc8kFN2fp8yqDZY=; b=bWBa5D73ofxfWWbERkKPzpe7PF6GoU7Lgk2PcO/zlpm2/x1T+YU9qRJLJHlr+Z5zY8DCkznB4eLbcCmC09S5xmzC95nMTZkEZwTlG0UEpKkNN+AYAD8jDAe2/eClSt0HQACWVbW4GohTODyPVpT5OlboxFVQzhstRkPuGSJbl8A= Authentication-Results: lists.linux-foundation.org; dkim=none (message not signed) header.d=none;lists.linux-foundation.org; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1163.namprd12.prod.outlook.com (2603:10b6:3:7a::18) by DM6PR12MB3081.namprd12.prod.outlook.com (2603:10b6:5:38::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.17; Thu, 24 Sep 2020 10:50:46 +0000 Received: from DM5PR12MB1163.namprd12.prod.outlook.com ([fe80::48cf:d69:d457:1b1e]) by DM5PR12MB1163.namprd12.prod.outlook.com ([fe80::48cf:d69:d457:1b1e%5]) with mapi id 15.20.3412.022; Thu, 24 Sep 2020 10:50:46 +0000 Subject: Re: [PATCH 00/13] iommu: amd: Add Generic IO Page Table Framework Support To: Joerg Roedel Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org References: <20200923101442.73157-1-suravee.suthikulpanit@amd.com> <20200924103448.GO27174@8bytes.org> From: Suravee Suthikulpanit Message-ID: Date: Thu, 24 Sep 2020 17:50:37 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: <20200924103448.GO27174@8bytes.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [183.89.247.160] X-ClientProxiedBy: SG2PR03CA0112.apcprd03.prod.outlook.com (2603:1096:4:91::16) To DM5PR12MB1163.namprd12.prod.outlook.com (2603:10b6:3:7a::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from Suravees-MacBook-Pro.local (183.89.247.160) by SG2PR03CA0112.apcprd03.prod.outlook.com (2603:1096:4:91::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.9 via Frontend Transport; Thu, 24 Sep 2020 10:50:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: aed2f12f-9ed7-4860-ebbf-08d86077b121 X-MS-TrafficTypeDiagnostic: DM6PR12MB3081: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y/fiEcp7RWozyMJD17lwFTaHitGml4KOR5Gf3rcHpAtqc2x+LooFElDzbIOqfaUonyud3qrd3l9pPVROF6ffn16RhCT2Fs+ifobZJcf9UgbMw0TLdXn76k5y0sEI8KtDtfyfPh4RKBDSKfstAPAzWxv/7ko44HzXQ5FNEdLpkIZUYR9GuP9ZBFnS75kXxc2hbHdRK2Ua3Yzu6l3stKzFmnrBAkVjxCDlxSc2a4rgs+WYu3AC9bAbRow+LX9npSlkkcN6614nJiQcDOR9RJWBQGZ7H79RAFElEKiSJiHkUUBwVBypVCHLSNoTjrpDlOOsKxR9MTBEJqJIxGZFvIK6YsEmWSPb9MwxnMPi6nNrWZIGBjLxyMUPwqGKSPGISn39T6nq0laPXjwE735YoVuXRQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1163.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(39860400002)(346002)(376002)(136003)(396003)(316002)(8676002)(4326008)(5660300002)(36756003)(66556008)(66476007)(4744005)(44832011)(2616005)(956004)(478600001)(16526019)(186003)(8936002)(66946007)(6666004)(26005)(2906002)(6512007)(31686004)(31696002)(6916009)(53546011)(6506007)(6486002)(86362001)(52116002)(41533002)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: IgL9nesptcl5jCURFcD4n3cLVzzjUgSEEwpYjvVoHOG3DEm5i+WZNNs8nPelJeeGc9FjOhUX+DwHq4LZ9R56Ykc+e6ob8c5Lyhuq2NGTMcNPF6OAMGg9XTFVirU0gGDscanFtOIJPUFjx24lVtep6+YJtUsuxcnBUDTWylEt9QJ0vuIhXp46tn6BoozNgm3S5TQXzBJVVuk00myuoOayyNhFQoe00SvQMCywtjf0L1DSn18cGA8u8MACXgZqR6UkKWVCWLeOF9oMut/kFOOVlh5+VVx2vuRb4CuvtWKUkCsRybM7KfDJg80RHiqsQ++XLKrm9f9s0x4xu+4lbQlAYNDKni1CiT0D5JR8y3r6hHLIBzODxJVBsiTZACeJqh8PvsCR4Tnh897ZhL3NRqCrYyUnBQYEA9A3jIuowZee3g4n3CvnJ0eBdZ6+B5TuP/qysHhyFPiURWNPWDOlGu3ETcDqxlTbMYa1SjWjQLJlMSf2UzxPkNU7mVdislGC5KOdNi975e0NzXs2/ftNj0bBHhbSVj72z1xIyMh6GgOjNmD8yT1a6Ml9plfqKdhRKCdOkW7gC9d2oLrhGCgOExIjlxavhtp8JzT/EqJYfSsxztOqHRy0Oiq0Bv6Rj0mAg+/4JZYuPV/iqFAAV8Y553O9Lg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: aed2f12f-9ed7-4860-ebbf-08d86077b121 X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1163.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2020 10:50:46.4289 (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: lcKHRUYIn7yezpG+zsoU1/7A6aHxh+JmXvTFPIkVvxp9HQ6ZHLDRq5F24libAB4B2EFLZh6gBV1W8RgqYRxgwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3081 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/24/20 5:34 PM, Joerg Roedel wrote: > Hi Suravee, > > On Wed, Sep 23, 2020 at 10:14:29AM +0000, Suravee Suthikulpanit wrote: >> The framework allows callable implementation of IO page table. >> This allows AMD IOMMU driver to switch between different types >> of AMD IOMMU page tables (e.g. v1 vs. v2). > > Is there a reason you created your own framework, there is already an > io-pgtable framework for ARM, maybe that can be reused? > Actually, this is the same framework used by ARM codes. Sorry if the description is not clear. Suravee