mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-01 07:42:18 +00:00
7d3018da4c
* NVME, SATA NAND Security added * Qortal Core exception fetcher is now redone. * Update DT overlays for firmware * Fix for bvb clockj settings * Fix for no audio for sissy desktop porn watchers -_- ( thanks crowetic for watching gay porn and reporting me that bug asshat ) * Normalize the fetch() stream while doing a peer to peer handshake for nodes * Fix for RNG token editing error while performing a SHA256 encryption * Now under voltage errors will blink red led constantly for 5 minutes then go solid. * Improve kernel thread scaling for Qortal 2.0 core * HDMI circuit is now enabled at power up instead. * Added KMS * Added line replication instead of interpolation for VC4 GPU resulting in slightly better frame rates * Fix for long and doubles * Backplane clock is now set at standard rate * Capped HVEC clocks * Add support for Creative Cinema webcam for donkers who like sharing dick pics. *looks at crowetic* * More scanline XGA modes for people who have weird ass monitors of all sorts. * TX/RX flow control support is now 100% stable. No lags over 1Gbps ethernet. ( Hello Qortal 3.0 ) * Using flush cache instead of fetch for QC 2.0 resulting in performance gains * VC4 clock is now enforced for desktop oriented images. * Ondemand governor now waits for 2 seconds instead of 0.5ms to scale down to the lowest safest clock freq preventing lags to the core. * Timeout of OC set at 35ms from 90ms resulting in way better clocks and sync for Qortal 2.0 core
82 lines
3.3 KiB
C
82 lines
3.3 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVKM_FIFO_H__
|
|
#define __NVKM_FIFO_H__
|
|
#include <core/engine.h>
|
|
#include <core/object.h>
|
|
#include <core/event.h>
|
|
struct nvkm_fault_data;
|
|
|
|
#define NVKM_FIFO_CHID_NR 4096
|
|
#define NVKM_FIFO_ENGN_NR 16
|
|
|
|
struct nvkm_fifo_engn {
|
|
struct nvkm_object *object;
|
|
int refcount;
|
|
int usecount;
|
|
};
|
|
|
|
struct nvkm_fifo_chan {
|
|
const struct nvkm_fifo_chan_func *func;
|
|
struct nvkm_fifo *fifo;
|
|
u32 engm;
|
|
struct nvkm_object object;
|
|
|
|
struct list_head head;
|
|
u16 chid;
|
|
struct nvkm_gpuobj *inst;
|
|
struct nvkm_gpuobj *push;
|
|
struct nvkm_vmm *vmm;
|
|
void __iomem *user;
|
|
u64 addr;
|
|
u32 size;
|
|
|
|
struct nvkm_fifo_engn engn[NVKM_FIFO_ENGN_NR];
|
|
};
|
|
|
|
struct nvkm_fifo {
|
|
const struct nvkm_fifo_func *func;
|
|
struct nvkm_engine engine;
|
|
|
|
DECLARE_BITMAP(mask, NVKM_FIFO_CHID_NR);
|
|
int nr;
|
|
struct list_head chan;
|
|
spinlock_t lock;
|
|
struct mutex mutex;
|
|
|
|
struct nvkm_event uevent; /* async user trigger */
|
|
struct nvkm_event cevent; /* channel creation event */
|
|
struct nvkm_event kevent; /* channel killed */
|
|
};
|
|
|
|
void nvkm_fifo_fault(struct nvkm_fifo *, struct nvkm_fault_data *);
|
|
void nvkm_fifo_pause(struct nvkm_fifo *, unsigned long *);
|
|
void nvkm_fifo_start(struct nvkm_fifo *, unsigned long *);
|
|
|
|
void nvkm_fifo_chan_put(struct nvkm_fifo *, unsigned long flags,
|
|
struct nvkm_fifo_chan **);
|
|
struct nvkm_fifo_chan *
|
|
nvkm_fifo_chan_inst(struct nvkm_fifo *, u64 inst, unsigned long *flags);
|
|
struct nvkm_fifo_chan *
|
|
nvkm_fifo_chan_chid(struct nvkm_fifo *, int chid, unsigned long *flags);
|
|
|
|
int nv04_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int nv10_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int nv17_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int nv40_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int nv50_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int g84_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gf100_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gk104_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gk110_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gk208_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gk20a_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gm107_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gm200_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gm20b_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gp100_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gp10b_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int gv100_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int tu102_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
int ga102_fifo_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_fifo **);
|
|
#endif
|