From mboxrd@z Thu Jan 1 00:00:00 1970 From: tanxiaojun@huawei.com (Tan Xiaojun) Date: Thu, 12 Jan 2017 10:26:02 +0800 Subject: [QUESTION] Arm64: Query L3 cache info via DT In-Reply-To: <913e50ac-5040-8a91-539b-136ed7cde1e3@arm.com> References: <58633494.9030708@huawei.com> <81784854-11f8-468a-a280-69be0a714a3b@arm.com> <5874A03A.9000901@huawei.com> <536f64cc-357c-40a1-b2a0-1db0c4280fc0@arm.com> <5874BD6C.7060008@huawei.com> <913e50ac-5040-8a91-539b-136ed7cde1e3@arm.com> Message-ID: <5876E93A.5090203@huawei.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 2017/1/10 19:50, Sudeep Holla wrote: > > > On 10/01/17 10:54, Tan Xiaojun wrote: >> On 2017/1/10 18:01, Sudeep Holla wrote: >>> >>> >>> On 10/01/17 08:50, Tan Xiaojun wrote: >>>> I add this patch, and test in Hisilicon D02/D03. It can work well. >>>> >>>> I'm sorry to reply so late. I took some time to debug, because I am not familiar with the code. >>>> >>>>> + if (level < of_level) { >>>>> + /* >>>>> + * some external caches not specified in CLIDR_EL1 >>>>> + * the information may be available in the device tree >>>>> + * only unified external caches are considered here >>>>> + */ >>>>> + level = of_level; >>>>> + leaves += (of_level - level); >>>> >>>> The above two lines need to exchange the location. >>>> >>> >>> Ah crap, sorry for such a silly mistake. >>> I will post proper patch(es) soon. >>> >> >> OK. Wait for your new patch. ^_^ >> > > Thanks, I have posted the patches[1] and Cc-ed you on them. It would be > good to get Tested-by once you check. > OK. I'm glad to do this. Thanks. Xiaojun.