Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6887977iob; Wed, 11 May 2022 07:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdlIEBda0lbGOD7pT4LvAnGYdUd9EYiDEpMAI26MceRtQwC3WlsDu5ymE8WOOEQA8uv3/x X-Received: by 2002:aa7:c1d0:0:b0:428:b439:99f5 with SMTP id d16-20020aa7c1d0000000b00428b43999f5mr9828738edp.316.1652279248286; Wed, 11 May 2022 07:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652279248; cv=none; d=google.com; s=arc-20160816; b=knNVOrckthqXmsmbY27OpUC1WzZnjgKvqXmsi5L3ir8zwMsRZfTWQoECeP8nYJ420n xl7xzHKm8Avk2q6l48QBozbb+TscOMvL9XeELQl+XEV4PN7XxvBs4jfKx3S5Uwxs4SiK uAOx1ro5X1wq395L3o0YlO68AKZgeQ+aUKHHeT7ypI9wB6GeymYykX5W0ghhMfYoppSV cftQW0ZIAMD4TAqxC+O8JG9sq/Vw1XlnautRq9uRRjzgTdYDqKQ9dBfyPAwYbCd7AXoC BB/uIgvHbiRmf8rPHuJ3pibj2pZPbytJT0PzRoaea6kSrJL8bdyF0b9mb8SOSjxSZVKY w8vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=3ZrZOOV6uvxGO+7nyRVWN16MUKJnNecBUKhfuSmaEWA=; b=k7uuc9/gHzh9GooPr4QDGd3Tl318EnqwqGbCmYxqanvsI0cEljz4DX2u7/caIa2cp0 sVIMg4ypp99KY5PP2MVmEU8lCwWdQx2CWHJxmMEUdflSCdQdvASjojt3MjYBQ/kGUzZW y5scATWcs7BckocV+MMKtpv451pNfnr67CPM8xtbvcUw6xVqVPeoFdLOT//6yHndKEop k0bKZegxqjJzmQtJE82towcEvcG94xeGJ3COx0v1hY1tQnek94fMMpVQA+LEPYx0O1HM 4g/0Py/y8bYkPYBlBtqeewTeyx1mGWebarBos2HO//cALPkHB2QNqrXkDmNdfD/tjy1q 0BXQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt21-20020a170907729500b006e86db717aasi2927195ejc.612.2022.05.11.07.27.01; Wed, 11 May 2022 07:27:28 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242625AbiEKMqG (ORCPT + 99 others); Wed, 11 May 2022 08:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237096AbiEKMpy (ORCPT ); Wed, 11 May 2022 08:45:54 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9805560E9 for ; Wed, 11 May 2022 05:45:48 -0700 (PDT) Received: from mail-yw1-f176.google.com ([209.85.128.176]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MfHxt-1oGPQn1lSV-00gmH2 for ; Wed, 11 May 2022 14:45:46 +0200 Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-2ec42eae76bso19290347b3.10 for ; Wed, 11 May 2022 05:45:46 -0700 (PDT) X-Gm-Message-State: AOAM531pw4Yohh69kTGhSFC9Dp8dVUsb+EafmObVxvFp5Z0SRiuViWZu IfqMv00c1A2LTW43+HnIR0OBTmdeGhyG2gcNt88= X-Received: by 2002:a81:1697:0:b0:2fa:32f9:78c8 with SMTP id 145-20020a811697000000b002fa32f978c8mr24808585yww.135.1652273145231; Wed, 11 May 2022 05:45:45 -0700 (PDT) MIME-Version: 1.0 References: <20220506192957.24889-1-nick.hawkins@hpe.com> <7C103AEB-3111-4AE6-9645-CF590388A879@hpe.com> <20220510141124.GB28104@willie-the-truck> In-Reply-To: From: Arnd Bergmann Date: Wed, 11 May 2022 14:45:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] ARM: A9: Add ARM ERRATA 764319 workaround To: "Hawkins, Nick" Cc: Will Deacon , Arnd Bergmann , "Verdun, Jean-Marie" , Russell King - ARM Linux , Mark Rutland , Linux ARM , Linux Kernel Mailing List , Joel Stanley Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:yrdzM//bITs5hQm7/2i0ucQko3AO17UBHIHsGVobMQ6loezfm/5 KY+AM39OtSjmg2g3rRhDb5kevg8ZMsirZRnJTWbXcVu+NFMWM0FtVsWH4yswr5pZkyKbhAP Ljodherz3pn30NuzW7BnfgpAhR/TUZ2vLXg/VX7xHqBLAkEhRFA18FiUWQTJJzN26Cizum+ YWR8Q+nEhCMIMRThsrIVA== X-UI-Out-Filterresults: notjunk:1;V03:K0:CX2RcqScdgU=:VDOXx2kH9Vxl6pscUv4XLv QSfBfk9kecU/iL3c4vtVIxREPeRHTzmmTVNH+hDuROmRabnVnfM9Wssmo8K8QYKKyIFfgFr97 HbGNQGGVl9pr9lla/2eH9gjzKMA8Tu/2STzrkIHAzC7n3qF8/6IQyLeYIkDYgq1McN2T3SAO6 OgOwr6WBhNprS3PliJxCeK3J1FkxG8YRi2AjYGzNDjFmNVRpLqcaZ3lNEuXQ4catQQKpaceSE Z31wp+COnnr4XDKwZ7YfsGThEI5jkHQIPS26Fh9aLIC52tuokx2ou35OjiDvA7GhB/2i8Xzs5 ys5N+20lyLOK6rlDXXoe1oLfRNxUUz3svdPflip6vetQgFb1rpgOZe+gOcUnsm9nsIcxQZv1H Xz2FJwVgy4JqHGaMaeH33b3v26rTNly1nu9+HSelMgJTtLRYO82kvR6qLZICYtwU/r+jjfAFS msRVo8CUyisPqica6VXyvVwuuxqaJ8OBmxUlqGApd7RPD054hZgeM5oNp8uoFE9gevUn/el/e ZSWrtJRHdfG1tI0wQolzoh5YWUrz2FHwasiBhR+KNTKFrJJ6rp6SffdA6twACQ0WRBBPD6Jp7 QhEXM0LkmaAW+Upc64ZDP9xxEkL5BQOgcwnkKyj99WsdxgkOR/ImuLxewz9XbPyY/oSu1FfFB F4zooS2Ynma4K2LRK+wttubkAtwJz2xo4mxiMGax9rreC4qWTfpvhc1qsHmNIXfjIFJs= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,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 Wed, May 11, 2022 at 2:23 PM Hawkins, Nick wrote: > On Tue, May 10, 2022 at 03:01:26PM +0200, Arnd Bergmann wrote: > > > On Tue, May 10, 2022 at 1:53 PM Verdun, Jean-Marie wrote: > > > > > > I got a little lost trying to find where the breakpoint instruction > > > comes from that gets trapped here, but I would guess that they had to > > > do this using an undef_hook because the ex_table approach does not > > > work there for some reason. > > > > > > I would still pick the ex_table method here if that works. > > > IIRC, the ex_table handlers are called only for data aborts and are intended to be used to handle cases where we take a fault on a memory access (e.g. > translation fault). In this case, we're taking an undefined instruction exception on a cp14 access and so the undef_hook is the right thing to use. > > Given Will's input would you like me to still use the ex_table method? If it doesn't work, then there is no point trying. You could try changing the exception handling so it searches the ex_table for Undefined Instruction exceptions as well, but that's probably more complicated. Arnd