Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754349AbdFSPfo (ORCPT ); Mon, 19 Jun 2017 11:35:44 -0400 Received: from mail-by2nam03on0089.outbound.protection.outlook.com ([104.47.42.89]:15955 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753285AbdFSPfj (ORCPT ); Mon, 19 Jun 2017 11:35:39 -0400 Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Subject: Re: [PATCH] drm/core: Fail atomic IOCTL with no CRTC state but with signaling. To: Andrey Grodzovsky , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, maarten.lankhorst@linux.intel.com Cc: amd-gfx@lists.freedesktop.org References: <1497043819-28591-1-git-send-email-Andrey.Grodzovsky@amd.com> From: Harry Wentland Message-ID: <0d603149-3fb0-3d48-89e5-77e3f7686415@amd.com> Date: Mon, 19 Jun 2017 11:35:28 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <1497043819-28591-1-git-send-email-Andrey.Grodzovsky@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: BN6PR19CA0075.namprd19.prod.outlook.com (10.175.197.13) To CY4PR1201MB0007.namprd12.prod.outlook.com (10.172.118.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bf9db3de-5b48-4536-b3d1-08d4b728d284 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081)(201703131423075)(201703031133081);SRVR:CY4PR1201MB0007; X-Microsoft-Exchange-Diagnostics: 1;CY4PR1201MB0007;3:z4wCKoUzgN/o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5GMBaVERJzSiCIpM1gKmm2CZGOgKp5mc+W8l98O3g69oV52cVhScDqTzCSivDunOcRrHyctsCEeG3HNnA=;20:RnVr7FfTPC2E4wWBhO9jJPhH+Bkk7X5v4IoqUdvz1PaL06uwRD/oXFqskAtdrGivHw0EWepKzX7Ev+DcqSXnuamjWa4t1BjsPbmfju9JCG26UERBZkcES1BZDRKWFLXIOcQDak61N3OMT3i+WvzLYiaTnuJRiO/YWiDkponcfNm9F3FzrKEyQGBv3Wjv/O63eLV0WuN4zkq3tcst3RoCWXqE26Hh0DoLigY4ny7DzMq4hUTqlwVCJqq3xnerr6fVyJE7C9WWqIaX7KMRKoqSm5SAmegD/tHGhL+UBZOaMFV7QPxAa7omx2RAqucwytBvRjamVdAr/w29g4e/LREpN1xGCVEwPPpMHvxeIJw79PdVcO54O/ii9GZb4HUv87CZqsQuiVHLyNEZ2q6gS9ZG7MjnkRqXpPnyff6cj2pfCs1Kx1bY0VnAKWWXdQf8fPTlhHgVdz7RAesc3keE0Ot9IzjQgD7ZaQ708fJy16V/o1HIBazEEL2Zec1jNK+jLSl0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR1201MB0007;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR1201MB0007; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyMDFNQjAwMDc7N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llsTWRYKzUwS1RuTEVjdllucFV4U1N2SEJPbUlIQklsaGxiallp?= =?utf-8?B?emRwQkpaTndnbXRvZzFGUnFZTkhRdThTUWk1UXpaSkVqVWxTVVJ3c3pxbFJy?= =?utf-8?B?Z2xabjNyejJMNjVkQXQ4a3FncHBINHdyaTYrbzZ0L0NSSGV4K0dZbkMyUkpX?= =?utf-8?B?MmlCejBtUEdMbXdnUHgyVFNtSnpiN0psdVlkeGo2QVpiR1l6bFBRYjJRT25x?= =?utf-8?B?dW1lNEp4UlhVUFZFY1h6UFgxZS90NlJkaGlrT1BoK2tOMmVzdm1KbWVEcVlG?= =?utf-8?B?UWltSUwwTy9rR2hjeGFYSUdOREZaY2ZuU29NSllLVlNsTGhoN3U2d0xWNEtv?= =?utf-8?B?UVN3amRNTXU5NExIWXd2YkVpVVZETWEvd1VOcmFrV2o3NWt2V0Vybnk2WklJ?= =?utf-8?B?UDFEazNoU09jZGdueWxaMVJBNzVtc1FqUDB3dEpSTGsvS1dRZWFwK1dpdFYx?= =?utf-8?B?akZacXUzZU44cStPaEtmbENnYU1KQTBtR0EvZG51cjNGb2EyLzFsekZIekNU?= =?utf-8?B?Rm9hNXlsRHdyUnlNZVNJWmVTK1JPcGtxVGNMZ2M5MUhXd3ZhL1FuTUVlaGs4?= =?utf-8?B?RDNYdWpGa29mc2JJZ1hQd2ZFRlFRM3EwV1ZQZHlCWXdtZWQyNU9kUVJCUTk0?= =?utf-8?B?VnNIMHlyYUwwK1RnTDd2WXh1V3J2UXhzTlF2eDZnTCtRVVcyZkZvMnhqeFVV?= =?utf-8?Q?zmImbxy3JkaMgK/qHUKjK?= X-Forefront-PRVS: 0343AC1D30 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(39850400002)(39860400002)(39410400002)(39840400002)(39450400003)(39400400002)(377454003)(24454002)(377424004)(64126003)(54356999)(42186005)(33646002)(2906002)(47776003)(6116002)(31686004)(3846002)(2870700001)(25786009)(36756003)(50466002)(23676002)(6666003)(2950100002)(38730400002)(110136004)(6246003)(53546009)(76176999)(50986999)(6486002)(65806001)(66066001)(65956001)(77096006)(53936002)(229853002)(31696002)(7736002)(81166006)(4001350100001)(8676002)(72206003)(189998001)(305945005)(478600001)(83506001)(5660300001)(86362001)(5890100001)(65826007);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR1201MB0007;H:[172.29.238.226];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyMDFNQjAwMDc7MjM6UW1WSUhkMnlCQ204am9DWUZkTDdpS2RD?= =?utf-8?B?ZnU2cFdCejlYL3luN2xqMUI4N0N5Y2JhazROS1JHUkdnaXBiWDhjQ1lQbmJ0?= =?utf-8?B?d2o1NVZ1bE9CdGo1QlVBQnlFcFMvZXhCa0VPZGh6OXdRZWlqc25LWk9GUU1W?= =?utf-8?B?eTZiVG1PZU1BV0F4ZkxVTFY4aXV1dUNTK3JhVHo5bWcxRFdML2F0SjEvTEda?= =?utf-8?B?bmptSExzamJUaEFiRkxtZVoxdEhBalFxUTBoRVRpTnkyZFgxSmticzUvcitO?= =?utf-8?B?dGNPeXhXaDBXYjU3K2diSUUzOHRuL0RYcDR2b3pCUjlpWVNDU1ZHQyt4dFhu?= =?utf-8?B?bGxtMDhtZlcrU1hNYTBTcjNpT1RxZ1N1Z3ZWSlg2K1MxSitjaERiWkxUR0dS?= =?utf-8?B?dGdIb1V4dFkxUnhNQ2t6aDlmaHFMVmJscEgvVEpFQWdOSGhZVmVTUEZQVWF3?= =?utf-8?B?Z1NRdGRiZXROaTBPVW4zUmFVSjdacHJIQVJ2MndQODJSTTFVdE05RWNhaHpW?= =?utf-8?B?NU9uMm5MYm4wdG9lWGhpWlJRckxBUEs5UXZzMVVvMVlIM1VHaE1WblBjTGVB?= =?utf-8?B?N2dGMHMwMnZydzBCanJ4UkFEMERMNlA3dHNweFIzUzdGRWt2Y1dCOWlqdDFx?= =?utf-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gZicKA+FAt+TS25dtxIRaCX8vdiS/OJVYj6ptDOAoLZPB0c72oFTFehaAn5+Ehr8XHMfzM84+3J+iiGKqotofZEBrxTOL+aEBam7btah6QpiUIBevKrnX/8UpdmK/HjNT8d2p0VdAUUCwDC56Fj73VP/pBxMs47+geT4yJ3A2e5m0edVasBLxZ7cAJIkuy7EOaWIlwB4z4sayG1gT/n4UAPecFDc+Gk+rOuyyUwIyzSm71o1hUUgN072UNNQ6k9orxi5IT07ow2RmflTP4FSmvsUgKZl985nirESSoej67duhLd9+dWly120JCBIeAjwPwp7usAeaSNuOFT6MrS0fHwYD12dj8W79oG6Fh7pt0uW+ArKrNlOr5U3TWFmOCAE2M1rdD4c+HnmjqwF7IDvRDOe6r0laeJTbGHpe5VoGTn/JrtbUjhsoZ7UsbHb+10AnJwg/D5E= X-Microsoft-Exchange-Diagnostics: 1;CY4PR1201MB0007;20:2Y7i62vLobFLpl5fzgqo1O67bDhmDMWuGBafWzlCk7JtRju3XXVtPTJrniaQ/4J3fHMyr1gBBN94YfT5K6dZTUpftQVMPlgZmEHaMaF5UnPCG04ZHUq8DTEmFyLAvg9lyjHvNY53uOUKFlTBJUWG7M3K28UeF3N9e7EqxtU7FC4vSb8+WUTW4P5KK1r4278L/AxzMbdMDequSkQtInzeu5P1dMOXBkEzYOmxIoX3GkYEWhsMcPsxPsg12yPxuB04 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 15:35:31.5181 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB0007 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2467 Lines: 85 On 2017-06-09 05:30 PM, Andrey Grodzovsky wrote: > Problem: > While running IGT kms_atomic_transition test suite i encountered > a hang in drmHandleEvent immidietly follwoing an atomic_commit. s/immidietly/immediately/g s/follwoing/following/g > After dumping the atomic state I relized that in this case there was > not even one CRTC attached to the state and only disabled > planes. This probably due to a commit which hadn't changed any property > which would require attaching crtc state. This means drmHandleEvent > will never wake up from read since without CRTC in atomic state > the event fd will not be singnaled. s/singnaled/signaled/g > This point to a bug in IGT but also DRM should gracefully > fail such scenario so no hang on user side will happen. > Can we create an IGT fix for this to make sure this won't happen? > Fix: > Explicitly fail by failing atomic_commit early in > drm_mode_atomic_commit where such problem can be identified. > The change seems reasonable to me but I would like to see some input from someone who's more familiar with the usermode side of things. > Signed-off-by: Andrey Grodzovsky > --- > drivers/gpu/drm/drm_atomic.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c > index a567310..32eae1c 100644 > --- a/drivers/gpu/drm/drm_atomic.c > +++ b/drivers/gpu/drm/drm_atomic.c > @@ -1933,7 +1933,7 @@ static int prepare_crtc_signaling(struct drm_device *dev, > { > struct drm_crtc *crtc; > struct drm_crtc_state *crtc_state; > - int i, ret; > + int i, c = 0, ret; > > if (arg->flags & DRM_MODE_ATOMIC_TEST_ONLY) > return 0; > @@ -1994,8 +1994,17 @@ static int prepare_crtc_signaling(struct drm_device *dev, > > crtc_state->event->base.fence = fence; > } > + > + c++; Not sure if intentional, but I like it. > } > > + /* > + * Having this flag means user mode pends on event which will never > + * reach due to lack of at least one CRTC for signaling > + */ > + if (c == 0 && (arg->flags & DRM_MODE_PAGE_FLIP_EVENT)) > + return -EINVAL; > + > return 0; > } > > @@ -2179,6 +2188,8 @@ int drm_mode_atomic_ioctl(struct drm_device *dev, > drm_mode_object_unreference(obj); > } > > + > + Remove these extraneous newlines. Harry > ret = prepare_crtc_signaling(dev, state, arg, file_priv, &fence_state, > &num_fences); > if (ret) >