Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp213281pxf; Wed, 24 Mar 2021 03:23:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl9wxTmSXUtDD27ncAeLp6HNLi5Ncy13y6gKsQg1ukSmFfxia7GuIkr3D/hcVYh4eV7aIg X-Received: by 2002:a05:6402:3047:: with SMTP id bu7mr2587286edb.227.1616581389199; Wed, 24 Mar 2021 03:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616581389; cv=none; d=google.com; s=arc-20160816; b=w/xcsrw8CPjN4VvYBB3+FstwWJr4piZPtWMdkvLGgbgJtRul8UMQ5cnNriOJFR1UHI cPlGzbVG4uXG9P6Tt1fAlCsukW5G/5ZJhBJZYA0TlwktEvoNScCEaGVtFX8/FOYntW4T QZc/WD6zaFmH5wWNgLl92mG3BXNMQZ4fBMHE2LOjcJg5BL3MoAe818/Uc+LcNix83ADr VEJ2VZDajdOt2jA39tUHpf7yiuf3hV9LDzo7tw8dUL8qAtxSioEQLSWklp/ObFbu/a7Z 0rs8u032j45Q1tjfs1O01yOI7AanDIsiZFO5xtmY6rahdW91+IwpBgAIGLsAUptv5sh5 8i3Q== 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=wXCw9l5ApO1xN0m3SGUmkMwxHxyPm/Y3J48kLTvDdtI=; b=ZCxoNnauhByLDTpMvfwJ5ACCfpNlZPSXo0MyZKCaUsl/SJpH2rXAypJYGns6MyPWcP KfyVqSH5no6VPbkoduVlvWW4FOWMbU2G+nyPcRJzthgiamG6iHQAR04/Zz0AHrfOfXnd PpBEv0jxa/us6zDu0Rhazj42fR1zjQYwcnZ22z2FzyApaftuLREGbBxY5qmnIUSQ+oy4 4LgjIE7OxJ0oDBAoSfPCJczge2HiKJNKCsEo8Hv9NVid0GwzL/lFWAhwcyMQGIO1s47j iiIgZdIuARN/+NS9UmyHY3nHYWkyUJCourlGv2z6Qg38ZAZTUOMoxo2h/eYxxBu8ThTl 2nJg== 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 gv3si1405420ejc.238.2021.03.24.03.22.46; Wed, 24 Mar 2021 03:23:09 -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 S232973AbhCXHd3 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Mar 2021 03:33:29 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3381 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbhCXHdZ (ORCPT ); Wed, 24 Mar 2021 03:33:25 -0400 Received: from dggeme759-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4F50Jr2qCHz5gP7; Wed, 24 Mar 2021 15:30:52 +0800 (CST) Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggeme759-chm.china.huawei.com (10.3.19.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Wed, 24 Mar 2021 15:33:23 +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.2106.013; Wed, 24 Mar 2021 15:33:23 +0800 From: "Song Bao Hua (Barry Song)" To: Christoph Hellwig , "tiantao (H)" CC: "akpm@linux-foundation.org" , "peterz@infradead.org" , "paulmck@kernel.org" , "ast@kernel.org" , "tglx@linutronix.de" , "rostedt@goodmis.org" , "m.szyprowski@samsung.com" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] dma-mapping: make map_benchmark compile into module Thread-Topic: [PATCH] dma-mapping: make map_benchmark compile into module Thread-Index: AQHXIFPOFGbiIAxEO0+6jc+KbhZliqqSM4CAgACIJUA= Date: Wed, 24 Mar 2021 07:33:23 +0000 Message-ID: <6153f9d247214d58b5eb7a76cb1258b3@hisilicon.com> References: <1616552258-22282-1-git-send-email-tiantao6@hisilicon.com> <20210324071305.GB647@lst.de> In-Reply-To: <20210324071305.GB647@lst.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.201.12] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Christoph Hellwig [mailto:hch@lst.de] > Sent: Wednesday, March 24, 2021 8:13 PM > To: tiantao (H) > Cc: akpm@linux-foundation.org; peterz@infradead.org; paulmck@kernel.org; > ast@kernel.org; tglx@linutronix.de; rostedt@goodmis.org; hch@lst.de; > m.szyprowski@samsung.com; Song Bao Hua (Barry Song) > ; iommu@lists.linux-foundation.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] dma-mapping: make map_benchmark compile into module > > On Wed, Mar 24, 2021 at 10:17:38AM +0800, Tian Tao wrote: > > under some scenarios, it is necessary to compile map_benchmark > > into module to test iommu, so this patch changed Kconfig and > > export_symbol to implement map_benchmark compiled into module. > > > > On the other hand, map_benchmark is a driver, which is supposed > > to be able to run as a module. > > > > Signed-off-by: Tian Tao > > Nope, we're not going to export more kthread internals for a test > module. The requirement comes from an colleague who is frequently changing the map-bench code for some customized test purpose. and he doesn't want to build kernel image and reboot every time. So I moved the requirement to Tao Tian. Right now, kthread_bind() is exported, kthread_bind_mask() seems to be a little bit "internal" as you said, maybe a wrapper like kthread_bind_node() won't be that "internal", comparing to exposing the cpumask? Anyway, we don't find other driver users for this, hardly I can convince you it is worth. Thanks Barry