-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kobo Elipsa support (a.k.a, sunxi) #64
Conversation
And putting it in a centralized place, because that way lies madness.
So, at least ensure we use saner-ish data types on *our* side...
And, good news, the command handlers are mildly saner. They're still hobbled by the handler's prologue, though...
(Confirmed by raising the disp print level via debugfs).
Because we can't rely on fb0 anymore :(
Mostly for FFI purposes.
Not completely critical, as we don't write to the fb on that platform.
rotation, and make 0 behave as the canonical Portrait, as that's what it's effectively always set to in Nickel.
This pull request introduces 2 alerts when merging 24acf62 into 9e6b568 - view on LGTM.com new alerts:
|
A few significant quirks:
|
And now, ping @gtalusan, because I come bearing bug reports ;p. In no particular order: Kernel issues:
The issue is slightly gnarlier than the dithering one in that there is enough space in the first 16 bits (even without moving
nickel/pickel quirks:
The ion stuff was sniffed via a patched strace, as was the disp stuff, although it's also evident in debug logging if you raise disp's debug level: Lines 2571 to 2575 in 24acf62
|
Nickel uses its own accelerated dithering instead of the kernel's. You should too. Don't confuse pointers with uninitialized/doesn't-crash-then-don't-care values. |
Also CARVEOUT | DMA is probably definitely a bug on our side. CARVEOUT is the way to go. 💯 on that. |
I usually am (well, without the "accelerated" part :D), but the EPDCv2 dithering support available on Mk. 7 was surprisingly decent ;).
I was on the fence, but the fact that they appeared to be close to actual useful pointers in the same ioctl args and deref to "correct" (usually 0 ;p) values was strange ^^. (Definitely on the "mostly harmless" side of things, though. Although I wouldn't necessarily trust all the |
Switched to the carveout in 934616f, at a very quick glance nothing new horribly blew up, thanks ;).
|
This pull request introduces 2 alerts when merging 934616f into 9e6b568 - view on LGTM.com new alerts:
|
A bit twistier because it *requires* device identification, but it works out well enough.
The whole logic rests on the device identification flags, e.g., skipId ensures fbink_init only does it once, and checking a device id flag here ensures it'll never pass the first time, because it's *before* identification ;).
Well, that was not fun.
This change is