From nobody Wed Aug 09 03:43:34 2023 X-Original-To: bugs@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 4RLG9z1Sdgz4m4vp for ; Wed, 9 Aug 2023 03:43:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLG9y4Yclz3Y2g for ; Wed, 9 Aug 2023 03:43:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691552614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q10H1zNi5KLf/b51Ir1PAkJ3RuScISJh/QKxq7eaCeA=; b=XZoK3HvI+M0iGe7ACglUP6WTfhpOSFUEVlTHqAZXJHOMOUuqI3r869096kL6aq6BAMrZJb heOczKY8cXhite7W2OtMEhDbvuG6V+chx6Il6/t1NkaSE5+qjCG1ycRq0sHowV25lTlO5A lpbtpMdke2X9Ol3xXzQYFn+19pFGd45B7jSUICBRuVlD00W0I9fUX7k9qMchwMVlyyz8/4 o5MF9fsw1W0O/BLDB4+k1z4IraQwMvrC06zYbGd1MsjNmbXcWG4aZvN11oDzqTunGFmdBy EGBAVhg2zrjQ40oDqSpUymx+8Qqn14LrHsV7FUEumgy9s5dKhWYGDz0L/9vXwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691552614; a=rsa-sha256; cv=none; b=qkc1CC5vbfs6To0oxtvGdFoz23oeWN/t3JGkSmSIke/KCNhzimzOsiFaLMxKe/9mZQDwc9 UINV5jTo89r5VkNpSuu/galqpfkohJbNPSMeDxCodeAs26VBde9os7SXhJPOWWv3nHAlpf 6lBKRdB9W0BoAXV9Q3HJuX4L6GeBZNAYEqVbf58IOuKvRgIG32tLljeYn1HQtYvtL8eLIx PIYtM+ZM1O8sdHNJcdKx9QBVg/ErLFENvsHtaeCOYrKcvB028UhKA9iQXtdfKQS7pb1Kmt pTi92GuSumJveilUL43VFw4K1IucLi1LL9Pr51WPYJG8PaRUSQNl/XUruRJq8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RLG9y3dkgz10qS for ; Wed, 9 Aug 2023 03:43:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3793hYeC073517 for ; Wed, 9 Aug 2023 03:43:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3793hYGd073515 for bugs@FreeBSD.org; Wed, 9 Aug 2023 03:43:34 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 273022] MSI/MSI-X assignment fails if APIC ID > 255 Date: Wed, 09 Aug 2023 03:43:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273022 Bug ID: 273022 Summary: MSI/MSI-X assignment fails if APIC ID > 255 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org APIC address is calculated as: #define INTEL_ADDR(msi) \ (MSI_INTEL_ADDR_BASE | (msi)->msi_cpu << 12 | \ MSI_INTEL_ADDR_RH_OFF | MSI_INTEL_ADDR_DM_PHYSICAL) See Intel SDM 11.11.1 Message Address Register Format bits 19-12 are: Destination ID =E2=80=94 This field contains an 8-bit destination ID. It id= entifies the message=E2=80=99s target processor(s). The destination ID corresponds to bits 63:56 of the I/O APIC Redirection Ta= ble Entry if the IOAPIC is used to dispatch the interrupt to the processor(s). if msi_cpu > 255 then (msi)->msi_cpu << 12 will overflow into bits 31-20 wh= ich need to contain 0xfee --=20 You are receiving this mail because: You are the assignee for the bug.=