From patchwork Mon May 4 15:02:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Chartre X-Patchwork-Id: 11526495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 79B001392 for ; Mon, 4 May 2020 15:05:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 45F012073B for ; Mon, 4 May 2020 15:05:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="EQUz5wlB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45F012073B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 47FBB8E003F; Mon, 4 May 2020 11:05:07 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 430968E0024; Mon, 4 May 2020 11:05:07 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31FDE8E003F; Mon, 4 May 2020 11:05:07 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0034.hostedemail.com [216.40.44.34]) by kanga.kvack.org (Postfix) with ESMTP id 1B2848E0024 for ; Mon, 4 May 2020 11:05:07 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D47D1181AEF3C for ; Mon, 4 May 2020 15:05:06 +0000 (UTC) X-FDA: 76779359412.21.act50_66c5442ab5332 X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,alexandre.chartre@oracle.com,,RULES_HIT:30054:30056:30062:30064,0,RBL:156.151.31.85:@oracle.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: act50_66c5442ab5332 X-Filterd-Recvd-Size: 4989 Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Mon, 4 May 2020 15:05:06 +0000 (UTC) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 044ElhAv024581; Mon, 4 May 2020 15:04:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2020-01-29; bh=t0Jfg7lDKwZXvqE1qLiEmLz1WGtmClHHRzVrFx22SYw=; b=EQUz5wlBjxHzin0fdQMWm/gLowQ2XNmEkmnv0kG6v61Vx/UA8l03x7T8NXYgfqltQL0h G7UKvBCFfdx9GBmEIcRwqykfBQfj+MQIrGjZzdTgYYMpEIFcHO8ppfwx1Vrfyh2Bku2T ZOh/dhDH84LssVuz4kj2OSRr7agAIrZ/68mWqbfKB/F2mf98jKz46lOaP0cQ+FbZgeuc JnXcZIyr4iwKlHhTMXF3D6wlG01LiKiCvl4yEsJ1Q8Qv1/fktoEhYD/GD8fVmIWFlwqY ctum47iV/E7YV5Hx/gusvhXqIw4cXv2zdCHqlBkC2X4NGw/6LxHkvrTDKakTfbPpcUpo /A== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 30s1gmy9rg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 May 2020 15:04:55 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 044ElNYI034147; Mon, 4 May 2020 15:04:54 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 30sjnaws5e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 May 2020 15:04:54 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 044F4rcu028874; Mon, 4 May 2020 15:04:53 GMT Received: from linux-1.home.com (/10.175.9.166) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 04 May 2020 08:04:53 -0700 From: Alexandre Chartre To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: pbonzini@redhat.com, konrad.wilk@oracle.com, jan.setjeeilers@oracle.com, liran.alon@oracle.com, junaids@google.com, graf@amazon.de, rppt@linux.vnet.ibm.com, kuzuno@gmail.com, mgross@linux.intel.com, alexandre.chartre@oracle.com Subject: [RFC v4][PATCH part-3 12/14] asidrv/asicmd: Add more test sequences for testing ASI Date: Mon, 4 May 2020 17:02:33 +0200 Message-Id: <20200504150235.12171-13-alexandre.chartre@oracle.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20200504150235.12171-1-alexandre.chartre@oracle.com> References: <20200504150235.12171-1-alexandre.chartre@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9610 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005040123 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9610 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005040123 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Add more options to the asicmd command to test access to map or unmapped memory buffer, interrupt, NMI, scheduling while using ASI. Signed-off-by: Alexandre Chartre --- drivers/staging/asi/asicmd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/asi/asicmd.c b/drivers/staging/asi/asicmd.c index 4d6a347a6d29..849fa09423e6 100644 --- a/drivers/staging/asi/asicmd.c +++ b/drivers/staging/asi/asicmd.c @@ -26,6 +26,20 @@ struct asidrv_test { struct asidrv_test test_list[] = { { "nop", ASIDRV_SEQ_NOP, true, "enter/exit ASI and nothing else" }, + { "mem", ASIDRV_SEQ_MEM, false, + "enter ASI and accessed an unmapped buffer" }, + { "memmap", ASIDRV_SEQ_MEMMAP, true, + "enter ASI and accessed a mapped buffer" }, + { "intr", ASIDRV_SEQ_INTERRUPT, true, + "receive an interruption while running with ASI" }, + { "nmi", ASIDRV_SEQ_NMI, true, + "receive a NMI while running with ASI" }, + { "intrnmi", ASIDRV_SEQ_INTRNMI, true, + "receive a NMI in an interrupt received while running with ASI" }, + { "sched", ASIDRV_SEQ_SCHED, true, + "call schedule() while running with ASI" }, + { "printk", ASIDRV_SEQ_PRINTK, true, + "call printk() while running with ASI" }, }; #define TEST_LIST_SIZE (sizeof(test_list) / sizeof(test_list[0]))