Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp408051lqr; Wed, 5 Jun 2024 09:20:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUT3mKs+KlefuGXAcMqR4PAwIK9fbZE7DFxVyTICMPxUqymlNYrkMrsdHirVaXS4wE4iZNVSbwTGCjJSpCFIYYCp6XQGlaLDBx/hGV12Q== X-Google-Smtp-Source: AGHT+IHMDJDfsEAv6dOlADJMLZfwlZq2HAHv8+6imtue+JCxTxA5CZyNTFpY+ZhAo/BdRcdDUlT0 X-Received: by 2002:a17:906:f191:b0:a63:3cd4:97d2 with SMTP id a640c23a62f3a-a69a02652ffmr189601566b.63.1717604445597; Wed, 05 Jun 2024 09:20:45 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a69180edeaesi298510266b.98.2024.06.05.09.20.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 09:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=uBvvVeiO; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-202907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 564261F23A77 for ; Wed, 5 Jun 2024 16:20:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1556E15F322; Wed, 5 Jun 2024 16:20:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="uBvvVeiO" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2092.outbound.protection.outlook.com [40.107.236.92]) (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 C148314D28E; Wed, 5 Jun 2024 16:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.92 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717604401; cv=fail; b=b2pl9iWk3vv/EPhNtdvPsD5Yvbfmo/xTrreNCLyw4ch6v61ayaRyAjiv+YAcVBV5ijz3+XCNx9cTYMfxUKprx32apjbLVdGNwy4TV4stp6hLEf9BbPmSg8eOTeINi3swIFLR8Qvqj26iZM2YQGsi9Rh2pb+D8xylw4zZRrK9bt4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717604401; c=relaxed/simple; bh=BoAPr8PtDuqHyugB9//aa6jZHCdotpCA3tkZfJQSjLo=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=gyciPkROIGeVaI6JpxAJYGqW0v4dT9Vy4nk0GZApT1Ci6TOJE5czoNXoQaxTUzZWUCXcLJziWleXD1ra2pXc7ENvOKBazUXB4SKOMzWZOYjvxr2z4PQRGMeNbNV7jAxlQMpDkFzBgWURxInhmZkSy4l9zqWvs56n6Pmhnf6Ds6Y= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com; spf=pass smtp.mailfrom=os.amperecomputing.com; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b=uBvvVeiO; arc=fail smtp.client-ip=40.107.236.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=os.amperecomputing.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cC9eNr1AdnBH7dhY9DDj8LJaJ5SyGA47K1Fuk9zCOxQYt1mPQoXRfP/7sjbYeD2M465UI0wGFLyYv+VprzpShX4ML68fRYVV7l3FgSoTt21jOcINm9zEkcjw8COrr8UEXfeiDh/p1T0lsRBmmaEZWTgh8PDOfR9zVMLUVQC/bEd0v09RnMi73lobSHjohD5Wv57lt9p/rru/akXf6UohNilOGrOqvaAcJBv8KDEFrLVG7Br/Q3qXeFMPqAs6ML5BxHESMuj6bQ+wAzdXNrusPe+u+29IHEEpwQrw4bnxpFC1rnOkV35P55MHRN8rNUpnHydV+KvdQUvv5JtsrLHkrQ== 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=pTWo67b4fkgQZBjK4Uxj0NJUzI5cHpqBf7YBhBcLUNo=; b=e5bNdVDma2I5/hQwtr8wjJcQ+ut/Ra4W1LVEEIzZQvVy3r0E0ZTJmked91kvUkxFisF+iKWx4UTHSbwTjWNOs7CdBP1AR2hlrtNsYNCtBSKHbQ+mZpCNui7zbsklo/gO04Tj7gXfJaR9KJv7EPSUU20vdKnGAJ8vzqpgkLrzT/pXg5bNtv0lSZJKfb9H2dpI/WO4gjhBsGcUAswPJq4hmmR7JUSRPntCkbCPybs8eJtwFvc2veKQewxMnmMALUyS6dM1rTP1KkMKLjTdaO4RbYjplh4BzwV57Cq2i+HFCo/kAKPy/txt7IMm+jxFx+ogecfuV7Bl8OZOh3vPlI2dmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pTWo67b4fkgQZBjK4Uxj0NJUzI5cHpqBf7YBhBcLUNo=; b=uBvvVeiO9/yO+cn1wgfpnYGtV3R8EB1M2Skga7JhS8R40Ud0dkh92HhpSevSiHDL7yCGA7yWgVl04j2CDbWVjcV5wm9KksYla0lQyMZS73oGZeUxYBw0YXnp8OO/nRMYKlrCdprEWuqLG8YpGV2qeWb8TTQupTZ0mV1+6BCxfiU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from BYAPR01MB5463.prod.exchangelabs.com (2603:10b6:a03:11b::20) by PH7PR01MB7679.prod.exchangelabs.com (2603:10b6:510:1d6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Wed, 5 Jun 2024 16:19:54 +0000 Received: from BYAPR01MB5463.prod.exchangelabs.com ([fe80::4984:7039:100:6955]) by BYAPR01MB5463.prod.exchangelabs.com ([fe80::4984:7039:100:6955%6]) with mapi id 15.20.7633.021; Wed, 5 Jun 2024 16:19:54 +0000 Message-ID: Date: Wed, 5 Jun 2024 09:19:50 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] mm: gup: do not call try_grab_folio() in slow path To: kernel test robot , peterx@redhat.com, oliver.sang@intel.com, paulmck@kernel.org, david@redhat.com, willy@infradead.org, riel@surriel.com, vivek.kasireddy@intel.com, cl@linux.com, akpm@linux-foundation.org Cc: oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240604234858.948986-2-yang@os.amperecomputing.com> <202406051039.9m00gwIx-lkp@intel.com> Content-Language: en-US From: Yang Shi In-Reply-To: <202406051039.9m00gwIx-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR13CA0191.namprd13.prod.outlook.com (2603:10b6:a03:2c3::16) To BYAPR01MB5463.prod.exchangelabs.com (2603:10b6:a03:11b::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR01MB5463:EE_|PH7PR01MB7679:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e5cebe4-218d-4986-fd6a-08dc857b5585 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015|7416005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MGt0dVFSRERSUFRTTmZJTlZ4ZWtqMi9maHRPTjFDdUNnZnlWY2JQMG9KNkt6?= =?utf-8?B?TUg1RkNtSnNsTjdnT3NBWkY4M1RxRndMZXVLWC9YVnZlTnNSa1Z4U2ZNMEw2?= =?utf-8?B?b0RBWjdyTUZ5UWNtcWQzY0lNMmRPM3VtWThJajZhK1c2TW1iOE5Ld0tsOFBl?= =?utf-8?B?cENJa0VkNnY3ckFXSTJVL3poai9ZOTRMeWJzQ0NiS01WcVhPL0VQR1JCZUlt?= =?utf-8?B?NEQvQlRTOVorRUtEUFNLSnRIaVVHeVd4aDBwNzh0dHlkemY5YWdQTWljeEVB?= =?utf-8?B?cndGc1lQZ214bCt1WERKakFzY0xUYUhFRFg0MSs1OUhrSHl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wR256U1pVcWVDazd1?= =?utf-8?B?WUY5clgwQjZ5ayt6anRpNE5nd3A1U3pkcVJRamJ6U2dZVFlSZ0hCWHVTUnBw?= =?utf-8?B?Y3ZzK2o5dk11SXVXZG94OTJuVHVwZGZGSUVpWW9mSU1ra2NUQTNadnF1OUta?= =?utf-8?B?ZVJpQmFTVWN4cGpjZENobzNES0U4aVpadG9JQU55ajAxdCtIUHp2c3p1UVRw?= =?utf-8?B?OVlKcGd1dDZySGluVk81dWorOERTMkJRZ2ZQVkpaVXMyaldzd29GZ0VudldQ?= =?utf-8?B?Qjg0UWRhOXBzSnNiUDdnZW5sZDd3czlTdmY2Qk9TcHZQVWRQWW9zakNYZzZM?= =?utf-8?B?TWJyNmx1WjVmbkxtU3VmcXdBQzZ2Rk8xcU1Yem41cDlhTmhaS1puaGQzbVdC?= =?utf-8?B?V2RrOERsL2hoa251NmdsZ01HRjMrSTJHTW1nNUpBUFZZamoxRVZhYVhzZHJi?= =?utf-8?B?VGcranpCdnMvc0kzYU5Zd3FFc25Bd2RsYzJYZDBtTEZxRE5VMDVuand3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR01MB5463.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015)(7416005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RDVQNU5rSGZBbjU0dnFtRHNlU3VyMTAyMFhHaWRWbkJuYldjSXNCUTJheXR4?= =?utf-8?B?cVl5T3lraEN4cG16aUh1T21GWVNaNncwUXBkaDhGcVZIUGVZajZOczVNSkor?= =?utf-8?B?YTJsc1NVV2xDaGZ4VkJRVUF2UTlzZ3p2Yk9SMjRiL1ltNGQ0SnBhZGxDbjNT?= =?utf-8?B?Y2xpT0w0K1Q4dXZ3OEwvaG1Nbjc5O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4r?= =?utf-8?B?SkV0dVpGcUNzeFJhekFYNjFZRDl5WGNpQ0ZnSG5ySTVLNi85c0E2YmZpRFVY?= =?utf-8?B?eDlVcGpWSFl0TE14ZEEyREJWQlVYcFFabWRvWUt4S3h0bUcwTWZyRFFmWnor?= =?utf-8?B?aCtrb1RFSlZiTnd2SFcybkxsSzVQZ1lSdFowSWZHOWFoNzZOMk9UenZScGlK?= =?utf-8?Q?JHCsUt5eBzZYYTpQo/26wUI=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e5cebe4-218d-4986-fd6a-08dc857b5585 X-MS-Exchange-CrossTenant-AuthSource: BYAPR01MB5463.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 16:19:54.2718 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FUriDdethi0cJg4E8KyPvvqDEo7dvU1him1hgJk4Qe0w/b6YeLN56GLk//YTLpkt6Vnwdomqv0BRklAK9klRLuX32cDyb6HFZP00S3BSaR0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR01MB7679 On 6/4/24 7:57 PM, kernel test robot wrote: > Hi Yang, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on akpm-mm/mm-everything] > > url: https://github.com/intel-lab-lkp/linux/commits/Yang-Shi/mm-gup-do-not-call-try_grab_folio-in-slow-path/20240605-075027 > base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything > patch link: https://lore.kernel.org/r/20240604234858.948986-2-yang%40os.amperecomputing.com > patch subject: [PATCH 2/2] mm: gup: do not call try_grab_folio() in slow path > config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20240605/202406051039.9m00gwIx-lkp@intel.com/config) > compiler: or1k-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/202406051039.9m00gwIx-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202406051039.9m00gwIx-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > >>> mm/gup.c:131:22: warning: 'try_grab_folio_fast' defined but not used [-Wunused-function] Thanks for reporting the problem. It seems try_grab_folio_fast() definition should be protected by CONFIG_HAVE_FAST_GUP, will fix it in v2. > 131 | static struct folio *try_grab_folio_fast(struct page *page, int refs, > | ^~~~~~~~~~~~~~~~~~~ > > > vim +/try_grab_folio_fast +131 mm/gup.c > > 101 > 102 /** > 103 * try_grab_folio_fast() - Attempt to get or pin a folio in fast path. > 104 * @page: pointer to page to be grabbed > 105 * @refs: the value to (effectively) add to the folio's refcount > 106 * @flags: gup flags: these are the FOLL_* flag values. > 107 * > 108 * "grab" names in this file mean, "look at flags to decide whether to use > 109 * FOLL_PIN or FOLL_GET behavior, when incrementing the folio's refcount. > 110 * > 111 * Either FOLL_PIN or FOLL_GET (or neither) must be set, but not both at the > 112 * same time. (That's true throughout the get_user_pages*() and > 113 * pin_user_pages*() APIs.) Cases: > 114 * > 115 * FOLL_GET: folio's refcount will be incremented by @refs. > 116 * > 117 * FOLL_PIN on large folios: folio's refcount will be incremented by > 118 * @refs, and its pincount will be incremented by @refs. > 119 * > 120 * FOLL_PIN on single-page folios: folio's refcount will be incremented by > 121 * @refs * GUP_PIN_COUNTING_BIAS. > 122 * > 123 * Return: The folio containing @page (with refcount appropriately > 124 * incremented) for success, or NULL upon failure. If neither FOLL_GET > 125 * nor FOLL_PIN was set, that's considered failure, and furthermore, > 126 * a likely bug in the caller, so a warning is also emitted. > 127 * > 128 * It uses add ref unless zero to elevate the folio refcount and must be called > 129 * in fast path only. > 130 */ > > 131 static struct folio *try_grab_folio_fast(struct page *page, int refs, > 132 unsigned int flags) > 133 { > 134 struct folio *folio; > 135 > 136 /* Raise warn if it is not called in fast GUP */ > 137 VM_WARN_ON_ONCE(!irqs_disabled()); > 138 > 139 if (WARN_ON_ONCE((flags & (FOLL_GET | FOLL_PIN)) == 0)) > 140 return NULL; > 141 > 142 if (unlikely(!(flags & FOLL_PCI_P2PDMA) && is_pci_p2pdma_page(page))) > 143 return NULL; > 144 > 145 if (flags & FOLL_GET) > 146 return try_get_folio(page, refs); > 147 > 148 /* FOLL_PIN is set */ > 149 > 150 /* > 151 * Don't take a pin on the zero page - it's not going anywhere > 152 * and it is used in a *lot* of places. > 153 */ > 154 if (is_zero_page(page)) > 155 return page_folio(page); > 156 > 157 folio = try_get_folio(page, refs); > 158 if (!folio) > 159 return NULL; > 160 > 161 /* > 162 * Can't do FOLL_LONGTERM + FOLL_PIN gup fast path if not in a > 163 * right zone, so fail and let the caller fall back to the slow > 164 * path. > 165 */ > 166 if (unlikely((flags & FOLL_LONGTERM) && > 167 !folio_is_longterm_pinnable(folio))) { > 168 if (!put_devmap_managed_folio_refs(folio, refs)) > 169 folio_put_refs(folio, refs); > 170 return NULL; > 171 } > 172 > 173 /* > 174 * When pinning a large folio, use an exact count to track it. > 175 * > 176 * However, be sure to *also* increment the normal folio > 177 * refcount field at least once, so that the folio really > 178 * is pinned. That's why the refcount from the earlier > 179 * try_get_folio() is left intact. > 180 */ > 181 if (folio_test_large(folio)) > 182 atomic_add(refs, &folio->_pincount); > 183 else > 184 folio_ref_add(folio, > 185 refs * (GUP_PIN_COUNTING_BIAS - 1)); > 186 /* > 187 * Adjust the pincount before re-checking the PTE for changes. > 188 * This is essentially a smp_mb() and is paired with a memory > 189 * barrier in folio_try_share_anon_rmap_*(). > 190 */ > 191 smp_mb__after_atomic(); > 192 > 193 node_stat_mod_folio(folio, NR_FOLL_PIN_ACQUIRED, refs); > 194 > 195 return folio; > 196 } > 197 >