Skip to content

Commit 7e725c2

Browse files
committed
drm/amd/display: add nv12 bounding box
This was included in gpu_info firmware, move it into the driver for consistency with other nv1x parts. Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2318 Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent ff5ab42 commit 7e725c2

File tree

1 file changed

+109
-1
lines changed

1 file changed

+109
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,115 @@ struct _vcs_dpi_soc_bounding_box_st dcn2_0_nv14_soc = {
440440
.use_urgent_burst_bw = 0
441441
};
442442

443-
struct _vcs_dpi_soc_bounding_box_st dcn2_0_nv12_soc = { 0 };
443+
struct _vcs_dpi_soc_bounding_box_st dcn2_0_nv12_soc = {
444+
.clock_limits = {
445+
{
446+
.state = 0,
447+
.dcfclk_mhz = 560.0,
448+
.fabricclk_mhz = 560.0,
449+
.dispclk_mhz = 513.0,
450+
.dppclk_mhz = 513.0,
451+
.phyclk_mhz = 540.0,
452+
.socclk_mhz = 560.0,
453+
.dscclk_mhz = 171.0,
454+
.dram_speed_mts = 1069.0,
455+
},
456+
{
457+
.state = 1,
458+
.dcfclk_mhz = 694.0,
459+
.fabricclk_mhz = 694.0,
460+
.dispclk_mhz = 642.0,
461+
.dppclk_mhz = 642.0,
462+
.phyclk_mhz = 600.0,
463+
.socclk_mhz = 694.0,
464+
.dscclk_mhz = 214.0,
465+
.dram_speed_mts = 1324.0,
466+
},
467+
{
468+
.state = 2,
469+
.dcfclk_mhz = 875.0,
470+
.fabricclk_mhz = 875.0,
471+
.dispclk_mhz = 734.0,
472+
.dppclk_mhz = 734.0,
473+
.phyclk_mhz = 810.0,
474+
.socclk_mhz = 875.0,
475+
.dscclk_mhz = 245.0,
476+
.dram_speed_mts = 1670.0,
477+
},
478+
{
479+
.state = 3,
480+
.dcfclk_mhz = 1000.0,
481+
.fabricclk_mhz = 1000.0,
482+
.dispclk_mhz = 1100.0,
483+
.dppclk_mhz = 1100.0,
484+
.phyclk_mhz = 810.0,
485+
.socclk_mhz = 1000.0,
486+
.dscclk_mhz = 367.0,
487+
.dram_speed_mts = 2000.0,
488+
},
489+
{
490+
.state = 4,
491+
.dcfclk_mhz = 1200.0,
492+
.fabricclk_mhz = 1200.0,
493+
.dispclk_mhz = 1284.0,
494+
.dppclk_mhz = 1284.0,
495+
.phyclk_mhz = 810.0,
496+
.socclk_mhz = 1200.0,
497+
.dscclk_mhz = 428.0,
498+
.dram_speed_mts = 2000.0,
499+
},
500+
{
501+
.state = 5,
502+
.dcfclk_mhz = 1200.0,
503+
.fabricclk_mhz = 1200.0,
504+
.dispclk_mhz = 1284.0,
505+
.dppclk_mhz = 1284.0,
506+
.phyclk_mhz = 810.0,
507+
.socclk_mhz = 1200.0,
508+
.dscclk_mhz = 428.0,
509+
.dram_speed_mts = 2000.0,
510+
},
511+
},
512+
513+
.num_states = 5,
514+
.sr_exit_time_us = 1.9,
515+
.sr_enter_plus_exit_time_us = 4.4,
516+
.urgent_latency_us = 3.0,
517+
.urgent_latency_pixel_data_only_us = 4.0,
518+
.urgent_latency_pixel_mixed_with_vm_data_us = 4.0,
519+
.urgent_latency_vm_data_only_us = 4.0,
520+
.urgent_out_of_order_return_per_channel_pixel_only_bytes = 4096,
521+
.urgent_out_of_order_return_per_channel_pixel_and_vm_bytes = 4096,
522+
.urgent_out_of_order_return_per_channel_vm_only_bytes = 4096,
523+
.pct_ideal_dram_sdp_bw_after_urgent_pixel_only = 40.0,
524+
.pct_ideal_dram_sdp_bw_after_urgent_pixel_and_vm = 40.0,
525+
.pct_ideal_dram_sdp_bw_after_urgent_vm_only = 40.0,
526+
.max_avg_sdp_bw_use_normal_percent = 40.0,
527+
.max_avg_dram_bw_use_normal_percent = 40.0,
528+
.writeback_latency_us = 12.0,
529+
.ideal_dram_bw_after_urgent_percent = 40.0,
530+
.max_request_size_bytes = 256,
531+
.dram_channel_width_bytes = 16,
532+
.fabric_datapath_to_dcn_data_return_bytes = 64,
533+
.dcn_downspread_percent = 0.5,
534+
.downspread_percent = 0.5,
535+
.dram_page_open_time_ns = 50.0,
536+
.dram_rw_turnaround_time_ns = 17.5,
537+
.dram_return_buffer_per_channel_bytes = 8192,
538+
.round_trip_ping_latency_dcfclk_cycles = 131,
539+
.urgent_out_of_order_return_per_channel_bytes = 4096,
540+
.channel_interleave_bytes = 256,
541+
.num_banks = 8,
542+
.num_chans = 16,
543+
.vmm_page_size_bytes = 4096,
544+
.dram_clock_change_latency_us = 45.0,
545+
.writeback_dram_clock_change_latency_us = 23.0,
546+
.return_bus_width_bytes = 64,
547+
.dispclk_dppclk_vco_speed_mhz = 3850,
548+
.xfc_bus_transport_time_us = 20,
549+
.xfc_xbuf_latency_tolerance_us = 50,
550+
.use_urgent_burst_bw = 0,
551+
};
444552

445553
struct _vcs_dpi_ip_params_st dcn2_1_ip = {
446554
.odm_capable = 1,

0 commit comments

Comments
 (0)