The NetBSD Project

CVS log for src/sys/arch/arm/sunxi/sunxi_drm.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / sunxi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun Oct 2 10:37:12 2022 UTC (3 months, 4 weeks ago) by bouyer
Branch: bouyer-sunxi-drm
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

Patch from Robert Swindells: start converting the A20 console driver to
drm2.
It builds but panics at boot because of missing helper functions for
debe.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 25 07:50:23 2022 UTC (4 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, HEAD
Branch point for: bouyer-sunxi-drm
Changes since 1.25: +7 -2 lines
Diff to previous 1.25 (colored)

sunxidrm: Set is_console on the drm device, not the fb child.

The drm device is represented by a rockchip,display-subsystem node in
the device tree.  The fb child is a purely software abstraction used
by drm.

The is_console property is used by MD firmware logic to mark which
actual device in hardware bus enumeration like PCI or FDT the system
has chosen for the console early at boot, so hanging it on the node
for the real hardware device makes more sense than hanging it on the
software abstraction, and is consistent with recent changes to drmfb
to respect its setting on other platforms for hardware devices.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 28 05:19:03 2022 UTC (7 months ago) by skrll
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Add support for Lichee Pi Zero from Rui-Xiang Guo on port-arm

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 21 21:22:25 2022 UTC (9 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

s/subesquent/subsequent/ in copy pasted comments.

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

sunxi/drm, rockchip/drm: Avoid messy error output.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 19 12:28:20 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.21: +66 -3 lines
Diff to previous 1.21 (colored)

sunxi/drm: Use an explicit task queue to avoid config_defer pitfalls.

Same as the other drm drivers.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 19 11:25:48 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.20: +2 -23 lines
Diff to previous 1.20 (colored)

catch up with newer drm_encoder_init prototype


Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 19 11:25:17 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.19: +3 -11 lines
Diff to previous 1.19 (colored)

Use helper to fill fb struct


Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 19 11:25:09 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Fill fb->dev.


Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 19 11:01:21 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

drm_dev_alloc now returns ERR_PTR, check for that.


Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

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

Sort includes.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 19 11:00:46 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.15: +16 -28 lines
Diff to previous 1.15 (colored)

Get drm to build on arm64 again.


Author: Jared McNeill <jmcneill@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:45 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.14: +3 -4 lines
Diff to previous 1.14 (colored)

Merge thorpej-cfargs2.

Revision 1.14.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 16:51:29 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.14: +3 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Adapt to CFARGS().

Revision 1.14 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:28 2021 UTC (21 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:18 2021 UTC (21 months, 3 weeks ago) by thorpej
Branch: thorpej-futex
Changes since 1.11: +12 -9 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Fri Apr 2 22:17:38 2021 UTC (21 months, 4 weeks ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 29 06:24:18 2021 UTC (2 years ago) by rin
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Fix previous; sunxidrm(4) couldn't be probed on Allwinner A64 due to
trailing whitespace in compat string.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:20 2021 UTC (2 years ago) by thorpej
Branch: MAIN
Changes since 1.11: +12 -9 lines
Diff to previous 1.11 (colored)

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.7.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:38 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.7.4.2: +99 -7 lines
Diff to previous 1.7.4.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.7.6.4 / (download) - annotate - [select for diffs], Tue Dec 17 12:39:33 2019 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.7.6.3: +21 -4 lines
Diff to previous 1.7.6.3 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #562):

	sys/arch/arm/sunxi/sunxi_drm.c: revision 1.11

Make sure memory stolen from simplefb is page aligned.

Revision 1.7.6.3 / (download) - annotate - [select for diffs], Tue Dec 17 12:35:12 2019 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
Changes since 1.7.6.2: +7 -5 lines
Diff to previous 1.7.6.2 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by mrg in ticket #557):

	sys/arch/arm/rockchip/rk_drm.c: revision 1.3
	sys/arch/arm/ti/ti_lcdc.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_drm.c: revision 1.10

ensure to call drm_mode_config_cleanup() when erroring.

tripped up 'active lock in free' checks, and perhaps
lead to other lock corruption.  (crash with un-init lock
in arpresolve that does not make sense now seems to not
occur either.)

Revision 1.11 / (download) - annotate - [select for diffs], Mon Dec 16 12:40:17 2019 UTC (3 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, 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
Branch point for: thorpej-futex
Changes since 1.10: +21 -4 lines
Diff to previous 1.10 (colored)

Make sure memory stolen from simplefb is page aligned.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 15 01:00:58 2019 UTC (3 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.9: +7 -5 lines
Diff to previous 1.9 (colored)

ensure to call drm_mode_config_cleanup() when erroring.
tripped up 'active lock in free' checks, and perhaps
lead to other lock corruption.  (crash with un-init lock
in arpresolve that does not make sense now seems to not
occur either.)

Revision 1.7.6.2 / (download) - annotate - [select for diffs], Mon Nov 25 16:20:41 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.7.6.1: +48 -8 lines
Diff to previous 1.7.6.1 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #472):

	sys/arch/arm/sunxi/sunxi_drm.c: revision 1.9

Reclaim bootloader FB memory for CMA pool.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 24 12:21:14 2019 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +48 -8 lines
Diff to previous 1.8 (colored)

Reclaim bootloader FB memory for CMA pool.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Wed Nov 6 09:48:31 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
Changes since 1.7: +37 -4 lines
Diff to previous 1.7 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #400):

	sys/arch/arm/sunxi/sunxi_drm.c: revision 1.8
	sys/external/bsd/drm2/dist/include/drm/drm_gem_cma_helper.h: revision 1.6
	sys/external/bsd/drm2/dist/include/drm/drmP.h: revision 1.36
	sys/external/bsd/drm2/include/drm/bus_dma_hacks.h: revision 1.18
	sys/external/bsd/drm2/drm/drm_gem_cma_helper.c: revision 1.9
	sys/external/bsd/drm2/include/drm/drm_os_netbsd.h: revision 1.15

Arm DMA tags with _nranges=0 require no address translation. Handle this
in PHYS_TO_BUS_MEM and BUS_TO_PHYS_MEM instead of panicing.

Add support for DRM GEM/CMA helpers using a driver provided vmem arena.

Reserve enough memory at boot to support the drmfb buffer plus a 4K buffer
for Xorg.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 5 23:31:23 2019 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.7: +37 -4 lines
Diff to previous 1.7 (colored)

Reserve enough memory at boot to support the drmfb buffer plus a 4K buffer
for Xorg.

Revision 1.7.4.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:56 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.7.4.1: +478 -0 lines
Diff to previous 1.7.4.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD

Revision 1.7.4.1, Wed Feb 6 03:07:08 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.7: +0 -478 lines
FILE REMOVED

file sunxi_drm.c was added on branch phil-wifi on 2019-06-10 22:05:56 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 6 03:07:08 2019 UTC (3 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Add support for hardware cursors where we can.

As far as I can tell, alpha blending only works between overlay channels,
and not between layers on a channel. Unfortunately, RT-Mixer1 only has
a single UI channel, so this feature is limited to RT-Mixer0.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 4 12:10:13 2019 UTC (3 years, 11 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +67 -6 lines
Diff to previous 1.5 (colored)

Add support for vblank irq and RGB overlay planes.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 3 15:43:57 2019 UTC (3 years, 11 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +10 -2 lines
Diff to previous 1.4 (colored)

Support "nomodeset" kernel cmdline flag to disable sunxidrm

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 31 01:49:28 2019 UTC (3 years, 11 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

Add support for Allwinner H3/H5 display pipeline.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 30 10:55:44 2019 UTC (4 years ago) by jmcneill
Branch: MAIN
Changes since 1.2: +7 -0 lines
Diff to previous 1.2 (colored)

Revert previous

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 30 02:44:19 2019 UTC (4 years ago) by jmcneill
Branch: MAIN
Changes since 1.1: +2 -9 lines
Diff to previous 1.1 (colored)

Detach previous console device before attaching drmfb instead of relying on fdt_remove_bycompat hack

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 30 01:24:00 2019 UTC (4 years ago) by jmcneill
Branch: MAIN

Add support for Allwinner A64's display pipeline.

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>