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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 1AAD1C4338F for ; Tue, 27 Jul 2021 09:35:41 +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 CDB1260F90 for ; Tue, 27 Jul 2021 09:35:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CDB1260F90 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 333EE6EB33; Tue, 27 Jul 2021 09:35:40 +0000 (UTC) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 14D846EB33 for ; Tue, 27 Jul 2021 09:35:39 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id g15so14416367wrd.3 for ; Tue, 27 Jul 2021 02:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yjgVLjcBZHkmlLdtSEvRiJPBi3o1kd828d/tUGrcbyE=; b=UnBrek7qZf+iYEh6AmVH7eUFkcaZxHm4RxwLhRY3cMVvQwipZN3LMp7nplV4/mzwGQ 66vGkBYwCcgjNJKg0SJddYatlSHOT3Qi6OVarx5S60ivO6utnTHonvtnX4pmoVTCHsav wv/dpLG7ue1GpHL1ed1UQpf2xOYlwYh6zOfq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yjgVLjcBZHkmlLdtSEvRiJPBi3o1kd828d/tUGrcbyE=; b=Vrrt9oKF6ITK7FB3loXBQVodXd8yNuua8vq0gZI7TUtxUrC8/xFz0SGCWdWQ34Et89 Pj83MxjEUz0F9uNa42bc9oNmASQgtb/I3Yp12m+xJX2IiiH82dyX8MEYVE5cg2t4sDX2 FbjfyQ/4boo7Jjt2nGXdgMy9VdsigX0ckg/x/n6Eb6LiK6RCzl93osfSspOzGSbdLT+b arCNdDntm4j8dw+O2rvGOSlDaluDW8osL3jbepXdUZoaKfbIJ7aUTRMuRka8zC0TcCIv 55F6v6Bao44zZ16zNFLBIm0vbNQZtLNIuf+odg912O1zArDNDZ7rzT/KsQPemv4R0+Cs J7pg== X-Gm-Message-State: AOAM531iS7jZLylQIglp44A7lr32KVBzwidpZiE2owmzIrJnI3/m+b/7 adbjHz0y4NI7/xIh4fAc5/mrdQ== X-Google-Smtp-Source: ABdhPJz5UBO4JHhHhw/F7Hn081lqFQVJzcU4ElEFgPfM+H71lZvtUcZeLAELoIXQGHK/pfEvutK92A== X-Received: by 2002:a5d:4e4e:: with SMTP id r14mr24393409wrt.251.1627378537645; Tue, 27 Jul 2021 02:35:37 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id r2sm2671161wrq.15.2021.07.27.02.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 02:35:37 -0700 (PDT) Date: Tue, 27 Jul 2021 11:35:35 +0200 From: Daniel Vetter To: Sam Ravnborg Subject: Re: [PATCH v3 1/3] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip Message-ID: References: <20210723031251.200686-1-lichenyang@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.10.0-7-amd64 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: David Airlie , Huacai Chen , dri-devel@lists.freedesktop.org, lichenyang , Thomas Zimmermann , devel@linuxdriverproject.org, Dan Carpenter , Maxime Ripard Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, Jul 23, 2021 at 07:22:46PM +0200, Sam Ravnborg wrote: > On Fri, Jul 23, 2021 at 10:57:56AM +0200, Daniel Vetter wrote: > > On Fri, Jul 23, 2021 at 11:12:49AM +0800, lichenyang wrote: > > > From: Chenyang Li > > > > > > This patch adds an initial DRM driver for the Loongson LS7A1000 > > > bridge chip(LS7A). The LS7A bridge chip contains two display > > > controllers, support dual display output. The maximum support for > > > each channel display is to 1920x1080@60Hz. > > > At present, DC device detection and DRM driver registration are > > > completed, the crtc/plane/encoder/connector objects has been > > > implemented. > > > On Loongson 3A4000 CPU and 7A1000 system, we have achieved the use > > > of dual screen, and support dual screen clone mode and expansion > > > mode. > > > > > > v9: > > > - Optimize the error handling process. > > > - Remove the useless flags parameter. > > > - Fix some incorrect use of variables and constructs. > > > > ... > > > > Somehow this simple driver is at v9 and still not landed. Do you have > > someone from the drm maintainers/committers who's guiding you through all > > this? I'm not seeing you Cc: a specific person, without that there's good > > chances your contribution gets lost. I'm swamped myself, which is why I've > > ignored this and hope you'd fine someone else and stick to them. > > Hi Chenyang, > > Please cc: me on the next revision - then I will take a look. > But I count on someone more familiar with atomic modesetting can also > take a look. Thomas? Maxime? I think the main thing is deciding whether this should use simple display pipe helpers or not. Right now it looks like, and it would greatly trim down the code. The only other things I check is whether there's any hooks that can be removed and whether an attempt to send out the event is made in all cases, and that's good enough for me on the atomic front :-) If it's not using simple display pipe helpers there's a bunch more things to check, like whether the plane check function looks competent or fails to reinvent what simple pipe helpers have. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch