Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbdFZToW (ORCPT ); Mon, 26 Jun 2017 15:44:22 -0400 Received: from mail-by2nam03on0041.outbound.protection.outlook.com ([104.47.42.41]:2432 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751335AbdFZToO (ORCPT ); Mon, 26 Jun 2017 15:44:14 -0400 Authentication-Results: ffwll.ch; dkim=none (message not signed) header.d=none;ffwll.ch; dmarc=none action=none header.from=amd.com; Subject: Re: [PATCH v2] 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, seanpaul@chromium.org, daniel@ffwll.ch References: <0d603149-3fb0-3d48-89e5-77e3f7686415@amd.com> <1497981426-27203-1-git-send-email-Andrey.Grodzovsky@amd.com> From: Harry Wentland Message-ID: <26571917-afb7-fb53-c002-5869cf8ccdf9@amd.com> Date: Mon, 26 Jun 2017 15:44:07 -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: <1497981426-27203-1-git-send-email-Andrey.Grodzovsky@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: BN6PR2001CA0019.namprd20.prod.outlook.com (10.172.112.157) To CY1PR1201MB1098.namprd12.prod.outlook.com (10.169.19.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f4e897a-8030-470d-2870-08d4bccbb840 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095);SRVR:CY1PR1201MB1098; X-Microsoft-Exchange-Diagnostics: 1;CY1PR1201MB1098;3:xwKXfM2hjs5VcgaUFHfcQCOoiNMCee5TUndnBMWlx/XDSQIK3wwXDHqlwZsFN25CjmyfKR8kdShVOnUoxZS+wkW+H4HxeYLV1twoFGHmCb3ywV1it2VzL1Dz6vvcnNLVFwp06UrT7AXLuHDlJsSI5z4OBZT6cd8m/LVIH4MhRWAkLcrMvSYgmNa2taSctmOI4RdOFlaxHGcdE2EiAtVumn+YyujrLuLfyeGN4/tiilO3nbmiuk8SBLKWGIaHfXyFXxy7/MF8+fq93pUv9CTp1Gg9szlCIx4iwU8tps89Dxd/PrxGO/leRKyoCM148K/jmzjed4pjbVH3AieAKcMmHZYDreUjOZo7z68wm4DPe8R6uI+83CcKmBy+8L6qwFZi4n3JN8+awtj0ETOIT3WOAWH5mOrUqRkre+5ajesMZJDH8m4/uCpq1gC3xU8aK/znqsEgsqUC+JNHzukDbpguBWN/v0l+FyXh12QwsqBE2Z/oZ+J5QM2p8yqTuRbTYm6uEaAIbGlt5frETilEfP5Wm3JnlOdew7O1D0otJmEOdrq9DN0/5cphfeVjOtLyjbubtBITXJmi9RNjGRNzkRq1/acKmaKuHdqcEZxMnl/Vgqhq3y9LfV2baBipfnW53TIX+1ou3eZ+4UWDmqR+oYYz+syBEpyA5lDoqQBQrcGMsd6qg+rgHITNuh54cUdzewLjAkRwChYO8/osAw+gHpkukA== X-MS-TrafficTypeDiagnostic: CY1PR1201MB1098: X-Microsoft-Exchange-Diagnostics: 1;CY1PR1201MB1098;25:RXO6YYNm9NoLPIIp/+oVKadU9Legp6+eTo2ns+lnvOsG0abEU1JIrRbF9gIe43eCBEaSMTSD72amGqsRem0zxkrBLKDggx+cUHOEVS9vpWg+iCVT5uHCCXX7ChrLQj6dS4a0Olwbs+h3TbW41bLEXT2UruxuiBpYCStE9PlE+WL+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FcgXdkHJYQiuXae89IXjRDalsJ91bD5EpHuFCuMmaO/SA1iyxXap5X8x0kev8pyRXOvH25djp5dgyqWWbR2HN1i7Av7Ld64sE83OppH+ramNe6Y0qqkpWrqxJG4j3xuBP6CEGOaZSnDNMoyxAJr0s3mh42B+f6jqMZ5DOXVa8cwwYwrxbnJibUGApuCvjpictcEt8DhvxUKR4tWvyTwp2eNwShXqQspPuDgF3zlyovr8XMEHcUDN5qVv/JxT/fq3pAlRzk+FouNq7GG0BLA+S7EojvixP0S9HuJlsjtYYUxg1YUadq7iN6e4tZR4AKdItGPGDe4OafQs9l3lndTqxevZSsjJVnYmd8hMkRfdBQc7paBEp8pVky1f1E3VLlU3s6Et/1r6uMuq3dQxW0f4XJMWKuTxx8ooensLWN0WmTl0s= X-Microsoft-Exchange-Diagnostics: 1;CY1PR1201MB1098;20:4c5iVRcjL50CBDu2kVu3GpiP4m3MEGhVNsUa2k2X0zta9kEphfn9lWsq7chY+U+hM1O1WQbiHWuJ+1Rp21hkqh2K5RkcjZrkzVqEFv01lAex7OjfUOrv6QAc2WAVrx9+R9lweK4srfgD/73obJKoYAgP1Wu8umZFuROby+E254Fx2D6J5ekM9F6DPRtohj6IxO1aV/EyTPbcZRfXFy1McXABv9mpRBrjkDB5tJoqz/IYyPCN8Kt5LU2mVoqvQam0FI8JoFiKmOBOkzCrcxwerxVYDK0/rM9kVdGTCj9FXXDUOzIWG/vVBwUUhTsc5QvDihwk5RU87LwTpyoR4GXobI9uHAqUDIGPzmb+aTIb7HizAsPZjuCfLrNDPuOWZ9MrUGy5sKm2nGZuw5GlWadqnLJ7xJMmKIxFEbBSoQrS8b6NXnwmtW3q4Ri7SWESs0HAef+c8OfMEuK8YI2Y+GaIGPsQqWSqDnhHjAiojx9cDDIswPufUnJAgYN85xkxLgr5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(767451399110)(247924648384137); 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)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR1201MB1098;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR1201MB1098; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyMDFNQjEwOTg7NDpCdXVJZWROZTNwTWFrc2FudnJRNDRVNWUv?= =?utf-8?B?U1dHa0pJWmx3UEkzb3FPR00wbW9uRG16SUxLTnpEQlVFRXM3SHVzWDM1blBW?= =?utf-8?B?VllzMmFaT3hZbUd6OUFaaWdQQjMzOWdVVkI0cHhqa1hacm10TW1tbHVKZFdV?= =?utf-8?B?eWI3RjV1Q05uYlhhRWhjTUhNcEJuOVYxMU5iNGtzRVFNelhMWnFJS2ZOWFZ4?= =?utf-8?B?MzRUU3FjN2pVeGhlMkZhSWgrcXYySVhLNHlGUjgvVkZTa1VCSEViMUZjYXN3?= =?utf-8?B?YlF5QU9Wc2lTYWxjTGhYbURnRGZSQXR2SkNiVSt2NVQ0YVZMS0ZSZ3RJNFVH?= =?utf-8?B?aEN5WDFTS0wrdGNaSnBNTmNSa3NrNDUzb3pCYWtOdW1UMnpuV1hXSEZ1RkRR?= =?utf-8?B?ZFdIV1lvK0tQOHB3UHdmQlkvS1hqVTl5QzNMMnQxZkNXeU54RzlhenY4M0Zv?= =?utf-8?B?dkFZU0dNdEpTT0RDVy9EUEtBWXRWN3RQUy8rb1FhRHNuTjRlRTVxOXZVVnhj?= =?utf-8?B?SE0zVEFNN1M1bzBBczlGZTRDMldnSjZ3NGhta2p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SDN6bFhDZ1h2V04wSkFEaVZrM1Bp?= =?utf-8?B?azhIK1NmU2s4MzJjRnR4RFFZemtZV09wKzkvSUtBTERXaGRHbFhUQWxVSFg4?= =?utf-8?B?UTh2L0dNSkdwdjh6Y29XNkl6bklDTUNleCsrN3h1YklMeW1pU2RIV1Q0a1pO?= =?utf-8?B?dlVrMVZxYWxBQW5KdmNtRHZkSmdkZlNoRU5LSm40alFGaVc1b25yUWRrV1RQ?= =?utf-8?Q?05D+MxT0BBDqFbp8qy3BdTfXAj1eiByco++vVaK3?= X-Forefront-PRVS: 0350D7A55D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(39850400002)(39400400002)(39410400002)(39860400002)(39450400003)(377424004)(24454002)(377454003)(7736002)(86362001)(31696002)(50986999)(54356999)(76176999)(2950100002)(83506001)(31686004)(230700001)(65806001)(42186005)(6666003)(305945005)(66066001)(5660300001)(65826007)(65956001)(23676002)(33646002)(110136004)(38730400002)(4326008)(72206003)(2906002)(25786009)(6486002)(478600001)(8676002)(6116002)(81166006)(6246003)(77096006)(3846002)(189998001)(4001350100001)(53936002)(229853002)(5890100001)(50466002)(53546010)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR1201MB1098;H:[172.29.238.226];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyMDFNQjEwOTg7MjM6OGdWWGh1OWl6cmlhVXduYXlVL1U0Rlpx?= =?utf-8?B?cjlyZVJZTWVlaDFuM2hLbzUvaGRPV3h0TkxKRlZwUTBzTEd2TlFMQVM3NEth?= =?utf-8?B?WkphOTFKckNnZWFZSlpqYmkzSFczV3R2RFptTWQ2RWZzeTFHS2hwdncvQmJE?= =?utf-8?B?aTkyRXZqalc2QzV0S0k1cXpUdWxZbkJQa2hPTFk3cWM0TnRQSEI4cXdaU0U1?= =?utf-8?B?enRVOEtkY0VhMVpTNE5HQUhIcmxnNl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WkxsNFlNK1VmRUg0?= =?utf-8?B?dHlhVWlKSldUckFmNnJyUFJhOWYyWVBJRmVPa3dET1Vkbm5hdjMveG9sRVJG?= =?utf-8?B?N1VOeXBXdTU5SWcyeE5GVkVWdm5kUmNuV0IwMEN4b0RvdU1JdEliV2dtVEsx?= =?utf-8?B?ZXhyQzNWV0ppTWRGSm1Kdm9GY0ZNQ3VEdUY2R3JvMk1PdEkvQllSaEMvUGFC?= =?utf-8?B?bVdudmQ5M09raHlOVk9rOGZJZXN1UmdhNG5kQmRIRnRzQldOd3RVRFc2RUZq?= =?utf-8?Q?7R7ORqJ4V?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR1201MB1098;5:zHbVIqxB3tkKk9uFS9CJJKV6HBLQK+Q6NZQoV4Dv4RHR44JbhIqupIQ8UziytP3581kjEqHLcPeq9Y90ECf4hDkS0KbRK0a3MI/dKDrcqARA457/fFBdSIRI4HbvmwgGi6panCr5lDgJ4/ZxSr1BToIjl56oocYfRNzhWGAo6Ba85GforqZA5QChjsU3q3RRvU2PkFB2nCMCKNGr0tWk7jHzbNDdt6Vobeauw83mjaS+N76Tc2ev4FYb226+5Kwjs5s5+UAc/fqq+LvnSdcXwCEwZYIBGAerXzaN4ph3nVK2gHe2Q0w/EKPD6Okv07Wb1rAUfW05cQpnl0T/g0S1Cxv2XGvi9wKukvi9B5GWTBmDCKPPctKDn1LjZtapW6ib/5aNQRYYmAhk3DijL1FTxeisZhC9TZTf4Kv1iYGGYzsnp/IGJdMgzSNPYPHzZduOH45qkGXVkzQoqSq2GE6t6I/iUklOFJNNz0kzJC/5SLnRx1wULzqj/TtO00/hGhdi;24:13b381dzK83tUtO5MjhQlY22M8gHYb5344YOtrvvkCZD7E7hpfqFE5KlUpNLw1KVo/G9htUSZ+vr1FNdHz06B9wq2zZD0brIq/jXtekqfsY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR1201MB1098;7:phvsconX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ZqEgIXps6kVbWx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 19:44:11.0271 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR1201MB1098 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1899 Lines: 59 On 2017-06-20 01:57 PM, Andrey Grodzovsky wrote: > Problem : While running IGT kms_atomic_transition test suite i encountered > a hang in drmHandleEvent immediately following an atomic_commit. > 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 signaled. > > Fix: Protect against this issue by failing atomic_commit early in > drm_mode_atomic_commit where such probelm can be identified. > > v2: > Fix typos and extra newlines. > > Change-Id: I3ee28ffae35fd1e8bfe553146c44da53da02e6f8 > Signed-off-by: Andrey Grodzovsky Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/drm_atomic.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c > index a567310..48145bf 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++; > } > > + /* > + * 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; > } > >