From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id D5404890EB for ; Tue, 24 Aug 2021 19:18:53 +0000 (UTC) Date: Tue, 24 Aug 2021 12:18:51 -0700 Message-ID: <871r6i1wis.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20210824185842.GB18188@unerlige-ril-10.165.21.208> References: <20210803200737.30843-1-umesh.nerlige.ramappa@intel.com> <20210803200737.30843-2-umesh.nerlige.ramappa@intel.com> <87czq326h1.wl-ashutosh.dixit@intel.com> <20210824185842.GB18188@unerlige-ril-10.165.21.208> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [igt-dev] [PATCH 2/5] i915/perf: Add tests for mapped OA buffer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Umesh Nerlige Ramappa Cc: igt-dev@lists.freedesktop.org, Lionel G Landwerlin List-ID: On Tue, 24 Aug 2021 11:58:42 -0700, Umesh Nerlige Ramappa wrote: > > >> +/** > >> + * OA buffer size and offset. > >> + * > >> + * OA output buffer > >> + * type: 0 > >> + * flags: mbz > >> + * > >> + * After querying the info, pass (size,offset) to mmap(), > >> + * > >> + * mmap(0, info.size, PROT_READ, MAP_PRIVATE, perf_fd, info.offset). > >> + * > >> + * Note that only a private (not shared between processes, or across fork()) > >> + * read-only mmapping is allowed. > >> + * > >> + * Userspace must treat the incoming data as tainted, but it conforms to the OA > > > > What does tainted mean? > > I'd assume the data is changing as OA buffer reports are captured. I can > change the comment to say that instead of tainted. Changing is again ambiguous, I think we could just say something like: HW is continually writing data to the mapped OA buffer and it conforms to the OA format as specified by user config. The buffer provides reports that have OA counters - A, B and C.