From patchwork Mon Feb 19 17:59:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 10228451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E3B5D60392 for ; Mon, 19 Feb 2018 18:00:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C89D728B27 for ; Mon, 19 Feb 2018 18:00:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBD6728B2B; Mon, 19 Feb 2018 18:00:13 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 5460D28B27 for ; Mon, 19 Feb 2018 18:00:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 528036E2A5; Mon, 19 Feb 2018 18:00:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3DB616E2A5 for ; Mon, 19 Feb 2018 18:00:10 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id v71so16660426wmv.2 for ; Mon, 19 Feb 2018 10:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7/KLJ0nnq1gethE4ZoXC/U/i2GKZdGaiSh9NJ9qsXsU=; b=X5KpOh6RcS5xppPJYftXDsaxrisH4KUZq90BafEAG1rUV2pCerMOCQGm+zqwiJry6Q Ja9QLj9tGQJMuNReN7dvVI3m0j060c8HAx1wcbVYsUPCO3zJsXVHU78AuvT0pKJ4YcSh Rr/I5+RTfeTWrRe77JliB7lEz5ClQyMht4rWk0OMPtFV9/9dWHbmbg+7VYhy8lVYeLwp ksgLaZ0aC+Cq2aTp2Wbrri4OE8Jyts5dVL6aVa+HXQmMMXKuoXg53CxIhzvq48zQJput 9JTpYrwLlkmtO596JTuKALOJtD+rlJcZyCaUYJUEWV7OQJX2VQk1oOPEgR4xrouKqcce cyFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7/KLJ0nnq1gethE4ZoXC/U/i2GKZdGaiSh9NJ9qsXsU=; b=QEq0RZlN4SP5jHOM1HL5yqfrNtB+Tcmg8/9FMerM18D/DghAozQpDIDIg7YLTucPI9 G6ugjTgCGRPiTY12MA9cZgZidk013MusO3wcQwP5TpGFehHdwrDboSRVaT6jNMpXp8MP bqGRnslh2aPXA5ixRCIVu1puhyT/zYHoAz0+s4mz8+Kr8IQZnT+DJnCgZ7j8JYi1HMgd 1SsCYMk8rKpph5416+mpOBMtDnqUoHjLQYnxAGvxbhmsfrqz+Na2hSAXygQvlkZwyjtA oPaoGabrXmkR8Yy6wfTv/TU0vG/Rqz0aiy33uMIuFKcp8RZH5oefGYRImDKJaw8ET5Fv PCKg== X-Gm-Message-State: APf1xPDxVPeQcqPDUwauVOLzkmj20jb+x2Mob9UAW76kDFh+FVOxCw1f Qkgz9komzfWLHYoCSgrCYFZ4LA== X-Google-Smtp-Source: AH8x224cV4w58PlrhHLzq5Md89jfkKqhnQheyYyGMkUmC1ZsbLIokAVtgmQgVszCFkdq05o97bUIcA== X-Received: by 10.80.206.69 with SMTP id k5mr20591249edj.153.1519063208419; Mon, 19 Feb 2018 10:00:08 -0800 (PST) Received: from ped.lan (ip1f12fd3d.dynamic.kabel-deutschland.de. [31.18.253.61]) by smtp.googlemail.com with ESMTPSA id z8sm17785734edi.11.2018.02.19.10.00.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 10:00:07 -0800 (PST) From: Philipp Zabel To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/edid: quirk Oculus Rift headsets as non-desktop Date: Mon, 19 Feb 2018 18:59:36 +0100 Message-Id: <20180219175938.20713-1-philipp.zabel@gmail.com> X-Mailer: git-send-email 2.16.1 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: David Airlie MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This uses the EDID info from Oculus Rift DK1 (OVR-0001), DK2 (OVR-0003), and CV1 (OVR-0004) to mark them as non-desktop. Signed-off-by: Philipp Zabel --- drivers/gpu/drm/drm_edid.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index b1cb2627548f..15cae50f66ba 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -162,6 +162,11 @@ static const struct edid_quirk { /* HTC Vive VR Headset */ { "HVR", 0xaa01, EDID_QUIRK_NON_DESKTOP }, + + /* Oculus Rift DK1, DK2, and CV1 VR Headsets */ + { "OVR", 0x0001, EDID_QUIRK_NON_DESKTOP }, + { "OVR", 0x0003, EDID_QUIRK_NON_DESKTOP }, + { "OVR", 0x0004, EDID_QUIRK_NON_DESKTOP }, }; /*