Displaying 16 results from an estimated 16 matches for "sched_prior".
Did you mean:
sched_prio
2018 Jan 24
0
libasan bug: pthread_create never returns
...e <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <sched.h>
#include <errno.h>
#include <unistd.h>
void *
dummy_worker(void *ptr)
{
printf("Hello from worker\n");
return NULL;
}
int
main(void)
{
struct sched_param schedule;
schedule.sched_priority = 50;
if (sched_setscheduler(getpid(), SCHED_RR, &schedule) == 1) {
perror("sched_setscheduler");
exit(EXIT_FAILURE);
}
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
CPU_SET(1, &cpuset);
if (sched_setaffinity(getpid(), sizeof(cpuset), &cpuset) == -1) {
per...
2017 Feb 06
2
Real time threads don't work in libvirt containers under CentOS 7.3
...main\n");
struct sched_param tsparam;
pthread_attr_t tattr;
memset(&tsparam, 0, sizeof(tsparam));
pthread_attr_init(&tattr);
pthread_attr_setinheritsched(&tattr, PTHREAD_EXPLICIT_SCHED);
pthread_attr_setschedpolicy(&tattr, SCHED_FIFO);
tsparam.sched_priority = sched_get_priority_max(SCHED_FIFO) - 7;
pthread_attr_setschedparam(&tattr, &tsparam);
if ((rc = pthread_create(&test_thread, &tattr, test, NULL)) != 0) {
printf("Unable to start rt thread\n");
}
return 0;
}
2020 Mar 18
4
[PATCH 1/9] drm/vblank: Add vblank works
...; +
> + spin_unlock_irq(&vblank->dev->event_lock);
> +
> + wake_up_all(&vblank->vblank_work.work_wait);
> + }
> +
> + return 0;
> +}
> +
> +static void vblank_work_init(struct drm_vblank_crtc *vblank)
> +{
> + struct sched_param param = {
> + .sched_priority = MAX_RT_PRIO - 1,
> + };
> + int ret;
> +
> + INIT_LIST_HEAD(&vblank->vblank_work.irq_list);
> + INIT_LIST_HEAD(&vblank->vblank_work.work_list);
> + init_waitqueue_head(&vblank->vblank_work.work_wait);
> +
> + vblank->vblank_work.thread =
> +...
2020 May 08
0
[RFC v4 04/12] drm/vblank: Add vblank works
...INIT_LIST_HEAD(&work->flush_work);
+ INIT_LIST_HEAD(&work->pending);
+ work->vblank = &crtc->dev->vblank[drm_crtc_index(crtc)];
+}
+EXPORT_SYMBOL(drm_vblank_work_init);
+
+static int vblank_worker_init(struct drm_vblank_crtc *vblank)
+{
+ struct sched_param param = {
+ .sched_priority = MAX_RT_PRIO - 1,
+ };
+
+ INIT_LIST_HEAD(&vblank->pending_work);
+ spin_lock_init(&vblank->work_lock);
+ vblank->worker = kthread_create_worker(0, "card%d-crtc%d",
+ vblank->dev->primary->index,
+ vblank->pipe);
+ if (IS_ERR(vblank-&...
2020 Mar 18
0
[PATCH 1/9] drm/vblank: Add vblank works
...= false;
+ work->state = DRM_VBL_WORK_IDLE;
+ }
+ }
+
+ spin_unlock_irq(&vblank->dev->event_lock);
+
+ wake_up_all(&vblank->vblank_work.work_wait);
+ }
+
+ return 0;
+}
+
+static void vblank_work_init(struct drm_vblank_crtc *vblank)
+{
+ struct sched_param param = {
+ .sched_priority = MAX_RT_PRIO - 1,
+ };
+ int ret;
+
+ INIT_LIST_HEAD(&vblank->vblank_work.irq_list);
+ INIT_LIST_HEAD(&vblank->vblank_work.work_list);
+ init_waitqueue_head(&vblank->vblank_work.work_wait);
+
+ vblank->vblank_work.thread =
+ kthread_run(vblank_work_thread, vblank, "...
2020 Jun 22
0
[RFC v5 02/10] drm/vblank: Add vblank works
...unc;
+ INIT_LIST_HEAD(&work->node);
+ seqcount_init(&work->seqcount);
+ work->vblank = &crtc->dev->vblank[drm_crtc_index(crtc)];
+}
+EXPORT_SYMBOL(drm_vblank_work_init);
+
+static int vblank_worker_init(struct drm_vblank_crtc *vblank)
+{
+ struct sched_param param = {
+ .sched_priority = MAX_RT_PRIO - 1,
+ };
+ struct kthread_worker *worker;
+
+ INIT_LIST_HEAD(&vblank->pending_work);
+ spin_lock_init(&vblank->work_lock);
+ init_waitqueue_head(&vblank->work_wait_queue);
+ worker = kthread_create_worker(0, "card%d-crtc%d",
+ vblank->de...
2020 Mar 27
2
[PATCH 1/9] drm/vblank: Add vblank works
...l(&vblank->vblank_work.work_wait);
> > > + }
> > > +
> > > + return 0;
> > > +}
> > > +
> > > +static void vblank_work_init(struct drm_vblank_crtc *vblank)
> > > +{
> > > + struct sched_param param = {
> > > + .sched_priority = MAX_RT_PRIO - 1,
> > > + };
> > > + int ret;
> > > +
> > > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list);
> > > + INIT_LIST_HEAD(&vblank->vblank_work.work_list);
> > > + init_waitqueue_head(&vblank->vblank_work.work_w...
2020 Mar 27
0
[PATCH 1/9] drm/vblank: Add vblank works
...nt_lock);
> > +
> > + wake_up_all(&vblank->vblank_work.work_wait);
> > + }
> > +
> > + return 0;
> > +}
> > +
> > +static void vblank_work_init(struct drm_vblank_crtc *vblank)
> > +{
> > + struct sched_param param = {
> > + .sched_priority = MAX_RT_PRIO - 1,
> > + };
> > + int ret;
> > +
> > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list);
> > + INIT_LIST_HEAD(&vblank->vblank_work.work_list);
> > + init_waitqueue_head(&vblank->vblank_work.work_wait);
> > +
> > +...
2020 Apr 13
0
[PATCH 1/9] drm/vblank: Add vblank works
...; > > > + }
> > > > +
> > > > + return 0;
> > > > +}
> > > > +
> > > > +static void vblank_work_init(struct drm_vblank_crtc *vblank)
> > > > +{
> > > > + struct sched_param param = {
> > > > + .sched_priority = MAX_RT_PRIO - 1,
> > > > + };
> > > > + int ret;
> > > > +
> > > > + INIT_LIST_HEAD(&vblank->vblank_work.irq_list);
> > > > + INIT_LIST_HEAD(&vblank->vblank_work.work_list);
> > > > + init_waitqueue_head(&...
2007 Jan 30
45
[PATCH] Fix softlockup issue after vcpu hotplug
Stamp softlockup thread earlier before do_timer, because the
latter is the one to actually trigger lock warning for
long-time offline. Or else, I obserevd softlockup warning
easily at manual vcpu hot-remove/plug, or when suspend cancel
into old context.
One point here is to cover both stolen and blocked time to
compare with offline threshold. vcpu hotplug falls into ''stolen''
2020 Jun 24
0
[RFC v7 03/11] drm/vblank: Add vblank works
...{
+ kthread_init_work(&work->base, func);
+ INIT_LIST_HEAD(&work->node);
+ work->vblank = &crtc->dev->vblank[drm_crtc_index(crtc)];
+}
+EXPORT_SYMBOL(drm_vblank_work_init);
+
+int drm_vblank_worker_init(struct drm_vblank_crtc *vblank)
+{
+ struct sched_param param = {
+ .sched_priority = MAX_RT_PRIO - 1,
+ };
+ struct kthread_worker *worker;
+
+ INIT_LIST_HEAD(&vblank->pending_work);
+ init_waitqueue_head(&vblank->work_wait_queue);
+ worker = kthread_create_worker(0, "card%d-crtc%d",
+ vblank->dev->primary->index,
+ vblank-&...
2020 Jun 24
13
[RFC v7 00/11] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their
GPUs, hooray!
So: this patch series implements said CRC support in nouveau, along with
adding some special debugfs interfaces for some relevant igt-gpu-tools
tests (already on the ML).
First - we add some new functionality to kthread_work in the kernel, and
then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Mar 18
12
[PATCH 0/9] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their
GPUs, hooray!
So: this patch series implements said CRC support in nouveau, along with
adding some special debugfs interfaces for some relevant igt-gpu-tools
tests that we'll be sending in just a short bit.
This additionally adds a feature that Ville Syrj?l? came up with: vblank
works. Basically, this is just a generic DRM
2020 Jun 22
13
[RFC v5 00/10] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their
GPUs, hooray!
So: this patch series implements said CRC support in nouveau, along with
adding some special debugfs interfaces for some relevant igt-gpu-tools
tests (already on the ML).
First - we add some new functionality to kthread_work in the kernel, and
then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Jun 27
9
[RFC v8 0/9] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their
GPUs, hooray!
So: this patch series implements said CRC support in nouveau, along with
adding some special debugfs interfaces for some relevant igt-gpu-tools
tests (already on the ML).
First - we add some new functionality to kthread_work in the kernel, and
then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 May 08
16
[RFC v4 00/12] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their
GPUs, hooray!
So: this patch series implements said CRC support in nouveau, along with
adding some special debugfs interfaces for some relevant igt-gpu-tools
tests (already on the ML).
First - we add some new functionality to kthread_work in the kernel, and
then use this to add a new feature to DRM that Ville Syrj?l? came up