Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8607741ybi; Thu, 6 Jun 2019 15:46:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlHUGs8jvBqU4rAegnKHj1gjpsdK8EViAHHEU4wGy/oa2S0dCJc5mEawZpsAtHQ9NbSQ02 X-Received: by 2002:a63:2a06:: with SMTP id q6mr157651pgq.290.1559861181361; Thu, 06 Jun 2019 15:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559861181; cv=none; d=google.com; s=arc-20160816; b=BVV58WLYyeCnOJGkiykzeKtuT1YGmJwW9a61pC9SGJmkntF8fC36htolRYR6WKuy0F NyFHG7ZEDlNk2z/Fy7fnXQv1/UZqw0YcXUFDtxje51t4IZlDUtZOkk7dxoRSgvhXkXPQ 7Wh4auYPxm4sOK4qFYQSwtF+IuWqIy4UN0ST2cgA5+2/BG6iLIivwXc36ymMfFoQzryT 05hDJw2nCTQTqq9pbxSrB5fCxlcVSIC8eVX1upgTdr0+Obgxysv5l3MdVAW8lhp0x/pB ixjnib+Fc3045BPublP0wfovqxvIDQAJT3e7KVyC+972CcdndqAaYcCP4yCAhzITMy8n jlIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=X04iGhDQzw+yQxS/c88O+hKoiyR84ubnTVeo0JYdCO8=; b=ruPpIKat8w7SYL7jE2JzAH2d9BzCV1ItGBOgQLVGn83hM6Z0zlWR7qVoQGlIlOtjuQ u3XC3GLQPUKQSVu2y7q40KrU5YGJmUQsH2nqgUh6Fg5VvF+FKKBV4nXLiRWEsqoYTGkm QRBqOJzXJ7UxOtgKRz5BoPIh0h9uTAzOXPmz6aGZVq/ge/BlKyEG29n52ousB+SmTugs HusoZJrIcabz0kPLqWcKwJnYDHPAQS2oIU7eaBbyprch8/8usT7MutJDuPMa0mjsCYPt +APCmkQq/14qZFyeMhubIAposfENi34YVAEMF1oHxYQTFf/wx4c3sIPVMnYxmRm3C5LB thHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AwO+LEHw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si272947pgt.554.2019.06.06.15.46.05; Thu, 06 Jun 2019 15:46:21 -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=@gmail.com header.s=20161025 header.b=AwO+LEHw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727840AbfFFWkT (ORCPT + 99 others); Thu, 6 Jun 2019 18:40:19 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40449 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbfFFWkT (ORCPT ); Thu, 6 Jun 2019 18:40:19 -0400 Received: by mail-qt1-f196.google.com with SMTP id a15so142265qtn.7 for ; Thu, 06 Jun 2019 15:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=X04iGhDQzw+yQxS/c88O+hKoiyR84ubnTVeo0JYdCO8=; b=AwO+LEHwNcOjItvoP+6RgLmB/qXyyEalhoWC967tTiNj9hmgsQAOnXLqpCvE/LgIrW 7LxBC0iHC0hdkuKNSaFVfUcmFmFitowIF/tRuTvWUXcHKMUz0mLqTPm9Ss0m/SfPDNfk uViw3s2aPk9pKyeA4f/yRoMyaaP1q/RUikSq+4GQbL+tMyrojZGXNU4cxKqDeDThHKh5 ah9Njc/fnFkfljlJDoZtuG8jw++nrpbDxjgFLb/Y+nDOgXBCEXVX6kPfkb9MNo3apGGN NHeHSg3fu8MyZaGcdMasrp20RMaYPp6VrSfzQMwB4r62AMDs4YnSYFtsoBTelMv+nqQd 3HVg== 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=X04iGhDQzw+yQxS/c88O+hKoiyR84ubnTVeo0JYdCO8=; b=T+DGdCbTXcefMVE86d7V/ZLVDbdpPjrd5phRX9Ad2a6dtMm2Gb/8WH3VUZ9O+gedH6 zlZ0XnkUgul+X49sy4bHqXGfjyneOz8CgTq8MftLREJVzm+a7ma5YNkYAejc/ZSOHfJq T3LP46uXuCXwyJZy08OUIdBtISkdPIxhmq9mW3jWPwygIcAPVuvnDmDnuBG0T5Rev6KK LNpGbcWTzH0CNQ6xBhbihykRZnjpDcqEnOEO48qZsfOtWvM01mR8qO/Awnk6HxkFRXZn 3lxGUuabOV8HelPUxzsFMJNtR3EqkLC9mu5bf2iDXjFLFooDzWMMAw+TkFxCPjwhQ+Hy 12Ew== X-Gm-Message-State: APjAAAWCB7uY9bX/h0oQLYCUUURmAkSnu9RLHoGwPfWXunXcQoVtG26a LsmlnAg7JJRrvf8jUGHY1w4= X-Received: by 2002:a0c:ed4b:: with SMTP id v11mr40088143qvq.126.1559860818713; Thu, 06 Jun 2019 15:40:18 -0700 (PDT) Received: from smtp.gmail.com ([187.121.151.146]) by smtp.gmail.com with ESMTPSA id c18sm105921qkm.78.2019.06.06.15.40.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 15:40:18 -0700 (PDT) Date: Thu, 6 Jun 2019 19:40:13 -0300 From: Rodrigo Siqueira To: Brian Starkey , Liviu Dudau , Daniel Vetter , Haneen Mohammed , Simon Ser Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] drm/vkms: Introduces writeback support Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cmukgb7fz6z6a5r7" Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cmukgb7fz6z6a5r7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patchset introduces the writeback connector to vkms. The first patch is required for enabling the virtual encoder to be compatible with the crtc when we have multiple encoders. The second patch adds the required implementation to enable writeback in the vkms. With this patchset, vkms can successfully pass all the kms_writeback tests from IGT. Rodrigo Siqueira (2): drm/vkms: Use index instead of 0 in possible crtc drm/vkms: Add support for writeback drivers/gpu/drm/vkms/Makefile | 9 +- drivers/gpu/drm/vkms/vkms_crtc.c | 5 + drivers/gpu/drm/vkms/vkms_drv.c | 12 +- drivers/gpu/drm/vkms/vkms_drv.h | 16 ++- drivers/gpu/drm/vkms/vkms_output.c | 12 +- drivers/gpu/drm/vkms/vkms_plane.c | 4 +- drivers/gpu/drm/vkms/vkms_writeback.c | 165 ++++++++++++++++++++++++++ 7 files changed, 214 insertions(+), 9 deletions(-) create mode 100644 drivers/gpu/drm/vkms/vkms_writeback.c --=20 2.21.0 --cmukgb7fz6z6a5r7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE4tZ+ii1mjMCMQbfkWJzP/comvP8FAlz5lk0ACgkQWJzP/com vP+dqA/9HI1pPOrEyDIDVVJXSpLTTija/8sRarCwikNphSgn/0b7lDcISbEFDYFj qgFkYToECrof2TEd5dQbIOTEZ3CzVmtlECSmAk/2Bv3Fm47OfhRXN33m2mgKha4A +6S1Mr5HYCF/+OsOgMQQNNEi8kqRUuan+Tf5oKlfLKuP8bCBIv0cfRgq+yvkcQRE 6qvyMCE3TS19H7Qr9EsTXUJ5Hvr5hFs/0uHfPDAZgoEqj4DXIvICFMwDhKI3txXj ZhXxKPJn4a6wluSpDAJuuJwan9ARUlxgT3KQR4k881yg95Q/qlG+xzbq3DrsWbLQ jogEDXKYFiqKDXTfy77Re1/28YHLRrcWOQSMlDk+4dVWBVIKPGSpHQuBIl86WGrs Jovl9ePplJW+ltCP+KEaO9Q+9nOhE3xXVIUurLN+wREBjc/SIFlNZho/N5C6U1Mu DIWBNlUgG8l4Gnd4yJo6q4RwqoVnexXBx+7z6IdmN7RXpKh7fJaGyUKys89uz2ZJ n2zLhLBgwLqE0H8hRZtAa3TNui2xOFH8M3tS3qHSZLnH/dt414EC2wUQjLUX/5Ln OWnKSXV2S8j/WS381V7L2F8JPe1fcYmtIBCW10+3y63QUQgWyYvIE6GH8yKGmb7y V2d5ImBPgcrMlaSm+UZ45rEGG5qOfV3v/rOg4jzVjRUcbq3SOTM= =yMZ+ -----END PGP SIGNATURE----- --cmukgb7fz6z6a5r7--