[igt-dev] [PATCH i-g-t 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel

Abodunrin, Akeem G akeem.g.abodunrin at intel.com
Thu Feb 20 20:22:48 UTC 2020


> On Thu, Feb 20, 2020 at 03:06:09AM +0200, Abodunrin, Akeem G wrote:
> > > > +export ASSEMBLY_SOURCE=./tools/assembly_source
> > > > +
> > > > +function get_help {
> > > > +        echo "Usage:    asm_eu_kernel.sh [options]"
> > > > +        echo "Remember to run this as root"
> > >
> > > I can't spot why this would need root.
> > Since we are generating new file, and writing to it - the script
> > definitely needs root access... otherwise commands like this "
> > prefix_header $i915_filename "Media CB Kernel for gen7.5 devices""
> > fails
> 
> That's no reason to need root. That's just a reason to need write access to the
> directory where you're creating the files.
> 
> As you require the script to be run in IGT source root and writing to $cwd, you
> need write access to IGT source root. Which shouldn't be root-owned.

I got you - but I don't think this is a big deal - I will remove it in the next spin... but not sure it adds any value at this point.
> 
> 
> > >
> > >
> > > > +        echo " "
> > > > +        echo "Please make sure your MESA tool is compiled, and
> > > > + run this script
> > > from igt home directory"
> > >
> > > Mesa written as "Mesa" and IGT written as "IGT". And it's "source
> > > root directory", not "home directory".
> > >
> > > Does the assembler require specific build options for Mesa? Note them here.
> >
> > Yes, it does - but the options are hardcoded in this script - so, mentioning them
> in the help function is irrelevant...
> 
> I'm asking about the Mesa _build_ options. This script doesn't build Mesa, it just
> uses it.
> 
> From a quick check that would be -Dtools=intel that is required.
I don't think Mesa requires Kernel build options to work, AFAIK - it is a standalone tool that could be installed in different ways as mentioned here "https://www.mesa3d.org/install.html" - So, no need for that information.

> 
> 
> 
> --
> Petri Latvala


More information about the igt-dev mailing list