Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: "Ruhl, Michael J" <michael.j.ruhl@intel.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	"david.e.box@linux.intel.com" <david.e.box@linux.intel.com>,
	"ilpo.jarvinen@linux.intel.com" <ilpo.jarvinen@linux.intel.com>,
	"hdegoede@redhat.com" <hdegoede@redhat.com>,
	"Vivi, Rodrigo" <rodrigo.vivi@intel.com>,
	"De Marchi, Lucas" <lucas.demarchi@intel.com>
Subject: Re: [PATCH 1/2] platform/x86/intel/pmt: allow user offset for PMT callbacks
Date: Tue, 12 Nov 2024 17:27:53 +0200	[thread overview]
Message-ID: <ZzNz-ckhzRSCezRD@smile.fi.intel.com> (raw)
In-Reply-To: <IA1PR11MB64184E52DA33ABC36329A2FDC1592@IA1PR11MB6418.namprd11.prod.outlook.com>

On Tue, Nov 12, 2024 at 02:38:06PM +0000, Ruhl, Michael J wrote:
> > -----Original Message-----
> > From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > Sent: Monday, November 11, 2024 3:34 AM
> > To: Ruhl, Michael J <michael.j.ruhl@intel.com>
> > Cc: intel-xe@lists.freedesktop.org; platform-driver-x86@vger.kernel.org;
> > david.e.box@linux.intel.com; ilpo.jarvinen@linux.intel.com;
> > hdegoede@redhat.com; Vivi, Rodrigo <rodrigo.vivi@intel.com>; De Marchi,
> > Lucas <lucas.demarchi@intel.com>
> > Subject: Re: [PATCH 1/2] platform/x86/intel/pmt: allow user offset for PMT
> > callbacks
> > 
> > On Fri, Nov 08, 2024 at 03:19:53PM -0500, Michael J. Ruhl wrote:
> > > Usage of the telem sysfs file allows for partial reads at an offset.
> > >
> > > The current callback method returns the buffer starting from offset 0
> > > only.
> > >
> > > Include the requested offset in the callback.
> > > Update the necsessary address calculations with the offset.
> > 
> > ...
> > 
> > > -	memcpy_fromio(buf, addr, count);
> > > +	memcpy_fromio(buf, addr + off, count);
> 
> Hi Andy,
> 
> > This will give an unaligned IO access in some cases. Is it a problem?
> 
> That is a good question.
> 
> I moved this value from the caller to this location.
> 
> So essentially it is "unchanged" from the current usage.  Does that answer
> the question?

Probably. Please, mention this in the commit message.

-- 
With Best Regards,
Andy Shevchenko



      reply	other threads:[~2024-11-12 15:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-08 20:19 [PATCH 1/2] platform/x86/intel/pmt: allow user offset for PMT callbacks Michael J. Ruhl
2024-11-08 20:19 ` [PATCH 2/2] drm/xe/vsec: Support BMG devices Michael J. Ruhl
2024-11-11  8:39   ` Andy Shevchenko
2024-11-12 14:48     ` Ruhl, Michael J
2024-11-08 20:39 ` ✓ CI.Patch_applied: success for series starting with [1/2] platform/x86/intel/pmt: allow user offset for PMT callbacks Patchwork
2024-11-08 20:39 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-08 20:41 ` ✓ CI.KUnit: success " Patchwork
2024-11-08 21:01 ` ✓ CI.Build: " Patchwork
2024-11-08 21:03 ` ✓ CI.Hooks: " Patchwork
2024-11-08 21:05 ` ✓ CI.checksparse: " Patchwork
2024-11-08 21:47 ` ✓ CI.BAT: " Patchwork
2024-11-09 23:58 ` ✗ CI.FULL: failure " Patchwork
2024-11-11  8:34 ` [PATCH 1/2] " Andy Shevchenko
2024-11-12 14:38   ` Ruhl, Michael J
2024-11-12 15:27     ` Andy Shevchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZzNz-ckhzRSCezRD@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=david.e.box@linux.intel.com \
    --cc=hdegoede@redhat.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=michael.j.ruhl@intel.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox