Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp965060pxb; Wed, 16 Feb 2022 08:04:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqKK1IjG2O47JGgkl6vQdF1QND1AtbrkUc9JiDakgeznrKHUSCsx5F8zR2BhhZI6mzLRJe X-Received: by 2002:aa7:db94:0:b0:410:f0e8:c39e with SMTP id u20-20020aa7db94000000b00410f0e8c39emr3833617edt.14.1645027489413; Wed, 16 Feb 2022 08:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645027489; cv=none; d=google.com; s=arc-20160816; b=xa6ti1BodTfyDPaBYYPUAsiBLInL4JbYGqBoEJZIEWRf8tyyuEyLlM5byYQ20cm6wE HrZ1trJYSy/3Ipb8Mqxb+EbQyPgrTvxrsQbzgP6ftaDXsNlu9UVfe5xFvWsBmiVFIhY3 lUoBJ+Eh7qIDBi3JYJuWPu5HOfVh8+QPC1WdZcvFcnsWqdF+vuXyqwvUFsi1Q2N6KE1C 4LVQJ8sBWCfgXcT3TstL76jo5TTYIAx8G8U+tzcQrdwtxiavTcCFv307Qg5TZLuH4mpC 5VFiTwj1pHNd3hp+A6jc1TXRHngOZIACy+o3FD6aKUeqZ51dlgXKKuz41LSlMqfA4Bsf Nzfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HmFgTFOaUrdQsLp+zoYLJYAEZzFKWR4iy8oL8R7YJhA=; b=b0R4oLgqLX88iUMOieYHPYror8rfU/pVJ6vY1Pigc04SkRvY7f71H71NF/OSMS5LJm REs3zNpIDAdsyIt2eIgKIo+bz4v0dlqopAipeTdebok6PXBxBZPUgaoQRBI+qLn54hdq DT8zG0qtcbPxw7jBMzGyXegPdS3ORcuF/5FfuBnVe8ntsRVeJkiBo1ipbayVIsiREXGX ndT/SJ55ntgfbZW8UaSyeSzXwAhmFrJwG78mDfYamuIqSoRrSxtU+hg4vV7xRJKnp/ms LA/BEqZq+GAsyrcBUga5Hd20HFldJyfqeD6cnzIvLzp/FWU8EaGZTDmzk3AviJhfKiea P2lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fooishbar-org.20210112.gappssmtp.com header.s=20210112 header.b=piQF2bXb; 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 a25si2134322edv.262.2022.02.16.08.04.22; Wed, 16 Feb 2022 08:04:49 -0800 (PST) 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=@fooishbar-org.20210112.gappssmtp.com header.s=20210112 header.b=piQF2bXb; 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 S234694AbiBPNqq (ORCPT + 99 others); Wed, 16 Feb 2022 08:46:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234073AbiBPNqo (ORCPT ); Wed, 16 Feb 2022 08:46:44 -0500 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD6C2F1F for ; Wed, 16 Feb 2022 05:46:30 -0800 (PST) Received: by mail-yb1-xb2c.google.com with SMTP id p5so5994271ybd.13 for ; Wed, 16 Feb 2022 05:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HmFgTFOaUrdQsLp+zoYLJYAEZzFKWR4iy8oL8R7YJhA=; b=piQF2bXbfQ3jAL9Wl9KHIEI/BE7pYDU1IMut0lIzmEScSrQTTjteMmCEzJpApNZRX4 MiSZndY1LTZdnjzdE1PtqAozUueAsk+eHh1cDep+IbGnB9QWT9qZ4gaC5sqvfGpS3BE9 bR1twOpbY9SOcG8uuHnhoXL91tdBw9gU9UmxqJIwGeWaiNwWUjTkd+EOa9X7qSRiP4Ic m8Zx0IpBhy5xVNK8CZj7uL7qa6SdAHfv0MJRk3F6unvP/KZRr7iVVemKX545Vw1/i6nD UkmckP1LIoEqUm8uWPqlNTOC8MeC8E9tZaCEeo4E97rXfUl6R7bkc7GrBneAs4SoAtK4 JANA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HmFgTFOaUrdQsLp+zoYLJYAEZzFKWR4iy8oL8R7YJhA=; b=MhI5bG4Uk822UJPnIWswJMIL5xZ9XDqvAnULQ6ahq6oZ5rPAMYa9nzu6Q4di3n3+Yl NzhrixHS6KSr635wEbg1OgT1jZYoCyXksKxaRTUnrie0ddEnKA4fgfxt07WXlAhFRYVS R5Rk0Y3M2po/53E2OTiDsggXaC04gbp/44VzOnXf346WciaQITR1ZI0zrstZsuYQd8z9 bhczmBGimRVpTkUTto/cSqn0RHNEbRgVtAGnIL1MBKnm+RNxDkrbOk/fAvL5pUzafyBw JfE24fj03g1YkYWi2CR1nVLJ5FQ1WVUaWikDkkRFwFIzXdNln6HW/wRtQLzBxoqFa03c 9tiQ== X-Gm-Message-State: AOAM532+B+cABc8zilXqwCqcWnSx9YW7fEHU5ZRLH7OI0y1KHj8zCpOG L0As+syM+vtUvFnyjis+3djT5XPoTCdL53HCUlsN9A== X-Received: by 2002:a25:6807:0:b0:61a:79a9:526e with SMTP id d7-20020a256807000000b0061a79a9526emr1995117ybc.376.1645019190069; Wed, 16 Feb 2022 05:46:30 -0800 (PST) MIME-Version: 1.0 References: <20220203082546.3099-1-15330273260@189.cn> <20220203082546.3099-2-15330273260@189.cn> <20220203085851.yqstkfgt4dz7rcnw@houat> <20220209084331.fpq5ng3yuqxmby4q@houat> In-Reply-To: From: Daniel Stone Date: Wed, 16 Feb 2022 13:46:18 +0000 Message-ID: Subject: Re: [PATCH v6 1/3] drm/lsdc: add drm driver for loongson display controller To: Sui Jingfeng <15330273260@189.cn> Cc: Maxime Ripard , Thomas Bogendoerfer , suijingfeng , David Airlie , dri-devel@lists.freedesktop.org, Randy Dunlap , Roland Scheidegger , linux-mips@vger.kernel.org, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Andrey Zhizhikin , Rob Herring , Dan Carpenter , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Wed, 9 Feb 2022 at 15:41, Sui Jingfeng <15330273260@189.cn> wrote: > On 2022/2/9 16:43, Maxime Ripard wrote: > > More fundamentally (and this extends to the CMA, caching and VRAM stuff > > you explained above), why can't the driver pick the right decision all > > the time and why would that be under the user control? > > The right decision for ls7a1000 is to use VRAM based helper, But sometimes > we need CMA helper based solution. Because: The PRIME support is lost, use > lsdc with etnaviv is not possible any more. > > Buffer sharing with etnaviv is no longer possible, loongson display controllers > are simple which require scanout buffers to be physically contiguous. Other systems have this limitation, and Mesa's 'kmsro' concept makes this work transparently, as long as your driver can export dmabufs when running in 'VRAM' mode. Cheers, Daniel