From nobody Fri Jul 08 16:10:24 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A56F23E1116; Fri, 8 Jul 2022 16:10:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LfdXw4GX7z3yBk; Fri, 8 Jul 2022 16:10:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657296624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bVwre6IUb3nEPrZ2j2ycBEBIxB4zEidndp4BVytxP+w=; b=I5au7T+5miVAYUfEDEmu0CSn6VXIoa0dqY109QSobkMAzlR/DyLj87zCtSqYyxj+dhm8Jj 27suwsmRKpBdas7OsCO7rPwN5sfau89GIo8kfXd0V4h+4zF0UzXOjvrzCuoOJ3YWkff3NY XotVwN2Dg4XhM4n66N7ViXvUnUeQHuJSTbwHotA2vLZDFHw0luthFIW3VlotayzonWiYGg IVLPGfQcg3/47hMwOTfqNy6wEHqnZsPL96HIK3kMHs7JnKrFF4jhEZM5lz27XDLbfRHiKF SSdJs8f3ppTEQff5Aamf/Ixsskg5w+aaooXeHWlsege5IFhHFsTeLdUnDE94UQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LfdXw3K4wz1RT4; Fri, 8 Jul 2022 16:10:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 268GAOKK037229; Fri, 8 Jul 2022 16:10:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 268GAOjM037228; Fri, 8 Jul 2022 16:10:24 GMT (envelope-from git) Date: Fri, 8 Jul 2022 16:10:24 GMT Message-Id: <202207081610.268GAOjM037228@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Piotr Kubaj Subject: git: 0a7fa9d11b20 - main - zfs: fix powerpc64le build List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0a7fa9d11b2007331857c9575bd9b77d86c88fe4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657296624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bVwre6IUb3nEPrZ2j2ycBEBIxB4zEidndp4BVytxP+w=; b=e4p1Ipu3jkTtrBMm4j1t0aY14rI6Nupxwc02aLRyspe7edCx0cYSHPBAY4MTxeAIqXtMnB UULmTRVRmW/YuGMhiAk0xhkcYnbYaO0I0grxxTaCPxFWQ/dzeNlQrYyEW/2Bzm2EfYbSh2 /I5SeSHK8w6R+U4o5WrCQWZKBzNfvfS+dVDS1ryIn/QCKQDrT+/SvoVx2SW3g+Y4CHSdB9 f91GNnKbJJl4W2g+cip60iqtschCZBWVyirlRKwyVPyhko6Y0dwTJom9ACTGygd8aM5GRV LQjX0IY80VBebzxUp/Fm8EjakzN+8WzqfJdw8N+Ske6WQZXWNEfnRYkPydhgTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657296624; a=rsa-sha256; cv=none; b=Qf4z1MN7DWLrn/nb2KlIeE0gc5JFehbEINt8ss9kC5ypKLFFisVLeY38z0J1LkymNRSIan YtaKYZPLcMttQiNPMhSOqa9K29rYFVd1YTiAauKEUGAwzbJzYgwsQYfHf8FfVjDXez7bP5 uYlY8OA1VBXjT2skBX97FeiQ/I0b6a23GHEwKDFaWCYjvBeLDxgrL2+f4eTY2u5mAri8XS sRIRp8vhtGzmx2VOioX93QF6Dw/k8YisgEzqjcdH+d/ps5EKDyxKiGsbQ2Ozk1QRD7mkvW BSwTNsmyM3Idm1V0gDa1FdNpvfAjlmLRwRVGs506gbfYYruKkKqSk3BFNyNm3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=0a7fa9d11b2007331857c9575bd9b77d86c88fe4 commit 0a7fa9d11b2007331857c9575bd9b77d86c88fe4 Author: Piotr Kubaj AuthorDate: 2022-07-08 15:21:53 +0000 Commit: Piotr Kubaj CommitDate: 2022-07-08 16:10:24 +0000 zfs: fix powerpc64le build PR: 265003 Reviewed by: alfredo (on IRC) --- sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c b/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c index 48715e2128d2..505439565069 100644 --- a/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c +++ b/sys/contrib/openzfs/module/icp/algs/blake3/blake3_x86-64.c @@ -74,9 +74,12 @@ static boolean_t blake3_is_sse2_supported(void) { #if defined(__x86_64) return (kfpu_allowed() && zfs_sse2_available()); -#elif defined(__PPC64__) +#elif defined(__PPC64__) && defined(__linux__) return (kfpu_allowed() && zfs_vsx_available()); #else +#if defined(__PPC64__) && defined(__FreeBSD__) +#warning FIXME: implement vsx handler for FreeBSD +#endif return (kfpu_allowed()); #endif } @@ -140,9 +143,12 @@ static boolean_t blake3_is_sse41_supported(void) { #if defined(__x86_64) return (kfpu_allowed() && zfs_sse4_1_available()); -#elif defined(__PPC64__) +#elif defined(__PPC64__) && defined(__linux__) return (kfpu_allowed() && zfs_vsx_available()); #else +#if defined(__PPC64__) && defined(__FreeBSD__) +#warning FIXME: implement vsx handler for FreeBSD +#endif return (kfpu_allowed()); #endif }