Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp33320pxh; Thu, 7 Apr 2022 13:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJwHEtKSNzcaOhZt2NZFsfloeYGXzDxIUWiiLq8/lTokWmB6iYbMtuWe4m7AADYBcUZdbl X-Received: by 2002:a17:90b:3143:b0:1c7:5cee:3948 with SMTP id ip3-20020a17090b314300b001c75cee3948mr17622341pjb.140.1649362045918; Thu, 07 Apr 2022 13:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649362045; cv=none; d=google.com; s=arc-20160816; b=dkUTAJEl7mv4PKG/weOU//0yurko1yLlsURIIDFVX82ra8jJ5LwMfNw2RoePa46h2r 7SYO+JZS+aD3UwUCiDqEH+cCmTfD8lakzGotA+OimPJ7KfiOikBtxoDkDw1UMzv8/fBV QQqIox4mzAtQOUSoRkhc3Zulubmu0p/Ip55gRgiEXTx1LrFkdCXz0vQkkfwlXZmYdmCq Ga3eFq5nhPquafo0pqV33oEZ/Ckza7wVnexVztznPqSqqCDS3HwM6Pk9DnqJD9IZn+Df cRfRucFP0jrU/f17MaBAJCkMuLJ/Eo8n5Q7ygmoFgi55u7MJBqTWnL6F3+sN/1TCPToc nG+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=1gZ4m2zNzDyVcoPXjOKdtQUGnrDRHFfhbm516qp77oQ=; b=JBNy8TEcLndoGsfbPgPAiP0OpfDLE1gDr+pPjSjYEyGejcEm+2PoySVUjSF4IcjwYY UmF/WNJ+yeopx48N9yS63JavajP/L/SMphv262YvUlDiX/LTB9Fb9kF1hOk7ltqjxNJ+ RCFwy9yQhUtDHyEWgr9IbV2BIe6+kSDd66LvnyI57aWXWo5KFBxB1y5+78TaUlr4nrkD UoCd5uzjI2a3tMTvoNY5ptLF6j9fLXzNpCj5KJ1MRaH6sTzbl67hFm35hQCRDJdKp7jO TlagnHbqe3tk3Q0PLq/NEoUYl6B7P92OfuXjAfyurFpnuxYW68RhyEC5xTzLqnjJlHMC mnCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3Q0XR3s+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="hubg/0pl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q19-20020a170902b11300b00156fdfa2003si507878plr.473.2022.04.07.13.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:07:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3Q0XR3s+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="hubg/0pl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25A542AA86D; Thu, 7 Apr 2022 12:30:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242980AbiDGN0a (ORCPT + 99 others); Thu, 7 Apr 2022 09:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242932AbiDGN02 (ORCPT ); Thu, 7 Apr 2022 09:26:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C36AE7E0AD; Thu, 7 Apr 2022 06:24:26 -0700 (PDT) Date: Thu, 07 Apr 2022 13:24:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649337864; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1gZ4m2zNzDyVcoPXjOKdtQUGnrDRHFfhbm516qp77oQ=; b=3Q0XR3s+3mjWH+hP3ZbXv7r7BKi6PkFiPhgUWN9qPZOT3egzzVOJzHWuQLbVeS/kggWKeo kEoUDKdX/tsOPzkFmHALBVUaBfHNlJO3MgAtJsXGuEzSshsOfFKaW1YGE8f/0Tw/Dq4TAh 7F9SMnfq8j++MTgWi5/odSqPkr0Pk0ayCJMzlIzb5Pl8E7lQuvorw18iym/deTTNxD9ADQ uU3O9B+3z2Q3vFFgsvCA1xZHLHznHsNq0veblNl1BZRhflndTgPWlyoNquM9GpcuTFY5Nm pwrDE0O6CEJk4czSGmF8LVprcWQJAWGlhpEuWTOo21gVlao7cJ97BW8Q6dfl7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649337864; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1gZ4m2zNzDyVcoPXjOKdtQUGnrDRHFfhbm516qp77oQ=; b=hubg/0plHzphf01UH/D3BKoOoGNGAT3LC+Pdo4FJ/rXCLSUpeGBy7dv9CyAYOd/qVFd+/t XtD/TBGQv71jVsAw== From: "tip-bot2 for Reto Buerki" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/msi: Fix msi message data shadow struct Cc: "Adrian-Ken Rueegsegger" , Reto Buerki , Thomas Gleixner , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220407110647.67372-1-reet@codelabs.ch> References: <20220407110647.67372-1-reet@codelabs.ch> MIME-Version: 1.0 Message-ID: <164933786279.389.13684586731676061391.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 59b18a1e65b7a2134814106d0860010e10babe18 Gitweb: https://git.kernel.org/tip/59b18a1e65b7a2134814106d0860010e10babe18 Author: Reto Buerki AuthorDate: Thu, 07 Apr 2022 13:06:47 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 07 Apr 2022 15:19:32 +02:00 x86/msi: Fix msi message data shadow struct The x86 MSI message data is 32 bits in total and is either in compatibility or remappable format, see Intel Virtualization Technology for Directed I/O, section 5.1.2. Fixes: 6285aa50736 ("x86/msi: Provide msi message shadow structs") Co-developed-by: Adrian-Ken Rueegsegger Signed-off-by: Adrian-Ken Rueegsegger Signed-off-by: Reto Buerki Signed-off-by: Thomas Gleixner Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220407110647.67372-1-reet@codelabs.ch --- arch/x86/include/asm/msi.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/msi.h b/arch/x86/include/asm/msi.h index b85147d..d71c7e8 100644 --- a/arch/x86/include/asm/msi.h +++ b/arch/x86/include/asm/msi.h @@ -12,14 +12,17 @@ int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec, /* Structs and defines for the X86 specific MSI message format */ typedef struct x86_msi_data { - u32 vector : 8, - delivery_mode : 3, - dest_mode_logical : 1, - reserved : 2, - active_low : 1, - is_level : 1; - - u32 dmar_subhandle; + union { + struct { + u32 vector : 8, + delivery_mode : 3, + dest_mode_logical : 1, + reserved : 2, + active_low : 1, + is_level : 1; + }; + u32 dmar_subhandle; + }; } __attribute__ ((packed)) arch_msi_msg_data_t; #define arch_msi_msg_data x86_msi_data