From owner-svn-src-all@freebsd.org Thu Mar 8 22:07:34 2018 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 B7E2AF3529F for ; Thu, 8 Mar 2018 22:07:34 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E21C7328F for ; Thu, 8 Mar 2018 22:07:34 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-yw0-x22d.google.com with SMTP id x197so480175ywg.11 for ; Thu, 08 Mar 2018 14:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/9VaNltj2HvVMvqQj2WbkPvqBKehowCLzVjbEMwiIoY=; b=lMKA25eWwNYSV7bbBJ+YpOKvS2qMHjvJLZ9BlI9YbyyShJ4Dk6bI5qERFStv/JnvcG PesMfns+pili+Go1mVCHjf84pHeH09V85SHvFjb2zIrSupFAiydB5zt00M5Y/BiFCoi8 z2tNj31YvCILThOZw9CX9Djjmyd1TUzWGOyWVXU9MjIIhwP7ouyIR7oQ3XO77u8892dz DeRV8HOoT/lf2nJP/Luyvs1Df7w/6VrgNYNbwfJxKoRva6xkzBVLhl3mG2AVYoa6YJFH AAWsAogitIiwLwt+49HOSnYWCFfgu9o9DHN10s0gkE8Py6Iok0V/HRbDnUpMbRJOJFXV Sbpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/9VaNltj2HvVMvqQj2WbkPvqBKehowCLzVjbEMwiIoY=; b=ma+Vi8slmPB+St5W9BTBTi819Gq4rA5KQ46PPHChwq/J2mfZoXBGEjqvg+Yo590UL4 j+rQSApUJ1v+xP6uoa58MBSkJ9/My5usCDrlmAX1nj51irUsrTei5MCpYhWTxBTnD/dI WJgCVt7Ij/Q4w595Ip37h+JPpmW8KUIVZEPzGu513cUlrFpVgKmfTtTYunrKpXkwCYfB Wegd+9OTjHSa27fdX0ESp+KCSJgCeWBeOPMtUmRczcA808fxc1l39FAkJ9f/KPOqswsM YNSs6OMwtOAij1uvHN7tbFUecPo9dzSERZfCneqWoZjF7MEggNF+GBtnwQzM2+tBXwQQ 99gw== X-Gm-Message-State: APf1xPCFyvGPheDBbRopx5JQra1zOdAGmdryLJSRYCeeDOUFpwdfE1xx fyvI6TywaGnhYgR8Y1T8SMFmNNXe3D43hLJ2BDs7eQ== X-Google-Smtp-Source: AG47ELsA0THcGEND0x6rMO2gT8vNgEEGr4j/olJbhqkFV4TJn0YlFL3Z51KWZpFFTMAg6NVOg1NdiJJXWG/TASJcCYw= X-Received: by 10.129.89.137 with SMTP id n131mr17856034ywb.41.1520546853728; Thu, 08 Mar 2018 14:07:33 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:5f41:0:0:0:0:0 with HTTP; Thu, 8 Mar 2018 14:07:33 -0800 (PST) In-Reply-To: <201607112125.u6BLPSfT084346@repo.freebsd.org> References: <201607112125.u6BLPSfT084346@repo.freebsd.org> From: Oliver Pinter Date: Thu, 8 Mar 2018 23:07:33 +0100 Message-ID: Subject: Re: svn commit: r302595 - in head/sys: kern net To: Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org, emaste@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 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: Thu, 08 Mar 2018 22:07:35 -0000 On 7/11/16, Nathan Whitehorn wrote: > Author: nwhitehorn > Date: Mon Jul 11 21:25:28 2016 > New Revision: 302595 > URL: https://svnweb.freebsd.org/changeset/base/302595 > > Log: > Remove assumptions in MI code that the BSP is CPU 0. > > MFC after: 2 weeks Please MFC this commit to 11-STABLE, since without them, we encounter boot issues with enabled EARLY_AP_STARTUP. Thanks, Oliver > > Modified: > head/sys/kern/init_main.c > head/sys/net/netisr.c > > Modified: head/sys/kern/init_main.c > ============================================================================== > --- head/sys/kern/init_main.c Mon Jul 11 21:23:50 2016 (r302594) > +++ head/sys/kern/init_main.c Mon Jul 11 21:25:28 2016 (r302595) > @@ -495,7 +495,7 @@ proc0_init(void *dummy __unused) > td->td_lend_user_pri = PRI_MAX; > td->td_priority = PVM; > td->td_base_pri = PVM; > - td->td_oncpu = 0; > + td->td_oncpu = curcpu; > td->td_flags = TDF_INMEM; > td->td_pflags = TDP_KTHREAD; > td->td_cpuset = cpuset_thread0(); > > Modified: head/sys/net/netisr.c > ============================================================================== > --- head/sys/net/netisr.c Mon Jul 11 21:23:50 2016 (r302594) > +++ head/sys/net/netisr.c Mon Jul 11 21:25:28 2016 (r302595) > @@ -1273,8 +1273,6 @@ netisr_init(void *arg) > struct pcpu *pc; > #endif > > - KASSERT(curcpu == 0, ("%s: not on CPU 0", __func__)); > - > NETISR_LOCK_INIT(); > if (netisr_maxthreads == 0 || netisr_maxthreads < -1 ) > netisr_maxthreads = 1; /* default behavior */ > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" >