From patchwork Tue Jul 24 16:25:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haneen Mohammed X-Patchwork-Id: 10543563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 38C1714E2 for ; Wed, 25 Jul 2018 07:05:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 288B428C3A for ; Wed, 25 Jul 2018 07:05:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D16229441; Wed, 25 Jul 2018 07:05:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CF74D28C3A for ; Wed, 25 Jul 2018 07:05:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B29BA6E5B4; Wed, 25 Jul 2018 07:05:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1DD1D6E5E1 for ; Tue, 24 Jul 2018 16:25:42 +0000 (UTC) Received: by mail-pf1-x444.google.com with SMTP id k19-v6so970082pfi.1 for ; Tue, 24 Jul 2018 09:25:42 -0700 (PDT) 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:mime-version :content-disposition:user-agent; bh=AjdqH0LavzBDIMKyk89100OR3hq6WdQ85dK6iL8sqEc=; b=sa9ZaZJSUTBjaj9hQ2cjGIQdXhURgJWroaYzaOKDpEOxd8dAJ34Fyw/8N8Ax7p/Lyx Rh1VVzHdLWK3Jl+dE3nHeJZ6JhJVYEAPmFEcTRetmx9l0p+QoVZ1EgbQvrbfSneOejo2 p8MaOELbXr6w8AxZgDzi5GteS5d94ae4cIWmrE9YEny7VZx8IGhiacX8ZL51cAyZXQej e4ReS6feMVWeZ4tdYKToEP+JXivp9QbbK0n1HGBeyd3BxL2tDW5/q8CBtyGMmg3gTZq9 XeVUavKY0E7afmtEG91U6EMo0meYdu2ACY6BQ99cYIr3aYLg2SGC8Vcsp+ffmydmcUuM zCUw== X-Gm-Message-State: AOUpUlGDmX5zE4yhbSt6dtbPcU0tXoAWUXYBYeFPGE5rGT15M2JZUbCM Ec+UpfiBktECLjY9pOWoQgoky4zQje0= X-Google-Smtp-Source: AAOMgpc3MFImtseDSgYI5XRJ+JPej11Hud/06GpqxxVnmuWESlvnX/Tr/WGBd3W3RChZaALqjEweIQ== X-Received: by 2002:a65:448a:: with SMTP id l10-v6mr17093216pgq.382.1532449541398; Tue, 24 Jul 2018 09:25:41 -0700 (PDT) Received: from haneenDRM ([64.77.242.50]) by smtp.gmail.com with ESMTPSA id n188-v6sm16944530pfn.49.2018.07.24.09.25.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Jul 2018 09:25:40 -0700 (PDT) Date: Tue, 24 Jul 2018 19:25:38 +0300 From: Haneen Mohammed To: dri-devel@lists.freedesktop.org Subject: [PATCH v4 0/4] Add infrastructure needed for CRC support Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Mailman-Approved-At: Wed, 25 Jul 2018 07:05:01 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hamohammed.sa@gmail.com, rodrigosiqueiramelo@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset add the necessary infrastructure needed later for CRC support. 1. add functions to map buffers to kernel address space. 2. map/unmap buffers in the prepare/cleanup_fb hooks. 3. clip plane coordinates. 4. subclass CRTC state. changes in v4: - drop patch 5 "drm/vkms: Implement CRC debugfs API" from this patchset since it needs further work. Haneen Mohammed (4): drm/vkms: Add functions to map/unmap GEM backing storage drm/vkms: map/unmap buffers in [prepare/cleanup]_fb hooks drm/vkms: Add atomic_helper_check_plane_state drm/vkms: subclass CRTC state drivers/gpu/drm/vkms/vkms_crtc.c | 53 +++++++++++++++++++-- drivers/gpu/drm/vkms/vkms_drv.h | 20 ++++++++ drivers/gpu/drm/vkms/vkms_gem.c | 79 ++++++++++++++++++++++++++++++- drivers/gpu/drm/vkms/vkms_plane.c | 63 ++++++++++++++++++++++++ 4 files changed, 211 insertions(+), 4 deletions(-)