Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp514520pxk; Thu, 1 Oct 2020 07:57:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxec00pd+CFDDrpxBwBPDemKLFectG5eCLML4mJ39yBLiSy85jFNvAorLTD1bpglhLMdeKY X-Received: by 2002:a05:6402:209:: with SMTP id t9mr8997670edv.208.1601564225231; Thu, 01 Oct 2020 07:57:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1601564225; cv=pass; d=google.com; s=arc-20160816; b=Unqk2YEjoVrSAHY9FMlu1o0JsZGs9CW+Zgg+GxeTdGdYdJi79SFDVDTvF9Wh2BTkVL KLgWqKPJk/rSLS/RXyJtPUaxxkogihVbQFM3BdG6AXIssjZRLuvPnuN9dFJ7yBbjpHmX bQ4EmFbAGK/pnND0vuGFQ1DrsSW7pP1dnRVj4rULWbGQIficnba7NnjsOm8i1Zfx/cmR rw/nSqUWd9bXNhbtODv3MECJDmyjFQqNj+/xMdar0kAj1z0MwN+UFcz1CDdyM6fM41GW O0pSC4NswQE/lMV9gfug2zshqi9uIPtt5BV4Xp4wQByYPuPHg0yewxMFI1+9XmBi3Jvt d2Mw== 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=IRzyxZf7tih2R5gpfEtHiypKsOH6G2LkVGeLYnXm4LU=; b=AMykINt4tQn0Cf7kP/4NjDj3eYsYZ05yf4vp275SnX0bQ8zTxEnud1EOPklK1q6KbR BU6dWrrbZ1YqqCjSuStozoN1z7f3JetJJcN5vM3GpRUpUkQun28U6iW+zM4KgFzmga2K OU9JE4VgN6k9Q3k4PxracmbGLEyOSQXfGzOl1A+16+tA/lXLhYD8D0hIF1MTQDie91Kb YY/ZFGZ1fuQHdPu1pArDJHJUE/ZA0lN98P+gWc+OqDABNo3LByV5FZj3SmRtEWmixaF3 6DTX8WU9YfkqHkbjHQkzzMCvt1CoiwDxr99Fp8zmu/bO8FZrGTnzLaEZRzqeQu5cMoE+ DJNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b="w/Da72QO"; 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 m21si3357310ejq.199.2020.10.01.07.56.39; Thu, 01 Oct 2020 07:57:05 -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="w/Da72QO"; 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 S1732346AbgJAOwD (ORCPT + 99 others); Thu, 1 Oct 2020 10:52:03 -0400 Received: from mail-bn8nam12on2059.outbound.protection.outlook.com ([40.107.237.59]:62304 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732020AbgJAOwC (ORCPT ); Thu, 1 Oct 2020 10:52:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oPYXPjvCqnkwXCndII+9htU3Xz7d4uKQhJ/w7gAtHtl3mRNyy1WgRU/IofdVk/DJQUXsecTY/9ufvvZ8JHJn9qbfbJFSXpQbuRYwddI1uvCYGmfGzFyoKwhhofzINeENTvED2KEr+I8BtlMc/QT1MRhq4RcLg5RU4xDzgvis6XVNQTv7lmmKKXENdR2/I7WFuqV2XEJ7tO73D44meiSrNUzBfC07+ASKTIZrnkb6AEmNw5ETno+jXAa2oidmplZiemidMJFVAJj2r8m21BYed0dNuY7Gkxh/TSp2vZQuBpx1dZGI+iLYSTDTnJcyt4f7KIHFdXrMr70FhCPvTEZhkw== 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=IRzyxZf7tih2R5gpfEtHiypKsOH6G2LkVGeLYnXm4LU=; b=Yh4456KUNZW4uq+TcKuXZ7RxFXkttlDCN4af+RjdkbtX9ku6IkvvD84SBFIvRbJgwByrgPXLVRGnRCgJSYHpJsoJMUAXjbgLtM4EBDPSKaeQaBpb3UT9OwFLbj9sldlY3OhLxaAAuqiDPqHtXEYOscVDHXDmyu4SYjOl3A2FcmkQh4HS94AX5EQ4JTEh5oil04vobe8afCO5uTUaPYlKb+s3cXZqe1WxansxPpmBOV3C9Ddwcrum/T5JoFVipeYs7Sw3+DiKCNjZaeQvevRev2kKfE34bLIVrbOheJ39M9svXBWsv1FUG6Rz2P7uBgdoF0e57zyZc4mJtnRBBv9gkw== 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=IRzyxZf7tih2R5gpfEtHiypKsOH6G2LkVGeLYnXm4LU=; b=w/Da72QOTB3rpMdMFmyPTLgakZ4H4M3l0A2N3SoWbwE3+9+za2iFp8MiR1BG5J0EAnWx8PvP79fAXmUq2M1+MfLaEAC9TynRbpBUU3t7F/Lfe2fEWl6jAPuzqTzdTTj9O0O7kMIec03aY+wjFhsO/qUxigt3xeNh/hcytY0wDz4= 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 DM6PR12MB4297.namprd12.prod.outlook.com (2603:10b6:5:211::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.35; Thu, 1 Oct 2020 14:52:00 +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.3433.032; Thu, 1 Oct 2020 14:52:00 +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> <20201001125949.GG30426@8bytes.org> From: Suravee Suthikulpanit Message-ID: <74b23968-2dfc-524e-dc2b-74b5819ad161@amd.com> Date: Thu, 1 Oct 2020 21:51:51 +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: <20201001125949.GG30426@8bytes.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [124.121.138.118] X-ClientProxiedBy: SG2PR0401CA0011.apcprd04.prod.outlook.com (2603:1096:3:1::21) 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 (124.121.138.118) by SG2PR0401CA0011.apcprd04.prod.outlook.com (2603:1096:3:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.36 via Frontend Transport; Thu, 1 Oct 2020 14:51:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7a2ccaf5-f429-40ab-c0f8-08d866198d0a X-MS-TrafficTypeDiagnostic: DM6PR12MB4297: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wz0GRnqtso9IeCAJdxwCLrDura3In6NZMYa5598yp1EChUbxXIz1qhYswESX3o//M0IyaNTf/f0QriaJ5nUkzWrj7Zi6dRwUJdZ3+J3vD8aHQEVLJ4H0wIpq5OSiwGf+IZYCPp4cbXQzUhcLKz1pLGLWWBoulJfFhAozbXDuNbg1gwUQyYLH5P3d7KRhcgSpasVl8MRyQL8+TwVUnVUYHBn/4HmWYmwdICLGuciOtIT5fnZwryIFUhBJFLSmXON/bz69ojKjntmf6DZDqqMaUAgdvvFzhYT2SnovtDZqSbmzv9Q5wQX4gRwy7snuZUu4Rb3V+VSX4kouo9bIJXbRhGYvINbPIFCSRLkbENQXW1f7RkAwpXpz4t7i04Dz/iKCJpMXTJ/gZ8OP0vnl37M9Mg== 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)(346002)(136003)(376002)(39860400002)(366004)(396003)(53546011)(6486002)(6666004)(956004)(2616005)(5660300002)(8676002)(31686004)(4326008)(478600001)(8936002)(66946007)(66476007)(36756003)(66556008)(44832011)(316002)(31696002)(6916009)(186003)(4744005)(6512007)(2906002)(52116002)(16526019)(86362001)(6506007)(26005)(41533002)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XoNoLz6t0kuK9V4JRlFywAHGFgARsbDXCFq+HprDChaz+RKEK2IX+jPwg+4jhR5JO2PvkM0e6RQ/nnV0l3wn5ZmUpzK779bujqnAooodAexAcWwkaebE+ZyRpIAS66qrLBjK7qCKx6Y/Fm0EmIdcOpjR7rvVPYmDJLefQFRouzuyGsu4XexlJXfgsQEgW52euaVQXZHyXHkNOliRdGoXLUBXFHviz26D1JF4dIP6uWd1z2CmYg+kUgTHMpYFJo6pttDJWc64f5aTZAHVusZeFhGIdmogQkCs2Lrfr+jRDi99SEMBDJN5kQKJaPE09NwEQPN7uF7YnwIYSIKTgYmc2FfgrCqZpkOge8Pg87IHNhk9whXSqr+aOEs83sWbtw+FYG+dnlWxsOvmgO2ESPlj+kvKCNJHCzNZgSRWC36g7YfxpTyN86tce4xDWYOqiGyY7EHi8aQZ2UPiSQvgw3qyRekCqVM4WY/vEI1Xgc8EBpWU49dCLCbr0a3K4Dr0jAikuZKHt+CiJbb5pPkK+BR+PS1YanuUvsQyBxD2lzIciwqwl5BWRemRhaKh6BKJtVNOj129v+OQxdCsXTuEZlaDpDKnvytGs96MygnEays3GGvvFN/N/rNXzbuaEXWa4UHpO6AxQaIinsQtlA0V1+cALg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a2ccaf5-f429-40ab-c0f8-08d866198d0a X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1163.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2020 14:52:00.3271 (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: xFZpDINvf5I46VBy8mswD8UCNa9esR6HvakKGFpKY2b/shQZVJTQjE7tf3Rqlf87o+plGewTRW1r33MXd5b0RA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4297 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joerg, On 10/1/20 7:59 PM, Joerg Roedel wrote: > On Thu, Sep 24, 2020 at 05:50:37PM +0700, Suravee Suthikulpanit wrote: >> >> >> 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. > > Ah, right, thanks. I think this should spend some time in linux-next > before going upstream. Can you please remind me after the next merge > window to pick it up? > > Thanks, > > Joerg > Sure. Let me send out v2 for this with some more clean up. Thanks, Suravee