Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29082059rwd; Wed, 5 Jul 2023 07:02:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59tGlj9VrT2jfXsBkgOStNUnuepwpYNP3JG4m4EkI6Ppg9pQ9BgpV1IvxhrTBJaHPztIoj X-Received: by 2002:a05:6808:f94:b0:3a1:de5c:3279 with SMTP id o20-20020a0568080f9400b003a1de5c3279mr16533556oiw.14.1688565721250; Wed, 05 Jul 2023 07:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688565721; cv=none; d=google.com; s=arc-20160816; b=wtzmEJ6Ppmr+NlAaYGP8w86yYBQ/GZBRCTnoNlFUl4PlaMjISO25syb2IIpA8ANKSq laFJobnEO89Q495YINfKRjWcvv+ntWA3MXJa2da3wpvUaGd/PfxnsAmHJxGvCJKRnQFb IqpWmmV0LxiZ0wqN42RKibCL30fBZWlVmK+lVKV+5UgCoamuoq07ZgmErA1l7YGDshXA wi7grjFEL3GXxtR1ZsSEtSm2vTrkp5fMKyck95FA/IeAig+ew4sSDf/nTyzq1ByRRksV FwTjVA3ZXifG5GS4AAxesiFQ0F++fKadHFS+Z0GheJnOsB6u9VGewTj+y0/ouIFM2fUk GF3w== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=/4Hc9xI456oQi9onCqo8Rn0lVhbJcg/ae2FzAak5NZw=; fh=FbWPuFkPEYMp52bJzXp3CteuZ8DJC0DUWRZSsupEe88=; b=rKk/6qa1GNko2VSLX6TkcSE35mTQrz5vm6TT2ctpNu8ezvC0TSkNuc7zeQHbTqlwAb mw5VGR2RDM15Bn0U5Q1CmdGOtffdhyBjATjKkgFKiUnvrd3+OAy1y3iO/MmhOfoqP9sW vkQxIi09MpX0qnWw8nkV1tfPHsEYiJonWnvTZVwKu08TdksWweDtAbSGH54XtkKX1rbJ C6DpWbTYYc3RW3EOuzJOZQki+f6SztKnG5woreHK29nktwYzR9sa3Dp436PZ8cM0VKZo S0AkBSZrdVCpQ70ygAiGrNeuIKlirCNzIkv+fG+e5Zti5pvXHbDHp8/3FkMEgT311bug Md4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HHCNlWJd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a6566c5000000b0055ad86f58fcsi20874575pgw.553.2023.07.05.07.01.45; Wed, 05 Jul 2023 07:02:01 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HHCNlWJd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232166AbjGENpj (ORCPT + 99 others); Wed, 5 Jul 2023 09:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbjGENph (ORCPT ); Wed, 5 Jul 2023 09:45:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCD3E10EA; Wed, 5 Jul 2023 06:45:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C3DC6156C; Wed, 5 Jul 2023 13:45:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F30B0C433C7; Wed, 5 Jul 2023 13:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688564733; bh=2nZc8QuDXQtU0mJQdbBKKU3T4vyKo8XqmVijsQeBb+w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=HHCNlWJdsDyCfJAqxVw88yhrOEwjE4+AzjYxJ5QdiR8zt2Bq3oevCi7o2fOX30Vs9 vR4PqMoHxn+Lu2H8Z56jIubA19YmDBfJKFWE6sO4kkMYH0qdo6rsCG7LGu3w3/RN4t XIgbDrYMp/K5PeAmItfPHIpVfVuLJy2b65tmxMT0o3IqOBb4eVUNsNj/EjOrEB7Lms Ki+JeSy0W8UmVOzyslNJUj5BvAD4YWTGpWbPcxD71SfAeh4OxhX8/nv0wdNMxK1fTd b4Gj68qHZOwIh2u5ghqhV5kuA1UFfeWvCE/zKBicWXuF9rz5rWJUVEzb4ZcddFTEAc QJIN5x6a71C0A== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Daniel Borkmann , Andrii Nakryiko , Mykola Lysenko , bpf@vger.kernel.org, netdev@vger.kernel.org Cc: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH bpf-next 0/2] BPF kselftest cross-build/RISC-V fixes In-Reply-To: <9ee053a4-500c-2722-d822-d137648e55e5@iogearbox.net> References: <20230705113926.751791-1-bjorn@kernel.org> <9ee053a4-500c-2722-d822-d137648e55e5@iogearbox.net> Date: Wed, 05 Jul 2023 15:45:30 +0200 Message-ID: <87bkgqtqth.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Daniel Borkmann writes: > On 7/5/23 1:39 PM, Bj=C3=B6rn T=C3=B6pel wrote: >> From: Bj=C3=B6rn T=C3=B6pel >>=20 >> This series has two minor fixes, found when cross-compiling for the >> RISC-V architecture. >>=20 >> Some RISC-V systems do not define HAVE_EFFICIENT_UNALIGNED_ACCESS, >> which made some of tests bail out. Fix the failing tests by adding >> F_NEEDS_EFFICIENT_UNALIGNED_ACCESS. >>=20 >> ...and some RISC-V systems *do* define >> HAVE_EFFICIENT_UNALIGNED_ACCESS. In this case the autoconf.h was not >> correctly picked up by the build system. > > Looks good, applied thanks!=20 Thank you! > Any plans on working towards integrating riscv into upstream BPF CI? > Would love to see that happening. :) Yes! I started hacking a bit on that some time back: https://github.com/libbpf/ci/pull/87 https://github.com/kernel-patches/vmtest/pull/194 (TL;DR: I'll continuing that work at some point.) RISC-V still needs cross-compilation, and testing on qemu/TCG (on typically x86-hosts), which puts some constraints on the rootfs/cross-compilation host; For RISC-V Debian Bullseye is way too old (a lot packages are missing/broken). Typically for BPF it would be Ubuntu Kinetic (or later), or some Debian Sid snapshot. The rootfs, the host, and the host foreign arch would need to be the same for "no-hassle cross-compilation on Debian derivatives" -- and at least younger than "Ubuntu Kinetic"-age. AFAIU, there are some issues with rootfs version and build host versioning for other archs as well: https://github.com/libbpf/ci/pull/83 Bj=C3=B6rn