From: "Michel Dänzer" <michel@daenzer.net>
To: Oded Gabbay <oded.gabbay@amd.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] amdkfd: Drop interrupt SW ring buffer
Date: Thu, 08 Jan 2015 13:02:35 +0900 [thread overview]
Message-ID: <54AE015B.2020005@daenzer.net> (raw)
In-Reply-To: <54AD2568.5080703@amd.com>
On 07.01.2015 21:24, Oded Gabbay wrote:
> Hi Michel,
> So your patch is quite, hmm, *drastic* :)
>
> Instead, could I suggest to only remove the calls to kfd_interrupt_init()
> and kfd_interrupt_exit() ? It will also require a minor modification to the
> logic in kgd2kfd_interrupt() but it is much less intrusive than what you are
> suggesting.
>
> Alternatively, we could take just this hunk:
>
>> @@ -296,13 +286,5 @@ int kgd2kfd_resume(struct kfd_dev *kfd)
>> /* This is called directly from KGD at ISR. */
>> void kgd2kfd_interrupt(struct kfd_dev *kfd, const void *ih_ring_entry)
>> {
>> - if (kfd->init_complete) {
>> - spin_lock(&kfd->interrupt_lock);
>> -
>> - if (kfd->interrupts_active
>> - && enqueue_ih_ring_entry(kfd, ih_ring_entry))
>> - schedule_work(&kfd->interrupt_work);
>> -
>> - spin_unlock(&kfd->interrupt_lock);
>> - }
>> + /* Process interrupts / schedule work as necessary */
>> }
>
>
> After all, we do need this feature eventually and most of it is fine,
Actually, I'm not sure I can agree with 'most of it is fine'. The whole
design of the SW ring buffer which is processed by a work queue seems
rather flawed, I'm not sure it's possible to reliably prevent the ring
buffer from overflowing like that, even while the hardware interrupt
ring is being processed without problems.
> so I don't want to take it all out. As I said, it is *drastic*.
Why do you think so? It's removing code which is currently essentially
dead but which is causing user visible problems. If it does turn out to
be useful later and the problems can be fixed, it'll be easy to
reinstate it from the Git history.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-01-08 4:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 3:59 [PATCH] amdkfd: Drop interrupt SW ring buffer Michel Dänzer
2015-01-07 12:24 ` Oded Gabbay
2015-01-08 4:02 ` Michel Dänzer [this message]
2015-01-08 4:27 ` [PATCH v2] " Michel Dänzer
2015-01-08 11:24 ` Christian König
2015-01-08 14:28 ` Oded Gabbay
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=54AE015B.2020005@daenzer.net \
--to=michel@daenzer.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=oded.gabbay@amd.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.