Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp229466rdd; Wed, 22 Nov 2023 14:18:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFit5km1Fiis2E5Ls5BRCKVwA+F3h9bbYb9qepf/WI6ji1zooVNio6fHWoJ4Ygh4sJNfZwT X-Received: by 2002:a17:90b:350c:b0:281:b68:98ef with SMTP id ls12-20020a17090b350c00b002810b6898efmr3986507pjb.18.1700691501138; Wed, 22 Nov 2023 14:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700691501; cv=none; d=google.com; s=arc-20160816; b=c9q/roLKP6/H4oG7Gcocqsw8iPFnyXohOn66fnFR3MXX+M2BcypZQc1FUaY3zzthEa I2QVH0FJhf6Jzbr/T1mY/Jw5uII2p2thsEJXnb2aFPBvtNmtHQR2TuC1IE2ONj7pRaEw CCcDuIh870W9nfTR4UaEyN1I4MKwZ/9RLhtVKxfOFGiu5hK2LmanX0EmDhB0q9c8Kmpg JjzfTdWfmZ24iyCoktC8bVPAPfrC6/wK6uAuOGKDE1aPNKvexa/KsSEU/iUzXogXGqxC 9KtvntcPIzBmmacYiPQ/wFwks/5We4g03EeY1NRozIDtlAJDYrhi5SLKKSFKgvrwhEkK dNew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=4w9WGlpV+oKNURgCWJmbzMqmytRuxi/IH9HmVAy3vpk=; fh=Np6PftENKhvX2DmSCNWn2TsxKeCZNBk/SeAao4Dorgg=; b=b0hsaZdDEKltzJGV9G2U1gmBU2KNgujPGKm+UiuEiDmGuPvjuPgn31pz3bGV9sr6nm 3dmr5z+CmQoFaTogl/dowfpl3b9puEjG6qeRzEJlYd2Fs7OzQdQ7+CSUOtSXu5CtEIHO uWrz0ElSA/MCcxxxDl/DMnp+eHLcDn92dTVHmGVHFnw6SAVPdtnn5jvvFYrWcMXKJ+t3 pX8kEBHZzQ57UxvZL9rpkYu/wTWbB5Qm+ncQfjNJwq5aomuqom9fqkehOXELICd1kooL Xgdgggd0miH+FKCIfDQOIeQaEsh33ZzUNV6/I+PZ9OpBK7amLtpb1YmeyEKuJQOF9Tus NXqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4hjMcBVL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h3-20020a17090a130300b002806cdeecc6si480716pja.35.2023.11.22.14.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:18:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4hjMcBVL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 332C083784AC; Wed, 22 Nov 2023 14:18:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344624AbjKVWSB (ORCPT + 99 others); Wed, 22 Nov 2023 17:18:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233574AbjKVWSA (ORCPT ); Wed, 22 Nov 2023 17:18:00 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADA71B5 for ; Wed, 22 Nov 2023 14:17:54 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-db401df7735so359413276.3 for ; Wed, 22 Nov 2023 14:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1700691474; x=1701296274; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=4w9WGlpV+oKNURgCWJmbzMqmytRuxi/IH9HmVAy3vpk=; b=4hjMcBVLM8zQ0o7ckWNrtY5BsbegukXIEDCvOawcAjUnR1XZjDCORBx8DRNRNpcLGJ rOYRo1YK1VQ2y0xyZgScQZyb9rLYqzZOdgDtDkghSXkXdkKxJ1HtozUHmVoQlTxztPqK kfOhbHSin5lmjeY12WuVf3III/SL6gBe6BSXI/YQ3KWRvnMIzEozhG1LYLLMFfbbv0Jq ECkYybq5VMDleTKLyzIh94t5LKbB+K2jpi6OvcJJJrWqJhj5bT4OCTe2UNqnJgtJGYUO 7Jc+PqUsyTYlSgXIsMOQgTwV6uQKHFkFZagr5e5Tj13O5S9UO71JOWXdU+tIYBbkJVpA bzZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700691474; x=1701296274; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4w9WGlpV+oKNURgCWJmbzMqmytRuxi/IH9HmVAy3vpk=; b=tx2gfQ48maydJ7ILIV13LvF0AQTDP5G1csEKzOI2uqGIVS47Qx9LuE/hZalnLvO2hG UsMrX1y15jz5raNdWMjbG1QmiL9o7cdR9DCND8gsaQFlSMaqMO6IUk/JObDhoy8iukha Ot3H6iJN3Y9cZiUY2P1sYxsHhU95ulYDYRrN/FiIXznex7WsBieNWK3I8r8KV+51WXTY rebf5whL/4bWvupyIAuby4iQpVaGf/TOuovdQ+nMLwtAp+TKif95LJDqRb2kzaNgmEnG BnhRKWaIEvCFDAUxwE3WmxzOrdyFebAiCiw0scdorEIvQrwU/B+6ZYiGWD+shFy/Xw8f E5UQ== X-Gm-Message-State: AOJu0YxBjKBKA708c9/J0vgVgzJHw0by237gg5C3fUr3lbe3ZoMCPnMv oP+xA6WAfo+UMwdLwikXZRVP1dQgQWPfO54= X-Received: from jsperbeck7.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:26dc]) (user=jsperbeck job=sendgmr) by 2002:a25:d844:0:b0:dae:292e:68de with SMTP id p65-20020a25d844000000b00dae292e68demr106468ybg.6.1700691474042; Wed, 22 Nov 2023 14:17:54 -0800 (PST) Date: Wed, 22 Nov 2023 22:17:52 +0000 In-Reply-To: <169953729188.3135.6804572126118798018.tip-bot2@tip-bot2> Mime-Version: 1.0 References: <169953729188.3135.6804572126118798018.tip-bot2@tip-bot2> X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog Message-ID: <20231122221752.781022-1-jsperbeck@google.com> Subject: [PATCH] platform/x86: intel_telemetry: Fix kernel doc descriptions From: John Sperbeck To: tip-bot2@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, peterz@infradead.org, rui.zhang@intel.com, tglx@linutronix.de, x86@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 14:18:13 -0800 (PST) I have a platform with both LOCAL_APIC and LOCAL_X2APIC entries for each CPU. However, the ids for the LOCAL_APIC entries are all invalid ids of 255, so they have always been skipped in acpi_parse_lapic() by this code from f3bf1dbe64b6 ("x86/acpi: Prevent LAPIC id 0xff from being accounted"): /* Ignore invalid ID */ if (processor->id == 0xff) return 0; With the change in this thread, the return value of 0 means that the 'count' variable in acpi_parse_entries_array() is incremented. The positive return value means that 'has_lapic_cpus' is set, even though no entries were actually matched. Then, when the MADT is iterated with acpi_parse_x2apic(), the x2apic entries with ids less than 255 are skipped and most of my CPUs aren't recognized. I think the original version of this change was okay for this case in https://lore.kernel.org/lkml/87pm4bp54z.ffs@tglx/T/ P.S. I could be convinced that the MADT for my platform is somewhat ill-formed and that I'm relying on pre-existing behavior. I'm not well-versed enough in the topic to know for sure.