Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5661620imm; Wed, 12 Sep 2018 09:12:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbhbE6ptrmtykw2cnogqtuGzQYrFUMQwu0O8F/kDb3CHed74/uvQLXJf5sxIahtx5nicdHW X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr3007822pld.227.1536768744250; Wed, 12 Sep 2018 09:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536768744; cv=none; d=google.com; s=arc-20160816; b=CV9EKqxh+bkd1pQ6nVSj+ano1ZqgvpRu23/yMFQZB2no0vvdN+bKOZ3qI2da/djoBQ W3SOoaXv+zoD2HLfLL05sSbFUNKX+g/74hgUgyqWo7qMNy4WrIHXVjFbwrP6+MS+z43w iwCK++7KTHi3GWqWWJiB3sJg5BLOEu+KDhlFOSeQGorZ0j8Vel/3dKNHaCClNaunmlV7 YFJQshmuJs8Kn6ZgCgmZRK2j4GAvB3YlEKo7f5EfD/eP2U2r/m99UtonCQYVnYTrTXFk +xf5055K9qfE1ZndAYI1juqUn/EMmfH2Mru7DH/PRk+QVWOOzjBom3FWUYF8cyax+w8X GMuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=0Eq1zRPzJsSKUaVOpyKD0RCEU4z/oo6JkpBYs1J7q8U=; b=F7YIIy7FXhxNUbpfCLQm13um/2ekPyrhJo11m+IuYuFzcNkShFOW630JO4KYRqbCkg I3W8b5wQ0pjgvhYAU+C7wlb1JSx1NasT/7/shubDMpEDz1jlTR1GBUp4k2FPTDnk7Nw9 Y95rM2b9iE3tzqPoOVtgMyESIfanzAeL/Bd6BneP7BumixcQmStSRSF11MFbh3rRMI+r ECvsEkaPl+HisvVU4UtauDyEqk9e9kuYnTWgTDNXdICf1VihqNBCwe7yr+F6zkF03Njm TWigl7fPCwGxNf8kCMw6rJtkIJaIOYK1h657UJfGsDWFrEaP+lh3PIlJoJlvbM9zcunf xoJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=EPCBpvsd; dkim=pass header.i=@codeaurora.org header.s=default header.b=EPCBpvsd; 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 a74-v6si1331476pfe.301.2018.09.12.09.11.28; Wed, 12 Sep 2018 09:12:24 -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=EPCBpvsd; dkim=pass header.i=@codeaurora.org header.s=default header.b=EPCBpvsd; 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 S1727801AbeILVMC (ORCPT + 99 others); Wed, 12 Sep 2018 17:12:02 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46462 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbeILVMC (ORCPT ); Wed, 12 Sep 2018 17:12:02 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E278B60213; Wed, 12 Sep 2018 16:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536768410; bh=COg5yNwK9l6WMzDgBUv666+XNSHLD+lUODU21aQrYUM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=EPCBpvsda4LwJnR2PcVXxfrh9PTNj0tZ1vAgge9qgvKrBqlCW5AOZqdJIg4Z0MEdJ QntTx1/ZprOxTkNhKGhvKrAzErd035ogqRA5Y5oHweBwbGn6dnvC2U35ghKgJCJvHK ilnRYoofCej4BlSJ3yjNgBL64lLFznL5D5piStbU= 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.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.81] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E728F602A7; Wed, 12 Sep 2018 16:06:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536768410; bh=COg5yNwK9l6WMzDgBUv666+XNSHLD+lUODU21aQrYUM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=EPCBpvsda4LwJnR2PcVXxfrh9PTNj0tZ1vAgge9qgvKrBqlCW5AOZqdJIg4Z0MEdJ QntTx1/ZprOxTkNhKGhvKrAzErd035ogqRA5Y5oHweBwbGn6dnvC2U35ghKgJCJvHK ilnRYoofCej4BlSJ3yjNgBL64lLFznL5D5piStbU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E728F602A7 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 Subject: Re: [PATCH] ACPI/PPTT: Handle architecturally unknown cache types To: Jeremy Linton , rjw@rjwysocki.net, linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vkilari@codeaurora.org, Sudeep Holla References: <1536694334-5811-1-git-send-email-jhugo@codeaurora.org> <98e2e6fa-7256-b5ac-7d2e-42c858c6e57c@codeaurora.org> From: Jeffrey Hugo Message-ID: Date: Wed, 12 Sep 2018 10:06:49 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/12/2018 9:39 AM, Jeremy Linton wrote: > Hi, > > > On 09/12/2018 09:41 AM, Jeffrey Hugo wrote: >> The HW designers have indicated that there is no sane way to provide >> sets/ways information to software, even on an informational basis (ie >> not for cache maintenance, but for performance optimizations). >> Therefore the firmware will not provide this information because it >> will be wrong. >> >> So, therefore, we should still be able to tell the user that a cache >> exists at the relevant level, and what size it is.  On the concerned >> system, we cannot do that currently. > > Ok, so set the fields to zero in firmware node, and mark them valid. Is that what the PPTT spec says to do? > That logically says that there isn't any set/way information for the > cache (which implies direct mapped). Making inferences such as that have gotten folks into trouble when interpreting other specs. Unfortunately I am not allowed to detail more about this specific system, however implying that the affected cache(s) are direct mapped is incorrect. Officially, what you have is a cache or multiple caches at certain levels that have a specified size. You can make no inferences about the exact behavior or implementation of the cache beyond what FW explicitly provides. I'm not particularly a fan of it, but its what I have to deal with. -- Jeffrey Hugo 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.