From owner-freebsd-x11@freebsd.org Sun Feb 7 08:15:58 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5CF7AA00E4 for ; Sun, 7 Feb 2016 08:15:58 +0000 (UTC) (envelope-from alexander.m.mishurov@gmail.com) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B3B11D01 for ; Sun, 7 Feb 2016 08:15:58 +0000 (UTC) (envelope-from alexander.m.mishurov@gmail.com) Received: by mail-lb0-x22e.google.com with SMTP id bc4so69132941lbc.2 for ; Sun, 07 Feb 2016 00:15:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=Vt6DynGJ+zPGBW/VRnwnk4jLhiR3uN5g4xSDam1Hsm0=; b=uAQgyh3z23oE3J417h2NHh4GSF+iZyoxJXstorAPzPvkgDwa1qms3EK7aYZwuGQQBe vUbbKZLBfvvU5YTboRAyXpg+eD6bAeO6b2Tv/FNb6Uy2zf5OA7OY3Xukw3HYRqzxx7my auSzNkJjVcayIrL+69gmYnPqbo5343L59lr/akwK5HhI9fo3OJCfDmyAx1crNAigrChs Qch2J+NP9RUW4NUSNPAxF+aEwU7zeGhzYFbAJSpmxgIYx2mX1PjxHZm1C9pYzrtsGpEx SPjcdLoOPsxdWfK2OEPyJSjj/ZQl0a5fh5Qz6DDw7Jfe+hwWFzk0Yl4fImRuDHd0cpqm Rn2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=Vt6DynGJ+zPGBW/VRnwnk4jLhiR3uN5g4xSDam1Hsm0=; b=Eje4nOFy6YQI572fgxELHbUJ3agREB2JZz2U4YyDGofkewUBnIzQ/QwG/ngxBdjywE SCIKywi/4/mhxpl7c4lUkcQj2dibLNbkbaIRiMr7SIRC0+0IDKiJjemgbbWPSf8Ge/6V mkuHIL2v6zjaebxp8mRExjUThyZon4JgnM9+GtT3E3gdDK45noVE6tQP+Q6kIzqHQrFY 3VitgFJaPiRXBIo1QTwNjjPKlOpu/6LGa9+5mkk0Bqt1KEZMcha/ZM1cx1BwkS+T4Nbb TGgIZIKIBTq9HH8+7CzZAiMUpZS7RscUiVXlS+PcNJxQ2ihoSzaaGcFHeLaDnCksyray mBVw== X-Gm-Message-State: AG10YOSCJ6RfX932z6+l1zhQcVQOeB/rUv/7dfEMzs368lfcfaH+J69uexrUCOH9t/jxew== X-Received: by 10.112.52.73 with SMTP id r9mr9018009lbo.64.1454832956315; Sun, 07 Feb 2016 00:15:56 -0800 (PST) Received: from [192.168.0.27] ([176.194.172.197]) by smtp.gmail.com with ESMTPSA id f134sm1019389lff.34.2016.02.07.00.15.55 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 07 Feb 2016 00:15:55 -0800 (PST) Subject: Re: ValleyView To: freebsd-x11@freebsd.org References: <56B30869.6000109@gmail.com> <56B3997B.70703@gmail.com> <56B544F9.6030101@dumbbell.fr> From: Alexander Mishurov Message-ID: <56B6FD3A.40905@gmail.com> Date: Sun, 7 Feb 2016 11:15:54 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56B544F9.6030101@dumbbell.fr> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2016 08:15:58 -0000 Thank you for the information. You is the person i was looking for. I have working drm2/kms915 from 3.8-update on my Haswell Chromebook. It works nice except of obj->base.write_domain bug, I changed BUG_ON to WARN_ON like it mentioned in issue's comments to get rid of annoying reboots and crashes. But also I have second laptop with BayTrail chip and ValleyView graphics I thought that to make it enabled would be something to change couple of lines of code. I was wrong. So I still want to enable VLV graphics by moving code closer to 3.10. Then start to fix bugs on already working video. There's some notes, if you can comment them, it would be great. 1. My VGA PCI ID is not listed and there isn't a lot of VLV specific registers and functions in existing code. The closest branch is 3.10. I tried to use code from 3.14, then from 3.12, I got all working except of eDP and i2c communication but diffs are too big. Then I decided to use closest branch from Linux which have desired code. To make FreeBSD code more consistent and don't do a lot of work with huge diffs. 2. I still have misunderstanding about AGP, AGP driver used for gtt initialisation and other things in drm so I have to enable my id in AGP driver, and use device id itself instead of bridge device id to read PCI registers and so on. I suppose it because chip is SoC. But thers's no such configurations before I made changes to existing code. Stolen Memory is still incorrectly detected by DRM. I'm working on it. Now after my attempts I'm familiar enough with 3.8 branch code and equivalent code from Linux to make some useful changes. I want to join IRC or mail you when diffs will be ready or there will be some significant questions because I don't want to bother people when there's nothing to show. On 06/02/16 03:57, Jean-Sébastien Pédron wrote: > Le 04/02/2016 19:33, Alexander Mishurov a écrit : >> Working on dev/drm2/i915/intel_dp.c >> >> There's lot of code to get from Linux. > Hi! > > I'm already working on an update to the i915 driver, based on Linux 3.8. > It includes preliminary ValleyView support (but disabled by default). > > The code and instructions are available on the wiki if you want to test: > https://wiki.freebsd.org/Graphics/Update%20i915%20GPU%20driver%20to%20Linux%203.8 > > Now, if you want to contribute, that's awesome! Right now, I'm tracking > the issue described here: > https://github.com/freebsd/freebsd-base-graphics/issues/2 > > Bug reports and fixes for already supported GPUs (up to Ivy Bridge) are > more than welcome! > > If you prefer to work on the next update, see this thread: > https://lists.freebsd.org/pipermail/freebsd-x11/2016-January/017109.html > > Please indicate on this mailing-list what you want to work on to > coordinate with other people. Also, if you can, please join our IRC > channel so we can discuss this (#freebsd-xorg on EFnet). > > Thank you! >