forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/nouveau/dispnv04/arb.c
....@@ -21,8 +21,6 @@
2121 * SOFTWARE.
2222 */
2323
24
-#include <drm/drmP.h>
25
-
2624 #include "nouveau_drv.h"
2725 #include "nouveau_reg.h"
2826 #include "hw.h"
....@@ -55,8 +53,8 @@
5553 static void
5654 nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb)
5755 {
58
- int pagemiss, cas, width, bpp;
59
- int nvclks, mclks, pclks, crtpagemiss;
56
+ int pagemiss, cas, bpp;
57
+ int nvclks, mclks, crtpagemiss;
6058 int found, mclk_extra, mclk_loop, cbs, m1, p1;
6159 int mclk_freq, pclk_freq, nvclk_freq;
6260 int us_m, us_n, us_p, crtc_drain_rate;
....@@ -67,11 +65,9 @@
6765 nvclk_freq = arb->nvclk_khz;
6866 pagemiss = arb->mem_page_miss;
6967 cas = arb->mem_latency;
70
- width = arb->memory_width >> 6;
7168 bpp = arb->bpp;
7269 cbs = 128;
7370
74
- pclks = 2;
7571 nvclks = 10;
7672 mclks = 13 + cas;
7773 mclk_extra = 3;