Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3617254ybl; Sun, 12 Jan 2020 22:52:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyvhdXzD5vWuTi7wK1OhfH/xUJpjMHm6D7MQoEjKVIw8AqnaNRsYL+30OY2HfAd2JCiEnOF X-Received: by 2002:aca:503:: with SMTP id 3mr11862183oif.106.1578898371028; Sun, 12 Jan 2020 22:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578898371; cv=none; d=google.com; s=arc-20160816; b=pHiELCBLr3OG4SI1FP/1EqGTrVKdBDAF4dKPh7KSo9w1+gMnI0RlPrSCxcmVOObDdG t6ivlHLtXKZwu57CQzAaPZt5omTlOF1IOpwpkhYK99dt9IChEy2Gxj5lA8QIN1H2MQ0M l9mVa6ze+JC6Jtt293zKPozfkC8KQte6bGpMTM6UI3rf2rqLgOL23zvB2xq9aaBzZtfx yESwt6OEOQiztlvmjmC6Q+ZRF7yQKRSgzQBp6ImI3ncSPrwS+n/i3NJup2yoTUTs8qIG cwtlw2Aa2L+kshGoiXFhIbkYTix7xr21OqyFzYhme6lR2DHyqoTCn124BpHRJ5yYmiBW MEKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=A11HJk0+kZzO4yAYJp4B3v3V3K2tCiK+kPhoskVHICA=; b=ZWEMp1kras8af0/zB75EO2uBv0Lgm0e/CpQ+c+wzewbnR1/b0P9t8+5SgG4tg2rEKp zuLVQNwc8tNeaWb8kRxFeb7noRAgfARiYnQZSLjDiBSm1cEt2PRIEswntkGiSttKyY9P IPPj9ndC54U6x2okptsvcDjdmXMLFU5eTUlQMKlNDQ2VVQLjUqvSKOZ8gzrFJOro6Lv4 4M/25YyOpS+qGkLDBXY/YlJdKzmwLsSDvdUKj26GeOVZLYkyOmiZRRYbyo51vdI8ynqR YCP5azK0Tt9f+xhJQOyXn+z+b8vyxcSKoj+Pes6DgTf0b9nxfM8aXhI2Lz5w4opaZOXK 9h6A== 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 u21si5411600oic.263.2020.01.12.22.52.39; Sun, 12 Jan 2020 22:52:51 -0800 (PST) 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 S1728792AbgAMGvV (ORCPT + 99 others); Mon, 13 Jan 2020 01:51:21 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2986 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725954AbgAMGvV (ORCPT ); Mon, 13 Jan 2020 01:51:21 -0500 Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id 03C7E55F30D6426FC107; Mon, 13 Jan 2020 14:51:18 +0800 (CST) Received: from DGGEMM506-MBX.china.huawei.com ([169.254.3.174]) by DGGEMM405-HUB.china.huawei.com ([10.3.20.213]) with mapi id 14.03.0439.000; Mon, 13 Jan 2020 14:51:11 +0800 From: "Zengtao (B)" To: Valentin Schneider , Morten Rasmussen CC: Sudeep Holla , Linuxarm , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] cpu-topology: warn if NUMA configurations conflicts with lower layer Thread-Topic: [PATCH] cpu-topology: warn if NUMA configurations conflicts with lower layer Thread-Index: AQHVuWnsK0zwK8RxTkqe/SNAoYeaUKfT+S+AgALBI6CAAAyngIAAlqWw//+IwoCAAXt3QP//+lWAgASRonCABMxoAIAAodIAgAMuNwCAArymoA== Date: Mon, 13 Jan 2020 06:51:10 +0000 Message-ID: <678F3D1BB717D949B966B68EAEB446ED340E2592@DGGEMM506-MBX.china.huawei.com> References: <1577088979-8545-1-git-send-email-prime.zeng@hisilicon.com> <20191231164051.GA4864@bogus> <678F3D1BB717D949B966B68EAEB446ED340AE1D3@dggemm526-mbx.china.huawei.com> <20200102112955.GC4864@bogus> <678F3D1BB717D949B966B68EAEB446ED340AEB67@dggemm526-mbx.china.huawei.com> <678F3D1BB717D949B966B68EAEB446ED340AFCA0@dggemm526-mbx.china.huawei.com> <20200103114011.GB19390@bogus> <678F3D1BB717D949B966B68EAEB446ED340B31E9@dggemm526-mbx.china.huawei.com> <20200109104306.GA10914@e105550-lin.cambridge.arm.com> <678F3D1BB717D949B966B68EAEB446ED340BEDD6@dggemm526-mbx.china.huawei.com> <1a8f7963-97e9-62cc-12d2-39f816dfaf67@arm.com> In-Reply-To: <1a8f7963-97e9-62cc-12d2-39f816dfaf67@arm.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.74.221.187] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBWYWxlbnRpbiBTY2huZWlkZXIg W21haWx0bzp2YWxlbnRpbi5zY2huZWlkZXJAYXJtLmNvbV0NCj4gU2VudDogU3VuZGF5LCBKYW51 YXJ5IDEyLCAyMDIwIDQ6NTYgQU0NCj4gVG86IFplbmd0YW8gKEIpOyB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