Received: by 2002:a05:7208:820a:b0:81:e143:7c29 with SMTP id q10csp591103rbf; Wed, 10 Apr 2024 13:53:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtIpaYycbur1atxEuo06/z8hrRu0/C74nIkqpu8RWug8bNCQvgjv7VzOFqrJPPWz6oj71IUkm8q7Rfvci2mIaWuhN0N6UQpVKZNbWj6Q== X-Google-Smtp-Source: AGHT+IE/k2stVuyIjY98Hu4FyTIijAf3cSQ+yyUM1XrlEL8Qt3sf1VH2GzEdagmSRMkt0aK1MOkr X-Received: by 2002:a17:907:86a8:b0:a51:d204:d69e with SMTP id qa40-20020a17090786a800b00a51d204d69emr3194858ejc.7.1712782423291; Wed, 10 Apr 2024 13:53:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712782423; cv=pass; d=google.com; s=arc-20160816; b=Ggjxd3JnkIvS8ScZeVA3AckyAA+HgKQPlSoivct8BLqigdcvUR/FCpaw/qynS+S3fO mv2kSaKsmIY17l2WJHimY1v6NxOnOP3afFazFm70iWJz+dQe42IN8GErbcndlSeGKfo5 YRrMEpX8FprXrbtDmoJ7tDSRGspHMehyvlRcsRiXWgNEc9RlMmGm9MjY0s9UatSnASJh qYJvFFJh2vpI0WP/y39w/03CfaivD7IUyeudItKAgF/pOFhLeK/A/K6EyixYIkwuXZst 2A42SMYMgM4UrDtniraRzA97a5MhHE6e/tkB4kBRM0M3p4AVQ+Vzgcjs3GcMd4Fr4vCy 3B2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=HFiQhEOGgH7BulX7PcWOBKJwuVCh69V2zXaiyRkXXhg=; fh=7WCuyx7jZuDP2QM8x2GD5y5HNAFrCeHpL717GHyvybQ=; b=KmhcOQJlkM7IcUZRiDbTbzFlW/n+LoIttprVYlOOWBpUT/MCcL6zZq/ftIqQ0kp/5C oMGHoY9QwBvotYLhG5NFpCZGGE5A0Ar6SwAPG8/1sMu0d6RAZ8Q4mS/FOWg3HsT5UzJV 1cC7K196aLl2hxCZsJLwA3nJM+wVppMA6O6OY2FHgdfjaR2En5fGK7SLgvaoA5WjJZrC y6b2vDevHMcsMJeed8IcBk2mCjU4FaexH/qTDsmXUZOsajf0zXFYJCvzwxtRKlYd34fU iuZ0PkqCBIyYtCE+IRou8fLWtHJepzpfGBKSnua2jnM4hw3FUjZvNfe85wnQCDxXHu1+ QxEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bUQi+HCP; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-139333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139333-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kv11-20020a17090778cb00b00a4e94d9566csi21985ejc.297.2024.04.10.13.53.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 13:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bUQi+HCP; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-139333-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139333-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 104451F2209D for ; Wed, 10 Apr 2024 20:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F7EE181D05; Wed, 10 Apr 2024 20:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="bUQi+HCP" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B186D15EFAD for ; Wed, 10 Apr 2024 20:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712782413; cv=none; b=WvzHJwyfD0wEC9jkXzBuc6EA8WRsOc099q7+zb63kI1fqJ2d/ymTL5P/5DPdvv60KaFSoNc+hQVZe8mTK6kv0o6KyItASgNuAR93WL0KLySTWAwXWp8Gq2l3h+ujYl3C/MpiNul8Y0RnafIhqeh6LrFg16ywDcGB0062bar+Ruk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712782413; c=relaxed/simple; bh=dN9QAFFSPnKO+kppDSwGYQaQqQZPMRvjy+igFIMMS0I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bDbSzcuvQzFDqAwEJ5plV7IeKb4DlwvnUk6p4vz31aO5zrJ4rpWHZbeG7rBbsd1E4vG4cfHdjPz71Sm4Wky9M6A6IiJQ9GJmRHu4HhL2NjPnXyLdeTnuppmaCAIsPJZahG9EsPFf/kH+dMGLSrgAPYnhMPSJYpWLMWmVPzs0UdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=bUQi+HCP; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-56c404da0ebso10659987a12.0 for ; Wed, 10 Apr 2024 13:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1712782410; x=1713387210; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HFiQhEOGgH7BulX7PcWOBKJwuVCh69V2zXaiyRkXXhg=; b=bUQi+HCPfJAEz4kdR2cwMuH26//p8PlGJF+UK/ul+umkE003gRrBYIi3zi8P1axbS3 lN2GO5qu/wTj4qsjyXoIhzcpN7k1vWDGybquxxejHjA0a2ZLAWvf0nfqgY3kcZmMnlaI IVUAiDTBmfwVv3Sn6v6K//F0kikMl9v9PXngo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712782410; x=1713387210; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HFiQhEOGgH7BulX7PcWOBKJwuVCh69V2zXaiyRkXXhg=; b=VCn+DSdQdxKHHmx8CHaMJOG0I2Ofs4TURkh+qEI3bw6sbznqksTsS8nnx1Xyx7yPL1 nOa/7Lmkz3JGDxls9M7KCeBa7O/FHC76Ai7R8OuDWvBB0iooy6OtcnPFpI1MXtoymmsO kKwFTSYACH8wd4JGyiCkzOwZEx8n8aiAXVuprqkAhJeQYeeO+j7VrFyx26/fZHoWRhBC OmrPgUI8rQdog2G8pjefsZit5imt2/2EHy6DoikMcAiqf7F39rBo2HiIhpGHU4Uqza37 qRsG8iBaCTL5sZt49yTV5UDncGtpAAX8EPKYPaQUSyuNfgXkDq27uYVLeC3YCcsPANNv poIw== X-Forwarded-Encrypted: i=1; AJvYcCVzIb+ZE5d/43ztEFp/4hbtK23v6MAETT2ARyvqAe1L6ByMP1H1RwT9nu2mj64ZinGdnJlU9BqY9vc18XtyJgw2p1Ervs5lMCD13iW9 X-Gm-Message-State: AOJu0YxNiyOgpk15Usa9sK33yVs0IFTln3UKhlJT8fyfC3vz+Qm0LIsk H0BXdr/udEm4YC7AFpMEGYnZnoVnItf/6YRzB7ego++ZYfxB7iN2o9v8toarL+S+s8Md9w72Hy2 Mw3YLbg== X-Received: by 2002:a17:907:7208:b0:a51:e05b:a168 with SMTP id dr8-20020a170907720800b00a51e05ba168mr2785536ejc.16.1712782409851; Wed, 10 Apr 2024 13:53:29 -0700 (PDT) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com. [209.85.218.50]) by smtp.gmail.com with ESMTPSA id my42-20020a1709065a6a00b00a51dccd16d9sm43322ejc.99.2024.04.10.13.53.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 13:53:29 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a51b008b3aeso585689766b.3 for ; Wed, 10 Apr 2024 13:53:29 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXNheV/vmkUcgWYd3Jx6P0iDIwtxUC00DbALgjh4GBXvcw8T0UwTzNjT6IvOzUoBbkFaJ+HBWUaYO1+vwwiv5FR0uklqvwY5G6ypvqH X-Received: by 2002:a17:907:c789:b0:a52:1635:9e05 with SMTP id tz9-20020a170907c78900b00a5216359e05mr1520228ejc.13.1712782408768; Wed, 10 Apr 2024 13:53:28 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410183852.6df5011e@coco.lan> In-Reply-To: <20240410183852.6df5011e@coco.lan> From: Linus Torvalds Date: Wed, 10 Apr 2024 13:53:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL for v6.9-rc4] media fixes To: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman , Andrew Morton , Linux Media Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" On Wed, 10 Apr 2024 at 09:39, Mauro Carvalho Chehab wrote: > > - some fixes causing oops on mediatec vcodec encoder/decoder. Well, I certainly hope it's not the fixes that cause oopses. That would be the opposite of a fix. However, having fixed that, I also find some of the fixes in here rather broken: commit d353c3c34af0 ("media: mediatek: vcodec: support 36 bits physical address") has a "fix" for a cast like this: - dec->bs_dma = (unsigned long)bs->dma_addr; + dec->bs_dma = (uint64_t)bs->dma_addr; but the underlying problem was in fact that the cast was WRONG TO EVEN EXIST. Both 'bs_dma' and 'dma_addr' are integers. The cast is pointless and wrong. It makes the code look like it is doing something else than what it's doing, and that something else would be wrong anyway (ie if it is a cast from a pointer, it would be doubly wrong). IOW, as far as I can tell, the fix *should* have been to just remove the cast entirely since it was pointless. I've pulled this, but please people - make the pull request description make sense, and when fixing bugs, please think about the code a bit more than just do a mindless conversion. Linus