Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3424114ybi; Sun, 26 May 2019 23:09:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIDD6M4BVOzofhHv3YaRlKWHvUzI2LLnUvHsctc2Wh0QA0LUqgnZi+0585+GYESOw2tR0p X-Received: by 2002:a63:cc4b:: with SMTP id q11mr124805310pgi.43.1558937391392; Sun, 26 May 2019 23:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558937391; cv=none; d=google.com; s=arc-20160816; b=lpsNbCcxhy52kZjpJob6L+Ok2pLWoUgi38ExFrE/h0xAckCvW1sSQbvN5OUXRXjoYE mC2T5dJTdQVOyZ6p04d8E2svauIDGMX+Krlgx8ZhOd+2zBjDj4nnrYRSBCa7CBmZQz+H ISSyM6Km3a7AM71PK/FoYaDbahYTX2w10I4KQ8itX6Zg14H8ESk9G//jeIgXs4p3MfW9 lpnS1dnt4jGbYXAVjocBZXm6KkgEtvdc9YB1tAegsgWAcE6bM9P/X6ZNqERvmof/zPHg rYlSGC+Ji3ggusKc2N0RE64SwBdmMd+sF6iFwK2M/Pv1eF+fjarxa++ZolB5bXEOBhHC doXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XBVCDNKA0oJRc8GcCAXzJxx4tIufa68sfBQEPbkr1EY=; b=bq2BNXwhj20THGVIKJsfIa2vcC9rNlN2GEH7s961OtPjiEP0RKeb3PiW1D7t9anWvn sLTcXwdrCFr8DUKFdPALZc2uvlDxN0q0oqcvNyAmIg5Lgon3EVnpnJsRyMPZCR1L+aiR RZQzZ+GyYLW/SvTAOIDGMj5VlIKvOvPl6ifbsreo2jEfv3oL1Ov2ksddNjgZb30MQWxw MMDmcBL4AZQjRcX38D+LAKMn+VlwJpo8DxPjyzPAQJxDA60+raNy0LWJF7fm7MmcDRoQ N8BeJGIyrwK56hqdOMKino8hl7HGFDIPAX6x0WfIfoNdLYY3SopqzHIWSiZqKMLh+H8h PuoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RRp7RK35; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si17103241pgm.405.2019.05.26.23.09.35; Sun, 26 May 2019 23: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=pass header.i=@kernel.org header.s=default header.b=RRp7RK35; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbfE0GHA (ORCPT + 99 others); Mon, 27 May 2019 02:07:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:36086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfE0GHA (ORCPT ); Mon, 27 May 2019 02:07:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75DBE204EC; Mon, 27 May 2019 06:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558937220; bh=mw+L/lLqY44mNdz/h0RDLRWC8v4KYOi5aOl1+CIT9wA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RRp7RK35mra3nwfLeSnANm7jg9RuE5Xik4SIoiYMi2PYUvCZu2b5m/t7BU7kliO6J 1Vf3DetAjGyPp8/lPrqpTmOqANVXTe8co9sTQ3LnD4ptx1nAxwPAFhWJ4B3x7COQQV cR2NmSD9PKbsSn0OuiImgyLxb8g+55SRD5uDhAwM= Date: Mon, 27 May 2019 08:06:56 +0200 From: Greg Kroah-Hartman To: Shaokun Zhang Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Sudeep Holla , Catalin Marinas , Jeremy Linton , Will Deacon Subject: Re: [PATCH v3 1/2] drivers: base: cacheinfo: Add variable to record max cache line size Message-ID: <20190527060656.GA7997@kroah.com> References: <1558922768-29155-1-git-send-email-zhangshaokun@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1558922768-29155-1-git-send-email-zhangshaokun@hisilicon.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 27, 2019 at 10:06:07AM +0800, Shaokun Zhang wrote: > Add coherency_max_size variable to record the maximum cache line size > for different cache levels. We will synchronize it with CTR_EL0.CWG > reporting in cache_line_size() for arm64. > > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Cc: Sudeep Holla > Cc: Catalin Marinas > Cc: Jeremy Linton > Cc: Will Deacon > Signed-off-by: Shaokun Zhang > --- > ChangeLog since v2: > -- Rebase to 5.2-rc2 > -- Export cache_line_size for I/O driver > ChangeLog since v1: > -- Move coherency_max_size to drivers/base/cacheinfo.c > -- Address Catalin's comments > Link: https://www.spinics.net/lists/arm-kernel/msg723615.html > > drivers/base/cacheinfo.c | 5 +++++ > include/linux/cacheinfo.h | 2 ++ > 2 files changed, 7 insertions(+) > > diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c > index a7359535caf5..8827c60f51e2 100644 > --- a/drivers/base/cacheinfo.c > +++ b/drivers/base/cacheinfo.c > @@ -213,6 +213,8 @@ int __weak cache_setup_acpi(unsigned int cpu) > return -ENOTSUPP; > } > > +unsigned int coherency_max_size; Why are you creating a global variable? Where are the other patches in this series? thanks, greg k-h