@@ -431,7 +431,6 @@ NV_STATUS nv_alloc_contig_pages(
431431
432432 page_ptr = at -> page_table [i ];
433433 page_ptr -> phys_addr = phys_addr ;
434- page_ptr -> page_count = NV_GET_PAGE_COUNT (page_ptr );
435434 page_ptr -> virt_addr = virt_addr ;
436435 page_ptr -> dma_addr = nv_phys_to_dma (dev , page_ptr -> phys_addr );
437436
@@ -486,17 +485,6 @@ void nv_free_contig_pages(
486485 {
487486 page_ptr = at -> page_table [i ];
488487
489- if (NV_GET_PAGE_COUNT (page_ptr ) != page_ptr -> page_count )
490- {
491- static int count = 0 ;
492- if (count ++ < NV_MAX_RECURRING_WARNING_MESSAGES )
493- {
494- nv_printf (NV_DBG_ERRORS ,
495- "NVRM: VM: %s: page count != initial page count (%u,%u)\n" ,
496- __FUNCTION__ , NV_GET_PAGE_COUNT (page_ptr ),
497- page_ptr -> page_count );
498- }
499- }
500488 NV_MAYBE_UNRESERVE_PAGE (page_ptr );
501489 }
502490
@@ -600,7 +588,6 @@ NV_STATUS nv_alloc_system_pages(
600588
601589 page_ptr = at -> page_table [(i * os_pages_in_page ) + sub_page_idx ];
602590 page_ptr -> phys_addr = phys_addr ;
603- page_ptr -> page_count = NV_GET_PAGE_COUNT (page_ptr );
604591 page_ptr -> virt_addr = sub_page_virt_addr ;
605592
606593 //
@@ -667,18 +654,6 @@ void nv_free_system_pages(
667654 {
668655 page_ptr = at -> page_table [i ];
669656
670- if (NV_GET_PAGE_COUNT (page_ptr ) != page_ptr -> page_count )
671- {
672- static int count = 0 ;
673- if (count ++ < NV_MAX_RECURRING_WARNING_MESSAGES )
674- {
675- nv_printf (NV_DBG_ERRORS ,
676- "NVRM: VM: %s: page count != initial page count (%u,%u)\n" ,
677- __FUNCTION__ , NV_GET_PAGE_COUNT (page_ptr ),
678- page_ptr -> page_count );
679- }
680- }
681-
682657 NV_MAYBE_UNRESERVE_PAGE (page_ptr );
683658 }
684659
0 commit comments