Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1070493iob; Fri, 13 May 2022 21:58:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOjwWLirWoSuRCAQudH5RsQHOtw5e1nfMYgmqT5yc7SxCj7fvp2n+xnrbw8QMxUq82giXw X-Received: by 2002:adf:ef01:0:b0:20a:8068:ca5e with SMTP id e1-20020adfef01000000b0020a8068ca5emr6389498wro.661.1652504338875; Fri, 13 May 2022 21:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652504338; cv=none; d=google.com; s=arc-20160816; b=J8VfcmFGgrvy/eM1n+PUoWNS4qyOmng6vY7PFEz9/2zHnkgbqzDwDSl63Sk41h6k6a loue9FtrONPZKXKp+OeHigF++4YkxTml6fkvmB3woL46vsXnsYGB1aLGJJJ7wJm00t0W 13/Yz2FbEwlb9diUDXB/ETHVPhblwHk1m3Man2AvARBbQM6rJ9VsIbayAuOfQ4N8Q6KI rms0bc+Ye/3sdB0iRstGg59uUMd/XJMbK0ny+yLR2C0pBsLy3cTZgYZIbzHfIxlpdbDb MgLZhx01E/wZLU2EVNC5bhHic01mlKiItGj3AFalzt0OX0rlyT9J1sLIEa648AdGEfqy kuFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=G5QZWzuHTxmr/8kMUF9j6jV0ebxKJhFwcGInV9yBfEc=; b=roN4BAr3TlJXYrsFwbyRhaewyLzWS8J+d3WAbdOvqb7a21yMzYDOQwSVtPipS2+h4Q F+GJD1K+1KZTIEZ1xMM2l9+RhkQE6RWNmxvMMvac7+NDwi6BMmR0JWftP1BehEfyyKWG Q8wFHVgJWWf/lX+YGswq7mF0bw7tH4aBnSHZv4Y0k1+T77E09U216M+0PjtVuoQ/QlV2 Jh9xVWKTCyoTY7NpGyT+mHq8ImdlZiTzdBzKP0RPfTkZaH1TmuaO4gY87v2srLWr1ZOO sYQIq/Wr7mdJdPYkWvSOBgZr2R8BGxncw7Vl+siQOXObvm8wILZmG6Ni/WA7/Io3fBp8 Foxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LUTGaoXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q10-20020a5d574a000000b0020c9dbdc347si3637997wrw.422.2022.05.13.21.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LUTGaoXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5093EA7E0C; Fri, 13 May 2022 20:35:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231426AbiENDe6 (ORCPT + 99 others); Fri, 13 May 2022 23:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbiENDe4 (ORCPT ); Fri, 13 May 2022 23:34:56 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D81D219FBF for ; Fri, 13 May 2022 20:34:54 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 129so5720781wmz.0 for ; Fri, 13 May 2022 20:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G5QZWzuHTxmr/8kMUF9j6jV0ebxKJhFwcGInV9yBfEc=; b=LUTGaoXsVLhyfmwfwyjQGSBad/n9UD1T7JUVmt/gZu/PafGdABOUWS815yPR5KZ5R7 ehdxfknxL92YC0p/NSoLhVHx5Bovi1ABbfkO114Ujr6GDPZRVQLblTe5EXejr/dUIIPs ZY8TWbzmBuxYRrhS9iF8XXXvsZ+D4CfMTRn687RDGhLuPSNTi8zhLuOKrFIwd6UYT5Q3 NguceK8sjva2JdsrocesAI6dAc1Ty9aeZyCcAgZ5Uaso1vTgeetGjbV+NIIw3GoOC93y 4CuxINEJCS6XFgrb5QnghNZqpE8F9vIpfUI9dTxQmXJNt7OnoSTFolEl5f4xPMIYL07W OOgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G5QZWzuHTxmr/8kMUF9j6jV0ebxKJhFwcGInV9yBfEc=; b=YDNsNGPOG1ohzLHghg2RfoOK0guR5esfITzTvs8SdbdUHdWE0G80aLhL5HICzHVS1W hc22bkLBYYCuKJbhZUfaodY8W4OUCXJ8u10YDv/PgUyfgmP2mvYvHV/KlfVdcSDnGt03 W3ylmvsBl5FVoAzw1SKAYozUprA2xKBp3Snwzm3YxWz36+P8QWqwzQdT70L2czJvcRbd VEYO7axzPmwBd0Waw1CXBHtLvUWO1WrP8/MaVokUuwf8i7phJYifLrl9ysKFKKhTfrmp 3vTO7G+AKE0P+EigEo8vvOOcgmYAzoIf3EE+Fretu+6n90dobOoivQomPWFVWj+W2hvM qDeQ== X-Gm-Message-State: AOAM533cuy17HCsxTgE7QRGIDficWBUXRQVBijEnUUGWg3q+BuwkyQqh q9C7Wh4LdfCLWWTir5+PDuE= X-Received: by 2002:a05:600c:4e13:b0:394:797e:3358 with SMTP id b19-20020a05600c4e1300b00394797e3358mr17499210wmq.30.1652499293394; Fri, 13 May 2022 20:34:53 -0700 (PDT) Received: from octofox.metropolis ([178.134.103.46]) by smtp.gmail.com with ESMTPSA id h1-20020adfaa81000000b0020c66310845sm3542638wrc.55.2022.05.13.20.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:34:53 -0700 (PDT) From: Max Filippov To: linux-xtensa@linux-xtensa.org Cc: Chris Zankel , linux-kernel@vger.kernel.org, Max Filippov Subject: [PATCH v2 0/3] xtensa: add division by zero exception handler Date: Fri, 13 May 2022 20:34:34 -0700 Message-Id: <20220514033437.4182899-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello, this series adds handlers for hardware and artificial division by zero exceptions and improves call0 ABI probing in the presence of unrelated illegal instructions. Changes v1->v2: - split ABI probing improvement from the artificial division by 0 - don't limit artificial division by 0 pattern detection to configurations without HW division opcodes, do it always Max Filippov (3): xtensa: add trap handler for division by zero xtensa: support artificial division by 0 exception xtensa: improve call0 ABI probing arch/xtensa/include/asm/thread_info.h | 4 +++ arch/xtensa/kernel/asm-offsets.c | 3 ++ arch/xtensa/kernel/entry.S | 5 +++ arch/xtensa/kernel/traps.c | 50 ++++++++++++++++++++++++++- 4 files changed, 61 insertions(+), 1 deletion(-) -- 2.30.2