Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1119840yba; Thu, 4 Apr 2019 04:46:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNW/h3WDPcNENla5WgDadGBcA87emiTTj7t51BqmL8AjvMFzKCMxWgdA//N2kftYOjiuau X-Received: by 2002:a62:ee0a:: with SMTP id e10mr5447259pfi.6.1554378379783; Thu, 04 Apr 2019 04:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554378379; cv=none; d=google.com; s=arc-20160816; b=cYf75gvYwXKRnctgDzM8ripnDCL8bD3JYTd+INvlXb/er3MssypJWEMNqAMKDKaSkY eNMl3gs2FwCQRRTg7Uf5DcC/GIK+H7dgu5hr9iqhW5Tv747bpCrkFMXG6W5Bja1Pi+KA 6W3DlazMaeJjoowb6vpk+StF4rUMkfXe/4TqEvxqk7RFpq5lXaE74a2vrBihRC3wB892 gm/zeKqCg64Lae0f0Wydl2CE3OW9RkdVIrVoQdGojtX7K2PscsvavumUDT5+2FDofqKj Hy8jDGQabSdcJLElKPeFSPpvrsmUqhj7LkBjRkIRqbM5WxRZPc9/qb4XxArlm2T4ltdQ cDtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=m5hGgWKj5guZbjtv86sKgv6BKMcG4UtlinPlkaJBtQM=; b=JowiwW0eVOe7lHKxHfGRPGIjVXdZ7B/bP6QJuKjpdTCajfiw2pD3K/JK50mt5qdeAp 9ZQVQhQFSWsmLJawAGhdWNnUdRsBlgSFCx065p1XF7zOixw+L1fagqEkAv3pc4IY2Ac4 mGT4n8SCYeVNAkHQTKUaaNVaxTdwA0Y21BE0T7bsk2crhgaP+lM9Eh+QxWn7kaLDuVD8 9zKF1YEjnuuvsmQ6DFs5N74VSadM/y0zCB4hv054iMSbXmhssrfj/J5c4FdtNAt7Yd0r UvCW7T2/JC9xUYk/VM5n0Ie13yQroiELPGljEg5Kj4RQYiYJ9MyjdLjCYt8MmGj7PdQ/ zZjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tronnes.org header.s=ds201810 header.b=Wq9XMcQe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16si16873699pgk.405.2019.04.04.04.46.03; Thu, 04 Apr 2019 04:46:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tronnes.org header.s=ds201810 header.b=Wq9XMcQe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729287AbfDDLpU (ORCPT + 99 others); Thu, 4 Apr 2019 07:45:20 -0400 Received: from smtp.domeneshop.no ([194.63.252.55]:55220 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbfDDLpU (ORCPT ); Thu, 4 Apr 2019 07:45:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org; s=ds201810; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=m5hGgWKj5guZbjtv86sKgv6BKMcG4UtlinPlkaJBtQM=; b=Wq9XMcQe2kWzm1GjS3jYf9rkDAiFae3tQR0Syb6kSMPUnpTBKlphogbwdwr8aQg0W2qBfWjbaB2HBM/spQ6tMLE43Zj6pOj2BmiOkFiENyM6Rw0L8oynFbd8vGwX9w0tO75NEKcqAJ3N13Ohlxf4RcMh2Zo+4elDYSC18+LF96eD7yU40GTPoXwkgRPmnL0fygZr3u6NDx0dsQ4lQNW1eXyrwHm3z86L7GiauG6CaKH4H44kiP/k9hNXa0nSrH2SljMDq6mtzkaArlb616xixvlU91KWguIxWfgoZeePegvkXbyry8g+UcYgpLDLydM+ciHFLz4+lLI0ZD8zqN38tQ==; Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:62338 helo=[192.168.10.179]) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1hC0o1-0004RS-SU; Thu, 04 Apr 2019 13:45:17 +0200 Subject: Re: [PATCH] drm/cirrus: rewrite and modernize driver. To: Gerd Hoffmann Cc: Daniel Vetter , David Airlie , David Airlie , open list , dri-devel , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" References: <20190403072318.31507-1-kraxel@redhat.com> <20190404055056.ddc2bdgjbgjj7tby@sirius.home.kraxel.org> <20190404083034.f7vrvukzqx5v7qju@sirius.home.kraxel.org> <2866e37e-8563-1f1e-8f16-1119f70d52e1@tronnes.org> <20190404102722.w6c7aoxzcrhn5xhi@sirius.home.kraxel.org> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: <5ad479ea-a95f-b66b-20b6-5da41e2cee9a@tronnes.org> Date: Thu, 4 Apr 2019 13:45:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190404102722.w6c7aoxzcrhn5xhi@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 04.04.2019 12.27, skrev Gerd Hoffmann: > Hi, > >>> tinydrm_xrgb8888_to_* >>> >>> imo these could be put into some drm_format_helpers.c to be shared. >> >> I agree, my long term goal is to get rid of tinydrm.ko. Just haven't got >> there yet. >> >> Gerd, if you end up using some of those functions, feel free to move >> just those you need and I can do the rest later. But if you have time to >> spare I wouldn't mind getting all of them moved ;-) > > For now I just promoted cirrus to be a tinydrm driver ;) > > Noticed that those helpers (including tinydrm_memcpy for the > non-converting case) apply clipping on the source but not on > the destination. So, for fullscreen updates that works ok, > but for updating sub-rectangles it doesn't ... Ah yes, these MIPI type controllers support setting the destination window in controller RAM for the incoming buffer so there has been no need for clipping on the destination buffer. > > So I guess I have to add a dest_clip bool parameter when moving them. > /me looks for a good place. drm_fb_helpers.c I think. > > cheers, > Gerd >