Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp881765pxb; Wed, 27 Oct 2021 14:23:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytpVqml8Hx83twRxovF3OJ0DJMYxsprzupMV33KzxIvka3Msf1ZLongsFwNIsx78Wz7cfW X-Received: by 2002:a17:907:869f:: with SMTP id qa31mr31302ejc.361.1635369817396; Wed, 27 Oct 2021 14:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369817; cv=none; d=google.com; s=arc-20160816; b=I/Mt4L4F04tVHjpdeKTeFzCLjkNd72hJxzKEdPRviBz5P2roEuRCvz4PV0/2p93ZIM TOT8uVmiEuJ0EeqHH7V7ol68ivcBDMO8CI93nQdLyA480q+jxWDHc1TLSIwoP6RgLi6k b/me5it+QGgjlWnL+PGieGlhkaJwA70GgllTSEWRfkXRgjM0YLh9ZBUXfES4Ewv+KWqu VNRSVpSPPD3o0mu0XSN1OFBTiMmhvU5qX43Uz7WzjiStLs+XAFWmkYWlo8GUegCP2Ex7 LgzFm0DsnRImGg7TVvjVRj6lu69YbTLTYfulM3yO/wlZJhtBwhpc3y9y8tmJjPWe6/aU BwtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=1sRu7b26Rc4jpDXw7+dan2aAps36cjfVYqMIhBxNcVI=; b=NVbGjGResHriE80dk2elw1VW5C1aLLnDo7gQmHJM0nABA6HQG1PCxvILQiDrnI+Mth R7Uep9ATpuNPgvgVg3+auKNdY0UdA2/OBBA+7AuMwoVoOCMdUGmMwr6bp9RVNRLooj8R 5B7qP0SrSOP0mLzvfimrsX6Ldx+pneet2xwX3qXV1vdNZDEpGowF8atitUA7HfR1EtK7 HPjk2xjCzEK50cUlnHBvNNFvrNF7RbnHfQviXU6Qxq1a/waejiU8opMjb+374/2uAxHO ebbQCWn5LIxMEdOvrukZy0jvOsjUDXDoja94US+MGxKrVJ0+NDJTSNHNifWD5u362Lmi fJXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si1561983edd.240.2021.10.27.14.23.12; Wed, 27 Oct 2021 14:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239620AbhJ0Kkt convert rfc822-to-8bit (ORCPT + 97 others); Wed, 27 Oct 2021 06:40:49 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:37073 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236074AbhJ0Kks (ORCPT ); Wed, 27 Oct 2021 06:40:48 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MlO5j-1n4nTM3YLd-00ljfu; Wed, 27 Oct 2021 12:38:21 +0200 Received: by mail-wm1-f43.google.com with SMTP id a20-20020a1c7f14000000b003231d13ee3cso5842776wmd.3; Wed, 27 Oct 2021 03:38:21 -0700 (PDT) X-Gm-Message-State: AOAM533T6KMXll3ZrO5qtGVi3o7TSGnCsK0AmTex4VqFCYeAZC+TUFOf NHD0TvWo8t/A/e7HbxVmHTE1vmkn6CQUUulAqzA= X-Received: by 2002:a05:600c:1548:: with SMTP id f8mr4852836wmg.35.1635331101366; Wed, 27 Oct 2021 03:38:21 -0700 (PDT) MIME-Version: 1.0 References: <20211027080849.3276289-1-geert@linux-m68k.org> In-Reply-To: <20211027080849.3276289-1-geert@linux-m68k.org> From: Arnd Bergmann Date: Wed, 27 Oct 2021 12:38:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] usb: gadget: Mark USB_FSL_QE broken on 64-bit To: Geert Uytterhoeven Cc: Li Yang , Felipe Balbi , Greg Kroah-Hartman , Arnd Bergmann , USB list , linuxppc-dev , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:977zZkHhQJaxSarzoX+MR9G0xluBYVdMBh6F4U5fjgpQ+lABTwh lapMD1fGalsvx2dDFu9HgqG5VwfQdL87TVGSq+CEcW8cnYIbmh4d6EyZAEVTq7yNpJPbAwt Dcm2qI/3BqaT1+E1wyygVaBs4dfdbEsL8Tc55Uc35T2q0xret+9ph3iQHJ8SvW/r/cK34dh 2q+sGi9W69BRrdREfoYqQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:oQA6l8nLBSY=:qGuxqGpsLsMXWhN9LuMm1y 7em73T326vPryxf/5CSF0l79nbH5sAmPZ92COu6mt4sh3376Z88DcN/ZgyvXjMM5p2nLvQq3I 4dlOUfwHuOzKkCkAnqbwgoK1Oy9u1xKby262k3eSCOrVlwAVAvza5+1C3NLw28Bh/rK/uMXsv FR7nAw82NwOmZRkvV6pR0AYEmIN1jB/GeE2e6pc1gygoj0o+l1/b93HNM/cD5c/OkLAOVMhH+ abfkUry8riB7+anqZ2QhOztyLvRjWYM5VliOYOSxYh2Il4SI1dqt4T+868JjHJKoejpZ7bGqh 9R5zVTPbW6fJdvBeY3rjjhn06ju7K97L3/AXsdmzvqBAdWv3jldQmLkZHCwzTBITHK2BwNXNS z56s+THLBFDizpwMJBI8c6tuTFhemGIhPfnu9XXVH3nTMQnb/77Q9MNjsl1hAV5WFLCmr0/LF EKIqVI9M/8PqfinIr0aFzwNei8BFsbx5vRrcMXnUlKuFWQJ8iqZbkcQ8hQKJz/AYpNpH2iOC1 O6PZnlaMUsC50rteThhQhQFp7F1xyVg3mhZTCR3uKFmaKiflO8BWY9hRAc7bzkphZAl32Ps44 sXv0DjzelL+1iteEeUhJiNOW1IoXBINkSzj2g3tORgSRSmdx31ZgqAiI0ykJ4/2KhJZwHmvME 0j+Ge/mg9aJVbU4lnv/iBjM6pi9vXc2jaxspV5QnUBIOpIrkS4K62fgpbeIz48pf1Rho= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 10:08 AM Geert Uytterhoeven wrote: > > On 64-bit: > > drivers/usb/gadget/udc/fsl_qe_udc.c: In function ‘qe_ep0_rx’: > drivers/usb/gadget/udc/fsl_qe_udc.c:842:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 842 | vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); > | ^ > In file included from drivers/usb/gadget/udc/fsl_qe_udc.c:41: > drivers/usb/gadget/udc/fsl_qe_udc.c:843:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] > 843 | frame_set_data(pframe, (u8 *)vaddr); > | ^ > > The driver assumes physical and virtual addresses are 32-bit, hence it > cannot work on 64-bit platforms. > > Signed-off-by: Geert Uytterhoeven > --- Interesting, I have not seen this one in randconfig builds. It looks like the driver also assumes that physical addresses are the same as bus addresses, so maybe it should also be marked broken when CONFIG_IOMMU is enabled? Maybe that takes it too far, as this driver could still be used on a machine without IOMMU in a kernel that supports IOMMUs on other machines. Arnd