From: Jani Nikula <jani.nikula@intel.com>
To: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>,
akeem.g.abodunrin@intel.com, intel-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, omer.aran@intel.com,
pragyansri.pathi@intel.com, d.scott.phillips@intel.com,
david.c.stewart@intel.com, tony.luck@intel.com,
jon.bloomfield@intel.com, sudeep.dutt@intel.com,
daniel.vetter@intel.com, joonas.lahtinen@linux.intel.com,
chris.p.wilson@intel.com, prathap.kumar.valsan@intel.com,
mika.kuoppala@intel.com, francesco.balestrieri@intel.com
Subject: Re: [PATCH 2/2] drm/i915/gen7: Clear all EU/L3 residual contexts
Date: Fri, 31 Jan 2020 11:25:35 +0200 [thread overview]
Message-ID: <871rrg9dv4.fsf@intel.com> (raw)
In-Reply-To: <20200130165721.20342-3-akeem.g.abodunrin@intel.com>
On Thu, 30 Jan 2020, Akeem G Abodunrin <akeem.g.abodunrin@intel.com> wrote:
> diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h
> index b0ade76bec90..7ac5b3565845 100644
> --- a/drivers/gpu/drm/i915/i915_utils.h
> +++ b/drivers/gpu/drm/i915/i915_utils.h
> @@ -172,6 +172,11 @@ __check_struct_size(size_t base, size_t arr, size_t count, size_t *size)
> (typeof(ptr))(__v + 1); \
> })
>
> +#define ptr_align(ptr, align) ({ \
> + unsigned long __v = (unsigned long)(ptr); \
> + (typeof(ptr))round_up(__v, (align)); \
> +})
> +
There's PTR_ALIGN() in include/kernel.h.
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>,
akeem.g.abodunrin@intel.com, intel-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, omer.aran@intel.com,
pragyansri.pathi@intel.com, d.scott.phillips@intel.com,
david.c.stewart@intel.com, tony.luck@intel.com,
jon.bloomfield@intel.com, sudeep.dutt@intel.com,
daniel.vetter@intel.com, joonas.lahtinen@linux.intel.com,
chris.p.wilson@intel.com, prathap.kumar.valsan@intel.com,
mika.kuoppala@intel.com, francesco.balestrieri@intel.com
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/gen7: Clear all EU/L3 residual contexts
Date: Fri, 31 Jan 2020 11:25:35 +0200 [thread overview]
Message-ID: <871rrg9dv4.fsf@intel.com> (raw)
In-Reply-To: <20200130165721.20342-3-akeem.g.abodunrin@intel.com>
On Thu, 30 Jan 2020, Akeem G Abodunrin <akeem.g.abodunrin@intel.com> wrote:
> diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h
> index b0ade76bec90..7ac5b3565845 100644
> --- a/drivers/gpu/drm/i915/i915_utils.h
> +++ b/drivers/gpu/drm/i915/i915_utils.h
> @@ -172,6 +172,11 @@ __check_struct_size(size_t base, size_t arr, size_t count, size_t *size)
> (typeof(ptr))(__v + 1); \
> })
>
> +#define ptr_align(ptr, align) ({ \
> + unsigned long __v = (unsigned long)(ptr); \
> + (typeof(ptr))round_up(__v, (align)); \
> +})
> +
There's PTR_ALIGN() in include/kernel.h.
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2020-01-31 9:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-30 16:57 [PATCH 0/2] Security mitigation for Intel Gen7/7.5 HWs Akeem G Abodunrin
2020-01-30 16:57 ` [Intel-gfx] " Akeem G Abodunrin
2020-01-30 16:57 ` [PATCH 1/2] drm/i915: Add mechanism to submit a context WA on ring submission Akeem G Abodunrin
2020-01-30 16:57 ` [Intel-gfx] " Akeem G Abodunrin
2020-01-30 16:57 ` [PATCH 2/2] drm/i915/gen7: Clear all EU/L3 residual contexts Akeem G Abodunrin
2020-01-30 16:57 ` [Intel-gfx] " Akeem G Abodunrin
2020-01-31 9:25 ` Jani Nikula [this message]
2020-01-31 9:25 ` Jani Nikula
2020-01-31 9:52 ` Joonas Lahtinen
2020-01-31 9:52 ` [Intel-gfx] " Joonas Lahtinen
2020-01-31 15:45 ` Bloomfield, Jon
2020-02-03 9:42 ` Joonas Lahtinen
2020-01-31 2:33 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Security mitigation for Intel Gen7/7.5 HWs Patchwork
2020-01-31 3:03 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-01-31 9:33 ` Chris Wilson
2020-02-02 22:27 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2020-02-20 22:57 [PATCH 0/2] " Akeem G Abodunrin
2020-02-20 22:57 ` [PATCH 2/2] drm/i915/gen7: Clear all EU/L3 residual contexts Akeem G Abodunrin
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=871rrg9dv4.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=akeem.g.abodunrin@intel.com \
--cc=chris.p.wilson@intel.com \
--cc=d.scott.phillips@intel.com \
--cc=daniel.vetter@intel.com \
--cc=david.c.stewart@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=francesco.balestrieri@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jon.bloomfield@intel.com \
--cc=joonas.lahtinen@linux.intel.com \
--cc=mika.kuoppala@intel.com \
--cc=omer.aran@intel.com \
--cc=pragyansri.pathi@intel.com \
--cc=prathap.kumar.valsan@intel.com \
--cc=sudeep.dutt@intel.com \
--cc=tony.luck@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.