]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Correct the IOSF Dev_FN field for IOSF transfers
authorShobhit Kumar <shobhit.kumar@intel.com>
Thu, 5 Feb 2015 11:40:56 +0000 (17:10 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 9 Feb 2015 12:26:19 +0000 (14:26 +0200)
commit00b179ee9c663156fe456fc730f7e41f199fd664
tree4eb557df13a787ffad4a66981e48a1544bfddac5
parentca3139191c90ad45735a78e2ef08c29500715799
drm/i915: Correct the IOSF Dev_FN field for IOSF transfers

As per the specififcation, the SB_DevFn is the PCI_DEVFN of the target
device and not the source. So PCI_DEVFN(2,0) is not correct. Further the
port ID should be enough to identify devices unless they are MFD. The
SB_DevFn was intended to remove ambiguity in case of these MFD devices.

For non MFD devices the recommendation for the target device IP was to
ignore these fields, but not all of them followed the recommendation.
Some like CCK ignore these fields and hence PCI_DEVFN(2, 0) works and so
does PCI_DEVFN(0, 0) as it works for DPIO. The issue came to light because
of GPIONC which was not getting programmed correctly with PCI_DEVFN(2, 0).
It turned out that this did not follow the recommendation and expected 0
in this field.

In general the recommendation is to use SB_DevFn as PCI_DEVFN(0, 0) for
all devices except target PCI devices.

Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_sideband.c