Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1679450imm; Thu, 18 Oct 2018 02:17:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV60mmOp1nz/SuL4x288ULSUxA9kiHIuFpSAJgwwjULSg+OAlB3J5a/ydSBTjnqSzXHj3+OIY X-Received: by 2002:a62:5103:: with SMTP id f3-v6mr29715030pfb.107.1539854224143; Thu, 18 Oct 2018 02:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539854224; cv=none; d=google.com; s=arc-20160816; b=TctlHckgEXn2aeHP2yVKCFGROY5uxvwqqAwfXzHXWFBQ9ckHush40HpyFB7uA3jesp 3AAMvdiOxA41pY5cSl2m/f1LV7qiXPhxMeMYecz6A+ur4UM621R/DWyC+W/WJ7f26vqn OSgBfpKwclqJQzG7/FYw2fC4LdBJWUt0G8+ubIwu5iUU2D8jS/quFG/JSEOL34RgkpKT YezGPmg1zLEHLLQ3zeZhiKP8uDvdksacOUaF50Gg/kHOV6Brdl6IEdM86rRDQTPxhUy7 IcizVkjtCVpK4Hde24S9Qo6kx3u5PwRw4uB7tGh1Vf/1Ol1995CgSaoNzkfOn3rBLdXM c8iw== 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; bh=T0BVC5pN62JZDLHtrp3R6pTL2f8/jOdbuKnAyt+TkDs=; b=im8AmQ5/Q1TEqWmHC0cgxLD/dV2CIxui9Ajnux8e19JiGGTJX/I93rl+019PJczIg8 zbO3ojW2bLrGvdzFm5+4lu1s7QCOfaUh1UynJ0aozaLd8jqR4udSae3MJbiZSdEzcTo0 720jGSceFdxXE4OWWd9pNI3z1zQaqzcxlNW9vCa6IF88LEOtc5pO8fKx1W1Su++TJn0d djiWX8WAl9RDYxXuqmVFaMQ95gdZ2sBs6lsbFOc0Io3VIhOCdXcghyiTLX1jAawHUwcU LwcU2X2/e94llNMfYD5sgIw5vtODLFn+74PhCZITXms6Sa5kjnUc8+XUF8Qb7nvSfHiX Fvnw== ARC-Authentication-Results: i=1; mx.google.com; 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 s3-v6si1317785pgi.366.2018.10.18.02.16.48; Thu, 18 Oct 2018 02:17:04 -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; 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 S1727821AbeJRRP6 (ORCPT + 99 others); Thu, 18 Oct 2018 13:15:58 -0400 Received: from foss.arm.com ([217.140.101.70]:34752 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbeJRRP6 (ORCPT ); Thu, 18 Oct 2018 13:15:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2C44480D; Thu, 18 Oct 2018 02:15:53 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CC0633F5D3; Thu, 18 Oct 2018 02:15:51 -0700 (PDT) Date: Thu, 18 Oct 2018 10:15:43 +0100 From: Sudeep Holla To: Huacai Chen Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , LKML , zhangfx , wu zhangjin , Sudeep Holla Subject: Re: [PATCH] cacheinfo: Keep the old value if of_property_read_u32 fails Message-ID: <20181018091146.GA22021@e107155-lin> References: <1539739563-1886-1-git-send-email-chenhc@lemote.com> <20181017093540.GB16320@e107155-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Huacai, On Thu, Oct 18, 2018 at 09:28:11AM +0800, Huacai Chen wrote: > Hi, Sudeep, > > Please see this call-graph: > > static int detect_cache_attributes(unsigned int cpu) > .... > ret = populate_cache_leaves(cpu); > .... > ret = cache_shared_cpu_map_setup(cpu); --> > cache_setup_of_node() --> cache_of_set_props() --> > cache_size()/cache_nr_sets > > populate_cache_leaves() is arch-specific, All archs except arm64 have > provide initial values to cacheinfo:size and cacheinfo:number_of_sets. > > Related files: > arch/nds32/kernel/cacheinfo.c > arch/mips/kernel/cacheinfo.c Only above 2 could be affected, but I want to be sure. I wasn't aware of MIPS arch setting values elsewhere, assumed DT, my bad. You have still not answered my question. Which arch are you facing issue ? Or are you proposing this by code inspection ? I changes look fine, but want to be sure if the issue you are seeing is in above architectures. -- Regards, Sudeep