From patchwork Mon Dec 4 08:45:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 10089791 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 19A976035E for ; Mon, 4 Dec 2017 08:45:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CB3A28AF8 for ; Mon, 4 Dec 2017 08:45:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0160828B5C; Mon, 4 Dec 2017 08:45:20 +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 BF9D728AF8 for ; Mon, 4 Dec 2017 08:45:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B510D6E2C2; Mon, 4 Dec 2017 08:45:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 125776E2C2 for ; Mon, 4 Dec 2017 08:45:16 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id r78so4276000wme.5 for ; Mon, 04 Dec 2017 00:45:16 -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=8EHgM2HS2qquaAgtZ5U/0nd5srEsRFZmTULIpyou3wA=; b=ajL1cySJm3y5Tn3XP+IBGRYx6nPkQjrvodD983OqYge/gYWWIX9T1IfOEwNlpefmf+ s0ptI2kMaxZV1+/Tr8SVf/aF3oT4hBTrwyruNfK54XHFY3I+vannDvPPWAyaxOK/T1xY +mR63agKeNh9P/m0/1Nbxgoqrod7tXeIM5z44Gi3Aw3ojgkoi2V8uUxlbcc4p8rgqjMi Fx9h5zhqxDEtHF6HYxG7W+UHzRErl8RoSIbHkvLaVkv06rzmQ9P4Y8yuFCCXf+1ePfH1 2yALDCtR2dmIIBqNqrOz8/X7/vsHLO7lAQ5K2VHe05ssPNnwSId4lsD1lIfZBrvfit4i vvGw== 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=8EHgM2HS2qquaAgtZ5U/0nd5srEsRFZmTULIpyou3wA=; b=CSq3E6023dXwHCbIgaLMswTmokOfquW2GfYoeACOatk0/5LfrqmA5bRaz6+h3/jqK7 g3XZ6FFQSeJoCkVqmbNCLYDg8sY71hjcGro0DTL0EiSb1jFMZLXtvalLcGmviiSWqSgJ hNHcaj3ucpIyQ3CGZtmbhCbFTViBICwbkvC8vz29A9aBUHbwv8qKgjKa18EsCK8Ru6cM XW9nt3KbLdt+u91BJUxs2VtaYKRnBy4jyaFgXDOe+npJXkyu+gq0eLhnNLploGY9dVAk UcmoAFiunpQ/cjRVIMRvnkET3EyoVFkAwqkUpj0Bp3Vsoe+csendPcvEDTT7t2zW+89w j+Ow== X-Gm-Message-State: AJaThX6dbqOcOfxhMXgoxPXqQR+BewhvWV3JOls9+vXhNJ+r0GmFDlwz LsyRbJ1bYKYmt0ajQBp4EsGLew== X-Google-Smtp-Source: AGs4zMbIDd7O08cFGYFkUEeWOol9meXaUnrjQsNFESmWkejM8pnNz8irZLiCE7jhStMaLi5fKIEyBw== X-Received: by 10.80.141.141 with SMTP id r13mr29493202edh.122.1512377115361; Mon, 04 Dec 2017 00:45:15 -0800 (PST) Received: from ped.lan (ip1f12fa6e.dynamic.kabel-deutschland.de. [31.18.250.110]) by smtp.googlemail.com with ESMTPSA id i16sm7875144edj.77.2017.12.04.00.45.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 00:45:14 -0800 (PST) From: Philipp Zabel To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/edid: quirk Oculus Rift headsets as non-desktop Date: Mon, 4 Dec 2017 09:45:04 +0100 Message-Id: <20171204084505.2755-1-philipp.zabel@gmail.com> X-Mailer: git-send-email 2.15.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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, DK2, and CV1 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 5dfe14763871..80f414ff60e4 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 }, }; /*