From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4ECB7C433EF for ; Sun, 30 Jan 2022 07:54:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233159AbiA3HyI (ORCPT ); Sun, 30 Jan 2022 02:54:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232013AbiA3HyH (ORCPT ); Sun, 30 Jan 2022 02:54:07 -0500 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108CDC061714 for ; Sat, 29 Jan 2022 23:54:07 -0800 (PST) Received: by mail-vk1-xa2f.google.com with SMTP id n14so6406202vkk.6 for ; Sat, 29 Jan 2022 23:54:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FkAU6lQdJCRyu533F2eKn1uziP+6Ns8dvi8qW+5P7Qk=; b=j/q7eCoBR+ffNuf8vE1efLzGFwjI4BoJW+EVdB2DzQH0ekq3t2OmYRGir4h9G522bp 852tEOfxo6HXMI5XYisae4+E/OhkohUKBPD2lJ0w1FQDPku6cpfXnoDD+HLwIirsBdQ1 x+sBl7n19tXs3gfihXcwwnYXb1uzdjCwrrCfE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FkAU6lQdJCRyu533F2eKn1uziP+6Ns8dvi8qW+5P7Qk=; b=cNpQzqB65UV3DM6NqK/zjZHZdO+WsVuoB9bZI+wP3T9Iegy4fapB7lVyuqBxt/kQfP aYj2rN5USVrjOZd+DnUIyEUSZPH7fW8+9F92Mv1rt74ybuaMOU57M62whjowdrpVNu6k YTq4GU4HkFgg0pI7K8kNL3DvgjIsH1wXzt4k8+LB7A/1H2LDfKhJ84vHOhSBiFivgIPo NJXU3j+wbyvkGERxptzFA2E5O0gE2PYe4k123RJR2oOenc5Ve1pwww7NeCkwk7dAmwM3 x2ojHpRVgtunqdkMHTswExOUuwztgrWHXQbK3t69xgxVKXx3FyKv7LZfex00DO/p6+8B qz7Q== X-Gm-Message-State: AOAM532xZc2J4i/MPYz4ElVI99CEcY4pxZwi3vJrWuzIRjLKJOLL/Tx1 JoS+WOfdakvbNU+M5/7nvsyS81PZaH6NR9gHDEfMjXzXurQo3utL X-Google-Smtp-Source: ABdhPJz+IzI61n3Yy0Da1LFHV3LA/XY5p4F2zP1ZNbGqvC8bcfAR+k6jajf69nkBqbvR4s+2ctZNQnrMKGowC6uBwjs= X-Received: by 2002:a05:6122:21a1:: with SMTP id j33mr6165329vkd.34.1643529245970; Sat, 29 Jan 2022 23:54:05 -0800 (PST) MIME-Version: 1.0 References: <20211201175613.13710-1-dafna.hirschfeld@collabora.com> <20211201175613.13710-2-dafna.hirschfeld@collabora.com> <25e7d6db-1cff-6fd5-1071-1f21c5ff7a8a@collabora.com> <1bda0f7f-94ee-e598-4b92-d46512cba491@collabora.com> In-Reply-To: <1bda0f7f-94ee-e598-4b92-d46512cba491@collabora.com> From: Daniel Palmer Date: Sun, 30 Jan 2022 16:53:55 +0900 Message-ID: Subject: Re: [PATCH v4 1/6] staging: media: wave5: Add vpuapi layer To: Dafna Hirschfeld Cc: Bob Beckett , Linux Media Mailing List , Collabora Kernel ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi Dafna, On Fri, 28 Jan 2022 at 04:49, Dafna Hirschfeld wrote: > > Hi > > I have some messy notes here of what I found out so far, some dumps of > > the vendor driver running etc: > > https://github.com/linux-chenxing/linux-chenxing.org/blob/master/ip/vdec.md > > I see that you test the content of 0x1f344000 with 'devmem', what make you test this specific address? In the binary module from the vendor instead of getting the address from DT they have hardcoded it in the ioremap() call to map the device registers. Just after that they add 0x800 to the resulting address resulting in 0x1f344800. I think they are trying to ioremap() at page alignment or something but the registers actually start at 0x800. Cheers, Daniel