Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1341415ybz; Sat, 25 Apr 2020 16:54:14 -0700 (PDT) X-Google-Smtp-Source: APiQypLp5A06W74Wi6qroPM0pPxZEU1ldyqF6DXnZyqOalGF1kYXisoVdD7F9IBmWUbTzqIkUmpt X-Received: by 2002:a17:906:7282:: with SMTP id b2mr13804081ejl.161.1587858854117; Sat, 25 Apr 2020 16:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587858854; cv=none; d=google.com; s=arc-20160816; b=RegFvhdk03fl8GEdbmPEUgZmDKX431lp+xK/1WbxwvEcGKGCFU+rqJLtY2H55OKm2K DhEniVPcK21jk5YFjby+m8E9WUAvVr5j4t+ucRT2mUFrOpPnYYFKSnNUO3+v2DcKQlMO cHDbMMfPI1TcdHr4gBYmXlN7AFrxbK1dIxQP+ZPzLCBHaNhSPME1CdG2/8mbvGSkmETl qDC7qQefpT8SAjx4qJZDPP5W94y7gMb2wuWxJ5g9ntSRWZz4hr4Kfr/Y9sezgTIkv5LH 3YqUARWM1qOD6+nXEZmrpeojepH4IuC9zIkhkI/lrhz6Tpx4vZbbu/jGB5S2MrtH00Qd oWGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=O6YeS9j5F7wDMvxsCqka9SE9cfJCOu3spcamKc9rnBs=; b=YDhBIB7CVz9l3cKBDM5mU3aQISo/sGtY1E1fvJNZxsKqSivOzw8lyitjZnTISLb185 chgB2KLfY3c7OpWUiHGU/p+QuqdBR6liVNGCzFDHtL4UwLusJz9wQNRqXg4lEO/iiT2b YdH0kXaPUUtuT8UDty0R+5kQh3zTQFheW0X4MIB7HPk76VV/3BQwkeDNCOBxrGxH326R n0jdssn3L+tlOOZmEQAXqpxgvYK3xeLjQDDYk6zhlDvw9ANSO8o0b7y3ImzunIx/htuo kYWnX8NfVVK24DL7hXa/icqgdcVUqAuj1lsgFeUMN1vM8rrgS5tbszLGZIlxFDti3qW0 MYIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si5687724ejw.53.2020.04.25.16.53.51; Sat, 25 Apr 2020 16:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726259AbgDYXv2 (ORCPT + 99 others); Sat, 25 Apr 2020 19:51:28 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:47487 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbgDYXvR (ORCPT ); Sat, 25 Apr 2020 19:51:17 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 498nql587Wz9sSJ; Sun, 26 Apr 2020 09:51:15 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 94c0b013c98583614e1ad911e8795ca36da34a85 In-Reply-To: <20200416221908.7886-1-chris.packham@alliedtelesis.co.nz> To: Chris Packham , benh@kernel.crashing.org, christophe.leroy@c-s.fr, tglx@linutronix.de, paulus@samba.org, cai@lca.pw, oss@buserror.net From: Michael Ellerman Cc: Chris Packham , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] powerpc/setup_64: Set cache-line-size based on cache-block-size Message-Id: <498nql587Wz9sSJ@ozlabs.org> Date: Sun, 26 Apr 2020 09:51:15 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-04-16 at 22:19:08 UTC, Chris Packham wrote: > If {i,d}-cache-block-size is set and {i,d}-cache-line-size is not, use > the block-size value for both. Per the devicetree spec cache-line-size > is only needed if it differs from the block size. > > Originally the code would fallback from block size to line size. An > error message was printed if both properties were missing. > > Later the code was refactored to use clearer names and logic but it > inadvertently made line size a required property. This caused the > default values to be used and in turn leads to Power9 systems using the > wrong size. > > Fixes: bd067f83b084 ("powerpc/64: Fix naming of cache block vs. cache lin= > e") > Signed-off-by: Chris Packham Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/94c0b013c98583614e1ad911e8795ca36da34a85 cheers