* Required backwards support level?
@ 2014-04-06 12:26 Lauri Kasanen
2014-04-06 14:53 ` Rob Clark
2014-04-07 2:26 ` Michel Dänzer
0 siblings, 2 replies; 6+ messages in thread
From: Lauri Kasanen @ 2014-04-06 12:26 UTC (permalink / raw)
To: dri-devel
Hi,
Obviously old userspace + new kernel combo needs to be supported. But
I'm not so sure about a mixed case, does old userspace + new userspace
need to be supported to run at the same time?
For example, a new 64-bit mesa+libdrm and a 32-bit old set, both
running apps at the same time.
Or is it acceptable to assume that once a new userspace has been run,
an old one won't be run for this boot?
- Lauri
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Required backwards support level?
2014-04-06 12:26 Required backwards support level? Lauri Kasanen
@ 2014-04-06 14:53 ` Rob Clark
2014-04-06 17:28 ` Lauri Kasanen
2014-04-07 2:26 ` Michel Dänzer
1 sibling, 1 reply; 6+ messages in thread
From: Rob Clark @ 2014-04-06 14:53 UTC (permalink / raw)
To: Lauri Kasanen; +Cc: dri-devel@lists.freedesktop.org
On Sun, Apr 6, 2014 at 8:26 AM, Lauri Kasanen <cand@gmx.com> wrote:
> Hi,
>
> Obviously old userspace + new kernel combo needs to be supported. But
> I'm not so sure about a mixed case, does old userspace + new userspace
> need to be supported to run at the same time?
>
> For example, a new 64-bit mesa+libdrm and a 32-bit old set, both
> running apps at the same time.
>
> Or is it acceptable to assume that once a new userspace has been run,
> an old one won't be run for this boot?
old 32b userspace in a chroot, for example?
Maybe you can give a better description of what you are wanting to do?
Could you decide on 32b vs 64b userspace on a per 'struct drm_file'
basis (ie. each time /dev/dri/cardN is opened)?
BR,
-R
> - Lauri
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Required backwards support level?
2014-04-06 14:53 ` Rob Clark
@ 2014-04-06 17:28 ` Lauri Kasanen
2014-04-06 17:58 ` Daniel Vetter
0 siblings, 1 reply; 6+ messages in thread
From: Lauri Kasanen @ 2014-04-06 17:28 UTC (permalink / raw)
To: Rob Clark; +Cc: dri-devel@lists.freedesktop.org
On Sun, 6 Apr 2014 10:53:58 -0400
Rob Clark <robdclark@gmail.com> wrote:
> On Sun, Apr 6, 2014 at 8:26 AM, Lauri Kasanen <cand@gmx.com> wrote:
> > Hi,
> >
> > Obviously old userspace + new kernel combo needs to be supported. But
> > I'm not so sure about a mixed case, does old userspace + new userspace
> > need to be supported to run at the same time?
> >
> > For example, a new 64-bit mesa+libdrm and a 32-bit old set, both
> > running apps at the same time.
> >
> > Or is it acceptable to assume that once a new userspace has been run,
> > an old one won't be run for this boot?
>
> old 32b userspace in a chroot, for example?
Yes, for example.
> Maybe you can give a better description of what you are wanting to do?
> Could you decide on 32b vs 64b userspace on a per 'struct drm_file'
> basis (ie. each time /dev/dri/cardN is opened)?
This is related to my memory management work. As the VRAM queue is
global, it cannot be determined on a per-app basis. If at least one
client is running old userspace, the new scoring cannot be used.
Switching live between the two would bring additional complexity. I'd
hope to be able to determine by the first 3d app if the userspace is
new enough. But that depends on if it's expected to be able to run
mixed loads.
- Lauri
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Required backwards support level?
2014-04-06 17:28 ` Lauri Kasanen
@ 2014-04-06 17:58 ` Daniel Vetter
2014-04-07 7:28 ` Lauri Kasanen
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Vetter @ 2014-04-06 17:58 UTC (permalink / raw)
To: Lauri Kasanen; +Cc: dri-devel@lists.freedesktop.org
On Sun, Apr 6, 2014 at 7:28 PM, Lauri Kasanen <cand@gmx.com> wrote:
>> Maybe you can give a better description of what you are wanting to do?
>> Could you decide on 32b vs 64b userspace on a per 'struct drm_file'
>> basis (ie. each time /dev/dri/cardN is opened)?
>
> This is related to my memory management work. As the VRAM queue is
> global, it cannot be determined on a per-app basis. If at least one
> client is running old userspace, the new scoring cannot be used.
>
> Switching live between the two would bring additional complexity. I'd
> hope to be able to determine by the first 3d app if the userspace is
> new enough. But that depends on if it's expected to be able to run
> mixed loads.
At least thus far we've worked under the example that any
explicitly-enabled new behaviour is only enabled per-fd. That's also
useful when you install all your developer versions into a prefix, so
still have 2 versions of X driver, libdrm, mesa, everything else lying
around and want to switch at runtime even.
Can't you fake a default score somehow for all legacy userspace and
always run with the new code? Reimplementing the old interfaces in
terms of the new ones also allows you to kick out duplicated code
(usually) compared to having both old and new code around.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Required backwards support level?
2014-04-06 12:26 Required backwards support level? Lauri Kasanen
2014-04-06 14:53 ` Rob Clark
@ 2014-04-07 2:26 ` Michel Dänzer
1 sibling, 0 replies; 6+ messages in thread
From: Michel Dänzer @ 2014-04-07 2:26 UTC (permalink / raw)
To: Lauri Kasanen; +Cc: dri-devel
On Son, 2014-04-06 at 15:26 +0300, Lauri Kasanen wrote:
> Hi,
>
> Obviously old userspace + new kernel combo needs to be supported. But
> I'm not so sure about a mixed case, does old userspace + new userspace
> need to be supported to run at the same time?
>
> For example, a new 64-bit mesa+libdrm and a 32-bit old set, both
> running apps at the same time.
>
> Or is it acceptable to assume that once a new userspace has been run,
> an old one won't be run for this boot?
I'm afraid not. Trivial counter-example: Build Git snapshot from after
your changes, hit regression (not necessarily related to your changes),
run git bisect involving snapshots from before your changes.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Required backwards support level?
2014-04-06 17:58 ` Daniel Vetter
@ 2014-04-07 7:28 ` Lauri Kasanen
0 siblings, 0 replies; 6+ messages in thread
From: Lauri Kasanen @ 2014-04-07 7:28 UTC (permalink / raw)
To: Daniel Vetter; +Cc: dri-devel@lists.freedesktop.org
On Sun, 6 Apr 2014 19:58:48 +0200
Daniel Vetter <daniel@ffwll.ch> wrote:
> On Sun, Apr 6, 2014 at 7:28 PM, Lauri Kasanen <cand@gmx.com> wrote:
> > This is related to my memory management work. As the VRAM queue is
> > global, it cannot be determined on a per-app basis. If at least one
> > client is running old userspace, the new scoring cannot be used.
> >
> > Switching live between the two would bring additional complexity. I'd
> > hope to be able to determine by the first 3d app if the userspace is
> > new enough. But that depends on if it's expected to be able to run
> > mixed loads.
>
> At least thus far we've worked under the example that any
> explicitly-enabled new behaviour is only enabled per-fd. That's also
> useful when you install all your developer versions into a prefix, so
> still have 2 versions of X driver, libdrm, mesa, everything else lying
> around and want to switch at runtime even.
>
> Can't you fake a default score somehow for all legacy userspace and
> always run with the new code? Reimplementing the old interfaces in
> terms of the new ones also allows you to kick out duplicated code
> (usually) compared to having both old and new code around.
Certainly, that can be done.
- Lauri
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-04-07 7:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 12:26 Required backwards support level? Lauri Kasanen
2014-04-06 14:53 ` Rob Clark
2014-04-06 17:28 ` Lauri Kasanen
2014-04-06 17:58 ` Daniel Vetter
2014-04-07 7:28 ` Lauri Kasanen
2014-04-07 2:26 ` Michel Dänzer
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.