Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1526481ima; Sun, 21 Oct 2018 13:59:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ZY4a21LCCz19lZTstl1cUAZH+/8059APYv7bXev4BXUcTCtJzdt7hG1tKhR71BLBbkXlX X-Received: by 2002:a17:902:5a89:: with SMTP id r9-v6mr41585454pli.95.1540155591926; Sun, 21 Oct 2018 13:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540155591; cv=none; d=google.com; s=arc-20160816; b=Fc0OF7Vwqjw2/jnb1QMd5Zy8QiNwPrai23cB3up9HDL3KI56IH0PAWBMZKKhSorEHn vmhtGEhp59yfGGdAXlVJu8PmAVRI1ZNRzvNyLypldCN5PPIkbk4B0ELcFJVt6sriQyT3 jIymqc0xX9KYJmSFidyARDjDwhn+KGW28OykOXOezUGj2nhS8bSxfHrZqOY97vEhhsZ9 z2JXHtNT5gQ1Y80Fd3xWRm128tY/gvxPxwwUzwqPXYy/Cd5oVqSSUH4i9x9dd/DSZrIn AcNoZqnlN9vfCd4KD85h5LY2ERZxLBDu/BuV6s8Y1vHrvYU0qaloTsNzCjg9UbNJ4HbS 2awA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=Y65PxEah5hW1b88AT+QiQio3n0M6XjYmTrlCnZ/H/CA=; b=aP60n9EQRPIRbp3n4agbPAlNJz1gLhpm4wmgvZR82NMDs2PTfMtH0kNalz+TeynOjh 2BeVSL5qauGfeTWxISFZmi4eOBrG2CX+m3GR4gRlZzddn+gec/eLW4tfxgarTV8vR0f3 VA34rs9wgAPw/0BC0dBsWSW3WFBxZAQXCPF6MyztC+AFDhWF54ML9tOeoMsCAlvG9Nz+ nqId9qpGcbEy35eJRHZcVuvBilA504rhAqUCmXqUQd36hf1VIF/HQeinzfIGQnqzjNJA 6peCyeBmvxEGuxct3imA4wZbxag5QC2sP6Jwf56HcAwd5IJhuumpmiXIpCqjTKsXt6ES a+zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rsbIp2bV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8-v6si32326162pgc.347.2018.10.21.13.59.37; Sun, 21 Oct 2018 13:59:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rsbIp2bV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727988AbeJVFGv (ORCPT + 99 others); Mon, 22 Oct 2018 01:06:51 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40829 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbeJVFGu (ORCPT ); Mon, 22 Oct 2018 01:06:50 -0400 Received: by mail-ot1-f68.google.com with SMTP id w67so38033202ota.7 for ; Sun, 21 Oct 2018 13:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Y65PxEah5hW1b88AT+QiQio3n0M6XjYmTrlCnZ/H/CA=; b=rsbIp2bVo25njulMMh6JnRvzg8UofWMrcua2nMSuvzwcjeGso+VO3DWHhZYTrc+tVx mQPJbcHfElpgPMp4PUZUVo5j0amo+Ny6X8XebeUHbPymn4PNwU6iJq5QMUTRqp/pn7EJ AylRABna2EsH19H4erF26AMahnmKexrCnQ+8U844J+ivVOb40x7bQe0slg5kUQF3/6uO PvnOywm/PmwKFpYb3lRdj/qn2/H8hJQ/EFXLMv2h/GgEsbIvACGWGIjPmjU08LoKkDOA YhXDe0P8bQhHZBrL5ceMaPyQVAuy+J4R6A0LLhrZjFON4+8lTppLStP3wYZZu/aCuLg+ 2L1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Y65PxEah5hW1b88AT+QiQio3n0M6XjYmTrlCnZ/H/CA=; b=Q7ILm72bfit6Z8524ROGHqE7Cou62VCZzCdrUkk1kRB6PFfgnWfA/JaywxXvLSf2CU rns4Upohvh7MF60srZ+awMCn+f+rLlykuSnACc5rWwAVPM2CkfTaOocR6zXFOkvT1d2U Sg8MkgAq7JsOJLtzVSOFbmOdsgRAmek4W/JLgrwPQ9rcx/sdNLQGLPOCAfkPsceOUPlI nghKlJRGH44NzvrI84ROSzt+lRfe5QZsQ3ms/NVwaYTTUYdEMZ1DmOHXyOgsFstUCL0X U3xAIFDvKCLVGFk1Z3sqo7A3LVKPUjoj/+aNJBS5gZYdNTkQgxipTW1Ov5kc9c01Lvpn Qg9A== X-Gm-Message-State: ABuFfojWWFQzUWhRZ9eMGv7jaY3oW3RexVEuIv+s0GAqYvsunPkd1SXr 8P78YY3cjJBtfxO0SevR4Vxo2SW1I8EvO4GB9dw= X-Received: by 2002:a9d:4c15:: with SMTP id l21mr28449627otf.242.1540155074103; Sun, 21 Oct 2018 13:51:14 -0700 (PDT) MIME-Version: 1.0 From: Michael Tirado Date: Sun, 21 Oct 2018 16:25:00 +0000 Message-ID: Subject: To: Airlied@linux.ie, dri-devel@lists.freedesktop.org, LKML , kraxel@redhat.com, alexander.deucher@amd.com, christian.koenig@amd.com, David1.zhou@amd.com, Hongbo.He@amd.com Cc: seanpaul@chromium.org, Gustavo@padovan.org, maarten.lankhorst@linux.intel.com Content-Type: multipart/mixed; boundary="000000000000176d2a0578c34cfc" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000176d2a0578c34cfc Content-Type: text/plain; charset="UTF-8" Mapping a drm "dumb" buffer fails on 32-bit system (i686) from what appears to be a truncated memory address that has been copied throughout several files. The bug manifests as an -EINVAL when calling mmap with the offset gathered from DRM_IOCTL_MODE_MAP_DUMB <-- DRM_IOCTL_MODE_ADDFB <-- DRM_IOCTL_MODE_CREATE_DUMB. I can provide test code if needed. The following patch will apply to 4.18 though I've only been able to test through qemu bochs driver and nouveau. Intel driver worked without any issues. I'm not sure if everyone is going to want to share a constant, and the whitespace is screwed up from gmail's awful javascript client, so let me know if I should resend this with any specific changes. I have also attached the file with preserved whitespace. --- linux-4.13.8/drivers/gpu/drm/bochs/bochs.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/bochs/bochs.h 2017-10-20 14:34:50.308633773 +0000 @@ -115,8 +115,6 @@ return container_of(gem, struct bochs_bo, gem); } -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - static inline u64 bochs_bo_mmap_offset(struct bochs_bo *bo) { return drm_vma_node_offset_addr(&bo->bo.vma_node); --- linux-4.13.8/drivers/gpu/drm/nouveau/nouveau_drv.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/nouveau/nouveau_drv.h 2017-10-20 14:34:51.581633751 +0000 @@ -57,8 +57,6 @@ struct nouveau_channel; struct platform_device; -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - #include "nouveau_fence.h" #include "nouveau_bios.h" --- linux-4.13.8/drivers/gpu/drm/ast/ast_drv.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/ast/ast_drv.h 2017-10-20 14:34:50.289633773 +0000 @@ -356,8 +356,6 @@ uint32_t handle, uint64_t *offset); -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - int ast_mm_init(struct ast_private *ast); void ast_mm_fini(struct ast_private *ast); --- linux-4.13.8/drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c 2017-10-20 14:34:50.644633767 +0000 @@ -21,8 +21,6 @@ #include "hibmc_drm_drv.h" -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - static inline struct hibmc_drm_private * hibmc_bdev(struct ttm_bo_device *bd) { --- linux-4.13.8/drivers/gpu/drm/virtio/virtgpu_ttm.c 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/virtio/virtgpu_ttm.c 2017-10-20 14:34:53.055633725 +0000 @@ -37,8 +37,6 @@ #include -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - static struct virtio_gpu_device *virtio_gpu_get_vgdev(struct ttm_bo_device *bdev) { --- linux-4.13.8/drivers/gpu/drm/qxl/qxl_drv.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/qxl/qxl_drv.h 2017-10-20 14:34:52.072633742 +0000 @@ -88,9 +88,6 @@ } \ } while (0) -#define DRM_FILE_OFFSET 0x100000000ULL -#define DRM_FILE_PAGE_OFFSET (DRM_FILE_OFFSET >> PAGE_SHIFT) - #define QXL_INTERRUPT_MASK (\ QXL_INTERRUPT_DISPLAY |\ QXL_INTERRUPT_CURSOR |\ --- linux-4.13.8/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 2017-10-20 14:34:43.264633895 +0000 @@ -48,3 +48,1 @@ -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - --- linux-4.13.8/drivers/gpu/drm/mgag200/mgag200_drv.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/mgag200/mgag200_drv.h 2017-10-20 14:34:51.404633754 +0000 @@ -276,7 +276,6 @@ struct mga_i2c_chan *mgag200_i2c_create(struct drm_device *dev); void mgag200_i2c_destroy(struct mga_i2c_chan *i2c); -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) void mgag200_ttm_placement(struct mgag200_bo *bo, int domain); static inline int mgag200_bo_reserve(struct mgag200_bo *bo, bool no_wait) --- linux-4.13.8/drivers/gpu/drm/radeon/radeon_ttm.c 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/radeon/radeon_ttm.c 2017-10-20 14:34:52.588633733 +0000 @@ -45,8 +45,6 @@ #include "radeon_reg.h" #include "radeon.h" -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) - static int radeon_ttm_debugfs_init(struct radeon_device *rdev); static void radeon_ttm_debugfs_fini(struct radeon_device *rdev); --- linux-4.13.8/drivers/gpu/drm/cirrus/cirrus_drv.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/drivers/gpu/drm/cirrus/cirrus_drv.h 2017-10-20 14:34:50.333633772 +0000 @@ -178,7 +178,6 @@ #define to_cirrus_obj(x) container_of(x, struct cirrus_gem_object, base) -#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) /* cirrus_mode.c */ void cirrus_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, --- linux-4.13.8/include/drm/drmP.h 2017-10-18 07:38:33.000000000 +0000 +++ linux-4.13.8-modified/include/drm/drmP.h 2017-10-20 14:35:31.300633060 +0000 @@ -503,4 +503,10 @@ /* helper for handling conditionals in various for_each macros */ #define for_each_if(condition) if (!(condition)) {} else +#if BITS_PER_LONG == 64 +#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT) +#else +#define DRM_FILE_PAGE_OFFSET (0x10000000ULL >> PAGE_SHIFT) +#endif + #endif --000000000000176d2a0578c34cfc Content-Type: application/octet-stream; name="drm_file_offset.patch" Content-Disposition: attachment; filename="drm_file_offset.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jnj1vfbu0 LS0tIGxpbnV4LTQuMTMuOC9kcml2ZXJzL2dwdS9kcm0vYm9jaHMvYm9jaHMuaAkyMDE3LTEwLTE4 IDA3OjM4OjMzLjAwMDAwMDAwMCArMDAwMAorKysgbGludXgtNC4xMy44LW1vZGlmaWVkL2RyaXZl cnMvZ3B1L2RybS9ib2Nocy9ib2Nocy5oCTIwMTctMTAtMjAgMTQ6MzQ6NTAuMzA4NjMzNzczICsw MDAwCkBAIC0xMTUsOCArMTE1LDYgQEAKIAlyZXR1cm4gY29udGFpbmVyX29mKGdlbSwgc3RydWN0 IGJvY2hzX2JvLCBnZW0pOwogfQogCi0jZGVmaW5lIERSTV9GSUxFX1BBR0VfT0ZGU0VUICgweDEw MDAwMDAwMFVMTCA+PiBQQUdFX1NISUZUKQotCiBzdGF0aWMgaW5saW5lIHU2NCBib2Noc19ib19t bWFwX29mZnNldChzdHJ1Y3QgYm9jaHNfYm8gKmJvKQogewogCXJldHVybiBkcm1fdm1hX25vZGVf b2Zmc2V0X2FkZHIoJmJvLT5iby52bWFfbm9kZSk7Ci0tLSBsaW51eC00LjEzLjgvZHJpdmVycy9n cHUvZHJtL25vdXZlYXUvbm91dmVhdV9kcnYuaAkyMDE3LTEwLTE4IDA3OjM4OjMzLjAwMDAwMDAw MCArMDAwMAorKysgbGludXgtNC4xMy44LW1vZGlmaWVkL2RyaXZlcnMvZ3B1L2RybS9ub3V2ZWF1 L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