Commit Graph
100 Commits
Author SHA1 Message Date
Alexander von Gluck IV f83af26271 data: Kernel settings file
* Add example line to always boot using safe
  video mode (vesa)
2014-11-28 20:37:02 -06:00
Alexander von Gluck IV a46669aa1c radeon_hd: Improve pitch width alignment 2014-11-15 16:19:45 -06:00
Alexander von Gluck IV a9327b1110 radeon_hd: Add additional sanity checks
* Prevents negative array index read (again)
* Clear display_mode struct before lvds read - CID 1108403
2014-11-15 09:25:40 -06:00
Alexander von Gluck IV 6a716f63ae radeon_hd: Exit on GPIO pin space exhaustion
* Prevents negative array index read
* CID 1210885
2014-11-15 08:56:40 -06:00
Alexander von Gluck IV 44b9746039 radeon_hd: Fix Spread Spectrum clock decimal place
* As 104Mhz is stores as 10400 on atombios,
  and 104000 everywhere else... this conversion
  was going the wrong direction.
* Shrink the stored value to 10Khz units to properly
  compare to the AtomBIOS value
2014-11-10 22:16:49 -06:00
Alexander von Gluck IV 3de924d06c radeon_hd: Implement initial DP encoder service
* Used on older chipsets. Untested.
2014-11-10 22:01:36 -06:00
Alexander von Gluck IV 6ab4ff112a accelerants: Fix warning introduced in hrev48265
* Align types for compare
* Fixes builds
2014-11-09 15:53:44 -06:00
Alexander von Gluck IV 57bc65034a Everything: Update lots of code to use B_COUNT_OF macro
* Likely not everything, but the obvious uses of B_COUNT_OF
2014-11-09 14:52:19 -06:00
Alexander von Gluck IV f2b20f8804 SupportDef: Add B_COUNT_OF to get array element count.
* We implement this in a lot of places in a lot of
  ways. Lets add it to the SupportDef
2014-11-09 14:47:39 -06:00
Alexander von Gluck IV e0923fddba radeon_hd: 68f9 was present twice in the driver
* Keep older one as I have the card in-hand
2014-11-09 13:04:07 -06:00
Alexander von Gluck IV 91c0454716 3rdparty: Add a quick doc on how to use IOMMU on Linux
* Drop my old script, didn't work well anymore.
2014-11-09 12:58:55 -06:00
Alexander von Gluck IV 3f84ea0c7e ScreenInfo: Include screeninfo in images
* Rename from screen_info to screeninfo to match
  screenmode
2014-11-09 12:20:04 -06:00
Alexander von Gluck IV f3ed89bb64 partition/intel: Fix GPT error language.
* Yeah, intel shouldn't support GPT :-)
2014-09-01 19:41:19 +00:00
Alexander von Gluck IV febaef90ec screen_info: Create BApplication to use BScreen
* BScreen uses AppServerLink, thanks PulkoMandy!
2014-08-19 13:28:54 -04:00
Alexander von Gluck IV be84a96144 bin: Add screen_info command
* Provides basic information on attached BScreen's
* Only shows B_MAIN_SCREEN_ID at the moment as that's
  all we have available.
2014-08-19 12:50:39 -04:00
Alexander von Gluck IV ea28139d84 docs: Update opengl readme info 2014-08-19 10:39:23 -04:00
Alexander von Gluck IV 4662c8c0a9 docs: opengl. Add some great documentation provided by Roudolf.
* Posted to the haiku-appserver ML, circa 2005.
* Covers a lot of intended uses of Be's accelerant API's in
  depth and compares them to moden cards
2014-08-19 10:28:53 -04:00
Alexander von Gluck IV 57891e9363 app_server/html5: Fix CanvasMessage header guard 2014-08-07 21:21:36 +00:00
Alexander von Gluck IV 30bd14fabd app_server/html5: Fill in uninitalized member; CID 611419 2014-08-07 21:19:34 +00:00
Alexander von Gluck IV 1dc0615477 app_server/html5: Fill in uninitalized members; CID 611418 2014-08-07 21:15:45 +00:00
Alexander von Gluck IV 2a3020ac9d app_server/html5: Drop unused and uninitalized members 2014-08-07 21:10:17 +00:00
Alexander von Gluck IV 14ed9dd5fc x86: Update tar package in repo to 1.27.1-2
* Tested functional
2014-08-05 18:23:55 +00:00
Alexander von Gluck IV 99f83552ca radeon_hd: Fix comment typo, no functional change 2014-05-26 22:35:36 -05:00
Alexander von Gluck IV e938ebdae0 radeon_hd: Rework PLL picking code
* Rewrote to be more efficient and more accurate.
* Fix a DP bug where we didn't choose the correct
  external PLL.
2014-05-26 22:26:24 -05:00
Alexander von Gluck IV 4bb543e517 radeon_hd: Add in a bunch of missing Trinity/Richland ID's
* Add market name to a bunch of Kabini, Mullins cards
  after some creative web searches
2014-05-25 12:03:35 -05:00
Alexander von Gluck IV e321d716e4 radeon_hd: Add latest generation radeon_hd cards
* These aren't tested, but since we go off of DCE
  versions for a lot of stuff, they may work.
* AMD doens't include market names in their drivers
  anymore, so if we want to label them it will take
  additional work.
2014-05-25 09:03:03 -05:00
Alexander von Gluck IV 75dcf02ac8 radeon_hd: Add PCIID for Radeon HD 3430
* Should resolve #10791
2014-05-24 21:54:54 -05:00
Alexander von Gluck IV 38ec158d2a radeon_hd: Cleanup atombios parser types
* pptable.h now 100% stock
* atombios.h now 99% stock
* Resolves issues with radeon_hd on x86_64 by
  making atombios structs match OS typedefs
* Resolves #10614
2014-05-24 21:05:03 -05:00
Alexander von Gluck IV bc73719d2f radeon_hd: Add some additional APU's, should resolve #10606 2014-05-24 16:49:03 -05:00
Alexander von Gluck IV a8307efa46 radeon_hd: Improve pll probing. Let probe calls enable ss 2014-05-24 16:49:03 -05:00
Alexander von Gluck IV 2aaeccd9ec autoraise: Toggle not toogle; no functional change 2014-05-20 18:36:31 -05:00
Alexander von Gluck IV cc67216333 kernel: Toggle not toogle; no functional change 2014-05-20 18:36:30 -05:00
Alexander von Gluck IV a8f9011015 h2: Fix bluetooth driver build, missing PrivateKernelHeaders
* We likely should move all of this stuff to normal
  atomic test and set operations at some point.
2014-05-18 22:33:56 -05:00
Alexander von Gluck IV 672d1fb48f glu: Upgrade glu revision to 9.0.0-3 2014-05-12 22:28:39 +00:00
Alexander von Gluck IV 2354b8ac00 radeon_hd: Finish spread spectrum support
* This needs testing and is to remain disabled
  until we can test on several radeon_hd cards
  from multiple families
2014-05-01 09:45:06 -05:00
Alexander von Gluck IV f01af94ff7 radeon_hd: Don't squash ss status_t into bool 2014-05-01 08:56:55 -05:00
Alexander von Gluck IV c0b833b10a build: Fix raspberry_pi target board name. Not pi 2014-04-27 17:03:53 -05:00
Alexander von Gluck IV 1274874d1d docs: Cleanup beagle documentation a little 2014-04-27 17:03:53 -05:00
Alexander von Gluck IV 5153d5ee57 mesa: Add x86 10.1.1-1 build package based on recipe 2014-04-23 13:51:38 -05:00
Alexander von Gluck IV 1d481eee64 3rdparty: These 3rd party mesa bits are no longer needed
* Mesa is completely filled by recipies now
2014-03-23 18:48:34 -05:00
Alexander von Gluck IV c075da70b6 3rdparty: Add Linux IOMMU script
* For use on linux hosts to attach a secondary GPU directly
  to a qemu / kvm virtual machine.
* The attached card may be in a limbo state, so the driver will
  need to re-post the GPUU
2014-03-23 12:48:30 -05:00
Alexander von Gluck IV 5006aac272 radeon_hd: Clean up DP training
* Few tweaks to DP training
* Check for TP3 support and go with TP3 if needed
* Make training more verbose
* Fix DP snoose on ce
2014-02-26 17:17:44 -06:00
Alexander von Gluck IV d035469704 ARM: Name beagleboneblk back to beagle
* Pulkomandy pointed out that all Beagle hardware is
  very similar so we could likely get away with a single
  ARM target board.
2014-02-26 15:33:40 -06:00
Alexander von Gluck IV e2c2a5cefe radeon_hd: Fix app_server bt regression introduced at hrev46862
* We adjusted the array of pointers to be larger, but
  didn't adjust the malloc to be larger.
* Should solve #10563 and maybe #10536
2014-02-26 15:23:53 -06:00
Alexander von Gluck IV 8cfbbff4df ARM: Fix dmb opcode 2 on ARMv6
* Typo, also fix tabs
* Sorry for the spam, this should be correct now
2014-02-26 13:22:18 -06:00
Alexander von Gluck IV b6994f96c0 ARM: Break apart ARMv5 and older dsb/dmb
* Add isb just because.
* pdziepak pointed out that ARMv5 and before
  had different barrier support.
* pdziepak also mentioned that dsb was too strong
  for __sync_synchronize
2014-02-26 13:17:21 -06:00
Alexander von Gluck IV a21611e439 ARM: Add ARMv6 or older __sync_synchronize built-in
* On ARMv6 or older, we do a simulated dsb.
* Move __sync_synchronize into thread.c in libroot
  and use the new arch_atomic.h dsb/dmb defines.
* Gets arm @bootstrap-raw to end of bootstrap.
2014-02-26 12:51:51 -06:00
Alexander von Gluck IV 6d3363214f ARM: Simplify board specification
* Don't assume verdex as it isn't clear this was
  occurring.
* Make an educated guess on HAIKU_BOOT_PLATFORM
  based on provided board (but still allow it to
  be overridden)
* Error out if user doesn't populate
  HAIKU_BOOT_PLATFORM or enters an unknown board
  name.
* You need to add "-sHAIKU_BOOT_BOARD=xxx" to
  your jam to build for the proper ARM device.
* Rename beagle to beagleboneblk as per the
  documentation.
2014-02-26 00:27:18 -06:00
Alexander von Gluck IV 2eccf32862 x86_64: Add latest Mesa packages
* Solves #9362
2014-02-22 01:38:20 +00:00
Alexander von Gluck IV 122d1cddc9 Haiku: Fix posix INT64_C macros on x86_64
* Was causing LLVM to fail to build on x86_64
* Make XINT64 adjust based on architecture like
  config/types.h to ensure these macros match
  uint64 and int64 at all times.
* Resolves #10566
2014-02-21 01:38:54 -06:00
Alexander von Gluck IV 1b38c3412c mips: Remove mips
* As per the ML discussions. Bumps MIPS to tier 3.
* We've reached a unanimous descision that MIPS doesn't
  target any real / valid hardware Haiku wants to pursue
  at the moment.  In the event that anyone wants to pursue
  MIPS, feel free to fork Haiku into your own repository
  (and we'll even link to it on the website ports page)
* If someone develops a viable plan for MIPS (and gets the
  port working, it can be readded at a later date)
2014-02-18 16:29:09 -06:00
Alexander von Gluck IV abcbb5d617 arm/paging: Convert to new-style CPU management
* Aka, post-scheduler changes
* Luckily ARM paging code is very simular to x86 paging
2014-02-12 23:54:35 -06:00
Alexander von Gluck IV 35171b073d arm: Miscellaneous build fixes
* Use atomic_get_and_set for return value
* Atomics are no longer volatile
* Add missing arch_cpu_pause stub
* Move arch_cpu_idle to arch_cpu header to match
  other architectures
2014-02-12 23:37:15 -06:00
Alexander von Gluck IV 8018e8fa91 arm: Rework hrev46863 to use gcc built-in
* Those calls were indeed v7+ only, and our toolchain
  is v6.
2014-02-12 23:34:08 -06:00
Alexander von Gluck IV 92b2e03d0d arm: Add initial memory barrier functions
* These likely need reviewed by someone better
  at arm assembly. (#10537)
2014-02-12 23:11:11 -06:00
Alexander von Gluck IV fca8407a2a radeon_hd: Fix GPIOInfo pin shortage on some cards
* Some cards have a lot of pins!
* Should fix #10536
* Add a check to give a friendy warning if we find
  more GPIO pins than what we are prepared for.
* Technically the maximum GPIO pins could be
  ATOM device max * 2 (16 for i2c and other)
  however lets leave some room for expansion.
2014-02-12 21:25:47 -06:00
Alexander von Gluck IV 0ba833faa0 docs: Update arm build instructions; no functional change
* For a post PM world
2014-02-09 23:44:57 -06:00
Alexander von Gluck IV 490f23801a AboutSystem: Remove Jonas from current maintainers
* As per his own request on haiku-commits.
* Sorry to see you go!
2014-02-09 21:57:44 -06:00
Alexander von Gluck IV b41ab65bd4 x86_64: Add BootManager, writembr
* Fix build of BootManager on x86_64 (signed vs unsigned error)
* Throw in writembr as it seems to build (untested)
2014-02-05 23:25:26 -06:00
Alexander von Gluck IV 339a018112 radeon_hd: Rework dp aux functions to take connector index
* This is less pretty, but we need access to the connector
  to find the HPD gpio pin mask on the card.
* dp_aux communications seem to work again.
* If you have a DisplayPort item attached to your card you
  may want to just unplug it at this point. We attempt DP
  link training and it fails. This failure will also cause
  other monitors to not function as app_server still isn't
  multi-head aware (#10486)
2014-02-03 20:20:13 -06:00
Alexander von Gluck IV 539a6cafc5 radeon_hd: More gpio rework
* Bump i2c data into it's own struct
* Populate gGPIOInfo with general gpio pins
  (for things like HPD, and voltage control)
* Attach HPD gpio pins to connectors
* Dump trace info of HPD pins as well as i2c pins
2014-02-03 17:02:08 +00:00
Alexander von Gluck IV 2b03285218 radeon_hd: Rework gpio pins
* There are GPIO pins for hotplug interrupts and i2c
  communications (for edid). Add two fields to connector
  (index for each in gGPIOInfo).
* DP aux communcation seems to want the hotplug GPIO pin
  info, which we don't get (I think this is why DP AUX comms
  is broken at the moment)
* GPIO LUT seems to know about a wide range of GPIO pins, while
  the i2c gpio calls only know about the ones needed for i2c.
* I'm tempted to populate gGPIOInfo with the LUT pins and
  then suplement that data with the i2c GPIO pins data.
  (however, not sure how many pins there are generally defined
  so it could impact performance. More investigation is needed)
  This would reverse how it works now with this commit.
2014-02-03 06:44:29 +00:00
Alexander von Gluck IV 8ebdc440de radeon_hd: Better tracing. Fix DP ack bitwise shift 2014-02-03 06:44:28 +00:00
Alexander von Gluck IV 4d449fccfe radeon_hd: Fix superfluous DPMS hook calls
* The DPMS hook would be called on all
  possible displays causing lots of link
  training on incomplete connector structures
  that may be not attached / connected.
2014-02-03 02:53:04 +00:00
Alexander von Gluck IV 6464f4f659 x86_64: Add a bunch of video drivers that compile.
* Added cards need testing.
* 3dfx, ati, neomagic, and s3 still don't build due to some
  more complex pointer size issues. (and I don't have hardware
  to test on)
2014-01-30 14:55:19 -06:00
Alexander von Gluck IV 33d1fedd0c s3: fix driver for x86_64 2014-01-30 14:53:32 -06:00
Alexander von Gluck IV 9f22edc2fa intel_810: fix for x86_64 2014-01-30 14:53:05 -06:00
Alexander von Gluck IV fc90d9a48e intel_extreme: Unlock mutex after we're done, not before
* Thanks Axel for catching this one.
2014-01-28 23:32:16 -06:00
Alexander von Gluck IV eef994b964 graphics: Spell check drivers, fix tab. No functional change 2014-01-28 23:32:16 -06:00
Alexander von Gluck IV 87784cafb8 vesa: Fix tracking of device opens / closes
* Don't raise the open_count when the open fails
2014-01-27 21:12:18 +00:00
Alexander von Gluck IV 3347bc1431 intel_extreme: Fix tracking of device opens / closes
* Don't raise the open_count when the open fails
2014-01-27 21:12:17 +00:00
Alexander von Gluck IV 01696cd951 radeon_hd: Fix tracking of device opens / closes
* Don't raise the open_count when the open fails
* Remove the kdl command on uninit
2014-01-27 21:12:16 +00:00
Alexander von Gluck IV 27c7c040de HaikuPortsCross: Add rest of needed bootstrap packages for PowerPC 2014-01-26 14:33:11 -06:00
Alexander von Gluck IV 800d5376f9 package kit: Disable curl requirement on bootstrap build
* As per the mailing list.
* Introduce HAIKU_BOOTSTRAP_BUILD define to sources
  to let them know they are taking part in a bootstrap
2014-01-26 10:42:37 -06:00
Alexander von Gluck IV 547466c035 ppc: Add icu HaikuPortsCross package
* Work towards resolving #10240
2014-01-25 23:44:18 -06:00
Alexander von Gluck IV e1cb851018 mesa: update x86 packages to 10.0.2-2
* Revision bump goes from llvm-3.2 to llvm-3.4 internally
* mesa_swpipe gallium llvmpipe renderer is working again, enjoy!
2014-01-22 00:55:54 -06:00
Alexander von Gluck IV 1fe66815b7 mesa: update x86 packages to 10.0.2-1
* Fixes x86 primary side of #10456
* x86 secondary still needs rebuilt
2014-01-21 22:08:06 -06:00
Alexander von Gluck IV bcbd6e6cfe intel_extreme: Fix crash of driver on multiple open
* open_count only got raised on initial open,
  subsequent opens didn't increment the counter
  thus when they exited the driver unloaded
  causing app_server to crash
* Thanks to hamishm for pointing out that
  the if checks the pre-increment number
* Resolves #10452
2014-01-20 20:51:46 -06:00
Alexander von Gluck IV 7b59f29e9e radeon_hd: Fix crash of driver on multiple open
* open_count only got raised on initial open,
  subsequent opens didn't increment the counter
  thus when they exited the driver unloaded
  causing app_server to crash
* Thanks to hamishm for pointing out that
  the if checks the pre-increment number
* Resolves #10452
* Add a kdl debug command to radeon_hd
2014-01-20 20:51:46 -06:00
Alexander von Gluck IV fd78b6df3f ppc: Modernize atomic.S.
* Stub out atomic_get_and_set. This needs completed.
2014-01-19 23:39:19 -06:00
Alexander von Gluck IV 24f0b1e29e libroot: Drop volatile in syscall atomic functions
* Per 077c84eb27, atomics are no longer volatile.
* Was changed in SupportDefs.h, but no one told libroot
  that it was no-longer volatile.
2014-01-19 22:31:37 -06:00
Alexander von Gluck IV 749a60bf39 ppc: atomic is no longer volatile per 077c84eb27 2014-01-19 22:14:28 -06:00
Alexander von Gluck IV 14919567d1 kernel: Add more architecture code post-scheduler
* Fix incorrect cpu vendor name mapping
* Add additional CPU architectures
* Add additional CPU vendors
* Rework PowerPC arch_system_info passing
  PVR back for cpu model
2014-01-19 21:53:56 -06:00
Alexander von Gluck IV 88c54b5485 kernel: Rework ppc (and m68k) atomic functions post-scheduler
* Make atomic function more like current x86
* Remove fake fallback atomic code for ppc as hardware spinlocks exist
2014-01-19 19:33:21 -06:00
Alexander von Gluck IV c9e66bfc9b kernel: Add missing smp memory barrier calls. Set max cpu to 1
* Set max cpu to 1 for PPC until atomic functions are finished
* We have atomic functions inline in the kernel and assembly
  code in libroot post-scheduler merge... isn't that a lot of
  duplication?
2014-01-19 19:33:21 -06:00
Alexander von Gluck IV fb8026e82b kernel: Add missing PPC CPU functions for idle / pause 2014-01-19 14:38:01 -06:00
Alexander von Gluck IV 524bea3553 kernel: fix missing cpu cache defines non-x86
* Regression introduced due to scheduler change
* Other other non-x86, non-ppc, and non-arm platforms
  need evalulated for this metric
2014-01-19 14:27:09 -06:00
Alexander von Gluck IV 6647d2c95a kernel: fix missing SMP_MAX_CPUS on non-x86
* Regression introduced due to scheduler change
* Drop MAX_BOOT_CPUS as it is no longer used
2014-01-19 14:09:51 -06:00
Alexander von Gluck IV b11772acca build: Update x86_gcc2 gcc packages
* Resolves problem with secondary arch builds
  not picking up secondary os kit headers
* Still need to build x86 gcc packages
* No binary changes, shouldn't need a bootstrap
2014-01-15 00:45:59 -06:00
Alexander von Gluck IV 7c28f77332 system: Improve AMD CPU detection
* Several CPUID's were thrown into the Athlon 64
  catch all.  Add Sempron 64 and correct CPUIDs
  solves #9553
* Add better AMD A-Series detection
2014-01-14 20:24:02 -06:00
Alexander von Gluck IV 4f357bc071 sysinfo: Improve x86 CPU information
* Displays standard CPUID, and shows what the
  internal CPUID used by OS.h *should* be.
* Should help out in identifying new CPU's
  as all end users have to do is run sysinfo
  to get the CPU info + value for OS.h
2014-01-11 16:14:22 -06:00
Alexander von Gluck IV aa4b5749d6 runtime_loader: Detect and trigger on PE binaries
* Previously PE binaries would trigger the "incorrectly
  executable" dialog. Now we get a special message for
  B_LEGACY_EXECUTABLE and B_UNKNOWN_EXECUTABLE
* Legacy at the moment is a R3 x86 PE binary. This could
  be extended to gcc2 binaries someday far, far, down the
  road though
* The check for legacy is based on a PE flag I see
  set on every R3 binary (that isn't set on dos ones)
* Unknown is something we know *is* an executable, but
  can't do anything with (such as an MSDOS or Windows
  application)
* No performance drops as we do the PE scan last
* Tested on x86 and x86_gcc2
2014-01-07 19:38:07 -06:00
Alexander von Gluck IV a72cc0a9b7 radeon_hd: Add missing cedar chipset
* May fix #10373
2014-01-06 17:14:14 -06:00
Alexander von Gluck IV 465610acdc joystick: Don't crash when 0 joysticks exist on a port
* Interestingly, my SIXAXIS controller shows up in
  the window as usb/0 when plugged.
2014-01-05 23:35:05 -06:00
Alexander von Gluck IV 64d7ff778b BuildSetup: Refactor 5e97cd45cf to better detect b.e.
* Looking back, we should not assume little endian if
  we see armv* as armv7l is little endian while armv7b
  is big endian
2014-01-02 10:26:34 -07:00
Alexander von Gluck IV f8da8f3477 ARM: Be aware of ARMEL and ARMEL
* My BeagleBone gcc defines __ARMEL__ but not
  __ARM__ which breaks the native tool builds
* As ARM was originally Little Endian, we assume
  __ARM__ means as such.
* Look for Big Endian ARM and define the needed big
  endian preprocessors
2014-01-01 23:41:02 -07:00
Alexander von Gluck IV 5e97cd45cf BuildSetup: Add better arm host detection
* rather unlikely... unless you're insane like me
* BeagleBoard is armv7l-, so lets look for armv*
  (I don't want to do arm* as it is less precise)
2014-01-01 22:20:12 -07:00
Alexander von Gluck IV d068e94ca1 mesa: Update Mesa 10.0.1 package
* Resolves #10360 for Mesa 10.0.1 (gcc4)
* The changes in this revision are queued for upstream
2013-12-31 16:44:15 -06:00
Alexander von Gluck IV 852730f036 mesa: Update Mesa 7.9.2 package
* Resolves #10360 for Mesa 7.9.2 (gcc2)
2013-12-30 23:33:29 -06:00
Alexander von Gluck IV 39509da7de radeon_hd: Fix non-gcc2 pragma statement
* I'll ping the linux radeon guys to see if
  we can get this adjustment made as we use
  stock atombios headers
2013-12-30 21:54:10 -06:00