From owner-freebsd-current@freebsd.org Wed Oct 3 09:53:28 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBF8410BE6ED for ; Wed, 3 Oct 2018 09:53:27 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8140074375 for ; Wed, 3 Oct 2018 09:53:27 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io1-xd2c.google.com with SMTP id e2-v6so2815562ioh.5 for ; Wed, 03 Oct 2018 02:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FBSvWQoo4pDnhv5tJ5IOOhcm8yRiWuoaGeNRAbleLOc=; b=Obw7jb6mpXIE7bSFsQrYzNYKWeoWncsO+JbB+HbOp5oWRz8qMQp5FiaJqC51RUc/7i W/aaoTCSyg9UNGdpzr3pRmDC6jcYOGub45wSjJeZ+V/49mQ7ltPZkZ65qBQX/nnxs21r zM8DIrH5qC0Y1aNXZmqm79I9dRq4HRZOvy6YODhI5Jh3naxeJQoNhzCPScRcIEonLtjG jb56mvsyE4Jnm1HqGzi4lqczjyh9oxfWvrCjoSIgjuy6qFRftKTunUEYW3KGVU2BSnLf glpDnT6GN/BDMPlefuJdDq2JfOMVYMP4SgYJJ4KKQNttbVScSCRzFBWt/tGYkDBAT0Ee Js0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FBSvWQoo4pDnhv5tJ5IOOhcm8yRiWuoaGeNRAbleLOc=; b=ug7UQFdjirs+tP/7Ued7NwHkIJJ2VvJktRrUgjXSEODk2nGxxXK/9NmihjKBShhJxl mdNUYwudSIsZ8Dix21zLeSF8aZ7WHUlZd0QVqSxww4tvlTf9GGb4MV8+7apN9hvVVBYF 6v+YbSN9YEt7WGV+QPY1JFlOWPKdC8cV/RcrH1WZtq0fJe5aPeVpcro1C2uAbKNu5bip HtHbBk6Nin8j1fqziONQWG8eNef/azEsrKMDteipIUJW1ieRW424fU4LmI8iwxp4mQLs 26rIjvzyfb5go+3pgT+N0LrpC10Zzonf4QBhgtgeLCc9F5vs1tCFQca4IIF2F8VI1RK4 brlA== X-Gm-Message-State: ABuFfoguZfzH9SpcV/jDuL9BHBV3YPw1t22pO92gWHOMxaley22nXhAx Qol0Ig0APN6FP+FW8UfinrUOx88iKi+r0Z1j3yM= X-Google-Smtp-Source: ACcGV63oAN5uwSb7yWquanP8Dx6E+nEF/mWv7lqnystFldqqt9bFo/z01yP3YCRaerAHMcIZjQwb1bsEC+1qqWLhBkI= X-Received: by 2002:a6b:5a0f:: with SMTP id o15-v6mr404969iob.136.1538560406806; Wed, 03 Oct 2018 02:53:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: blubee blubeeme Date: Wed, 3 Oct 2018 17:53:15 +0800 Message-ID: Subject: Re: linux-c7 and opengl apps? To: Johannes Lundberg Cc: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2018 09:53:28 -0000 On Wed, Oct 3, 2018 at 5:40 PM Johannes Lundberg wrote: > Hi > > Have anyone successfully run opengl apps with linux-c7? > > Linux opengl apps works great with linux-c6 on gpu < kabylake but > linux-c6-dri does not include support for kabylake gpus. > Linux glxinfo in c7 show support for hardware rendering on kabylake but any > attempt to run an opengl app results in application seg fault or other > crash (I believe this is also the case with skylake gpus on linux-c7). > > Is there any way to run gdb on linux apps/core dumps? > > /Johannes > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Highly unlikely since the Linux kernel memory model is pretty different than FreeBSD especially concerning graphics. Linux kernel graphics will have to use dma regions or the low kernel memory while most other stuff hangs out in the high kernel memory. Since the graphics drivers have to have contiguous memory regions that should not be swapped out, if linuxkpi doesn't manage these complexities you'll continue to random failures especially around sleep to wake, context switching and power management. It can be fixed though, you'll just need to port the entire Linux memory architecture to FreeBSD and that's as it stands right now. Don't look into rma, numa, hhm, huge pages and all the other lovely memory features that is currently mainline or about to get merged into mainline. Good luck with that though. Best, Owen