Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6240599imm; Mon, 27 Aug 2018 12:08:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbWhzTWMdB5zgxaZelvyEHWUS2tbIxdL4GlovwyZQ2dWTeFVUEKzf/PO+Sqcjiw5fbv69G X-Received: by 2002:a17:902:8bc4:: with SMTP id r4-v6mr2881743plo.124.1535396882089; Mon, 27 Aug 2018 12:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535396882; cv=none; d=google.com; s=arc-20160816; b=PQtLnOMBO98AWqWO/vKP6Tq04u2kc0at+b9ocGgwKKQ9w4VUcGBFZmAmaLn4zFDasZ bJNUGTYJcVT8V4qduIpjjomATtfOoJHI4F0fcmfKm/TsQQORjCzmz9NS34wsfCewea5B N3iYHDfAXOESrQWK55Nlia0bDmsDeRKCjVEIfc/e8p3Q2xIF3q2C/AcRoV1f/+kX98Fw 9TubgXXQTueACSflOUFJ383WGJSkNmFWlps+rIpCvlyZjuX0wgZhYINtRBxtf+hwviF9 0gxUEGqtgUknMPg4cmWtaxvyu/x32Ftf+aXCCHb4VTzykdEPRQGlmJQRU1I0+FWQvf58 gwnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:cc:references:in-reply-to :message-id:date:subject:dkim-signature:arc-authentication-results; bh=NRuwUtVI5Nhrh22lLgFjtatIUZsR068rUFandrjX9T8=; b=A+C6cxQV3BBud7B2WMRBIjrjrOfPObeMXO2QdI7CbOi4S7XYOMllyUQVHw/dfTJz9H RGWZsHRanFNad7uOdzKFTe2/O6MfJesHitNImyF37h35+Xwnry2Uo+hXaH8ch6P7gLut z9PFkG7NuM1ynWvOuSso/p20elE3YAe2jF/JrGdj8G3Du8NQ7pI1bhOlgT1PlA+JbWaR IHWRCjvA4+lx0P1/EW6mli+oXxejCa9DoVl0QMw2/fsHVh4LknJ74UV0bfqJ094uUFJ6 gu5yYFmFyrlgrffoL7IgnCgIX99QqodBq0Rv7nKQLc/A7smrLDWRl7mAHclayDdsXdWU iY5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="euqUl/Di"; 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 c10-v6si15024plr.155.2018.08.27.12.07.46; Mon, 27 Aug 2018 12:08:02 -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=@sifive.com header.s=google header.b="euqUl/Di"; 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 S1727942AbeH0Wqc (ORCPT + 99 others); Mon, 27 Aug 2018 18:46:32 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39712 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbeH0Wqb (ORCPT ); Mon, 27 Aug 2018 18:46:31 -0400 Received: by mail-pf1-f194.google.com with SMTP id j8-v6so4807pff.6 for ; Mon, 27 Aug 2018 11:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=subject:date:message-id:in-reply-to:references:cc:from:to; bh=NRuwUtVI5Nhrh22lLgFjtatIUZsR068rUFandrjX9T8=; b=euqUl/DiBe59NRzcEUf1IEf6n0H590wFyNzcjgLAxKAXF7BEBKob/bH0x1sFVoGrQz q8k0D7OWAkaFYMXTD82Gc+T49fbRdM1Ddh+7vLVrUo5wa+oM2ljCzCdRoKSI8o9zn4yJ JZ7Cpm21G1NKv5IDuDITu27FLQsaDrJEp2qoPrD0bnlsF6eYe1Xd/qXrFLWNnYmDiUUc dpGY9RKCcCDTJ8RQdZXX2XxzO8hyL0Q1TaVHgSHddanpJ+0sUbaGJtCgOf6rfT0/6YdA QwcQIFLtb38oyB9ltciBsqp8SilSqW7Z+EZG1g2f3rl9bRP7KNwc+S0Rd2xuAFv5uNAN wH6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=NRuwUtVI5Nhrh22lLgFjtatIUZsR068rUFandrjX9T8=; b=XvRI2b8Odf/KlAhalgmGl/F8pmPiBy3pLHZHclaUv4gJvDmLjYvq0TBUrb2q34gjn9 ImkzA3c/LuP/GZEv5OVS3mct4Rs2Nul3FETBgEXZ9T+teUtcFpRKvtWf9cg7btRboOT/ pPAiqMBXO1fdNwrlhzTEGMrUExSCKQJsY9bMwjAnzCjGlQrD7Ll44QpbnDRPt3OJ/G3+ NB/k5c0JXx4rUlCn2lP+saGKYPoLD5ZqICyJiq/F+G4SnPEcu4HUo2/8d8H1tB/rilFS TGrv+3OR6xFxveaXwrtwA/O5Lf5ngG2ZYv0ZV6mGSilWDBce76MgHw3uyuaRp88eY15+ umZQ== X-Gm-Message-State: APzg51DtDAb3/NUHBX6gV81hSEuJdhw2QfufMgeYlHdJx6//tnvsMnQq 1GH6loXefw87uYujnDwfzIuyJg== X-Received: by 2002:a62:c60e:: with SMTP id m14-v6mr15670866pfg.40.1535396322087; Mon, 27 Aug 2018 11:58:42 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id 83-v6sm14446pft.40.2018.08.27.11.58.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 11:58:41 -0700 (PDT) Subject: [PATCH 2/8] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Date: Mon, 27 Aug 2018 11:42:37 -0700 Message-Id: <20180827184243.25344-3-palmer@sifive.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180827184243.25344-1-palmer@sifive.com> References: <20180827184243.25344-1-palmer@sifive.com> Cc: Palmer Dabbelt , 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 , jeremy.linton@arm.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: linux-riscv@lists.infradead.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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) -- 2.16.4