summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-16nova: add a gsp object with fw / radix3wip/fw-loaderDave Airlie
The radix3 impl in this needs some scatterlist bindings I expect. Signed-off-by: Dave Airlie <airlied@redhat.com>
2024-01-12nova: move driver code to separate source fileDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: bios: allow unused fields in struct BiosPcirTDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: bios: fix warnings of unhandled resultsDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: fwsec: allow allow dead_code for data structuresDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: bios: handle result from Vec::try_pushDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: fwsec: allow(non_snake_case)Danilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: bios: make data immutable in pmu_ep()Danilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: remove unused importsDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: gpu: convert tabs to spaces and remove trailing charactersDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: bios: convert tabs to spaces and remove trailing charactersDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: drv: remove unused code and fix indentDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: fix warnings of unused variablesDanilo Krummrich
Fixes: 52deb6825ca4 ("simple print out some info about gpu") Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: fix unused include warningsDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11nova: fix warning undocumented crateDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2024-01-11start parsing fwsec headersDave Airlie
2024-01-11start parsing bios headers.Dave Airlie
the vec is probably a bad idea this dumps out the BIOS version from the bit i table. this now finds the pmuEp table for fwsec
2023-11-30fix warngDave Airlie
2023-11-30nova: load a firmware and print it's sizeDave Airlie
2023-11-30rust: add initial firmware loading bindings.Dave Airlie
2023-11-29rust: add firmware.h to bindgenDave Airlie
2023-11-29simple print out some info about gpuDave Airlie
2023-11-22nova: initial pci driver skeletonDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2023-11-22samples: rust: fix module init function signatureDanilo Krummrich
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
2023-11-22RUST: add `module_params` macroAndreas Hindborg
This patch includes changes required for Rust kernel modules to utilize module parameters. Imported with minor changes from `rust` branch [1], see original code for attributions. [1] https://github.com/Rust-for-Linux/linux/tree/bc22545f38d74473cfef3e9fd65432733435b79f Cc: adamrk <ark.email@gmail.com>
2023-11-22rust: enable allocator API in modules for Box::try_new()Andreas Hindborg
2023-11-22rust: add device::DataAndreas Hindborg
Based on https://github.com/Rust-for-Linux/linux/commit/9d7d4827356cc4c17e1e546175204b12f1becff9
2023-11-22rust: add revocable objectsAndreas Hindborg
Imported from revokable.rs form https://github.com/Rust-for-Linux/linux/commit/968b3f1631b44a3d753be3c3b69b96bbfb2b83a4
2023-11-22rust: add revocalbe mutexAndreas Hindborg
Based on sync/revokable.rs from c9be2e07121f76aaa685a1a8b37e7fb55b6d1bd0
2023-11-22rust: add rcu abstractionAndreas Hindborg
Based on https://github.com/wedsonaf/linux/commit/02541e65a7e778c0049fed86ae49302bc07abed3
2023-11-22rust: add atomic optionalAndreas Hindborg
Based on https://github.com/wedsonaf/linux/commit/02541e65a7e778c0049fed86ae49302bc07abed3
2023-11-22rust: add num_possible_cpusAndreas Hindborg
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
2023-11-22rust: add atomic allocated boxAndreas Hindborg
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
2023-11-22rust: allow allocation with gfp_t flagsAndreas Hindborg
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
2023-11-22rust: add dma pool and coherent allocatorAndreas Hindborg
Based on https://github.com/wedsonaf/linux/commit/02541e65a7e778c0049fed86ae49302bc07abed3
2023-11-22rust: device: add dma map functionsAndreas Hindborg
Based on https://github.com/wedsonaf/linux/commit/02541e65a7e778c0049fed86ae49302bc07abed3
2023-11-22rust: device: add print functionsAndreas Hindborg
Based on https://github.com/Rust-for-Linux/linux/commit/426247f5fab4f08ad77d825c6bdfc772c89b3b57
2023-11-22rust: pci: add IRQ and misc methodsAndreas Hindborg
Based on https://github.com/wedsonaf/linux/commit/02541e65a7e778c0049fed86ae49302bc07abed3
2023-11-22rust: add io_memAndreas Hindborg
Based on https://github.com/Rust-for-Linux/linux/tree/d249f1509dac90d1ef408664a92be362b9c9bf35
2023-11-22rust: add pci_device_id abstractionFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2023-11-22rust: add initial PCI supportFUJITA Tomonori
Added minimum abstration APIs for PCI. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2023-11-22rust: add irq abstractionsAndreas Hindborg
Based on irq.rs from https://github.com/Rust-for-Linux/linux/commit/575b1c015f5fdaac4b8b85ba3d579c324c3c2f41
2023-11-22rust: add driver abstractionAndreas Hindborg
Based on driver.rs from https://github.com/Rust-for-Linux/linux/commit/3f893e11f62f880f6d4e2bf6cda199a4366203a7
2023-11-22rust: device: Add a stub abstraction for devicesWedson Almeida Filho
Add a Device type which represents an owned reference to a generic struct device. This minimal implementation just handles reference counting and allows the user to get the device name. Lina: Rewrote commit message, dropped the Amba bits, and squashed in simple changes to the core Device code from latter commits in rust-for-linux/rust. Also include the rust_helper_dev_get_drvdata helper which will be needed by consumers later on anyway. Co-developed-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com> Signed-off-by: Asahi Lina <lina@asahilina.net>
2023-11-22rust: device: Add a minimal RawDevice traitWedson Almeida Filho
Add a RawDevice trait which can be implemented by any type representing a device class (such as a PlatformDevice). This is the minimum amount of Device support code required to unblock abstractions that need to take device pointers. Lina: Rewrote commit message, and dropped everything except RawDevice. Co-developed-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com> Signed-off-by: Asahi Lina <lina@asahilina.net>
2023-11-03rust: add `pages` module for handling page allocationAndreas Hindborg
This patch adds support for working with pages of order 0. Support for pages with higher order is deferred. Page allocation flags are fixed in this patch. Future work might allow the user to specify allocation flags. This patch is a heavily modified version of code available in the rust tree [1], primarily adding support for multiple page mapping strategies. [1] https://github.com/rust-for-Linux/linux/tree/bc22545f38d74473cfef3e9fd65432733435b79f/rust/kernel/pages.rs Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
2023-10-29Linux 6.6Linus Torvalds
2023-10-28Merge tag 'x86-urgent-2023-10-28' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull misc x86 fixes from Ingo Molnar: - Fix a possible CPU hotplug deadlock bug caused by the new TSC synchronization code - Fix a legacy PIC discovery bug that results in device troubles on affected systems, such as non-working keybards, etc - Add a new Intel CPU model number to <asm/intel-family.h> * tag 'x86-urgent-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/tsc: Defer marking TSC unstable to a worker x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility x86/cpu: Add model number for Intel Arrow Lake mobile processor
2023-10-28Merge tag 'irq-urgent-2023-10-28' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull irq fix from Ingo Molnar: "Restore unintentionally lost quirk settings in the GIC irqchip driver, which broke certain devices" * tag 'irq-urgent-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqchip/gic-v3-its: Don't override quirk settings with default values
2023-10-28Merge tag 'perf-urgent-2023-10-28' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull perf event fix from Ingo Molnar: "Fix a potential NULL dereference bug" * tag 'perf-urgent-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/core: Fix potential NULL deref