From owner-svn-src-head@freebsd.org Tue Mar 27 09:52:10 2018 Return-Path: Delivered-To: svn-src-head@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 711FDF67242 for ; Tue, 27 Mar 2018 09:52:10 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yw0-x236.google.com (mail-yw0-x236.google.com [IPv6:2607:f8b0:4002:c05::236]) (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 07EE97A51F for ; Tue, 27 Mar 2018 09:52:09 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yw0-x236.google.com with SMTP id v130so6768385ywa.0 for ; Tue, 27 Mar 2018 02:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lCM5xOkcWquCo97eK4TXjJkXEgQg3nCmDxbFriu46WI=; b=EDRCUUsMWMKYCuwxBnnF41JExf/ddpbjQO2SAGIGds+U/2t8fLZDI/YitmmNnj/CNh 7JCUeOpUgGDD8UjjC0x+mnn09gt0sP2iZ2CH+gOkhk3NkFV7yqSeyMZIybiA5HOTzh7s dZH06F69pOjlOLQovGTQ2LlkO2qhvo9IlUpbo= 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=lCM5xOkcWquCo97eK4TXjJkXEgQg3nCmDxbFriu46WI=; b=TrgKoMUxnxD+PReLk3iwcYwhyThLNBo9P6zSEdfOyUwsEmCuQ0MJpYs/QZEBQBhPY1 Jd/JOG0PwMToJ0iqA5gTJ4VY/Pzih8wcAQ7a20CD/0jA7fsj6Nk7SPr2rcq3xsJe9PqO M6oN6Tdob0VDgOeVFiIFs1q4QVVtqZzUwhqPiYidXoVy0evq0SxYJn82taDqAu2Iv/Vn OSuLdFKE8NWHvqAWKxkUhwr6pT807OhB8hoT0X/VPvQmvEBibM5XW9ZHBtUOrgemoAep x8XHWIELmTruOmZBhaTZaXVK7QtY4juLilkB01Hakb++KTzMnrHW2b4R8NNHil06PsDQ bkpg== X-Gm-Message-State: AElRT7ER9TCim+ktteQ5FB/uS4Vfzi5D5jHf7AB8CbBjwrvnEvSVAK/X 6Omfa3lFFwmn02Tu+gq2qJITHSXIQMaqboyJDcpPww== X-Google-Smtp-Source: AG47ELuqdpxoYq/6Ug8GWIZm6uW5SdxZIIAk108ep3sv15pz8uAp54BrSAttjP9UB4AmgtyBY7blUteVo4QM/+rrjnQ= X-Received: by 10.129.114.6 with SMTP id n6mr21470525ywc.113.1522144329281; Tue, 27 Mar 2018 02:52:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5b:990:0:0:0:0:0 with HTTP; Tue, 27 Mar 2018 02:51:38 -0700 (PDT) In-Reply-To: References: <201803270337.w2R3b4iv035285@repo.freebsd.org> From: Eitan Adler Date: Tue, 27 Mar 2018 02:51:38 -0700 Message-ID: Subject: Re: svn commit: r331606 - in head/sys: amd64/include i386/include x86/x86 x86/xen To: Hans Petter Selasky Cc: Jeff Roberson , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Tue, 27 Mar 2018 09:52:10 -0000 On 27 March 2018 at 01:45, Hans Petter Selasky wrote: > On 03/27/18 05:37, Jeff Roberson wrote: >> >> do { >> - current_cpu++; >> - if (current_cpu > mp_maxid) >> - current_cpu = 0; >> - } while (!CPU_ISSET(current_cpu, &intr_cpus)); >> + current_cpu[domain]++; >> + if (current_cpu[domain] > mp_maxid) >> + current_cpu[domain] = 0; >> + } while (!CPU_ISSET(current_cpu[domain], &intr_cpus) || >> + !CPU_ISSET(current_cpu[domain], &cpuset_domain[domain])); > > > Can it happen that cpuset_domain[domain] is all zero? Won't this loop hang > then? I can replicate the hang. Let me know what other debugging information you might need. -- Eitan Adler