Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp780664lqo; Fri, 17 May 2024 00:58:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE1fmT1979g99jCXowpDOeUwlyzMDHD7D5qYnD0uX4GH1LxtSzgCZfdstRJYAUY842olDttjMmpKSbqqm38jbM3yykbhManHmIDJyKzQ== X-Google-Smtp-Source: AGHT+IENepvCJKLCsXusa2Liz/R/wKgDiSVeZRTfs7aGYOMccco1OLGOhPvHv1d/YxMvEazLDwG/ X-Received: by 2002:a05:6a21:6da1:b0:1a9:5e1f:8485 with SMTP id adf61e73a8af0-1afde1180a2mr20992682637.31.1715932705479; Fri, 17 May 2024 00:58:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715932705; cv=pass; d=google.com; s=arc-20160816; b=fpn47/+wBmZqGPUh2KsRjb1kr8Na6TNd+P7e6Zz8ZmwcYCMxvV6G3fzrE7QTgdU75Z hfJTvW1aO1iYKJQTh0E3wlvGqYlEBwf+LLW7NOg0IKBPSgTwAZEcir3HC0Z2EOdw/9D1 NNWXh8YkHpb1trtP68CjqPu41o0gLz0XqJ9T9FgJipi2Qtwl19EIi8VBzVljYKqgK3Ro qBLdA/CsV/8qV1imfzwB2apNfJ8JSPOz8UzIBDwNFzGZSPhnSBjfBq6imPr/jd/vkLzq 0x4I7yLbTKkf/Qu28nLxXHfI+fsgrR4bs9PVGixESvBzs/HBr+BoGr0yZuIu47axHKDG ZqEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Z28RdGIa/jW2W1Epz9g0bmIp4vT2NvFeG3FHmL5nW28=; fh=GqQv+Wf+lcinXVluNkF8mHeoGyIkWWhsV76wytrlFbc=; b=elwe5LSzV6eAnbSHKP46Mis/qMs18+lyKypn5QMO3//UZrNEehnNilybwFvqMfW5hR I3Cb9RRNUycayAktBQzb2DaU2cCmjiwJIHUMOUPhQ2ZWvVddQL05O5aZQXyN4GI/4bR9 NGyvrooefLXOZhn8uzOjrJVJSDMtAOfl985K6qev8g1PgSgKnrhsRWb1RMHkQufbcOaP rlrLPrJoIXJYGU3rbWgPH3CrMEBd9QOr8VX6U/QuPgL0tR+jbJ/XwyHDIzuNVRd+djsf c/1VoqDpdmgiJBXKpz1stmDoIUhADfNVVH/O4ril02BUdRB4eSz6CpdGliK5mErXchFU DcUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=igIM9lD6; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-181825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c0374f4si164499105ad.357.2024.05.17.00.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 00:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=igIM9lD6; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-181825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 91D01B2194C for ; Fri, 17 May 2024 07:57:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B211B94D; Fri, 17 May 2024 07:57:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="igIM9lD6" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 825BF17BD5 for ; Fri, 17 May 2024 07:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715932625; cv=none; b=cowbzXurpgS+NL4fbQEBygtMrLRn/t0wyzKeCspoWo6kS3kpPty1b+xA2SxZnrstK9dm+9GGLmyIrRRML90lPvvQ5qohrCSJ4gleuYK1uLVNN7edZZhN75a7F3qC4cK20swSRCnNoHODDjoaHDrev/aA+dAtwenfUslp3xDgruc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715932625; c=relaxed/simple; bh=9avGdIlGtkZAGVzBwd2BMqnvGgEnWpUrqWA8fO7+YJE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LPNmYCW3i3DsCN2DBp9xdbz6B0FAFeywh8Nmf0KI0nWOhbcM1k8sz3yzuHnrV+E+xD3nbQYgms6nNDtKEtFfOPKpkzDdDsD4Eb3FjMNMYOBT2zt+jMgRZgdWCmbo0cvzOtSfgeDPSMuMdatfqQsBlBu4l8spVhIBoLKW+UAPbRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=igIM9lD6; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715932622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Z28RdGIa/jW2W1Epz9g0bmIp4vT2NvFeG3FHmL5nW28=; b=igIM9lD6yfiaaXNoXvuHONuD95C7ThxvR0tb6q2UHkwIXocG1Iz3fss2TsJmAGETXI8n/m YSq9toaequSyWzwtelG5OvR/QHDrIOa1xmjbOpTEpAjRfNZ8XwGT+PyDeFmllgO+RurdTO +rFb56fhf4I2OyrVTJXGdhfAJjfLnC0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-58-QBvbkxxENZiprvS6x8DnGQ-1; Fri, 17 May 2024 03:56:57 -0400 X-MC-Unique: QBvbkxxENZiprvS6x8DnGQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4D06F101A525; Fri, 17 May 2024 07:56:57 +0000 (UTC) Received: from alecto.usersys.redhat.com (unknown [10.43.17.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 52D6F51BF; Fri, 17 May 2024 07:56:55 +0000 (UTC) From: Artem Savkov To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Artem Savkov Subject: [PATCH 0/5] powerpc64/bpf: jit support for cpuv4 instructions Date: Fri, 17 May 2024 09:56:45 +0200 Message-ID: <20240517075650.248801-1-asavkov@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Add support for recently added cpuv4 instructions fixing test_bpf module failures. This is mostly based on 8ecf3c1dab1c6 (powerpc/bpf/32: Fix failing test_bpf tests, 2024-03-05) Artem Savkov (5): powerpc64/bpf: jit support for 32bit offset jmp instruction powerpc64/bpf: jit support for unconditional byte swap powerpc64/bpf: jit support for sign extended load powerpc64/bpf: jit support for sign extended mov powerpc64/bpf: jit support for signed division and modulo arch/powerpc/include/asm/ppc-opcode.h | 2 + arch/powerpc/net/bpf_jit_comp64.c | 118 +++++++++++++++++++------- 2 files changed, 90 insertions(+), 30 deletions(-) -- 2.45.0