Comments (7)
Hi,
Thx for heads-up :-)
I have plan to add 5.15 support on x86_64 when o finish aarch64 support (now WiP).
Per your request: a0514fc
Thx for collaboration!
from minimyth2.
Hi.
I have two more MINOR comments/patches relating 1. 5.8+ kernel, 2. building nvidia-uvm module (both for 340.108). Would you like to see them? Should I open separate issues, or can I post them right here?
from minimyth2.
Oh sure. Pls post them here. I'll include code into current mm2 master
from minimyth2.
The mmap_sem->mmap_lock rename was done in commit https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/mm_types.h?h=v5.15&id=da1c55f1b272f4bd54671d459b39ea7b54944ef9 .
The link there leads to the change discusson and the change itself: https://lore.kernel.org/all/[email protected]/T/#Z2e.:..:20200520052908.204642-11-walken::40google.com:1include:linux:mm_types.h (scroll to the beginning to see the change discription).
The important quote is
In the future, it may be a starting point for replacing the rwsem implementation with a different one, such as range locks.
So, simple renaming mmap_sem
to mmap_lock
can cause issues in the future kernel releases if some another locking mechanism is implemented. So a new "mmap locking API" is suggested. The conversion from the old to the new api can be done as simple find-and-replace e.g. (in the same patch series): https://lore.kernel.org/all/[email protected]/T/#Z2e.:..:20200520052908.204642-5-walken::40google.com:1arch:x86:mm:fault.c .
So, at the time of now it's ok to keep 004-fix-5.8.patch
as is but it would be better to convert nvidia code to the new api. It's painless (only two lines are modified) and would probably cause less issues in the future.
I use slackware64 and nvidia build script from slackbuilds.org which builds nvidia.ko
and nvidia-uvm.ko
modules. I do NOT know what the second module is for and I'm even not sure I use it at all. Previous version of your patches supported building it (by simple #define mmap_sem mmap_lock
) but the newer ones lost this ability (btw why?).
I return the ability to build nvidia-uvm
module by modifying 0004-fix-5.8.patch
according to the "mmap locking API" changes above (it is now much longer than the previous #define mmap_sem mmap_lock
implementation but is trivial to read and verify) and by modifying 0005-fix-5.9.patch
to not include linux/ioctl32.h
. These changes are applied to files in NVIDIA-Linux-*/kernel/uvm
directory.
from minimyth2.
Many thx for heads-up.
I already added fixes in 462edd3 and 255554e
As finally i got 5.15 working nicely working 5.15 hw.video decode on rpi3/rpi4/amlogic/allwiner/rockchip - i can switch to update kernel to 5.15 on x86_64 (and test our nvidia changes).
update: i just tested on EB1033 (gt218) on 5.15.1 kernel and all seems work nicely :-)
thx for your collaboration!
from minimyth2.
Great, thanks. I personally use (test on) 8600gts :)
Should I close the issue?
from minimyth2.
Oh yes. please!
from minimyth2.
Related Issues (20)
- quartz-64-a HOT 15
- Seems wrong md5 checksum of v4l-utils-20220616-ef8c5223b.tar.bz2 HOT 1
- X96 tv box is not booting HOT 4
- There is not rsync 3.2.6 at https://rsync.samba.org/ftp/$(GARNAME)/ HOT 1
- X96 X6 Ethernet is broken HOT 3
- Fail to compile for Orange Pi Zero2 libpython2.7.so.1.0 HOT 4
- Rockchip -- Wayland Black Screen HOT 4
- nvidia-340.108 with linux 6.1 and linux 6.6 HOT 5
- TanixTX6s - no ap6330 wifi HOT 9
- TanixTX6 4G - u-boot discovers only 3G of RAM HOT 6
- H313 X96Q testing HOT 25
- Tanix H616 not booting HOT 12
- Latest PXE image missing HOT 2
- OrangePi Zero 2 missing firmware for UWE5622 (aw859a) HOT 5
- hint: maybe use pwm regulator for cpu on x96x6 box as well? HOT 3
- H313 board ethernet issue HOT 2
- Compile kernel only + bonding driver HOT 1
- rk3528 hdmi audio is ok? HOT 1
- Installation on X96 X6 Rk3566 HOT 2
- are you still pushing your changes to github? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimyth2.