Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4704201rwl; Mon, 3 Apr 2023 08:30:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZT3ef6uwbOOn4vWssu7VIiM4Tgd1yXJtsNt8Cl8VrQ5T609CPu5GZ4pJ/NQCKQfhqHcMGC X-Received: by 2002:a17:906:5812:b0:931:85f8:6d00 with SMTP id m18-20020a170906581200b0093185f86d00mr36710897ejq.47.1680535847058; Mon, 03 Apr 2023 08:30:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680535847; cv=pass; d=google.com; s=arc-20160816; b=aw4HzrTeFgiASM890iOj0dSR+/2QRxXaVSnW4VDq3cIfuuJG1mbjuOiCp2n4z2jkpx L82uuCBTe+IiszdxVCXtYqiF0zPIzvHf6Ks7f/gwos+ElThD2CTrtvdSuubSE9LNMOOo eG/u0FKYT4sDV2GSrdGw++dSaq7j0KA4O4Z9eN8hX87AnVp6J2zt63lnCegMV3OciOtL m/fkcYCgmo6Tby2bUA4+3tbmlz4dL3htZpicDnEMyz4quzqPJWzXd6AhfQQ4hlQUP8gq v9/WOz2uyoeZg960a9XCYxDt4CcAAuy8Sx7mne1DKBD5elj4Fm1BDZ4srV4LAA0PUt6n 3GyQ== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=CYr+BEYcS3evb/LrvDsledhg8Ojdg6pW6sbyMBGhZvU=; b=F9c/8PKRgdVAY8FHW+A/jCsAVT1B9kl7C787dFd9H5Uszq/hSvE+rLLwlGjTllj8hu dTyvnzDtI5y8P2p1lDilaYwIBtB60Qj5mSpqxUxPLoUAcGaudBeoAa0arUl0dTxsdVQF ZlESiAoWMvGlNjHHG5GK5/KdfnGouMW+zsYth0TNhnk/Hat5EX07cx733k6L68GxbYII v+61f13qySFHYd9gWYfCFIiNRPFmEzbg/u+bQqtREAQn/fpQny+YoxbP7bmktK6Tj7Tg +ez40oc26kLAAGhIx7dPSgsG3Louble7luoVY0ni0bf+/TKqzpsCT5DvNJsV7F557Md0 5w0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=bILXMAud; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt13-20020a170906b14d00b0093defbd6277si7728567ejb.1022.2023.04.03.08.30.20; Mon, 03 Apr 2023 08:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=bILXMAud; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232759AbjDCPRh (ORCPT + 99 others); Mon, 3 Apr 2023 11:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232605AbjDCPRf (ORCPT ); Mon, 3 Apr 2023 11:17:35 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2041.outbound.protection.outlook.com [40.107.220.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF031DD; Mon, 3 Apr 2023 08:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TzkPkjng247PYyIIRG4kSurvwk32OjQkXbhZEUjk/qF6jTgLye/7/SdJpkpWw0XGPzp9EXdiXz4wo0bWjrRzihy1EBHmjb4AQoxovlTYFhuj+CTQPmetaxIhjeTPZyHS2zwtVozsQkQ3TiZHtAlMORsDYUSrMowr/U6K5k1p3M12tVqfSm5e/M3n7Lr2w7YW7VcP1dJwbH25EoDw95AedPNEgHS3txe6qDHrwWRyUrkCYXNiOutCuYVt5htvVmtxouFVgpqs+Y8+l/EGlQQA6O685nETfKoXewhvr0Xe2wvfr38VrcMzAMduNUO3iliQ7iEVi5ylsMEKNCPCRHE+cg== 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=CYr+BEYcS3evb/LrvDsledhg8Ojdg6pW6sbyMBGhZvU=; b=XHkZiBQG1FYqjbXPswhkbod5ZvxAuh13TiTbl3wBwsLrn+u5unkSkrPLsYtGrHjUKto4qLrw1U5xyEKgvkcxpxWOUOw6vcaTjy5ih2LAETeZIbqmZaE5tXkKZf4sJ0Lont8cOYvock+EuUrg+NHBdJtppKeYpkCEpjbS1vU0xTWURLUYa2p3slgudamq3V5tVWo4xO86XRoxIrRxM0UzCpMWF1L+eMUIJl/uIIsfIDESEAfnXCKbBTKbSSwOTpT1M36Y/WnBUh9KFOYQbHmS/RIMBslvMg9P9zec2E7hA3Y1dpZervO7Nl1FfiiBMEBopimlUx6W7ZGZeiL4HGiU/w== 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=CYr+BEYcS3evb/LrvDsledhg8Ojdg6pW6sbyMBGhZvU=; b=bILXMAudUFeOCPuVtb3jXGr2TkOmMIM9NWC1kjs17BAueY7cJWP4HvWeq0R7Ihn9yeFwFqkLSupFslS2zreJTzoZKEk/tnwBGJgL8bzg47fX+O9k401zHfUOPdjyeJnSBBblOAV+olgpbcIB2MnkpMySh7szzrQEOo29Pj59AJE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by IA0PR12MB9045.namprd12.prod.outlook.com (2603:10b6:208:406::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 15:17:31 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::4624:dc39:943e:6ae]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::4624:dc39:943e:6ae%5]) with mapi id 15.20.6254.030; Mon, 3 Apr 2023 15:17:31 +0000 Message-ID: <7854897f-67f8-e82c-3edf-e8ef923d2474@amd.com> Date: Mon, 3 Apr 2023 17:17:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 5/7] Revert "drm: Assert held reservation lock for dma-buf mmapping" Content-Language: en-US To: Dmitry Osipenko , Sumit Semwal , Benjamin Gaignard , Liam Mark , Brian Starkey , John Stultz , Gerd Hoffmann , Daniel Vetter , Jani Nikula , Arnd Bergmann , Greg Kroah-Hartman , Thomas Zimmermann , Tomi Valkeinen , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Srinivas Kandagatla , Amol Maheshwari Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel@collabora.com References: <20230402164826.752842-1-dmitry.osipenko@collabora.com> <20230402164826.752842-6-dmitry.osipenko@collabora.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20230402164826.752842-6-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR0P281CA0156.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::10) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|IA0PR12MB9045:EE_ X-MS-Office365-Filtering-Correlation-Id: 566a4c94-824b-4585-155a-08db34568b29 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QHYOWiV5+1BrvZgbFPLyI5WemshzQ5K2QzDfuNu62quRx0wl9YUuvNh56Ua9xaC6K+cbcMr2mXm7a+L1rswwpmJJooTNyRP1VVclqXt+IzwYkTkFqGT3YGFv1zwEGXmD29q0mpLu8gi+CK90hpdNOZ8WK82SIE9nb7qRt2NvPGHlN6sxcJhkLoBeSTmPk54sJGF6eVPGzJGsiz51lkGZP9pcuSGTLgCK7w8o+F9YADX9Du/KfzJMGAH1fc1pYCLOJodZmiTX8BmTVfZUkQW0KOIoNut9pqMlry2ceQJS6N1MtZ3Y/UmGsEvVukgnfn8gXOcD+w1zQEJJQjbqEduoG2o2YpUz+N6fWsMSY/ZjoeK849FkANEFJnAChKoGXEXERfm/KQB+yq1aXJo0uI2gNxQ3O1d7tVaLcvBWYUv0dCUnau0xtdqYOlG7VwsrFQSX7yEu3KWaQSm/OFeM8+MQYOi60785G9SBkITn5oHlzpOWHhPiXnz5ZJNOiOMPNTlK/uqeyk1va/kC4XCJiu+PTPWUac3YIXwtG06wr6POC4MoX518IzX8WVEEXIkK9elR7UJfMUs3Udt8QZvqAfWXn7tqpMMwSmutecAc2qratzzUJMhR6Cpoc+nhwZuNDB3Eg6wOltgpMxDUgU8w6YaI2eL5Hryb3pRTiU5BJybsW9Q= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(396003)(346002)(376002)(366004)(136003)(451199021)(478600001)(110136005)(83380400001)(31686004)(31696002)(86362001)(6506007)(6486002)(6666004)(66946007)(66556008)(66476007)(316002)(6512007)(2616005)(66574015)(4326008)(186003)(7416002)(921005)(41300700001)(38100700002)(2906002)(8676002)(8936002)(5660300002)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bUtBalJsQkJxMTQwdjZJbnlLd0QyYTZFS2dXZmxoRUdwU1VzNEtYeS9uTUNQ?= =?utf-8?B?YWJqbjM2MnFMMEVQRzlFUUhmZmM2dVhDU3lvdmpJNmJiYm9Scjd3dDhwRGF0?= =?utf-8?B?TE9TS2pMcFBCTFFEL3lYMVdFM1pGT2JtR2tLUm5sdlc2YlF0bU5YeDB2UGxP?= =?utf-8?B?VFJnbHcvcW03bXVrMGVCZC9wMzhjcXMzWEFNNW1SeG13c1JIUnJqYlJHb2dJ?= =?utf-8?B?OGJ6UkVBRVBDaHlpU1QxOXZSTWpnMkhRYXJKVW9OemhZc21yU1RWNE1CN0Fr?= =?utf-8?B?bjdUaytHb3d4aWNnaTR5Z0lB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UQmtLNCtDOXREeWdXSmJnK0NZL0J4eERvWUZXcXlhczZzay9FUklFcDI3?= =?utf-8?Q?+VhILNsRjeC/lQUH6QRFiyJJloAgfL0hWvBxI2a9uMzw?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 566a4c94-824b-4585-155a-08db34568b29 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 15:17:31.3440 (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: 0rrmKlzAmRidkXnHTG/MA/YmUefRfjIbf2xAn560S/PdMlAxTD/mb+pdkdZTEkRA X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB9045 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 02.04.23 um 18:48 schrieb Dmitry Osipenko: > Don't assert held dma-buf reservation lock on memory mapping of exported > buffer. > > We're going to change dma-buf mmap() locking policy such that exporters > will have to handle the lock. The previous locking policy caused deadlock > problem for DRM drivers in a case of self-imported dma-bufs, it's solved > by moving the lock down to exporters. I only checked the TTM code path and think that at least that one should work fine. > Fixes: 39ce25291871 ("drm: Assert held reservation lock for dma-buf mmapping") This here is not really a "fix" for the previous patch. We just found that we didn't like the behavior and so reverted the original patch. A "Reverts..." comment in the commit message would be more appropriate I think. > Signed-off-by: Dmitry Osipenko Acked-by: Christian König Regards, Christian. > --- > drivers/gpu/drm/drm_prime.c | 2 -- > drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 2 -- > drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 2 -- > drivers/gpu/drm/tegra/gem.c | 2 -- > 4 files changed, 8 deletions(-) > > diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c > index 149cd4ff6a3b..cea85e84666f 100644 > --- a/drivers/gpu/drm/drm_prime.c > +++ b/drivers/gpu/drm/drm_prime.c > @@ -781,8 +781,6 @@ int drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma) > struct drm_gem_object *obj = dma_buf->priv; > struct drm_device *dev = obj->dev; > > - dma_resv_assert_held(dma_buf->resv); > - > if (!dev->driver->gem_prime_mmap) > return -ENOSYS; > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c > index fd556a076d05..1df74f7aa3dc 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c > @@ -97,8 +97,6 @@ static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct * > struct drm_i915_private *i915 = to_i915(obj->base.dev); > int ret; > > - dma_resv_assert_held(dma_buf->resv); > - > if (obj->base.size < vma->vm_end - vma->vm_start) > return -EINVAL; > > diff --git a/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c b/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c > index 3abc47521b2c..8e194dbc9506 100644 > --- a/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c > +++ b/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c > @@ -66,8 +66,6 @@ static int omap_gem_dmabuf_mmap(struct dma_buf *buffer, > struct drm_gem_object *obj = buffer->priv; > int ret = 0; > > - dma_resv_assert_held(buffer->resv); > - > ret = drm_gem_mmap_obj(obj, omap_gem_mmap_size(obj), vma); > if (ret < 0) > return ret; > diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c > index bce991a2ccc0..871ef5d26523 100644 > --- a/drivers/gpu/drm/tegra/gem.c > +++ b/drivers/gpu/drm/tegra/gem.c > @@ -693,8 +693,6 @@ static int tegra_gem_prime_mmap(struct dma_buf *buf, struct vm_area_struct *vma) > struct drm_gem_object *gem = buf->priv; > int err; > > - dma_resv_assert_held(buf->resv); > - > err = drm_gem_mmap_obj(gem, gem->size, vma); > if (err < 0) > return err;