Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FCEFC433DF for ; Thu, 30 Jul 2020 18:17:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 753032083E for ; Thu, 30 Jul 2020 18:17:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="rwq0nnZj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 753032083E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B35796E93F; Thu, 30 Jul 2020 18:17:01 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id D6F1D6E93F for ; Thu, 30 Jul 2020 18:16:59 +0000 (UTC) Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D6AA20829; Thu, 30 Jul 2020 18:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596133019; bh=LBCwuVVf2MFMPMEHXM5IvbF8TsLWJpQcKK8QGu1gYp8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rwq0nnZj/hIgvH8uNBimB+cd8SjqqJMtQnnMlxXej5RIfBUckzOQvJdYznOX/gFC1 /5l+CPMhHKGIFDjovC6MrhJmRay6Pv6Fypo4qqiobgGCp5VAEA7JO2N0ZTQ9PGX//b bgvfhRAYufUeGmxt/W+oMOlIjxVsCCEDMZeuQgw0= Date: Thu, 30 Jul 2020 19:16:39 +0100 From: Mark Brown To: Dmitry Torokhov Subject: Re: [PATCH v9 0/4] driver core: add probe error check helper Message-ID: <20200730181639.GG5055@sirena.org.uk> References: <20200713144324.23654-1-a.hajda@samsung.com> <20200730070832.GA4045592@kroah.com> <20200730164845.GE5055@sirena.org.uk> MIME-Version: 1.0 In-Reply-To: X-Cookie: Alex Haley was adopted! User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jernej Skrabec , Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Jonas Karlman , lkml , "open list:DRM DRIVERS" , Russell King - ARM Linux , Neil Armstrong , Andrzej Hajda , Andy Shevchenko , Laurent Pinchart , "Rafael J. Wysocki" , linux-arm-kernel , Marek Szyprowski Content-Type: multipart/mixed; boundary="===============1803529010==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============1803529010== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OFj+1YLvsEfSXdCH" Content-Disposition: inline --OFj+1YLvsEfSXdCH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 30, 2020 at 10:46:31AM -0700, Dmitry Torokhov wrote: > On Thu, Jul 30, 2020 at 9:49 AM Mark Brown wrote: > > The error messages are frequently in the caller rather than the > > frameworks, it's often helpful for the comprehensibility of the error > > messages especially in cases where things may be legitimately absent. > Not for deferral. All you need to know in this case is: > "device A is attempting to request resource B which is not ready yet" > There is nothing to handle on the caller part except to float the error up. You can sometimes do a better job of explaining what the resource you were looking for was, and of course you still need diagnostics in the non-deferral case. Whatever happens we'll need a lot of per-driver churn, either removing existing diagnostics that get factored into cores or updating to use this new API. --OFj+1YLvsEfSXdCH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8jDoYACgkQJNaLcl1U h9A2DQf5AbA6hQnpkocd7NNW+Fw34/watcpGeOf4wGfEJJJ4gI4gUx6kg6uRWIA3 UgGG/DpJJATR3MPX7tldkjFb65ha6uxYu7Vv2/hHbGYepe+0ta2ne1R/DMePZC6x RTi7Fp5kuRndOAYjdJYTKWHDPh/Wq1eqaZ7qQVmon4pTuj/MxQwGARkI9eaw2/B0 PxQCmeNPpAadkihizL2VQQdf/L8kL0OsGieJq/SF2Dcv7gp6XWcddLBzTX2hhWhd 2ZODZdYj0aaQwirjVx2ckwl6Ijioaod+RslHEYfoLWjIHRV0326rQjKMqhHjhaQ8 P6vn0hVhQYM8huV6o6MxPRLHutQ4fw== =OEO+ -----END PGP SIGNATURE----- --OFj+1YLvsEfSXdCH-- --===============1803529010== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1803529010==--