AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Bhardwaj, Rajneesh" <rajneesh.bhardwaj@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "Deucher, Alexander" <Alexander.Deucher@amd.com>,
	"Kuehling, Felix" <Felix.Kuehling@amd.com>,
	amd-gfx list <amd-gfx@lists.freedesktop.org>
Subject: Re: [Patch v1 3/5] drm/amdkfd: Introduce debugfs option to disable baco
Date: Thu, 30 Jan 2020 14:05:21 -0500	[thread overview]
Message-ID: <01c4cef2-dd70-b556-18ce-de9fc16ffd7b@amd.com> (raw)
In-Reply-To: <CADnq5_N+cMAWFyi0GdUer0AkU2LNSjrnb7i9Z4O07CR5V04FaQ@mail.gmail.com>

Hi Alex


Thanks for your time and feedback!


On 1/28/2020 3:22 PM, Alex Deucher wrote:
> [CAUTION: External Email]
>
> On Mon, Jan 27, 2020 at 8:30 PM Rajneesh Bhardwaj
> <rajneesh.bhardwaj@amd.com> wrote:
>> When BACO is enabled by default, sometimes it can cause additional
>> trouble to debug KFD issues. This debugfs override allows to temporarily
>> disable BACO for debug purpose without having to reboot the machine.
>>
>> However, in some cases one suspend-resume cycle might be needed if
>> the device is already runtime suspended.
>>
>> e.g
>>
>> sudo rtcwake -m < mem or freeze > -s 15
>>
>> or
>>
>> by triggering autosuspend event from user space, by doing something
>> like:
>>
>> echo 6000 > /sys/bus/pci/devices/0000\:03\:00.0/power/autosuspend_delay_ms
>>
>>      Usage:
>>
>> echo 0 > /sys/kernel/debug/kfd/enable_baco and run
>> cat /sys/kernel/debug/kfd/baco_status to verify whether BACO is
>> enabled or disabled by kfd driver.
>>
>> It should be noted that while enabling baco again via kfd override, we
>> must do the following steps:
>>
>> 1. echo 0 > /sys/kernel/debug/kfd/enable_baco
>> 2. sudo rtcwake -m < mem > -s 15
>>
>> In this case, we need GPU to be fully reset which is done by BIOS. This
>> is not possible in case of S2idle i.e. freeze so we must use mem for
>> sleep.
>>
> I think we can drop this patch in favor of just using the standard
> runtime pm control.  E.g.,
> /sys/class/drm/card0/device/power/control


Sure, i was using the /sys/bus/pci way to do it and found it was not 
easy. Since this sysfs exists, will drop the patch.


Regards

Rajneesh


>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx@lists.freedesktop.org
>> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Crajneesh.bhardwaj%40amd.com%7Cfdaaf630ee6548c6bd9108d7a42fe314%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637158397891190611&amp;sdata=3jE9jZbbw9IiCu7geMeCCsTC4u4tTdippeWYeSnX3oE%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  reply	other threads:[~2020-01-30 19:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-28  1:29 [Patch v1 0/5] Enable BACO with KFD Rajneesh Bhardwaj
2020-01-28  1:29 ` [Patch v1 1/5] drm/amdgpu: always enable runtime power management Rajneesh Bhardwaj
2020-01-28 20:14   ` Alex Deucher
2020-01-30 19:06     ` Bhardwaj, Rajneesh
2020-01-28  1:29 ` [Patch v1 2/5] drm/amdgpu: Fix missing error check in suspend Rajneesh Bhardwaj
2020-01-28 20:15   ` Alex Deucher
2020-01-28  1:29 ` [Patch v1 3/5] drm/amdkfd: Introduce debugfs option to disable baco Rajneesh Bhardwaj
2020-01-28 20:22   ` Alex Deucher
2020-01-30 19:05     ` Bhardwaj, Rajneesh [this message]
2020-01-28  1:29 ` [Patch v1 4/5] drm/amdkfd: show warning when kfd is locked Rajneesh Bhardwaj
2020-01-28 22:42   ` Felix Kuehling
2020-01-30 19:02     ` Bhardwaj, Rajneesh
2020-01-28  1:29 ` [Patch v1 5/5] drm/amdkfd: refactor runtime pm for baco Rajneesh Bhardwaj
2020-01-28 20:09   ` Zeng, Oak
2020-01-30 19:08     ` Bhardwaj, Rajneesh
2020-01-29 22:52   ` Felix Kuehling
2020-01-30 19:01     ` Bhardwaj, Rajneesh
2020-01-30 21:55       ` Felix Kuehling
2020-01-30 22:11         ` Alex Deucher
2020-01-30 23:24           ` Felix Kuehling
2020-01-31  0:53             ` Zeng, Oak
2020-01-28 17:39 ` [Patch v1 0/5] Enable BACO with KFD Mike Lothian
2020-01-28 20:11   ` Alex Deucher

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=01c4cef2-dd70-b556-18ce-de9fc16ffd7b@amd.com \
    --to=rajneesh.bhardwaj@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-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