Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2845084pxb; Fri, 5 Nov 2021 05:46:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlDNI0cjL5/VeRWnYxJ2T6BY87ylMK3Ca5Xe8XQ3t7YYTJnp3RHS3q2ssZD1GYIQUk3UdB X-Received: by 2002:a05:6402:2155:: with SMTP id bq21mr76385989edb.181.1636116363958; Fri, 05 Nov 2021 05:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636116363; cv=none; d=google.com; s=arc-20160816; b=YJnZ6aXLZ85doUnWGgkYbQ+0qaP1boKfVxweN4iqUD2tMu4SFMMA7kFEBU/Y1r90jo 1HneTeV5iZl0ZaCG68vW5cb7mYRXxGL6lKItJIi4G7OxYJw1w2c31pJyMu74gHoVu9gP ZQin379MKy8OIXIIymyPIdgmiDlfrlV2XUhfXcv8D0ToBu8l8PNb7UgysaJrqT43vmJ7 rD7EChTEAV/gDXhVVUKJOuLX3Szxgh9TFlupnSiDVm6q407SFBBTYtiyMeyxF3x/Ipyd UfhEvNgnDTiDQ3yzSnT93K/eANzstTVFoodlPB3DS88Y5eG3jCGwlVQHgZZdTiv451HC MiQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=d6mnjEfsvPWlmw0Dlsyl+1vpuoyclHqeKNkGqPRjBhA=; b=JSeXq9Z9qyJ/sW6pzpue54f4R6dvBh6DQtbtMa3AySUiN+NX3VMJU7xBfbz4TjrKil Y6wKdugXeSv/N4ZLtKV81TmGRIqDLtC07CuiP4pIlCOxqT4rfa5RNLLUp9lYY35V+8dZ oy+nhPntHUe9ui4kKmzSmZVurfxQ+KR+HhlqTcJ0BdGyY5Enmt6WI7UjN974COzMyI1n ZUSSUuRstQFRk2QwDDeXnnfWkOmpNrostVygWwMNykDpcQeSzXsV9J+AgDyg0x2DzhAZ 47yfzbsLkfSV+a0pGV4yNqPCNX90CjwXrlxECNi2sJhckMea9unKeIEMf4T8ROmu9uA7 vFLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aAeUt1RH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si12124983edp.113.2021.11.05.05.45.40; Fri, 05 Nov 2021 05:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aAeUt1RH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232824AbhKEMDx (ORCPT + 99 others); Fri, 5 Nov 2021 08:03:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:46657 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbhKEMDw (ORCPT ); Fri, 5 Nov 2021 08:03:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636113672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d6mnjEfsvPWlmw0Dlsyl+1vpuoyclHqeKNkGqPRjBhA=; b=aAeUt1RHQHUsaXJhgMEUog4k0I9N9TaJ07ZLg6x6s4dLIuF/O4sTDAQDdm3o9vyS0PGOen yobtCGrQO5Wg/ViNngAJo9JoiypFBhHw9QpuIzduh/JbL51qUWLuOFKz8s3aT7XdHXfD+g c1NDVjloAz2SbQT+BYDpYx0u4JmQ/fY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-501-Ka0DV7zDMWib-kfQTQrErw-1; Fri, 05 Nov 2021 08:00:52 -0400 X-MC-Unique: Ka0DV7zDMWib-kfQTQrErw-1 Received: by mail-wm1-f70.google.com with SMTP id o18-20020a05600c511200b00332fa17a02eso3191243wms.5 for ; Fri, 05 Nov 2021 05:00:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=d6mnjEfsvPWlmw0Dlsyl+1vpuoyclHqeKNkGqPRjBhA=; b=Ab1Rk2201DMVf2j7NlD1R3wlcWcgvZCrnva2PP8qY4773tkmpK7SpAz3SstNJmNCXY R7Bd86oKoX5m6zEll1fSruVyydakCzoolCAUv00JebnH0KZFhkFRNNbhFKk9Ik9UQJaR LZMdr740hohE+YUsQyYJio9WCZJlPmFeyim0sHj2ZRHAJNJ5+IvOYxZ6ObId3FffYHeM Y2BtB7c+bhxoxVysFQZ8gYwShv/qY9Zn6j7tUvKH7BXi9/c7I4omTnMCr08S3fKZsgLt S9E6LKSkuBoZ4OXBOYfYeo2HIJrnxHWRWLn/qSvGgAkmeEG8rp99xrN0SmoWviAfs8di /6JQ== X-Gm-Message-State: AOAM533EInPKjdOAWngQM3t+fveeIgqs2bWR69VJlrR0qwcjIWSMRNA2 SbyfD/1OckCyg2juylDMb2P/agqYbXIx8Wv6hIOPXrkuhutOywdqyrYduWkplFEMWvnbHm8vUEH 2ockf3I4pcpzim1ckI1gV6e1O X-Received: by 2002:a05:6000:1868:: with SMTP id d8mr36559137wri.285.1636113651757; Fri, 05 Nov 2021 05:00:51 -0700 (PDT) X-Received: by 2002:a05:6000:1868:: with SMTP id d8mr36559073wri.285.1636113651479; Fri, 05 Nov 2021 05:00:51 -0700 (PDT) Received: from [192.168.1.128] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id m21sm7590336wrb.2.2021.11.05.05.00.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Nov 2021 05:00:51 -0700 (PDT) Message-ID: <335a9e0f-cce9-480b-10e0-bd312b81e587@redhat.com> Date: Fri, 5 Nov 2021 13:00:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v2 1/2] drm: Add a drm_drv_enabled() to check if drivers should be enabled Content-Language: en-US To: Jani Nikula , Thomas Zimmermann , linux-kernel@vger.kernel.org Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, Gurchetan Singh , Gerd Hoffmann , amd-gfx@lists.freedesktop.org, VMware Graphics , Peter Robinson , nouveau@lists.freedesktop.org, Dave Airlie , Ben Skeggs , =?UTF-8?Q?Michel_D=c3=a4nzer?= , Hans de Goede , Rodrigo Vivi , virtualization@lists.linux-foundation.org, Pekka Paalanen , "Pan, Xinhui" , spice-devel@lists.freedesktop.org, Alex Deucher , intel-gfx@lists.freedesktop.org, =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20211104160707.1407052-1-javierm@redhat.com> <20211104160707.1407052-2-javierm@redhat.com> <87ilx7ae3v.fsf@intel.com> <0c07f121-42d3-9f37-1e14-842fb685b501@redhat.com> <38dbcc8f-2f95-6846-537f-9b85468bfa87@redhat.com> <877ddmapfj.fsf@intel.com> From: Javier Martinez Canillas In-Reply-To: <877ddmapfj.fsf@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/21 11:04, Jani Nikula wrote: > On Fri, 05 Nov 2021, Javier Martinez Canillas wrote: [snip] >> >> Do you envision other condition that could be added later to disable a >> DRM driver ? Or do you think that just from a code readability point of >> view makes worth it ? > > Taking a step back for perspective. > > I think there's broad consensus in moving the parameter to drm, naming > the check function to drm_something_something(), and breaking the ties > to CONFIG_VGA_CONSOLE. I appreciate the work you're doing to that > effect. > Thanks, I appreciate your feedback and comments. > I think everything beyond that is still a bit vague and/or > contentious. So how about making the first 2-3 patches just that? > Something we can all agree on, makes good progress, improves the kernel, > and gives us something to build on? > That works for me. Thomas, do you agree with that approach ? Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat