Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1277874pxv; Fri, 23 Jul 2021 04:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/0LJDhLw1G/jFamdMa8Fq12M57hUFbfKBrSl8JIas6rnj3mvkN8C2/sULJOhnsgm+b3dY X-Received: by 2002:a05:6638:2493:: with SMTP id x19mr3707679jat.102.1627040262998; Fri, 23 Jul 2021 04:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627040262; cv=none; d=google.com; s=arc-20160816; b=wjf/flD2BqT9FyjfqJidDJcVX3urBl4nK7r5QPVr/t5medqYqft+GhqlYnZndWOCMO UoWnrJRHjNAr2fHoww42eooENqWTK6ZwXfoYTC3ArWkbsjmbuCA0ywqRVVnF81IYprze inyonbIV1NCvOBJ1WhlUTXliGxQEHkiJLRHFLD0BVqLrChZeeRRMdTIvhSDbJDKAKSOc n5KhMyB2wikBZIesP3C3G2v2MwZoRqbwkMicgab2zq4WNzA9eektVO3u0skno8QF6HjN XpvRiQ9GCcgt2uS6Fq2q2dZ26qxG4Epw2gBbitUecPyrkoFSVGKxRFINh5VXWWfnrRAK rtnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=/ANweSeVtNqaFMbdsPO2voNS4JuLcROuhYtamPEpNMQ=; b=Ce53A72L7/Xi2QQbpY7yXdCcPv0V5tIlVjaIEozOZokEqD0DeaJ63JJNApRIDbyXNx AAK89By872YNcqH4Jl4xqd+1nkBXQdg/tv0K/UDzZgdu+F5zfB8ElpeVhHxBGwpNnvPj Se6FPnuwPs0pNQ9aVLJrxITVdA+XDJeOPJ50u7cQphCmqsBIy6A5yrmXdSTQqVDU+Ki1 QaaoxVU6z9X4qsaAO8ziYRxg6AX9cDmpGG6atfGe5tX4Udz7IrEySVRkU04TSigOZeG2 FFaPC0Sq1L+FQnMoa2AQJFcKlnmZxfPVZwlWOlpYg0wk+ce3tkslIGaHm3RMxnNz02bW /tCg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si9090448ios.94.2021.07.23.04.37.30; Fri, 23 Jul 2021 04:37:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234214AbhGWK4Q (ORCPT + 99 others); Fri, 23 Jul 2021 06:56:16 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:4023 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbhGWK4P (ORCPT ); Fri, 23 Jul 2021 06:56:15 -0400 X-Greylist: delayed 980 seconds by postgrey-1.27 at vger.kernel.org; Fri, 23 Jul 2021 06:56:14 EDT Received: from dggems701-chm.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4GWRcN2tcNzmjvh; Fri, 23 Jul 2021 19:17:24 +0800 (CST) Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggems701-chm.china.huawei.com (10.3.19.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 23 Jul 2021 19:20:25 +0800 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.2176.012; Fri, 23 Jul 2021 19:20:19 +0800 From: "Song Bao Hua (Barry Song)" To: Dave Hansen , "tiantao (H)" , "corbet@lwn.net" , "gregkh@linuxfoundation.org" CC: "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Rafael J. Wysocki" , Peter Zijlstra , "Valentin Schneider" , Dave Hansen , Daniel Bristot de Oliveira , Linuxarm Subject: RE: [PATCH 1/2] CPU, NUMA topology ABIs: clarify the overflow issue of sysfs pagebuf Thread-Topic: [PATCH 1/2] CPU, NUMA topology ABIs: clarify the overflow issue of sysfs pagebuf Thread-Index: AQHXPMXH0SQBD1qG+ECo3ZrOidSRtqrLBimAgADzHOD//4cYAIAAjhuw//+CrICAhVoEQA== Date: Fri, 23 Jul 2021 11:20:19 +0000 Message-ID: References: <1619679819-45256-1-git-send-email-tiantao6@hisilicon.com> <1619679819-45256-2-git-send-email-tiantao6@hisilicon.com> <146e051b-603c-a6d3-43d8-d083cf2c8119@intel.com> <602918a1e2214ea7bd0890a751975566@hisilicon.com> <7c663f7e-07e0-6d95-3012-6e31a1b78f7e@intel.com> <4bf6870f7f3942398e4d1fdaa42184c7@hisilicon.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.202.16] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRGF2ZSBIYW5zZW4gW21h aWx0bzpkYXZlLmhhbnNlbkBpbnRlbC5jb21dDQo+IFNlbnQ6IEZyaWRheSwgQXByaWwgMzAsIDIw MjEgMTA6MzkgQU0NCj4g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