From owner-svn-src-head@freebsd.org Mon Dec 4 17:46:36 2017 Return-Path: Delivered-To: svn-src-head@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 D4BCFE5F74F; Mon, 4 Dec 2017 17:46:36 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C8D5A72885; Mon, 4 Dec 2017 17:46:34 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 5e6c0fc5; Mon, 4 Dec 2017 18:46:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=OymCLn8jVbWqUjDltR9RqIXjnKw=; b=W8L2iGyGlo8w0CGPJ6iuGvUswx0g 469FWUEPO9aAvWbyu0mH5uzPGuzBKRoPTY3unnjLZzStJ9jpLHfOLcBIhYkDxNwS t/SZuV2Se67AzmzNYV3/YA459k7zaROnoBJsMya/uVl/ltfx11L+NmtXdKKYMkQQ HD9C+aMp0giEPKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=k7oyAmGAaNblfim1hE0z9M6H6C8F5mKvgU1Vz/Z7T0/x85rJfJXeA7UZ vvT1VQ8tXRFSnoZ0OJOHpj7m+2UdacwPX7Y//Bm1sHLzaPA4E7uIr5m3roOiGcLz yx5rhp5kFwn7mXOtQXHjZz+XsDDPgoRbRX1DuQpjTT5O2ZwxH6I= Received: from knuckles.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id faa1e1cc TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 4 Dec 2017 18:46:32 +0100 (CET) Date: Mon, 4 Dec 2017 18:46:32 +0100 From: Emmanuel Vadot To: Jeff Roberson Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326347 - in head/sys: kern sys vm Message-Id: <20171204184632.560fb4996235a9180a37be48@bidouilliste.com> In-Reply-To: <201711282340.vASNetfP044382@repo.freebsd.org> References: <201711282340.vASNetfP044382@repo.freebsd.org> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 17:46:36 -0000 On Tue, 28 Nov 2017 23:40:55 +0000 (UTC) Jeff Roberson wrote: > Author: jeff Hi Jeff, > Date: Tue Nov 28 23:40:54 2017 > New Revision: 326347 > URL: https://svnweb.freebsd.org/changeset/base/326347 > > Log: > Eliminate kmem_arena and kmem_object in preparation for further NUMA commits. > > The arena argument to kmem_*() is now only used in an assert. A follow-up > commit will remove the argument altogether before we freeze the API for the > next release. > > This replaces the hard limit on kmem size with a soft limit imposed by UMA. When > the soft limit is exceeded we periodically wakeup the UMA reclaim thread to > attempt to shrink KVA. On 32bit architectures this should behave much more > gracefully as we exhaust KVA. On 64bit the limits are likely never hit. > > Reviewed by: markj, kib (some objections) > Discussed with: alc > Tested by: pho > Sponsored by: Netflix / Dell EMC Isilon > Differential Revision: https://reviews.freebsd.org/D13187 > > Modified: > head/sys/kern/kern_malloc.c > head/sys/kern/subr_vmem.c > head/sys/sys/vmem.h > head/sys/vm/memguard.c > head/sys/vm/uma.h > head/sys/vm/uma_core.c > head/sys/vm/uma_int.h > head/sys/vm/vm_kern.c > head/sys/vm/vm_map.c > head/sys/vm/vm_object.c > head/sys/vm/vm_object.h This seems to break USB (EHCI and OHCI) on Pine64 (arm64) The board just hang when plugin usb device, setting hw.usb.ehci.debug=3 this is what I have when plugging an usb stick : ehci_root_intr: port 1 changed ehci_set_hw_power: ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 ehci_roothub_exec: type=0x23 request=0x01 wLen=0x0000 wValue=0x0010 wIndex=0x0001 ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 ehci_roothub_exec: type=0x23 request=0x01 wLen=0x0000 wValue=0x0014 wIndex=0x0001 ehci_roothub_exec: type=0x23 request=0x03 wLen=0x0000 wValue=0x0004 wIndex=0x0001 ehci_roothub_exec: ehci after reset, status=0x00001005 ehci_roothub_exec: ehci port 1 reset, status = 0x00001005 ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 ehci_roothub_exec: type=0x23 request=0x01 wLen=0x0000 wValue=0x0014 wIndex=0x0001 ehci_roothub_exec: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 ehci_ep_init: endpoint=0xfffffd00004f10f8, addr=0, endpt=0, mode=0 (1) If you have any idea on how to debug/resolve this, Cheers, -- Emmanuel Vadot