The NetBSD Project

CVS log for src/sys/external/bsd/drm2/include/linux/vmalloc.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / external / bsd / drm2 / include / linux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 26 15:57:22 2022 UTC (11 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

drm2: do not try to return a value from a void function

lint complained:
vmalloc.h(79): error: void function vfree cannot return value [213]

No functional change.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 19 12:07:55 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.10: +9 -11 lines
Diff to previous 1.10 (colored)

linux: Use kmem directly for Linux kmalloc.

Take advantage of this to do LOCKDEBUG_MEM_CHECK at the point of
kfree_rcu rather than in the RCU GC thread.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 19 10:51:24 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Side-load <linux/mm.h> in a few places.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 19 01:22:29 2021 UTC (13 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.8: +15 -1 lines
Diff to previous 1.8 (colored)

Stub vmap purge notifiers.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Dec 19 00:59:01 2021 UTC (13 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Define Linux array_size function and expose via vmalloc.h.

Revision 1.4.20.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:08:32 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +57 -10 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD

Revision 1.4.18.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:36 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.4: +57 -10 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.4.12.1 / (download) - annotate - [select for diffs], Fri Aug 31 17:43:03 2018 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.4: +50 -9 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by riastradh in ticket #997):

	sys/external/bsd/drm2/i915drm/intel_gtt.c: revision 1.6
	sys/external/bsd/drm2/include/linux/delay.h: revision 1.5
	sys/external/bsd/common/include/linux/kernel.h: revision 1.9
	sys/external/bsd/drm2/include/linux/vmalloc.h: revision 1.5
	sys/external/bsd/drm2/include/linux/bitops.h: revision 1.12
	sys/external/bsd/drm2/include/linux/bitops.h: revision 1.13

hweight32 should take uint32_t, not uint16_t.  OOPS.
XXX pullup

Fix find_first_zero_bit to find the high bits of 64-bit words...oops.
XXX pullup

Use uvm_km_alloc(kernel_map) and pmap_kenter, not uvm_pagermapin.
XXX pullup

Flush chipset writes after GGTT update.

Echoes Linux commit:

commit 8516673a996870ea0ceb337ee4f83c33c5ec3111
Author: Chris Wilson <chris%chris-wilson.co.uk@localhost>
Date:   Fri Dec 8 21:46:16 2017 +0000
    agp/intel: Flush all chipset writes after updating the GGTT
    Before accessing the GGTT we must flush the PTE writes and make them
    visible to the chipset, or else the indirect access may end up in the
    wrong page. In commit 3497971a71d8 ("agp/intel: Flush chipset writes
    after updating a single PTE"), we noticed corruption of the uploads for
    pwrite and for capturing GPU error states, but it was presumed that the
    explicit calls to intel_gtt_chipset_flush() were sufficient for the
    execbuffer path. However, we have not been flushing the chipset between
    the PTE writes and access via the GTT itself.
    For simplicity, do the flush after any PTE update rather than try and
    batch the flushes on a just-in-time basis.
    References: 3497971a71d8 ("agp/intel: Flush chipset writes after updating a single PTE")
    Signed-off-by: Chris Wilson <chris%chris-wilson.co.uk@localhost>
    Cc: Tvrtko Ursulin <tvrtko.ursulin%intel.com@localhost>
    Cc: Mika Kuoppala <mika.kuoppala%intel.com@localhost>
    Cc: drm-intel-fixes%lists.freedesktop.org@localhost
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen%linux.intel.com@localhost>
    Link: https://patchwork.freedesktop.org/patch/msgid/20171208214616.30147-1-chris%chris-wilson.co.uk@localhost

XXX pullup


Round nsec up for usec delay.
XXX pullup


libkern min/max is 32-bit.  Linux min/max is generic.  @!*#@!$&
XXX pullup

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 27 14:40:56 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.6: +2 -0 lines
Diff to previous 1.6 (colored)

Linux vfree accepts NULL as noop.  Match semantics.

From mrg@.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Aug 27 13:44:54 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored)

Implement kvfree by free(9); assume kmalloc/vmalloc use malloc(9).

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 6 00:30:07 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.4: +50 -9 lines
Diff to previous 1.4 (colored)

Use uvm_km_alloc(kernel_map) and pmap_kenter, not uvm_pagermapin.

XXX pullup

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:59 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.3.4.2: +13 -0 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

update from HEAD

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Sun Sep 21 17:41:52 2014 UTC (8 years, 4 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.3: +14 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up following revision(s) (requested by riastradh in ticket #95):
	sys/external/bsd/drm2/dist/drm/nouveau/core/include/subdev/fb.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv10_fence.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/bar/nouveau_subdev_bar_base.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/include/engine/device.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/include/subdev/pwr.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/nouveau_engine_xtensa.c: revision 1.2
	sys/external/bsd/drm2/include/linux/bitops.h: revision 1.8
	sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/nouveau_dispnv04_tvnv17.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/nouveau_dispnv04_tvmodesnv17.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/include/core/device.h: revision 1.3
	sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h: revision 1.4
	sys/external/bsd/drm2/include/linux/spinlock.h: revision 1.4
	sys/external/bsd/drm2/include/linux/pm_runtime.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/crypt/nouveau_engine_crypt_nv98.c: revision 1.2
	sys/external/bsd/drm2/nouveau/files.nouveau: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/disp/nouveau_engine_disp_dacnv50.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nouveau_engine_fifo_nve0.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/disp/nouveau_engine_disp_nv50.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_gem.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_bo.c: revision 1.5
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/perfmon/nouveau_engine_perfmon_base.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/crypt/nouveau_engine_crypt_nv84.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/graph/nouveau_engine_graph_nv50.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nouveau_engine_fifo_nvc0.c: revision 1.2
	sys/external/bsd/drm2/include/linux/vmalloc.h: revision 1.4
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nve0.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nv04.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nouveau_engine_fifo_base.c: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/disp/nouveau_engine_disp_nvd0.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/disp/nouveau_engine_disp_nv04.c: revision 1.2
	sys/external/bsd/drm2/nouveau/nouveau_module.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nouveau_subdev_instmem_nv40.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/graph/nouveau_engine_graph_gm107.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/graph/nouveau_engine_graph_ctxnvd7.c: revision 1.2
	sys/external/bsd/drm2/include/linux/mutex.h: revision 1.7
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/disp/nv50.h: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/device/nouveau_engine_device_base.c: revision 1.3
	sys/external/bsd/drm2/include/linux/i2c.h: revision 1.6
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/graph/nouveau_engine_graph_nvc0.c: revision 1.2
	sys/external/bsd/drm2/include/linux/pagemap.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nouveau_subdev_instmem_nv04.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/engine/copy/nouveau_engine_copy_nva3.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c: revision 1.2
	sys/external/bsd/drm2/dist/drm/nouveau/core/include/subdev/bar.h: revision 1.3
	sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/pwr/nouveau_subdev_pwr_base.c: revision 1.2
Another round of nouveau whack-a-mole.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 23 08:03:33 2014 UTC (8 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.3: +14 -1 lines
Diff to previous 1.3 (colored)

Another round of nouveau whack-a-mole.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:21 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.3.4.1: +83 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:39 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2: +29 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Rebase.

Revision 1.3.4.1, Wed Jul 16 20:56:25 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.3: +0 -83 lines
FILE REMOVED

file vmalloc.h was added on branch tls-maxphys on 2014-08-20 00:04:21 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 16 20:56:25 2014 UTC (8 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-maxphys, netbsd-7
Changes since 1.2: +29 -1 lines
Diff to previous 1.2 (colored)

Make it build and boot on my test machines.

Screen blanks on boot on the Ivy Bridge system with

   DRM error in cpt_serr_int_handler: PCH transcoder A FIFO underrun

But after that everything is OK.  Appears to be an upstream problem.
To investigate...

I think there's a cache flushing issue somewhere -- there are little
display artefacts on my T60.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:56 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.6.1: +55 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:01 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.2.4.1: +55 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.2.6.1, Tue Mar 18 18:20:43 2014 UTC (8 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +0 -55 lines
FILE REMOVED

file vmalloc.h was added on branch yamt-pagecache on 2014-05-22 11:40:56 +0000

Revision 1.2.4.1, Tue Mar 18 18:20:43 2014 UTC (8 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.2: +0 -55 lines
FILE REMOVED

file vmalloc.h was added on branch rmind-smpnet on 2014-05-18 17:46:01 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 18 18:20:43 2014 UTC (8 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: yamt-pagecache, tls-earlyentropy, rmind-smpnet
Changes since 1.1: +55 -0 lines
Diff to previous 1.1 (colored)

Merge riastradh-drm2 to HEAD.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Jul 24 02:25:12 2013 UTC (9 years, 6 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1.2.2: +6 -0 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Add vzalloc to <linux/vmalloc.h>.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed Jul 24 02:02:45 2013 UTC (9 years, 6 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1.2.1: +14 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Implement vmalloc_user and vfree with malloc(9) in <linux/vmalloc.h>.

XXX Probably not the right thing here -- uvm_km_alloc is probably
more appropriate, but Linux doesn't pass the size to vfree, so this
is more expedient for now.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Wed Jul 24 00:33:12 2013 UTC (9 years, 6 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1: +35 -0 lines
Diff to previous 1.1 (colored)

Add stubs for Linux header files for drm.

Revision 1.1, Wed Jul 24 00:33:12 2013 UTC (9 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Branch point for: riastradh-drm2
FILE REMOVED

file vmalloc.h was initially added on branch riastradh-drm2.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>