Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp264926imm; Wed, 12 Sep 2018 22:52:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYRLZQqgK7hjUi/fn6Br3Nq5Sfm3BaceFpnNEiflJBRnDsAPOHB+ingaaRNeOeNiRYjyI4N X-Received: by 2002:a17:902:b492:: with SMTP id y18-v6mr5620813plr.208.1536817951153; Wed, 12 Sep 2018 22:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536817951; cv=none; d=google.com; s=arc-20160816; b=tAXHT9kCJ9sZu0KvuywjNC8BgP0qgqUJkuhmif9xtN8G/ii3DAf+0iEFilEETF8Rqi Z/KhWgYxF6c64DdRo5vuRX3DBzUIztQ5qXqx/1X0dAC2IDnKiF4mOKsjZGzx94ZznLnx 1d7hC3RDSMeX3wAWMFPNyODUx0+303mpER10yqns6Ch9tr0wllWKC06XF3bZLw5+GEXX Q80+uYlTP3ix5fJZmrNtLmDdLeqyExMhMAKMAH46r5QKeClDHGlE9R2VJtmxo1tRIO+k Q/NXT8JdSYNpkzVLlPL/7T9wMUICF74Pz0rrmGiBJI02KfZQa5GOxnKHgzQfM0wGE+So l5sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=PIFiXxJvDQxt6TYH/uiqkAqTAmyuUsqHrBFZ93des+s=; b=yQmp/Hag8uT0t1a8cM5IhGB8C+hETtcu+FJfm7e/ZglGXinJdL5GkPNpF4Rcvu6IPk a/W7gAt16OaqVhJrWuOlsO6x9LTz+liflxRPSsI10r0Lt46zkoROy8zdn35lKt4O9jYt 74k+lplEWOrWj/5g5a+1vGD8Rk8f8J+4NSItDiPiGWfUkcoC8EJS5Qc32E6OcubL009j 9FikpyHLs0b6B6WJUplihfyk0LZB6lvt8y7Yn95aBqpXXOo84rphRk9BkWSYDzUI8iLH Tqlo7ZG8A74us8IWbUSiliLGFojWfoUXL5w2UHNcxA7dT/tQ0q6S1/GIXVzY2sbKWjB+ q8oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si3094141pll.381.2018.09.12.22.52.16; Wed, 12 Sep 2018 22:52:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727670AbeIMK7k (ORCPT + 99 others); Thu, 13 Sep 2018 06:59:40 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:38888 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbeIMK7j (ORCPT ); Thu, 13 Sep 2018 06:59:39 -0400 X-IronPort-AV: E=Sophos;i="5.53,367,1531778400"; d="scan'208";a="278697209" Received: from 82.24-253-62.static.virginmediabusiness.co.uk (HELO [172.17.1.131]) ([62.253.24.82]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 13 Sep 2018 07:51:39 +0200 Subject: Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types To: Sudeep Holla , Jeffrey Hugo , Jeremy Linton , rjw@rjwysocki.net, linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vkilari@codeaurora.org References: <1536694334-5811-1-git-send-email-jhugo@codeaurora.org> From: Brice Goglin Openpgp: preference=signencrypt Autocrypt: addr=brice.goglin@gmail.com; prefer-encrypt=mutual; keydata= mQINBFNg91oBEADMfOyfz9iilNPe1Yy3pheXLf5O/Vpr+gFJoXcjA80bMeSWBf4on8Mt5Fg/ jpVuNBhii0Zyq4Lip1I2ve+WQjfL3ixYQqvNRLgfw/FL0gNHSOe9dVFo0ol0lT+vu3AXOVmh AM4IrsOp2Tmt+w89Oyvu+xwHW54CJX3kXp4c7COz79A6OhbMEPQUreerTavSvYpH5pLY55WX qOSdjmlXD45yobQbMg9rFBy1BECrj4DJSpym/zJMFVnyC5yAq2RdPFRyvYfS0c491adD/iw9 eFZY1XWj+WqLSW8zEejdl78npWOucfin7eAKvov5Bqa1MLGS/2ojVMHXJN0qpStpKcueV5Px igX8i4O4pPT10xCXZ7R6KIGUe1FE0N7MLErLvBF6AjMyiFHix9rBG0pWADgCQUUFjc8YBKng nwIKl39uSpk5W5rXbZ9nF3Gp/uigTBNVvaLO4PIDw9J3svHQwCB31COsUWS1QhoLMIQPdUkk GarScanm8i37Ut9G+nB4nLeDRYpPIVBFXFD/DROIEfLqOXNbGwOjDd5RWuzA0TNzJSeOkH/0 qYr3gywjiE81zALO3UeDj8TaPAv3Dmu7SoI86Bl7qm6UOnSL7KQxZWuMTlU3BF3d+0Ly0qxv k1XRPrL58IyoHIgAVom0uUnLkRKHczdhGDpNzsQDJaO71EPp8QARAQABuQINBFNg91oBEADp 3vwjw8tQBnNfYJNJMs6AXC8PXB5uApT1pJ0fioaXvifPNL6gzsGtAF53aLeqB7UXuByHr8Bm sz7BvwA06XfXXdyLQP+8Oz3ZnUpw5inDIzLpRbUuAjI+IjUtguIKAkU1rZNdCXMOqEwCaomR itwaiX9H7yiDTKCUaqx8yAuAQWactWDdyFii2FA7IwVlD/GBqMWVweZsMfeWgPumKB3jyElm 1RpkzULr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Gf2f6hd+OWtn8we1mADjDtdnDHuv+3E3cacFJPP/wFV94ZhqvW4QcyBWcRNF A5roa7vcnu/MsCcBoheR0UdYsOnJoEpSZswvC/BGqJTkA2sf Message-ID: <4f253bf4-ef2d-849f-b793-9b0530e72aab@gmail.com> Date: Thu, 13 Sep 2018 06:51:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 12/09/2018 à 11:49, Sudeep Holla a écrit : > >> Yes.  Without this change, we hit the lscpu error in the commit message, >> and get zero output about the system.  We don't even get information >> about the caches which are architecturally specified or how many cpus >> are present.  With this change, we get what we expect out of lscpu (and >> also lstopo) including the cache(s) which are not architecturally >> specified. >> > lscpu and lstopo are so broken. They just assume everything on CPU0. > If you hotplug them out, you start seeing issues. So reading and file > that doesn't exist and then bail out on other essential info though they > are present, hmmm ... Can you elaborate? I am not sure cpu0 is supposed to be offlineable on Linux. There's no "online" file in /sys/devices/system/cpu/cpu0. That's why former lstopo doesn't like CPU0 being hotplugged out. We are actually making that case work for another non-standard corner case. But offlining "cpu0" this is considered "normal", somebody must add that missing "online" sysfs attribute for "cpu0" (change https://elixir.bootlin.com/linux/latest/source/drivers/base/cpu.c#L375). By the way, did anybody actually see an error with lstopo when there's no "type" attribute for L3? I can't reproduce any issue, we just skip that specific cache entirely, but everything else appears. If you guys want to make that "no_cache" cache appear, I'll make it a Unified cache unless you tell me what to show :) Brice