Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4127603ybg; Fri, 25 Oct 2019 13:46:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuXlLgHVB1eqmonxBKLdKgY57pntCJMEftNIxjewv7Rzz2sQiX01B0b95w0gSaQjYpfuGj X-Received: by 2002:a50:afa1:: with SMTP id h30mr6164410edd.126.1572036368919; Fri, 25 Oct 2019 13:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036368; cv=none; d=google.com; s=arc-20160816; b=WiGEdYCD8TtYhUx/x4XtHHoyB5as6PwtHNI7VK2Iku8W+Rol5yAH7PR9zziobzthuv 6RHwHrHE63AWE8q+X3cyTztN4F5aPXEWKKbMaeFkahLi6aiFG9RoI1iCmDY2t+QsVY5P yKyWgXf7G0xAdZi7fdBETC+l8ARs4fq5aDfZRFDadKYj1G2pGKsu76m5CVT8KkcWoKJ8 hFpWnmKEwV4x1IgFl3yg1D4e8EnIqg/GtLsZHnT7MyfBKoutabckkDMEFWmN/z+5aC2k j4QUE4ftc3xERO4ZDHmTB2jzNE/ZyMKuhxeHqC2t0yGuSsuqa/jutT4SsNVRQMZr48Ul LYZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uapoJG5FVvrKvKRtiFEqEsipyR9B1pk7R9C7OjXAVNM=; b=RZmrWRWkeQADKU42Zu67f5RnKMh7SN8WFjhKnocwqafc/dOEUIANbkSP+NJhBJRs12 kf9C2a3xssEd7RA7pmrIyQ0F9IkZmVyWaaJwfFV6kNsM0fYVrwg7NcAx+Ckm8EmKxwef FwxipTOGC2xAqbebBZjZxhg+tei4AkKxEMpS2Yu15NaYry1+mLwt9xbeYk4ek9Od+c4K +Z7T+xQpoSTmiEf/CMEDfCVqoSnvt1f8sezX+JkFJQ285tTVI5FH7Z5kYm84ye+K7a7r +eI/D5qzyynZSr4ctgiFcBLAjjt7ohOeSRC/p74N/vG2NMHArTqBiY6ra7iKQHC++pVW Ol8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k63si2130609edc.347.2019.10.25.13.45.45; Fri, 25 Oct 2019 13:46:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2505524AbfJYQUE (ORCPT + 99 others); Fri, 25 Oct 2019 12:20:04 -0400 Received: from mail.netline.ch ([148.251.143.178]:57909 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502253AbfJYQUD (ORCPT ); Fri, 25 Oct 2019 12:20:03 -0400 Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id 210712A6046; Fri, 25 Oct 2019 18:20:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cDFWOZDoYXzC; Fri, 25 Oct 2019 18:20:01 +0200 (CEST) Received: from thor (116.245.63.188.dynamic.wline.res.cust.swisscom.ch [188.63.245.116]) by netline-mail3.netline.ch (Postfix) with ESMTPSA id CC4982A6045; Fri, 25 Oct 2019 18:20:01 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.92.3) (envelope-from ) id 1iO2Jl-0005jU-GJ; Fri, 25 Oct 2019 18:20:01 +0200 Subject: Re: [PATCH] drm/radeon: Handle workqueue allocation failure To: Will Deacon Cc: amd-gfx@lists.freedesktop.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Nicolas Waisman , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20191025110450.10474-1-will@kernel.org> <5d6a88a2-2719-a859-04df-10b0d893ff39@daenzer.net> <20191025161804.GA12335@willie-the-truck> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Message-ID: Date: Fri, 25 Oct 2019 18:20:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191025161804.GA12335@willie-the-truck> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-10-25 6:18 p.m., Will Deacon wrote: > On Fri, Oct 25, 2019 at 06:06:26PM +0200, Michel Dänzer wrote: >> On 2019-10-25 1:04 p.m., Will Deacon wrote: >>> In the highly unlikely event that we fail to allocate the "radeon-crtc" >>> workqueue, we should bail cleanly rather than blindly march on with a >>> NULL pointer installed for the 'flip_queue' field of the 'radeon_crtc' >>> structure. >>> >>> This was reported previously by Nicolas, but I don't think his fix was >>> correct: >> >> Neither is this one I'm afraid. See my feedback on >> https://patchwork.freedesktop.org/patch/331534/ . > > Thanks. Although I agree with you wrt the original patch, I don't think > the workqueue allocation failure is distinguishable from the CRTC allocation > failure with my patch. Are you saying that the error path there is broken > too? The driver won't actually work if radeon_crtc_init bails silently, it'll just fall over at some later point. -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer