> -----Original Message----- > From: linux-yocto-boun...@yoctoproject.org [mailto:linux-yocto- > boun...@yoctoproject.org] On Behalf Of Bruce Ashfield > Sent: Wednesday, July 03, 2013 9:01 PM > To: Development list for the linux-yocto*.git Linux kernel repositories > Subject: Re: [linux-yocto] [PATCH 3/3] emgd-1.18 fix build issues with v3.8 > kernel > > On Tue, Jul 2, 2013 at 3:51 PM, <nitin.a.kam...@intel.com> wrote: > > From: Nitin A Kamble <nitin.a.kam...@intel.com> > > > > These changes are done according to these existing commits in the v3.8 > > tree > > > > b0071efe827f68cf173e1a8868b70618e9aca7d7 > > 760285e7e7ab282c25b5e90816f7c47000557f4f > > 56550d94cbaeaa195cb98c95d012b301cbd65a8d > > 314e51b9851b4f4e8ab302243ff5a6fc6147f379 > > a69ac9ea85d87b57166a1c017c5019447b854a68 > > Can you tweak this header with short hashes and short logs ? That way on a > glance, we can get a feel for what you are adapting to ? > > All of the changes look good to me. A resend of just a pull request with that > tweaked header and I'll get this merged. > > Bruce
Hi Bruce, The commit is tweaked as requested. I am not pushing the pull request again, as these patches are huge. So instead you can just pull from here: http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-contrib/log/?h=nitin/emgd-1.18 Thanks, Nitin > > > > > Signed-off-by: Nitin A Kamble <nitin.a.kam...@intel.com> > > --- > > drivers/gpu/drm/emgd/emgd/drm/emgd_connector.c | 2 +- > > drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c | 3 +-- > > drivers/gpu/drm/emgd/emgd/drm/emgd_fb.c | 10 +++++----- > > drivers/gpu/drm/emgd/emgd/drm/emgd_interface.c | 2 +- > > drivers/gpu/drm/emgd/emgd/drm/emgd_mmap.c | 2 +- > > drivers/gpu/drm/emgd/emgd/drm/emgd_test_pvrsrv.c | 2 +- > > drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/mmap.c | 2 +- > > drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/module.c | 2 +- > > drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/osfunc.c | 2 +- > > 9 files changed, 13 insertions(+), 14 deletions(-) > > > > diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_connector.c > > b/drivers/gpu/drm/emgd/emgd/drm/emgd_connector.c > > index b62c2ca..6aa461a 100644 > > --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_connector.c > > +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_connector.c > > @@ -299,7 +299,7 @@ static int emgd_connector_set_property(struct > > drm_connector *connector, > > > > /* Set the property value to the new one. This doesn't actually > > change > > * anything on the HW. */ > > - ret = drm_connector_property_set_value(connector, property, > value); > > + ret = drm_object_property_set_value(&connector->base, > > + property, value); > > if (ret) { > > return ret; > > } > > diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c > > b/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c > > index 58927c6..21f1c41 100755 > > --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c > > +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_drv.c > > @@ -2372,7 +2372,7 @@ irqreturn_t emgd_driver_irq_handler(int irq, > > void *arg) } /* emgd_driver_irq_handler() */ > > > > > > -static int __devinit emgd_pci_probe(struct pci_dev *pdev, > > +static int emgd_pci_probe(struct pci_dev *pdev, > > const struct pci_device_id *ent) { > > if (PCI_FUNC(pdev->devfn)) { > > @@ -2503,7 +2503,6 @@ static struct drm_driver driver = { > > .irq_postinstall = emgd_driver_irq_postinstall, > > .irq_uninstall = emgd_driver_irq_uninstall, > > .irq_handler = emgd_driver_irq_handler, > > - .reclaim_buffers = drm_core_reclaim_buffers, > > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) > > .get_map_ofs = drm_core_get_map_ofs, > > .get_reg_ofs = drm_core_get_reg_ofs, > > diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_fb.c > > b/drivers/gpu/drm/emgd/emgd/drm/emgd_fb.c > > index 8683477..6bd3a47 100644 > > --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_fb.c > > +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_fb.c > > @@ -41,7 +41,7 @@ > > #include <linux/module.h> > > #endif > > #include <drmP.h> > > -#include <drm.h> > > +#include <uapi/drm/drm.h> > > #include <drm_crtc.h> > > #include <drm_crtc_helper.h> > > #include <drm_fb_helper.h> > > @@ -539,7 +539,7 @@ static void create_connector_properties(struct > drm_device *dev, > > continue; > > } > > > > - drm_connector_attach_property(drm_connector, new_prop, > current_value); > > + drm_object_attach_property(&drm_connector->base, > > + new_prop, current_value); > > emgd_connector->properties[num_of_properties++] = new_prop; > > } > > > > @@ -646,12 +646,12 @@ static void create_connectors(struct drm_device > > *dev, > > > > > > #if 0 > > - drm_connector_attach_property(&connector->base, > > + drm_object_attach_property(&connector->base, > > dev->mode_config.scaling_mode_property, > > DRM_MODE_SCALE_FULLSCREEN); > > - drm_connector_attach_property(&connector->base, > > + drm_object_attach_property(&connector->base, > > dev->mode_config.edid_property, 0); > > - drm_connector_attach_property(&connector->base, > > + drm_object_attach_property(&connector->base, > > dev->mode_config.dpms_property, 0); #endif > > > > diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_interface.c > > b/drivers/gpu/drm/emgd/emgd/drm/emgd_interface.c > > index 5625442..e6e07a2 100755 > > --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_interface.c > > +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_interface.c > > @@ -36,7 +36,7 @@ > > #define MODULE_NAME hal.oal > > > > #include "drmP.h" > > -#include "drm.h" > > +#include "uapi/drm/drm.h" > > > > #include "drm_emgd_private.h" > > #include "emgd_drm.h" > > diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_mmap.c > > b/drivers/gpu/drm/emgd/emgd/drm/emgd_mmap.c > > index c1d13a2..01ebdae 100644 > > --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_mmap.c > > +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_mmap.c > > @@ -101,7 +101,7 @@ int emgd_mmap(struct file *filp, struct > vm_area_struct *vma) > > */ > > vma->vm_ops = &emgd_vm_ops; > > vma->vm_private_data = chunk; > > - vma->vm_flags |= VM_RESERVED | VM_IO | VM_MIXEDMAP | > VM_DONTEXPAND; > > + vma->vm_flags |= VM_IO | VM_MIXEDMAP | VM_DONTEXPAND | > > + VM_DONTDUMP; > > pgprot_val(vma->vm_page_prot) = > > pgprot_val(vma->vm_page_prot) | _PAGE_CACHE_UC_MINUS; > > > > diff --git a/drivers/gpu/drm/emgd/emgd/drm/emgd_test_pvrsrv.c > > b/drivers/gpu/drm/emgd/emgd/drm/emgd_test_pvrsrv.c > > index 6ba4567..835adc3 100644 > > --- a/drivers/gpu/drm/emgd/emgd/drm/emgd_test_pvrsrv.c > > +++ b/drivers/gpu/drm/emgd/emgd/drm/emgd_test_pvrsrv.c > > @@ -34,7 +34,7 @@ > > #define MODULE_NAME hal.oal > > > > #include "drmP.h" > > -#include "drm.h" > > +#include "uapi/drm/drm.h" > > > > #include "drm_emgd_private.h" > > #include "emgd_drm.h" > > diff --git a/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/mmap.c > > b/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/mmap.c > > index a273689..5f3ec9b 100644 > > --- a/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/mmap.c > > +++ b/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/mmap.c > > @@ -639,7 +639,7 @@ PVRMMap(struct file* pFile, struct vm_area_struct* > ps_vma) > > PVR_DPF((PVR_DBG_MESSAGE, "%s: Mapped psLinuxMemArea > 0x%p\n", > > __FUNCTION__, psOffsetStruct->psLinuxMemArea)); #endif > > - ps_vma->vm_flags |= VM_RESERVED; > > + ps_vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; > > ps_vma->vm_flags |= VM_IO; > > > > > > diff --git > > a/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/module.c > > b/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/module.c > > index 0fd336b..b49a19b 100644 > > --- a/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/module.c > > +++ b/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/module.c > > @@ -218,7 +218,7 @@ static struct platform_device powervr_device = { > > static IMG_INT PVRSRVDriverProbe(LDM_DEV *pDevice) #endif #if > > defined(PVR_LDM_PCI_MODULE) -static IMG_INT __devinit > > PVRSRVDriverProbe(LDM_DEV *pDevice, const struct pci_device_id *id) > > +static IMG_INT PVRSRVDriverProbe(LDM_DEV *pDevice, const struct > > +pci_device_id *id) > > #endif > > { > > SYS_DATA *psSysData; > > diff --git > > a/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/osfunc.c > > b/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/osfunc.c > > index ba666a9..7b98722 100644 > > --- a/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/osfunc.c > > +++ b/drivers/gpu/drm/emgd/pvr/services4/srvkm/env/linux/osfunc.c > > @@ -2382,7 +2382,7 @@ PVRSRV_ERROR > OSAcquirePhysPageAddr(IMG_VOID* pvCPUVAddr, > > } > > > > > > - if ((psVMArea->vm_flags & (VM_IO | VM_RESERVED)) != (VM_IO | > VM_RESERVED)) > > + if ((psVMArea->vm_flags & (VM_IO | VM_DONTEXPAND | > VM_DONTDUMP)) > > + != (VM_IO | VM_DONTEXPAND | VM_DONTDUMP)) > > { > > PVR_DPF((PVR_DBG_ERROR, > > "OSAcquirePhysPageAddr: Memory region does not represent > > memory mapped I/O (VMA flags: 0x%lx)", psVMArea->vm_flags)); > > -- > > 1.8.1.4 > > > > _______________________________________________ > > linux-yocto mailing list > > linux-yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/linux-yocto > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await thee > at its end" > _______________________________________________ > linux-yocto mailing list > linux-yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/linux-yocto _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto