[PATCH] PCI: Export pci_enable_ptm

2016-08-24 Thread Yong, Jonathan
Export symbol so device drivers outside of the core pci subsystem can use it. Signed-off-by: Yong, Jonathan <jonathan.y...@intel.com> --- drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie/ptm.c b/drivers/pci/pcie/ptm.c index 3b83024..bab8ac6

[PATCH] Allow pci_enable_ptm to be called outside of the pci subsystem

2016-08-24 Thread Yong, Jonathan
Allow external drivers to enable PTM bits on their respective devices. Please CC me when replying, thanks. Yong, Jonathan (1): PCI: Export pci_enable_ptm drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.3

[PATCH] PCI: Export pci_enable_ptm

2016-08-24 Thread Yong, Jonathan
Export symbol so device drivers outside of the core pci subsystem can use it. Signed-off-by: Yong, Jonathan --- drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie/ptm.c b/drivers/pci/pcie/ptm.c index 3b83024..bab8ac6 100644 --- a/drivers/pci/pcie/ptm.c

[PATCH] Allow pci_enable_ptm to be called outside of the pci subsystem

2016-08-24 Thread Yong, Jonathan
Allow external drivers to enable PTM bits on their respective devices. Please CC me when replying, thanks. Yong, Jonathan (1): PCI: Export pci_enable_ptm drivers/pci/pcie/ptm.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.3

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-08-23 Thread Yong, Jonathan
On 08/24/2016 05:42, Bjorn Helgaas wrote: > > These are on pci/ptm and queued for v4.9. > My thanks for making this possible!

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-08-23 Thread Yong, Jonathan
On 08/24/2016 05:42, Bjorn Helgaas wrote: > > These are on pci/ptm and queued for v4.9. > My thanks for making this possible!

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-22 Thread Yong, Jonathan
On 08/23/2016 01:01, Bjorn Helgaas wrote: > On Tue, Aug 16, 2016 at 08:37:15AM -0500, Bjorn Helgaas wrote: >> On Tue, Aug 16, 2016 at 04:04:31PM +0800, Yong, Jonathan wrote: >>> On 08/16/2016 02:59, Bjorn Helgaas wrote: >>>> >>>> I guess I was hoping you

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-22 Thread Yong, Jonathan
On 08/23/2016 01:01, Bjorn Helgaas wrote: > On Tue, Aug 16, 2016 at 08:37:15AM -0500, Bjorn Helgaas wrote: >> On Tue, Aug 16, 2016 at 04:04:31PM +0800, Yong, Jonathan wrote: >>> On 08/16/2016 02:59, Bjorn Helgaas wrote: >>>> >>>> I guess I was hoping you

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-17 Thread Yong, Jonathan
On 08/16/2016 21:37, Bjorn Helgaas wrote: >> Looks like there is still this compile warning to fix: >> http://patchwork.ozlabs.org/patch/634825/ > > That report was from June 16, and I think I fixed the warning already. > Or do you still see the warning? I don't see it myself. > > Bjorn > If

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-17 Thread Yong, Jonathan
On 08/16/2016 21:37, Bjorn Helgaas wrote: >> Looks like there is still this compile warning to fix: >> http://patchwork.ozlabs.org/patch/634825/ > > That report was from June 16, and I think I fixed the warning already. > Or do you still see the warning? I don't see it myself. > > Bjorn > If

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-16 Thread Yong, Jonathan
On 08/16/2016 02:59, Bjorn Helgaas wrote: > > I guess I was hoping you could test these patches. Do you have any > way to do that? > No real hardware with this feature yet, so testing is entirely on software. > I rebased them and pushed them to pci/ptm. If everything looks good, > I'll merge

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-16 Thread Yong, Jonathan
On 08/16/2016 02:59, Bjorn Helgaas wrote: > > I guess I was hoping you could test these patches. Do you have any > way to do that? > No real hardware with this feature yet, so testing is entirely on software. > I rebased them and pushed them to pci/ptm. If everything looks good, > I'll merge

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-08-15 Thread Yong, Jonathan
On 08/16/2016 02:51, Bjorn Helgaas wrote: >> >> This line: >> ctrl = PCI_PTM_CTRL_ENABLE | PCI_PTM_CTRL_ROOT; >> >> should also set the responder capable bit (7.32.2): >> If PTM Root Capable is Set, this bit must be Set to 1b. > > The PTM Responder Capable bit (bit 1 in Table 7-145) is a

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-08-15 Thread Yong, Jonathan
On 08/16/2016 02:51, Bjorn Helgaas wrote: >> >> This line: >> ctrl = PCI_PTM_CTRL_ENABLE | PCI_PTM_CTRL_ROOT; >> >> should also set the responder capable bit (7.32.2): >> If PTM Root Capable is Set, this bit must be Set to 1b. > > The PTM Responder Capable bit (bit 1 in Table 7-145) is a

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-09 Thread Yong, Jonathan
On 06/14/2016 03:05, Bjorn Helgaas wrote: > From: Jonathan Yong > > Add Precision Time Measurement (PTM) support (see PCIe r3.1, sec 6.22). > > Enable PTM on PTM Root devices and switch ports. This does not enable PTM > on endpoints. > > There currently are no

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-09 Thread Yong, Jonathan
On 06/14/2016 03:05, Bjorn Helgaas wrote: > From: Jonathan Yong > > Add Precision Time Measurement (PTM) support (see PCIe r3.1, sec 6.22). > > Enable PTM on PTM Root devices and switch ports. This does not enable PTM > on endpoints. > > There currently are no PTM-capable devices on the

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-07-19 Thread Yong, Jonathan
On 07/20/2016 05:19, Bjorn Helgaas wrote: > On Mon, Jun 13, 2016 at 02:05:26PM -0500, Bjorn Helgaas wrote: >> This is a slightly different proposal for the PTM support Jonathan >> proposed here: >> >> >> http://lkml.kernel.org/r/1462956446-27361-2-git-send-email-jonathan.y...@intel.com >> >> I

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-07-19 Thread Yong, Jonathan
On 07/20/2016 05:19, Bjorn Helgaas wrote: > On Mon, Jun 13, 2016 at 02:05:26PM -0500, Bjorn Helgaas wrote: >> This is a slightly different proposal for the PTM support Jonathan >> proposed here: >> >> >> http://lkml.kernel.org/r/1462956446-27361-2-git-send-email-jonathan.y...@intel.com >> >> I

Re: [PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake

2016-06-21 Thread Yong, Jonathan
On 06/17/2016 08:36, Yong, Jonathan wrote: These patches fix the iTCO watchdog for Apollo Lake. I changed the watchdog memory io to only use 4 bytes rather the whole region, I'm not sure if that is the correct way. The previous 0x30h offset in intel_pmc_ipc.c was for based on the earlier BXT-M

Re: [PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake

2016-06-21 Thread Yong, Jonathan
On 06/17/2016 08:36, Yong, Jonathan wrote: These patches fix the iTCO watchdog for Apollo Lake. I changed the watchdog memory io to only use 4 bytes rather the whole region, I'm not sure if that is the correct way. The previous 0x30h offset in intel_pmc_ipc.c was for based on the earlier BXT-M

[PATCH v2 2/2] x86: Fix Apollo Lake Watchdog address in PMC driver

2016-06-16 Thread Yong, Jonathan
The TCO I/O base is 40h rather than the usual 30h, and the re_reboot bit is at ACPIBASE+8. Signed-off-by: Yong, Jonathan <jonathan.y...@intel.com> --- drivers/platform/x86/intel_pmc_ipc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/platfo

[PATCH v2 2/2] x86: Fix Apollo Lake Watchdog address in PMC driver

2016-06-16 Thread Yong, Jonathan
The TCO I/O base is 40h rather than the usual 30h, and the re_reboot bit is at ACPIBASE+8. Signed-off-by: Yong, Jonathan --- drivers/platform/x86/intel_pmc_ipc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/intel_pmc_ipc.c b/drivers

[PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake

2016-06-16 Thread Yong, Jonathan
me know if the patches need changes. Please CC me as I am not subscribed, thanks. * Resent, typo in linux-kernel email address Changes since v1: * Watchdog NO_REBOOT bit off-by-one corrected. Yong, Jonathan (2): watchdog: iTCO-wdt handle 5th variation for Apollo Lake x86: Fix Apollo

[PATCH v2 1/2] watchdog: iTCO-wdt handle 5th variation for Apollo Lake

2016-06-16 Thread Yong, Jonathan
The Apollo Lake Watchdog has the no_reboot flag in the 4th bit. Signed-off-by: Yong, Jonathan <jonathan.y...@intel.com> --- drivers/watchdog/iTCO_wdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 0acc6c5..54cab18

[PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake

2016-06-16 Thread Yong, Jonathan
me know if the patches need changes. Please CC me as I am not subscribed, thanks. * Resent, typo in linux-kernel email address Changes since v1: * Watchdog NO_REBOOT bit off-by-one corrected. Yong, Jonathan (2): watchdog: iTCO-wdt handle 5th variation for Apollo Lake x86: Fix Apollo

[PATCH v2 1/2] watchdog: iTCO-wdt handle 5th variation for Apollo Lake

2016-06-16 Thread Yong, Jonathan
The Apollo Lake Watchdog has the no_reboot flag in the 4th bit. Signed-off-by: Yong, Jonathan --- drivers/watchdog/iTCO_wdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index 0acc6c5..54cab18 100644 --- a/drivers/watchdog

Re: [RFC] PCI: PTM Driver

2016-03-10 Thread Yong, Jonathan
On 02/29/2016 15:29, Yong, Jonathan wrote: Hello LKML, This is a preliminary implementation of the PTM[1] support driver, the code is obviously hacked together and in need of refactoring. This driver has only been tested against a virtual PCI bus. The drivers job is to get to every PTM capable

Re: [RFC] PCI: PTM Driver

2016-03-10 Thread Yong, Jonathan
On 02/29/2016 15:29, Yong, Jonathan wrote: Hello LKML, This is a preliminary implementation of the PTM[1] support driver, the code is obviously hacked together and in need of refactoring. This driver has only been tested against a virtual PCI bus. The drivers job is to get to every PTM capable

[PATCH] PCI: PTM preliminary implementation

2016-02-28 Thread Yong, Jonathan
, neither does it provide any useful services, it is only responsible for setting up the required configuration space bits. As of writing, there aren't any PTM capable devices on the market yet, but it is supported by the Intel Apollo Lake platform. Signed-off-by: Yong, Jonathan <jonatha

[RFC] PCI: PTM Driver

2016-02-28 Thread Yong, Jonathan
available for inspection by software, enabling software to translate timing information between local times and PTM Master Time. This isn't very informative. Yong, Jonathan (1): PCI: PTM preliminary implementation drivers/pci/pci-sysfs.c | 7 + drivers/pci/pci.h

[PATCH] PCI: PTM preliminary implementation

2016-02-28 Thread Yong, Jonathan
, neither does it provide any useful services, it is only responsible for setting up the required configuration space bits. As of writing, there aren't any PTM capable devices on the market yet, but it is supported by the Intel Apollo Lake platform. Signed-off-by: Yong, Jonathan --- drivers/pci/pci

[RFC] PCI: PTM Driver

2016-02-28 Thread Yong, Jonathan
available for inspection by software, enabling software to translate timing information between local times and PTM Master Time. This isn't very informative. Yong, Jonathan (1): PCI: PTM preliminary implementation drivers/pci/pci-sysfs.c | 7 + drivers/pci/pci.h

[RFC] PCI: PTM Driver

2016-02-28 Thread Yong, Jonathan
available for inspection by software, enabling software to translate timing information between local times and PTM Master Time. This isn't very informative. Yong, Jonathan (1): PCI: PTM preliminary implementation drivers/pci/pci-sysfs.c | 7 + drivers/pci/pci.h

[RFC] PCI: PTM Driver

2016-02-28 Thread Yong, Jonathan
available for inspection by software, enabling software to translate timing information between local times and PTM Master Time. This isn't very informative. Yong, Jonathan (1): PCI: PTM preliminary implementation drivers/pci/pci-sysfs.c | 7 + drivers/pci/pci.h