All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 1/6] platform/x86: intel_pmc_ipc: fix gcr offset
@ 2017-04-09 22:00 ` Kuppuswamy Sathyanarayanan
  0 siblings, 0 replies; 24+ messages in thread
From: Kuppuswamy Sathyanarayanan @ 2017-04-09 22:00 UTC (permalink / raw)
  To: andy, qipeng.zha, dvhart, linux
  Cc: wim, sathyaosid, david.e.box, rajneesh.bhardwaj,
	sathyanarayanan.kuppuswamy, platform-driver-x86, linux-kernel,
	linux-watchdog

According to Broxton APL spec, PMC MIMO resources for Global Control
Registers(GCR) are located at 4K(0x1000) offset from IPC base address.
In this driver, PLAT_RESOURCE_GCR_OFFSET macro defines the offset of GCR
region base address from IPC base address and its current value of
0x1008 is incorrect because it points to location for PMC_CFG register
and not the GCR base address itself.

GCR Base = IPC1 Base + 0x1000.

This patch fixes this offset issue.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
---
 drivers/platform/x86/intel_pmc_ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Changes since v6:
 *  Updated commit message

Changes since v5:
 *  None

Changes since v4:
 *  None

Changes since v3:
 * Updated the commit history

diff --git a/drivers/platform/x86/intel_pmc_ipc.c b/drivers/platform/x86/intel_pmc_ipc.c
index 0651d47..0a33592 100644
--- a/drivers/platform/x86/intel_pmc_ipc.c
+++ b/drivers/platform/x86/intel_pmc_ipc.c
@@ -82,7 +82,7 @@
 /* exported resources from IFWI */
 #define PLAT_RESOURCE_IPC_INDEX		0
 #define PLAT_RESOURCE_IPC_SIZE		0x1000
-#define PLAT_RESOURCE_GCR_OFFSET	0x1008
+#define PLAT_RESOURCE_GCR_OFFSET	0x1000
 #define PLAT_RESOURCE_GCR_SIZE		0x1000
 #define PLAT_RESOURCE_BIOS_DATA_INDEX	1
 #define PLAT_RESOURCE_BIOS_IFACE_INDEX	2
-- 
2.7.4

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

end of thread, other threads:[~2017-04-25 17:38 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-09 22:00 [PATCH v7 1/6] platform/x86: intel_pmc_ipc: fix gcr offset Kuppuswamy Sathyanarayanan
2017-04-09 22:00 ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00 ` [PATCH v7 2/6] platform/x86: intel_pmc_ipc: Add pmc gcr read/write/update api's Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00 ` [PATCH v7 3/6] watchdog: iTCO_wdt: cleanup set/unset no_reboot_bit functions Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-10 12:51   ` Guenter Roeck
2017-04-10 12:51     ` Guenter Roeck
2017-04-10 12:51   ` Guenter Roeck
2017-04-10 12:51     ` Guenter Roeck
2017-04-09 22:00 ` [PATCH v7 4/6] watchdog: iTCO_wdt: Add PMC specific noreboot update api Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00 ` [PATCH v7 5/6] platform/x86: intel_pmc_ipc: Fix iTCO_wdt GCS memory mapping failure Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00 ` [PATCH v7 6/6] platform/x86: intel_pmc_ipc: use gcr mem base for S0ix counter read Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-09 22:00   ` Kuppuswamy Sathyanarayanan
2017-04-25 13:29 ` [PATCH v7 1/6] platform/x86: intel_pmc_ipc: fix gcr offset Andy Shevchenko
2017-04-25 13:29   ` Andy Shevchenko
2017-04-25 17:34   ` sathyanarayanan kuppuswamy
2017-04-25 17:34     ` sathyanarayanan kuppuswamy

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.