All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/9] lib: Change IOSF SB devfn to 0.0
@ 2015-03-23 13:14 ville.syrjala
  2015-03-23 13:14 ` [PATCH i-g-t 2/9] lib: Allow 32bit addresses for IOSF-SB registers ville.syrjala
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ville.syrjala @ 2015-03-23 13:14 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

The devfn field in the IOSF SB messages is only relevant when there's a
real PCI bus or some other multifunction device behind a single port.
Otherwise the port number itself is enough to uniquely identify the
target. In fact some IOSF SB targets reject the access when devfn is not
0.0 (eg. GPIO_NC on BYT).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 lib/intel_iosf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_iosf.c b/lib/intel_iosf.c
index 27134a0..01577cd 100644
--- a/lib/intel_iosf.c
+++ b/lib/intel_iosf.c
@@ -28,7 +28,7 @@ static int vlv_sideband_rw(uint32_t port, uint8_t opcode, uint32_t addr,
 
 	bar = 0;
 	be = 0xf;
-	devfn = 16;
+	devfn = 0;
 
 	cmd = (devfn << IOSF_DEVFN_SHIFT) | (opcode << IOSF_OPCODE_SHIFT) |
 		(port << IOSF_PORT_SHIFT) | (be << IOSF_BYTE_ENABLES_SHIFT) |
-- 
2.0.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-23 13:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-23 13:14 [PATCH i-g-t 1/9] lib: Change IOSF SB devfn to 0.0 ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 2/9] lib: Allow 32bit addresses for IOSF-SB registers ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 3/9] toos/intel_iosf_sb_*: Fix DPIO IOSF SB port number ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 4/9] tools: Remove intel_dpio_{read, write} tools ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 5/9] tools/intel_iosf_sb_*: Replace if ladder with an array and bsearch() ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 6/9] tools/intel_iosf_sb_*: Use getopt() to parse the options ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 7/9] tools/intel_iosf_sb_*: Support reading/writing multiple registers at once ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 8/9] tools/intel_iosf_sb_read: Add -c command line option like intel_reg_read ville.syrjala
2015-03-23 13:14 ` [PATCH i-g-t 9/9] tools/intel_iosf_sb_read: Support different register strides ville.syrjala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.