Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp228555imm; Thu, 27 Sep 2018 19:58:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV60c/PW/XwJf/KaakkIprTWPeHdT9Mt2o8D0r14ved9MvzbGlY9vRbA7h/X9m3rT/U1FFFxI X-Received: by 2002:a63:1e15:: with SMTP id e21-v6mr456749pge.430.1538103520514; Thu, 27 Sep 2018 19:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538103520; cv=none; d=google.com; s=arc-20160816; b=ld7xYx3sGq/OexAXRnvgv4GhokYn4IhEA9xtV/9slPo0zVqffKfwAgcPkDJbhZvJQA i8aZchDqGLozolb1YEZUi3viHA1z9Om+l5l0tPFZg8SREOVNdoy7wNiidDEfSzr06V4n gugGqZjaJrCdLxHVILaBlVr2CAhqMPPZioql2R93wBUlMVHBAqt4bOY6I79UAVAFoGWu HHds+NAQpo1q90USLw1ZBT00nlr7SbID1wM6TvEdLgQ1SigXnS7JLacHBSGx1VafDu+a /yZx4fyu6q2gbnO+McRQjxTRboVRNISGk9YDBcBAbBCMwgyJUQZtCXwygezMzg95MZkN CbRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=xoRkzEVxAn48J4y92PEaTMA+cd3Kkg3V8onj7W4Ohug=; b=0AM5uKx4L+VWgYIOEi6Z1/9z6vFtdTiKMlBhHCVzHjPw0lrfTReDR1ZkCavI2JceIJ xcl7nt2s0X0lfY1uJHMCxcBKXM8KWsCddlFkTpIvd9ovygjViXz8Cq++ar6vtGWG4VZ2 pYxn7vf7+53e8aRJiLf3CYoLGSnyRwJvFk1FNDFNoI+aZ+jbhExg2mqlvk8gY6nvjiL0 rEGaRqGn4A92coc3OvEmaajbSTc7ARVKxd8oRIbj+qCIrQuwJha3oZGJZbbAJQj5k9tI vd9ZmDrcFxlQ3mGMQiQCWI3PxgWMwcVHIr6sCsoywpcPWqlaiJnnyTYnggDPesmi5nwd ZVnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bCEaXxQD; dkim=pass header.i=@codeaurora.org header.s=default header.b=bCEaXxQD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d40-v6si3694212pla.226.2018.09.27.19.58.21; Thu, 27 Sep 2018 19:58:40 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=bCEaXxQD; dkim=pass header.i=@codeaurora.org header.s=default header.b=bCEaXxQD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727421AbeI1JTn (ORCPT + 99 others); Fri, 28 Sep 2018 05:19:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41682 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbeI1JTm (ORCPT ); Fri, 28 Sep 2018 05:19:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4DE2F60818; Fri, 28 Sep 2018 02:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538103493; bh=nnqp1MxbJFS5x6CM8RUKq+t4jG7kMVyAe7N7S3OT/1U=; h=From:To:Cc:Subject:Date:From; b=bCEaXxQD8hOfnYLZQyOzV0gFbXSkjKxZZzobJrVMsObmNpSxW2HB7KmKhdfIJJamY Gz4nSVNCOj9DE8IQK8xq8w2rZuOqkUSAnEEbIIg3W9S9ASINoo4+4mOOBXNAjVMQPZ qtHMCA6uXCbg3GlAj6LABOu1qx05N5/5xn6R7MtI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from jhugo-perf-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3C00B600C1; Fri, 28 Sep 2018 02:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538103493; bh=nnqp1MxbJFS5x6CM8RUKq+t4jG7kMVyAe7N7S3OT/1U=; h=From:To:Cc:Subject:Date:From; b=bCEaXxQD8hOfnYLZQyOzV0gFbXSkjKxZZzobJrVMsObmNpSxW2HB7KmKhdfIJJamY Gz4nSVNCOj9DE8IQK8xq8w2rZuOqkUSAnEEbIIg3W9S9ASINoo4+4mOOBXNAjVMQPZ qtHMCA6uXCbg3GlAj6LABOu1qx05N5/5xn6R7MtI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3C00B600C1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org From: Jeffrey Hugo To: sudeep.holla@arm.com, gregkh@linuxfoundation.org, rjw@rjwysocki.net, linux-acpi@vger.kernel.org, jeremy.linton@arm.com Cc: linux-kernel@vger.kernel.org, vkilari@codeaurora.org, Jeffrey Hugo Subject: [PATCH v3 0/2] PPTT handle Handle architecturally unknown cache types Date: Thu, 27 Sep 2018 20:57:55 -0600 Message-Id: <1538103477-15513-1-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ARM Architecture Reference Manual allows for caches to be "invisible" and thus not specified in the system registers under some scenarios such as if the cache cannot be managed by set/way operations. However, such caches may be specified in the ACPI PPTT table for workload performance/scheduling optimizations. Currently such caches can cause an error in lscpu - lscpu: cannot open /sys/devices/system/cpu/cpu0/cache/index3/type: No such file or directory and result in no output, providing a poor user experience. lstopo is also affected as such caches are not included in the output. Address these issues by attempting to be a little more discerning about when cache information is provided to userspace, and also utilize all sources for cache information when possible. [v3] -removed valid flag in PPTT -Added Jeremy Linton's reviewed-by [v2] -Updated cacheinfo per Sudeep's suggestion -Integrated the PPTT fix into existing PPTT code per Sudeep's suggestion Jeffrey Hugo (2): drivers: base: cacheinfo: Do not populate sysfs for unknown cache types ACPI/PPTT: Handle architecturally unknown cache types drivers/acpi/pptt.c | 15 +++++++++++---- drivers/base/cacheinfo.c | 2 ++ 2 files changed, 13 insertions(+), 4 deletions(-) -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.