Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7486imm; Thu, 30 Aug 2018 12:52:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZof9NuC11nOpApUFCLTQDCJgEtNq+3UIhwXYFRCcWpKN3L1rh/og1LIr1rP6rEhmDM4G8b X-Received: by 2002:a63:e0e:: with SMTP id d14-v6mr5491209pgl.38.1535658731759; Thu, 30 Aug 2018 12:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535658731; cv=none; d=google.com; s=arc-20160816; b=hdSl0gxdsAgBo/vW4W87+F7jGB863BtEwAdgybIuXDP2BPbDb2D67JZww4SeL/38bk itk2RDfcgUBJyjqVBIvzuZAjatsYmCP0a6HB+37A9EMIz/MFQLCbmM4Y2VfKCrktH7Nd dC4hzZBT1r+HrSC1gjMp0vF0BhnJLpraw9ujFRBFIqLX6fVvtuGP9b2PFpdjgV8rGHW/ XyjU+5X2GDUuCjKZcDzLIyhFkRu52MIbI+tsStfUCKrOr3BsJDebbYY06OKUQFSBKcKC e6KYqQPH4WWIQpP6l2JhmMziWz+ABCA1+kMmuJePC+pPJBW1i2lG/K0yFatogXnSIZ73 ebjw== 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:arc-authentication-results; bh=wky2Q5cswkJe8K1VIenefweBPh6ZYCiL4LGMsGiNV+0=; b=NXBRhx/WvoBz8dtQeXM2mMRJHInYPMtd5zCfAAEqiiVJiNj0VEJL3YzoxPyZwXcOga DP2NNfcp/SKHKXAQG2qGNqNl2xO+0lzC7SSqSuWvwE839io2wKpzFnivgen8LDq63K1U LKDz9J+kYNBzb16xPiJi967r1LPT+8nYu+2sgDeJZzHtE8FJyvLzNaeZTbRKzz1k194t sqRgQfggXzq31RemVkOmEuSCGrn52zHU7kdtwj449sKG+XPFTR/KioI7vjBjni95bOf+ bwrAz73wYC454WdV7h0bafXurCZUn4GMjLSxIz9OuQn2KclF1g0/Zbx3nCN3AgF1EBft HxAw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4-v6si7232669pfh.168.2018.08.30.12.51.55; Thu, 30 Aug 2018 12:52:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727360AbeH3Xye (ORCPT + 99 others); Thu, 30 Aug 2018 19:54:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48674 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbeH3Xye (ORCPT ); Thu, 30 Aug 2018 19:54:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9F4D17A9; Thu, 30 Aug 2018 12:50:46 -0700 (PDT) Received: from [192.168.100.241] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC5B53F5BC; Thu, 30 Aug 2018 12:50:45 -0700 (PDT) Subject: Re: [PATCH 2/8] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} To: Palmer Dabbelt , linux-riscv@lists.infradead.org Cc: aou@eecs.berkeley.edu, daniel.lezcano@linaro.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, atish.patra@wdc.com, dmitriy@oss-tech.org, catalin.marinas@arm.com, ard.biesheuvel@linaro.org, Greg KH , linux-kernel@vger.kernel.org References: <20180827184243.25344-1-palmer@sifive.com> <20180827184243.25344-3-palmer@sifive.com> From: Jeremy Linton Message-ID: Date: Thu, 30 Aug 2018 14:50:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180827184243.25344-3-palmer@sifive.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 08/27/2018 01:42 PM, Palmer Dabbelt wrote: > These are just hard coded in the RISC-V port, which doesn't make any > sense. We should probably be setting these from device tree entries > when they exist, but for now I think it's saner to just leave them all > as their default values. Default value here means unset and not visible in /sys. Which looks fine to me. Reviewed-by: Jeremy Linton Thanks, > > Signed-off-by: Palmer Dabbelt > --- > arch/riscv/kernel/cacheinfo.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/arch/riscv/kernel/cacheinfo.c b/arch/riscv/kernel/cacheinfo.c > index 0bc86e5f8f3f..cb35ffd8ec6b 100644 > --- a/arch/riscv/kernel/cacheinfo.c > +++ b/arch/riscv/kernel/cacheinfo.c > @@ -22,13 +22,6 @@ static void ci_leaf_init(struct cacheinfo *this_leaf, > { > this_leaf->level = level; > this_leaf->type = type; > - /* not a sector cache */ > - this_leaf->physical_line_partition = 1; > - /* TODO: Add to DTS */ > - this_leaf->attributes = > - CACHE_WRITE_BACK > - | CACHE_READ_ALLOCATE > - | CACHE_WRITE_ALLOCATE; > } > > static int __init_cache_level(unsigned int cpu) >