From owner-freebsd-current@freebsd.org Wed Feb 5 13:53:12 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 BCB2124B677 for ; Wed, 5 Feb 2020 13:53:12 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 48CNLb732Bz4ZPC; Wed, 5 Feb 2020 13:53:11 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: by mail-lj1-x235.google.com with SMTP id f25so2352517ljg.12; Wed, 05 Feb 2020 05:53:11 -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=m/TcOp2FPiCy6zv/SEvRnvux35J7dUiiQHwP+9kTpg4=; b=R6IMXyveVTe0GVrejdlq021Y5VAKdpF2qhGGtNFdM4kTXlTb0FYiq9Q/uA1jMt1WOR mzH8pkkaVW8UTmpSg9v76rKt+pOaI3qwuZ+HX+jHYooMYGgqtooxvP4dl/rJFWLoj/24 uAfTMEhZ7I67uEfcNtXWlnXBMnkcWaZj+G3YqHWSFhKQbZk79dbTep+P8seV7zGUv6ss CfIGmIQAXDJmNeKl1qMPO1+Ap0hVuEELEgzr2GlTkPhK9912IBhO/nf0853kwmEsfZ2h 1h5kMRyL3O7lOrxhzHJYxaG6zm1RgfdflmxF+24WHk/GhVYcHgb6U4m0ZQguqZawwjw/ us2w== 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=m/TcOp2FPiCy6zv/SEvRnvux35J7dUiiQHwP+9kTpg4=; b=DhC5qtj243WTHNmnItl56Q7HIUecr4WZvRQJQBW87GLERLH7FjxSA/9LvstPD5/NCi Dp1AvsElb85fL5IT8IoCQ9SnpCkDSC/NvUL8mQ1T9hhG6/Z4qMhyq6JnLp033rzVCrKO 3oBwyammwNPJTT3GWx2/rksgv2jogdX+aNdWGQQUrGZO2z5D3suxCtQV8ECpGIe8fUIa r4AVMFcf1Pevxyv5uGnP+YopFEEud+MRsFfH5vXPXTh9MBXNwAFkySemVOBzYC9pWPJq of2Y48PxVbkQJdtPt+6fZvEdI9TTRHk7j0Df+FBxoMFMXwsxxHtErQYBYAhfmmjMNGSh rCHg== X-Gm-Message-State: APjAAAVezWgrASQ5TYyiFUjk9VKrWoVuTL5OpHmQuh5wZtOKdcC4QsaJ 7fJSJuYEuahrb8CHf61hXGh71c+/nDdAKyojUfvl2TKRKvc= X-Google-Smtp-Source: APXvYqwnIqUMqfMJHa8DrmUp//8NRok0le05eUPpUcO6mwMYysEMpIknb8rzRMvHZkrAZ+BF90QLMR475c4UHrwh1ek= X-Received: by 2002:a2e:8016:: with SMTP id j22mr19512883ljg.24.1580910789854; Wed, 05 Feb 2020 05:53:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andreas Nilsson Date: Wed, 5 Feb 2020 14:45:50 +0100 Message-ID: Subject: Re: hwpstate_intel hangs kernel To: cem@freebsd.org Cc: "Andrey V. Elsukov" , Current FreeBSD X-Rspamd-Queue-Id: 48CNLb732Bz4ZPC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=R6IMXyve; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of andrnils@gmail.com designates 2a00:1450:4864:20::235 as permitted sender) smtp.mailfrom=andrnils@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (-9.40), ipnet: 2a00:1450::/32(-2.49), asn: 15169(-1.74), country: US(-0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[5.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_CC(0.00)[yandex.ru]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] 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, 05 Feb 2020 13:53:12 -0000 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 it > 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 for no= w. >> >> 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 fix >> that, which may not fix the hang, and also add some debug printfs that >> 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 >> > >> >