Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1038895imm; Thu, 13 Sep 2018 11:39:02 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb4XMcExEBXMTc7lK6moiqhDMfsum5qlAogh4o3HzhANCEw+rMgpd4Gcgo9oiW98UJPIBkD X-Received: by 2002:a62:2a48:: with SMTP id q69-v6mr8631591pfq.86.1536863942235; Thu, 13 Sep 2018 11:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536863942; cv=none; d=google.com; s=arc-20160816; b=lPsMJpz8rvujzctjDFmd6h4Pht+hepy7KztRfdfOGVp7v6aBQo16VqMbR5jAvDCrUK vAFUiRFrHxWFep9cSjaTTkCTaYFT114HHORRAhMSAr+vCJxCvyhr/HaS2UQ39ZtfRyZ9 gWmuoej00T0QjoEMAamqW0w/c/mh606cYslcMi4FqFSZggX1gv8b5BlI93MKYD2DhBGx GiQ41gd2mfAFJ9gfTpvlZXEj8qoVBllGtwRTuTSpMIdCwcA3mEg3arQvGiHWSQzaltAl LFBcLMHDYZxAlIroNsliDb5q17gg+hP/7BBI0CFh6RpYL+kSPfe8bUQ7BNmeSWehNpx0 EQIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=XIteGJ1xdj7O7Zyr+a4xLcYivjeITLx40igj5c2JqgE=; b=bnPCowQ5kqFBUIkpDFlwreDFm/4q24P+MOY2yQro2sxQLXqgWLQcidex04mDviNDyH ZtFzwnbjPds/vfrxv+2mmMLkQcaPPhxXPWRIdAQj21T0dx8fz+px3cAq9mOsFV/MvPqW rTQL7f/8aqyvV0tFeVC3ZW21ICupb52fpvw+R76lyMtrhGSLE+FMTNl0Gier+ZrBT+JL 1BHs8pMu5lYwxu+xsr8MXO1hv5KPAqbWjU7zu0xYxxBPHri46Fy7G/05t0CJESeZM5Zy NbFdjkLfXy78PtX24isNZrhC6UwADp9TNHC5rlqXaHSBaPKs4NNpMqQgx7flJbg4OVcT A0Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ESIKiVdM; 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=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn18si4659579plb.500.2018.09.13.11.38.47; Thu, 13 Sep 2018 11:39: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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ESIKiVdM; 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=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728126AbeIMXrt (ORCPT + 99 others); Thu, 13 Sep 2018 19:47:49 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:26981 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbeIMXrs (ORCPT ); Thu, 13 Sep 2018 19:47:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1536863827; x=1568399827; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UL8JbRBIj8Dgmic5yuT7Oytfq+yluzZfU5sZRa27+/M=; b=ESIKiVdMiOKK/1pQE9c4tH+7pAh2Chz5Xe68dmioOvtVakQxpXNsyel7 Wn9pU+g4hLZFth9f9PZwF1jra3pKwUP3pX2V6ln/0dwkUAnQ/MGRn8GVV CIcFx/o7KV3ZVtUDJzMD8MAkeXwje1isloy0c5v62jToNnHSweNnfUCTr za14ZH+F9PrZqyQd4PBC3QyUa3QUxsvWUnit8U+Spp98h+HXgAHJKQB5B nHEV28eut7sMiLLFNFSFqtQplLRr8nPgVg3JtjnsJ0y7meemVO6cHw3Qd mG/Gq37xAc4FP/KltKWJlONliAqg/It5y7NffLAcHSBs2Esl5nhm28TS5 w==; X-IronPort-AV: E=Sophos;i="5.53,370,1531756800"; d="scan'208";a="89712010" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 14 Sep 2018 02:37:07 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 13 Sep 2018 11:23:37 -0700 Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 13 Sep 2018 11:37:07 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org Cc: mark.rutland@arm.com, atish.patra@wdc.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, Damien.LeMoal@wdc.com, marc.zyngier@arm.com, jeremy.linton@arm.com, gregkh@linuxfoundation.org, jason@lakedaemon.net, catalin.marinas@arm.com, dmitriy@oss-tech.org, ard.biesheuvel@linaro.org, schwab@linux-m68k.org Subject: [PATCH v5 02/12] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Date: Thu, 13 Sep 2018 11:36:55 -0700 Message-Id: <1536863825-66808-3-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536863825-66808-1-git-send-email-atish.patra@wdc.com> References: <1536863825-66808-1-git-send-email-atish.patra@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Palmer Dabbelt 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 Reviewed-by: Christoph Hellwig Reviewed-by: Jeremy Linton --- 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 0bc86e5f..cb35ffd8 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.7.4