Home | History | Annotate | Download | only in nvidia
History log of /src/sys/arch/arm/nvidia/tegra_drm_fb.c
RevisionDateAuthorComments
 1.10  19-Dec-2021  riastradh drm: Make tegra drm build again.
 1.9  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.8  24-Apr-2021  thorpej branches: 1.8.8;
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?).
 1.7  24-Sep-2018  skrll branches: 1.7.14;
Call drm_fb_helper_prepare in tegra_drm_fb_init as required.

I can boot a kernel with this

jetsontk1# dmesg | grep fb
[ 1.0000580] tegrafb0 at tegradrm0
[ 1.0000580] tegrafb0: framebuffer at 0x9bc00000, size 1024x768, depth 32, stride 4096
[ 1.0000580] wsdisplay0 at tegrafb0 kbdmux 1
jetsontk1#
 1.6  26-Dec-2017  jmcneill branches: 1.6.2; 1.6.4;
Use DRM GEM/CMA helper.
 1.5  01-Jun-2017  chs branches: 1.5.8;
remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.
 1.4  17-Dec-2016  maya Fix regression introduced by myself with the addition of da_fb_linebytes

tegra_fb was not adjusted so da_fb_linebytes was used uninitialized

add tfa_fb_linebytes and match radeonfb/nouveaufb code in how we set it
switch to using an initializer to hopefully avoid future errors

this change doesn't need to be pulled up, as tegra_fb.c is absent
in netbsd-7
 1.3  16-Nov-2015  jmcneill branches: 1.3.2; 1.3.4;
use XRGB8888 for framebuffer
 1.2  12-Nov-2015  jmcneill Use GEM for memory management. Fixes a couple issues while here:
- No longer needs to allocate 35MB (!) for framebuffer console.
- Allows xrandr to switch to modes larger than the framebuffer console.
- Removes hack that redirected mmap calls to wsdisplay0
 1.1  09-Nov-2015  jmcneill Port the Tegra (2D) display drivers to the DRM framework.

tegradrm0 at tegraio0
tegrafb0 at tegradrm0
tegrafb0: framebuffer at 0x9b000000, size 1280x720, depth 32, stride 5120
wsdisplay0 at tegrafb0 kbdmux 1
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 0-3 added (default, vt100 emulation)
tegradrm0: info: registered panic notifier
tegradrm0: initialized tegra 0.1.0 20151108 on minor 0

Same features as before (fb console, X wsfb driver works) with the addition
of being able to use xf86-video-modesetting and xrandr to switch video
modes at runtime.
 1.3.4.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.3.2.4  28-Aug-2017  skrll Sync with HEAD
 1.3.2.3  05-Feb-2017  skrll Sync with HEAD
 1.3.2.2  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.3.2.1  16-Nov-2015  skrll file tegra_drm_fb.c was added on branch nick-nhusb on 2015-12-27 12:09:31 +0000
 1.5.8.2  03-Dec-2017  jdolecek update from HEAD
 1.5.8.1  01-Jun-2017  jdolecek file tegra_drm_fb.c was added on branch tls-maxphys on 2017-12-03 11:35:54 +0000
 1.6.4.1  10-Jun-2019  christos Sync with HEAD
 1.6.2.1  30-Sep-2018  pgoyette Ssync with HEAD
 1.7.14.1  02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.8.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed