Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp424189imm; Fri, 21 Sep 2018 02:31:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzjeSuhFbV9dvdts2tHX3wjx4PmeBq883hlZ7zwvDokgzhw7DJcAy5acrZ91dixpAHvJff X-Received: by 2002:a63:1363:: with SMTP id 35-v6mr40673311pgt.202.1537522283047; Fri, 21 Sep 2018 02:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537522283; cv=none; d=google.com; s=arc-20160816; b=WYpZicwtE5gvDXgeUxh6dZAS3n8k6nCABuaA5rUdj9AJxttH6yYiINgvi+s3IdmzMe gG7j7FB0wJZvp5AgnlCCAP49d0nA46yKEo1+EcJD7wSWDZ8YI51+P+3dCQy2qmWm9aQL bh38Mpq4y6yBm18SYc25ACvm4Cs2iYoT3OOsc8xEW1N54/De0DWGCY+CcATJaeSRd3Iy pnm3STEIjriGf82oSB7K57Ovy5wInyLZEYDHpe0DVk57U8Hl0NgsXSPrfJQtt/x89gvK aUU4qwpqwdRDjq+9vC+PSRbW/vEQKr6e2cH159V2Kwq1l9lPQaC3mcXWreWF32gyLEdC q7gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=SPtQf6JMVsxADNUbEwVSl/YcwHh/UX7t+P6PpvrtN0s=; b=wfURIxRxBX1oIjU2j43N+WZ/+80Ipu/pZdKackXx+kKrW3PRQy/Ijyopf3N+Zlsrj5 Bx+Nrd3m+VDboCuKoqdphy4OSdqveJdGYvDqlEnWHBFBFwfxiDwRR3gwdHUkC2Tm5DoU R7Oij1L9M4A9TtTLmrvGohMZ7D86z/n+1sur3bFOEJgA4XotpEPO26ZIw7ddFHPh0Mp6 qFxSjNU+KiRgOQRI0PNAnNF9Ibj2npDp+huN8bJhQeyxsfSZdgDT3AuzpfjWu+x81To6 cyMpz33g2RnsR6nTiotuWu6K1YsXrJHZZI/0cHBEFZAQSV2kHCeriVqe6TjHwvYIa1WL 9qRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=WVuhb2yt; 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 e6-v6si29974111pfh.64.2018.09.21.02.31.07; Fri, 21 Sep 2018 02:31:22 -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; dkim=fail header.i=@ffwll.ch header.s=google header.b=WVuhb2yt; 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 S2389602AbeIUPSF (ORCPT + 99 others); Fri, 21 Sep 2018 11:18:05 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:44394 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388909AbeIUPSE (ORCPT ); Fri, 21 Sep 2018 11:18:04 -0400 Received: by mail-ed1-f66.google.com with SMTP id s10-v6so10164841edb.11 for ; Fri, 21 Sep 2018 02:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=SPtQf6JMVsxADNUbEwVSl/YcwHh/UX7t+P6PpvrtN0s=; b=WVuhb2ytX+aUWLYPSMxiXxRPtaIAGLONhRgN/fnr301pBKfba2+elm8N2Ty4xlfYi6 LDWF0ukJQODdEeWrL3AZaos3gMGYac0P93ku2hIGPxmttvMDvrtUjDHrC5jkpmynErhF cp2wQ6vhMVbPB/DDsBFaa3z2K7Py1TYlN78Gw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=SPtQf6JMVsxADNUbEwVSl/YcwHh/UX7t+P6PpvrtN0s=; b=ovsKgocbklpMQGR/4L9YMBwfChUeceJDKaoeW66NzqzGSpu7XSGV8aWkZrc0wlscxk BTvoCdIl5UprP3QeWN6QCMuaADAbcSSarcAr8otOhBC/+8UiWuO/oUOL0izRk8+VKXxH o2s3C4+C7qDv7Pvgnv5Fx73cl5E/3fwyErHk1FYbpc2XYdLSxIxU7j474Ut+HEjc4Sx6 jRCozrAI7NmT1fPXfE2iIeSjeiKz4tGLojZRtzqYO7TkheswN3W5SLg5xTwLgW0AjW/F +T2T0pYD71WygPIURf2KnzeBLOMUWROpwL/CRcuPyLAHOrtChuyJmMlSw1WrHc4d2nhJ gueA== X-Gm-Message-State: APzg51BiG27a2YyQjEfWFWVAuzrVx4rVXVSrzdZfqpW80SwjnGV5ZnYX DbRDwMfV0lDovF2UqEUhr4xDAA== X-Received: by 2002:a50:ba59:: with SMTP id 25-v6mr10078635eds.214.1537522204327; Fri, 21 Sep 2018 02:30:04 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id e38-v6sm1782241eda.74.2018.09.21.02.30.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Sep 2018 02:30:03 -0700 (PDT) Date: Fri, 21 Sep 2018 11:30:01 +0200 From: Daniel Vetter To: ning.a.zhang@intel.com Cc: jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/i915: set i915 driver probe to asynchronous Message-ID: <20180921093001.GD11082@phenom.ffwll.local> Mail-Followup-To: ning.a.zhang@intel.com, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20180919073712.25463-1-ning.a.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180919073712.25463-1-ning.a.zhang@intel.com> X-Operating-System: Linux phenom 4.14.0-1-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 19, 2018 at 03:37:12PM +0800, ning.a.zhang@intel.com wrote: > From: Zhang Ning > > when i915 is built in module, and system has built-in display, eg. eDP, > i915 will detect and active it during driver probe. it will take long > time. > > set i915 driver probe to asynchrous can save kernel initial time. > > Signed-off-by: Zhang Ning Last time around this was proposed there was a very long discussion around how this breaks the sound driver. Was this resolved? Definitely needs to add this context to the commit message, and all people involved back then added to the Cc: list. Searching for PROBE_PREFER_ASYNCHRONOUS in the archives should dig it all up. Thanks, Daniel > --- > drivers/gpu/drm/i915/i915_pci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c > index 6a4d1388ad2d..0f57d71d0abb 100644 > --- a/drivers/gpu/drm/i915/i915_pci.c > +++ b/drivers/gpu/drm/i915/i915_pci.c > @@ -738,6 +738,7 @@ static struct pci_driver i915_pci_driver = { > .probe = i915_pci_probe, > .remove = i915_pci_remove, > .driver.pm = &i915_pm_ops, > + .driver.probe_type = PROBE_PREFER_ASYNCHRONOUS, > }; > > static int __init i915_init(void) > -- > 2.18.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch