Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-12-13 Thread Sinan Kaya
this change in your tree, it should be safe. https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/include/linux/pci.h?id=7912af5c835bd86f2b0347a480e0f40e2fab30d0 > > Regards, Joonas > -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qual

Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-12-04 Thread Sinan Kaya
On 11/28/2017 11:29 AM, Sinan Kaya wrote: > On 11/28/2017 10:30 AM, Ville Syrjälä wrote: >>> + dev_priv->bridge_dev = >>> + pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0)); >> Maybe just pci_get_slot(pdev->bus, PCI_DEVFN(0, 0)) ? >> >&g

Re: [Intel-gfx] [PATCH V3 00/29] PCI: deprecate pci_get_bus_and_slot()

2017-11-30 Thread Sinan Kaya
es. Sorry about that. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project. ___ Intel-gfx mailing l

Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-28 Thread Sinan Kaya
; bus = pci_find_host_bridge(pdev->bus)->bus; > pci_get_slot(bus, PCI_DEVFN(0, 0)) > > but I think the GPU should always be on the root bus, so the simpler > form should be fine. > All three of these should be correct. I'll use pci_get_slot(pdev->bus, PCI_DEVFN(0,

Re: [Intel-gfx] [PATCH V3 10/29] drm/nouveau: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
+nouv...@lists.freedesktop.org On 11/27/2017 11:57 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting

Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
+dri-de...@lists.freedesktop.org On 11/27/2017 11:57 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting

Re: [Intel-gfx] [PATCH V3 08/29] drm/gma500: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
+dri-de...@lists.freedesktop.org On 11/27/2017 11:57 AM, Sinan Kaya wrote: > pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as > where a PCI device is present. This restricts the device drivers to be > reused for other domain numbers. > > Getting

[Intel-gfx] [PATCH V3 26/29] video: fbdev: nvidia: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
a pointer to struct pci_dev. Use the pci_dev member to extract the domain information and pass it to pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/nvidia/nv_hw.c| 11 ++- drivers/video/fbdev/nvidia/nv_setup.

[Intel-gfx] [PATCH V3 29/29] PCI: remove pci_get_bus_and_slot() function

2017-11-27 Thread Sinan Kaya
this function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- include/linux/pci.h | 8 1 file changed, 8 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index d16a7c0..8c1b650 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -957,11 +957,6 @@ struct p

[Intel-gfx] [PATCH V3 25/29] video: fbdev: intelfb: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
from pdev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/intelfb/intelfbhw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbdev/intelfb/intelfbhw.c b/drivers/video/fbdev/intelfb/intelfbhw.c index d31ed4e..f695867

[Intel-gfx] [PATCH V3 27/29] video: fbdev: riva: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
it to pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/fbdev/riva/fbdev.c | 2 +- drivers/video/fbdev/riva/nv_driver.c | 7 --- drivers/video/fbdev/riva/riva_hw.c | 20 +--- drivers/video/fbdev/riva/riva_hw.h | 3 ++- 4 files chang

[Intel-gfx] [PATCH V3 28/29] i7300_idle: remove unused file

2017-11-27 Thread Sinan Kaya
i7300_idle.h is not being called by any source file and contains calls to pci_get_bus_and_slot() that we are trying to deprecate. Remove unused file. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- include/linux/i7300_idle.h | 84 --

[Intel-gfx] [PATCH V3 24/29] backlight: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
as 0. Acked-by: Daniel Thompson <daniel.thomp...@linaro.org> Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/video/backlight/apple_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/apple_bl.c b/drivers/video/backlight/appl

[Intel-gfx] [PATCH V3 22/29] [media] atomisp: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
calling the replacement function pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c | 2 +- drivers/staging/media/atomisp/platform/intel-mid/intel_mid_pcihelpers.c | 2 +- 2 files chan

[Intel-gfx] [PATCH V3 23/29] staging: rts5208: remove rtsx_read_pci_cfg_byte()

2017-11-27 Thread Sinan Kaya
Remove unused rtsx_read_pci_cfg_byte() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/staging/rts5208/rtsx.c | 17 - drivers/staging/rts5208/rtsx.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/s

[Intel-gfx] [PATCH V3 21/29] openprom: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
as 0 since domain information is not available. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/sbus/char/openprom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c index 2c2e6a3..7b31f19

[Intel-gfx] [PATCH V3 20/29] xen: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
the actual domain number from the device. Reviewed-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/xen-pcifront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcif

[Intel-gfx] [PATCH V3 19/29] PCI/syscall: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
value as 0 because the domain information is not coming from the userspace. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/syscall.c b/drivers/pci/syscall.c index 83efa00..e

[Intel-gfx] [PATCH V3 14/29] bnx2x: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
bnx2x_vf_domain() function to extract the domain information and save it to VF specific data structure. Use the saved domain value while calling pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 10 +- drive

[Intel-gfx] [PATCH V3 15/29] pch_gbe: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
information from pdev while calling into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/oki-semi/p

[Intel-gfx] [PATCH V3 18/29] PCI/quirks: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number from pdev while calling into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/quirks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 911b3b6..4c46cc5

[Intel-gfx] [PATCH V3 11/29] Drivers: ide: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/ide/sl82c105.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ide/sl82c105.c b/drivers/ide/sl82c105.c

[Intel-gfx] [PATCH V3 12/29] iommu/amd: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number as 0 for the AMD IOMMU driver. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/iommu/amd_iommu.c | 3 ++- drivers/iommu/amd_iommu_init.c | 9 + drivers/iommu/amd_iommu_v2.c | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers

[Intel-gfx] [PATCH V3 10/29] drm/nouveau: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from 1. struct pci_dev 2. struct pci_dev through drm_device->pdev 3. struct pci_dev through fb->subdev->drm_device->pdev Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/gpu/drm/nouv

[Intel-gfx] [PATCH V3 17/29] PCI: ibmphp: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
parameter as 0 since the code doesn't seem to be ready for multiple domains. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/hotplug/ibmphp_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/h

[Intel-gfx] [PATCH V3 16/29] PCI: cpqhp: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number as 0. The code doesn't seem to be ready for multiple domains. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/pci/hotplug/cpqphp_pci.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/h

[Intel-gfx] [PATCH V3 13/29] powerpc/powermac: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number as 0 to match the previous behavior. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/macintosh/via-pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index c4c2b3b..3e8b3b6 100644 --- a/d

[Intel-gfx] [PATCH V3 06/29] edd: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
is not available in struct edd_info. Hard-coding the domain number as 0. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/firmware/edd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index e229576..60a8f13

[Intel-gfx] [PATCH V3 05/29] agp: nvidia: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_bus_and_slot() with pci_get_domain_bus_and_slot() and extract the domain number from struct pci_dev. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/char/agp/nvidia-agp.c | 12 +--- drivers/char/agp/sworks-agp.c | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff

[Intel-gfx] [PATCH V3 07/29] ibft: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
for the device in other domains than zero. This is because on x86 platforms the BIOS executes only devices which are in domain 0. Furthermore, the iBFT spec doesn't have a domain id field. Acked-by: Konrad Rzeszutek Wilk <kon...@kernel.org> Signed-off-by: Sinan Kaya <ok...@codeaurora.org>

[Intel-gfx] [PATCH V3 02/29] powerpc/PCI: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_domain_bus_and_slot() with a domain number of 0 as the code is not ready to consume multiple domains and existing code used domain number 0. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/powerpc/kernel/pci_32.c | 3 ++- arch/powerpc/platforms/powermac/feature.c | 2 +- arch/p

[Intel-gfx] [PATCH V3 00/29] PCI: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
type for local copy of pci_domain_nr() value to int Sinan Kaya (29): alpha/PCI: deprecate pci_get_bus_and_slot() powerpc/PCI: deprecate pci_get_bus_and_slot() x86/PCI: deprecate pci_get_bus_and_slot() ata: deprecate pci_get_bus_and_slot() agp: nvidia: deprecate pci_get_bus_and_slot() edd

[Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
number from drm_device and pass it into pci_get_domain_bus_and_slot() function. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/gpu/drm/i915/i915_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/dr

[Intel-gfx] [PATCH V3 08/29] drm/gma500: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
to CDV_MSG_READ32, CDV_MSG_WRITE32, MRST_MSG_READ32, MRST_MSG_WRITE32, MDFLD_MSG_READ32, MDFLD_MSG_WRITE32. Extract pci_dev from struct drm_device and use pdev to find the domain number while calling pci_get_domain_bus_and_slot(). Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drive

[Intel-gfx] [PATCH V3 03/29] x86/PCI: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
as the domain number is not available in struct irq_routing_table. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/x86/pci/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c index 04526291..52e5510 100644 --- a/ar

[Intel-gfx] [PATCH V3 04/29] ata: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
pci_get_domain_bus_and_slot() and extract the actual domain number from the pdev passed in. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- drivers/ata/pata_ali.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index d19cd88..0b122f9

[Intel-gfx] [PATCH V3 01/29] alpha/PCI: deprecate pci_get_bus_and_slot()

2017-11-27 Thread Sinan Kaya
the actual domain number from the device. Signed-off-by: Sinan Kaya <ok...@codeaurora.org> --- arch/alpha/kernel/pci.c | 2 +- arch/alpha/kernel/sys_nautilus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c