From owner-freebsd-bugs@freebsd.org Sun Jan 6 19:18:17 2019 Return-Path: Delivered-To: freebsd-bugs@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 D52A71498042 for ; Sun, 6 Jan 2019 19:18:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 556338B170 for ; Sun, 6 Jan 2019 19:18:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 15387149803E; Sun, 6 Jan 2019 19:18:16 +0000 (UTC) Delivered-To: bugs@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 E3E82149803D for ; Sun, 6 Jan 2019 19:18:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F2B08B16D for ; Sun, 6 Jan 2019 19:18:15 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id BAA96BA91 for ; Sun, 6 Jan 2019 19:18:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x06JIE6x010837 for ; Sun, 6 Jan 2019 19:18:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x06JIE2o010836 for bugs@FreeBSD.org; Sun, 6 Jan 2019 19:18:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234657] AMD Opteron X3000 series CPU temperature sensor support Date: Sun, 06 Jan 2019 19:18:14 +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: CURRENT X-Bugzilla-Keywords: feature, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: cem@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status version assigned_to cc 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 19:18:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234657 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress Version|11.2-STABLE |CURRENT Assignee|bugs@FreeBSD.org |cem@freebsd.org CC|cem@freebsd.org | --- Comment #1 from Conrad Meyer --- I think I understand where the device=3D0x1573 guess is coming from. Famil= y 15h Model 60h BKDG documents 0x1573 as the deviceid for PCI D18F3. On the earl= ier Model *00h*, which we currently support, the PCI D18F3 device register 0xa4= is the Reported Temperature. However, on Model *60h*, Reported Temperature lives in a different register, "D0F0xBC_xD820_0CA4" (page 238 of the relevant BKDG below). So I suspect 0x1573 is wrong. https://www.amd.com/system/files/TechDocs/50742_15h_Models_60h-6Fh_BKDG.pdf D0F0 (PCI Root complex) on 60h has the vendor:device id 0x1022:0x1576. It seems like Family 15h Model 60h also requires indirect SMU / SMN access = (p. 233), like on Family 17h: > D0F0xB8 SMU Index Address > The index/data pair registers, D0F0xB8 and D0F0xBC, are used to access th= e registers at > D0F0xBC_x[FFFF_FFFF:0000_0000]. To access any of these registers, the add= ress is first written into the > index register, D0F0xB8, and then the data is read from or written to the= data register, D0F0xBC. 0xB8 is the 32-bit register NbSmuIndAddr. 0xBC is the 32-bit register NbSmuIndData. So we must indirectly access the index "0xD820_0CA4" to read the temperatur= e on 15h, model 60h. I'm going to do a quick spot check of other 15h BKDGs to see what other mod= els specify. --=20 You are receiving this mail because: You are the assignee for the bug.=