Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01542C433EF for ; Fri, 12 Nov 2021 11:20:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CDE8560FE7 for ; Fri, 12 Nov 2021 11:20:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234730AbhKLLXL (ORCPT ); Fri, 12 Nov 2021 06:23:11 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:50838 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbhKLLXJ (ORCPT ); Fri, 12 Nov 2021 06:23:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636716018; 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=9fBALneXnMPo0/2GIAPYkRp4dZ+e683Etbj/vqPlc8Q=; b=NFmcvzW4/bT4yXQSW23RBgZLsIcbHe8Xz52KcyPtl+UoQOxRNBGprwliyXOFfD1ftnRPUj 9B8+EVmbcssTrnN/KY6CUHqJLOG74m7qQ7gUcqNs8ohw1+yWdFgRwi97petGQf89NEjQIh Q5Wbwb7wxhXnPNneNzFG91dVUqOTais= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-316-KMurBZcMPA2XC5xRbtwFeg-1; Fri, 12 Nov 2021 06:20:17 -0500 X-MC-Unique: KMurBZcMPA2XC5xRbtwFeg-1 Received: by mail-wm1-f72.google.com with SMTP id n41-20020a05600c502900b003335ab97f41so3244377wmr.3 for ; Fri, 12 Nov 2021 03:20:17 -0800 (PST) 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=9fBALneXnMPo0/2GIAPYkRp4dZ+e683Etbj/vqPlc8Q=; b=zUnoIeVbqfM6VSGGzADj2A3Iu5MiLIyX3H1moGO7IWT4ezqTSPNgs67J8Mz+N1irwC v3BOzTs1jP/7WpwYNrX2VqmLtFSin7sRJOYWkTKMkbKNGTNwjMnkYh2sybCKdKkao9zr Xdtp50GvBSPTGBub1gGUh6rb66TvHsuFLJsWot34E35KpBUcBoO8qp/jtGfBPDu+QU+o SeZzUz0ChuQVs2UvuPv0Iz1ev3ITcG8e9pEF8T9PAJz97ywe8+Z9Uoqls89+Lr/pHcPh ayDbKomwcqk3TGnE19hl+76HWubuEq1t/Ne93wC31LdEYlaidfsw4ar00ragkjcxdLwu J2tQ== X-Gm-Message-State: AOAM533Rfs2a+hJI3EYubWquHOlrs6PWT/w6APgkcT3qXruybVOPGs7W OCKyA3pEpQCU2/q2X4tMl0BhaNEwGrAaqWfWmajwIVMBBMZECRSEr4PKKLhgnmMzNHBmPNBaQF5 tdNFyzaf4kzA+Bq/M2dvf9Kdx X-Received: by 2002:a5d:48cf:: with SMTP id p15mr17464494wrs.277.1636716016576; Fri, 12 Nov 2021 03:20:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRZk04ZGCnKLNWiV67ARgPbEGWSDJMmyv+P8H6xE/45f1PERWe8kHb9UZY6OXEDOoRDs0epQ== X-Received: by 2002:a5d:48cf:: with SMTP id p15mr17464464wrs.277.1636716016338; Fri, 12 Nov 2021 03:20:16 -0800 (PST) Received: from [192.168.1.102] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id q123sm10947423wma.30.2021.11.12.03.20.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Nov 2021 03:20:15 -0800 (PST) Message-ID: Date: Fri, 12 Nov 2021 12:20:14 +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 v4 0/6] Cleanups for the nomodeset kernel command line parameter logic Content-Language: en-US To: Thomas Zimmermann , Pekka Paalanen Cc: Jani Nikula , Daniel Vetter , =?UTF-8?Q?Michel_D=c3=a4nzer?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Peter Robinson References: <20211108140648.795268-1-javierm@redhat.com> <20211112105641.25a4e1a7@eldfell> <20211112122239.26b3787c@eldfell> <5bd4ffa9-f44f-ca34-c346-6c530d31e5ec@suse.de> From: Javier Martinez Canillas In-Reply-To: <5bd4ffa9-f44f-ca34-c346-6c530d31e5ec@suse.de> 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/12/21 11:57, Thomas Zimmermann wrote: [snip] >>> >>> This is what HW-specific drivers want to query in their init/probing >>> code. The actual semantics of this decision is hidden from the driver. >>> It's also easier to read than the other name IMHO >> >> Ok, but what is a "native driver"? Or a "non-native driver"? >> Is that established kernel terminology? >> >> I'd think a non-native driver is something that e.g. ndiswrapper is >> loading. Is simpledrm like ndiswrapper in a sense? IIRC, simpledrm is >> the driver that would not consult this function, right? > > We use that term for hw-specific drivers. A 'non-native' driver would be > called generic or firmware driver. > > My concern with the 'modeset' term is that it exposes an implementation > detail, which can mislead a driver to to the wrong thing: a HW-specifc > driver that disables it's modesetting functionality would pass the test > for (!modeset). But that's not what we want, we want to disable all of > the driver and not even load it. > > How about we invert the test function and use something like > > bool drm_firmware_drivers_only() > That name I think is more self explanatory, so it works for me. There was also another bikeshed about where to put the function declaration, I added to but with that name I believe that should be in instead. Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat