Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp54533pxb; Tue, 15 Feb 2022 05:30:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbG7dc5I1FmkK0/wTsTMvoO56eZHEW4K5Gen4Sy+F4Ya+QGS2OBqRdQI60NvnFdY4fTg+S X-Received: by 2002:a17:90b:3e85:: with SMTP id rj5mr4289320pjb.162.1644931834233; Tue, 15 Feb 2022 05:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644931834; cv=none; d=google.com; s=arc-20160816; b=GX0sRx+t9qRtUK7M7CR1QLD3RvQ6a605EOGTJ2yRSzyWraPlWGp6auzx6Rg9nFKlXa OgWWU1I02nbGV2/K3cuvs/RIES69G9AuzTM4T8/rieOUIowRPdKg7K8KGaG/Sr4gtFxr uy8hhN3fJguU+4joUsJHle8UCSMY7QpvHcYcelaPgxQt6MIPx7ZJGI9Y1Q/JjpkM/8bs y6r/V4sjCBdlSd8GB+aAsTdAbyUVuT+rusvP/FTw7N6/SWSudw5LR+eri7TPurX0vDMr Q0N8hkChGYk72Sy+bzZN+NHpQQL3UMOYLXZQkWGylPWdgVwqBlCUjfSnTCoj56VYJJP5 ICHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:subject:user-agent:mime-version:date:message-id; bh=4CBvRu2hpl5vv8YtU11WSMujJ9Dq8rLh9ANNoPqRdVE=; b=MZY51S9vazkLM4SzFRr/bMqDXx1COjckltxM/yzZlV2Z+u+bgtVn48353E6tdEzyXU xztXDM+tX4TFLJlswuaf4vrSuW8HcOmY5svmNhEboTXjfB7+r1nTUyHZqjF7l9Aq4hH1 vpIXXD/28wgDAXxQH2ehz2c8tUYpO/QmmiCfFdps83aQJu5kGJ+I+d+QvnPQIMWEskiI vXqioyfUyRLn1FDneOoo91DL7tgrfFPNYdbVRicU2yoVujsntrTX3tMr5iaIzA9jK6uc qgWTk/QDJxxRVaFS2YT/Ip4njUp8jLz+M8Rar0Ef+eyXGUEro2ZLeugFg26jYqLKEBr+ 9fDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s205si2799877pgs.178.2022.02.15.05.30.17; Tue, 15 Feb 2022 05:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237013AbiBOLQa (ORCPT + 99 others); Tue, 15 Feb 2022 06:16:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233054AbiBOLQ2 (ORCPT ); Tue, 15 Feb 2022 06:16:28 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EAC108184; Tue, 15 Feb 2022 03:16:18 -0800 (PST) Received: from fraeml734-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Jydn63pb7z6873Q; Tue, 15 Feb 2022 19:15:54 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml734-chm.china.huawei.com (10.206.15.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Feb 2022 12:16:16 +0100 Received: from [10.47.81.62] (10.47.81.62) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.21; Tue, 15 Feb 2022 11:16:14 +0000 Message-ID: <06412caf-42e4-5c4b-c9b3-9691075405bd@huawei.com> Date: Tue, 15 Feb 2022 11:16:16 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: Test 73 Sig_trap fails on arm64 (was Re: [PATCH] perf test: Test 73 Sig_trap fails on s390) From: John Garry To: Leo Yan , Marco Elver , Will Deacon CC: Thomas Richter , , , , , , , , "Mark Rutland" , "linux-arm-kernel@lists.infradead.org" , References: <20211216151454.752066-1-tmricht@linux.ibm.com> <90efb5a9-612a-919e-cf2f-c528692d61e2@huawei.com> <20220118091827.GA98966@leoy-ThinkPad-X240s> <20220118124343.GC98966@leoy-ThinkPad-X240s> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.47.81.62] X-ClientProxiedBy: lhreml703-chm.china.huawei.com (10.201.108.52) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/01/2022 09:19, John Garry wrote: Hi Will, Have you had a chance to check this or the mail from Dmitry? https://lore.kernel.org/linux-perf-users/CACT4Y+YVyJcqbR5j2fsSQ+C5hy78X+aobrUHaZKghFf0_NMv=A@mail.gmail.com/ If we can't make progress then we just need to skip the test on arm64 for now. Thanks, John > >> On Tue, Jan 18, 2022 at 12:40:04PM +0100, Marco Elver wrote: >> >> [...] >> >>>> Both Arm and Arm64 platforms cannot support signal handler with >>>> breakpoint, please see the details in [1].  So I think we need >>>> something like below: >>>> >>>> static int test__sigtrap(struct test_suite *test __maybe_unused, int >>>> subtest __maybe_unused) >>>> { >>>>          ... >>>> >>>>          if (!BP_SIGNAL_IS_SUPPORTED) { >>>>                  pr_debug("Test not supported on this architecture"); >>>>                  return TEST_SKIP; >>>>          } >>>> >>>>          ... >>>> } >>>> >>>> Since we have defined BP_SIGNAL_IS_SUPPORTED, I think we can reuse >>>> it at >>>> here. >>>> >>>> [1]https://lore.kernel.org/lkml/157169993406.29376.12473771029179755767.tip-bot2@tip-bot2/ >>>> >>> Does this limitation also exist for address watchpoints? The sigtrap >>> test does not make use of instruction breakpoints, but instead just >>> sets up a watchpoint on access to a data address. >> Yes, after reading the code, the flow for either instrution breakpoint >> or watchpoint both use the single step [1], thus the signal handler will >> take the single step execution and lead to the infinite loop. >> >> I am not the best person to answer this question; @Will, could you >> confirm for this?  Thanks! >> >> Leo >> >> [1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/kernel/hw_breakpoint.c >> > > .