Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4514809imm; Tue, 11 Sep 2018 13:08:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbeE0Z3M+BjJc8hbgAg76RONnqmqrh183x2L+jqrdS27HgBH0yae6tdDP9mKmzij5j7JB4v X-Received: by 2002:a65:6292:: with SMTP id f18-v6mr29728037pgv.85.1536696490589; Tue, 11 Sep 2018 13:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536696490; cv=none; d=google.com; s=arc-20160816; b=ZwmcEL+T6vmYb6ECIpF8jjbY06pMduCuJVkER91Ajkwek4YvJsvUvSB1uGQgeI4r7K vnp1ov0Biu4G7IDxLgItwcRyavCVBlg3IBv3KfV68bKUjO1JaeWV4XRth2b5FpSX7Hkj JpgI+NfFGUsuQF+QarLZ1Luj8Ii32mQDDqWPkMu1t77t6Y4dmi4hGWhlieNY3agkimWb 5fW0sI4M5g0+w+ztjz99eKvdPiF6VlUkvWube44CZT4g+RaCU7EdoRPYOhlQIkl+MVv5 c5TbGpURS5QrrkmZ9vKyl5cDEH+m9U+Uf1rHnyQDzoauat3UX1iWQFJS2m04f0kbhXuk IeIA== 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=Dn4m2AhAbyE1H8Z1rS3oBy3cMekxLQlgvJUYzMFOFPr7CNL/ZQsiFFwDw3friSaeF9 TDx85BpIqmQ8aSwKs4Rg9T5baP4xr7OqfwUi+XGtncTm1evtn62BJwLh3hnJFIFvQ9pU OAeaaPFV/UrjpetC2UFd4XJB0blPPYwXV4csaR9mrj4q3Sm3BahrNTZ+/QNRoOzZ9xOg zWhvurpiwl+d0saOV+Jl0SJW4vZSCMVjNNyxWWawubs3KdXxgPpFUlb/cDWvb4G0Enef bg2cEiJssvlafEKGf4qmhcDoSzVAZPCpVcsIRWpW6qMes0KQDthU9/0A5jBs1aI90Uvh RE5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=XzR7cqqr; 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 21-v6si21092994pfy.169.2018.09.11.13.07.55; Tue, 11 Sep 2018 13:08:10 -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=XzR7cqqr; 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 S1727788AbeILBGe (ORCPT + 99 others); Tue, 11 Sep 2018 21:06:34 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:52878 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbeILBGe (ORCPT ); Tue, 11 Sep 2018 21:06:34 -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=1536696341; x=1568232341; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UL8JbRBIj8Dgmic5yuT7Oytfq+yluzZfU5sZRa27+/M=; b=XzR7cqqrTHM2YDwv17YrS1OHAk5rgN+DOvE2040Cz6pC6bQhCYVIJvsX ulefdmgI3dAsDGr20ncJ3lgKbzaMWLbIoULCjR1p78m6GSiJRBkBX8g7C gtLWAl95WTxKosK3K/ZLR4mcuOAoqQbixhyFAwqDScY8FZhDdWp6oQHvD ky7YqAGhIqm8ABD01XYvAOt/mKJ9AL1mnTqTaaBBq4iNVd6jVp7TzXTD0 8yy+GR4LW7MuAFXqTPOxH5lunvaz+IAlYJFNIFlGElMLWnZdqs4gltAbx NSZ2xWzd7qKk8mOcWFA80jsJRp+uwhctm6IO87D72ERdCjnKlgqZ0EtG7 Q==; X-IronPort-AV: E=Sophos;i="5.53,361,1531756800"; d="scan'208";a="193728822" 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; 12 Sep 2018 04:05:40 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 11 Sep 2018 12:52:15 -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; 11 Sep 2018 13:05:41 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org Cc: mark.rutland@arm.com, hch@infradead.org, anup@brainfault.org, 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 v4 02/12] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Date: Tue, 11 Sep 2018 13:05:29 -0700 Message-Id: <1536696339-15204-3-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536696339-15204-1-git-send-email-atish.patra@wdc.com> References: <1536696339-15204-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