From nobody Thu Jan 6 06:46:18 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1063419325C3; Thu, 6 Jan 2022 06:46:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JTxhV5fQzz4V9F; Thu, 6 Jan 2022 06:46:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A25381B0EA; Thu, 6 Jan 2022 06:46:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2066kIZM064545; Thu, 6 Jan 2022 06:46:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2066kIY8064544; Thu, 6 Jan 2022 06:46:18 GMT (envelope-from git) Date: Thu, 6 Jan 2022 06:46:18 GMT Message-Id: <202201060646.2066kIY8064544@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: f54882a86269 - main - Remove special kstack allocation code for mips. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f54882a862691325dfdadb6c99db4955f248c2c7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641451578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fI5zAqGMHAlQQnVCoesima3rYzVT1Ay1AcdQgOOENTI=; b=cUGvsi2aFVZPJD1+e0YX7WMg8QBRX71IVuVkCoxmUpR6tIVK3zN9V1ThdN5TOyd/lminHa xBVXK/Ul3Uo59EiCLSb2hmGFmo8K19vwwyTtK5/6SCpMKft5y95PxU0Bp3CLKVHSrqDjVQ SEbC2lXjnXkWebA3kdisddI5yqEyUcFUZjwcetspvFQnwYFnBhITbIfhtiBfr7+zFhUXuS YHQoHU92TdQVJLz9hJqxIjwNr5QT1hjyNIGyl2tGbClP35QZVpWTv7DDMe7IT93hBc/lnq UnsE11y4uXIrbg1S/YoD+QLHcfNgGwvv3gM2O209b/JXi2oceqJ+UGTB4eFQWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641451578; a=rsa-sha256; cv=none; b=TDHYtu3Whd794MW5PZagNHoFjsNRnus+Qt5KZlrK9VtKMv1VptI0wwYZQWBEvTh90iEbrG dT7tMbtCyLrHEwPZslOP95guBUlCeJcV9HQVmiDintfqHFlkgXyZKx9Khal9Z+Qg5/8k4j FoAbHdNHx34LNjw7uQJ67WdXMvIsQHac7Kj1Qj/cG3mtYILiOWw6IsgVCjGsBeb4R8tq/o qzp0BQ9cow/UPxeZMfcdZ66+lpn29NmRaY0/LA1/FDcyusanYp2wQSInfKSbmk48okWbe7 7NKmG+FVf1gT5Q3njER/a6guJG2L1gLQ26soivLizl/QTfz6cLGtxuU6+d0a6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f54882a862691325dfdadb6c99db4955f248c2c7 commit f54882a862691325dfdadb6c99db4955f248c2c7 Author: Konstantin Belousov AuthorDate: 2022-01-06 00:40:28 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-06 02:43:56 +0000 Remove special kstack allocation code for mips. The arch required two-pages alignment due to single TLB entry caching two consequtive mappings. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D33763 --- sys/vm/vm_glue.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index e2f8f861b373..21d49d976e5a 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -298,19 +298,7 @@ vm_thread_stack_create(struct domainset *ds, int pages) /* * Get a kernel virtual address for this thread's kstack. */ -#if defined(__mips__) - /* - * We need to align the kstack's mapped address to fit within - * a single TLB entry. - */ - if (vmem_xalloc(kernel_arena, (pages + KSTACK_GUARD_PAGES) * PAGE_SIZE, - PAGE_SIZE * 2, 0, 0, VMEM_ADDR_MIN, VMEM_ADDR_MAX, - M_BESTFIT | M_NOWAIT, &ks)) { - ks = 0; - } -#else ks = kva_alloc((pages + KSTACK_GUARD_PAGES) * PAGE_SIZE); -#endif if (ks == 0) { printf("%s: kstack allocation failed\n", __func__); return (0);