mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] igt-gpu-tools: limit blacklisting of BINDNOW to x86
Date: Thu,  7 Dec 2023 12:10:02 +0100	[thread overview]
Message-ID: <20231207111002.1329195-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20231204144934.426001-1-m.tretter@pengutronix.de>

Thanks, applied as 9d271fb8bf569a1909f5bfcd7ac2c6877141376a.

Michael

[sent from post-receive hook]

On Thu, 07 Dec 2023 12:10:02 +0100, Michael Tretter <m.tretter@pengutronix.de> wrote:
> The segfaults caused by BINDNOW are x86-specific.
> 
> Limit the blacklisting to x86 systems and add further documentation, why
> BINDNOW has to be blacklisted.
> 
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> Message-Id: <20231204144934.426001-1-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/igt-gpu-tools.make b/rules/igt-gpu-tools.make
> index a2d9f4d5a221..734db1d07e8c 100644
> --- a/rules/igt-gpu-tools.make
> +++ b/rules/igt-gpu-tools.make
> @@ -29,10 +29,16 @@ IGT_GPU_TOOLS_LICENSE_FILES := \
>  # Prepare
>  # ----------------------------------------------------------------------------
>  
> -# For some reason, intel_gpu_frequency and other segfault immediately if
> -# built with -Wl,-z,now.
> +# On x86 systems, libigt resolves igt_half_to_float and igt_float_to_half as
> +# indirect functions at runtime by checking CPU features with igt_x86_features.
> +# The igt_x86_features function is implemented is a different object and the
> +# call uses the PLT itself. If lazy binding is disabled, this causes a segfault
> +# while resolving the symbols for libigt on x64 systems. Disable BINDNOW on X86
> +# systems to prevent the segfaults.
> +ifdef PTXCONF_ARCH_X86
>  IGT_GPU_TOOLS_WRAPPER_BLACKLIST := \
>  	TARGET_HARDEN_BINDNOW
> +endif
>  
>  IGT_GPU_TOOLS_LIBDRM-y					:=
>  ifdef PTXCONF_ARCH_X86



      parent reply	other threads:[~2023-12-07 11:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-04 14:49 [ptxdist] [PATCH 1/2] " Michael Tretter
2023-12-04 14:49 ` [ptxdist] [PATCH 2/2] igt-gpu-tools: avoid installing all files in targetinstall Michael Tretter
2023-12-07 11:10   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-12-07 11:10 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231207111002.1329195-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=m.tretter@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox