dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Oak Zeng <Oak.Zeng@amd.com>,
	dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390
Date: Thu, 11 Mar 2021 09:54:09 +0100	[thread overview]
Message-ID: <51520443-87d1-84fd-cc30-70d432acfbb9@gmail.com> (raw)
In-Reply-To: <1615433344-16267-1-git-send-email-Oak.Zeng@amd.com>

Am 11.03.21 um 04:29 schrieb Oak Zeng:
> ioremap_cache is not supported on some architecture
> such as s390. Put the codes into a #ifdef to fix
> some compile error reported by test robot.
>
> Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
> Reported-by: Kernel test robot <lkp@intel.com>

Reviewed-by: Christian König <christian.koenig@amd.com> for the series.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> index 37751e7..1091585 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> @@ -1817,7 +1817,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
>   
>   	/* Change the size here instead of the init above so only lpfn is affected */
>   	amdgpu_ttm_set_buffer_funcs_status(adev, false);
> -#ifdef CONFIG_64BIT
> +#ifdef CONFIG_X86
>   	if (adev->gmc.xgmi.connected_to_cpu)
>   		adev->mman.aper_base_kaddr = ioremap_cache(adev->gmc.aper_base,
>   				adev->gmc.visible_vram_size);

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2021-03-11  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11  3:29 [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390 Oak Zeng
2021-03-11  3:29 ` [PATCH 2/2] drm/amdgpu: fix a few compiler warnings Oak Zeng
2021-03-11 18:19   ` Bhardwaj, Rajneesh
2021-03-11  8:54 ` Christian König [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-15 15:38 [PATCH 1/2] drm/amdgpu: fix compile error on architecture s390 Oak Zeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51520443-87d1-84fd-cc30-70d432acfbb9@gmail.com \
    --to=ckoenig.leichtzumerken@gmail.com \
    --cc=Oak.Zeng@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox