Message ID | 1611003683-3534-3-git-send-email-andrey.grodzovsky@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=f9AV=GV=lists.freedesktop.org=dri-devel-bounces@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E832C433E9 for <dri-devel@archiver.kernel.org>; Mon, 18 Jan 2021 21:02:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 35D6722C9E for <dri-devel@archiver.kernel.org>; Mon, 18 Jan 2021 21:02:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 35D6722C9E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 646226E5A1; Mon, 18 Jan 2021 21:02:26 +0000 (UTC) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2049.outbound.protection.outlook.com [40.107.220.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1B7616E5A1; Mon, 18 Jan 2021 21:02:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mqvImLXT8iwWBhE3kFUPW0KPyBCVGbsa7fPKBvFykJfOINO0lojKfn+ICtA9YG4r9UqMmnBYN49fQtasGb8+VdBqJxf9oOYh6RDfkT9RdVU56RQLtaC8ZSCJQNWuaG/EMMA88OVxyxwgj0AD21HOtQSbohRNDyQ6vdzDHMfvTXkRBMlJbxWQKnza/Qil8gzC3oVA4FGcUmF0z176zFyizLWdjT5PGjHkcThT6mbL3gFQI2lmku3T0ymEopyFlQLDtxEvnPvmC8WEctH4Rkkjtf+XKofoncZKcZn6PxhKa1uerspQSusnJ+sk+NebpFSgG53bRTIqe4riCBcE4H5uag== 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=eP+CWFFP1/158PxaoXh8nWaz8kcCjPtiaThEI9ZA/Vc=; b=KX/ygTOCPv4Tad0eYqzSMzSlKn5tDfYDKVvT7RXaelKPy3egDKf9k8KQFg8o/7ZRIpqszyx8cmR6Wh5Wr9fDDaDu+ZwM64xdTvgQTMjoNGKFFlgzBym7YCYKuxyK++0fHL/dRgC0qYcNcWk6v2MXylhCTWIxpU0aNbgbjtkuViXi8h/m7m8CYrd1x+jrpFwEvIbK98yOyyWvqiz0xC/z3iuxMbI37djxt8ntiBX3BTM7iCQ5F2X5XKQSOmmKlJ27MwMULkbO10VzNBIUgBnEpVzIU7MlGQxoOWPoPrPEL6yn/xvkbU//26iEetHV+DADB6szu959ycbHjyuiuF4fCA== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eP+CWFFP1/158PxaoXh8nWaz8kcCjPtiaThEI9ZA/Vc=; b=2B/qZp2wAnzl2FjCN2TesIuaf0u0C4rn5AowQbnSsqvT8CYCLjVB5zpYbSxoGbfJhO0h9uzwxTJ68OjggQ4Qpr9ggKqRYKEr+uaU5RHc++9oHBcTYvp5Kc3MhRaGwLaKCIuoStbBaOF0teGp6Ps1w2Gv65oDC8hm2FtXhFEXM2c= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4623.namprd12.prod.outlook.com (2603:10b6:805:e9::17) by SN6PR12MB4767.namprd12.prod.outlook.com (2603:10b6:805:e5::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Mon, 18 Jan 2021 21:02:23 +0000 Received: from SN6PR12MB4623.namprd12.prod.outlook.com ([fe80::5d30:b29d:5f5b:6921]) by SN6PR12MB4623.namprd12.prod.outlook.com ([fe80::5d30:b29d:5f5b:6921%5]) with mapi id 15.20.3763.014; Mon, 18 Jan 2021 21:02:23 +0000 From: Andrey Grodzovsky <andrey.grodzovsky@amd.com> To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, ckoenig.leichtzumerken@gmail.com, daniel.vetter@ffwll.ch, robh@kernel.org, l.stach@pengutronix.de, yuq825@gmail.com, eric@anholt.net Subject: [PATCH v4 02/14] drm: Unamp the entire device address space on device unplug Date: Mon, 18 Jan 2021 16:01:11 -0500 Message-Id: <1611003683-3534-3-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611003683-3534-1-git-send-email-andrey.grodzovsky@amd.com> References: <1611003683-3534-1-git-send-email-andrey.grodzovsky@amd.com> X-Originating-IP: [2607:fea8:3edf:49b0:84d3:21cc:478c:efa7] X-ClientProxiedBy: YTXPR0101CA0020.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00::33) To SN6PR12MB4623.namprd12.prod.outlook.com (2603:10b6:805:e9::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ubuntu-1604-test.hitronhub.home (2607:fea8:3edf:49b0:84d3:21cc:478c:efa7) by YTXPR0101CA0020.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3763.9 via Frontend Transport; Mon, 18 Jan 2021 21:02:21 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5bfaa15e-8cef-47bd-ac83-08d8bbf45a42 X-MS-TrafficTypeDiagnostic: SN6PR12MB4767: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <SN6PR12MB47674953DB7D04E59096F75FEAA40@SN6PR12MB4767.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:773; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hXTeKLN9X5KcSvCdgiNOFlRAB+onmHJtLBHvth3ThC7htiaf2EjCmx2SEkf7FlllqYb1jW6yGbY1nRwrwu3TNpt0feU5+26/lGfYYiiDky5Lny7jXqQzr09TaAOd8FN67gOyn9FvG9UIl/wef+8pI5yr+A3cBCBxITSvJ6izHZhoHGzw2qwHz+KZARHwpLhCwi2bKH54gca9l85kXZ6DnvD21CO+A46tlEYpIvwdBj+tJJ0U8hpRxxREA64InaC16PPBiaweSiF0zp1d17IEqYedGIgdS1qdXyX/pew5zIGsFhZgnHqXNBzrQZ/DbEZHuQhwkyN5pmx240vyQ8MetuOVwnwXhwEwPkJ+p0Oty+N1o+NkPvJ5VIfHWB7hN/v85kOx0BCnw2yzFIb/r9Am/A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR12MB4623.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(346002)(39860400002)(366004)(136003)(86362001)(66946007)(6666004)(83380400001)(44832011)(8936002)(66556008)(316002)(6512007)(6486002)(36756003)(2616005)(66476007)(6506007)(4326008)(478600001)(5660300002)(7416002)(2906002)(52116002)(16526019)(4744005)(8676002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?HlEITUQbfbMQRLioUa6liswKXmFis7?= =?utf-8?q?bZjOx25jMfCfLFkLwtU6uPzDPVWcBxYBG1GPSc/NtvwxNBddGKS4qB7NC56uq/24V?= =?utf-8?q?vU0dfxfb6S3eq4+rM4yNTA+tcFKltDsnrtPPST7S0NUzs72/Vadq/6aJBU9e31Dp6?= =?utf-8?q?YN+K2zxZWYW+smi0i6mePH7gL5u/GuuPe9dIsiP8KmnkVY4LxAFkekW4dauscLBsR?= =?utf-8?q?ENi3TljmkQOV4oDo8rvV32scZD1ZMv6n3aWgEeqpgKbm9sOMlvuxgg3ley731ENga?= =?utf-8?q?hvmxkVEEMks9qZFM3aSfGearJowyNSKCucdmq4NPTl4rVpDwJnkrk9P6EUBQ1vQaL?= =?utf-8?q?4lsROkApS96SHo1J8xGt4KDNz8zmLoYC7cTDo2Nvs96xGezviCZ1O9bYn1MuGXpy5?= =?utf-8?q?kajBVDNbO0n4QdzPkhsCyypn3j5yLjteoh6LrNNSpju54gfZkZGX+B59i9xHO1gMw?= =?utf-8?q?hhHAIS1QCLRFtmrQ57O6XfXi5DDwBgzWf5bxvO+AwKfzNTEf86jeeulmKWKoVZLRv?= =?utf-8?q?LsWl7PVAmfEpAZTICd26blpuWnbnib69eMAYlQcNosxfOWPcWurNW/SAb/VKB3SIa?= =?utf-8?q?yzAq5fUz4HQem7RWn64gBTNvWrMgfF37WgQXT8KqjfJR56TUGUr/J2uF/01jLY3z6?= =?utf-8?q?EERsbyhVLx5025kfRKaGFYC8VI6Zc5KAY3fLIav6xlGy717yQco4RqqGhCFL7KVG0?= =?utf-8?q?Z8VlUAc+YhP7gua6bzfultNooovI7pYCC8kpYCTKZq1rDgP3OIUCmfDwNd9g3NWi4?= =?utf-8?q?9gImjQHbmb7gdTkfvcAUJUkJtRxjDvXM/hFb0lu2izrRFc8ssK5EVh3MSzauUd0Nx?= =?utf-8?q?L1zI73qyGuyYhnm9HirFL9ZOfQXzi47o4VL21Fku0PbP67GtBYwnhOVvR8dFx6NIT?= =?utf-8?q?mk74q4+AE3AUJb8xEjQt3EBnI7XSYydZNGChMIoklPZV8V0fna05ag1lFcJrPF27l?= =?utf-8?q?V7oCv+hbXqzgL0duqihCJXsDpcLgSMNC3ld0ydtQ8a1C6VrxAlGkzJ1kK2p8ahaPB?= =?utf-8?q?ETi4VmmvMYn7lL4Pok0tcqZgwv/UYXFooHPRWgNW3nQqlJN+Od/9A+id/D1AjzcRN?= =?utf-8?q?kHTVa5s+Wn6hTzXR6wof1nGJ1Qa0/nL1q6Tfwvw=3D=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bfaa15e-8cef-47bd-ac83-08d8bbf45a42 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4623.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2021 21:02:23.5007 (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: i01vlg1oywQwip2gGt6ME7CvwOG8u9VvMHPLq21aXL7iuukFTnnukScf9nE5Qf9/EghHEMz9w5bztwKfBiHUbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB4767 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Alexander.Deucher@amd.com, gregkh@linuxfoundation.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
RFC Support hot device unplug in amdgpu
|
expand
|
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index d384a5b..20d22e4 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -469,6 +469,9 @@ void drm_dev_unplug(struct drm_device *dev) synchronize_srcu(&drm_unplug_srcu); drm_dev_unregister(dev); + + /* Clear all CPU mappings pointing to this device */ + unmap_mapping_range(dev->anon_inode->i_mapping, 0, 0, 1); } EXPORT_SYMBOL(drm_dev_unplug);