Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2646140rwd; Mon, 22 May 2023 02:00:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bDZ9y7XX1z6nHLFy1rw7HBsGKym8Cw+l9xYiDFzPyqhjXvHiZF/yFSjwk1CoWHx0e1MfZ X-Received: by 2002:a05:6a20:4314:b0:10a:b812:bcc7 with SMTP id h20-20020a056a20431400b0010ab812bcc7mr5431392pzk.17.1684746023590; Mon, 22 May 2023 02:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684746023; cv=none; d=google.com; s=arc-20160816; b=hnU87K+drw/CK33crr6O3ox1dGh7B4UE13BXRbgF5X6uwJeOQvtJasLQSWCnXqEekY CSZz6kIJQg2dfyZju/9HSU6W9q11Wr5kW4HSzQrL19p9RQGaxV4OEJqH25yPoRXUrCNA b2wMD8Oci9N6GXEq7uTvbrfZacU3tGOTjAy27MNiQxkGj5jR8KH3bqDRE/uuzs12ZgZk yg//6d8/HTDkGLMvRsO8SC6UdVESptkn82XaKblh/Ehs94LTiWLc8d+3nNUQ0v0Lf7Uq GqtF4Q5McRTLT6JQ6S+Pc30kAWhrSCtSBKAj+NM67MCgythZ71+7sbU56qdg36TwQ579 kicQ== 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=xscm+d+JXRqu2LtscK1maSZ6rC7XhPo7cioa9P8QVP4=; b=QbFUbbgONe7+4voOh7PtGWTI/L+1HThMX9i0YOuOoMapCc2wv+oNZOtL2WwKtbKz2x rzglG5jgxTNul7HqQrkoaXmdOcFXhkOIfIg6VhmTaxDm9VxiGKJI6JwydkPYSqKj7e6M zO+Z0v0OfZxtiZ/eKsg/PVbs/cARVCldaIfQYjozKbFZCksVi83uulqnTRZYt1x/i6ys YfkShbgZ1DXqdWqcZsXHUD+eGLo3Uzwx12QJlISYUjAiGLM8pn4eZfTfX7MMRh22MR0G rLoLsr8H33wZ0a669eFqPBbJNpAQrBGXu3UnELnvFxr6rhbEy/VvqO9t8IY9/Fk4dS15 RQdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=gHuZb871; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f30-20020a63381e000000b005138de75d17si4502297pga.116.2023.05.22.02.00.10; Mon, 22 May 2023 02:00:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=gHuZb871; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232386AbjEVImt (ORCPT + 99 others); Mon, 22 May 2023 04:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232381AbjEVImr (ORCPT ); Mon, 22 May 2023 04:42:47 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F08F6B7; Mon, 22 May 2023 01:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1684744962; bh=KpoRxSTMXjvQHeAOX030xl1ELhy5opCOdNVTtUGkJz8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gHuZb871pYewey0RthFhrNb0TNW+AwaRzsYWELrrrX5sW4hIvUxU+RutrBtK4JaZc jaq1DKg24eRm7w/Lmxd+VZL9/ZDHRAuUU4pp1CFwKwglnfbQrGom2lDl4se54en8Nb e1VUET/KsQqei8wgwRwItcjUI++Bfpb1FL160rrI= Received: from [100.100.57.122] (unknown [58.34.185.106]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id B9D32600DA; Mon, 22 May 2023 16:42:41 +0800 (CST) Message-ID: <9075974f-d130-6398-b7df-7f2e67caedb0@xen0n.name> Date: Mon, 22 May 2023 16:42:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller Content-Language: en-US To: Sui Jingfeng <15330273260@189.cn>, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sui Jingfeng , Li Yi , Sumit Semwal , Christian Koenig , Emil Velikov Cc: linaro-mm-sig@lists.linaro.org, loongson-kernel@lists.loongnix.cn, Geert Uytterhoeven , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Javier Martinez Canillas , Nathan Chancellor , Liu Peibao , linux-media@vger.kernel.org References: <20230520105718.325819-1-15330273260@189.cn> <20230520105718.325819-2-15330273260@189.cn> <26fd78b9-c074-8341-c99c-4e3b38cd861a@xen0n.name> <73447e35-f4df-9871-6210-b7bf1a3f04fc@189.cn> <97fe7af2-0a93-3f28-db6e-40a9b0798d49@xen0n.name> From: WANG Xuerui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/5/22 16:29, Sui Jingfeng wrote: > > On 2023/5/22 16:09, WANG Xuerui wrote: >> On 2023/5/22 16:02, Sui Jingfeng wrote: >>> Hi, >>> >>> On 2023/5/21 20:21, WANG Xuerui wrote: >>>>> --- /dev/null >>>>> +++ b/drivers/gpu/drm/loongson/Kconfig >>>>> @@ -0,0 +1,17 @@ >>>>> +# SPDX-License-Identifier: GPL-2.0 >>>>> + >>>>> +config DRM_LOONGSON >>>>> +    tristate "DRM support for Loongson Graphics" >>>>> +    depends on DRM && PCI && MMU >>>>> +    select DRM_KMS_HELPER >>>>> +    select DRM_TTM >>>>> +    select I2C >>>>> +    select I2C_ALGOBIT >>>>> +    help >>>>> +      This is a DRM driver for Loongson Graphics, it may including >>>>> +      LS7A2000, LS7A1000, LS2K2000 and LS2K1000 etc. Loongson LS7A >>>>> +      series are bridge chipset, while Loongson LS2K series are SoC. >>>>> + >>>>> +      If "M" is selected, the module will be called loongson. >>>> >>>> Just "loongson"? >>> >>> Yes,  when compile this driver as module,  loongson.ko will be >>> generated. >>> >>>   drm radeon is also doing so, See drm/radeon/Kconfig. >>> >>>> I know it's like this for ages (at least dating back to the MIPS >>>> days) but you really don't want to imply Loongson is mainly a GPU >>>> company. Something like "loongson_drm" or "lsdc" or "gsgpu" could be >>>> better. >>> >>> No, these name may have backward compatibility problems. >>> >>> Downstream driver already taken those name. >>> >>> userspace driver need to differentiate them who is who. >> >> IMO this shouldn't be a problem. Let me try explaining this: >> currently, upstream / the "new world" doesn't have any support for >> this driver at all, so any name will work; just use whatever is >> appropriate from an upstream's perspective, then make the userspace >> bits recognize both variants, and you'll be fine. And the "existing" >> userspace drivers can also carry the change, it'll just be a branch >> never taken in that setup. >> >> So, I'm still in favor of keeping the upstream "clean" without dubious >> names like this (bare "loongson"). What do you think about my >> suggestion above? >> > No, > > there is a 'arm' folder in the drivers/gpu/drm/,  It doesn't say that > arm is a pure gpu company. > > there is a 'ingenic' folder in the drivers/gpu/drm/, ingenic also have > their own custom CPUs. > > there is a 'amd' folder in the drivers/gpu/drm/, these doesn't imply amd > is mainly a GPU company. > > when a folder emerged in drm/, it stand for the GPU related part of this > company. What you said is correct, but I'm referring to the module name, instead of the directory name. For example the AMD GPU driver is called "amdgpu", not "amd"; similarly, the Ingenic DRM driver is called "ingenic-drm", not "ingenic". -- WANG "xen0n" Xuerui Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/