Message ID | 20180619082445.11062-4-thellstrom@vmware.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 377EA60383 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 08:26:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3389326E82 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 08:26:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 280E9289E9; Tue, 19 Jun 2018 08:26:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DEF8E26E82 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 08:26:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DBE016E4EA; Tue, 19 Jun 2018 08:26:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on061c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::61c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 680476E4FB for <dri-devel@lists.freedesktop.org>; Tue, 19 Jun 2018 08:26:03 +0000 (UTC) Received: from localhost.vmware.com (155.4.205.56) by DM6PR05MB4585.namprd05.prod.outlook.com (2603:10b6:5:9f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.16; Tue, 19 Jun 2018 08:25:59 +0000 From: Thomas Hellstrom <thellstrom@vmware.com> To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, peterz@infradead.org Subject: [PATCH v4 3/3] drm: Change deadlock-avoidance algorithm for the modeset locks. Date: Tue, 19 Jun 2018 10:24:45 +0200 Message-Id: <20180619082445.11062-4-thellstrom@vmware.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180619082445.11062-1-thellstrom@vmware.com> References: <20180619082445.11062-1-thellstrom@vmware.com> MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: CO2PR04CA0136.namprd04.prod.outlook.com (2603:10b6:104::14) To DM6PR05MB4585.namprd05.prod.outlook.com (2603:10b6:5:9f::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 91bea715-ed72-4c2e-5fef-08d5d5be4a6b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR05MB4585; X-Microsoft-Exchange-Diagnostics: 1; DM6PR05MB4585; 3:z3eEeicsueokQCaXr29CYDW+lIX9vPydjuHFN6uORO20p7GsIdaUMxLiXXCA/eQ24U0sELqL7MsMUUf9fNF6YP5LjwIUlL0hOvLZ4bumZo8epqTSS5f4Ra3S57vHGJ63mZKzDfuqpdtFjW8sCfVFtpzAOd4MjWiEpBPoUhdqQJkrMP+pM52L9RAv5VIkhZng1jEZUffLPbA7AeqJwveIJ5uxqzzp6gwqSkhvi6Q9ss3VEiZCxEHoQJU2b9qQlSpY; 25:FN9vUm1yA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H3Y12R2yyxx3vh5I2wMGrFnOQqPCpFrrOt1YF5oL4IBPbM0uBg4Acx/1J/T4YtX5iQ1oDNN5UIuEzgRWb81G4yyl3piyuq3XArhKjqFd2/Jl/mVJINMcBh88ir3SGTbCwfE3; 4:2D6+qiCsGHuJKrvG/eFZATWoDT+UlkHe0E72oQl74ml0R5GBd70a9eMVzvQk1KL5EaYeJ0Ss0Cnx2C40t7fA1o03I1/8xx7gFmmnf6MTbSSZZn4IsbYaI/Kd57LqB9rddNIWt/QPDWhl6eGeq2Ci4v1XUJ/BoSkmgSx798dtRNRlZmWx6HmREaywgG5FMNO8qtKCAc6u5i4mvYbZ0Jkx0Az0npjGSiHG3xeoiHOB9RT5/26YsYYenEagE+pWL5zc5JUeV68TDHES24ajcdwjefEwkUq4oc+GVNGxz+hqzsgtAqaL1My8+P3PQlSpAh6TqZHjTlGlCcmBiDnB5H+Jf47tfW/p9PH9YTzhV/uEGv4= X-Microsoft-Antispam-PRVS: <DM6PR05MB4585F120DA97FD021F29E250A1700@DM6PR05MB4585.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150)(217544274631240); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DM6PR05MB4585; BCL:0; PCL:0; RULEID:; SRVR:DM6PR05MB4585; X-Forefront-PRVS: 07083FF734 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39380400002)(346002)(396003)(39860400002)(376002)(366004)(199004)(189003)(106356001)(68736007)(76506005)(53416004)(956004)(105586002)(11346002)(7736002)(305945005)(107886003)(6116002)(53936002)(316002)(3846002)(69596002)(478600001)(486006)(50226002)(66066001)(2906002)(186003)(16526019)(48376002)(47776003)(5660300001)(26005)(97736004)(6486002)(8676002)(7696005)(52116002)(86362001)(76176011)(51416003)(8936002)(476003)(2616005)(16586007)(25786009)(1076002)(59450400001)(446003)(4326008)(6666003)(81156014)(81166006)(36756003)(50466002)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR05MB4585; H:localhost.vmware.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR05MB4585; 23:zDeRbd18YvceHq5uGj8BYPKMl4GIHMldSJyUewI0s?= =?us-ascii?Q?UHHP2V5HExQclxp8l1Nl2JT7dAgGUXmrTbUsJbifIeljymXbnDzQoLQ2OcGN?= =?us-ascii?Q?Z62xowi8QItshARxO3CIPRgW64vA6NIU1p8qDKVmFmk6p0APMaFUioPn5uYn?= =?us-ascii?Q?+A1n0XnUb7ysipi0rYzy3UwYahb4o/kSJMANgCQNdtlb7IAQ5Mz7fRk79Cjr?= =?us-ascii?Q?0wsN0n99VUoDp+2Ofy56jQokSrdmPJlknDw7nM8HGggKvifT21zJL65DBiPq?= =?us-ascii?Q?LK9EfjUH7s/4PLHFtaxOllM726NDCADhv5LUFrkVM1b8CwB1DD4+K8PZUhP2?= =?us-ascii?Q?FtemhAFjksMZWQLH9vjdBBR1J+vH0TFzH0OnNgCjnBp7+R5RMo9Dw7kq/ATr?= =?us-ascii?Q?v0DtprKE5I8nqujt24ujk0jUpz+zDfkFXtDIvitIKdgbwow/0rDe1qsAwv2J?= =?us-ascii?Q?/bAg8GejTnjVMO2jkZ6P/m5XdnruOCc766dzXIXDe7PtNVupE9V5oU+ESir9?= =?us-ascii?Q?qWuPPI0pU2uw4UWZQRO5dO0RHQuqhYIHqNjfezzT9sKRjKVaBWK3SuQ2eAJi?= =?us-ascii?Q?FJnzRSeOf48rClFP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al+8b5q8cf8mqBRwujhnfi68kChIIoH9OepJCQEYv7F4iym+tgG3zIhyWYxwSEz3qWsyvG9m4ScjbsnYILAjHERxn6SnEph+XyEz5WxLAy/kXC9wtUqAxoR8aVvmNTHSmlfebUThAC25nhRC9HlVeeC358TikA== X-Microsoft-Exchange-Diagnostics: 1; DM6PR05MB4585; 6:P7ROwcVNAIhDzCV23y5OcTobdbEtYqq54mbJuIwMlvBh88sShsLVxNGc8I9CSWDFGYiSEqOEMGNZOxsAtFNEwQL010f8Y8cLlTukw/oddmQAcWxVRkxR1qkhnwPHpW8fIo8SA8jwIEg/X8oYlL+L01IqWJwZlEVBzmQIqF1g2Hn7uWCPomrjPbHbxaqaFCGSJwYgVQRYeAFYZiYNqQNOyhebA+TeCZ7w1YAg+h/gvEJEbFfkD30jPkTSLrqY2/Dq9NihAm06cXEQ8Xa59f51EGIqkIfgaScIYuDebRbTIiJ+q88Mx90zf6eVqAmmq1UR1PiVI1JrDUKZdcE4jZq8edZsCeWeukTphZ21E+M16cPGtapGK7NsG5APQWNgeEmXFQ/yl/7DvsrFbakYRTdKQrxidobsWsuhXv6m6ENs7bODLQQnrxP6I9jr8TS495PoU1XRtjOyS+PMs08uhJYI3w==; 5:j06oOy1v7w/XEQAsl4X+ExcTKrfsZqRMioKNXzOwB4vXkWG1THxHP0001NvL43X4PDh89xCwBEagkLRDDQf3voSLTW2J+Et/ZSXkHxKg4wd3AFO9JQmXEE6A2Bw8jKqfgLxIebLc1tsEnV5KDbbUW/MWCMOjx+quMVlR0ihg+gA=; 24:w575C+TuA18xSri1HNSFd5oCAFF6ZXfXVj0HxL93PsDo/7gJYmETX0qlbxwY4Gt2bU5rZlq/bMuZ+NMbf1PGt8UWd+1QQhNFVC7Raq6SwE0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM6PR05MB4585; 7:GujipQY1tuwcwRTMpLBg2LBNVcWmfP2zYjPgbBGl0x1b2CQsxVuo4sIHbwDQOMH7nLVeQpqeoAk67WyeCbun8jhKOGFDqN8qRIpyGf1TjtvAA4Jiuk4eM/I56hCvE8Z/kZ5eqdh5BIytANfYqpsiFwxfN5mq2J7UQSYIsdEzCL+iQqBAUrThyHKSNy8S0+1rUmDN9GEocZFaC8U7hzOc3gUPSdepdZr31uMNXzdBg0MOSJBw01yq/BySpcWo+vZC; 20:M68npuzSunq+n8sxk78JxgfETKOvQqdNxV7RgC1VLhO5bQTYI4BszRCS+opejrYFms/svKdfMsgRgdLeYZhmNk3PEiZ4wrr2t/b3PKUCGiIaKZezhKBhcd/anl1+GH8rzvjcX70tcuZdHQyTuVRgfTc2PdJk9psz+c4r/XsdxQw= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2018 08:25:59.4904 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91bea715-ed72-4c2e-5fef-08d5d5be4a6b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB4585 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 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: pv-drivers@vmware.com, Thomas Hellstrom <thellstrom@vmware.com>, linux-graphics-maintainer@vmware.com 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> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c index 638be2eb67b4..8a5100685875 100644 --- a/drivers/gpu/drm/drm_modeset_lock.c +++ b/drivers/gpu/drm/drm_modeset_lock.c @@ -70,7 +70,7 @@ * lists and lookup data structures. */ -static DEFINE_WD_CLASS(crtc_ww_class); +static DEFINE_WW_CLASS(crtc_ww_class); /** * drm_modeset_lock_all - take all modeset locks
For modeset locks we don't expect a high number of contending transactions so change algorithm from Wait-Die to Wound-Wait. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> --- v2, v3, v4: Adjusted to API changes. --- drivers/gpu/drm/drm_modeset_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)