The NetBSD Project

CVS log for src/sys/arch/arm/rockchip/rk_drm.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 30 23:10:43 2022 UTC (2 months, 4 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

Remove dirty fb IOCTL callback introduced in latest drm update.

Not sure how this got here, but the rkdrm driver does not need to do
damage tracking as it uses Normal-NC (uncached) mappings.

PR# port-arm/56596

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

rkdrm: 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.19 / (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.18: +3 -3 lines
Diff to previous 1.18 (colored)

s/subesquent/subsequent/ in copy pasted comments.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 20 00:27:17 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.17: +3 -55 lines
Diff to previous 1.17 (colored)

rkdrm: Implement vblank.

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

rkdrm: Comment why we config_defer rk_drm_init.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 19 12:43:37 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.15: +14 -6 lines
Diff to previous 1.15 (colored)

rkdrm: Convert to atomic modesetting, as needed for bridges.


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

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 19 12:43:29 2021 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

rkdrm: Do drm_mode_config_reset on init.

Revision 1.14 / (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.13: +12 -11 lines
Diff to previous 1.13 (colored)

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

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

rockchip/drm: use drm_helper_mode_fill_fb_struct or say why not.


Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

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

rockchip/drm: use an explicit task queue to avoid config_defer pitfalls.


Author: phone <mrg@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.11 / (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.10: +2 -23 lines
Diff to previous 1.10 (colored)

catch up with newer drm_encoder_init prototype


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

Revision 1.10 / (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.9: +3 -3 lines
Diff to previous 1.9 (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.9 / (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.8: +11 -11 lines
Diff to previous 1.8 (colored)

Sort includes.

Revision 1.8 / (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.7: +17 -29 lines
Diff to previous 1.7 (colored)

Get drm to build on arm64 again.


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

Revision 1.7 / (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.6: +3 -4 lines
Diff to previous 1.6 (colored)

Merge thorpej-cfargs2.

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

Adapt to CFARGS().

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:24 2021 UTC (20 months, 2 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Apr 28 04:51:41 2021 UTC (21 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, 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.5: +6 -2 lines
Diff to previous 1.5 (colored)

for big endian kernels use DRM_FORMAT_BGRX8888 pixel format.

now my pinebook pro console looks right with evbarm64-eb, instead
of having red and green swapped, and no blue.  fixes both console
"text" mode and X11.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:28 2021 UTC (21 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-i2c-spi-conf
Changes since 1.4: +5 -3 lines
Diff to previous 1.4 (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.3.10.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.3: +6 -6 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.4.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.4: +5 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:19 2021 UTC (2 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 (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.3.8.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:37 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.3.8.1: +514 -0 lines
Diff to previous 1.3.8.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Tue Dec 17 12:35:11 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.2.2.2: +7 -5 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (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.3.8.1, Sun Dec 15 01:00:58 2019 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.3: +0 -514 lines
FILE REMOVED

file rk_drm.c was added on branch phil-wifi on 2020-04-13 08:03:37 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 15 01:00:58 2019 UTC (3 years, 1 month ago) by mrg
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, phil-wifi
Changes since 1.2: +7 -5 lines
Diff to previous 1.2 (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.2.2.2 / (download) - annotate - [select for diffs], Sat Nov 16 16:48:25 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.2.2.1: +512 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

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

	sys/dev/ic/dw_hdmi_phy.c: revision 1.2
	sys/dev/ic/dw_hdmi.c: revision 1.4
	sys/dev/fdt/ausoc.c: revision 1.5
	sys/dev/ic/dw_hdmi.h: revision 1.2
	sys/dev/ic/dw_hdmi.h: revision 1.3
	sys/dev/ic/dw_hdmi.h: revision 1.4
	sys/conf/files: revision 1.1242
	sys/dev/fdt/fdtvar.h: revision 1.57
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.11
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.12
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.13
	sys/arch/evbarm/conf/GENERIC64: revision 1.110
	sys/arch/arm/rockchip/rk_drm.c: revision 1.1
	sys/arch/arm/rockchip/rk_drm.c: revision 1.2
	sys/arch/evbarm/conf/GENERIC64: revision 1.112
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.1
	sys/dev/fdt/fdt_clock.c: revision 1.10
	sys/arch/evbarm/conf/GENERIC64: revision 1.113
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.2
	sys/arch/arm/rockchip/rk_drm.h: revision 1.1
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.3
	sys/arch/arm/rockchip/rk_fb.c: revision 1.1
	sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.9
	sys/arch/arm/rockchip/rk_vop.c: revision 1.1
	sys/arch/arm/rockchip/rk_vop.c: revision 1.2
	sys/arch/arm/rockchip/rk_i2c.c: revision 1.6
	sys/arch/arm/rockchip/rk_cru.h: revision 1.6
	sys/arch/arm/rockchip/rk_cru.h: revision 1.7
	sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.4
	sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.5
	sys/arch/arm/rockchip/files.rockchip: revision 1.21
	sys/arch/arm/rockchip/rk_i2s.c: revision 1.1
	sys/arch/arm/rockchip/files.rockchip: revision 1.22
	sys/dev/ic/dw_hdmi.c: revision 1.2
	sys/dev/ic/dw_hdmi_phy.c: revision 1.1
	sys/dev/ic/dw_hdmi.c: revision 1.3

Support reads of more than 32 bytes in a single xfer.

Add support for internal DesignWare HDMI PHYs

Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcuts

Add HDMI and VOP clocks

WIP display driver for Rockchip RK3399

Add (commented out) Rockchip display support

Select the correct MPLL and PHY settings for the requested pixel clock
Force DCLK_VOP0/1 dividers to 1 and select closest match when setting PLL
rates.

Fix typo in phy config table

Fix a few swapped fields

Remove debug output

Enable Rockchip display support

Set sysclk rate at set_format time, so the link set_format callback can read the new sysclk

Add I2S audio input support.
Add software volume controls.
Add support for I2S clocks.
Add driver for Rockchip I2S/PCM controller.
Enable HDMI audio on ROCKPro64
Add rki2s
Add audio support

Revision 1.2.2.1, Thu Nov 14 20:39:46 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
Changes since 1.2: +0 -512 lines
FILE REMOVED

file rk_drm.c was added on branch netbsd-9 on 2019-11-16 16:48:25 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 14 20:39:46 2019 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119
Branch point for: netbsd-9
Changes since 1.1: +2 -4 lines
Diff to previous 1.1 (colored)

Remove debug output

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 9 23:30:14 2019 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN

WIP display driver for Rockchip RK3399

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>