Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp224601imm; Thu, 6 Sep 2018 01:09:51 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdat0mVljESCXD7wsqjB3Y7ZbvMmFmHv3DjLVZqnhkhe5tr3Ohop22i0m9RocgvyTrLGgeb7 X-Received: by 2002:a17:902:4403:: with SMTP id k3-v6mr1492387pld.243.1536221391865; Thu, 06 Sep 2018 01:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536221391; cv=none; d=google.com; s=arc-20160816; b=hGjHX6T/srxUzoX5g8yld8dfXjVzsHVJOxOzkK7/9bd0wSsJatBavzB1ll7r0yh4l/ hrFN4uehbngusErpwHG8mCSD1+H2BD13ooOmCeVS0J4JQlvCqJRtxr93zzYWCTovCLgg aBWKy2bjW78jd/Z5HsbjDcHC8U5RIAq+VT0+uyPryzVQdVDgf1wUWDKz4amymUhxR5a+ RyIkt5io36eqMSoPAX4NKn9vG3LeHtEcrp9X88Az4DmR+pEbAFdzLvtB8hQzNPfJoq7V YrjNfp3uPzzI15CjvrgJWSM/1KuoyoF6s6k5Wguk2sAEz3bNJnkKApyOTXyIOJ9vgIvb WmrA== 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=T9zOTOXfcnYOOKx1E9CH63biCR7om8mmchrx6dt9o4jfnPTD7AtwNOx+YnuoJYX9hG 9/y2LQvbbmFKSucE0rMopqzcjpewTL/3Bx5+uAi38YhktzyjVo4k/+LW0mTTV/0cy8wg pSB8VfcCYvf50lEquWmGHvtcYjdqRPXY0q1gXyX/2C3GEOKeDL1TNswH2snksSsZpWTn 5N116ZHIDfVTtf39EZD52egqzdLeVEBK1NdWqGdvoG/6cZc884Tokuf5TIwY+ssy4U7W +J4XlROufXhHCVIj5bVZ2JgzWFTiM2oS1t9Epj4L7D4rPv+vBQ9y9gehEqkJb0fp/Vbv 2zWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=jHqBT+Dx; 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 e1-v6si4164460pgo.325.2018.09.06.01.09.36; Thu, 06 Sep 2018 01:09:51 -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=jHqBT+Dx; 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 S1728051AbeIFMjt (ORCPT + 99 others); Thu, 6 Sep 2018 08:39:49 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:53549 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbeIFMjt (ORCPT ); Thu, 6 Sep 2018 08:39:49 -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=1536221193; x=1567757193; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UL8JbRBIj8Dgmic5yuT7Oytfq+yluzZfU5sZRa27+/M=; b=jHqBT+DxgYfqV72xvuZXRsK8I7zVcIAEMSCYX4K7sZFrGta0gU6jd/Yd VFx8mTlWdNj2jZEEzG9IK0jOUoGz8HkiU8UbAcxb50CSMs1FlasHQ2B4i DSf+KU7hzANe4ylb5GH0jBXoye4EyprZLN0F+1hTmiE73XdUGSHoubrkS ViMfKPFl4KzhbIbMtVoMZme6GQmsaY39sE/Gclns0GNn2yrz0Fnr9JUwB EhXPJls0vq/B/sXekXR6W7ZvWqMDaFWtQzHIGi/sBMmxreIchv62O2zNT qXsIlBJh25fjb1RUTQwLEzRm5IW0ju+6Y/6NWlvFTs/b2XqIND2MRh/99 w==; X-IronPort-AV: E=Sophos;i="5.53,337,1531756800"; d="scan'208";a="186673937" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Sep 2018 16:06:32 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 06 Sep 2018 00:52:11 -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; 06 Sep 2018 01:05:36 -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 Subject: [PATCH v3 01/12] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Date: Thu, 6 Sep 2018 01:05:24 -0700 Message-Id: <1536221135-182613-2-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> References: <1536221135-182613-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