* [PATCH] intel: Fix missing ETIME on BSD operating systems
@ 2012-11-09 22:06 Richard Yao
0 siblings, 0 replies; 8+ messages in thread
From: Richard Yao @ 2012-11-09 22:06 UTC (permalink / raw)
To: intel-gfx; +Cc: gentoo-bsd, David Shao
From: David Shao <davshao@gmail.com>
Originally posted to Free Desktop bug #52549 by David Shao.
Resolves Gentoo Bug #433403.
Commit message by Richard Yao.
Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
---
intel/intel_bufmgr_gem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 8d45839..512bc6f 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -54,6 +54,9 @@
#include <stdbool.h>
#include "errno.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
#include "libdrm_lists.h"
#include "intel_bufmgr.h"
#include "intel_bufmgr_priv.h"
--
1.7.8.6
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] intel: Fix missing ETIME on BSD operating systems
@ 2012-11-10 5:06 Richard Yao
0 siblings, 0 replies; 8+ messages in thread
From: Richard Yao @ 2012-11-10 5:06 UTC (permalink / raw)
To: intel-gfx; +Cc: gentoo-bsd, David Shao
From: David Shao <davshao@gmail.com>
Originally posted to Free Desktop bug #52549 by David Shao.
Resolves Gentoo Bug #433403.
Commit message by Richard Yao.
Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
---
intel/intel_bufmgr_gem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 8d45839..512bc6f 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -54,6 +54,9 @@
#include <stdbool.h>
#include "errno.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
#include "libdrm_lists.h"
#include "intel_bufmgr.h"
#include "intel_bufmgr_priv.h"
--
1.7.8.6
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] intel: Fix missing ETIME on BSD operating systems
@ 2012-11-10 5:23 Richard Yao
0 siblings, 0 replies; 8+ messages in thread
From: Richard Yao @ 2012-11-10 5:23 UTC (permalink / raw)
To: intel-gfx; +Cc: gentoo-bsd, David Shao
From: David Shao <davshao@gmail.com>
Originally posted to Free Desktop bug #52549 by David Shao.
Resolves Gentoo Bug #433403.
Commit message by Richard Yao.
Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
---
intel/intel_bufmgr_gem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 8d45839..512bc6f 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -54,6 +54,9 @@
#include <stdbool.h>
#include "errno.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
#include "libdrm_lists.h"
#include "intel_bufmgr.h"
#include "intel_bufmgr_priv.h"
--
1.7.8.6
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] intel: Fix missing ETIME on BSD operating systems
@ 2012-11-10 5:24 Richard Yao
2012-11-10 20:01 ` Ben Widawsky
2012-11-10 20:12 ` Eric Anholt
0 siblings, 2 replies; 8+ messages in thread
From: Richard Yao @ 2012-11-10 5:24 UTC (permalink / raw)
To: intel-gfx; +Cc: gentoo-bsd, David Shao
From: David Shao <davshao@gmail.com>
Originally posted to Free Desktop bug #52549 by David Shao.
Resolves Gentoo Bug #433403.
Commit message by Richard Yao.
Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
---
intel/intel_bufmgr_gem.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 8d45839..512bc6f 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -54,6 +54,9 @@
#include <stdbool.h>
#include "errno.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT
+#endif
#include "libdrm_lists.h"
#include "intel_bufmgr.h"
#include "intel_bufmgr_priv.h"
--
1.7.8.6
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] intel: Fix missing ETIME on BSD operating systems
2012-11-10 5:24 Richard Yao
@ 2012-11-10 20:01 ` Ben Widawsky
2012-11-10 20:12 ` Eric Anholt
1 sibling, 0 replies; 8+ messages in thread
From: Ben Widawsky @ 2012-11-10 20:01 UTC (permalink / raw)
To: Richard Yao; +Cc: gentoo-bsd, intel-gfx, David Shao
On Sat, 10 Nov 2012 00:24:56 -0500
Richard Yao <ryao@cs.stonybrook.edu> wrote:
> From: David Shao <davshao@gmail.com>
>
> Originally posted to Free Desktop bug #52549 by David Shao.
> Resolves Gentoo Bug #433403.
> Commit message by Richard Yao.
>
> Reviewed-by: Richard Yao <ryao@gentoo.org>
> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
I've pushed this. Please add bug links as "References:" in the future.
Also, I suspect you will want a release as the result of this?
Thanks.
> ---
> intel/intel_bufmgr_gem.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
> index 8d45839..512bc6f 100644
> --- a/intel/intel_bufmgr_gem.c
> +++ b/intel/intel_bufmgr_gem.c
> @@ -54,6 +54,9 @@
> #include <stdbool.h>
>
> #include "errno.h"
> +#ifndef ETIME
> +#define ETIME ETIMEDOUT
> +#endif
> #include "libdrm_lists.h"
> #include "intel_bufmgr.h"
> #include "intel_bufmgr_priv.h"
--
Ben Widawsky, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] intel: Fix missing ETIME on BSD operating systems
2012-11-10 5:24 Richard Yao
2012-11-10 20:01 ` Ben Widawsky
@ 2012-11-10 20:12 ` Eric Anholt
2012-11-10 21:36 ` Richard Yao
1 sibling, 1 reply; 8+ messages in thread
From: Eric Anholt @ 2012-11-10 20:12 UTC (permalink / raw)
To: Richard Yao, intel-gfx; +Cc: gentoo-bsd, David Shao
[-- Attachment #1.1: Type: text/plain, Size: 556 bytes --]
Richard Yao <ryao@cs.stonybrook.edu> writes:
> From: David Shao <davshao@gmail.com>
>
> Originally posted to Free Desktop bug #52549 by David Shao.
> Resolves Gentoo Bug #433403.
> Commit message by Richard Yao.
Are you really unable to get the same errnos in your port of the kernel
modules? Having mismatched errno returns from upstream is a great way
to have obscure bugs on your port, given that our kernel guys like to
look for alternative errnos to be able to distinguish failure modes from
userland.
I don't like the idea of this patch landing.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] intel: Fix missing ETIME on BSD operating systems
2012-11-10 20:12 ` Eric Anholt
@ 2012-11-10 21:36 ` Richard Yao
2012-11-11 17:26 ` Ben Widawsky
0 siblings, 1 reply; 8+ messages in thread
From: Richard Yao @ 2012-11-10 21:36 UTC (permalink / raw)
To: Eric Anholt; +Cc: gentoo-bsd, intel-gfx, x11, David Shao
[-- Attachment #1.1: Type: text/plain, Size: 1116 bytes --]
On 11/10/2012 03:12 PM, Eric Anholt wrote:
> Richard Yao <ryao@cs.stonybrook.edu> writes:
>
>> From: David Shao <davshao@gmail.com>
>>
>> Originally posted to Free Desktop bug #52549 by David Shao.
>> Resolves Gentoo Bug #433403.
>> Commit message by Richard Yao.
>
> Are you really unable to get the same errnos in your port of the kernel
> modules? Having mismatched errno returns from upstream is a great way
> to have obscure bugs on your port, given that our kernel guys like to
> look for alternative errnos to be able to distinguish failure modes from
> userland.
>
> I don't like the idea of this patch landing.
I have added the FreeBSD x11 team alias to CC, which I probably should
have done in my original email. They are in a better position to answer
this than I am.
At present, MySQL also does this. Changing that would require changes to
the userland of FreeBSD (and other BSDs). The FreeBSD x11 team is in a
position to do that. I am in the process of getting Gentoo's X11 stack
working on Gentoo FreeBSD, so I am interested in their answer to your
question as well.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] intel: Fix missing ETIME on BSD operating systems
2012-11-10 21:36 ` Richard Yao
@ 2012-11-11 17:26 ` Ben Widawsky
0 siblings, 0 replies; 8+ messages in thread
From: Ben Widawsky @ 2012-11-11 17:26 UTC (permalink / raw)
To: Richard Yao; +Cc: gentoo-bsd, intel-gfx, x11, David Shao
On Sat, 10 Nov 2012 16:36:26 -0500
Richard Yao <ryao@gentoo.org> wrote:
> On 11/10/2012 03:12 PM, Eric Anholt wrote:
> > Richard Yao <ryao@cs.stonybrook.edu> writes:
> >
> >> From: David Shao <davshao@gmail.com>
> >>
> >> Originally posted to Free Desktop bug #52549 by David Shao.
> >> Resolves Gentoo Bug #433403.
> >> Commit message by Richard Yao.
> >
> > Are you really unable to get the same errnos in your port of the
> > kernel modules? Having mismatched errno returns from upstream is a
> > great way to have obscure bugs on your port, given that our kernel
> > guys like to look for alternative errnos to be able to distinguish
> > failure modes from userland.
> >
> > I don't like the idea of this patch landing.
>
> I have added the FreeBSD x11 team alias to CC, which I probably should
> have done in my original email. They are in a better position to
> answer this than I am.
>
> At present, MySQL also does this. Changing that would require changes
> to the userland of FreeBSD (and other BSDs). The FreeBSD x11 team is
> in a position to do that. I am in the process of getting Gentoo's X11
> stack working on Gentoo FreeBSD, so I am interested in their answer
> to your question as well.
>
>
Before pushing the patch, I did a bit of googling and I too found that
MySQL and LibreOffice does this, so it seemed okay to me. It's not
terribly prolific because I think many cross-platform products do not
use interfaces which return ETIME.
It sounds like BSD though is the only remaining holdout, as Windows and
OSX both seem to support ETIME.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-11-11 17:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-10 5:06 [PATCH] intel: Fix missing ETIME on BSD operating systems Richard Yao
-- strict thread matches above, loose matches on Subject: below --
2012-11-10 5:24 Richard Yao
2012-11-10 20:01 ` Ben Widawsky
2012-11-10 20:12 ` Eric Anholt
2012-11-10 21:36 ` Richard Yao
2012-11-11 17:26 ` Ben Widawsky
2012-11-10 5:23 Richard Yao
2012-11-09 22:06 Richard Yao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox