From nobody Wed Sep 06 14:16:28 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rgkw65d2Cz4srsD for ; Wed, 6 Sep 2023 14:17:10 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from outgoing-exchange-1.mit.edu (outgoing-exchange-1.mit.edu [18.9.28.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.outgoing-exchange.mit.edu", Issuer "InCommon RSA Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rgkw561Fzz4H15 for ; Wed, 6 Sep 2023 14:17:09 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mit.edu header.s=outgoing header.b=EsHKcguD; spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 18.9.28.15 as permitted sender) smtp.mailfrom=jfc@mit.edu; dmarc=pass (policy=none) header.from=mit.edu Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 386EFU4J020370 for ; Wed, 6 Sep 2023 10:17:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1694009827; bh=L6cPOuNP3OXWlQU0LDm/iHu7kVpy/gcIFrzhc8LWRjs=; h=From:Subject:Date:Message-ID:Content-Type:MIME-Version; b=EsHKcguDlHj/9WYG6r7FwepUILJNiRHlq2LVUcejE1DwwuA/UVHluOLPM3p3vR+x0 EfNzVFP+SaqAtoQ1Rpt84CxWV6bS5Vwi6Aix4T30EVkwjHLUFhPyh5y2MOg/zsCEry CX1WJfMWqWsAtPFzhHuenq3PqcUD4um2DMgrx+bm8oKTg7BPESwu+7xUOSWSI4nhTf l6QNCZ5SKCI2B1ngdVCbggXNo2tUIDSoIdbneduvww1NFQTc7JbUyGfB8ahqn3jwzM DQxJgs9arknflbM5c/1ARVNrZF/WdZrwkaw1ouWwWt8EGKKH7B33+q8fJfFJG4ao7v lU8lwyWInUcjA== Received: from oc11expo21.exchange.mit.edu (18.9.4.52) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 6 Sep 2023 10:15:56 -0400 Received: from oc11exhyb5.exchange.mit.edu (18.9.1.110) by oc11expo21.exchange.mit.edu (18.9.4.52) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 6 Sep 2023 10:16:30 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.173) by oc11exhyb5.exchange.mit.edu (18.9.1.110) with Microsoft SMTP Server (TLS) id 15.0.1497.48 via Frontend Transport; Wed, 6 Sep 2023 10:16:30 -0400 Received: from LV8PR01MB8454.prod.exchangelabs.com (2603:10b6:408:184::18) by PH0PR01MB6357.prod.exchangelabs.com (2603:10b6:510:1a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Wed, 6 Sep 2023 14:16:28 +0000 Received: from LV8PR01MB8454.prod.exchangelabs.com ([fe80::48c4:e0a1:4fd9:5f89]) by LV8PR01MB8454.prod.exchangelabs.com ([fe80::48c4:e0a1:4fd9:5f89%4]) with mapi id 15.20.6745.034; Wed, 6 Sep 2023 14:16:28 +0000 From: "John F Carr" To: freebsd-arm Subject: IPMI driver on Ampere? Thread-Topic: IPMI driver on Ampere? Thread-Index: AQHZ4My5KYLeifW+3UaKq+wDJ0rVDQ== Date: Wed, 6 Sep 2023 14:16:28 +0000 Message-ID: <3209D37E-3DF9-4EA9-A13A-97CA76B3048B@mit.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV8PR01MB8454:EE_|PH0PR01MB6357:EE_ x-ms-office365-filtering-correlation-id: 88c05e34-4e33-4e5b-48fd-08dbaee3dc77 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zf5mnc4URswD1g5VwnzfWW3B+k5vVCepBnn/UccntRDsNFgIC6Q0nqAVgjltVxO3LZFmbZwdLR5S0O+NQguSOTgkP+EzFHYzFKF7MP1/i49dUlwZh2bVaFlcHiJOPRjiib7mzynZuLKVKr6KFJtQqC5c9kkKbrClKTcyUeVv3KryUiaNOTrEFmb9enqpAAQ0WAj50FZiIFO+xVOcmVwPzyIgOndJ/I6Y8tL9alv9PLDRwdcJin55S4uqQGy8zvKW+UiShAN5deM37xUmC1mGHCk8lqcwrJQugq6SkVRPsdmwngJyw76Q0nt0m2MjnnSF5e9Gfv6/zR/yCpgSCMUsN05D7XcKBOYeTkrxblRec7SKYEEmPW0vq8OTPyh1AaVoo4X6tmt+JlKgOahIytaTnx6i6NLUK+o5U6nQEk3VFj5kL83xAkgqEs7nNSGUrygW0RN/8Eu+PWZzLY0QsSp6GV4TBv9ZTGUjwTR7eLPt6gSMJmzgKxn3ej3JoAQ8ba5pYEaGE7sp/lutg8cl+LxvY0uSci6aviMissPKzgb1d7to+1jzWWEFqLDEu8XpBQZo/922oQrog0w9PdX/fQ6vyo3OrTLb4O8Z19XueOkDaXI= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV8PR01MB8454.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(136003)(346002)(376002)(366004)(39860400002)(1800799009)(186009)(451199024)(6512007)(71200400001)(6506007)(6486002)(86362001)(36756003)(75432002)(38070700005)(38100700002)(3480700007)(33656002)(122000001)(2616005)(2906002)(26005)(478600001)(91956017)(316002)(76116006)(8676002)(8936002)(5660300002)(66946007)(6916009)(64756008)(66476007)(786003)(66556008)(41300700001)(66446008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Ae70SShEThV2+XAGNXR7WFWxfgF2qDOaXbphYKGfs7jzUQlAyoPADiUKXzpS?= =?us-ascii?Q?nykzf5cBB3pvthwsitkND9Vf2by78dY2vq6eMsM/j+OfScjmEQ0dytMciGRh?= =?us-ascii?Q?VLIoi3iLuud1UExh20vQT6u2H3M4ni3QKx6Rfuo/dbnDgUeq4GMgu5VXgC1l?= =?us-ascii?Q?/wixlBOl9UPAXcRuV75Uh6GA2MtZ1dkmzY0EJIi0qMJMbkSmJ9FDsj3ejE0z?= =?us-ascii?Q?5s2Ca5ePmuNpjEuFmBUurnwQtH+49Unp5qBqyxa86r9IZU+agfxsurij2S52?= =?us-ascii?Q?T7BqR8Ar0OJFe0we6wuySYdoreVjvOV/I1I9nb/VGqHCMOX4tfXKLujXBtbZ?= =?us-ascii?Q?5UufjVW4Fs34wJU+uJuI/oFaTBXtGeITu72s3v763hXGycsBxB0Fl6tpKcwR?= =?us-ascii?Q?z26nDR6H8mI6EjrG7MaVzfyrktdua0Rc4skm8sVXnNr9RRWF39T8JHL7B3LZ?= =?us-ascii?Q?LWZlsAkAy/UimwbP1v+LTRA51In5/ILKXcUS2fIsyFzYIKCj1IKj5Gut3sSC?= =?us-ascii?Q?0z0iJRrDkTAllEh/W9Xg8vjVAVEVwlnw507nsq1/Viqe0KczBCEGfzS1aNOe?= =?us-ascii?Q?Jge6xgz5V8viE82Dhv72eEZ6aXHCw2xJ6GGmgfhSyLAZF5rgAsQSr1xwj01N?= =?us-ascii?Q?aUWtuv0AwLZ7GCBtX1+cXO+tmM8llSv4AiJas6gGMLWH5UYtghnTfxsnzHMI?= =?us-ascii?Q?mTbEmSecYrsXDUbBoDGz9rrws6lz8GAGKg1fQ+tA8/R77+KJpN33drzntPyW?= =?us-ascii?Q?8PQOMJtGJ4zQ31I5W730aJNQZWC9cl3G/DNRfrtjjR2Uxxf6Klj4s99Argsc?= =?us-ascii?Q?c7p9ufROeIUyj41N+ncokPgb5sbifKwa/RXomI1guNdDOVZ5o9Ylkv5tmMn3?= =?us-ascii?Q?5lz+SjOWGy/Hm5dvOHv4QSmyIaakNptZqXrzZhYU1FkrC7C7yPFHg8+IsNYp?= =?us-ascii?Q?rmGL06R+LuQVt0+KNQrD9Cj5DhC2LuWw7xSzq8xuGzctxebix6yVcZcfjqk3?= =?us-ascii?Q?3nN4KUJoCGqybtXuppF1ss2/ejBsZA+NgZlRpY63G3iFuPETcrkdKLxikQu+?= =?us-ascii?Q?viPdx/4KW9hIDqx9AfRT30o45Qsg9ykgJb/42VXA2uGAucmim7ZPP89a72ht?= =?us-ascii?Q?2vP67iG6zzrc+MjEf+gXhsTdnVZ3z9sr+bTj8dwIQz/yLCsPgJHNDVeDPG35?= =?us-ascii?Q?YgiiEclypagyqbOIx59fr5zm2RT+7yqTYFHI9tUAHNaSSElYij91FfubkXjc?= =?us-ascii?Q?1kT1U8A2yZ3s7+aP895lIRmjp8ITi47bOjoRKwW++Nzp818Ul9F4B1P4OPec?= =?us-ascii?Q?kLFIPsjzBntJ6J2p562I4iScEqDtMXQFkLvIasWGA8zgtGkp26/y08L6z/qz?= =?us-ascii?Q?Sj8e6I/4B+xlQyPwJ+D5b8vIt3ZsVRFqWu3ypJT2FteGWpPY4XIDKfZh7aGz?= =?us-ascii?Q?wjV7MAuaUVN+LXMw96zwO69Xc9WKUhma87vPHXDlM3/3yNMkFzKUSSjZD5iq?= =?us-ascii?Q?Qyc+IaR83Jncit9mEEuPqyH2hMnyjDAHv7StihJ5KLR4dy1Ya/oDmIvu2AEl?= =?us-ascii?Q?NBQjWCiLSk1u5jtjo0Y=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <58699FE0C7FF77439E1FD9AA3D1FEA36@prod.exchangelabs.com> Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV8PR01MB8454.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88c05e34-4e33-4e5b-48fd-08dbaee3dc77 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2023 14:16:28.2170 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YlCjyWdr4cSpWcL+q9xFclih3LTRw0N6YNnTLiuIUuESiGJzaH0pgO7H4k4VX/5x X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR01MB6357 X-OriginatorOrg: mit.edu X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.80 / 15.00]; DWL_DNSWL_LOW(-1.00)[mit.edu:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[mit.edu,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_DKIM_ALLOW(-0.20)[mit.edu:s=outgoing]; R_SPF_ALLOW(-0.20)[+ip4:18.9.28.0/24]; RCVD_IN_DNSWL_MED(-0.20)[18.9.28.15:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[18.7.73.15:received]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[mit.edu:+]; FROM_EQ_ENVFROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[18.9.1.110:received,104.47.57.173:received]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; ASN(0.00)[asn:3, ipnet:18.9.0.0/16, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4Rgkw561Fzz4H15 My Ampere server has the usual ASPEED server management chip but the IPMI kernel module does not load. Does anybody know what is required to get it = working? The ACPI part of the driver, ipmi_acpi.c, looks for an ACPI device named "I= PI0001". If I run acpidump -dt I find one of those, but the kernel doesn't find it. The PCI part of the driver, ipmi_pci.c, looks for the vendor:device pair 10= 28:000d. I do not have that. I have 1a03:1150 (ASPEED PCI-PCI bridge) and 1a03:2000 (ASPEED VGA). Here is the relevant fragment of acpidump -dt from my Ampere eMAG: Device (I2C4) { Name (_HID, "APMC0D0F") // _HID: Hardware ID Name (_UID, 0x04) // _UID: Unique ID Name (_STR, Unicode ("eMAG I2C Device")) // _STR: Description = String Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0F) } Name (_CCA, One) // _CCA: Cache Coherency Attribute Name (_CRS, ResourceTemplate () // _CRS: Current Resource Sett= ings { Memory32Fixed (ReadWrite, 0x126B0000, // Address Base 0x00001000, // Address Length ) Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, = ,, ) { 0x00000069, } }) Device (IPI) { Name (_HID, "APMC0D8A") // _HID: Hardware ID Name (_CID, "IPI0001") // _CID: Compatible ID Name (_STR, Unicode ("IPMI_SSIF")) // _STR: Description St= ring Name (_UID, Zero) // _UID: Unique ID Name (_CCA, One) // _CCA: Cache Coherency Attribute Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0F) } Method (_IFT, 0, NotSerialized) // _IFT: IPMI Interface Ty= pe { Return (0x04) } Method (_ADR, 0, NotSerialized) // _ADR: Address { Return (0x10) } Method (_SRV, 0, NotSerialized) // _SRV: IPMI Spec Revisio= n { Return (0x0200) } Name (_CRS, ResourceTemplate () // _CRS: Current Resource = Settings { I2cSerialBusV2 (0x0010, ControllerInitiated, 0x00061A80= , AddressingMode7Bit, "\\_SB.I2C4", 0x00, ResourceConsumer, , Exclusive, ) }) } [...] } Here is the fragment from an HPE amd64 server where the driver works: Device (LPC0) { Name (_ADR, 0x00140003) // _ADR: Address OperationRegion (PMIO, SystemIO, 0x0CD6, 0x02) [...] Device (KCS) { Name (_HID, EisaId ("IPI0001")) // _HID: Hardware ID Name (_STR, Unicode ("IPMI_KCS")) // _STR: Description= String Name (_UID, 0x00) // _UID: Unique ID Name (_CRS, ResourceTemplate () // _CRS: Current Resou= rce Settings { IO (Decode16, 0x0CA2, // Range Minimum 0x0CA2, // Range Maximum 0x00, // Alignment 0x02, // Length ) }) Method (_IFT, 0, NotSerialized) // _IFT: IPMI Interfac= e Type { Return (0x01) } Method (_SRV, 0, NotSerialized) // _SRV: IPMI Spec Rev= ision { Return (0x0200) } } } The obvious difference is the HPE system uses old-fashioned I/O ports and t= he Ampere system uses I2C. The parent I2C bus is recognized: ig4iic0: iomem 0x126b0000-0x126b0fff irq 0 on a= cpi0 iicbus0: on ig4iic0 iicbus0: at addr 0x10 iic0: on iicbus0