From owner-freebsd-bugs@freebsd.org Sat Aug 19 09:32:06 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C496CDDD38C for ; Sat, 19 Aug 2017 09:32:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2FB46D35C for ; Sat, 19 Aug 2017 09:32:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7J9W6Dp034584 for ; Sat, 19 Aug 2017 09:32:06 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 219213] powerd causing problems with ryzen Date: Sat, 19 Aug 2017 09:32:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mailsed@yahoo.co.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Aug 2017 09:32:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219213 mailsed@yahoo.co.jp changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mailsed@yahoo.co.jp --- Comment #6 from mailsed@yahoo.co.jp --- Created attachment 185570 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185570&action= =3Dedit x86/cpufreq/hwpstate.c patch for powerd++ (not tested) Hi, I think Ryzen has so many cores that the frequency to change must be variou= s. But, x86/cpufreq/hwpstate.c is written as a module that changes only one frequency for ALL cores such like "sysctl dev.cpu.0.freq=3DXXXX". So the sysctl nodes from dev.cpu.1.freq to dev.cpu.15.freq, when it has 16 = CPU threads, are not be generated and estimated as the same as dev.cpu.0.freq. So, I made this patch (removed some of the lines of hwpstate.c). This patch will generate the nodes from dev.cpu.1.freq to dev.cpu.15.freq, if it has 16 CPU's for example, and you can set each CPU's frequency as different from another. I think powerd++(sysutils/powerdxx) is requiring such situation that setting each CPU's frequency as possibly different frequencies from others. Though I didn't tested, I don't have Ryzen, but It will be compiled. I think this patch is not enough. Because 8 core 16 thread is a problem, If= the same core but different thread and frequency, what will be occurred? so, the cpufreq of different thread but same core, will be treated in kern_cpu.c. But I'm not sure what to do, sorry for that. Disabling the SMT = in BIOS is one workaround. I hope so. --=20 You are receiving this mail because: You are the assignee for the bug.=