Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1691814imm; Tue, 2 Oct 2018 12:18:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV613+tXpjbBXbz9rmJh+eGvA0P3x5C0UHV/z5jpcAxVaAMwpjZ8o3OMsfGrPGOAXarj6U7QF X-Received: by 2002:a63:7e1c:: with SMTP id z28-v6mr9817343pgc.190.1538507899903; Tue, 02 Oct 2018 12:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538507899; cv=none; d=google.com; s=arc-20160816; b=Ag5CaFAonh70N8phSA12aiq7yO0H8wokhFq53gz/g18xQTGFaYcwPNzIx8JPICEvXx wmBOljNj0lR7ah7apZebrYddcwdIVw7qFU7ynjprVlqEn8y4YG4XO0e0SsD0xGN0F0rs 8gDh96ryvVGN4JGzUvb3qm+dGBOMTQCxSCqPKE4vzYW2YHBzTieruprtltOQZo0Rueib +8dYHpQw57GPnmDFmNL3kb6pmGhbytowpmLPgrbQLlWV1ktir7iDrMhRawKbHwI5qn4F tfb+vDdaHcsrf9Xg4JTrJZSw2nbHaPm7nm7Ajrc5dBDInKVIhyPgN3dbgLCGTAY12PSb rBbQ== 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=Qu/9SEdPsqXdffFjSXF0POgnz8j08HiEXwQtMue+9HFvC8ghGUeyzUNN1U0gbWXism dy6ErcZq72ytW+yRUfyEfdtz825PWeJHSNVLH123PR7s0MTMJgr5lJRTTSPVehSEdD3y JxUV1J7rfuyR0ktu3sP7dRabHkivbhPZc9Kyn93noXZwKbexlM0fleC6UIJhNI8MNoqb JpDs1ZypGDsjyUMG6DfIVQ44AhNyescQ6JuvqJTuA5SMd2932iFjFaaKmQPQpYSJIp8u cy+gUmAvk6yw4o1nuuh8HgoxAvp7rbpr9pbC6pjL1OjS7fLR05WVotLehXc5jQiNCkIn LHXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Q93e5MXg; 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 y67-v6si16470564pfa.47.2018.10.02.12.18.05; Tue, 02 Oct 2018 12:18:19 -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=Q93e5MXg; 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 S1728413AbeJCCBH (ORCPT + 99 others); Tue, 2 Oct 2018 22:01:07 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:61576 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727759AbeJCCAB (ORCPT ); Tue, 2 Oct 2018 22:00:01 -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=1538507710; x=1570043710; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UL8JbRBIj8Dgmic5yuT7Oytfq+yluzZfU5sZRa27+/M=; b=Q93e5MXgUNAW8YkPil9UZd1TY/CznqiDwT3PU1izo464x2JeWjMmCyG0 8K4kDIcS5lKvwCJdQ9wZ8rWpyIosK12cOq9pttZSe8AsWrTu8uRvnJyec 1EAuj//BBDEr/ZX93WiCQJ+CXHgKhijizkTA2jBfWt9ptHjxd0fdpPvut YWwYIsdyGkiLXSdVKHGujBkPJ8UAx2CzyuVD9M7W5amU025yYGn4GUBsc HKM4xoRAphxsGL9CXW7hyWdtRjxZKGDQ9kHskPI++SySMFinALf3K2xn3 i/zim+Vtsoh3AmSH2WxaFEeVSD1dmMrA9PrdKC843uKAI2oPy+m4h9g5d A==; X-IronPort-AV: E=Sophos;i="5.54,332,1534780800"; d="scan'208";a="91076737" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 03 Oct 2018 03:15:08 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 02 Oct 2018 12:00:50 -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; 02 Oct 2018 12:15:09 -0700 From: Atish Patra To: linux-riscv@lists.infradead.org, palmer@sifive.com Cc: anup@brainfault.org, hch@infradead.org, linux-kernel@vger.kernel.org, atish.patra@wdc.com Subject: [PATCH v6 02/14] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Date: Tue, 2 Oct 2018 12:14:55 -0700 Message-Id: <1538507707-22299-3-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538507707-22299-1-git-send-email-atish.patra@wdc.com> References: <1538507707-22299-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