Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp107452lqm; Mon, 10 Jun 2024 14:28:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWU0zz+j1SnJnFcIpV7mNd0o7v+YofZcCyYdxtH6NOoHhxRqgLIfxmDQeXZhYmQ4WndJh6aFkvndyKRxjWjxhUEkyKfKhkEKd7wvWckdA== X-Google-Smtp-Source: AGHT+IFMPiEDwbbC/83SLOEBK1fKQDMnpyfrS0U6YUCM181Je1pAX4/c9XK5SzkJ6oBF0Kkzv7S8 X-Received: by 2002:a05:620a:29d0:b0:797:a8cf:67de with SMTP id af79cd13be357-797c2d93875mr182047185a.19.1718054932347; Mon, 10 Jun 2024 14:28:52 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b62d79si117839021cf.596.2024.06.10.14.28.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 14:28:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=muB45dMj; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-208915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B8CAC1C22C6F for ; Mon, 10 Jun 2024 21:28:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EAD21411DE; Mon, 10 Jun 2024 21:28:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="muB45dMj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 513DD57CA7; Mon, 10 Jun 2024 21:28:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.9 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718054893; cv=fail; b=V8fsIT2NLhmyy6dZQ2fQbzghKa69zMMMMbbIlig24w3xjw8leZThhpZKLHbX+Gkhe4+PZUlFyfOBMdFhmF8myZNz5LwD99gB2AerdhHzJw4P1C+mFqf83q3z7Y+pLr+kODqBI6Y+JUs9wX+HW0zREE16WS8na6XVyprin2DMHhY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718054893; c=relaxed/simple; bh=BhY3NwRliREZRdNNM43bZ3OvIln91I1pxlVbr1nPbP0=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=HiGXwBj1Oka1QF9CZaQRRhzRxfsVrto1B4CYadtJvlcXn/ztmuwANfbM0A4o8nuCZaxHfQ2NU9gusSEcGpr4ZO7kDJCDimZVioFjTyxA+Br4i62wt1uyahYuDQvG+I0WepazkC7IDEUOgQ/ftpUxzCelxdSDzOIg6St9Il1sZGQ= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=muB45dMj; arc=fail smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718054892; x=1749590892; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=BhY3NwRliREZRdNNM43bZ3OvIln91I1pxlVbr1nPbP0=; b=muB45dMjKUs7RutsIRf91MGm4Ky/E3I628V5TVVDZiM9ayD2UV0sxfM0 R8sY4gMsJO4XYEfUpTLOZcxQVBnf8QJOiQajr9sFf15fNWf6rbgdcDIfN 2FvMXGaXqXP5s8EIs2Ao185gd4cOVxjpCetjqn8KDKsIoO0h60pBqAfXB MdQz28E8lk6EAj4vWlfUCAvW5SCaUioyuBrzUAUJ55E6j2Efxd26xldTr waUpBXYPXbagEBYuwlOLSWQT/Lc/0YDssCpIQNUR3QkN7KuSi2VctHlnr PP7lMokdRQsqi1B8negO4bBByRgIV8G1kgMFGJ/B+3P5TOSY5VbA/1uUv w==; X-CSE-ConnectionGUID: q+2ipTCTRySgN10YIvDIcA== X-CSE-MsgGUID: z2R+P3ydRKCTNjPa+WQZqw== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="37262120" X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="scan'208";a="37262120" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 14:28:11 -0700 X-CSE-ConnectionGUID: eUv3vfAtSeaYz9bX1BbdJA== X-CSE-MsgGUID: Svj42NBxR9+Im31HyZocDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="scan'208";a="70356682" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmviesa001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Jun 2024 14:28:10 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 10 Jun 2024 14:28:09 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 10 Jun 2024 14:28:09 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.177) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 10 Jun 2024 14:28:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oQ5wiXLJ15WP5CiENgk85WPGtphz7Lx8JjcU66zgA5Y4/2brtokQIQIBEr1Z1F2zDoZfzDetKF4McOn61kl3Ma3QmuBKLVx6hLSwbOoFr6TgylFDg+3p9SJg4W0pDZWuGquhW7xQZErwmNWfmb3wt98NUUAn6IvcFARHvYpjxkQYIDiKSlqaFOyTjyHQJ3kL4Sl2ZCZDXt5Hw1fkn4atcyt5MtVO/qnFb/q3vNK5QxsSU/4ywqMcYRM2ndJ83zWWXj3gPQq+SFHShRDMkwDiWQ+mCcVAzBJq/jyFVMX8oYlgaN3/W0ZPkcGn/qNH6sp9eL+mjRjyFx2q+JGKHFf8fA== 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=BhY3NwRliREZRdNNM43bZ3OvIln91I1pxlVbr1nPbP0=; b=O0evvpLs2XG6aet3YtmvsdPNUOgD3O87I+MxhWst91/N8In3Yr6GYRhQgJAZIpwZV0A2bXjsvi2/7QY1mUW1+BeNJBvh/Bjz2OPsmpGrXEshrI0KyI7oIz5sIQ96eD8DpwvARQo8LePwOjJ3SVD8kHdf7IcD+01nsaN6+IDvDMgdfIM2LAJAynleX7K5nJgncjxiW/Ie6b7pm6b3fJ+VEYAN18PCLK+M+NKEQfkkpkFrK28rXvHs/w/mlY8Iy8UDAblRA/BnLjmedLm6RP7MMgP2xI9+lPEMVs5eKPfokNx9M4ABnaLx3Vn/zC4i/Yljy6VIzthVaT07DWKvmzXSow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB7004.namprd11.prod.outlook.com (2603:10b6:510:20b::6) by MW3PR11MB4569.namprd11.prod.outlook.com (2603:10b6:303:54::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Mon, 10 Jun 2024 21:28:04 +0000 Received: from PH7PR11MB7004.namprd11.prod.outlook.com ([fe80::8c26:2819:d0f9:1984]) by PH7PR11MB7004.namprd11.prod.outlook.com ([fe80::8c26:2819:d0f9:1984%3]) with mapi id 15.20.7633.036; Mon, 10 Jun 2024 21:28:04 +0000 From: "Zeng, Oak" To: Jason Gunthorpe CC: Leon Romanovsky , Christoph Hellwig , "Robin Murphy" , Marek Szyprowski , Joerg Roedel , Will Deacon , "Chaitanya Kulkarni" , "Brost, Matthew" , "Hellstrom, Thomas" , Jonathan Corbet , Jens Axboe , Keith Busch , Sagi Grimberg , Yishai Hadas , Shameer Kolothum , "Tian, Kevin" , Alex Williamson , =?iso-8859-1?Q?J=E9r=F4me_Glisse?= , Andrew Morton , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "iommu@lists.linux.dev" , "linux-nvme@lists.infradead.org" , "kvm@vger.kernel.org" , "linux-mm@kvack.org" , "Bart Van Assche" , Damien Le Moal , Amir Goldstein , "josef@toxicpanda.com" , "Martin K. Petersen" , "daniel@iogearbox.net" , "Williams, Dan J" , "jack@suse.com" , Zhu Yanjun , "Bommu, Krishnaiah" , "Ghimiray, Himal Prasad" Subject: RE: [RFC RESEND 00/16] Split IOMMU DMA mapping operation to two steps Thread-Topic: [RFC RESEND 00/16] Split IOMMU DMA mapping operation to two steps Thread-Index: AQHanOEtbi0VHTnLn0mNwgftYB7xRbGEmFqggAEftYCAO5ykoIAAFS8AgAAFauCAAA0xgIAAMSmg Date: Mon, 10 Jun 2024 21:28:04 +0000 Message-ID: References: <20240503164239.GB901876@ziepe.ca> <20240610161826.GA4966@unreal> <20240610172501.GJ791043@ziepe.ca> In-Reply-To: <20240610172501.GJ791043@ziepe.ca> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB7004:EE_|MW3PR11MB4569:EE_ x-ms-office365-filtering-correlation-id: 37589a98-37ed-4ea4-5c50-08dc89943694 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|1800799015|7416005|376005|38070700009; x-microsoft-antispam-message-info: =?iso-8859-1?Q?eI1q3pcT7kUZJHjJhmmYCldx30UZuwN2ap1MYL260M/76wUwvTFvvgIUrl?= =?iso-8859-1?Q?Ck/dGCdUutjIbPxkNiN7AJcTu9Sjp5xW4sOPG3SLvU4JE570alWaBa9dQG?= =?iso-8859-1?Q?og64/k5Lil7XsES3sDQCj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?= =?iso-8859-1?Q?WdLI8jAnMs6icoQRkPBy1jFr1VMGvqAyF6T80dn9INLWo/ilMMzk6o48uP?= =?iso-8859-1?Q?pALbSc2qvzx1BXer0TEFnXY3+JLb69TAZgmzBIa/PaI/mROnqpDNUATIvO?= =?iso-8859-1?Q?ioW1gyWk/EMGI/Ggwu4tIj8ELJKI5zclPiczn06ovmy7WQC1+iMEdAleYQ?= =?iso-8859-1?Q?tSTbABFXuXWyrq70jXXug14vhjvObQIt/WV+U3fXEOVOGDx0fUDniKN8D6?= =?iso-8859-1?Q?+wn7pFpdmUW1Etq6MfaUnkr1Mtf292dVIRY7mRd46ytYTkfjFwH93b8pEA?= =?iso-8859-1?Q?eXZTO/hAlY2ELaLOdKqbKBAkYjunRXoIgQenyD2SMR/mhfVHFOqWuIOgzM?= =?iso-8859-1?Q?banKjHG+d9pR69qxU9SXvAjXRYzd42QNzec7khZDdVkB98IKsf4kA=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB7004.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?PjcdyxOnSaSGrq+tbgi8+jJ1RCh76Ixo4uQSOUIgXwEcfdhYH60dvSSSCg?= =?iso-8859-1?Q?uAmayoww6Td8Lm5exyoVwK3Ruimaran6JFjYjUn7oKLfusDHLCEwGoBK8s?= =?iso-8859-1?Q?PNRuV/1HgK4icXJF0CrEKu0yWYya73Ys0uOWSdkxSekmRF0t9Ja7XUKoDd?= =?iso-8859-1?Q?d+g/EDvSFLgHnCWhVtt0AWn1LfnA4nW1vSUGbGqXeScuhEYdD+fWyulsp8?= =?iso-8859-1?Q?ETvgIz4cIqpQUk3+yIPSjsiGS9KnWnmtbU7clz6s8ZvSfp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k5fPkTQEyx+1LqygJgjn6e6PWTIdyMGRCMbx?= =?iso-8859-1?Q?oNdDMpjNcQlzciIZmSeLxMe02ofb0wrUwSh00DYrrwc+iC768FlzGS+z/M?= =?iso-8859-1?Q?aMiok0HMjWQHrm4gX8niIjw+G0g+GGqL6PqUycIutzGCa7G9Pdy+Psbox3?= =?iso-8859-1?Q?0w81vALl/0OP4H2MnGqDE8VhVpS/B07r93nzQ5n7ki8ITkANpUimJwwL6Q?= =?iso-8859-1?Q?B7fRkam9NVtLRhZqZ4gsGko2neVZ6Jk03tc1xpCQ0Mk4uE+un8uGZA/ae5?= =?iso-8859-1?Q?w9Uvzn+pxRM2B7uRyzgjCS81WODkbSnnNb8ijGcEmK6oL/TLVi4XWgqsJe?= =?iso-8859-1?Q?NCEPFcrFV6JAjBDKh752M1yAUYW+4uIXpzTdKAcJkZAVPaeeZpZDP4Tkln?= =?iso-8859-1?Q?Nqcx+KGCqwEmjSvP7zQvTZXsfemM3QvsOruR/43e0SXJP8OwTdBYVEJia4?= =?iso-8859-1?Q?I1psmDW/GdYNw=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB7004.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37589a98-37ed-4ea4-5c50-08dc89943694 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2024 21:28:04.3358 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rQ8N4799OngImkQI47K7erSnlVSMJVBu4avWVxd5FwDOMguigj2T6uY1xo4cGeVG11r09CRETuGb9fisGr0sYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4569 X-OriginatorOrg: intel.com Hi Jason, Leon, I was able to fix the issue from my side. Things work fine now. I got two q= uestions though: 1) The value returned from dma_link_range function is not contiguous, see b= elow print. The "linked pa" is the function return. I think dma_map_sgtable API would return some contiguous dma address. Is th= e dma-map_sgtable api is more efficient regarding the iommu page table? i.e= ., try to use bigger page size, such as use 2M page size when it is possibl= e. With your new API, does it also have such consideration? I vaguely remem= bered Jason mentioned such thing, but my print below doesn't look like so. = Maybe I need to test bigger range (only 16 pages range in the test of below= printing). Comment? [17584.665126] drm_svm_hmmptr_map_dma_pages iova.dma_addr =3D 0x0, linked p= a =3D 18ef3f000 [17584.665146] drm_svm_hmmptr_map_dma_pages iova.dma_addr =3D 0x0, linked p= a =3D 190d00000 [17584.665150] drm_svm_hmmptr_map_dma_pages iova.dma_addr =3D 0x0, linked p= a =3D 190024000 [17584.665153] drm_svm_hmmptr_map_dma_pages iova.dma_addr =3D 0x0, linked p= a =3D 178e89000 2) in the comment of dma_link_range function, it is said: " @dma_offset nee= ds to be advanced by the caller with the size of previous page that was lin= ked + DMA address returned for the previous page". Is this description correct? I don't understand the part "+ DMA address ret= urned for the previous page ". In my codes, let's say I call this function to link 10 pages, the first dma= _offset is 0, second is 4k, third 8k. This worked for me. I didn't add the = previously returned dma address. Maybe I need more test. But any comment? Thanks, Oak > -----Original Message----- > From: Jason Gunthorpe > Sent: Monday, June 10, 2024 1:25 PM > To: Zeng, Oak > Cc: Leon Romanovsky ; Christoph Hellwig ; > Robin Murphy ; Marek Szyprowski > ; Joerg Roedel ; Will > Deacon ; Chaitanya Kulkarni ; > Brost, Matthew ; Hellstrom, Thomas > ; Jonathan Corbet ; Jens > Axboe ; Keith Busch ; Sagi > Grimberg ; Yishai Hadas ; > Shameer Kolothum ; Tian, Kevin > ; Alex Williamson ; > J=E9r=F4me Glisse ; Andrew Morton foundation.org>; linux-doc@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-block@vger.kernel.org; linux-rdma@vger.kernel.org; > iommu@lists.linux.dev; linux-nvme@lists.infradead.org; > kvm@vger.kernel.org; linux-mm@kvack.org; Bart Van Assche > ; Damien Le Moal > ; Amir Goldstein > ; josef@toxicpanda.com; Martin K. Petersen > ; daniel@iogearbox.net; Williams, Dan J > ; jack@suse.com; Zhu Yanjun > ; Bommu, Krishnaiah > ; Ghimiray, Himal Prasad > > Subject: Re: [RFC RESEND 00/16] Split IOMMU DMA mapping operation to > two steps >=20 > On Mon, Jun 10, 2024 at 04:40:19PM +0000, Zeng, Oak wrote: > > Thanks Leon and Yanjun for the reply! > > > > Based on the reply, we will continue use the current version for > > test (as it is tested for vfio and rdma). We will switch to v1 once > > it is fully tested/reviewed. >=20 > I'm glad you are finding it useful, one of my interests with this work > is to improve all the HMM users. >=20 > Jason