home *** CD-ROM | disk | FTP | other *** search
-
-
-
- - 1 -
-
-
-
- 4. _D_o_c_u_m_e_n_t_a_t_i_o_n__E_r_r_o_r_s
-
- _C_L__I_M_P_A_C_T__B_U_F_F_E_R__A_D_V_I_S_E
-
- +o A Compression Library (CL) parameter,
- _C_L__I_M_P_A_C_T__B_U_F_F_E_R__A_D_V_I_S_E, has been added to allow an
- application to inform either the OCTANE Compression or
- IMPACT Compression device driver that it is not
- required to perform the processor cache write-back or
- invalidate operations for the uncompressed data (frame)
- ring buffer.
-
- This parameter is for use when an application is
- performing a memory to memory operation and it does not
- access the uncompressed data for any reason.
-
- An example of this type of operation is the dmplay
- applet (source code available in the
- impactcomp.sw.examples image) display on graphics mode
- (dmplay -p graphics). In this case, the applet doesn't
- touch or modify the uncompressed data, but just
- provides the images for transfer to the graphics
- subsystem.
-
- The value CL_BUFFER_ADVISE_NOACCESS notifies OCTANE
- Compression or IMPACT Compression that the application
- will not access the uncompressed ring buffer. The value
- CL_BUFFER_ADVISE_ACCESS notifies OCTANE Compression or
- IMPACT Compression that the application may access the
- uncompressed data buffer, and that processor cache
- operations are required to ensure data integrity.
-
- If an application wishes to utilize this feature, there
- are some restrictions it must abide by:
-
- +o The uncompressed data (frame) ring buffer must be
- marked uncacheable via the _c_a_c_h_e_c_t_l(_2) system
- call.
-
- +o The uncompressed data (frame) ring buffer must
- have been flushed via the _c_a_c_h_e_f_l_u_s_h(_2) system
- call.
-
- +o The application must not, for any reason, access
- any data in the uncompressed data (frame) ring
- buffer.
-
- Modifications have been made to the _c_l_C_r_e_a_t_e_B_u_f(_3_d_m)
- routine to ensure that a ring buffer created via that
- mechanism is page aligned and padded out to the end of
- a page. This ensures an application's ability to use
-
-
-
-
-
-
-
-
-
-
-
- - 2 -
-
-
-
- cachectl(2) & cacheflush(2) successfully. Applications
- should make every attempt to use _c_l_C_r_e_a_t_e_B_u_f() to
- create their buffers.
-
- +o The R10000 processor on Indigo 2 does not support
- uncacheable memory. It is not possible to guarantee
- that the user application will not access the memory on
- that system. Therefore it is not supported to use this
- mode on the R10000 Indigo 2 system.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-