From patchwork Wed Sep 11 03:03:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Brost X-Patchwork-Id: 13799615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AD24EE0204 for ; Wed, 11 Sep 2024 03:02:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7DBF6900008; Tue, 10 Sep 2024 23:02:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 763928D0056; Tue, 10 Sep 2024 23:02:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 58FD4900008; Tue, 10 Sep 2024 23:02:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 2E3A78D0056 for ; Tue, 10 Sep 2024 23:02:45 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id DC4FFC02D1 for ; Wed, 11 Sep 2024 03:02:44 +0000 (UTC) X-FDA: 82550959848.20.C3D25E9 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by imf12.hostedemail.com (Postfix) with ESMTP id 61DEF40005 for ; Wed, 11 Sep 2024 03:02:42 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ApA1sQqJ; spf=pass (imf12.hostedemail.com: domain of matthew.brost@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=matthew.brost@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726023658; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=0Vlo1oRJZK1i+KwHGLawRjTC7t0FbaF5EHiWVU0DYYA=; b=W9RY0HChgaeq3SS0jX9gctfDmPMCh2MhinapAfL5P3FfmzKlRSwOFAU1Qbr9Sad27x0ltO PPAjrFAOYAMM2f+2VpMUT+U0IlccIvJlrkElIUsf9G/TrIzQDqC6NwmM9HXrKD1yKS4tdO MobIURoY/WCc0WjdjCg4u1XOq3tbPRM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726023658; a=rsa-sha256; cv=none; b=bykF0ne6HowkIKH8OV8XAOqkGNhceokAGyTPn0jpR5twbz7ONsVJCrd1JAe323dtbSVSEW vFGWkQ+zk0qAoF7HylpJxI4bQgIlsyEe4Ig192xjf3dwZPyQjZGAjevo6Du0ZJtx5vjSRq r/5j8l5qlQCQRhrdDDzZZO+uyMvkIT4= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ApA1sQqJ; spf=pass (imf12.hostedemail.com: domain of matthew.brost@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=matthew.brost@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726023763; x=1757559763; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Vel7AbFBzj78i/iHwdB+beI0cNjDQNzO/uiGE/5W2ig=; b=ApA1sQqJSaBWtsY3uCTFaUE5Co5Ek2VA2iqh2yzOY4C230zIEGVvUeEy frOb+IdPjSvXHllRH4bQam+1sLgCmRrtlV8bzZNP3dM3+E7fOKgaDmIc8 +UeSoC8qbzXx0RQ15mX8mesSWHRLQoWBbWI1tDvtQpiJf+aGEWhFwoqmJ wZw5dRldIEL+5h7jECsyZJVUsijx/AfO40NeVqI5PHbwMfQO8YSmyMxj9 nEqnC+ujAgaUgBQ+aA2WO8HE/uU4iPs6jMj4AnOg/Zv62/kUnesuJy/6F Si8Mg/cPjFGU6VYwtdesCYlXgwkBk4IHzpSvphFGNVaUhUA03WUUpenTT g==; X-CSE-ConnectionGUID: UIJU2gRgTo2TbJZwpnBhqg== X-CSE-MsgGUID: BCrLQj6kTxSDeqOj3UFdFg== X-IronPort-AV: E=McAfee;i="6700,10204,11191"; a="24907774" X-IronPort-AV: E=Sophos;i="6.10,218,1719903600"; d="scan'208";a="24907774" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 20:02:37 -0700 X-CSE-ConnectionGUID: yvGIAWXRRW2SWjxt5lpXWQ== X-CSE-MsgGUID: hN78Q4b9The/fWp3x5d+jA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,218,1719903600"; d="scan'208";a="67732254" Received: from lstrano-desk.jf.intel.com ([10.54.39.91]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 20:02:37 -0700 From: Matthew Brost To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, simona.vetter@ffwll.ch, Philip.Yang@amd.com, akpm@linux-foundation.org, felix.kuehling@amd.com, christian.koenig@amd.com Subject: [PATCH 0/1] Fix device private page livelock on CPU fault Date: Tue, 10 Sep 2024 20:03:36 -0700 Message-Id: <20240911030337.870160-1-matthew.brost@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Stat-Signature: cs7jetpynqixt583bhr1n1m8nex7e5rm X-Rspamd-Queue-Id: 61DEF40005 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1726023762-812060 X-HE-Meta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+XHp2EGgz982H4p6B5x05tkXV+aRVvMMqZFHxbJNpcdVWWq6Nwos= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The patch should explain the issue thoroughly. It would be helpful if AMD could test this patch with their SVM implementation and see if any issues arise. Matt Matthew Brost (1): mm/migrate: Trylock device page in do_swap_page mm/memory.c | 13 +++++++--- mm/migrate_device.c | 60 +++++++++++++++++++++++++++++++-------------- 2 files changed, 50 insertions(+), 23 deletions(-)