From patchwork Tue Oct 15 03:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1176748 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46sgc76crQz9sPF for ; Tue, 15 Oct 2019 14:18:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eaF9Qk1D"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46sgc74v49zDqyf for ; Tue, 15 Oct 2019 14:18:15 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::541; helo=mail-pg1-x541.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eaF9Qk1D"; dkim-atps=neutral Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46sgTp0F16zDqgC for ; Tue, 15 Oct 2019 14:12:46 +1100 (AEDT) Received: by mail-pg1-x541.google.com with SMTP id e15so3201845pgu.13 for ; Mon, 14 Oct 2019 20:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J1b64ZrCVYYN5IQciwy3T4P+u5Vo5knQOQcgykjqJBs=; b=eaF9Qk1D35lszq0m+5hAr14A+kInszvkGIevZyPrkEnTn82oIUzETPJN2IFwBDSG1U k5urKs7BkYjThXh0pxQCSATsysCbjE50/ysq19ARpLH8GEAuSQu/Pb3xlyZw8dbASPW4 MglJ6JDvE++QnWNXazmuQDm3JR7nv2MIx5eRCrRajNpZ7JfyilNheLT5Brl/T6C3SjWH CdzL9GYUszA/BuBywY73i7KXYtxUzMdCisWFa7PUg/FvEndVGCozgHTEkn1Y4/sCHNit GVAlJj24b3KjvPKfXKOUXSJv9qf9FPOn68+bHCv5L6fZCwgDNW1wpVOXPjPKbwje+Etg AmIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J1b64ZrCVYYN5IQciwy3T4P+u5Vo5knQOQcgykjqJBs=; b=X+CBUcKDmalhvydmk8Rvvzj+Fs4dLC6vdyIxIKX2qDjiXqgM/0gfOoxzCvA7rTPAmf mnV6fwpXBdubvhZfggKj+k/3PA0UPKOHEF6Z4vaTXKd6n+3JpZd+5R2yw5u3TomlEoNr YXJmGkIFj/r5VItZN00AgSDHwZfV3TFIht+cUdUU5hr9Bs9BomMAQuVvSEheb696H9HP 0kFB5AD5MV/xzupDzQejdzZ7dphNR9GPJpXS2ucijO7oYQsVgDowQH5r2xwRPvqU5LgN XAimsXCzkWwcr6jvxxY6uHI5bN4Op09UMaU/3Q7mLi/U17shBI9Vtzs5/GEtvC5eY2qF +Glw== X-Gm-Message-State: APjAAAWgfYUU5S6MgeHYXYg4sECPFn1OMXW4eFdmha4XSxkF1fmZjCkS 1E2xF50KBU88vRBhvRnPMMcQcpx43HQ= X-Google-Smtp-Source: APXvYqx3ayyqlCy9rtX1MF5YNJY7VhmCOWgP56sqTVDYb3IYATNk3S3kjh4tMsVLBbV9l2eHJNm/uQ== X-Received: by 2002:a63:5516:: with SMTP id j22mr35705598pgb.201.1571109163790; Mon, 14 Oct 2019 20:12:43 -0700 (PDT) Received: from bobo.local0.net (60-240-111-58.tpgi.com.au. [60.240.111.58]) by smtp.gmail.com with ESMTPSA id w6sm23089828pfw.84.2019.10.14.20.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 20:12:43 -0700 (PDT) From: Nicholas Piggin To: skiboot@lists.ozlabs.org Date: Tue, 15 Oct 2019 13:07:07 +1000 Message-Id: <20191015030717.15637-18-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191015030717.15637-1-npiggin@gmail.com> References: <20191015030717.15637-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Skiboot] [PATCH v5 17/27] ipmi: endian conversion X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Signed-off-by: Nicholas Piggin --- hw/ipmi/ipmi-sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c index 794aa3801..a774fb401 100644 --- a/hw/ipmi/ipmi-sel.c +++ b/hw/ipmi/ipmi-sel.c @@ -192,7 +192,7 @@ static void ipmi_init_esel_record(void) { memset(&sel_record, 0, sizeof(struct sel_record)); sel_record.record_type = SEL_REC_TYPE_AMI_ESEL; - sel_record.generator_id = SEL_GENERATOR_ID_AMI; + sel_record.generator_id = cpu_to_le16(SEL_GENERATOR_ID_AMI); sel_record.evm_ver = SEL_EVM_VER_2; sel_record.sensor_type = SENSOR_TYPE_SYS_EVENT; sel_record.sensor_number =