git: drm/linux: Add i2c_get_adapdata and i2c_set_adapdata()

2017-12-02 Thread Francois Tigeot

commit d182fd934de710038f770e7f05a3e5394414130e
Author: François Tigeot 
Date:   Sun Dec 3 08:15:04 2017 +0100

drm/linux: Add i2c_get_adapdata and i2c_set_adapdata()

Summary of changes:
 sys/dev/drm/include/linux/i2c.h | 15 ++-
 1 file changed, 14 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d182fd934de710038f770e7f05a3e5394414130e


-- 
DragonFly BSD source repository


git: drm/linux: Fix linux/dma-mapping.h compilation...

2017-12-03 Thread Francois Tigeot

commit 8eafc85168bc63ccb6f4c4f752ad51838e360806
Author: François Tigeot 
Date:   Sun Dec 3 10:32:58 2017 +0100

drm/linux: Fix linux/dma-mapping.h compilation...

... with the drm/i915 codebase from Linux 4.8

* Move functions from .h to .c files in order to hide their implementations

* This avoids leaking DragonFly headers to Linux code or Linux headers
  to DragonFly code with associated bad side-effects like type redefinitions

Summary of changes:
 sys/conf/files   |  1 +
 sys/dev/drm/drm/Makefile |  1 +
 sys/dev/drm/include/linux/dma-mapping.h  | 31 ++
 sys/dev/drm/{include/linux/gfp.h => linux_dma.c} | 52 
 4 files changed, 33 insertions(+), 52 deletions(-)
 copy sys/dev/drm/{include/linux/gfp.h => linux_dma.c} (66%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8eafc85168bc63ccb6f4c4f752ad51838e360806


-- 
DragonFly BSD source repository


git: drm/linux: Implement sort()

2017-12-03 Thread Francois Tigeot

commit e8ac906797ba20f10638df4fe75897b9eac6b3ee
Author: François Tigeot 
Date:   Sun Dec 3 11:31:41 2017 +0100

drm/linux: Implement sort()

Summary of changes:
 sys/conf/files   |  1 +
 sys/dev/drm/drm/Makefile |  1 +
 sys/dev/drm/include/linux/{sysrq.h => sort.h}| 12 
 sys/dev/drm/{include/linux/reboot.h => linux_sort.c} | 13 +
 4 files changed, 19 insertions(+), 8 deletions(-)
 copy sys/dev/drm/include/linux/{sysrq.h => sort.h} (86%)
 copy sys/dev/drm/{include/linux/reboot.h => linux_sort.c} (85%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e8ac906797ba20f10638df4fe75897b9eac6b3ee


-- 
DragonFly BSD source repository


git: drm/linux: Improve linux/pci.h

2017-12-05 Thread Francois Tigeot

commit 59e561f580dddb57d32506d17e4fa762376dcbf8
Author: François Tigeot 
Date:   Tue Dec 5 21:52:31 2017 +0100

drm/linux: Improve linux/pci.h

* Add pci_get_drvdata and pci_set_drvdata()

* Add pci_register_driver()

Summary of changes:
 sys/dev/drm/include/linux/pci.h | 24 +++-
 1 file changed, 23 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/59e561f580dddb57d32506d17e4fa762376dcbf8


-- 
DragonFly BSD source repository


git: drm/radeon: Prevent a crash on load with newer drm code

2017-12-08 Thread Francois Tigeot

commit d235ee5f3490f63ba738915974154a0e2e49378d
Author: François Tigeot 
Date:   Fri Dec 8 22:57:34 2017 +0100

drm/radeon: Prevent a crash on load with newer drm code

* The existing drm/radeon code base contained an invalid unlock/lock
  sequence in radeon_irq_kms_init() which caused the kernel to crash
  during driver initialization with the drm code base from Linux 4.8

* Fixed by replacing the problematic function with its version from
  Linux 4.8

Summary of changes:
 sys/dev/drm/radeon/radeon_irq_kms.c | 16 ++--
 1 file changed, 14 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d235ee5f3490f63ba738915974154a0e2e49378d


-- 
DragonFly BSD source repository


git: Add dports-download-check target

2017-12-08 Thread Francois Tigeot

commit f0ef1af5f7504934e3e4f886566dca3c43d938e7
Author: Pierre-Alain TORET 
Date:   Wed Nov 29 10:16:42 2017 +0100

Add dports-download-check target

Signed-off-by: Pierre-Alain TORET 

Dragonfly-bug: 

Summary of changes:
 etc/Makefile.usr | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f0ef1af5f7504934e3e4f886566dca3c43d938e7


-- 
DragonFly BSD source repository


git: Add test to dports-download-check target

2017-12-09 Thread Francois Tigeot

commit 5c0c71f9a57b6f439064655420f1491425586730
Author: Pierre-Alain TORET 
Date:   Wed Nov 29 10:37:03 2017 +0100

Add test to dports-download-check target

Signed-off-by: Pierre-Alain TORET 

Dragonfly-bug: 

Summary of changes:
 etc/Makefile.usr | 2 ++
 1 file changed, 2 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5c0c71f9a57b6f439064655420f1491425586730


-- 
DragonFly BSD source repository


git: drm/i915: Add Coffee Lake support

2018-01-02 Thread Francois Tigeot

commit 8bbe1960fe796710efd0a16cb284f594c504d985
Author: François Tigeot 
Date:   Tue Jan 2 22:25:54 2018 +0100

drm/i915: Add Coffee Lake support

* This commit mostly adds PCI IDs

* Handle all Coffee Lake GPUs as Kaby Lake ones for now

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   | 16 
 sys/dev/drm/include/drm/i915_pciids.h | 20 
 2 files changed, 36 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8bbe1960fe796710efd0a16cb284f594c504d985


-- 
DragonFly BSD source repository


git: drm/linux: Add linux/irqreturn.h

2018-01-31 Thread Francois Tigeot

commit de2d801647a623a8d7d9e3af24a40debc6cabf97
Author: François Tigeot 
Date:   Wed Jan 31 22:58:23 2018 +0100

drm/linux: Add linux/irqreturn.h

Summary of changes:
 sys/dev/drm/include/drm/drmP.h   |  4 
 sys/dev/drm/include/linux/interrupt.h|  3 ++-
 .../drm/include/{acpi/video.h => linux/irqreturn.h}  | 20 +++-
 3 files changed, 9 insertions(+), 18 deletions(-)
 copy sys/dev/drm/include/{acpi/video.h => linux/irqreturn.h} (82%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/de2d801647a623a8d7d9e3af24a40debc6cabf97


-- 
DragonFly BSD source repository


git: drm/linux: Add some dma-buf stubs

2018-02-01 Thread Francois Tigeot

commit 94a0257664b93aa3bd263d30525e20f45e46e70e
Author: François Tigeot 
Date:   Thu Feb 1 21:14:52 2018 +0100

drm/linux: Add some dma-buf stubs

Summary of changes:
 sys/dev/drm/i915/intel_display.c   |  2 ++
 .../drm/include/linux/{irqreturn.h => dma-buf.h}   | 23 +++
 .../include/{asm/types.h => linux/dma_remapping.h} | 10 +++
 sys/dev/drm/include/linux/fence.h  | 34 +-
 sys/dev/drm/include/linux/reservation.h|  3 ++
 5 files changed, 59 insertions(+), 13 deletions(-)
 copy sys/dev/drm/include/linux/{irqreturn.h => dma-buf.h} (78%)
 copy sys/dev/drm/include/{asm/types.h => linux/dma_remapping.h} (89%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/94a0257664b93aa3bd263d30525e20f45e46e70e


-- 
DragonFly BSD source repository


git: drm/linux: Update hlist_for_each_entry_safe() from FreeBSD

2018-02-17 Thread Francois Tigeot

commit 176090d9868209414f69ef34c87991ca8d1b8a28
Author: François Tigeot 
Date:   Sat Feb 17 09:56:55 2018 +0100

drm/linux: Update hlist_for_each_entry_safe() from FreeBSD

Summary of changes:
 sys/dev/drm/include/linux/list.h | 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/176090d9868209414f69ef34c87991ca8d1b8a28


-- 
DragonFly BSD source repository


git: kernel: Add missing atomic_fcmpset_*() variants

2018-03-23 Thread Francois Tigeot

commit e5a570dfb64d50298e30db0464a7191e720de13e
Author: François Tigeot 
Date:   Fri Mar 23 10:59:33 2018 +0100

kernel: Add missing atomic_fcmpset_*() variants

They will be useful for newer drm code from Linux 4.8.

Summary of changes:
 sys/cpu/x86_64/include/atomic.h | 17 +
 1 file changed, 17 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e5a570dfb64d50298e30db0464a7191e720de13e


-- 
DragonFly BSD source repository


git: drm/linux: Add a few functions (mostly stubs)

2018-03-23 Thread Francois Tigeot

commit be7d031756545d4cdaa555a7ff37a4da7d31f0cc
Author: François Tigeot 
Date:   Fri Mar 23 15:09:48 2018 +0100

drm/linux: Add a few functions (mostly stubs)

Summary of changes:
 sys/dev/drm/include/linux/device.h |  6 ++
 sys/dev/drm/include/linux/kernel.h | 18 --
 sys/dev/drm/include/linux/sched.h  |  9 +
 sys/dev/drm/include/linux/wait.h   |  7 ++-
 4 files changed, 37 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/be7d031756545d4cdaa555a7ff37a4da7d31f0cc


-- 
DragonFly BSD source repository


git: drm/linux: Add cmpxchg_relaxed()

2018-03-24 Thread Francois Tigeot

commit f1ba1a88dc0a8458fed1229607fdcdcd640cb385
Author: François Tigeot 
Date:   Sat Mar 24 08:21:31 2018 +0100

drm/linux: Add cmpxchg_relaxed()

Obtained-from: FreeBSD

Summary of changes:
 sys/dev/drm/include/linux/atomic.h | 35 +++
 1 file changed, 35 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f1ba1a88dc0a8458fed1229607fdcdcd640cb385


-- 
DragonFly BSD source repository


git: drm/linux: Add signal_pending_state

2018-03-25 Thread Francois Tigeot

commit ce723fcee6f2ae70c635c8f0ed16f995641460a9
Author: François Tigeot 
Date:   Sun Mar 25 10:34:02 2018 +0200

drm/linux: Add signal_pending_state

Summary of changes:
 sys/dev/drm/include/linux/sched.h | 15 ++-
 1 file changed, 14 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ce723fcee6f2ae70c635c8f0ed16f995641460a9


-- 
DragonFly BSD source repository


git: sys/file.h: Expand struct file for drm/linux shim

2018-03-28 Thread Francois Tigeot

commit 9a4d587bc3eb9a5badc2c80c4f3b98a6fec8
Author: François Tigeot 
Date:   Wed Mar 28 08:07:04 2018 +0200

sys/file.h: Expand struct file for drm/linux shim

The struct file.private_data field will be used to pass drm_file 
information,
removing the need for some of the existing devfs cdevpriv code.

Distinct commit suggested-by: zrj

Summary of changes:
 sys/sys/file.h | 1 +
 1 file changed, 1 insertion(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9a4d587bc3eb9a5badc2c80c4f3b98a6fec8


-- 
DragonFly BSD source repository


git: Update pwcache(3) support files from NetBSD

2018-04-04 Thread Francois Tigeot

commit 2b478a479544de58d2da19f60b0f4c79a8694295
Author: François Tigeot 
Date:   Wed Apr 4 19:37:42 2018 +0200

Update pwcache(3) support files from NetBSD

* Bringing the API up-to-date with NetBSD and FreeBSD

* This effectively adds the uid_from_user() and gid_from_group()
  functions, the reverse of user_from_uid() and groups_from_gid()

* (void) casts for discarded return values have been removed

Summary of changes:
 lib/libc/gen/pwcache.3| 138 ++-
 lib/libc/gen/pwcache.c| 664 +++---
 bin/pax/cache.h => lib/libc/gen/pwcache.h |  12 +-
 3 files changed, 738 insertions(+), 76 deletions(-)
 copy bin/pax/cache.h => lib/libc/gen/pwcache.h (89%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2b478a479544de58d2da19f60b0f4c79a8694295


-- 
DragonFly BSD source repository


git: libc: Replace vis(3) and unvis(3) files with NetBSD versions

2018-04-09 Thread Francois Tigeot

commit 4be4de019fe4a28d5378192245290895096def17
Author: François Tigeot 
Date:   Mon Apr 9 21:54:26 2018 +0200

libc: Replace vis(3) and unvis(3) files with NetBSD versions

* Rendering the corresponding APIs compatible with NetBSD and FreeBSD.

* Keep strnvis() as-is, keeping it compatible with previous DragonFly
  versions, OpenBSD and libbsd

* We already had the original OpenBSD version of strnvis(), which
  predates the NetBSD one by more than 10 years

* New userland utilities code partially obtained from FreeBSD.

Reviewed-by: swildner

Summary of changes:
 include/vis.h |  64 +++-
 lib/libc/gen/Makefile.inc |   6 +-
 lib/libc/gen/Symbol.map   |  13 +
 lib/libc/gen/unvis.3  | 178 ++---
 lib/libc/gen/unvis.c  | 517 --
 lib/libc/gen/vis.3| 426 -
 lib/libc/gen/vis.c| 841 ++
 usr.bin/showmount/showmount.c |   4 +-
 usr.sbin/fstyp/fstyp.c|   5 +-
 9 files changed, 1606 insertions(+), 448 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4be4de019fe4a28d5378192245290895096def17


-- 
DragonFly BSD source repository


git: drm: Implement parts of the Linux irq subsystem

2018-04-25 Thread Francois Tigeot

commit 183e2373896e4ea605435a6bd8f943e8273bf8cd
Author: François Tigeot 
Date:   Wed Apr 25 11:52:23 2018 +0200

drm: Implement parts of the Linux irq subsystem

* Allowing to reuse more drm drivers code as-is from Linux

* Also allowing Linux irq functions to return expected status
  codes, increasing general driver robustness

Tested-with: many i915 devices, Radeon HD6450

Summary of changes:
 sys/conf/files|   1 +
 sys/dev/drm/drm/Makefile  |   1 +
 sys/dev/drm/drm_dragonfly.c   |  13 
 sys/dev/drm/drm_drv.c |  29 
 sys/dev/drm/drm_fops.c|   9 ---
 sys/dev/drm/drm_irq.c |  16 +++--
 sys/dev/drm/i915/i915_irq.c   |  60 +---
 sys/dev/drm/include/drm/drmP.h|   7 +-
 sys/dev/drm/include/linux/interrupt.h |  11 ++-
 sys/dev/drm/include/linux/irqreturn.h |   8 ++-
 sys/dev/drm/include/linux/pci.h   |   5 ++
 sys/dev/drm/linux_irq.c   | 127 ++
 sys/dev/drm/radeon/radeon_irq_kms.c   |  12 ++--
 sys/dev/drm/radeon/radeon_irq_kms.h   |   2 +-
 14 files changed, 229 insertions(+), 72 deletions(-)
 create mode 100644 sys/dev/drm/linux_irq.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/183e2373896e4ea605435a6bd8f943e8273bf8cd


-- 
DragonFly BSD source repository


git: drm: Sync include directives with Linux

2018-05-06 Thread Francois Tigeot

commit d6aa1cc5dbab8f85317a8255f3e4bf712a19fc3f
Author: François Tigeot 
Date:   Sun May 6 16:33:01 2018 +0200

drm: Sync include directives with Linux

* Add a few key include/asm or include/linux headers

* Move some code from .h to .c files in order to avoid clashes
  between the DragonFly and Linux variants of kmalloc() and kfree()

Summary of changes:
 sys/conf/files |   1 +
 sys/dev/drm/drm/Makefile   |   1 +
 .../drm/include/{linux/kthread.h => asm/current.h} |  10 +-
 sys/dev/drm/include/asm/memory_model.h |   3 +-
 sys/dev/drm/include/linux/cache.h  |   3 +-
 sys/dev/drm/include/linux/capability.h |   3 +
 .../include/linux/{mmu_notifier.h => cpufreq.h}|  13 +-
 sys/dev/drm/include/linux/{fs.h => cpumask.h}  |  15 +-
 sys/dev/drm/include/linux/fs.h |  12 +-
 sys/dev/drm/include/linux/hardirq.h|   4 +-
 sys/dev/drm/include/linux/interrupt.h  |   1 +
 sys/dev/drm/include/linux/kernel.h |  15 +-
 sys/dev/drm/include/linux/{fs.h => kmod.h} |  14 +-
 sys/dev/drm/include/linux/kthread.h|   3 +-
 sys/dev/drm/include/linux/mm.h |   9 +-
 .../include/linux/{mmu_notifier.h => mm_types.h}   |  17 +-
 sys/dev/drm/include/linux/mmu_notifier.h   |   3 +-
 sys/dev/drm/include/linux/module.h |   1 +
 sys/dev/drm/include/linux/mutex.h  |   6 +-
 sys/dev/drm/include/linux/{hardirq.h => pid.h} |  16 +-
 sys/dev/drm/include/linux/printk.h |   4 +-
 sys/dev/drm/include/linux/rcupdate.h   |  16 +-
 sys/dev/drm/include/linux/scatterlist.h| 193 +-
 sys/dev/drm/include/linux/sched.h  |   7 +-
 sys/dev/drm/include/linux/{kthread.h => stddef.h}  |  12 +-
 .../linux/{mmu_notifier.h => stop_machine.h}   |  12 +-
 sys/dev/drm/include/linux/string.h |  23 +--
 sys/dev/drm/include/linux/{kthread.h => threads.h} |  10 +-
 sys/dev/drm/include/linux/wait.h   |   3 +-
 sys/dev/drm/include/linux/workqueue.h  |  32 +--
 sys/dev/drm/include/linux/ww_mutex.h   |   2 +
 sys/dev/drm/linux_compat.c |  14 ++
 sys/dev/drm/linux_scatterlist.c| 223 +
 sys/dev/drm/linux_workqueue.c  |  23 ++-
 34 files changed, 419 insertions(+), 305 deletions(-)
 copy sys/dev/drm/include/{linux/kthread.h => asm/current.h} (89%)
 copy sys/dev/drm/include/linux/{mmu_notifier.h => cpufreq.h} (83%)
 copy sys/dev/drm/include/linux/{fs.h => cpumask.h} (84%)
 copy sys/dev/drm/include/linux/{fs.h => kmod.h} (85%)
 copy sys/dev/drm/include/linux/{mmu_notifier.h => mm_types.h} (78%)
 copy sys/dev/drm/include/linux/{hardirq.h => pid.h} (87%)
 copy sys/dev/drm/include/linux/{kthread.h => stddef.h} (87%)
 copy sys/dev/drm/include/linux/{mmu_notifier.h => stop_machine.h} (85%)
 copy sys/dev/drm/include/linux/{kthread.h => threads.h} (89%)
 create mode 100644 sys/dev/drm/linux_scatterlist.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d6aa1cc5dbab8f85317a8255f3e4bf712a19fc3f


-- 
DragonFly BSD source repository


git: drm/linux: Add do_gettimeofday()

2018-05-06 Thread Francois Tigeot

commit f4fb8e4f37935cca0f873a4996a729fbe8c1f09a
Author: François Tigeot 
Date:   Sun May 6 16:42:05 2018 +0200

drm/linux: Add do_gettimeofday()

Summary of changes:
 sys/dev/drm/include/linux/timekeeping.h | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f4fb8e4f37935cca0f873a4996a729fbe8c1f09a


-- 
DragonFly BSD source repository


git: drm/linux: Start using stop_machine.h

2018-05-06 Thread Francois Tigeot

commit 45a22cb31ff3bfd7985521b834a5d32293f541ff
Author: François Tigeot 
Date:   Mon May 7 07:28:35 2018 +0200

drm/linux: Start using stop_machine.h

Summary of changes:
 sys/dev/drm/i915/i915_gem_gtt.c  | 1 +
 sys/dev/drm/include/linux/stop_machine.h | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/45a22cb31ff3bfd7985521b834a5d32293f541ff


-- 
DragonFly BSD source repository


git: drm/linux: Add or improve various *printf functions

2018-05-06 Thread Francois Tigeot

commit 67bcf553a6078b315915c5da8dfc4d2c374f43be
Author: François Tigeot 
Date:   Mon May 7 07:45:28 2018 +0200

drm/linux: Add or improve various *printf functions

Summary of changes:
 sys/dev/drm/include/linux/kernel.h | 24 
 1 file changed, 20 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/67bcf553a6078b315915c5da8dfc4d2c374f43be


-- 
DragonFly BSD source repository


git: drm/linux: Add scnprintf()

2018-05-07 Thread Francois Tigeot

commit a4e0d8b7924debd33eb82becee9e9b7b4a80336d
Author: François Tigeot 
Date:   Mon May 7 09:02:10 2018 +0200

drm/linux: Add scnprintf()

Obtained-from: FreeBSD

Summary of changes:
 sys/dev/drm/include/linux/kernel.h | 15 +--
 1 file changed, 13 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a4e0d8b7924debd33eb82becee9e9b7b4a80336d


-- 
DragonFly BSD source repository


git: drm/i915: Start building i915_gpu_error.c

2018-05-07 Thread Francois Tigeot

commit 09e9e2f175726286360ddd5a4cb2731e9e3dcc61
Author: François Tigeot 
Date:   Mon May 7 09:42:24 2018 +0200

drm/i915: Start building i915_gpu_error.c

Summary of changes:
 sys/dev/drm/i915/i915_gpu_error.c | 23 ++-
 sys/dev/drm/i915/intel_display.c  |  2 --
 sys/dev/drm/i915/intel_overlay.c  |  4 +---
 3 files changed, 15 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/09e9e2f175726286360ddd5a4cb2731e9e3dcc61


-- 
DragonFly BSD source repository


git: drm/linux: Add cond_resched()

2018-05-13 Thread Francois Tigeot

commit ff14819b96257c10a51574a6d16b740b5243a31a
Author: François Tigeot 
Date:   Sun May 13 09:13:59 2018 +0200

drm/linux: Add cond_resched()

Summary of changes:
 sys/dev/drm/i915/intel_uncore.c   | 4 ++--
 sys/dev/drm/include/linux/sched.h | 8 
 2 files changed, 10 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ff14819b96257c10a51574a6d16b740b5243a31a


-- 
DragonFly BSD source repository


git: kernel: Remove vm_zeroidle.c

2018-05-13 Thread Francois Tigeot

commit b0ae6fbc476300826e81454e90c408272c8b78c9
Author: François Tigeot 
Date:   Sun May 13 09:41:31 2018 +0200

kernel: Remove vm_zeroidle.c

Background page zeroing doesn't bring any performance benefit
on modern hardware.

Summary of changes:
 sys/conf/files   |   1 -
 sys/vm/vm_zeroidle.c | 289 ---
 2 files changed, 290 deletions(-)
 delete mode 100644 sys/vm/vm_zeroidle.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b0ae6fbc476300826e81454e90c408272c8b78c9


-- 
DragonFly BSD source repository


git: drm - No need to protect a callout struct from MP accesses.

2018-05-23 Thread Francois Tigeot

commit 8e5a4c8d338f36b761d90b3557f8b0ac49341a7a
Author: Imre Vadász 
Date:   Wed May 23 20:21:10 2018 +0200

drm - No need to protect a callout struct from MP accesses.

Summary of changes:
 sys/dev/drm/include/linux/workqueue.h | 8 
 1 file changed, 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8e5a4c8d338f36b761d90b3557f8b0ac49341a7a


-- 
DragonFly BSD source repository


git: drm/linux/timer.h: No need to protect a callout struct from MP accesses

2018-05-23 Thread Francois Tigeot

commit c369667e3be1de7c09aa714f98c45c092acc3548
Author: François Tigeot 
Date:   Wed May 23 22:33:36 2018 +0200

drm/linux/timer.h: No need to protect a callout struct from MP accesses

Spotted-by: Imre Vadász 

Summary of changes:
 sys/dev/drm/include/linux/timer.h | 25 ++---
 1 file changed, 6 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c369667e3be1de7c09aa714f98c45c092acc3548


-- 
DragonFly BSD source repository


git: drm/i915: Sync hpd_pulse return values with Linux

2018-05-26 Thread Francois Tigeot

commit fae244aff752683280061226910123e9186d2e37
Author: François Tigeot 
Date:   Sat May 26 13:32:07 2018 +0200

drm/i915: Sync hpd_pulse return values with Linux

Now that we know how to handle irqreturn enums, we can use more
Linux code unmodified.

Summary of changes:
 sys/dev/drm/i915/intel_dp.c  | 10 +-
 sys/dev/drm/i915/intel_drv.h |  6 ++
 sys/dev/drm/i915/intel_hotplug.c |  4 ++--
 3 files changed, 9 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fae244aff752683280061226910123e9186d2e37


-- 
DragonFly BSD source repository


git: drm: rman_get_start() returns u_longs, not ints

2018-06-06 Thread Francois Tigeot


commit 11949c65b1973d36264c1b7a2463b16638a4f2a5
Author: François Tigeot 
Date:   Wed Jun 6 22:37:43 2018 +0200

drm: rman_get_start() returns u_longs, not ints

This had not been correctly handled in 
183e2373896e4ea605435a6bd8f943e8273bf8cd

Summary of changes:
 sys/dev/drm/drm_dragonfly.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/11949c65b1973d36264c1b7a2463b16638a4f2a5


-- 
DragonFly BSD source repository


git: drm: Define struct page and use it everywhere

2018-06-09 Thread Francois Tigeot


commit f0bba3d1dd5ba7adfae61269b5424d4ad443ab97
Author: François Tigeot 
Date:   Sat Jun 9 18:18:33 2018 +0200

drm: Define struct page and use it everywhere

* Removing countless differences with Linux

* struct page is essentially struct vm_page named differently.
  Both can be casted to the other one without further thought.

Summary of changes:
 sys/dev/drm/drm_cache.c|  8 +--
 sys/dev/drm/i915/i915_cmd_parser.c |  2 +-
 sys/dev/drm/i915/i915_drv.h|  4 +-
 sys/dev/drm/i915/i915_gem.c| 36 ++---
 sys/dev/drm/i915/i915_gem_fence.c  |  4 +-
 sys/dev/drm/i915/i915_gem_gtt.h|  2 +-
 sys/dev/drm/i915/i915_gem_render_state.c   |  2 +-
 sys/dev/drm/i915/i915_guc_submission.c |  2 +-
 sys/dev/drm/i915/intel_lrc.c   |  2 +-
 sys/dev/drm/i915/intel_ringbuffer.c|  2 +-
 sys/dev/drm/include/asm/cacheflush.h   | 14 +++--
 sys/dev/drm/include/asm/memory_model.h | 11 +++-
 sys/dev/drm/include/asm/page.h | 12 -
 sys/dev/drm/include/asm/pgtable.h  |  4 +-
 sys/dev/drm/include/drm/drmP.h |  2 +-
 sys/dev/drm/include/drm/ttm/ttm_bo_api.h   |  2 +-
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h| 14 ++---
 sys/dev/drm/include/drm/ttm/ttm_memory.h   |  6 +--
 sys/dev/drm/include/linux/dma-mapping.h|  7 +--
 sys/dev/drm/include/linux/gfp.h| 14 +++--
 sys/dev/drm/include/linux/highmem.h| 16 +++---
 sys/dev/drm/include/linux/mm.h | 10 ++--
 sys/dev/drm/include/linux/mm_types.h   |  4 +-
 sys/dev/drm/include/linux/{pid.h => mmdebug.h} | 14 +++--
 sys/dev/drm/include/linux/{mm_types.h => mmzone.h} | 23 +
 sys/dev/drm/include/linux/scatterlist.h|  8 +--
 sys/dev/drm/include/linux/shmem_fs.h   |  3 +-
 sys/dev/drm/include/linux/swap.h   | 15 --
 sys/dev/drm/include/linux/vmalloc.h|  2 +-
 sys/dev/drm/linux_scatterlist.c|  4 +-
 sys/dev/drm/linux_shmem.c  |  4 +-
 sys/dev/drm/linux_vmalloc.c|  6 +--
 sys/dev/drm/radeon/radeon.h|  4 +-
 sys/dev/drm/radeon/radeon_gart.c   |  2 +-
 sys/dev/drm/radeon/radeon_ttm.c|  4 +-
 sys/dev/drm/ttm/ttm_bo.c   |  6 +--
 sys/dev/drm/ttm/ttm_bo_util.c  | 14 ++---
 sys/dev/drm/ttm/ttm_bo_vm.c|  2 +-
 sys/dev/drm/ttm/ttm_memory.c   |  4 +-
 sys/dev/drm/ttm/ttm_page_alloc.c   | 59 --
 sys/dev/drm/ttm/ttm_tt.c   | 16 +++---
 41 files changed, 204 insertions(+), 166 deletions(-)
 copy sys/dev/drm/include/linux/{pid.h => mmdebug.h} (90%)
 copy sys/dev/drm/include/linux/{mm_types.h => mmzone.h} (84%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f0bba3d1dd5ba7adfae61269b5424d4ad443ab97


-- 
DragonFly BSD source repository


git: drm/i915: iic(4) is not used anymore

2018-06-17 Thread Francois Tigeot


commit 3fc41639f7121effb35d0cf584e0efda63c1be78
Author: François Tigeot 
Date:   Sun Jun 17 21:29:59 2018 +0200

drm/i915: iic(4) is not used anymore

Summary of changes:
 sys/dev/drm/i915/Makefile   | 2 +-
 sys/dev/drm/i915/i915_drv.c | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3fc41639f7121effb35d0cf584e0efda63c1be78


-- 
DragonFly BSD source repository


git: drm/i915: Add a module_init() directive

2018-06-19 Thread Francois Tigeot


commit bd1f95df5aa13b1b1657e37b11c3d0f500a42ff7
Author: François Tigeot 
Date:   Tue Jun 19 23:13:09 2018 +0200

drm/i915: Add a module_init() directive

Summary of changes:
 sys/dev/drm/i915/i915_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bd1f95df5aa13b1b1657e37b11c3d0f500a42ff7


-- 
DragonFly BSD source repository


git: install(1): Add a -N option, improving NetBSD and FreeBSD compatibility

2018-07-01 Thread Francois Tigeot


commit 4f9e410836f2d666040f815d7ab405320c05f647
Author: François Tigeot 
Date:   Sun Jul 1 22:52:31 2018 +0200

install(1): Add a -N option, improving NetBSD and FreeBSD compatibility

* -N is the standard NetBSD and FreeBSD install(1) option to use
  alternative user and group databases

* DragonFly previously used -L to do the same thing. Keep this option
  but warn to use -N instead.

Summary of changes:
 usr.bin/xinstall/install.1  | 27 ++-
 usr.bin/xinstall/xinstall.c | 18 +++---
 2 files changed, 29 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4f9e410836f2d666040f815d7ab405320c05f647


-- 
DragonFly BSD source repository


git: drm/linux: add agp_backend.h

2018-07-21 Thread Francois Tigeot


commit 17eb2c95c7bf3982691d692dbecb44601dcfc2c5
Author: François Tigeot 
Date:   Sat Jul 21 17:01:58 2018 +0200

drm/linux: add agp_backend.h

Summary of changes:
 sys/dev/drm/include/drm/drmP.h   | 1 +
 sys/dev/drm/include/drm/drm_agpsupport.h | 1 +
 sys/dev/drm/include/linux/{dma_remapping.h => agp_backend.h} | 8 +---
 3 files changed, 7 insertions(+), 3 deletions(-)
 copy sys/dev/drm/include/linux/{dma_remapping.h => agp_backend.h} (92%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/17eb2c95c7bf3982691d692dbecb44601dcfc2c5


-- 
DragonFly BSD source repository


git: drm: dev->dma_lock doesn't exist

2018-07-21 Thread Francois Tigeot


commit 394ce2978e54428b83a3fcabe5b711ad27fd3342
Author: François Tigeot 
Date:   Sat Jul 21 18:02:58 2018 +0200

drm: dev->dma_lock doesn't exist

Summary of changes:
 sys/dev/drm/drm_bufs.c | 46 --
 sys/dev/drm/drm_dma.c  | 23 +++--
 sys/dev/drm/drm_sysctl.c   |  2 --
 sys/dev/drm/drm_vm.c   |  4 
 sys/dev/drm/include/drm/drmP.h |  1 -
 5 files changed, 39 insertions(+), 37 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/394ce2978e54428b83a3fcabe5b711ad27fd3342


-- 
DragonFly BSD source repository


git: drm: Sync a few bits with Linux 4.7.10

2018-07-21 Thread Francois Tigeot


commit 8b983a81fa5b284a3974df0506383197a127
Author: François Tigeot 
Date:   Sat Jul 21 18:20:06 2018 +0200

drm: Sync a few bits with Linux 4.7.10

Summary of changes:
 sys/dev/drm/drm_auth.c | 30 ++
 sys/dev/drm/drm_context.c  |  2 --
 sys/dev/drm/drm_dp_helper.c|  3 ++-
 sys/dev/drm/drm_internal.h |  1 -
 sys/dev/drm/drm_lock.c | 36 
 sys/dev/drm/include/drm/drmP.h |  1 -
 6 files changed, 16 insertions(+), 57 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b983a81fa5b284a3974df0506383197a127


-- 
DragonFly BSD source repository


git: drm: Reduce drm_bufs.c differences with Linux 4.7.10

2018-07-22 Thread Francois Tigeot


commit 88fc0f688c71bd9bdaa7df1abbdeb57492b3744e
Author: François Tigeot 
Date:   Sun Jul 22 22:37:13 2018 +0200

drm: Reduce drm_bufs.c differences with Linux 4.7.10

Summary of changes:
 sys/dev/drm/drm_bufs.c | 152 ++---
 1 file changed, 120 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/88fc0f688c71bd9bdaa7df1abbdeb57492b3744e


-- 
DragonFly BSD source repository


git: drm: Partial sync with Linux 4.7.10

2018-07-24 Thread Francois Tigeot


commit c4bb8e01c525f72b1df5200e92d8bc406dc3a643
Author: François Tigeot 
Date:   Tue Jul 24 23:21:05 2018 +0200

drm: Partial sync with Linux 4.7.10

* Implement O_NONBLOCK support on /dev/dri/cardN

* Use filp->private_data in more places

* Add locking directives

Summary of changes:
 sys/dev/drm/drm_fops.c | 74 --
 sys/dev/drm/drm_ioctl.c| 12 ++-
 sys/dev/drm/drm_vm.c   | 33 ---
 sys/dev/drm/include/drm/drmP.h | 20 
 sys/dev/drm/include/linux/fs.h |  2 ++
 5 files changed, 67 insertions(+), 74 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c4bb8e01c525f72b1df5200e92d8bc406dc3a643


-- 
DragonFly BSD source repository


git: install(1): Add a -l flag for creating hard or soft links

2018-07-27 Thread Francois Tigeot


commit a23d58e77370ee6d927e708fda68195d71417ded
Author: François Tigeot 
Date:   Sat Jul 28 08:50:52 2018 +0200

install(1): Add a -l flag for creating hard or soft links

* This flag was originally introduced in NetBSD in March 1997 and then added
  to FreeBSD in January 2013.

* It will make it easier to update dports(7) from FreeBSD ports.

* The previous DragonFly-specific -l flag was no longer used.

Obtained-from: NetBSD and FreeBSD

Summary of changes:
 usr.bin/xinstall/Makefile   |   4 +
 usr.bin/xinstall/install.1  |  32 ++-
 usr.bin/xinstall/xinstall.c | 484 
 3 files changed, 383 insertions(+), 137 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a23d58e77370ee6d927e708fda68195d71417ded


-- 
DragonFly BSD source repository


git: drm: More Linux 4.7.10 synchronization

2018-07-30 Thread Francois Tigeot


commit 9acaa9544f4268539b11d8c54965b7cda5b9f307
Author: François Tigeot 
Date:   Mon Jul 30 22:44:20 2018 +0200

drm: More Linux 4.7.10 synchronization

* Add missing event handling code

* Sync or add a few drm_fops.c functions

* Remove unneeded kqueue locking

Summary of changes:
 sys/dev/drm/drm_fops.c | 89 +-
 sys/dev/drm/include/drm/drmP.h |  5 +--
 2 files changed, 64 insertions(+), 30 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9acaa9544f4268539b11d8c54965b7cda5b9f307


-- 
DragonFly BSD source repository


git: drm: simplify authentication management

2018-07-31 Thread Francois Tigeot


commit c90492810f56e1f820f5df990e3718c512424be9
Author: François Tigeot 
Date:   Tue Jul 31 23:04:04 2018 +0200

drm: simplify authentication management

Summary of changes:
 sys/dev/drm/drm_auth.c | 132 +++--
 sys/dev/drm/drm_fops.c |  12 ++--
 sys/dev/drm/include/drm/drmP.h |  10 +---
 3 files changed, 33 insertions(+), 121 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c90492810f56e1f820f5df990e3718c512424be9


-- 
DragonFly BSD source repository


git: drm: Sync drm_bufs.c with Linux 4.7.10

2018-08-01 Thread Francois Tigeot


commit ef1307349618bb66c4a1722a8c62cb2c5789a45c
Author: François Tigeot 
Date:   Wed Aug 1 21:27:14 2018 +0200

drm: Sync drm_bufs.c with Linux 4.7.10

Summary of changes:
 sys/dev/drm/drm_bufs.c   | 896 +--
 sys/dev/drm/include/drm/drm_legacy.h |   2 +-
 2 files changed, 541 insertions(+), 357 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ef1307349618bb66c4a1722a8c62cb2c5789a45c


-- 
DragonFly BSD source repository


git: drm: Sync drm_read() with Linux 4.7.10

2018-08-05 Thread Francois Tigeot


commit d420a8a88d271f244e34680d0f9bf03c7bf2f5ed
Author: François Tigeot 
Date:   Sun Aug 5 17:07:46 2018 +0200

drm: Sync drm_read() with Linux 4.7.10

This should fix various issues related to multithreaded races
and make the drm subsystem more robust.

Summary of changes:
 sys/dev/drm/drm_fops.c | 102 -
 1 file changed, 58 insertions(+), 44 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d420a8a88d271f244e34680d0f9bf03c7bf2f5ed


-- 
DragonFly BSD source repository


git: drm/linux: Add field devfn to struct pci_dev

2018-08-09 Thread Francois Tigeot


commit 1c45d30a4e0e4b96756104bd0675975a4e92c1e1
Author: François Tigeot 
Date:   Thu Aug 9 23:01:42 2018 +0200

drm/linux: Add field devfn to struct pci_dev

Summary of changes:
 sys/dev/drm/drm_dragonfly.c | 2 ++
 sys/dev/drm/include/linux/pci.h | 8 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1c45d30a4e0e4b96756104bd0675975a4e92c1e1


-- 
DragonFly BSD source repository


git: drm: Add CONFIG_PCI

2018-08-10 Thread Francois Tigeot


commit 14e0ef2a112a0ac782861f92031895bfb0ef446e
Author: François Tigeot 
Date:   Fri Aug 10 21:07:16 2018 +0200

drm: Add CONFIG_PCI

Summary of changes:
 sys/conf/options  | 1 +
 sys/config/LINT64 | 3 +++
 sys/config/X86_64_GENERIC | 3 +++
 3 files changed, 7 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/14e0ef2a112a0ac782861f92031895bfb0ef446e


-- 
DragonFly BSD source repository


git: drm: Sync drm_pci.c with Linux 4.7.10

2018-08-10 Thread Francois Tigeot


commit d4d73b300f540466ae50db17e4129ebe6af48762
Author: François Tigeot 
Date:   Fri Aug 10 21:11:19 2018 +0200

drm: Sync drm_pci.c with Linux 4.7.10

Summary of changes:
 sys/dev/drm/drm_drv.c   |   4 +-
 sys/dev/drm/drm_gem.c   |   2 +-
 sys/dev/drm/drm_irq.c   |   2 +-
 sys/dev/drm/drm_pci.c   | 321 ++--
 sys/dev/drm/i915/i915_drv.c |   2 +-
 sys/dev/drm/include/drm/drmP.h  | 128 ++--
 sys/dev/drm/radeon/radeon_drv.c |   1 -
 7 files changed, 358 insertions(+), 102 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d4d73b300f540466ae50db17e4129ebe6af48762


-- 
DragonFly BSD source repository


git: drm/linux: Rewrite READ_ONCE() and WRITE_ONCE()

2018-09-01 Thread Francois Tigeot


commit 7ddbbbe51d94c21f884c497f697e3c1f8b65de64
Author: François Tigeot 
Date:   Sat Sep 1 08:34:40 2018 +0200

drm/linux: Rewrite READ_ONCE() and WRITE_ONCE()

These macros were broken when used with some complex types like
pointers to pointers.

Summary of changes:
 sys/dev/drm/include/linux/compiler.h | 92 ++--
 1 file changed, 78 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7ddbbbe51d94c21f884c497f697e3c1f8b65de64


-- 
DragonFly BSD source repository


git: drm: Use a dedicated .h file for configuration options

2018-09-06 Thread Francois Tigeot


commit ce73550bd9805b6ad49cf4c94b5e37aa6922668d
Author: François Tigeot 
Date:   Fri Sep 7 07:59:43 2018 +0200

drm: Use a dedicated .h file for configuration options

With-advice-from: swildner

Summary of changes:
 sys/conf/files  | 480 ++--
 sys/dev/drm/drm/Makefile|   2 +-
 sys/dev/drm/i915/Makefile   |   2 +-
 sys/dev/drm/i915/i915_drv.h |   6 -
 sys/dev/drm/include/drm/drmP.h  |   2 -
 sys/dev/drm/include/drm/drm_fb_helper.h |   1 -
 sys/dev/drm/kconfig.h   |  13 +
 sys/dev/drm/radeon/Makefile |   1 +
 sys/dev/drm/radeon/atombios_encoders.c  | 146 +++--
 sys/dev/drm/radeon/radeon.h |   1 -
 sys/dev/drm/radeon/radeon_legacy_encoders.c |   6 +
 11 files changed, 304 insertions(+), 356 deletions(-)
 create mode 100644 sys/dev/drm/kconfig.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ce73550bd9805b6ad49cf4c94b5e37aa6922668d


-- 
DragonFly BSD source repository


git: drm: Add more Linux include files

2018-09-07 Thread Francois Tigeot


commit 403e6d2b111afd8a698ca6a0724db53a46e90be1
Author: François Tigeot 
Date:   Sat Sep 8 07:19:30 2018 +0200

drm: Add more Linux include files

Summary of changes:
 sys/dev/drm/include/asm/pgalloc.h   | 34 +
 sys/dev/drm/include/linux/cdev.h| 33 
 sys/dev/drm/include/linux/file.h| 34 +
 sys/dev/drm/include/linux/kdev_t.h  | 30 +
 sys/dev/drm/include/linux/major.h   | 34 +
 sys/dev/drm/include/linux/miscdevice.h  | 33 
 sys/dev/drm/include/linux/platform_device.h | 33 
 sys/dev/drm/include/linux/ratelimit.h   | 32 +++
 8 files changed, 263 insertions(+)
 create mode 100644 sys/dev/drm/include/asm/pgalloc.h
 create mode 100644 sys/dev/drm/include/linux/cdev.h
 create mode 100644 sys/dev/drm/include/linux/file.h
 create mode 100644 sys/dev/drm/include/linux/kdev_t.h
 create mode 100644 sys/dev/drm/include/linux/major.h
 create mode 100644 sys/dev/drm/include/linux/miscdevice.h
 create mode 100644 sys/dev/drm/include/linux/platform_device.h
 create mode 100644 sys/dev/drm/include/linux/ratelimit.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/403e6d2b111afd8a698ca6a0724db53a46e90be1


-- 
DragonFly BSD source repository


git: drm: Sync drm/drmP.h with Linux 4.7.10

2018-09-08 Thread Francois Tigeot


commit 62bba8f63c2bef1dbddea199f9709bde3c92b665
Author: François Tigeot 
Date:   Sat Sep 8 14:26:15 2018 +0200

drm: Sync drm/drmP.h with Linux 4.7.10

Remove most generic kernel includes, in order to avoid Linux/DragonFly
keyword clashes as much as possible in the future.

Summary of changes:
 sys/dev/drm/drm_bufs.c |   3 +
 sys/dev/drm/drm_scatter.c  |   2 +
 sys/dev/drm/i915/i915_gem.c|   4 +
 sys/dev/drm/include/drm/drmP.h | 349 -
 sys/dev/drm/ttm/ttm_bo_vm.c|   2 +
 sys/dev/drm/ttm/ttm_tt.c   |   2 +
 6 files changed, 182 insertions(+), 180 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/62bba8f63c2bef1dbddea199f9709bde3c92b665


-- 
DragonFly BSD source repository


git: drm/linux: use pgprot_t

2018-09-16 Thread Francois Tigeot


commit b381679358995ee125a1d55d074865aa9962fc5e
Author: François Tigeot 
Date:   Sun Sep 16 09:20:37 2018 +0200

drm/linux: use pgprot_t

Summary of changes:
 sys/dev/drm/include/asm/page.h  | 2 ++
 sys/dev/drm/include/linux/vmalloc.h | 4 ++--
 sys/dev/drm/linux_vmalloc.c | 2 +-
 sys/dev/drm/ttm/ttm_bo_util.c   | 4 ++--
 4 files changed, 7 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b381679358995ee125a1d55d074865aa9962fc5e


-- 
DragonFly BSD source repository


git: drm/linux: Increase coverage of the page protection APIs

2018-09-16 Thread Francois Tigeot


commit 1ca9f5d2f795150c40d708639e177f4ea8600e66
Author: François Tigeot 
Date:   Sun Sep 16 09:28:44 2018 +0200

drm/linux: Increase coverage of the page protection APIs

Summary of changes:
 sys/dev/drm/include/asm/pgtable.h   |  5 +
 sys/dev/drm/include/asm/pgtable_types.h | 21 +++--
 sys/dev/drm/include/linux/highmem.h |  6 ++
 3 files changed, 30 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ca9f5d2f795150c40d708639e177f4ea8600e66


-- 
DragonFly BSD source repository


git: drm/ttm: Use Linux memory management functions

2018-09-18 Thread Francois Tigeot


commit e5c1d8f16218300bb493e2ee2a847122cba795cb
Author: François Tigeot 
Date:   Tue Sep 18 21:24:09 2018 +0200

drm/ttm: Use Linux memory management functions

Reducing differences with the Linux code base.

Summary of changes:
 sys/dev/drm/ttm/ttm_bo.c | 11 ++
 sys/dev/drm/ttm/ttm_bo_util.c| 43 
 sys/dev/drm/ttm/ttm_page_alloc.c | 34 +++
 3 files changed, 44 insertions(+), 44 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e5c1d8f16218300bb493e2ee2a847122cba795cb


-- 
DragonFly BSD source repository


git: drm/linux: Implement more kobject parts

2018-09-19 Thread Francois Tigeot


commit 15dba7a934ccec493b5479b70a07107f7689c597
Author: François Tigeot 
Date:   Wed Sep 19 19:52:15 2018 +0200

drm/linux: Implement more kobject parts

Summary of changes:
 sys/conf/files |  1 +
 sys/dev/drm/drm/Makefile   |  1 +
 sys/dev/drm/include/linux/cpufreq.h|  1 +
 sys/dev/drm/include/linux/device.h |  8 -
 sys/dev/drm/include/linux/fs.h |  1 +
 sys/dev/drm/include/linux/kobject.h| 35 +-
 sys/dev/drm/include/linux/module.h |  5 +++-
 sys/dev/drm/include/linux/{major.h => stat.h}  | 11 +++
 sys/dev/drm/include/linux/{kmod.h => sysfs.h}  | 24 +++
 sys/dev/drm/include/linux/types.h  |  4 ++-
 sys/dev/drm/include/linux/wait.h   |  5 
 .../drm/{include/linux/cdev.h => linux_kobject.c}  | 29 ++
 12 files changed, 106 insertions(+), 19 deletions(-)
 copy sys/dev/drm/include/linux/{major.h => stat.h} (90%)
 copy sys/dev/drm/include/linux/{kmod.h => sysfs.h} (78%)
 copy sys/dev/drm/{include/linux/cdev.h => linux_kobject.c} (71%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/15dba7a934ccec493b5479b70a07107f7689c597


-- 
DragonFly BSD source repository


git: drm/ttm: Use Linux kobjects

2018-09-19 Thread Francois Tigeot


commit 3a2096e8e9e6a169d2b3e1eaa595e1af6c3582db
Author: François Tigeot 
Date:   Wed Sep 19 20:07:35 2018 +0200

drm/ttm: Use Linux kobjects

* Reducing differences with Linux

* Changes based on Linux commit ecff665f5e3f1c6909353e00b9420e45ae23d995
  "drm/ttm: make ttm reservation calls behave like reservation calls"

Summary of changes:
 sys/conf/files  |   1 +
 sys/dev/drm/drm/Makefile|   3 +-
 sys/dev/drm/drm_sysfs.c |  14 ++-
 sys/dev/drm/include/drm/drm_sysfs.h |  12 +++
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h |   2 +-
 sys/dev/drm/include/drm/ttm/ttm_memory.h|  17 +++-
 sys/dev/drm/include/drm/ttm/ttm_module.h|   5 +-
 sys/dev/drm/ttm/ttm_bo.c|  61 +
 sys/dev/drm/ttm/ttm_memory.c| 127 +---
 sys/dev/drm/ttm/ttm_module.c| 105 +++
 sys/dev/drm/ttm/ttm_page_alloc.c|  67 ---
 11 files changed, 348 insertions(+), 66 deletions(-)
 create mode 100644 sys/dev/drm/include/drm/drm_sysfs.h
 create mode 100644 sys/dev/drm/ttm/ttm_module.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3a2096e8e9e6a169d2b3e1eaa595e1af6c3582db


-- 
DragonFly BSD source repository


git: drm/ttm: Use mutex_lock/mutex_unlock

2018-09-22 Thread Francois Tigeot


commit b633269ad0b235c925f158c918faa3ad92ba01d0
Author: François Tigeot 
Date:   Sat Sep 22 10:07:31 2018 +0200

drm/ttm: Use mutex_lock/mutex_unlock

Summary of changes:
 sys/dev/drm/ttm/ttm_bo.c  | 8 
 sys/dev/drm/ttm/ttm_bo_util.c | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b633269ad0b235c925f158c918faa3ad92ba01d0


-- 
DragonFly BSD source repository


git: drm/ttm: Rename ttm_mem_global.spin to ttm_mem_global.lock

2018-09-22 Thread Francois Tigeot


commit c360c162a13b64c3d43a13746ca1a4ca2ee95f63
Author: François Tigeot 
Date:   Sat Sep 22 10:28:23 2018 +0200

drm/ttm: Rename ttm_mem_global.spin to ttm_mem_global.lock

It was named so in Linux in the first place.

Summary of changes:
 sys/dev/drm/include/drm/ttm/ttm_memory.h | 12 ++--
 sys/dev/drm/ttm/ttm_memory.c | 30 +++---
 2 files changed, 21 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c360c162a13b64c3d43a13746ca1a4ca2ee95f63


-- 
DragonFly BSD source repository


git: drm/ttm: convert to the reservation api

2018-09-23 Thread Francois Tigeot


commit c05dd8dc1634d5a751604913c322ee97f9510e46
Author: François Tigeot 
Date:   Sun Sep 23 15:41:47 2018 +0200

drm/ttm: convert to the reservation api

Summary of changes:
 sys/dev/drm/include/drm/ttm/ttm_bo_api.h   |  16 +--
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h|   7 +-
 sys/dev/drm/include/drm/ttm/ttm_execbuf_util.h |   3 +-
 sys/dev/drm/ttm/ttm_bo.c   | 184 +++--
 sys/dev/drm/ttm/ttm_bo_util.c  |  14 +-
 sys/dev/drm/ttm/ttm_execbuf_util.c |  50 +++
 6 files changed, 89 insertions(+), 185 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c05dd8dc1634d5a751604913c322ee97f9510e46


-- 
DragonFly BSD source repository


git: drm/linux: Implement more reservation objects code

2018-09-23 Thread Francois Tigeot


commit 3306aed32bd06e8fac6a1ae8a081ce9c5dd4ffc6
Author: François Tigeot 
Date:   Sun Sep 23 15:30:35 2018 +0200

drm/linux: Implement more reservation objects code

Summary of changes:
 sys/conf/files |  1 +
 sys/dev/drm/drm/Makefile   |  1 +
 sys/dev/drm/include/linux/fs.h |  2 +
 sys/dev/drm/include/linux/lockdep.h|  5 ++-
 sys/dev/drm/include/linux/mm.h |  6 +++
 sys/dev/drm/include/linux/mm_types.h   |  2 +
 sys/dev/drm/include/linux/pagemap.h|  1 +
 sys/dev/drm/include/linux/reservation.h| 32 +++
 sys/dev/drm/include/linux/seqlock.h| 11 +-
 .../linux/reservation.h => linux_reservation.c}| 45 --
 sys/dev/drm/ttm/ttm_execbuf_util.c |  3 --
 11 files changed, 83 insertions(+), 26 deletions(-)
 copy sys/dev/drm/{include/linux/reservation.h => linux_reservation.c} (58%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3306aed32bd06e8fac6a1ae8a081ce9c5dd4ffc6


-- 
DragonFly BSD source repository


git: Revert "drm/ttm: convert to the reservation api"

2018-09-26 Thread Francois Tigeot


commit 29bffcd3e48b270b6cd00955c5dcba18cbe2813e
Author: François Tigeot 
Date:   Thu Sep 27 07:07:37 2018 +0200

Revert "drm/ttm: convert to the reservation api"

This reverts commit c05dd8dc1634d5a751604913c322ee97f9510e46.

There is something very wrong with ww mutexes.

Summary of changes:
 sys/dev/drm/include/drm/ttm/ttm_bo_api.h   |  16 ++-
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h|   7 +-
 sys/dev/drm/include/drm/ttm/ttm_execbuf_util.h |   3 +-
 sys/dev/drm/ttm/ttm_bo.c   | 184 ++---
 sys/dev/drm/ttm/ttm_bo_util.c  |  14 +-
 sys/dev/drm/ttm/ttm_execbuf_util.c |  50 ---
 6 files changed, 185 insertions(+), 89 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/29bffcd3e48b270b6cd00955c5dcba18cbe2813e


-- 
DragonFly BSD source repository


git: drm/linux: Implement lockdep_assert_held()

2018-09-28 Thread Francois Tigeot


commit e6a0288b0ebd3aa1da947e3d814608f394d15faf
Author: François Tigeot 
Date:   Fri Sep 28 15:27:19 2018 +0200

drm/linux: Implement lockdep_assert_held()

Summary of changes:
 sys/dev/drm/include/linux/lockdep.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e6a0288b0ebd3aa1da947e3d814608f394d15faf


-- 
DragonFly BSD source repository


git: drm/radeon: Pass dma-buf as argument to gem_prime_import_sg_table

2018-09-29 Thread Francois Tigeot


commit 54cb39ba56e92d4eba0c66d3bec78a920315e124
Author: François Tigeot 
Date:   Sat Sep 29 21:22:05 2018 +0200

drm/radeon: Pass dma-buf as argument to gem_prime_import_sg_table

Summary of changes:
 sys/dev/drm/radeon/radeon_drv.c   | 2 +-
 sys/dev/drm/radeon/radeon_prime.c | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/54cb39ba56e92d4eba0c66d3bec78a920315e124


-- 
DragonFly BSD source repository


git: drm/radeon/dpm: drop clk/voltage dependency filters for SI

2018-09-29 Thread Francois Tigeot


commit cd93a6ba249da50db34ed73d8e32eae02954bd2c
Author: François Tigeot 
Date:   Sat Sep 29 21:33:40 2018 +0200

drm/radeon/dpm: drop clk/voltage dependency filters for SI

Summary of changes:
 sys/dev/drm/radeon/si_dpm.c | 24 
 1 file changed, 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd93a6ba249da50db34ed73d8e32eae02954bd2c


-- 
DragonFly BSD source repository


git: drm/radeon: drop btc_get_max_clock_from_voltage_dependency_table

2018-09-29 Thread Francois Tigeot


commit 0b644c8fdb1c585ac61308d80c0510dd82ef058d
Author: François Tigeot 
Date:   Sat Sep 29 21:48:35 2018 +0200

drm/radeon: drop btc_get_max_clock_from_voltage_dependency_table

Summary of changes:
 sys/dev/drm/radeon/btc_dpm.c | 17 -
 sys/dev/drm/radeon/btc_dpm.h |  2 --
 2 files changed, 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0b644c8fdb1c585ac61308d80c0510dd82ef058d


-- 
DragonFly BSD source repository


git: drm/linux: Add rcu_dereference_protected()

2018-10-07 Thread Francois Tigeot


commit 21c41fae3cd6bd8ed0de910edcbb3f2f3b44dbb1
Author: François Tigeot 
Date:   Sun Oct 7 14:27:27 2018 +0200

drm/linux: Add rcu_dereference_protected()

Summary of changes:
 sys/dev/drm/include/linux/rcupdate.h | 3 +++
 1 file changed, 3 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/21c41fae3cd6bd8ed0de910edcbb3f2f3b44dbb1


-- 
DragonFly BSD source repository


git: drm: Add linux/interval_tree.h

2018-10-07 Thread Francois Tigeot


commit d7d2af7d689561d948ceb40ab46c06476e9e6d8c
Author: François Tigeot 
Date:   Sun Oct 7 14:47:03 2018 +0200

drm: Add linux/interval_tree.h

Summary of changes:
 .../drm/include/linux/{irqreturn.h => interval_tree.h}  | 17 +
 1 file changed, 9 insertions(+), 8 deletions(-)
 copy sys/dev/drm/include/linux/{irqreturn.h => interval_tree.h} (86%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d7d2af7d689561d948ceb40ab46c06476e9e6d8c


-- 
DragonFly BSD source repository


git: drm/linux: Add a few headers

2018-10-11 Thread Francois Tigeot


commit 5396612462ce314335b115530de65722e2e0e043
Author: François Tigeot 
Date:   Thu Oct 11 22:26:42 2018 +0200

drm/linux: Add a few headers

Summary of changes:
 sys/dev/drm/include/linux/{irqreturn.h => hwmon.h} | 14 +--
 sys/dev/drm/include/linux/{ratelimit.h => leds.h}  | 10 +---
 sys/dev/drm/include/linux/mm_types.h   |  1 +
 sys/dev/drm/include/linux/notifier.h   |  3 ++-
 .../include/linux/{mm_types.h => power_supply.h}   | 27 ++
 sys/dev/drm/include/linux/{mmzone.h => rwsem.h}| 20 +++-
 sys/dev/drm/include/linux/tty.h|  3 ++-
 7 files changed, 38 insertions(+), 40 deletions(-)
 copy sys/dev/drm/include/linux/{irqreturn.h => hwmon.h} (87%)
 copy sys/dev/drm/include/linux/{ratelimit.h => leds.h} (88%)
 copy sys/dev/drm/include/linux/{mm_types.h => power_supply.h} (81%)
 copy sys/dev/drm/include/linux/{mmzone.h => rwsem.h} (84%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5396612462ce314335b115530de65722e2e0e043


-- 
DragonFly BSD source repository


git: drm/radeon: Reduce differences with Linux 3.18

2018-10-11 Thread Francois Tigeot


commit a39b2473bee3b2a048a329ecc7f76a90fc02ea4d
Author: François Tigeot 
Date:   Thu Oct 11 22:38:26 2018 +0200

drm/radeon: Reduce differences with Linux 3.18

No functional changes

Summary of changes:
 sys/dev/drm/radeon/atom.h  |1 +
 sys/dev/drm/radeon/radeon_drv.h| 2049 
 sys/dev/drm/radeon/smu7_discrete.h |1 +
 sys/dev/drm/radeon/smu7_fusion.h   |1 +
 sys/dev/drm/radeon/sumo_dpm.c  |2 -
 sys/dev/drm/radeon/sumo_dpm.h  |3 +
 6 files changed, 2055 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a39b2473bee3b2a048a329ecc7f76a90fc02ea4d


-- 
DragonFly BSD source repository


git: drm/radeon: Finish replacing task queues by Linux work queues

2018-10-11 Thread Francois Tigeot


commit 2c5cc6b96cf93fb12c3fb84f89a17bb9a61225db
Author: François Tigeot 
Date:   Thu Oct 11 22:40:30 2018 +0200

drm/radeon: Finish replacing task queues by Linux work queues

Summary of changes:
 sys/dev/drm/radeon/cik.c|  4 ++--
 sys/dev/drm/radeon/evergreen.c  |  6 +++---
 sys/dev/drm/radeon/r100.c   |  2 +-
 sys/dev/drm/radeon/r600.c   |  6 +++---
 sys/dev/drm/radeon/r600_hdmi.c  |  5 +++--
 sys/dev/drm/radeon/radeon.h | 10 +-
 sys/dev/drm/radeon/radeon_device.c  | 10 --
 sys/dev/drm/radeon/radeon_irq_kms.c | 16 +++-
 sys/dev/drm/radeon/radeon_pm.c  | 12 +++-
 sys/dev/drm/radeon/rs600.c  |  4 ++--
 sys/dev/drm/radeon/si.c |  4 ++--
 11 files changed, 35 insertions(+), 44 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2c5cc6b96cf93fb12c3fb84f89a17bb9a61225db


-- 
DragonFly BSD source repository


git: drm/radeon: add missing ttm_eu_backoff_reservation to radeon_bo_list_validate

2018-10-12 Thread Francois Tigeot


commit 5fc68e26431ea56bd78a3aa3b0d076c45e360ee2
Author: François Tigeot 
Date:   Fri Oct 12 22:50:58 2018 +0200

drm/radeon: add missing ttm_eu_backoff_reservation to 
radeon_bo_list_validate

Summary of changes:
 sys/dev/drm/radeon/radeon_object.c | 1 +
 1 file changed, 1 insertion(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5fc68e26431ea56bd78a3aa3b0d076c45e360ee2


-- 
DragonFly BSD source repository


git: drm/linux: Fix potential ww mutex induced panics

2018-10-15 Thread Francois Tigeot


commit 169b6cefef9b3d56097dad138b3d0af6d1bd8312
Author: François Tigeot 
Date:   Mon Oct 15 22:17:54 2018 +0200

drm/linux: Fix potential ww mutex induced panics

ww mutex locking functions can be called with a NULL ctx and were
happily setting both lock->acquired to non-zero and lock->ctx to
NULL, a combination which other parts of our ww mutex implementation
assume is not possible.

Obtained-from: OpenBSD

Summary of changes:
 sys/dev/drm/include/linux/ww_mutex.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/169b6cefef9b3d56097dad138b3d0af6d1bd8312


-- 
DragonFly BSD source repository


git: drm: Add linux/rwlock.h

2018-11-03 Thread Francois Tigeot


commit 43cc53d1db4abbfaf0a0c954565393323b1065a6
Author: François Tigeot 
Date:   Sat Nov 3 14:07:50 2018 +0100

drm: Add linux/rwlock.h

Summary of changes:
 sys/dev/drm/include/{asm/pgalloc.h => linux/rwlock.h} | 11 +--
 sys/dev/drm/include/linux/sched.h |  2 ++
 sys/dev/drm/include/linux/spinlock.h  | 13 +
 3 files changed, 16 insertions(+), 10 deletions(-)
 copy sys/dev/drm/include/{asm/pgalloc.h => linux/rwlock.h} (87%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/43cc53d1db4abbfaf0a0c954565393323b1065a6


-- 
DragonFly BSD source repository


git: drm/ttm: Remove ttm_bo_unreserve_core()

2018-11-03 Thread Francois Tigeot


commit 5d4803440754b62fed1abd6d641d1f7a6f7b454e
Author: François Tigeot 
Date:   Sat Nov 3 15:18:38 2018 +0100

drm/ttm: Remove ttm_bo_unreserve_core()

* This function was DragonFly-specific and apparently
  isn't even needed anymore

* Sync the changed code with Linux as of 
ecff665f5e3f1c6909353e00b9420e45ae23d995
  "drm/ttm: make ttm reservation calls behave like reservation calls"

Summary of changes:
 sys/dev/drm/ttm/ttm_bo.c | 44 +---
 1 file changed, 13 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5d4803440754b62fed1abd6d641d1f7a6f7b454e


-- 
DragonFly BSD source repository


git: drm/linux: Fix vmap()

2018-11-05 Thread Francois Tigeot


commit c9f83a72b5c7c2f29b40b404aa63767b20a7422c
Author: François Tigeot 
Date:   Mon Nov 5 22:15:18 2018 +0100

drm/linux: Fix vmap()

Page protection information was not being used.

Summary of changes:
 sys/dev/drm/linux_vmalloc.c | 4 
 1 file changed, 4 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c9f83a72b5c7c2f29b40b404aa63767b20a7422c


-- 
DragonFly BSD source repository


git: drm/linux: fix pgprot_xxx functions

2018-11-06 Thread Francois Tigeot


commit c5cb444a188f6b4bc890e750a7351696ead5d008
Author: François Tigeot 
Date:   Tue Nov 6 18:32:51 2018 +0100

drm/linux: fix pgprot_xxx functions

Summary of changes:
 sys/dev/drm/include/asm/pgtable.h   | 2 +-
 sys/dev/drm/include/asm/pgtable_types.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c5cb444a188f6b4bc890e750a7351696ead5d008


-- 
DragonFly BSD source repository


git: drm/ttm: Rework ttm_io_prot()

2018-11-07 Thread Francois Tigeot


commit 4f125aeae976b3eb5c1646e70ad74ed69db62f11
Author: François Tigeot 
Date:   Wed Nov 7 23:18:51 2018 +0100

drm/ttm: Rework ttm_io_prot()

Change it to be as close to the Linux version as possible.

Summary of changes:
 sys/dev/drm/include/drm/ttm/ttm_bo_driver.h |  3 +-
 sys/dev/drm/ttm/ttm_bo_util.c   | 54 +++--
 sys/dev/drm/ttm/ttm_bo_vm.c |  4 +--
 3 files changed, 39 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4f125aeae976b3eb5c1646e70ad74ed69db62f11


-- 
DragonFly BSD source repository


git: drm/linux: Add send_sig()

2018-11-09 Thread Francois Tigeot


commit c58e4e0a341f34a89bba2c7ce596b94264c8097d
Author: François Tigeot 
Date:   Fri Nov 9 18:34:19 2018 +0100

drm/linux: Add send_sig()

Summary of changes:
 sys/dev/drm/include/linux/sched.h | 7 +++
 1 file changed, 7 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c58e4e0a341f34a89bba2c7ce596b94264c8097d


-- 
DragonFly BSD source repository


git: drm/ttm: Sync ttm_lock.c with Linux

2018-11-10 Thread Francois Tigeot


commit 652c4042c7549eab6854eb7d36970bef0205a821
Author: François Tigeot 
Date:   Sat Nov 10 09:31:20 2018 +0100

drm/ttm: Sync ttm_lock.c with Linux

Summary of changes:
 sys/dev/drm/ttm/ttm_lock.c | 156 +
 1 file changed, 58 insertions(+), 98 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/652c4042c7549eab6854eb7d36970bef0205a821


-- 
DragonFly BSD source repository


git: drm/ttm: Sync ttm_execbuf_util.c with Linux

2018-11-11 Thread Francois Tigeot


commit fb15202ca65065a9db8fb9fd523efd6e11c370c7
Author: François Tigeot 
Date:   Sun Nov 11 09:18:03 2018 +0100

drm/ttm: Sync ttm_execbuf_util.c with Linux

Summary of changes:
 sys/dev/drm/ttm/ttm_execbuf_util.c | 12 +---
 1 file changed, 5 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fb15202ca65065a9db8fb9fd523efd6e11c370c7


-- 
DragonFly BSD source repository


git: drm/linux: Add a few GFP_XXX values

2018-11-14 Thread Francois Tigeot


commit 9e08aba5f9836f672cbe00edd198925fd19be399
Author: François Tigeot 
Date:   Wed Nov 14 18:42:49 2018 +0100

drm/linux: Add a few GFP_XXX values

Summary of changes:
 sys/dev/drm/include/linux/gfp.h | 3 +++
 1 file changed, 3 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9e08aba5f9836f672cbe00edd198925fd19be399


-- 
DragonFly BSD source repository


git: drm/ttm: Remove sf_buf usage

2018-11-14 Thread Francois Tigeot


commit f146ed7f9a7f659b28040f51c1a94c2f32786c36
Author: François Tigeot 
Date:   Wed Nov 14 19:35:30 2018 +0100

drm/ttm: Remove sf_buf usage

* Use Linux memory allocation/mapping functions instead.

* Opportunistically sync some code with Linux

Summary of changes:
 sys/dev/drm/include/drm/ttm/ttm_bo_api.h |  3 ---
 sys/dev/drm/ttm/ttm_bo.c |  4 +--
 sys/dev/drm/ttm/ttm_bo_util.c| 45 ++--
 3 files changed, 15 insertions(+), 37 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f146ed7f9a7f659b28040f51c1a94c2f32786c36


-- 
DragonFly BSD source repository


git: Revert "drm/linux: Fix vmap()"

2018-11-17 Thread Francois Tigeot


commit 85e07d54249720fda626d3b6a3b476e2be925664
Author: François Tigeot 
Date:   Sat Nov 17 14:41:21 2018 +0100

Revert "drm/linux: Fix vmap()"

This reverts commit c9f83a72b5c7c2f29b40b404aa63767b20a7422c.

It introduced instability on Broadwell platforms.

Reported-by: Daniel Bilik

Summary of changes:
 sys/dev/drm/linux_vmalloc.c | 4 
 1 file changed, 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/85e07d54249720fda626d3b6a3b476e2be925664


-- 
DragonFly BSD source repository


git: DragonFly_RELEASE_5_4 Revert "drm/ttm: Remove ttm_bo_unreserve_core()"

2018-11-24 Thread Francois Tigeot


commit be6b3f4b5a6906bb19dd7ce72d2fe3077f612644
Author: François Tigeot 
Date:   Sat Nov 24 14:12:34 2018 +0100

Revert "drm/ttm: Remove ttm_bo_unreserve_core()"

This reverts commit 5d4803440754b62fed1abd6d641d1f7a6f7b454e.

The drm/radeon driver has a tendency to lock up more frequently
without ttm_bo_unreserve_core().

Reported-by: Michael Neumann 

Summary of changes:
 sys/dev/drm/ttm/ttm_bo.c | 44 +++-
 1 file changed, 31 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/be6b3f4b5a6906bb19dd7ce72d2fe3077f612644


-- 
DragonFly BSD source repository


git: drm/linux: Add set_pages_array_xx() functions

2018-11-25 Thread Francois Tigeot


commit 51933d896e08bbcf747b25f186ea714cf72c52f5
Author: François Tigeot 
Date:   Sun Nov 25 16:28:33 2018 +0100

drm/linux: Add set_pages_array_xx() functions

Summary of changes:
 sys/dev/drm/include/asm/cacheflush.h | 27 +++
 sys/dev/drm/ttm/ttm_page_alloc.c |  2 ++
 2 files changed, 29 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51933d896e08bbcf747b25f186ea714cf72c52f5


-- 
DragonFly BSD source repository


git: drm/ttm: Sync ttm_page_alloc.c with Linux

2018-11-25 Thread Francois Tigeot


commit 6af927c246477a611cb86e64d0fc46a39284
Author: François Tigeot 
Date:   Sun Nov 25 16:54:27 2018 +0100

drm/ttm: Sync ttm_page_alloc.c with Linux

Summary of changes:
 sys/dev/drm/ttm/ttm_page_alloc.c | 208 ++-
 1 file changed, 94 insertions(+), 114 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6af927c246477a611cb86e64d0fc46a39284


-- 
DragonFly BSD source repository


git: drm includes: Rename uapi_xxx to uapi/xxx

2018-11-28 Thread Francois Tigeot


commit 83b4b9b96d578e400ab5890b64f60d69d4429e75
Author: François Tigeot 
Date:   Wed Nov 28 21:16:37 2018 +0100

drm includes: Rename uapi_xxx to uapi/xxx

Making the include hierarchy 100% compatible with the Linux one.

Summary of changes:
 sys/conf/kern.pre.mk   | 2 +-
 sys/dev/drm/drm/Makefile   | 4 +++-
 sys/dev/drm/drm_atomic.c   | 2 +-
 sys/dev/drm/drm_crtc.c | 2 +-
 sys/dev/drm/drm_crtc_helper.c  | 2 +-
 sys/dev/drm/drm_probe_helper.c | 2 +-
 sys/dev/drm/i915/Makefile  | 1 +
 sys/dev/drm/i915/i915_drv.h| 4 ++--
 sys/dev/drm/i915/intel_sprite.c| 2 +-
 sys/dev/drm/include/asm/int-ll64.h | 4 ++--
 sys/dev/drm/include/asm/types.h| 4 ++--
 sys/dev/drm/include/drm/drmP.h | 6 +++---
 sys/dev/drm/include/drm/drm_agpsupport.h   | 2 +-
 sys/dev/drm/include/drm/drm_crtc.h | 4 ++--
 sys/dev/drm/include/drm/i915_drm.h | 2 +-
 sys/dev/drm/include/linux/atomic.h | 3 ++-
 sys/dev/drm/include/linux/fb.h | 7 +--
 sys/dev/drm/include/linux/i2c.h| 4 ++--
 sys/dev/drm/include/linux/pci.h| 2 +-
 sys/dev/drm/include/linux/types.h  | 2 +-
 .../drm/include/{uapi_asm-generic => uapi/asm-generic}/int-ll64.h  | 0
 sys/dev/drm/include/{uapi_drm => uapi/drm}/drm.h   | 2 +-
 sys/dev/drm/include/{uapi_drm => uapi/drm}/drm_fourcc.h| 2 +-
 sys/dev/drm/include/{uapi_drm => uapi/drm}/drm_mode.h  | 0
 sys/dev/drm/include/{uapi_drm => uapi/drm}/drm_sarea.h | 2 +-
 sys/dev/drm/include/{uapi_drm => uapi/drm}/i915_drm.h  | 2 +-
 sys/dev/drm/include/{uapi_drm => uapi/drm}/radeon_drm.h| 2 +-
 sys/dev/drm/include/{uapi_linux => uapi/linux}/fb.h| 5 -
 sys/dev/drm/include/{uapi_linux => uapi/linux}/i2c.h   | 0
 sys/dev/drm/include/{uapi_linux => uapi/linux}/types.h | 0
 sys/dev/drm/radeon/Makefile| 1 +
 sys/dev/drm/radeon/atombios_crtc.c | 2 +-
 sys/dev/drm/radeon/atombios_dp.c   | 2 +-
 sys/dev/drm/radeon/atombios_encoders.c | 2 +-
 sys/dev/drm/radeon/atombios_i2c.c  | 2 +-
 sys/dev/drm/radeon/evergreen.c | 2 +-
 sys/dev/drm/radeon/evergreen_hdmi.c| 2 +-
 sys/dev/drm/radeon/ni.c| 2 +-
 sys/dev/drm/radeon/r100.c  | 2 +-
 sys/dev/drm/radeon/r200.c  | 2 +-
 sys/dev/drm/radeon/r300.c  | 4 ++--
 sys/dev/drm/radeon/r600.c  | 2 +-
 sys/dev/drm/radeon/r600_hdmi.c | 2 +-
 sys/dev/drm/radeon/radeon_agp.c| 2 +-
 sys/dev/drm/radeon/radeon_asic.c   | 2 +-
 sys/dev/drm/radeon/radeon_atombios.c   | 2 +-
 sys/dev/drm/radeon/radeon_benchmark.c  | 2 +-
 sys/dev/drm/radeon/radeon_clocks.c | 2 +-
 sys/dev/drm/radeon/radeon_combios.c| 2 +-
 sys/dev/drm/radeon/radeon_connectors.c | 2 +-
 sys/dev/drm/radeon/radeon_cs.c | 2 +-
 sys/dev/drm/radeon/radeon_cursor.c | 2 +-
 sys/dev/drm/radeon/radeon_device.c | 2 +-
 sys/dev/drm/radeon/radeon_display.c| 2 +-
 sys/dev/drm/radeon/radeon_drv.c| 2 +-
 sys/dev/drm/radeon/radeon_encoders.c   | 2 +-
 sys/dev/drm/radeon/radeon_fb.c | 2 +-
 sys/dev/drm/radeon/radeon_gart.c   | 3 +--
 sys/dev/drm/radeon/radeon_gem.c| 2 +-
 sys/dev/drm/radeon/radeon_i2c.c| 2 +-
 sys/dev/drm/radeon/radeon_irq_kms.c| 2 +-
 sys/dev/drm/radeon/radeon_kms.c| 2 +-
 sys/dev/drm/radeon/radeon_legacy_crtc.c| 2 +-
 sy

git: Revert "drm/ttm: Remove ttm_bo_unreserve_core()"

2018-12-04 Thread Francois Tigeot


commit 46035c87e8ea0b07478acee2b68e51cf7815279d
Author: François Tigeot 
Date:   Sat Nov 24 14:12:34 2018 +0100

Revert "drm/ttm: Remove ttm_bo_unreserve_core()"

This reverts commit 5d4803440754b62fed1abd6d641d1f7a6f7b454e.

The drm/radeon driver has a tendency to lock up more frequently
without ttm_bo_unreserve_core().

Reported-by: Michael Neumann 

Summary of changes:
 sys/dev/drm/ttm/ttm_bo.c | 44 +++-
 1 file changed, 31 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/46035c87e8ea0b07478acee2b68e51cf7815279d


-- 
DragonFly BSD source repository


git: drm/i915: Add more Coffeelake PCI IDs

2018-12-04 Thread Francois Tigeot


commit 18a1af58986b6b38543f025e24df9a31894e1f8f
Author: François Tigeot 
Date:   Tue Dec 4 21:57:46 2018 +0100

drm/i915: Add more Coffeelake PCI IDs

Obtained-from: Linux 4.19

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   | 16 
 sys/dev/drm/include/drm/i915_pciids.h | 22 +++---
 2 files changed, 27 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/18a1af58986b6b38543f025e24df9a31894e1f8f


-- 
DragonFly BSD source repository


git: drm/i915: Add Whiskey Lake PCI IDs

2018-12-04 Thread Francois Tigeot


commit e755878b6e131eac651e6720e159c4184111ef0d
Author: François Tigeot 
Date:   Tue Dec 4 22:27:20 2018 +0100

drm/i915: Add Whiskey Lake PCI IDs

Obtained-from: Linux 4.19

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   |  3 +++
 sys/dev/drm/include/drm/i915_pciids.h | 24 
 2 files changed, 27 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e755878b6e131eac651e6720e159c4184111ef0d


-- 
DragonFly BSD source repository


git: drm/i915: Add Kaby Lake and Amber Lake PCI IDs

2018-12-04 Thread Francois Tigeot


commit 198d2d2abe5943113f9560f44c9155963d17190e
Author: François Tigeot 
Date:   Tue Dec 4 22:54:39 2018 +0100

drm/i915: Add Kaby Lake and Amber Lake PCI IDs

Obtained-from: Linux 4.19

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   |  7 +++
 sys/dev/drm/include/drm/i915_pciids.h | 20 
 2 files changed, 19 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/198d2d2abe5943113f9560f44c9155963d17190e


-- 
DragonFly BSD source repository


git: byteorder(3): Remove a VAX comment

2018-12-08 Thread Francois Tigeot


commit 563721240355ccee14b7626025e1ecf93f6cd014
Author: François Tigeot 
Date:   Sat Dec 8 15:41:24 2018 +0100

byteorder(3): Remove a VAX comment

Summary of changes:
 lib/libc/net/byteorder.3 | 7 ---
 1 file changed, 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/563721240355ccee14b7626025e1ecf93f6cd014


-- 
DragonFly BSD source repository


git: drm: Add the DRM_IOCTL_GET_PCIINFO ioctl

2018-12-10 Thread Francois Tigeot


commit 8a697a22391bbafe215fab92a6cb29ed3a1f6edf
Author: François Tigeot 
Date:   Mon Dec 10 23:06:11 2018 +0100

drm: Add the DRM_IOCTL_GET_PCIINFO ioctl

* It provides an easy way to get PCI device information from
  a /dev file descriptor

* The main user will be mesa/libdrm

Obtained-from: OpenBSD

Summary of changes:
 sys/dev/drm/drm_dragonfly.c|  5 +
 sys/dev/drm/drm_internal.h |  2 ++
 sys/dev/drm/drm_ioctl.c|  4 
 sys/dev/drm/drm_pci.c  | 22 ++
 sys/dev/drm/include/linux/pci.h|  1 +
 sys/dev/drm/include/uapi/drm/drm.h | 18 ++
 6 files changed, 52 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a697a22391bbafe215fab92a6cb29ed3a1f6edf


-- 
DragonFly BSD source repository


git: drm: Add missing file uapi/linux/pci.h

2018-12-11 Thread Francois Tigeot


commit 1cefe05a9d7d319e466c0d8ba788849b2a8eb417
Author: François Tigeot 
Date:   Tue Dec 11 07:56:18 2018 +0100

drm: Add missing file uapi/linux/pci.h

Summary of changes:
 sys/dev/drm/include/linux/pci.h   |  5 -
 sys/dev/drm/include/{asm => uapi/linux}/pci.h | 12 +++-
 2 files changed, 7 insertions(+), 10 deletions(-)
 copy sys/dev/drm/include/{asm => uapi/linux}/pci.h (81%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1cefe05a9d7d319e466c0d8ba788849b2a8eb417


-- 
DragonFly BSD source repository


git: DragonFly_RELEASE_5_4 drm/i915: Add Kaby Lake and Amber Lake PCI IDs

2018-12-15 Thread Francois Tigeot


commit 34e6ee5120840d049cf0345b4b7f47bfcfc52ac8
Author: François Tigeot 
Date:   Tue Dec 4 22:54:39 2018 +0100

drm/i915: Add Kaby Lake and Amber Lake PCI IDs

Obtained-from: Linux 4.19

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   |  7 +++
 sys/dev/drm/include/drm/i915_pciids.h | 20 
 2 files changed, 19 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/34e6ee5120840d049cf0345b4b7f47bfcfc52ac8


-- 
DragonFly BSD source repository


git: DragonFly_RELEASE_5_4 drm/i915: Add Whiskey Lake PCI IDs

2018-12-15 Thread Francois Tigeot


commit 9d105a5ed86e4292499975e9aa42c31e4bd4ee39
Author: François Tigeot 
Date:   Tue Dec 4 22:27:20 2018 +0100

drm/i915: Add Whiskey Lake PCI IDs

Obtained-from: Linux 4.19

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   |  3 +++
 sys/dev/drm/include/drm/i915_pciids.h | 24 
 2 files changed, 27 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d105a5ed86e4292499975e9aa42c31e4bd4ee39


-- 
DragonFly BSD source repository


git: DragonFly_RELEASE_5_4 drm/i915: Add more Coffeelake PCI IDs

2018-12-15 Thread Francois Tigeot


commit 73c3745de0d9b62b6679736d4caed2d2132fe818
Author: François Tigeot 
Date:   Tue Dec 4 21:57:46 2018 +0100

drm/i915: Add more Coffeelake PCI IDs

Obtained-from: Linux 4.19

Summary of changes:
 sys/dev/drm/i915/i915_drv.c   | 16 
 sys/dev/drm/include/drm/i915_pciids.h | 22 +++---
 2 files changed, 27 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/73c3745de0d9b62b6679736d4caed2d2132fe818


-- 
DragonFly BSD source repository


git: DragonFly_RELEASE_5_4 drm: Add the DRM_IOCTL_GET_PCIINFO ioctl

2018-12-17 Thread Francois Tigeot


commit bfbcb981d2ef49dd05e7bace5bc0497aed2768eb
Author: François Tigeot 
Date:   Mon Dec 10 23:06:11 2018 +0100

drm: Add the DRM_IOCTL_GET_PCIINFO ioctl

* It provides an easy way to get PCI device information from
  a /dev file descriptor

* The main user will be mesa/libdrm

Obtained-from: OpenBSD

Summary of changes:
 sys/dev/drm/drm_dragonfly.c   |  5 +
 sys/dev/drm/drm_internal.h|  2 ++
 sys/dev/drm/drm_ioctl.c   |  4 
 sys/dev/drm/drm_pci.c | 22 ++
 sys/dev/drm/include/linux/pci.h   |  6 +-
 sys/dev/drm/include/uapi_drm/drm.h| 18 ++
 sys/dev/drm/include/{asm => uapi_linux}/pci.h | 12 +++-
 7 files changed, 59 insertions(+), 10 deletions(-)
 copy sys/dev/drm/include/{asm => uapi_linux}/pci.h (81%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfbcb981d2ef49dd05e7bace5bc0497aed2768eb


-- 
DragonFly BSD source repository


git: drm/linux: Add linux/mmu_context.h

2019-01-02 Thread Francois Tigeot


commit a02358bee49355202cc4b4ef3cb35e45ba65f2e6
Author: François Tigeot 
Date:   Wed Jan 2 23:23:36 2019 +0100

drm/linux: Add linux/mmu_context.h

Summary of changes:
 sys/dev/drm/include/linux/{acpi.h => mmu_context.h} | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
 copy sys/dev/drm/include/linux/{acpi.h => mmu_context.h} (89%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a02358bee49355202cc4b4ef3cb35e45ba65f2e6


-- 
DragonFly BSD source repository


<    1   2   3   4   5   6   7   8   9   10   >