From owner-freebsd-current@freebsd.org Wed Feb 12 12:17:37 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 79584236A13 for ; Wed, 12 Feb 2020 12:17:37 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Hdv52hKXz4KVw; Wed, 12 Feb 2020 12:17:37 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: by mail-lj1-x22e.google.com with SMTP id n18so2044842ljo.7; Wed, 12 Feb 2020 04:17:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oXMAVf7DSQsILqoNy9ip/ZJzvOjqrdGc/0BSkkhONiA=; b=EaXZinIQ8D0J7w2CdzxSnSIc3eM4MkhAEbiqQG8gfERps9LzUigl6CirhIW7AziuTL a+5oNRJCKTXHrPc3XrkMKMao3F8BRTbBxgiGE6ZjVwj70uCmnwLvSScXsIF5Bzs6ORHS vCbW/x24V61i+1V5HNjmqgNNmrX/jPn5vOIdc2f8/Jmzl323BiNmpFhoY0qVRMVK6Egl 9HzHSgfv74j9Au2hGAht9hJcIz75ILTNYeUHrnF2Ya6sY/0wRh0o6KQ+mIDgtnRaZ8Yq rwWmExJ8xNsU05b56z8vdcwjqT1XmiUBt6snlIIUS2OAt3j5on28cDVr4c3xSkikIZyq SChw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oXMAVf7DSQsILqoNy9ip/ZJzvOjqrdGc/0BSkkhONiA=; b=ExfKMGYv13tFjEq2Lh83O179a+tmHSr3HCVME0kC+kMzAjyiDIteqzIVXrpnsLDXHM dxROYnMMsvMW1TsF4w6wuV5rWtBrwxR6WPhbJFqPrBTSpNq2l/z47qyvyHMrEYNFZwzq PVYfwhhS7LCxFiUT4FIsmz6bHYZC+PDDq4t/4jVaQgurAgNelAaIsbSnoe6/26P2z7oE TC0dgqrwRMAYFR3+TZcCV9ol31/iIbvfpo1GnJ8iHdN6KwmCURAkDHPhhLdWovsDyW5H MelR6g80wa5OeWGGMQbFkRtUZIUgQyR9qNine6iPc5FlRUZBPHzGw38YL8U0+UqcB+Ua ahFQ== X-Gm-Message-State: APjAAAVmCSKIIJXHi7BcdFUtx6fHeVr4uTY9j6CDrdcVTxfo3S9rZ5RT RaEjxKEKolTrqNhRDS0wo8PIT70j2RTEis4M0uXiF/fG X-Google-Smtp-Source: APXvYqxJAvKWLEUdXNXK/n5wUUb0Z/IvjW7dQ5tX3UGwwoPgeetL0i4SF59+GSpGKfSrE0FEwqPaFYl/U9X6HIMR+G4= X-Received: by 2002:a2e:8016:: with SMTP id j22mr7204762ljg.24.1581509854304; Wed, 12 Feb 2020 04:17:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andreas Nilsson Date: Wed, 12 Feb 2020 13:17:23 +0100 Message-ID: Subject: Re: hwpstate_intel hangs kernel To: cem@freebsd.org Cc: "Andrey V. Elsukov" , Current FreeBSD X-Rspamd-Queue-Id: 48Hdv52hKXz4KVw X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2020 12:17:37 -0000 Hello Conrad, thanks for the information and for contributing the driver in the first place! I'll stick with the hint for now. Best regards Andreas On Tue, Feb 11, 2020 at 9:05 PM Conrad Meyer wrote: > Hi Andreas, > > No, nothing new on this front. I don't have any of this hardware nor > do I work for Intel, and nothing I see in the code or published spec > would result in hangs. I don't have more cycles to spend on this > driver. So I suggest using 'hint.hwpstate_intel.0.disabled=3D"1"' as a > workaround indefinitely. > > On a private email with Andrey I discussed making disabled=3D"1" the > default, and allowing users to opt in with disabled=3D"0" (or perhaps > enabled=3D"1", for fewer double negatives). It's not especially > satisfying, but would prevent this class of unknown issue with > hwpstate_intel(4). > > Best, > Conrad > > On Tue, Feb 11, 2020 at 11:49 AM Andreas Nilsson > wrote: > > > > Hello, > > > > any new leads on this? As of what is in git on 2020-02-05, my computer > still hangs on kernel boot on "hwpstate_intel0: on cp= u0" > > > > I guess it would have been easier to debug a panic. Setting > debug.hwpstate_verbose=3D1 doesn't really give any difference in output. > > > > Best regards > > Andreas > > > > On Wed, Feb 5, 2020 at 2:45 PM Andreas Nilsson > wrote: > >> > >> Hello, > >> > >> I upgraded to a newer version, git 87d669d3863-c266265, and I do not > experience the random hang anymore. The machine still hangs on boot on > "hwpstate_intel0: on cpu0" unless I set > 'hint.hwpstate_intel.0.disabled=3D"1"' in loader.conf. > >> > >> On a side note I cannot set or unset that hint from loader prompt; > >> > >> ok> set hint.hwpstate_intel.0.disabled=3D"0" > >> ok> show > >> .... > >> hint.hwpstate=3D > >> ... > >> > >> Best regards > >> Andreas > >> > >> On Sat, Feb 1, 2020 at 11:26 PM Andreas Nilsson > wrote: > >>> > >>> Hello Conrad, > >>> > >>> thank you Andrey for bisecting! I'll try with that hint and see how i= t > works for me. > >>> > >>> Best regards > >>> Andreas > >>> > >>> On Sat, Feb 1, 2020, 18:18 Conrad Meyer wrote: > >>>> > >>>> Hi Andrey, > >>>> > >>>> Please try 'hint.hwpstate_intel.0.disabled=3D"1"' as a workaround fo= r > now. > >>>> > >>>> I think I have identified at least one problematic piece of code, > >>>> although I don't know if it's the root cause. I will go ahead and f= ix > >>>> that, which may not fix the hang, and also add some debug printfs th= at > >>>> can be enabled to help identify the real issue. > >>>> > >>>> Thanks for the report and bisect. > >>>> > >>>> Best, > >>>> Conrad > >>>> > >>>> On Sat, Feb 1, 2020 at 6:06 AM Andrey V. Elsukov > wrote: > >>>> > > >>>> > 31.01.2020 18:11, Andrey V. Elsukov =D0=BF=D0=B8=D1=88=D0=B5=D1=82= : > >>>> > > On 24.01.2020 19:52, Andreas Nilsson wrote: > >>>> > >> It hangs during kernel boot and the last message printed on > console is: > >>>> > >> hwpstate_intel0: on cpu0 > >>>> > > > >>>> > > Hi, > >>>> > > > >>>> > > Did you find the cause of this hang? > >>>> > > I also tried to update today from r350816 to r357330. But my > Lenovo X1 > >>>> > > Carbon 4th hangs on the same message. > >>>> > > > >>>> > > >>>> > Hi, > >>>> > > >>>> > I have bisected the bad commit, it is r357002. > >>>> > > >>>> > -- > >>>> > WBR, Andrey V. Elsukov > >>>> > >