From owner-svn-src-all@freebsd.org Sat May 18 08:44:19 2019 Return-Path: Delivered-To: svn-src-all@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 58F5915AC61F; Sat, 18 May 2019 08:44:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C5936F84F; Sat, 18 May 2019 08:44:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x4I8i6BK043147 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 18 May 2019 11:44:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x4I8i6BK043147 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x4I8i6Ad043146; Sat, 18 May 2019 11:44:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 18 May 2019 11:44:06 +0300 From: Konstantin Belousov To: Dmitry Chagin Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r347695 - in head/sys: amd64/amd64 amd64/include kern Message-ID: <20190518084406.GX2748@kib.kiev.ua> References: <201905161328.x4GDSmMd072071@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2019 08:44:19 -0000 On Sat, May 18, 2019 at 11:35:29AM +0300, Dmitry Chagin wrote: > чт, 16 мая 2019 г. в 16:29, Konstantin Belousov : > > > Author: kib > > Date: Thu May 16 13:28:48 2019 > > New Revision: 347695 > > URL: https://svnweb.freebsd.org/changeset/base/347695 > > > > Log: > > amd64 pmap: rework delayed invalidation, removing global mutex. > > > > For machines having cmpxcgh16b instruction, i.e. everything but very > > early Athlons, provide lockless implementation of delayed > > invalidation. > > > > The implementation maintains lock-less single-linked list with the > > trick from the T.L. Harris article about volatile mark of the elements > > being removed. Double-CAS is used to atomically update both link and > > generation. New thread starting DI appends itself to the end of the > > queue, setting the generation to the generation of the last element > > +1. On DI finish, thread donates its generation to the previous > > element. The generation of the fake head of the list is the last > > passed DI generation. Basically, the implementation is a queued > > spinlock but without spinlock. > > > > > > Hi, Kostik! First of all thanks for the previous help. > Second, this commit broke i915kms module. Unfortunatelly, > I can't give you a lot of information becouse I see only black screen, > but I can help with testing Did you recompiled the module ?