From owner-freebsd-current@freebsd.org Sun Oct 20 08:42:28 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 798301586B1 for ; Sun, 20 Oct 2019 08:42:28 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46wtYt5k11z4WXh for ; Sun, 20 Oct 2019 08:42:26 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id q13so5497692wrs.12 for ; Sun, 20 Oct 2019 01:42:26 -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:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=tGncPYFd2GDaqttairG/Sv/EX3VGMLBJescteGVTUak=; b=UsmdR9/5xwavnzbXcM51yPf1Q+pD1+K5ZahO1AGRTdztlstTKGWmU+MRSUx38MZQfv 8Du3inHv1bNvQrLUoHQcEhDChh6gYTNt32VcKhUHmLLYQTtc17OqVD67swGZhsepHlDl PgAGNU6YZ3j4rsv3XGdMD/GsnjbuZexqh2i3WU74l6XVsju0L+2c/+o5OwDCr+AlIfh4 53e1fVtw56ozjkjatjmXaf1x0hMDqP47RtLHLJuYPx0n2yl4ki3Ry0CNZuLJ04v2HIh1 hTTghW+tDbqCkv7GtzKCtpznAQB7YhBXeXyWZMxboMaHyd/WlMIowyjGXUaiz6kuFxhj 0XBg== 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:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=tGncPYFd2GDaqttairG/Sv/EX3VGMLBJescteGVTUak=; b=p+SSw7BeB8yxLcCpLFipTWVWjfPWPt/PTCD+//cZXfMcd+P77fkWS+MqEHho2xTYjV 3uWZOB/H7qcCmxR9h+Jo9j1cbZfu+ppq4L4X4mxgbCtz5hKpgeN+y0tHuBrtbR6dKHVf BOt970KQGg8pxA5YgNWWZ+xvVcL3PGg8PYCcWZTc37CJ9ACb5SwZuA0Kz79vqR7dYikE Dwyb1IUDjcisLg5aH80GPLKETxjGO9LFrpS0a6LE6y2+6URMC5gN45idAz3En281Mytv Njro6I1ns7vUD0Je9jYFV/29LCaivZw5mj1uiV5tB9oQ3f/SMbbU+Gd/HLN/FdrB2x6i s0GA== X-Gm-Message-State: APjAAAVr6KWY8wV2tk9VInN81C8OYlXtpB+Ammp7iqPe/tkv4jFimE73 4tafnn3jFypEBuLySa0d2qVxOUF5 X-Google-Smtp-Source: APXvYqxgpSAx1sEXUN4+nICbWezgq55yjK230R2uxd2AurqI3x2feUffJCvZySSHkR2Cb8zL1OHvmg== X-Received: by 2002:adf:e5c4:: with SMTP id a4mr15305721wrn.334.1571560945158; Sun, 20 Oct 2019 01:42:25 -0700 (PDT) Received: from ernst.home (p5B3BEFDD.dip0.t-ipconnect.de. [91.59.239.221]) by smtp.gmail.com with ESMTPSA id u10sm9357925wmm.0.2019.10.20.01.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 01:42:24 -0700 (PDT) Date: Sun, 20 Oct 2019 10:42:23 +0200 From: Gary Jennejohn To: Clay Daniels Cc: Evilham , "freebsd-current@freebsd.org" Subject: Re: r353072 > r353427 > r353709 Message-ID: <20191020104223.4ac03a5e@ernst.home> In-Reply-To: References: <4948bdbf-f79c-482b-87f5-e0f72c527b19@yggdrasil.evilham.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46wtYt5k11z4WXh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UsmdR9/5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::444 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; IP_SCORE(0.00)[ip: (3.22), ipnet: 2a00:1450::/32(-2.84), asn: 15169(-2.09), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[221.239.59.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 20 Oct 2019 08:42:28 -0000 On Sat, 19 Oct 2019 22:07:52 -0500 Clay Daniels wrote: > On 10/19/19 4:54 AM, Evilham wrote: > > Have you seen the recent threads about this? > > Particularly this with some steps that worked-for-me (tm): > > https://lists.freebsd.org/pipermail/freebsd-current/2019-October074660.html > > > > -- > > Evilham > > i looked at the patch__ & made a file which says: > > diff --git a/linuxkpi/gplv2/src/linux_page.c > b/linuxkpi/gplv2/src/linux_page.c > index e2b85c45c..060ae85ed 100644 > --- a/linuxkpi/gplv2/src/linux_page.c > +++ b/linuxkpi/gplv2/src/linux_page.c > @@ -239,7 +239,7 @@ retry: > ________ ______ ______ page = vm_page_lookup(devobj, i); > ________ ______ ______ if (page == NULL) > ________ ______ ______ ______ continue; > -______ ______ ______ if (vm_page_sleep_if_busy(page, "linuxkpi")) > +______ ______ ______ if (!vm_page_busy_acquire(page, VM_ALLOC_WAITFAIL)) > ________ ______ ______ ______ goto retry; > ________ ______ ______ cdev_pager_free_page(devobj, page); > ________ ______ } > > Not knowing much about patching, I decided to locate linux_page.c and > did so on my install at: > This is a patch to a file used in the port itself, not to the kernel sources under /usr/src/sys. This should be pretty clear from this line in the referenced link to the posting in freebsd-current: # cat files/patch-linuxkpi_gplv2_src_linux__page.c In other words, the patch must be put in the files directory in the port itself. > /usr/src/sys/compat/lynuxpki/common/src/linux_page.c > > I figured if it was just a one line change, good old vi would do the > trick, but after carefully looking through my linux_page,c file, I found > what I think is the section, and this is what it says (my handwritten > transcription from the console screen of the freebsd computer to my > linux workstation) > > --- > retry: > ____ page = vm_page_alloc_contig(NULL, 0, req > __________ npages, 0, pmax, PAGE_SIZE, 0, VM_MEMATTR_DEFAULT); > ____ if (page == NULL) { > ____ ________ if (flags & M_WAITOK) { > ______ ____________ if (!vm_page_reclaim_config (req, > ______ ____________________ npages, 0, pmax, PAGE_SIZE, 0)) { > ______ ______ __________________ vm_wait(NULL); > ______ __________ } > ______ __________ FLAGS &= ~M_WAITOK; > ______ __________ go to retry; > ____________ } > ______________ return (NULL) > ________ } > } > --- > > Excuse the spacing. > > Anyway, I suspect I must have an updated version of linux_page.c but not > sure. What I might do is go ahead and go to the > /usr/ports/graphics/drm-kmod directory and make install clean, then load > xorg and see what happens. I'm going to have a bite of super first. > > Clay > > > _______________________________________________ > 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" -- Gary Jennejohn