From patchwork Mon Nov 16 17:36:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324434 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3502874ils; Mon, 16 Nov 2020 09:37:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjXlOWue/jTRySxBNOGw/TpznR162xtFwNMvIld7WOml8Ndmdxd+YF/7LdiaemFHJvhrrn X-Received: by 2002:a63:e757:: with SMTP id j23mr219754pgk.301.1605548229692; Mon, 16 Nov 2020 09:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548229; cv=none; d=google.com; s=arc-20160816; b=F0nF+iq0IzEbMnm2M9cEc0BS1G2jJfbuVPQUM2n5AFQXzZVUtJ0GhZ2qRgx0vOJiZX 6sv2e4jfEtnMEWESUafecy/f8+CzlqRg9uJUI1up+ZPJ56tzsdD4lizdRF64Y4TDryzS wLiRaSLOnu5sWoRJ8lwuahsx72WZ65VK9FhbLZEF//EZvP9aIlaFevkAcV5A/FToOV9K zE9XK4efxunUZKrq/Q73of3Zsz+CvHMJD6TLT3xZuvTL8IO6VC/1BXW5rJ4afi+SffZ2 KIdafPlzElDFdLLUmbCz/EEX452uQhxwPFUIR43EwlWynQqkQXSy8zvRS/HONIPJgR4Y hdpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=chF31oMszfdqsoi7b9sZml8JG96mXMErMpJkrqi1pac=; b=qQnGPPRFEd3Kd193ibae/E4oHfDJ+zgh7pEx7XqjNH6lQ7arSZO2ht68jHTDWMszEq AOherQ4r062Uiz6vDI7uzm64tnMQ+KLCIxC2T3JHH4fISKuSbhBW/WXLe1HgY01RAE/Y IudAK/Jy8oBIK9xRz8hR/hgxAAcnWLtLvFG4qRK+WkIiZbycsxIa/WFiaQFoJEt7Y6V5 ddm7UsGIIExghV863jmXiYsaNFMupGQHGJCIXMASfuk6CABVUZAvdzTozEr8UJAdM0a9 Pu1gvvwbw1Pq8GzR/S+nEMsRvUzJ3u53y6RMrOfpjqMLiA+1FhQYCdJvD2suG/4hmwll fgUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tllhDcFg; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id l6si16074134pgi.572.2020.11.16.09.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tllhDcFg; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B98989F61; Mon, 16 Nov 2020 17:37:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4F2B589F61 for ; Mon, 16 Nov 2020 17:37:05 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id s8so19607122wrw.10 for ; Mon, 16 Nov 2020 09:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rnCmLL25pCLDNOYAVS5vRDXtM8wklwyGg+VrKx5Ma2A=; b=tllhDcFg6v1aQCkXpAymrypD3GV4OHum5p2/WrHJOhw21jBh1tzJJ5YQH3+f8rLq90 8fToMihvovq8zyX5/I8FXSc5WZkHtOfg5oa2zOsz6xOUoH8dFamywrLBkG1OT13Xw1oP il6O++szmQO7CqwAPSxzz6EWh12ZQrDN4J7e/mbQ0NURGC7pTuhl5MwwChSE5D1Il1lk HpwEfmWYN3pcLtOPHZ92fsiQtU0aldoiGcEJkWSyVvHh8bIcdsaplMyuupmxeuax+ogU FRrxHweR5keMnn03xWcpPltyvudJv0QJkfwjngh09FALkU07xOZv4vXBx7iTdqHZiRWJ xwSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rnCmLL25pCLDNOYAVS5vRDXtM8wklwyGg+VrKx5Ma2A=; b=JG1XXFQVh4HloTDCaS1y/1+OWl/nk4KhDb76wdVk8P47VV0T/lE53ZyKpkv8AJkDAj QQlErNurtaEVhD+g+Ntx9KpafPUDioaBpnrKeAAxTWY4lnDU/NBzJ3/cvWfrTia6r2oz Uorx8BlWtGNwZIXhizkwV6ltfwxElo0s3Xylcu5yem6K1Ytwpi4nnFLciv3ODEIRFqyE zxBp6Q2SJmyzAFyE7KEjOygHimLeVm+NFH9yauqDcBzKCdpGBiikWkZy4sJdYPWg2OG+ COO/e8JTdxcpoPV1CxsBlUIlIH7yYuWJ7AMw0O4fQhlZDpm1DUKc+F8oteNy55DBNmxb ZQ2w== X-Gm-Message-State: AOAM533RTeblY8PgrRq7ggb07CKkSp0K3UNqDaLnK3r+K2rKZ+awey2T OeQA1OqB2AEBBmsOY7wXkzysUg== X-Received: by 2002:adf:cf0b:: with SMTP id o11mr20096726wrj.162.1605548223950; Mon, 16 Nov 2020 09:37:03 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:03 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [RESEND v2 00/43] Rid W=1 warnings from GPU Date: Mon, 16 Nov 2020 17:36:17 +0000 Message-Id: <20201116173700.1830487-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gareth Hughes , David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Slava Grigorev , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , Evan Quan , =?utf-8?q?Christian_K=C3=B6nig?= , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" [sending again, as `git send-email` crashed!] This set contains fixes for some "wouldn't it be nice if" issues, however most of the patches seen here have been on the MLs, but were left unreviewed. Lee Jones (43): drm/radeon/atombios_encoders: Move 'radeon_atom_get_tv_timings()'s prototype into shared location drm/radeon/radeon: Move prototype into shared header drm/radeon/radeon_kms: Move 'radeon_*_kms' prototypes to shared header drm/radeon/radeon_kms: Fix misnaming of 'radeon_info_ioctl's dev param drm/radeon: Move radeon_ttm{init,fini} to shared location drm/radeon/radeon_legacy_encoders: Move 'radeon_add_legacy_encoder' prototype to shared header drm/radeon/radeon_legacy_encoders: Move 'radeon_add_legacy_encoder's prototype to shared location drm/radeon/radeon_irq_kms: Demote non-conformant kernel-doc fix another drm/radeon/rv770: Move 'rv770_set_clk_bypass_mode' prototype to shared location drm/radeon/radeon_pm: Move 'radeon_pm_acpi_event_handler' prototype into shared header drm/radeon/radeon_audio: Move 'dce3_2_*' prototypes to shared location drm/radeon/evergreen: Move 'evergreen_*' and 'sumo_*' prototypes out to shared location drm/radeon/radeon_drv: Move 'radeon_mmap()'s prototype to shared header drm/radeon/radeon_drv: Move 'radeon_driver_irq_handler_kms's prototype into shared header drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header drm/radeon/radeon_gem: Move 'radeon_gem_prime_*()'s prototypes to shared header drm/radeon/evergreen_hdmi: Move 'evergreen_*()' and 'dce4_*()' HDMI prototypes to shared header drm/radeon/rv770: Move 'rv770_get_*()'s prototypes to shared header drm/radeon/ni_dpm: Move 'ni_get_{pi,ps}()'s into shared header drm/radeon/evergreen: Move 'cayman_*()'s prototypes to shared header drm/radeon/r600_dma: Move 'r600_gpu_check_soft_reset()'s prototype to shared location drm/radeon/cik: Move 'r600_ih_ring_{alloc,fini}()'s prototypes to shared header drm/radeon/evergreen_dma: Move 'evergreen_gpu_check_soft_reset()'s prototype to shared header drm/radeon/r600: Move 'evergreen_rlc_resume()'s prototype to shared header drm/radeon/ni_dma: Move 'cayman_gpu_check_soft_reset()'s prototype to shared header drm/radeon/radeon_atombios: Move 'radeon_add_atom_encoder()'s prototype to shared header drm/radeon/radeon_encoders: Move 'radeon_atom_backlight_init's prototype to shared header drm/radeon/ci_dpm: Move 'ci_*()'s prototypes to shared header drm/radeon/si_dpm: Move 'si_mc_load_microcode()'s prototype to shared header drm/radeon/si_dma: Move 'si_gpu_check_soft_reset()'s prototype to shared header drm/radeon/cik: Move 'si_*()'s prototypes to shared header drm/radeon/btc_dpm: Move 'evergreen_get_pi's prototype to shared header drm/radeon/radeon_audio: Move 'dce6_*()'s prototypes to shared header drm/radeon/evergreen: Move 'si_get_csb_*()'s prototypes to shared header drm/radeon/cik_sdma: Move 'amdgpu_cik_gpu_check_soft_reset()'s prototype to shared header drm/radeon/evergreen: Move 'cik_*()'s prototypes to shared header drm/radeon/ci_dpm: Move 'si_*()'s prototypes to shared header drm/radeon/cik: Move 'Move 'cik_sdma_*()'s prototypes to shared header drm/radeon/si_dpm: Move 'vce_v1_0_enable_mgcg()'s prototype to shared header drm/radeon/cik: Move 'vce_v2_0_enable_mgcg()'s prototype to shared header drm/radeon/evergreen_cs: Move 'r600_dma_cs_next_reloc()'s prototype to shared header drm/radeon/radeon_audio: Move 'r600_*' prototypes into shared header drm/radeon/radeon_drv: Move 'radeon_gem_prime_import_sg_table()'s prototype to shared header drivers/gpu/drm/radeon/atom.h | 7 ++ drivers/gpu/drm/radeon/atombios_encoders.c | 5 +- drivers/gpu/drm/radeon/btc_dpm.c | 6 +- drivers/gpu/drm/radeon/ci_dpm.c | 13 +--- drivers/gpu/drm/radeon/cik.c | 19 ++--- drivers/gpu/drm/radeon/cik.h | 40 +++++++++++ drivers/gpu/drm/radeon/cik_sdma.c | 3 +- drivers/gpu/drm/radeon/cypress_dpm.c | 6 +- drivers/gpu/drm/radeon/dce6_afmt.c | 1 + drivers/gpu/drm/radeon/dce6_afmt.h | 52 ++++++++++++++ drivers/gpu/drm/radeon/evergreen.c | 16 ++--- drivers/gpu/drm/radeon/evergreen.h | 55 +++++++++++++++ drivers/gpu/drm/radeon/evergreen_cs.c | 3 +- drivers/gpu/drm/radeon/evergreen_dma.c | 3 +- drivers/gpu/drm/radeon/evergreen_hdmi.c | 1 + drivers/gpu/drm/radeon/evergreen_hdmi.h | 69 +++++++++++++++++++ drivers/gpu/drm/radeon/ni.c | 17 +---- drivers/gpu/drm/radeon/ni.h | 39 +++++++++++ drivers/gpu/drm/radeon/ni_dma.c | 3 +- drivers/gpu/drm/radeon/ni_dpm.c | 5 +- drivers/gpu/drm/radeon/ni_dpm.h | 3 + drivers/gpu/drm/radeon/r600.c | 5 +- drivers/gpu/drm/radeon/r600.h | 58 ++++++++++++++++ drivers/gpu/drm/radeon/r600_cs.c | 1 + drivers/gpu/drm/radeon/r600_dma.c | 3 +- drivers/gpu/drm/radeon/r600_hdmi.c | 1 + drivers/gpu/drm/radeon/radeon_acpi.c | 3 +- drivers/gpu/drm/radeon/radeon_atombios.c | 11 +-- drivers/gpu/drm/radeon/radeon_atombios.h | 45 ++++++++++++ drivers/gpu/drm/radeon/radeon_audio.c | 68 +----------------- drivers/gpu/drm/radeon/radeon_audio.h | 12 ++++ drivers/gpu/drm/radeon/radeon_combios.c | 6 +- drivers/gpu/drm/radeon/radeon_device.c | 1 + drivers/gpu/drm/radeon/radeon_device.h | 32 +++++++++ drivers/gpu/drm/radeon/radeon_display.c | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 14 ++-- drivers/gpu/drm/radeon/radeon_encoders.c | 10 +-- drivers/gpu/drm/radeon/radeon_gem.c | 1 + drivers/gpu/drm/radeon/radeon_i2c.c | 4 -- drivers/gpu/drm/radeon/radeon_irq_kms.c | 9 ++- drivers/gpu/drm/radeon/radeon_kms.c | 3 +- drivers/gpu/drm/radeon/radeon_kms.h | 40 +++++++++++ .../gpu/drm/radeon/radeon_legacy_encoders.c | 1 + .../gpu/drm/radeon/radeon_legacy_encoders.h | 36 ++++++++++ drivers/gpu/drm/radeon/radeon_object.c | 3 +- drivers/gpu/drm/radeon/radeon_pm.c | 1 + drivers/gpu/drm/radeon/radeon_pm.h | 33 +++++++++ drivers/gpu/drm/radeon/radeon_prime.c | 1 + drivers/gpu/drm/radeon/radeon_prime.h | 42 +++++++++++ drivers/gpu/drm/radeon/radeon_ttm.c | 1 + drivers/gpu/drm/radeon/radeon_ttm.h | 37 ++++++++++ drivers/gpu/drm/radeon/rv730_dpm.c | 4 +- drivers/gpu/drm/radeon/rv740_dpm.c | 3 +- drivers/gpu/drm/radeon/rv770.c | 1 + drivers/gpu/drm/radeon/rv770.h | 39 +++++++++++ drivers/gpu/drm/radeon/rv770_dpm.c | 2 + drivers/gpu/drm/radeon/si.c | 11 +-- drivers/gpu/drm/radeon/si.h | 38 ++++++++++ drivers/gpu/drm/radeon/si_dma.c | 3 +- drivers/gpu/drm/radeon/si_dpm.c | 13 ++-- drivers/gpu/drm/radeon/si_dpm.h | 5 ++ drivers/gpu/drm/radeon/trinity_dpm.c | 2 +- drivers/gpu/drm/radeon/vce.h | 35 ++++++++++ drivers/gpu/drm/radeon/vce_v1_0.c | 1 + drivers/gpu/drm/radeon/vce_v2_0.c | 1 + 65 files changed, 794 insertions(+), 213 deletions(-) create mode 100644 drivers/gpu/drm/radeon/cik.h create mode 100644 drivers/gpu/drm/radeon/dce6_afmt.h create mode 100644 drivers/gpu/drm/radeon/evergreen.h create mode 100644 drivers/gpu/drm/radeon/evergreen_hdmi.h create mode 100644 drivers/gpu/drm/radeon/ni.h create mode 100644 drivers/gpu/drm/radeon/r600.h create mode 100644 drivers/gpu/drm/radeon/radeon_atombios.h create mode 100644 drivers/gpu/drm/radeon/radeon_device.h create mode 100644 drivers/gpu/drm/radeon/radeon_kms.h create mode 100644 drivers/gpu/drm/radeon/radeon_legacy_encoders.h create mode 100644 drivers/gpu/drm/radeon/radeon_pm.h create mode 100644 drivers/gpu/drm/radeon/radeon_prime.h create mode 100644 drivers/gpu/drm/radeon/radeon_ttm.h create mode 100644 drivers/gpu/drm/radeon/rv770.h create mode 100644 drivers/gpu/drm/radeon/si.h create mode 100644 drivers/gpu/drm/radeon/vce.h Cc: Alex Deucher Cc: amd-gfx@lists.freedesktop.org Cc: "Christian König" Cc: Daniel Vetter Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Cc: Evan Quan Cc: Gareth Hughes Cc: linaro-mm-sig@lists.linaro.org Cc: linux-media@vger.kernel.org Cc: Slava Grigorev Cc: Sumit Semwal