From: "Goel, Akash" <akash.goel@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: akash.goel@intel.com
Subject: Re: [PATCH 05/14] drm/i915: Handle log buffer flush interrupt event from GuC
Date: Sun, 3 Jul 2016 17:55:14 +0530 [thread overview]
Message-ID: <656e7d34-bf10-66c0-86ce-7c6db759237d@intel.com> (raw)
In-Reply-To: <5348d6e4-ac48-ee27-38c5-534c523eb565@intel.com>
On 7/3/2016 5:51 PM, Goel, Akash wrote:
>
>
> On 7/3/2016 2:45 PM, Chris Wilson wrote:
>> On Sun, Jul 03, 2016 at 12:21:22AM +0530, akash.goel@intel.com wrote:
>>> +static void guc_read_update_log_buffer(struct drm_device *dev, bool
>>> capture_all)
>>> +{
>>> + struct drm_i915_private *dev_priv = dev->dev_private;
>>> + struct intel_guc *guc = &dev_priv->guc;
>>> + struct guc_log_buffer_state *log_buffer_state;
>>> + struct guc_log_buffer_state *log_buffer_copy_state;
>>> + void *src_ptr, *dst_ptr;
>>> + u32 num_pages_to_copy;
>>> + int i;
>>> +
>>> + if (!guc->log.obj)
>>> + return;
>>> +
>>> + num_pages_to_copy = guc->log.obj->base.size / PAGE_SIZE;
>>> + /* Don't really need to copy crash buffer area in regular cases
>>> as there
>>> + * won't be any unread data there.
>>> + */
>>> + if (!capture_all)
>>> + num_pages_to_copy -= (GUC_LOG_CRASH_PAGES + 1);
>>> +
>>> + log_buffer_state = src_ptr =
>>> + kmap_atomic(i915_gem_object_get_page(guc->log.obj, 0));
>>
>> So why not use i915_gem_object_pin_map() from the start?
>>
>> That will cut down on the churn later.
>
> Fine, will reorder the series and squash the other patch 'drm/i915: Use
> uncached(WC) mapping for accessing the GuC log buffer' with this patch.
>
Sorry got confused, will use the i915_gem_object_pin_map() here instead
of kmap and keep the WC mapping patch at the end of series only. Then
will just have to modify the call to i915_gem_object_pin_map() to pass
the WC flag.
> Best regards
> Akash
>> -Chris
>>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-07-03 12:25 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 18:51 [PATCH v3 00/14] Support for sustained capturing of GuC firmware logs akash.goel
2016-07-02 18:51 ` [PATCH 01/14] drm/i915: Add GuC ukernel logging related fields to fw interface file akash.goel
2016-07-07 13:49 ` Tvrtko Ursulin
2016-07-02 18:51 ` [PATCH 02/14] drm/i915: New structure to contain GuC logging related fields akash.goel
2016-07-07 13:51 ` Tvrtko Ursulin
2016-07-02 18:51 ` [PATCH 03/14] drm/i915: Add low level set of routines for programming PM IER/IIR/IMR register set akash.goel
2016-07-03 9:38 ` Chris Wilson
2016-07-03 13:07 ` Goel, Akash
2016-07-02 18:51 ` [PATCH 04/14] drm/i915: Support for GuC interrupts akash.goel
2016-07-03 9:23 ` Chris Wilson
2016-07-02 18:51 ` [PATCH 05/14] drm/i915: Handle log buffer flush interrupt event from GuC akash.goel
2016-07-03 9:15 ` Chris Wilson
2016-07-03 12:21 ` Goel, Akash
2016-07-03 12:25 ` Goel, Akash [this message]
2016-07-03 13:01 ` Chris Wilson
2016-07-03 13:01 ` Chris Wilson
2016-07-02 18:51 ` [PATCH 06/14] drm/i915: Add a relay backed debugfs interface for capturing GuC logs akash.goel
2016-07-02 18:51 ` [PATCH 07/14] drm/i915: Forcefully flush GuC log buffer on reset akash.goel
2016-07-02 18:51 ` [PATCH 08/14] drm/i915: Debugfs support for GuC logging control akash.goel
2016-07-02 18:51 ` [PATCH 09/14] drm/i915: New module param to control the size of buffer used for storing GuC firmware logs akash.goel
2016-07-02 18:51 ` [PATCH 10/14] drm/i915: Support to create write combined type vmaps akash.goel
2016-07-02 18:51 ` [PATCH 11/14] drm/i915: Use uncached(WC) mapping for acessing the GuC log buffer akash.goel
2016-07-02 18:51 ` [PATCH 12/14] drm/i915: New lock to serialize the Host2GuC actions akash.goel
2016-07-02 18:51 ` [PATCH 13/14] drm/i915: Add stats for GuC log buffer flush interrupts akash.goel
2016-07-03 9:44 ` Chris Wilson
2016-07-03 12:36 ` Goel, Akash
2016-07-02 18:51 ` [PATCH 14/14] drm/i915: Optimization to reduce the sampling time of GuC log buffer akash.goel
2016-07-03 5:21 ` ✗ Ro.CI.BAT: failure for Support for sustained capturing of GuC firmware logs (rev4) Patchwork
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=656e7d34-bf10-66c0-86ce-7c6db759237d@intel.com \
--to=akash.goel@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/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