Message ID | 20180614072922.8114-3-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 56CB1601F9 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 14 Jun 2018 07:31:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41871289C0 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 14 Jun 2018 07:31:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35F9228A24; Thu, 14 Jun 2018 07:31:00 +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 66D1F28A05 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 14 Jun 2018 07:30:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 49F096E6FC; Thu, 14 Jun 2018 07:30:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe45::62a]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD7F76E6FB for <dri-devel@lists.freedesktop.org>; Thu, 14 Jun 2018 07:30:56 +0000 (UTC) Received: from localhost.localdomain (155.4.205.56) by BN7PR05MB4580.namprd05.prod.outlook.com (2603:10b6:406:f2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.13; Thu, 14 Jun 2018 07:30:53 +0000 From: Thomas Hellstrom <thellstrom@vmware.com> To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] drm: Change deadlock-avoidance algorithm for the modeset locks. Date: Thu, 14 Jun 2018 09:29:22 +0200 Message-Id: <20180614072922.8114-3-thellstrom@vmware.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180614072922.8114-1-thellstrom@vmware.com> References: <20180614072922.8114-1-thellstrom@vmware.com> MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: HE1PR0701CA0081.eurprd07.prod.outlook.com (2603:10a6:3:64::25) To BN7PR05MB4580.namprd05.prod.outlook.com (2603:10b6:406:f2::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84f5fab1-9546-4bf4-c45f-08d5d1c8c2f6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN7PR05MB4580; X-Microsoft-Exchange-Diagnostics: 1; BN7PR05MB4580; 3:lzQwQIcwMM1vJLcXiRPCI/SwaUf6rD7ZqVlU8eC3Yi7ekaE8roVPylFcWA86VIcbB5mxKY2qvlrMT/VwJEJi+5ti36mSc7zBKXBuJyL+G0GKObi0UoEmUDqIna+aklTmI55h4SvcR5242ThXxCkRK1VDZrKof13v1n9789iYss7nUelNVzI7XFkq93a3lVWk2VrYJK9IRqRo/aRm9xVoMmCzXGrgR853ELXZdVB67k7ylOWC4jrY+lAjz1IjH3B1; 25:D/1Ab1me9kX7qBP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wsncusE0r10kLEeFMIELjfHAD4dYkBrTNdlEjQhgI+v4N+Hlttnn1PFLGI8XEGGoEw6qVFK; 4:gWYzd6os8kNYPf9nGjWEG4KcRmwK14vlDZliopp4K6+aZsVNAOTJ1fo4gZdPJq5PDL4X32x98DwTcilWeiaqpT6EBw/WPb2jpXv5jW7dodvsWewD7PROWs+J6xnrQdP2rsRDZ7e56Onp73xItm9zRP8xIE09uomR0FQEsqTzME3xrsRQz/vl09kgErlRjqF2FKWMblGgvzZjDbVrBPZZN4UcShuc097Jhx9R7/vnAtARuV8NFEoo73b/kr+7g+j+x1pr5HLoTUBuzsNarMp6QnE3fOcFo6iL4s2e10bgFC6PteaUssE0EKNg4h6CHU8+ X-Microsoft-Antispam-PRVS: <BN7PR05MB4580EAD1E4CB4FD875900336A17D0@BN7PR05MB4580.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BN7PR05MB4580; BCL:0; PCL:0; RULEID:; SRVR:BN7PR05MB4580; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(376002)(346002)(366004)(39380400002)(39860400002)(199004)(189003)(107886003)(6506007)(50226002)(2616005)(476003)(48376002)(11346002)(26005)(305945005)(105586002)(106356001)(478600001)(51416003)(316002)(52116002)(16586007)(86362001)(486006)(6512007)(47776003)(8936002)(956004)(97736004)(59450400001)(50466002)(16526019)(7736002)(25786009)(186003)(386003)(446003)(5660300001)(53936002)(68736007)(6486002)(8676002)(2906002)(81156014)(81166006)(3846002)(36756003)(6116002)(66066001)(6666003)(4326008)(1076002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR05MB4580; H:localhost.localdomain; 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; BN7PR05MB4580; 23:WhKoo+Q7VAALNl7s0OxKUty+ZsmZgLXJfjDEBW3gd?= =?us-ascii?Q?35j3jlaMSga5ni/CUSy1/EGLkn7nB+pjdzc4GwH3S/KRSP/yzM6wCOcKu7jf?= =?us-ascii?Q?CdWYYKbMxPUSQGo8q1jKHHzIR44P+rzSN+oomi3no10IhuOm05pQ9LzZmJlo?= =?us-ascii?Q?CmUDxLuSg6FDHNa/i6mchiegsTppvieYNheu2gq5mWdkjx51mkQ2IE4wG1Xl?= =?us-ascii?Q?m6oIcwQbyNE7xhK9vJvhed7POQqrY2etE4ZYjv28lXdLjKFss/XBqoE7bF4m?= =?us-ascii?Q?v7wtizKdCO5BxuuHSzZ9tqU6ScrWin7vAn6mCd6f8K4ZwY8EdItpsFsSFBxl?= =?us-ascii?Q?86Y1td9wUq3gEN4zq3rYMslZwuuj06kCnB4GOlL51l0Z0DE9BcioRozweFVL?= =?us-ascii?Q?3NMQaznch0SHSYBcpt5759sm/buXv7e/ro1xNZwuxvC88Xxi8Aw6lZ/aJRov?= =?us-ascii?Q?A+VfXgF5pOlmlDX0m1AOi1K+H8s44ZLfOY6g6bwj2mamK9FUikbhylJNPRLS?= =?us-ascii?Q?zKTJ4rlgUDfofepGG0OUV7k1nMpFkQgMyO6VZSEMykezQtZt067FXAhl1mnu?= =?us-ascii?Q?v+Utsj5zAi22XSu3kF8/xKeJMFrT9Yy5zmWl2vh+q3vNamxS0WUJyaEdxPOK?= =?us-ascii?Q?+PE3E1VKqTRTtvMetdHF0/8pI+8RH1pb8Vf3yqLEL7k5GQAkr2VPE/8Csx0e?= =?us-ascii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+6YfcMN5VpeXVQaefCFe5U2+eu8/k4ZVCQ3EWBqxvL97Q9+SmhVVKZvmqnzV9//tr12lOcyFq5toaZOynThCLfU3No81kIbOzSbu3wVfkILXfT3K7ZTk7K7ZrU8AYcBa4+VPSOsgYp8esgzlepZ79LrJpiQIQ/JkmQYajACemfWcAn4h7tN7EhtRcgk51mV+u87t+hCnou+4qxzgPkZxeKmGt2gBh9cmjk2b/qMApncaFgMWu+RG4xO2lQsa8l/qJ7QsXrwasbNUojC/Xhd6RNkTUVcntkLCa+5NSj2hU7i0gAueefqt5fEHPjbghyJFf4CH55vxomg4VlXi9g==; 5:1f2d45pMIA+87LPQn55vcVQExZAwLf0zvDXSxSBd1QPSiDNHOGYVJC/Z3mKvUb/MYeSnbdZMsIuklDpAfyemFI4IFUHHYEkAdioqI3lyM8mjmA2SCiwvrZjn2VH/bqLuUoKm57EgFistzApAweoWNOmsdVn2Q/k2MZQLyzx70Uw=; 24:wfgG9fqQwcf9LK/DHUb8P5fwczYpxscLO8UPqYbpetzdaw0SLuQf07KETDvHYHC5JYOvxFA+a/CRSNSS6sZh9eIhk1MUthHc3WnOA1/1e1E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN7PR05MB4580; 7:wmQAy24EVHMq8jseLwels0V9y7vpnSaQLnn1PjHnO2dog18zW2g+o/FabJ4qhXxUL9ED8yPaMpSPnr1+0NjQuidH78/ut81nGWB3VCsrtBb/IKyriiSFxlZegIk6/ZS/MjfG2oZUXvdmqwUYgyPwXiK+yqCukO8GSXKd9uYiJNle1WB+o/sCVkEyYwbixCyrqrKjupQwK8+EHoxTv4LdsHCt7ORqXtuCBT3/Z7acnmFgdCTwHgbLt2a+dIK24oXl; 20:ZPhDukN5v88W09J/E6+gPCD71ApIIy4IUoRSl319OPTz8GUACzY7gcighI0w8blOBX+iuqaBA6/bErIjNDBH7pxC8SzDQYYFpEAj2pHl5lo4H248aeSQKil0GZOnyaDhLtfT9iJj766gFGSamAnbpJkMSJBtvQX1bGuirpS2Hj0= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 07:30:53.0434 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84f5fab1-9546-4bf4-c45f-08d5d1c8c2f6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR05MB4580 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: Thomas Hellstrom <thellstrom@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 ff00a814f617..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_WW_CLASS_WDIE(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. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> --- v2: Update to API change. --- drivers/gpu/drm/drm_modeset_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)