On Tue, May 06, 2025 at 04:04:45PM +0300, Jani Nikula wrote:
> On Tue, 06 May 2025, Jonathan Gray wrote:
> > On Tue, Nov 05, 2024 at 11:23:36AM +0200, Jani Nikula wrote:
> >> On Sun, 03 Nov 2024, Jonathan Gray wrote:
> >> > intel_pxp_gsccs_is_ready_for_sessions() i
On Tue, Nov 05, 2024 at 11:23:36AM +0200, Jani Nikula wrote:
> On Sun, 03 Nov 2024, Jonathan Gray wrote:
> > intel_pxp_gsccs_is_ready_for_sessions() is gated by CONFIG_DRM_I915_PXP
> > but called from intel_pxp.c which isn't. Provide a fallback inline
> > function to f
On Thu, Jan 11, 2024 at 11:56:20AM +0200, Jani Nikula wrote:
> On Thu, 11 Jan 2024, Jonathan Gray wrote:
> > use ATOMIC64_INIT() not ATOMIC_INIT() for atomic64_t
> >
> > Fixes: 3f09a0cd4ea3 ("drm: Add common fdinfo helper")
> > Signed-off-by: Jonathan Gray
On Mon, Nov 04, 2024 at 12:16:44PM +0200, Jani Nikula wrote:
> On Sun, 03 Nov 2024, Jonathan Gray wrote:
> > intel_pxp_gsccs_is_ready_for_sessions() is gated by CONFIG_DRM_I915_PXP
> > but called from intel_pxp.c which isn't. Provide a fallback inline
> > function to f
intel_pxp_gsccs_is_ready_for_sessions() is gated by CONFIG_DRM_I915_PXP
but called from intel_pxp.c which isn't. Provide a fallback inline
function to fix the non-optimised build.
Fixes: 99afb7cc8c44 ("drm/i915/pxp: Add ARB session creation and cleanup")
Signed-off-by
use ATOMIC64_INIT() not ATOMIC_INIT() for atomic64_t
Fixes: 3f09a0cd4ea3 ("drm: Add common fdinfo helper")
Signed-off-by: Jonathan Gray
---
drivers/gpu/drm/drm_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/
This still needs to be corrected.
On Thu, Nov 19, 2020 at 01:30:41PM +1100, Jonathan Gray wrote:
> Change the license of color_table.c to match color_table.h granting
> permission to modify and distribute.
>
> Signed-off-by: Jonathan Gray
> ---
> .../amd/display/modules/c
Change the license of color_table.c to match color_table.h granting
permission to modify and distribute.
Signed-off-by: Jonathan Gray
---
.../amd/display/modules/color/color_table.c | 26 +++
1 file changed, 21 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd
On Wed, Jul 03, 2019 at 12:39:10PM +0100, Eric Engestrom wrote:
> On Monday, 2019-05-13 02:52:04 +1000, Jonathan Gray wrote:
> > drm render nodes have the same major as drm primary devices but offset
> > the minor by a base of 128.
> >
> > I expected the name of t
drm render nodes have the same major as drm primary devices but offset
the minor by a base of 128.
I expected the name of the device to have numbering starting at 0 when
these non-linux codepaths were added (before OpenBSD had render nodes).
Signed-off-by: Jonathan Gray
---
xf86drm.c | 24
Unlike Linux the OpenBSD primary "drm" device name is substring of the
"drmR" render node device name and strncmp() tests resulted in render
nodes being flagged as primary nodes.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 8
1 file changed, 4 insertions(+), 4 dele
Compared to linux and libdrm Mesa is missing a VLV and ICL id.
0x0f30
ff049b6ce21d2814451afd4a116d001712e0116b
drm/i915: bind driver to ValleyView chipsets
0x8A70
d55cb4fa2cf0105bfb16b60a2846737b91fdc173
drm/i915/icl: Add the ICL PCI IDs
The Intel Media SDK describes these as
/* VLV */
x27;s legal team have given permission to change the license according
to Joonas Lahtinen.
v2: expand commit message and note permission from Intel legal
Signed-off-by: Jonathan Gray
Cc: Jani Nikula
Cc: Joonas Lahtinen
Cc: Rodrigo Vivi
Reviewed-by: Chris Wilson
---
drivers/gpu/drm
On Fri, Nov 23, 2018 at 03:01:06PM +0200, Joonas Lahtinen wrote:
> Quoting Jonathan Gray (2018-11-23 14:28:37)
> > On Fri, Nov 23, 2018 at 12:14:00PM +0200, Joonas Lahtinen wrote:
> > > Quoting Jonathan Gray (2018-11-20 00:31:22)
> > > > On Mon, Nov 19, 2018 at 10:09:
On Fri, Nov 23, 2018 at 12:14:00PM +0200, Joonas Lahtinen wrote:
> Quoting Jonathan Gray (2018-11-20 00:31:22)
> > On Mon, Nov 19, 2018 at 10:09:33AM -0800, Rodrigo Vivi wrote:
> > > On Sun, Nov 18, 2018 at 08:44:30PM +1100, Jonathan Gray wrote:
> > > > On Wed, Oc
On Mon, Nov 19, 2018 at 10:09:33AM -0800, Rodrigo Vivi wrote:
> On Sun, Nov 18, 2018 at 08:44:30PM +1100, Jonathan Gray wrote:
> > On Wed, Oct 31, 2018 at 08:43:03AM +, Chris Wilson wrote:
> > > Quoting Jonathan Gray (2018-10-31 00:56:12)
> > > > Chris Wilson s
On Wed, Oct 31, 2018 at 08:43:03AM +, Chris Wilson wrote:
> Quoting Jonathan Gray (2018-10-31 00:56:12)
> > Chris Wilson said Intel is willing to change the license of these files
> > to MIT.
> >
> > Signed-off-by: Jonathan Gray
> Reviewed-by: Chris Wilson
Chris Wilson said Intel is willing to change the license of these files
to MIT.
Signed-off-by: Jonathan Gray
---
drivers/gpu/drm/i915/i915_sw_fence.c | 7 ++-
drivers/gpu/drm/i915/i915_sw_fence.h | 5 ++---
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/i915
Commit b24413180f5600bcb3bb70fbed5cf186b60864bd added
"SPDX-License-Identifier: GPL-2.0" to files which previously had no
license, change this to MIT for intel_ringbuffer.h matching the license
text of intel_ringbuffer.c.
Signed-off-by: Jonathan Gray
---
drivers/gpu/drm/i915/intel_ri
On Mon, Oct 22, 2018 at 11:46:08AM +0100, Chris Wilson wrote:
> Quoting Jonathan Gray (2018-10-21 09:57:32)
> > Commit b24413180f5600bcb3bb70fbed5cf186b60864bd added
> > "SPDX-License-Identifier: GPL-2.0" to files which previously had no
> > license, change thi
Commit b24413180f5600bcb3bb70fbed5cf186b60864bd added
"SPDX-License-Identifier: GPL-2.0" to files which previously had no
license, change this to MIT for the tracing header matching the license
text of most of the other core drm files.
Signed-off-by: Jonathan Gray
---
drive
Commit b24413180f5600bcb3bb70fbed5cf186b60864bd added
"SPDX-License-Identifier: GPL-2.0" to files which previously had no
license, change this to MIT for i915 matching the license text of the
other i915 files.
Signed-off-by: Jonathan Gray
---
drivers/gpu/drm/i915/i915_trace.h
Commit b24413180f5600bcb3bb70fbed5cf186b60864bd added
"SPDX-License-Identifier: GPL-2.0" to files which previously had no
license, change this to MIT for radeon matching the license text of the
other radeon files.
Signed-off-by: Jonathan Gray
---
drivers/gpu/drm/radeon/mkregtable.c
Commit b24413180f5600bcb3bb70fbed5cf186b60864bd
'License cleanup: add SPDX GPL-2.0 license identifier to files with no license'
incorrectly added "SPDX-License-Identifier: GPL-2.0" to a file with MIT
license text. Change the SPDX identifier to match the license text.
Signed-o
On Tue, Jun 26, 2018 at 11:38:20AM +0100, Emil Velikov wrote:
> On 21 June 2018 at 16:32, Jonathan Gray wrote:
> > On Thu, Jun 21, 2018 at 03:24:49PM +0100, Emil Velikov wrote:
> >> Hi Jonathan,
> >>
> >> On 1 December 2016 at 04:18, Jonathan Gray wrote:
>
On Thu, Jun 21, 2018 at 03:24:49PM +0100, Emil Velikov wrote:
> Hi Jonathan,
>
> On 1 December 2016 at 04:18, Jonathan Gray wrote:
>
> > --- a/xf86drm.c
> > +++ b/xf86drm.c
> > @@ -3248,6 +3248,67 @@ drm_device_validate_flags(uint32_t flags)
> > */
>
On Tue, Feb 20, 2018 at 12:18:45PM +, Eric Engestrom wrote:
> On Tuesday, 2018-02-20 22:23:41 +1100, Jonathan Gray wrote:
> > On Tue, Feb 20, 2018 at 10:21:38AM +, Eric Engestrom wrote:
> > > On Tuesday, 2018-02-20 17:09:14 +1100, Jonathan Gray wrote:
> > > &
On Tue, Feb 20, 2018 at 10:21:38AM +, Eric Engestrom wrote:
> On Tuesday, 2018-02-20 17:09:14 +1100, Jonathan Gray wrote:
> > pthread-stubs is no longer required on OpenBSD and has been removed.
> > libpthread parts involved moved to libc.
>
> Great news!
> Rev
pthread-stubs is no longer required on OpenBSD and has been removed.
libpthread parts involved moved to libc.
Signed-off-by: Jonathan Gray
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 35378b33..d024fcd8 100644
--- a
On Tue, Mar 21, 2017 at 04:00:37PM +1100, Jonathan Gray wrote:
> On Tue, Mar 21, 2017 at 08:28:22AM +1100, Timothy Arceri wrote:
> >
> >
> > On 21/03/17 06:39, Emil Velikov wrote:
> > > On 20 March 2017 at 18:30, Matt Turner wrote:
> > > > On
On Wed, Mar 22, 2017 at 01:10:14PM -0700, Dylan Baker wrote:
> On Wed, Mar 22, 2017 at 12:40 PM, Alex Deucher wrote:
> > I guess I'm a little late to the party here, but I haven't had time to
> > really let all of this sink in and actually look at meson. It doesn't
> > seem so bad with a quick lo
On Tue, Mar 21, 2017 at 09:22:50AM -0700, Dylan Baker wrote:
> Quoting Jani Nikula (2017-03-21 07:44:55)
> > On Thu, 16 Mar 2017, Dylan Baker wrote:
> > > First it's written in python, [...]
> >
> > How does meson handle python 2 vs. 3? How do you avoid issues in the
> > build files wrt this? On
On Mon, Mar 20, 2017 at 11:30:25AM -0700, Matt Turner wrote:
> On Mon, Mar 20, 2017 at 6:55 AM, Emil Velikov
> wrote:
> > Seems like we ended up all over the place, so let me try afresh.
> >
> > Above all:
> > - Saying "I don't care" about your users is arrogant - let us _not_
> > do that, pleas
pt regenerated to make this work or Mesa won't build due
to libtool.m4 looking for specific strings in ld -v produced by bfd
binutils or gold...
And yes if you change the configure script to check for a newer version
I'll revert it locally like I did with the zlib one.
As I get the impre
On Thu, Mar 16, 2017 at 09:12:38PM -0700, Dylan Baker wrote:
> quoting jason ekstrand (2017-03-16 19:03:15)
> > on march 16, 2017 5:41:24 pm emil velikov wrote:
> > > and meson is not a thing on neither bsd(s), solaris (and derivatives) nor
> > > android :-\
> >
> > i have trouble bringing mysel
data obtained from /dev/drm0 would be ignored if /dev/drm1
could not be opened.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xf86drm.c b/xf86drm.c
index f684c017..7d7df184 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -3383,7 +3383,7
Implement a generic drmGetDeviceNameFromFd2() to use on non-linux
systems without sysfs.
v2: remove min < base test as requested by Emil
Signed-off-by: Jonathan Gray
---
xf86drm.c | 44 ++--
1 file changed, 42 insertions(+), 2 deletions(-)
diff --gi
ase test as requested by Emil
Signed-off-by: Jonathan Gray
---
xf86drm.c | 16
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/xf86drm.c b/xf86drm.c
index b5eeeb09..f6850aa2 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -2838,7 +2838,7 @@ out_close_dir:
char
On Mon, Dec 12, 2016 at 02:10:31PM +, Emil Velikov wrote:
> On 10 December 2016 at 05:52, Jonathan Gray wrote:
> > When constructing a path to a device node the minor number retrieved
> > from fstat needs to have the offset of the node type subtracted from it.
> > Co
On Mon, Dec 12, 2016 at 02:12:28PM +, Emil Velikov wrote:
> On 10 December 2016 at 05:52, Jonathan Gray wrote:
> > When iterating over all the device nodes if drmProcessPciDevice()
> > returned an error for any node the function would return an error,
> > ignoring any val
data obtained from /dev/drm0 would be ignored if /dev/drm1
could not be opened.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xf86drm.c b/xf86drm.c
index afce8ec..2dc679a 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -3383,7 +3383,7
Implement a generic drmGetDeviceNameFromFd2() to use on non-linux
systems without sysfs.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 44 ++--
1 file changed, 42 insertions(+), 2 deletions(-)
diff --git a/xf86drm.c b/xf86drm.c
index 6705605..afce8ec
When constructing a path to a device node the minor number retrieved
from fstat needs to have the offset of the node type subtracted from it.
Control and render node types have the same major as the primary node
but each has their own block of minor types at fixed offsets.
Signed-off-by: Jonathan
On Mon, Dec 05, 2016 at 05:56:40PM +, Emil Velikov wrote:
> On 1 December 2016 at 04:18, Jonathan Gray wrote:
> > DRI devices on OpenBSD are not in their own directory. They reside in
> > /dev with a large number of statically generated /dev nodes.
> >
> > Av
anges
- verify drmParseSubsystemType type is PCI
- add a comment describing why this was added
Signed-off-by: Jonathan Gray
---
xf86drm.c | 62 ++
1 file changed, 62 insertions(+)
diff --git a/xf86drm.c b/xf86drm.c
index ea24108..99
Implement drmParsePciBusInfo for OpenBSD by using the new
DRM_IOCTL_GET_PCIINFO ioctl.
v2: use drmGetMinorType to get node type instead of always
using DRM_NODE_PRIMARY.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 24
1 file changed, 24 insertions(+)
diff --git a
Implement drmParsePciDeviceInfo for OpenBSD by using the new
DRM_IOCTL_GET_PCIINFO ioctl.
v2: adapt to drmParsePciDeviceInfo changes and use drmOpenMinor
Signed-off-by: Jonathan Gray
---
xf86drm.c | 41 +
1 file changed, 41 insertions(+)
diff --git a
Implement drmParseSubsystemType for OpenBSD by always returning
DRM_BUS_PCI. No non-pci drm drivers are in the kernel and this is
unlikely to change anytime soon as the existing ones aren't permissively
licensed.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 2 ++
1 file changed, 2 inser
Implement drmGetMinorNameForFD for systems without sysfs by
adapting drm_get_device_name_for_fd() from the Mesa loader.
v2: use type parameter to select dev name instead of always
using DRM_DEV_NAME
Signed-off-by: Jonathan Gray
---
xf86drm.c | 35 ++-
1 file
On Tue, Nov 29, 2016 at 07:55:13PM +, Emil Velikov wrote:
> On 26 November 2016 at 00:40, Jonathan Gray wrote:
> > Implement drmParsePciDeviceInfo for OpenBSD by using the new
> > DRM_IOCTL_GET_PCIINFO ioctl.
> >
> > Signed-off-by: Jonathan Gray
On Tue, Nov 29, 2016 at 07:46:31PM +, Emil Velikov wrote:
> On 26 November 2016 at 00:40, Jonathan Gray wrote:
> > Implement drmParseSubsystemType for OpenBSD by always returning
> > DRM_BUS_PCI. No non-pci drm drivers are in the kernel and this is
> > unlikely to chang
On Tue, Nov 29, 2016 at 07:22:34PM +, Emil Velikov wrote:
> On 26 November 2016 at 00:40, Jonathan Gray wrote:
> > Implement drmGetMinorNameForFD for systems without sysfs by
> > adapting drm_get_device_name_for_fd() from the Mesa loader.
> >
> > S
On Tue, Nov 29, 2016 at 08:03:58PM +, Emil Velikov wrote:
> On 26 November 2016 at 00:40, Jonathan Gray wrote:
> > This avoids walking all of /dev and directly maps the fd to a path to a
> > primary node.
> >
> I realise that the code is pretty ugly/bad/etc, but
This avoids walking all of /dev and directly maps the fd to a path to a
primary node.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 41 +
1 file changed, 41 insertions(+)
diff --git a/xf86drm.c b/xf86drm.c
index 2a60b2e..a4b2506 100644
--- a/xf86drm.c
Implement drmParsePciBusInfo for OpenBSD by using the new
DRM_IOCTL_GET_PCIINFO ioctl.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 20
1 file changed, 20 insertions(+)
diff --git a/xf86drm.c b/xf86drm.c
index 581527b..2a60b2e 100644
--- a/xf86drm.c
+++ b/xf86drm.c
Implement drmParsePciDeviceInfo for OpenBSD by using the new
DRM_IOCTL_GET_PCIINFO ioctl.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 51 +++
1 file changed, 51 insertions(+)
diff --git a/xf86drm.c b/xf86drm.c
index b355c83..581527b 100644
--- a
Implement drmParseSubsystemType for OpenBSD by always returning
DRM_BUS_PCI. No non-pci drm drivers are in the kernel and this is
unlikely to change anytime soon as the existing ones aren't permissively
licensed.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 2 ++
1 file changed, 2 inser
Implement drmGetMinorNameForFD for systems without sysfs by
adapting drm_get_device_name_for_fd() from the Mesa loader.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/xf86drm.c b/xf86drm.c
index ed924a7
EBADMSG is a streams errno. OpenBSD does not implement streams and does
include the streams errnos, this commit fixes the build on OpenBSD.
None of the callers of this function check the return value for -EBADMSG.
Signed-off-by: Jonathan Gray
---
amdgpu/amdgpu_bo.c | 2 +-
1 file changed, 1
not the case on register window
architectures like SPARC and suggested passing a pointer as an argument
instead which avoids the ICE and allows the drm libraries requiring
atomics to build on sparc64 with the autoconf build.
Reported-by: Christian Weisgerber
Signed-off-by: Jonathan Gray
Reviewed-by
Add defines for the device minor names and make use of them
in drmGetMinorName() so the correct paths will be used on OpenBSD.
v2: don't add new defines to xf86drm.h to keep them out of the API
as requested by Emil.
Signed-off-by: Jonathan Gray
---
xf86drm.c
ested by Emil.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/xf86drm.c b/xf86drm.c
index c365778..47b2af3 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -82,9 +82,13 @@
#define DRM_MAJOR 34
#endif
-# ifdef __OpenBSD__
-# d
On Mon, Jul 20, 2015 at 05:06:09PM +0100, Emil Velikov wrote:
> On 18 July 2015 at 22:20, Jonathan Gray wrote:
> > As far as I can tell no OpenBSD platform ever used 81
> > for a drm major. While the value was added to libdrm in 2003
> > or earlier drm didn't a
This is implemented with kms ioctls so it could also be used as a
generic fallback.
Signed-off-by: Jonathan Gray
---
xf86drmMode.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/xf86drmMode.c b/xf86drmMode.c
index 529429e..1a199fa 100644
--- a
Add defines for the device minor names and make use of them
in drmGetMinorName() so the correct paths will be used on OpenBSD.
Signed-off-by: Jonathan Gray
---
xf86drm.c | 6 +++---
xf86drm.h | 15 +++
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/xf86drm.c b
As far as I can tell no OpenBSD platform ever used 81
for a drm major. While the value was added to libdrm in 2003
or earlier drm didn't appear in OpenBSD till 2007.
Of the OpenBSD platforms that support drm amd64/macppc/sparc64
use a major of 87, i386 uses 88.
Signed-off-by: Jonathan
onstruct)
>
> .man_fixup: | $(miscman_DATA)
>
> Cc: Jonathan Gray
> Signed-off-by: Emil Velikov
> ---
>
> Jonathan,
>
> With the following patch libdrm build fine on my Arch + bmake.
> The `dist' target is still broken, yet `all' and `check' work great
On Tue, Feb 10, 2015 at 10:37:16PM +, Emil Velikov wrote:
> On 02/02/15 00:14, Emil Velikov wrote:
> > Hi all,
> >
> > As mentioned a couple of days ago at #dri-devel some(most) users of
> > render nodes tend to rely on strict mapping between the primary and
> > render node. I.e. something a
RADEON_GEM_WAIT_IDLE is declared DRM_IOW but libdrm
uses it with drmCommandWriteRead instead of drmCommandWrite
which leads to the ioctl being unmatched and returning an
error on at least OpenBSD.
Problem noticed by and patch from Mark Kettenis.
Signed-off-by: Jonathan Gray
---
radeon
RADEON_GEM_WAIT_IDLE is declared DRM_IOW but libdrm
uses it with drmCommandWriteRead instead of drmCommandWrite
which leads to the ioctl being unmatched and returning an
error on at least OpenBSD.
Problem noticed by and patch from Mark Kettenis.
Signed-off-by: Jonathan Gray
---
radeon
70 matches
Mail list logo